| | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | //完结事件 |
| | | 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) |
| | | //{ |
| | |
| | | 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"; |
| | |
| | | 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"; |
| | |
| | | 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(); |
| | |
| | | this.txtFinancialOfficers.Value = ""; |
| | | this.txtOfficersMobile.Value = ""; |
| | | this.txtOfficersQQ.Value = ""; |
| | | Shifouwanjie = "3"; |
| | | |
| | | #endregion |
| | | |