From 58cc59639e3ca32896d6db5d0c261ff63848a30d Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期一, 15 九月 2025 15:04:37 +0800
Subject: [PATCH] 增加一个完结时间,如果下次打开,就按完结时间计算合同金额
---
CY_ECommercePlatform/CY.WebForm/Pages/business/CorporateClientsEdit.aspx.cs | 81 +++++++++++++++++++++++++++++++++++++---
1 files changed, 75 insertions(+), 6 deletions(-)
diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/CorporateClientsEdit.aspx.cs b/CY_ECommercePlatform/CY.WebForm/Pages/business/CorporateClientsEdit.aspx.cs
index e68413e..c93236b 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/business/CorporateClientsEdit.aspx.cs
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/CorporateClientsEdit.aspx.cs
@@ -89,7 +89,17 @@
OA_CorporateClients m_OA_CorporateClients = new OA_CorporateClients();
OA_CustomerCommunications m_OA_CustomerCommunications = new OA_CustomerCommunications();
EC_AcceptWayByCustomers m_EC_AcceptWayByCustomers = new EC_AcceptWayByCustomers();
+ if ( this.selSourcesInfoId.Value.ToString() == "452" && string.IsNullOrWhiteSpace(this.txtJigoudaima.Value.ToString()))
+ {
+ JavaScript.MessageBox("瀹㈡埛鏉ユ簮涓烘斂搴滈噰璐紝璇峰~鍐欐満鏋勪唬鐮�", this);
+ return;
+ }
+ if (string.IsNullOrEmpty(Request["selectProvince"].ToString2()) || string.IsNullOrEmpty(Request["selectCity"].ToString2()) || string.IsNullOrEmpty(Request["selectCounty"].ToString2()))
+ {
+ JavaScript.MessageBox("璇烽�夋嫨鎵�鍦ㄥ尯鍩�", this);
+ return;
+ }
try
{
//var files = Request.Files;
@@ -142,6 +152,7 @@
m_OA_CorporateClients.DegreeImportanId = this.selDegreeImportanId.Value.ToInt32() ?? 0;
m_OA_CorporateClients.AccountManagerId = this.selAccountManagerId.Value.ToInt32() ?? 0;
m_OA_CorporateClients.BusinessManagerId = this.selBusinessManagerId.Value.ToInt32() ?? 0;
+ m_OA_CorporateClients.Shifouwanjie = 2;
//add by zyyao
m_OA_CorporateClients.Paytime = this.selPaytime.Value.ToInt32() ?? 0;
@@ -349,14 +360,14 @@
m_OA_CorporateClients.Shifouwanjie = 1;
m_OA_CorporateClients.LastUpdateTime = DateTime.Now;
+ m_OA_CorporateClients.WanjieTime = DateTime.Now;
-
- #region 娣诲姞鎴栫紪杈�
+ #region 娣诲姞鎴栫紪杈�
-
- bool result = bll_OA_CorporateClientsBLL.UpdateModel(m_OA_CorporateClients);//鏇存柊淇℃伅
+
+ bool result = bll_OA_CorporateClientsBLL.UpdateWanjie(m_OA_CorporateClients);//鏇存柊淇℃伅
if (result)
JavaScript.MessageBox("瀹岀粨鎴愬姛", this, true, true);
else
@@ -374,6 +385,56 @@
}
+
+ //瀹岀粨浜嬩欢
+ protected void btn_Submit_chongxinkaitong(object sender, EventArgs e)
+ {
+ OA_CorporateClients m_OA_CorporateClients = new OA_CorporateClients();
+
+
+ try
+ {
+ Guid Keyid = Request["Keyid"].ToGuid2();
+
+
+
+
+ if (Request["Keyid"] != null)
+ {
+ m_OA_CorporateClients = bll_OA_CorporateClientsBLL.GetModel(Request["Keyid"].ToGuid2());
+
+ }
+ else
+ {
+ JavaScript.MessageBox("璇峰厛淇濆瓨瀹㈡埛", this);
+ }
+
+ m_OA_CorporateClients.Shifouwanjie = 2;
+
+ m_OA_CorporateClients.LastUpdateTime = DateTime.Now;
+
+ m_OA_CorporateClients.WanjieTime = DateTime.Now;
+
+
+ #region 娣诲姞鎴栫紪杈�
+
+
+ bool result = bll_OA_CorporateClientsBLL.UpdateWanjie(m_OA_CorporateClients);//鏇存柊淇℃伅
+ if (result)
+ JavaScript.MessageBox("瀹岀粨鎴愬姛", this, true, true);
+ else
+ JavaScript.MessageBox("瀹岀粨澶辫触", this);
+
+ #endregion
+
+
+ }
+ catch (Exception ex)
+ {
+ PAGEHandleException(ex);
+ JavaScript.MessageBox("鎿嶄綔澶辫触", this);
+ }
+ }
////瀹岀粨浜嬩欢
//protected void btn_Submit_Visit(object sender, EventArgs e)
//{
@@ -463,11 +524,14 @@
this.selSourcesInfoId.DataValueField = "Keyid";
this.selSourcesInfoId.DataTextField = "Name";
this.selSourcesInfoId.DataBind();
+ this.selSourcesInfoId.Value = "452";
this.selCustomerIndustriesId.DataSource = bll_Sys_DictionaryBLL.GetDataByType("瀹㈡埛鎵�灞炶涓�");
this.selCustomerIndustriesId.DataValueField = "Keyid";
this.selCustomerIndustriesId.DataTextField = "Name";
this.selCustomerIndustriesId.DataBind();
+
+ this.selCustomerIndustriesId.Value = "454";
this.selCustomerTypeId.DataSource = bll_Sys_DictionaryBLL.GetDataByType("瀹㈡埛绫诲瀷");
this.selCustomerTypeId.DataValueField = "Keyid";
@@ -480,11 +544,15 @@
this.selBusinessManagerId.DataBind();
this.selBusinessManagerId.Items.Insert(0, new ListItem("璇烽�夋嫨", ""));
+ this.selBusinessManagerId.Value = CurrentUser.StaffId.Value.ToString();
+
this.selAccountManagerId.DataSource = bll_OA_StaffBLL.SelectListByFirmId(CurrentUser.MemberId, false, true);
this.selAccountManagerId.DataTextField = "Name";
this.selAccountManagerId.DataValueField = "Keyid";
this.selAccountManagerId.DataBind();
this.selAccountManagerId.Items.Insert(0, new ListItem("璇烽�夋嫨", ""));
+
+ this.selAccountManagerId.Value = CurrentUser.StaffId.Value.ToString();
this.selCreditId.DataSource = bll_Sys_DictionaryBLL.GetDataByType("瀹㈡埛淇¤獕");
this.selCreditId.DataValueField = "Keyid";
@@ -547,8 +615,8 @@
this.selSourcesInfoId.Value = m_OA_CorporateClients.SourcesInfoId.ToString2();
this.selCustomerIndustriesId.Value = m_OA_CorporateClients.CustomerIndustriesId.ToString2();
this.selCustomerTypeId.Value = m_OA_CorporateClients.CustomerTypeId.ToString2();
- this.selBusinessManagerId.Value = m_OA_CorporateClients.BusinessManagerId.ToString2();
- this.selAccountManagerId.Value = m_OA_CorporateClients.AccountManagerId.ToString2();
+ this.selBusinessManagerId.Value = m_OA_CorporateClients.BusinessManagerId.ToString2()=="0"?"": m_OA_CorporateClients.BusinessManagerId.ToString2();
+ this.selAccountManagerId.Value = m_OA_CorporateClients.AccountManagerId.ToString2() == "0" ? "" : m_OA_CorporateClients.AccountManagerId.ToString2();
this.selDegreeImportanId.Value = m_OA_CorporateClients.DegreeImportanId.ToString2();
this.selBusinessAnalysisId.Value = m_OA_CorporateClients.BusinessAnalysisId.ToString2();
this.selIsLoginCorporateWeb.Value = m_OA_CorporateClients.IsLoginCorporateWeb.ToString2();
@@ -648,6 +716,7 @@
this.txtFinancialOfficers.Value = "";
this.txtOfficersMobile.Value = "";
this.txtOfficersQQ.Value = "";
+ Shifouwanjie = "3";
#endregion
--
Gitblit v1.9.1