<%@ Page Language="C#" AutoEventWireup="true" debug="true" Inherits="WinLibClass.Form.Admin.GoodsCurrencyLog.Update"  CodePage="65001"  %>




<script type="text/javascript"> 
jQuery(document).ready(function(){
	jQuery("#BtnSubmit").click(function(){SaveSub();});
	jQuery("#input_selectComp").click(function(){FirmSelectDlg(jQuery("#CompanyId").val());});
	jQuery("#input_selectForm").click(function(){UserOrderFormSelectDlg(jQuery("#OrderFormId").val());});
	jQuery("#input_selectAddress").click(function(){UserAddressSelectDlg(jQuery("#UserAddressId").val(),jQuery("#UserId").val());});
	
	
});
function SaveSub(){

	var pass= true;
	if( jQuery.trim( jQuery("#OrderFormId").val()).length<5) pass=false;
	if(pass==false)
	{
		Common.ShowTipFaceSmile(false,"您选择的订单号无效，请检查后再提交.");
	}
	else
	{
	if(pass){
			var queryString = $('#form_add').serialize()
			jQuery.ajax({
				async:false,
				type: "POST",
				url: "../GoodsCurrencyLog/Update.aspx?IsAdd=20",
				data:queryString,
				cache: false,
				success: function(msg){
						if(msg=='1'){ 
							Common.ShowTipSuccess(false,'<%=(DataInfo.ID>0)?"修改":"添加" %>成功!',1);
							
							<%
								if(UrlReferrerType==0)
								{
							%>
								Common.Refresh();
							<%
								}
								else
								{
							%>
							Common.EditDialgClose("GoodsCurrencyLog");
							<%		
								}
							%>
						}else{
							if(msg.indexOf("您的权限不足")<0){msg = "<%=(DataInfo.ID>0)?"修改":"添加" %>失败,请检查各项输入是否正确或网络连接状态.";	}
							Common.ShowTipError('权限受限',msg,2);
						}
				},
				error:function(msg){Common.ShowTipError('异常提示','写入数据库异常',2);}
			});		
		}
		else{Common.ShowTipError('异常提示','数据验证无效，请检查后再提交。',2);}
	}
		return false;
}
</script> 


