username@email.com
2025-05-21 a980cd04341d71216e0f59bd4b7327fe9fc50032
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/**  
* 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
{
    /// <summary>
    /// 收货地址编辑类
    /// </summary>
    public partial class AcceptWayEdit : BasePage
    {
        /// <summary>
        /// 加载事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        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("<script>setTimeout(function(){ top.Dialog.close();},1000)</script>"); }
            }
            catch (Exception ex)
            {
                PAGEHandleException(ex);
                JavaScript.MessageBox("操作错误!", this);
                return;
            }
            JavaScript.MessageBox(isWin ? "操作成功" : "操作失败", this);
        }
 
    }
}