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


<script type="text/javascript"> 


function _ShopUpdate()
{

		var pass= true;
		if(pass){
			var queryString = $('#form_add').serialize();
			$.ajax({
				type: "POST",
				//url: "../index.aspx?s=/UserPointsExchange_Update",//index 处理
				url: "Update.aspx?isadd=20&DeleteType=11",//index 处理
				data:queryString,
				cache: false,
				success: function(msg){
						if(msg=='1'){ //先保留msg这个值以备以后使用
							Alert('<%=(DataInfo.ID>0)?"修改":"添加" %>积分信息成功!',1,function(){Common.Refresh();});
							//Common.Refresh();
			
						}else{
							if(msg==-1) msg = "会员积分值不够兑换该商品,兑换取消.";
							
							else msg = "<%=(DataInfo.ID>0)?"修改":"添加" %>信息失败,请检查各项输入是否正确或网络连接状态.代码("+ msg +")";

							AlertErr(msg);
						}
				},
				error:function(msg)
				{
					AlertErr("出错啦:" + msg.responseText);
				}
				
			});		
			
		}
		else
		{
			AlertErr("出错啦:连接异常,操作失败");
		}

}

$(document).ready(function(){

});


</script> 


<div class="W550" >

	<form id="form_add">
	
<div class="TableUpdateDiv"  style="width:98%">
<div style="width:98%;">
	<table class="TableUpdate" style="text-align:left;">
	
	<tr>
	<td >
		<span>产品编号:</span>
		<input id="ProductId" name="ProductId" type="text" style="width:100px" value="<%=DataInfo.ProductId%>" readonly />
		<br />
		<span>名　　称:<%=DataInfo.ProductName%></span>
		
		<input id="Id" name="Id" type="hidden" value="<%=DataInfo.ID%>" />
		<input id="TypeId" name="TypeId" type="hidden" value="<%=DataInfo.TypeId%>" />
		<input id="DeleteType" name="DeleteType" type="hidden" value="<%=DeleteType%>" />
		
		
	</td>
	</tr>
	
	<tr>
	<td>
		<span>会员编号:</span>
		<input id="UserId" name="UserId" type="text" style="width:100px" value="<%=DataInfo.UserId%>" readonly />
		<br />
		<span>昵　　称:<%=DataInfo.UserNickName%></span>
	</td>
	</tr>	

	
	

	
		
	
	<tr style="display:none">	
	<td  >
		<span>状　　态:</span>
		<select id="IsChecked" name="IsChecked" style="width:60px;" >
		<option value="0" style="color:red" <%=((DataInfo.IsChecked==0)?"selected":"")%> >停用</option>
		<option value="1" <%=((DataInfo.IsChecked==1)?"selected":"")%> >启用</option>
		</select>	
		</td>
	</tr>		
	
	</table>

</div>
<div style="width:98%;margin-top:5px;background-color:#F8E9C2;">
	
	<table class="TableUpdate" style="text-align:left;">
	
	
	<tr >
	<td >
		<span id="Span_PointMin">兑换积分:</span>
		<input id="UserPoints" name="UserPoints" type="text" value="<%=DataInfo.UserPoints%>" readonly />
	
	</td>
	</tr>
	
	<tr >
	<td >
		<span>兑换时间:</span>
		<input id="CreateTime" name="CreateTime" type="text" style="width:200px" value="<%=DataInfo.CreateTime.ToString("yyyy-MM-dd HH:mm:ss")%>" />
		(格式:例 2011-01-01 00:00:00)
	</td>	
	</tr>	
	
	
	<tr >
	<td >
		<span>发货时间:</span>
		<input id="UpdateTime" name="UpdateTime" type="text" style="width:200px" value="<%=DataInfo.UpdateTime.ToString("yyyy-MM-dd HH:mm:ss")%>" />
		(格式:例 2011-01-01 00:00:00)
	</td>	
	</tr>	
	
			
	<tr >
	<td >
		<span>货到时间:</span>
		<input id="EndTime" name="EndTime" type="text" style="width:200px" value="<%=DataInfo.EndTime.ToString("yyyy-MM-dd HH:mm:ss")%>" />
		(格式:例 2011-01-01 00:00:00)
		
	</td>	
	</tr>	
	
	</table>		
	
</div>
</div>
	
</form>
	
</div>


