Beispiel #1
0
 public ActionResult NatureCodes_LoadByID(CIMS.BaseLayer.Setting.NatureEventBase eventBase)
 {
     try
     {
         actionResult.dtResult = EventDL.NatureCodes_LoadByID(eventBase);
         if (actionResult.dtResult != null && actionResult.dtResult.Rows.Count > 0)
         {
             actionResult.IsSuccess = true;
         }
     }
     catch (Exception ex)
     {
         ErrorReporting.ActionLayerError(ex);
     }
     return(actionResult);
 }
Beispiel #2
0
 public DataTable NatureCodes_LoadByID(CIMS.BaseLayer.Setting.NatureEventBase eventBase)
 {
     dtContainer = new DataTable();
     try
     {
         MyParameter[] myParams =
         {
             new MyParameter("@Id", eventBase.ID)
         };
         Common.Set_Procedures("NatureCodes_LoadByID");
         Common.Set_ParameterLength(myParams.Length);
         Common.Set_Parameters(myParams);
         dtContainer = Common.Execute_Procedures_LoadData();
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return(dtContainer);
 }