username@email.com
2025-08-25 fa0043f004f1c666d1873436a980e0c90ff09054
CY_ECommercePlatform/CY.WebForm/Pages/business/CorporateClientsVisit.aspx.cs
@@ -49,43 +49,46 @@
        //页面加载
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request["Keyid"] != null || Request["MemberId"] != null)
            if (!IsPostBack)
            {
                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());
                IsNeedJiejiaRi = client.JieJiaRiWiHu==true;
                NeedWeihu = client.NeedWiHu == true;
                this.RepClientList.DataSource = bll_OA_CorporateClientsBLL.SelectVisitListByCorId(Request["Keyid"].ToGuid2());
                this.RepClientList.DataBind();
                if (IsNeedJiejiaRi)
                    this.btn_Submit.Enabled = true;
                else
                    this.btn_Submit.Enabled = false;
                //判决是否是节假日维护弹窗 这个弹窗添加维护记录后会关闭窗口
                var x = Request["JIeriCount"];
                if (x != "undefined"&&x!=null)
                if (Request["Keyid"] != null || Request["MemberId"] != null)
                {
                    this.Button1.Enabled = false;
                    this.txtvisitRemark.Value = x;
                    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());
                    IsNeedJiejiaRi = client.JieJiaRiWiHu == true;
                    NeedWeihu = client.NeedWiHu == true;
                    this.RepClientList.DataSource = bll_OA_CorporateClientsBLL.SelectVisitListByCorId(Request["Keyid"].ToGuid2());
                    this.RepClientList.DataBind();
                    if (IsNeedJiejiaRi)
                        this.btn_Submit.Enabled = true;
                    else
                        this.btn_Submit.Enabled = false;
                    //判决是否是节假日维护弹窗 这个弹窗添加维护记录后会关闭窗口
                    var x = Request["JIeriCount"];
                    if (x != "undefined" && x != null)
                    {
                        this.Button1.Enabled = false;
                        this.txtvisitRemark.Value = x;
                    }
                    this.txtVisitTime.Value = DateTime.Now.ToString("yyyy-MM-dd");
                    //判决是否是提醒弹窗  这个弹窗添加维护记录后会关闭窗口
                    var y = Request["tixingweihu"];
                    if (y != null && y == "1")
                    {
                        IsWeihuTixingUrl = true;
                    }
                }
                this.txtVisitTime.Value = DateTime.Now.ToString("yyyy-MM-dd");
                //判决是否是提醒弹窗  这个弹窗添加维护记录后会关闭窗口
                var y = Request["tixingweihu"];
                if ( y != null&& y=="1")
                {
                    IsWeihuTixingUrl = true;
                }
            }
        }
@@ -212,7 +215,7 @@
                    }
                    this.txtVisitTime.Value = "";
                    this.txtvisitRemark.Value = "";
                    // JavaScript.MessageBox("维护保存成功", this, false, false);
                    //JavaScript.MessageBox("维护保存成功", this, false, false);
                    JavaScript.MessageBoxandhideLoadingIndicator("保存成功", this);
                    if (NeedWeihu)
                    {