Пример #1
0
 private void bindGridView()
 {
     try
     {
         _daDSR  = new DA_DSR();
         _lstDSR = _daDSR.GetDSR(ConvertToDBDate(txtDSRDate.Text));
         dvDSRData.DataSource = _lstDSR;
         dvDSRData.DataBind();
     }
     catch (Exception ex)
     {
         ClientScript.RegisterStartupScript(GetType(), "DSR Report", "alert(" + Message.ErrorMessage + ");", true);
         EXCEPTION_UTILITY.WriteToLog(ex, GetLogFilePath(), _UserModel.LoginId, "DSR Report", "ETS", "bindGridView");
     }
 }
Пример #2
0
 private void loadDSR(string strDate)
 {
     try
     {
         _daDSR  = new DA_DSR();
         _lstDSR = _daDSR.GetDSR(strDate);
         dvDSRData.DataSource = _lstDSR;
         dvDSRData.DataBind();
     }
     catch (Exception ex)
     {
         ClientScript.RegisterStartupScript(GetType(), "DSR Report", "alert(" + Message.ErrorMessage + ");", true);
         EXCEPTION_UTILITY.WriteToLog(ex, GetLogFilePath(), _UserModel.LoginId, "DSR Report", "ETS", "loadDSR");
     }
 }