public static DataTable Get_VoyageReportIndex(string ReportType, int VesselID, int LocationCode, string FromDate, string ToDate, int FleetID, int?Page_Index, int?Page_Size, ref int Record_Count, string Sort_Column, string Sort_Direction) { DateTime fromdt = DateTime.Parse(FromDate); DateTime todt = DateTime.Parse(ToDate); return(DAL_OPS_VoyageReports.Get_VoyageReportIndex_DL(ReportType, VesselID, LocationCode, fromdt, todt, FleetID, Page_Index, Page_Size, ref Record_Count, Sort_Column, Sort_Direction)); }
public static DataTable Get_VoyageReportIndex(string ReportType, int VesselID, int LocationCode, string sFromDate, string sToDate, int FleetID) { DateTime?FromDate; DateTime?ToDate; if (sFromDate == "") { FromDate = null; } else { FromDate = DateTime.Parse(sFromDate); } if (sToDate == "") { ToDate = null; } else { ToDate = DateTime.Parse(sToDate); } return(DAL_OPS_VoyageReports.Get_VoyageReportIndex_DL(ReportType, VesselID, LocationCode, FromDate, ToDate, FleetID)); }