<%@ Page Language="C#" AutoEventWireup="true" debug="true" Inherits="WinLibClass.Form.Admin.GoodsCurrencyLog.List"  CodePage="65001" PathLevel="1" PageFileFlag="GoodCurrency_List" PageFileTitle="发货管理" DataBindingType="1" PageFlagId="1" %>


<%@ Register TagPrefix="Site" TagName="Menu" Src="../WUC/Site_Menu.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<Site:Menu id="menu_headtitle" runat="server" Flag="HeadTitle" CurrentPageTitle = "后台管理 - 发货管理" />
<Site:Menu id="menu_headjs" runat="server" Flag="HeadJs" PathLevel="1" />
<Site:Menu id="menu_headcss" runat="server" Flag="HeadCss" PathLevel="1" />

<script>
//编辑
function Edit_Info(id,OrderFormId)
{
//访问类型,AJAX路径,数据JSON,弹出框ID,弹出框标题,等执行的函数名;
var _url="update.aspx?IsAdd=1";
var _data = {"id":id,"OrderFormId":OrderFormId};
Common.EditFunction("POST",_url,_data,"<%=PageFileFlag%>","<%=PageFileTitle%>:编辑","SaveSub");
SetActive(id);
}

//增加
function Add_Info(){Edit_Info(0,0);}

//删除
function Del_Info(id)
{
//弹出框ID,标题，内容，删除程序执行路径，参数表
var _url =  "update.aspx?IsAdd=30";
var _data ={"id":id};
Common.ConfirmDelete2 ("POST",_url,_data,"<%=PageFileFlag%>","删除确认","");
SetActive(id);		
}




//物流公司的选择
function FirmSelectDlg(id)
{
/*
	$.ajax({
		type:"POST",
		url: "/Admin/Dialog/DlgFirm.aspx",
		data:{"id":id},
		cache: false,
		success: function(msg){
			Common.EditDialg ("DlgFirmList","物流公司 - 选择",msg);
		}
	});
*/	
//弹出框ID,标题，内容，删除程序执行路径，参数表
var _url =  "../Dialog/DlgFirm.aspx";
var _data ={"id":id};
Common.EditFunction("POST",_url,_data,"DlgFirmList","物流公司-选择","");

}

//订单的选择
function UserOrderFormSelectDlg(sid){

//弹出框ID,标题，内容，删除程序执行路径，参数表
var _url =  "../Dialog/DlgUserOrderForm.aspx";
var _data ={"strFormId":sid,"IsAdd":0};
Common.EditFunction("POST",_url,_data,"DlgUserOrderForm","订单-选择","FormSelectSub");
return ;

	$.ajax({
		type:"POST",
		url: "/Admin/Dialog/DlgUserOrderForm.aspx",
		data:{"strFormId":sid,"IsAdd":0},
		cache: false,
		success: function(msg){
			Common.EditDialg ("DlgUserOrderForm","订单 - 选择",msg);
			//Common.EditDialgAddButtonEvent("DlgUserOrderForm",'',null);
			//Common.EditDialgAddButtonEvent("DlgUserOrderForm",'确定',FormSelectSub);
		}
	});
}


//会员收货地址的选择
function UserAddressSelectDlg(id,uid){
//弹出框ID,标题，内容，删除程序执行路径，参数表
var _url =  "../Dialog/UserAddress.aspx";
var _data ={"id":id,"Uid":uid};
Common.EditFunction("POST",_url,_data,"DlgUserAddress","收货地址-选择","UserAddressSelectSub");
return ;
/*
	$.ajax({
		type:"POST",
		url: "/Admin/Dialog/UserAddress.aspx",
		data:{"id":id,"Uid":uid},
		cache: false,
		success: function(msg){
			Common.EditDialg ("DlgUserAddress","收货地址 - 选择",msg);
			//Common.EditDialgAddButtonEvent("DlgUserAddress",'确定',UserAddressSelectSub);
		}
	});*/
}


</script>



</head>
<body>

<Site:Menu id="menu_topmenu" runat="server" Flag="TopMenu"  />
<div class1="wrap" id="wrap">
	<Site:Menu id="Wuc_LeftMenu" runat="server" Flag="LeftMenu" PageFileFlag="Menu_A_800_802" PathLevel="1" />	
	<div class1="mainbox" class="MainBox W1100 ">

		<div class="PGTitle LH30  ">
			<div class="W200 FL MGL10 FWB FS12"><%=PageFileTitle%></div>
			<div class="ChileMenu1 FL FS12">

			</div>
			<div class="Clear"></div>
		</div>

		<div class="ContBox MGT10 " >

<table class="Table FS12 ">

<tr style="height:30px;font-weight: bold;">
<TH style="width:30px">序号</TH>
<TH style="width:100px">竞拍编号</TH>
<TH style="width:100px">物流编号</TH>
<TH style="width:100px">物流公司</TH>
<TH style="width:100px">收货人</TH>
<TH>订单编号</TH>
<TH style="width:100px">发货时间</TH>
<TH style="width:100px">到货确认</TH>

<TH style="width:100px">状态</TH>
<TH style="width:80px">操作</TH>
</tr>

<asp:Repeater id="rpList" runat="server">
<ItemTemplate>

<tr id="tr_<%#Eval("id")%>">
		<td><%#Eval("id")%></TD>
		<TD ><%#WinLibClass.Form.FormCommon.Utils.GameString(DV.EvalToInt(Eval("GameType")))[0]%></td>
		<TD ><%#Eval("CurrencyId")%></td>
		<td><%#Eval("CompanyName")%></td>
		<td><%#Eval("UserRealName")%></td>
		<td title="<%#Eval("OrderFormId")%>"><%#DV.Eval(Eval("OrderFormId"),30,"...")%></td>
		<td><%#Eval("SendTime","{0:d}")%></td>
		<td><%#Eval("endTime","{0:d}")%></td>
		
		<td ><%#Eval("IsChecked").Equals(1)?"<font color='green'>已发</font>":"<font color='red'>未发</font>"%></td>
		<td>
			<a onclick="Edit_Info('<%#Eval("id")%>');" >编辑</a>
			<a onclick="Del_Info('<%#Eval("id")%>');" >删除</a>
		</td>
</tr>
</ItemTemplate>
</asp:Repeater>
</table>

		</div>
		<div class="ContBox" >
			<div class="page" style="margin-left:-13px;"><%=strPageInfo%>  -  <a href="#"onclick="Add_Info();return false;"  class="A_Add">添加</a> </div>		
			
		</div>

	</div>
</div>


<div class="clear"></div>
<Site:Menu id="menu_foot" runat="server" Flag="Foot"   />
</body>
</html>



