コード例 #1
0
ファイル: Fuel.cs プロジェクト: GianiWVL/VUYLSTEKE
 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;
 }
コード例 #2
0
ファイル: Fuel.cs プロジェクト: GianiWVL/VUYLSTEKE
 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;
 }
コード例 #3
0
ファイル: Fuel.cs プロジェクト: GianiWVL/VUYLSTEKE
 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;
 }
コード例 #4
0
ファイル: Fuel.cs プロジェクト: GianiWVL/VUYLSTEKE
 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;
 }
コード例 #5
0
ファイル: Fuel.cs プロジェクト: GianiWVL/VUYLSTEKE
 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;
 }
コード例 #6
0
ファイル: Fuel.cs プロジェクト: GianiWVL/VUYLSTEKE
        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;
        }