public string[] GetEmployees() { string[] employees; try { employees = new FuelDataService().GetEmployees(); } catch (System.Exception exception1) { System.Exception innerException = exception1; throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException); } return employees; }
public FuelObjectCollection GetAll() { FuelObjectCollection Fuels; try { Fuels = new FuelDataService().GetAll(); } catch (System.Exception exception1) { System.Exception innerException = exception1; throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException); } return Fuels; }
public FuelObjectCollection GetFilter(string supplier, int fuelType, string employee, string vehicle, DateTime dateFrom, DateTime dateTo, Boolean privateFuel) { FuelObjectCollection Fuels; try { Fuels = new FuelDataService().GetFilter(supplier, fuelType, employee,vehicle,dateFrom, dateTo, privateFuel); } catch (System.Exception exception1) { System.Exception innerException = exception1; throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException); } return Fuels; }
public string[] GetSuppliers() { string[] suppliers; try { suppliers = new FuelDataService().GetSuppliers(); } catch (System.Exception exception1) { System.Exception innerException = exception1; throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException); } return suppliers; }
public FuelObjectCollection GetForbiddenFuelNotSendMail(string supplier, int transc_NawID, DateTime dateFrom, DateTime dateTo) { FuelObjectCollection Fuels; try { Fuels = new FuelDataService().GetForbiddenFuelNotSendMail(supplier, transc_NawID, dateFrom, dateTo); } catch (System.Exception exception1) { System.Exception innerException = exception1; throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException); } return Fuels; }
public FuelObjectCollection GetFilter( DateTime dateFrom, DateTime dateTo,string vehiclesNotIncluded, string suppliersIncluded) { FuelObjectCollection FuelsFiltered; FuelObjectCollection Fuels; try { Fuels = new FuelDataService().GetFilter("",-1,"","",dateFrom,dateTo); FuelsFiltered = new FuelObjectCollection(); foreach (FuelObject fuel in Fuels) { if (!vehiclesNotIncluded.Contains(fuel.VehicleLicensePlate)) { if (suppliersIncluded.Contains(fuel.Supplier)) { FuelsFiltered.Add(fuel); } } } } catch (System.Exception exception1) { System.Exception innerException = exception1; throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException); } return FuelsFiltered; }