username@email.com
2026-03-12 fe4f494d66a2049583d3ff427e431d5b88fa4eeb
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CY.BLL;
using CY.Model;
using CY.Infrastructure.Query;
using CY.Infrastructure.Common;
using CY.BLL.Sys;
using CY.Model.Inquiry;
using CY.SQLDAL;
using System.Data.SqlClient;
using CY.Infrastructure.Logging;
using CY.WebForm.Helper;
 
namespace CY.WebForm.Pages.business
{
    public partial class CorporateClientsSheji : BasePage
    {
        OA_CorporateClientsBLL bll_OA_CorporateClientsBLL = null;
        Sys_DictionaryBLL bll_Sys_DictionaryBLL = null;//字典业务逻辑操作类对象
        SysInquiry_PrintingTypeBLL bll_SysInquiry_PrintingTypeBLL = null;//印刷业务类型业务逻辑操作类对象
        /// <summary>
        /// 是否需要节假日维护
        /// </summary>
        public bool IsNeedJiejiaRi { get; set; }
        /// <summary>
        /// 是否需要维护
        /// </summary>
        public bool NeedWeihu { get; set; }
 
        /// <summary>
        /// 合作客户例子
        /// </summary>
        public OA_CorporateClients client { get; set; }
        //初始化
        public CorporateClientsSheji()
        {
            bll_OA_CorporateClientsBLL = new OA_CorporateClientsBLL();
            bll_Sys_DictionaryBLL = new Sys_DictionaryBLL();
            bll_SysInquiry_PrintingTypeBLL = new SysInquiry_PrintingTypeBLL();
        }
        /// <summary>
        /// 是否时维护提醒传过来的
        /// </summary>
        public bool IsWeihuTixingUrl { get; set; } = false;
        //页面加载
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Request["Keyid"] != null || Request["MemberId"] != null)
                {
                    OA_CorporateClients m_OA_CorporateClients = bll_OA_CorporateClientsBLL.GetModelDetail(Request["Keyid"].ToGuid2());
                    this.spanCompanyName.InnerText = m_OA_CorporateClients.CompanyName;
                    this.spanBusinessManagerId.InnerText = m_OA_CorporateClients.BusinessmanagerName;
                    this.spanprintdate.InnerText = DateTime.Now.ToString("yyyy-MM-dd");
                    client = bll_OA_CorporateClientsBLL.GetModel(Request["Keyid"].ToGuid2());
                    this.txtShejiTime.Value = DateTime.Now.ToString("yyyy-MM-dd");
                    this.RepClientList.DataSource = bll_OA_CorporateClientsBLL.SelectShejiListByCorId(Request["Keyid"].ToGuid2());
 
                    this.RepClientList.DataBind();
                    
 
 
 
 
                }
            }
              
 
 
        }
        //完结事件
        protected void btn_Submit_Sheji(object sender, EventArgs e)
        {
            OA_CorporateClientsSheji m_OA_CorporateClientsSheji = new OA_CorporateClientsSheji();
 
          
            try
            {
                Guid Keyid = Request["Keyid"].ToGuid2();
 
 
 
 
                if (Request["Keyid"] != null)
                {
 
 
                }
                else
                {
                    JavaScript.MessageBox("请先保存客户", this);
                    return;
                }
 
                if (this.txtShejiTime.Value == "")
                {
                    JavaScript.MessageBox("请选择日期", this);
                    return;
 
                }
 
                if (this.txtYinjianName.Value.Trim() == "")
                {
                    JavaScript.MessageBox("请填写印件名称", this);
                    return;
 
                }
 
                if (this.txtJiaogaoCount.Value.Trim() == "")
                {
                    JavaScript.MessageBox("请填写校稿次数", this);
                    return;
 
                }
 
                if (this.txtShejiRemark.Value.Trim() == "")
                {
                    JavaScript.MessageBox("请填写维护记录", this);
                    return;
 
                }
 
                 
               
 
                  
               
 
 
 
               
 
 
 
                m_OA_CorporateClientsSheji.Keyid = Guid.NewGuid();
 
 
                m_OA_CorporateClientsSheji.CorporateClientsid = Keyid;
 
                m_OA_CorporateClientsSheji.ShejiTime = this.txtShejiTime.Value.ToDateTime2();
                m_OA_CorporateClientsSheji.YinjianName = this.txtYinjianName.Value.Trim();
                m_OA_CorporateClientsSheji.JiaogaoCount = this.txtJiaogaoCount.Value.Trim().ToInt32();
 
                m_OA_CorporateClientsSheji.Remark = this.txtShejiRemark.Value.Trim();
                m_OA_CorporateClientsSheji.Creater = CurrentUser.TrueMemberId;
                m_OA_CorporateClientsSheji.CreateTime = DateTime.Now;
                m_OA_CorporateClientsSheji.Updater = CurrentUser.TrueMemberId;
                m_OA_CorporateClientsSheji.LastUpdateTime = DateTime.Now;
 
 
                #region 添加或编辑
 
 
                bool result = bll_OA_CorporateClientsBLL.InsertModelSheji(m_OA_CorporateClientsSheji);//更新信息
 
                if (result)
                {
                    
                    this.txtShejiTime.Value = "";
                    this.txtShejiRemark.Value = "";
                    this.txtYinjianName.Value = "";
                    this.txtJiaogaoCount.Value = "";
                    //JavaScript.MessageBox("维护保存成功", this, false, false);
                    JavaScript.MessageBoxandhideLoadingIndicator("保存成功", this);
              
 
 
 
                }
 
                else
                    JavaScript.MessageBox("维护保存失败", this);
                this.RepClientList.DataSource = bll_OA_CorporateClientsBLL.SelectShejiListByCorId(Request["Keyid"].ToGuid2());
                this.RepClientList.DataBind();
              
                #endregion
 
 
            }
            catch (Exception ex)
            {
                PAGEHandleException(ex);
                JavaScript.MessageBox("操作失败", this);
                
            }
        }
 
    
    }
}