private static void Water(FileHandlerBase <GenericDataContract> handler, GenericDataContract obj) { var data = new WaterDataContract { CostCode = obj.CostCode, EndDate = obj.EndDate, Money = obj.Money, RowNo = obj.RowNo, SourceId = obj.SourceId, StartDate = obj.StartDate, Units = obj.Units }; handler.CallService <IWaterService>(service => service.UpsertDataEntry(data)); }
private static void CommutingTrain(FileHandlerBase <GenericDataContract> handler, GenericDataContract obj) { var data = new CommutingDataContract { CostCode = obj.CostCode, EndDate = obj.EndDate, Money = obj.Money, RowNo = obj.RowNo, SourceId = obj.SourceId, StartDate = obj.StartDate, Units = obj.Units, CommutingType = CommutingType.Train }; handler.CallService <ICommutingService>(service => service.UpsertDataEntry(data)); }
private static void CarHireP(FileHandlerBase <GenericDataContract> handler, GenericDataContract obj) { var data = new CarHireDataContract { CostCode = obj.CostCode, EndDate = obj.EndDate, Money = obj.Money, RowNo = obj.RowNo, SourceId = obj.SourceId, StartDate = obj.StartDate, Units = obj.Units, CarGroupBill = CarGroupBill.P }; handler.CallService <ICarHireService>(service => service.UpsertDataEntry(data)); }
private static void Refrigerant410A(FileHandlerBase <GenericDataContract> handler, GenericDataContract obj) { var data = new RefrigerantDataContract { CostCode = obj.CostCode, EndDate = obj.EndDate, Money = obj.Money, RowNo = obj.RowNo, SourceId = obj.SourceId, StartDate = obj.StartDate, Units = obj.Units, RefrigerantType = RefrigerantType.R410A }; handler.CallService <IRefrigerantService>(service => service.UpsertDataEntry(data)); }
private static void Electricity(FileHandlerBase <GenericDataContract> handler, GenericDataContract obj) { var data = new ElectricityDataContract { CostCode = obj.CostCode, EndDate = obj.EndDate, Money = obj.Money, RowNo = obj.RowNo, SourceId = obj.SourceId, StartDate = obj.StartDate, Units = obj.Units, ElectricityType = ElectricityType.SouthAfricanNationalGrid }; handler.CallService <IElectricityService>(service => service.UpsertDataEntry(data)); }
private static void AirTravelBusiness(FileHandlerBase <GenericDataContract> handler, GenericDataContract obj) { var data = new AirTravelDataContract { CostCode = obj.CostCode, EndDate = obj.EndDate, Money = obj.Money, RowNo = obj.RowNo, SourceId = obj.SourceId, StartDate = obj.StartDate, Units = obj.Units, TravelClass = TravelClass.Business }; handler.CallService <IAirTravelService>(service => service.UpsertDataEntry(data)); }
private static void FuelCoalDomesticTonnes(FileHandlerBase <GenericDataContract> handler, GenericDataContract obj) { var data = new FuelDataContract { CostCode = obj.CostCode, EndDate = obj.EndDate, Money = obj.Money, RowNo = obj.RowNo, SourceId = obj.SourceId, StartDate = obj.StartDate, Units = obj.Units, FuelType = WCF.Fuel.FuelType.CoalDomestic, UOM = UnitOfMeasure.Tonnes }; handler.CallService <IFuelService>(service => service.UpsertDataEntry(data)); }
private static void PaperMondiA3Tonnes(FileHandlerBase <GenericDataContract> handler, GenericDataContract obj) { var data = new PaperDataContract { CostCode = obj.CostCode, EndDate = obj.EndDate, Money = obj.Money, RowNo = obj.RowNo, SourceId = obj.SourceId, StartDate = obj.StartDate, Units = obj.Units, PaperType = PaperType.MondiA3, PaperUom = PaperUom.Tonnes }; handler.CallService <IPaperService>(service => service.UpsertDataEntry(data)); }
private static void FleetPetrolThirdParty(FileHandlerBase <GenericDataContract> handler, GenericDataContract obj) { var data = new FleetDataContract { CostCode = obj.CostCode, EndDate = obj.EndDate, Money = obj.Money, RowNo = obj.RowNo, SourceId = obj.SourceId, StartDate = obj.StartDate, Units = obj.Units, FuelType = FuelType.Petrol, Scope = FleetScope.ThirdParty }; handler.CallService <IFleetService>(service => service.UpsertDataEntry(data)); }