コード例 #1
0
 public ActionResult Link_EmployeeReport(eventemployeereport objreport)
 {
     actionResult = new ActionResult();
     try
     {
         actionResult.dtResult = EventDL.Link_EmployeeReport(objreport);
         if (actionResult.dtResult != null && actionResult.dtResult.Rows.Count > 0)
         {
             actionResult.IsSuccess = true;
         }
     }
     catch (Exception ex)
     {
     }
     return(actionResult);
 }
コード例 #2
0
ファイル: EventDL.cs プロジェクト: Jaylala03/CIMS
 public DataTable Link_EmployeeReport(eventemployeereport objreport)
 {
     dtContainer = new DataTable();
     try
     {
         MyParameter[] myParams =
         {
             new MyParameter("@EventID",    objreport.eventid),
             new MyParameter("@EmployeeID", objreport.employeeid),
             new MyParameter("@IncidentID", objreport.incidentid),
         };
         Common.Set_Procedures("EventEmployeeReportLink_IU");
         Common.Set_ParameterLength(myParams.Length);
         Common.Set_Parameters(myParams);
         dtContainer = Common.Execute_Procedures_LoadData();
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return(dtContainer);
 }