| | |
| | | //页面加载 |
| | | 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; |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | } |
| | | this.txtVisitTime.Value = ""; |
| | | this.txtvisitRemark.Value = ""; |
| | | // JavaScript.MessageBox("维护保存成功", this, false, false); |
| | | //JavaScript.MessageBox("维护保存成功", this, false, false); |
| | | JavaScript.MessageBoxandhideLoadingIndicator("保存成功", this); |
| | | if (NeedWeihu) |
| | | { |