/** * AcceptWayEdit.aspx.cs * * 功 能: 收货地址编辑(可编辑会员、客户、订单收货地址) * 类 名: AcceptWayEdit * * Ver 变更日期 负责人 变更内容 * ─────────────────────────────────── * V0.01 2013-5-8 13:55 吴崎均 初版 * */ using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using CY.Model; using CY.BLL; using CY.Infrastructure.Common; using CY.Infrastructure.Domain; namespace CY.WebForm.Pages.business { /// /// 收货地址编辑类 /// public partial class AcceptWayEdit : BasePage { /// /// 加载事件 /// /// /// protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack && !IsCallback) { return; } switch (Request["epytod"]) { case "seckill": Response.Clear(); Server.Transfer("/Pages/common/PayAbout.aspx",true); break; default: break; } bool isWin = false; try { IAggregateRoot _eC_AcceptWay = new EC_AcceptWayByOrder(); OrderEdit.GetAcceptWay(_eC_AcceptWay); _eC_AcceptWay.Visiter("Operator", -1, true, CurrentUser.ShortName); _eC_AcceptWay.Visiter("TargetId", -1, true, MyConvert.ConvertToInt32(Request["txtKeyid"])); _eC_AcceptWay.Visiter("TheAwb", -1, true, MyConvert.ConvertToString(Request["txtTheAwb"])); switch (Request["txtType"]) { case "order": EC_AcceptWayByOrderBLL _eC_AcceptWayByOrderBLL = new EC_AcceptWayByOrderBLL(); isWin = _eC_AcceptWayByOrderBLL.UpdateModel(_eC_AcceptWay as EC_AcceptWayByOrder); break; case "customer": EC_AcceptWayByCustomersBLL _eC_AcceptWayByCustomersBLL = new EC_AcceptWayByCustomersBLL(); isWin = _eC_AcceptWayByCustomersBLL.UpdateModel(_eC_AcceptWay as EC_AcceptWayByCustomers); break; case "member": EC_AcceptWayBySellerBLL _eC_AcceptWayBySellerBLL = new EC_AcceptWayBySellerBLL(); isWin = _eC_AcceptWayBySellerBLL.UpdateModel(_eC_AcceptWay as EC_AcceptWayBySeller); break; default: return; } txtResult.Value = isWin ? "1" : "0"; //if (isWin) { Response.Write(""); } } catch (Exception ex) { PAGEHandleException(ex); JavaScript.MessageBox("操作错误!", this); return; } JavaScript.MessageBox(isWin ? "操作成功" : "操作失败", this); } } }