Esempio n. 1
0
 private void Service_ServiceCallAttendance_GetAll()
 {
     try
     {
         Business.Service.ServiceBook         objService            = new Business.Service.ServiceBook();
         Entity.Service.ServiceCallAttendance serviceCallAttendance = new Entity.Service.ServiceCallAttendance();
         serviceCallAttendance.RequestNo  = (string.IsNullOrEmpty(txtDocketNo.Text.Trim()) ? string.Empty : txtDocketNo.Text.Trim());
         serviceCallAttendance.MachineId  = (string.IsNullOrEmpty(txtMachineId.Text.Trim()) ? string.Empty : txtMachineId.Text.Trim());
         serviceCallAttendance.EmployeeId = Convert.ToInt32(ddlEngineer.SelectedValue);
         //serviceCallAttendance.FromDate = (string.IsNullOrEmpty(txtFromInDate.Text.Trim()) ? DateTime.MinValue : Convert.ToDateTime(txtFromInDate.Text.Trim()));
         //serviceCallAttendance.ToDate = (string.IsNullOrEmpty(txtToInDate.Text.Trim()) ? DateTime.MinValue : Convert.ToDateTime(txtToInDate.Text.Trim()));
         DataSet dsCallAttendance = objService.Service_ServiceCallAttendance_GetAll(serviceCallAttendance);
         gvCallAttendance.DataSource = dsCallAttendance.Tables[0];
         gvCallAttendance.DataBind();
     }
     catch (Exception ex)
     {
         ex.WriteException();
         Message.IsSuccess = false;
         Message.Text      = ex.Message;
         Message.Show      = true;
     }
 }