Ejemplo n.º 1
0
 protected void VanBanDaBaoCao_OnSelectedIndexChanged(object sender, EventArgs e)
 {
     if (!string.IsNullOrEmpty(VanBanDaBaoCao.SelectedValue.Trim()))
     {
         ExchangeDocServiceSoapClient client = new ExchangeDocServiceSoapClient();
         client.Endpoint.Address = new System.ServiceModel.EndpointAddress(AppSettings.HSCV_Service);
         var document = client.GetVBDiByIDs(new ArrayOfString {
             VanBanDaBaoCao.SelectedValue.Trim()
         }).SingleOrDefault();
         NoiDungThucHien.Text  = $"Đã có văn bản số {VanBanDaBaoCao.SelectedItem.Text} ban hành ngày {document.NgayPhatHanh} báo cáo UBND tỉnh";
         ThoiGianThucHien.Text = document.NgayPhatHanh;
         TrangThai.SelectByValue(2);
     }
 }
Ejemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                NgayHoanThanh.Text = DateTime.Now.ToDateString();

                if (PerformServices.GetById(Parameters.Id).Status == 3)
                {
                    TrangThai.SelectByValue(2);
                }
                else
                {
                    TrangThai.SelectByValue(PerformServices.GetById(Parameters.Id).Status);
                }
            }
        }
Ejemplo n.º 3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                var perform = PerformServices.GetById(Parameters.Id);

                if (perform.Status == 3)
                {
                    TrangThai.SelectByValue(2);
                    NgayHoanThanh.Text = perform.FinishedOnDate.ToDateString();
                }
                else
                {
                    TrangThai.SelectByValue(PerformServices.GetById(Parameters.Id).Status);
                    NgayHoanThanh.Text = DateTime.Now.ToDateString();
                }
            }

            btnSave.Attributes.Add("onclick", " this.disabled = true; " + ClientScript.GetPostBackEventReference(btnSave, null) + ";");
        }