<div style="height:auto;border:0px;width:720px;">
	<form id="form_add">
		<div class="TableUpdateDiv"  style="width:99%;">
		<div style="width:98%;">
			<table class="TableUpdate" style="text-align:left;">
			
			<tr >
			<td>
				<INPUT TYPE="hidden" NAME="id" id="ID" style="width:50px;"  value="<%=DataInfo.ID%>" />
				订&nbsp;&nbsp;单&nbsp;&nbsp;号:
				<INPUT TYPE="text" NAME="OrderFormId" id="OrderFormId" class="InputReadonly" style="width:260px;" value="<%=DataInfo.OrderFormId%>" readonly /> 
				<a hre0f="javascript:;"  id="input_selectForm" value="选择订单" >选择订单</a>
				成交价:<font  class="MoneyYuan">&yen;</font>
				<INPUT TYPE="text" NAME="RealPrice" id="RealPrice" class="InputReadonly" value="<%=DataInfo.RealPrice/100f%>" readonly />					
			</td>
			</tr>
			
			<tr >
			<td >				
				
				<input type="text" name="GameTypeName" id="GameTypeName" style="border:0px;width:26px;font-size:12px;" value = "<%=WinLibClass.Form.FormCommon.Utils.GameString(DataInfo.GameType)[0]%>" readonly />期号:
				<INPUT TYPE="text" NAME="VendueId" id="VendueId" class="InputReadonly" style="width:100px" value="<%=DataInfo.VendueId%>" /> 
				<INPUT TYPE="hidden1" NAME="GameType" id="GameType" style="width:50px;"  value="<%=DataInfo.GameType%>" />
				
				产品:
				<INPUT TYPE="text" NAME="ProductName" id="ProductName" class="InputReadonly" value="<%=DataInfo.ProductName%>" readonly />
				<INPUT TYPE="hidden" NAME="ProductId " id="ProductId " class="InputReadonly" style="width:50px;" value="<%=DataInfo.ProductId %>" readonly />
				<INPUT TYPE="hidden" NAME="MarketPrice" id="MarketPrice" class="InputReadonly" value="<%=DataInfo.MarketPrice/100f%>" readonly />				
				
				
			</td>
			</tr>

			<tr >
			<td >物流公司:
				<INPUT TYPE="text" NAME="CompanyName" id="CompanyName" class="InputReadonly" value="<%=DataInfo.CompanyName%>" readonly /> 
				<a hre0f="javascript:;"  id="input_selectComp" value="选择物流公司" >选择物流公司</a>
				物流编号:			
				<INPUT TYPE="text" NAME="CurrencyId" id="CurrencyId" style="width:200px" value="<%=DataInfo.CurrencyId%>" /> 

				<INPUT TYPE="hidden" NAME="CompanyId" id="CompanyId" style="width:50px;" value="<%=DataInfo.CompanyId%>" readonly />
				<INPUT TYPE="hidden" NAME="CompanyLogo" id="CompanyLogo" style="width:50px;" value="<%=DataInfo.CompanyLogo%>" readonly />				
			</td>
			</tr>	
			

			
			<tr>
			<td>			
				会员手机号:
				<INPUT TYPE="text" NAME="UserMobile" id="UserMobile" class="InputReadonly" value="<%=DataInfo.UserMobile%>" readonly />
				会员昵称:
				<INPUT TYPE="text" NAME="UserNickName" id="UserNickName" class="InputReadonly" value="<%=DataInfo.UserNickName%>" readonly />
				<INPUT TYPE="hidden" NAME="UserId" id="UserId" value="<%=DataInfo.UserId%>" readonly />
			
			</td>
			</tr>	

			<tr>
			<td>
				收货人邮编:
				<INPUT TYPE="text" NAME="UserPostCode" id="UserPostCode" class="InputReadonly" value="<%=DataInfo.UserPostCode%>" readonly />
				收货人姓名:
				<INPUT TYPE="text" NAME="UserRealName" id="UserRealName" class="InputReadonly" value="<%=DataInfo.UserRealName%>" readonly />

			</td>
			</tr>	


			<tr>
			<td>				
				<INPUT TYPE="hidden" NAME="UserAddressId" id="UserAddressId" class="InputReadonly" value="<%=DataInfo.UserAddressId%>" readonly />
				收货人地址:
				<INPUT TYPE="text" NAME="UserAddress" id="UserAddress" class="InputReadonly" value="<%=DataInfo.UserAddress%>" readonly />
				<a hre0f="javascript:;"  id="input_selectAddress" value="选择收货地址" >选择收货地址</a>
			</td>
			</tr>	
			<tr>
			<td>				
				
				发货时间: 
				<INPUT TYPE="text" NAME="SendTime" id="SendTime" class="InputReadonly1" value="<%=DataInfo.SendTime.ToString("yyyy-MM-dd HH:mm:ss")%>"  /> 
				&nbsp;&nbsp; 时间格式：1900-01-01 00:00:00 &nbsp;&nbsp; 时间为 1900-01-01 00:00:00 表示未填写
			</td>
			</tr>	
			
			<tr>
			<td>				
				到货时间: 
				<INPUT TYPE="text" NAME="EndTime" id="EndTime" class="InputReadonly1" value="<%=DataInfo.EndTime.ToString("yyyy-MM-dd HH:mm:ss")%>"  /> 
			</td>
			</tr>	


			<tr style="display:none" title="hiddenGroup">
			<td >
				<INPUT TYPE="text" NAME="OrderId" id="OrderId" value="<%=DataInfo.OrderId%>" readonly />
				&nbsp;&nbsp; 
			</td>
			</tr>	
			
			
			<tr >
			<td >是否已发货:
				<SELECT NAME="IsChecked" id="IsChecked">
				<option value="0" <%=DataInfo.IsChecked==0?"selected":""%>  >未发</option>
				<option value="1" <%=DataInfo.IsChecked==1?"selected":""%>  >已发</option>
				</SELECT>
				
				&nbsp;&nbsp; 
			<INPUT TYPE="hidden" NAME="Remark" id="Remark" value="<%=DataInfo.Remark%>" readonly />
			后台管理员编号:
			<INPUT TYPE="text" NAME="SendAdminId" id="SendAdminId" class="InputReadonly1" style="border:0px;" value="<%=DataInfo.SendAdminId%>" readonly />
			<INPUT TYPE="hidden" NAME="SendAdminRealName" id="SendAdminRealName" value="<%=DataInfo.SendAdminRealName%>" readonly />				
				
				</td>
			</tr>		
			
			<tr title="ext">
			<td >
<div>
<b>说明：</b> <br />
&nbsp;&nbsp; &nbsp;&nbsp; 操作顺序：<br />
&nbsp;&nbsp; &nbsp;&nbsp; 1.先点击“选择订单”按钮，获取订单的必要信息，如订单对应的会员信息、游戏类型和游戏期号、商品名称等。<br />
&nbsp;&nbsp; &nbsp;&nbsp; 2.再点击“选择物流公司”按钮，确定发货方式。<br />
&nbsp;&nbsp; &nbsp;&nbsp; 3.再点击“选择收货地址”按钮，确定收货详细信息。<br />
&nbsp;&nbsp; &nbsp;&nbsp; 4.在物流公司办理好发货手续后，将物流单上的单号及发货时间填入。<br />
&nbsp;&nbsp; &nbsp;&nbsp; 5.在物流到达经客户签收后（由物流公司查询），将到货确认时间填入。
</div>
			</td>
			</tr>					
			
			</table>
			</div>
		</div>	
	
	</form>
	
</div>


