CY_ECommercePlatform/CY.WebForm/Pages/business/CorporateClientsEdit.aspx.cs
@@ -94,6 +94,12 @@
                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;
@@ -379,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;
                #region 添加或编辑
                bool result = bll_OA_CorporateClientsBLL.UpdateModel(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)
        //{
@@ -475,7 +531,7 @@
            this.selCustomerIndustriesId.DataTextField = "Name";
            this.selCustomerIndustriesId.DataBind();
            this.selCustomerIndustriesId.Value = "69";
            this.selCustomerIndustriesId.Value = "454";
            this.selCustomerTypeId.DataSource = bll_Sys_DictionaryBLL.GetDataByType("客户类型");
            this.selCustomerTypeId.DataValueField = "Keyid";
@@ -559,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();
@@ -660,6 +716,7 @@
                this.txtFinancialOfficers.Value = "";
                this.txtOfficersMobile.Value = "";
                this.txtOfficersQQ.Value = "";
                Shifouwanjie = "3";
                #endregion