username@email.com
2025-05-15 6fe02a16e55f17e45a3997171e1b2284d45af25b
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
/**  
* DeliverPresswork.aspx.cs
*
* 功 能: 订单发货
* 类 名: DeliverPresswork
*
* Ver    变更日期             负责人  变更内容
* ───────────────────────────────────
* V0.01  2013-5-17 12:00       吴崎均    初版
*
*
*
*
*
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CY.Infrastructure.Common;
using CY.Model;
using CY.BLL.EC;
using CY.WebForm.cs;
 
namespace CY.WebForm.Pages.business
{
    /// <summary>
    /// 订单发货
    /// </summary>
    public partial class DeliverPresswork : BasePage
    {
 
        private EC_OrderBasicBLL _eC_OrderBasicBLL = null;
        /// <summary>
        /// 初始化构造
        /// </summary>
        public DeliverPresswork()
        {
            _eC_OrderBasicBLL = new EC_OrderBasicBLL();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                switch (Request["Target"])
                {
                    case "SaveInfo":
                        SaveAwbInfo();
                        break;
                    case "GetDataById":
                        LoadModelById();
                        break;
 
                    default://一般情况不处理
 
                        LoadModelById();
                        if (IsPostBack || IsCallback) return; else { }
 
                        return;
                }
            }
            catch (Exception ex)
            {
                PAGEHandleException(ex);
                Response.Clear();
                Response.Write("-1");
            }
            Response.End();
        }
        /// <summary>
        /// 根据编号加载数据
        /// </summary>
        /// <returns></returns>
        private bool LoadModelById()
        {
            // DealMvc.Common.Net.DealString.ChangeSQL(Request["ParamName"])
            int? id = MyConvert.ConvertToInt32(Request["id"]);
            if (!id.HasValue) return false;
            EC_AwbInfo _eC_AwbInfo = _eC_OrderBasicBLL.SelectAwbInfoById(id.Value);
            txtModeldata.Value = null == _eC_AwbInfo ? "" : JsonHelper.GetJsonStringByObject(_eC_AwbInfo);
 
 
            return true;
        }
        /// <summary>
        /// 保存信息
        /// </summary>
        private void SaveAwbInfo()
        {
            EC_AwbInfo eC_AwbInfo = new EC_AwbInfo();
            eC_AwbInfo.Operate.OrderId = eC_AwbInfo.Keyid;
            eC_AwbInfo.Operate.Remark = eC_AwbInfo.Remark;
            eC_AwbInfo.Operate.Operator = CurrentUser.ShortName;
            eC_AwbInfo.Operate.OperateType = 5;
 
            WebUtil<EC_AwbInfo>.SaveData(_eC_OrderBasicBLL.DeliverPresswork, _eC_OrderBasicBLL.DeliverPresswork, eC_AwbInfo);
 
 
        }
 
    }
}