Exemplo n.º 1
0
        public static bool IsClientInUse(int id)
        {
            Dictionary <string, object> parameters = new Dictionary <string, object>
            {
                { "Id", id }
            };

            return(WebApi <bool> .GetData(controllerName, "GetIsClientInUse", parameters));
        }
Exemplo n.º 2
0
        public static List <BookingCostCenterMapping> GetAllByYear(int year)
        {
            Dictionary <string, object> parameters = new Dictionary <string, object>
            {
                { "Year", year },
            };

            return(WebApi <List <BookingCostCenterMapping> > .GetData(controllerName, "GetAllByYear", parameters));
        }
Exemplo n.º 3
0
        public static bool DeleteByRefItemPriceCalculationItemId(int RefItemPriceCalculationItemId)
        {
            Dictionary <string, object> parameters = new Dictionary <string, object>
            {
                { "RefItemPriceCalculationItemId", RefItemPriceCalculationItemId },
            };

            return(WebApi <bool> .GetData(controllerName, "DeleteByRefItemPriceCalculationItemId", parameters));
        }
Exemplo n.º 4
0
        public static List <ItemPriceCalculationItem> GetByCostCenter(int RefCostCenterId)
        {
            Dictionary <string, object> parameters = new Dictionary <string, object>
            {
                { "RefCostCenterId", RefCostCenterId },
            };

            return(WebApi <List <ItemPriceCalculationItem> > .GetData(controllerName, "GetByCostCenter", parameters));
        }
Exemplo n.º 5
0
        public static List <TimeBooking> GetDataSinceDayForRefUserId(DateTime date, int refUserId)
        {
            Dictionary <string, object> parameters = new Dictionary <string, object>
            {
                { "date", date },
                { "refUserId", refUserId },
            };

            return(WebApi <List <TimeBooking> > .GetData(controllerName, "GetDataSinceDayForRefUserId", parameters));
        }
Exemplo n.º 6
0
        public static List <BalanceAccountResultDetailItem> GetPassiveAccountsDetailed(DateTime StartDate, DateTime EndDate)
        {
            Dictionary <string, object> parameters = new Dictionary <string, object>
            {
                { "StartDate", StartDate },
                { "EndDate", EndDate }
            };

            return(WebApi <List <BalanceAccountResultDetailItem> > .GetData(controllerName, "GetPassiveAccountsDetailed", parameters));
        }
Exemplo n.º 7
0
        public static User GetUserByNameAndPassword(string username, string password)
        {
            Dictionary <string, object> parameters = new Dictionary <string, object>
            {
                { "username", username },
                { "password", password }
            };

            return(WebApi <User> .GetData(controllerName, "GetUserByNameAndPassword", parameters));
        }
Exemplo n.º 8
0
        public static StockedProduct GetByRefProductIdAndRefStockyardId(int refProductId, int refStockyardId)
        {
            Dictionary <string, object> parameters = new Dictionary <string, object>
            {
                { "refProductId", refProductId },
                { "refStockyardId", refStockyardId }
            };

            return(WebApi <StockedProduct> .GetData(controllerName, "GetByRefProductIdAndRefStockyardId", parameters));
        }
        public static List <WarehouseStockingHistory> GetLast10(int RefProductId, int RefStockyardId)
        {
            Dictionary <string, object> parameters = new Dictionary <string, object>
            {
                { "RefProductId", RefProductId },
                { "RefStockyardId", RefStockyardId }
            };

            return(WebApi <List <WarehouseStockingHistory> > .GetData(controllerName, "GetLast10", parameters));
        }
Exemplo n.º 10
0
        public static List <CostCenterCurrentCosts> GetAnnuallyCosts(int RefCostCenterId, int Year)
        {
            Dictionary <string, object> parameters = new Dictionary <string, object>
            {
                { "RefCostCenterId", RefCostCenterId },
                { "Year", Year }
            };

            return(WebApi <List <CostCenterCurrentCosts> > .GetData(controllerName, "GetAnnuallyCosts", parameters));
        }
Exemplo n.º 11
0
        public static decimal GetBudgetForId(int costCenterId, int year)
        {
            Dictionary <string, object> parameters = new Dictionary <string, object>
            {
                { "CostCenterId", costCenterId },
                { "Year", year },
            };

            return(WebApi <decimal> .GetData(controllerName, "GetBudgetForId", parameters));
        }
Exemplo n.º 12
0
        public static TimeBalance GetLastByDateAndRefUserId(DateTime Date, int RefUserId)
        {
            Dictionary <string, object> parameters = new Dictionary <string, object>
            {
                { "Date", Date },
                { "RefUserId", RefUserId },
            };

            return(WebApi <TimeBalance> .GetData(controllerName, "GetLastByDateAndRefUserId", parameters));
        }
Exemplo n.º 13
0
        public static List <CarBody> GetByRefCarModelId(int RefCarModelId)
        {
            Dictionary <string, object> parameters = new Dictionary <string, object>
            {
                { "RefCarModelId", RefCarModelId },
            };

            return(WebApi <List <CarBody> > .GetData(controllerName, "GetByRefCarModelId", parameters));

            //return WebApi<List<CarBody>>.GetDataById(controllerName, RefCarModelId, "GetByRefCarModelId");
        }
Exemplo n.º 14
0
        public static List <Booking> GetByParameter(DateTime startDate, DateTime endDate, int?costAccountCreditorId = null, int?costAccountDebitorId = null, bool OnlyCanceledBookings = false)
        {
            Dictionary <string, object> parameters = new Dictionary <string, object>
            {
                { "startDate", startDate },
                { "endDate", endDate },
                { "costAccountCreditorId", costAccountCreditorId },
                { "costAccountDebitorId", costAccountDebitorId }
            };

            if (OnlyCanceledBookings)
            {
                parameters.Add("OnlyCanceledBookings", OnlyCanceledBookings);
            }
            return(WebApi <List <Booking> > .GetData(controllerName, "GetByParameter", parameters));
        }
Exemplo n.º 15
0
 public static List <CarMake> GetAll()
 {
     return(WebApi <List <CarMake> > .GetData(controllerName));
 }
Exemplo n.º 16
0
 public static List <TimeHolidayType> GetAll()
 {
     return(WebApi <List <TimeHolidayType> > .GetData(controllerName));
 }
 public static List <CostAccountCategory> GetAll()
 {
     return(WebApi <List <CostAccountCategory> > .GetData(controllerName));
 }
 public static int GetDebitorId()
 {
     return(WebApi <int> .GetData(controllerName, "GetDebitorId"));
 }
Exemplo n.º 19
0
 public static List <ShipmentType> GetAll()
 {
     return(WebApi <List <ShipmentType> > .GetData(controllerName));
 }
 public static List <GainAndLossAccount> GetAll()
 {
     return(WebApi <List <GainAndLossAccount> > .GetData(controllerName));
 }
Exemplo n.º 21
0
 public static List <SalesOrder> GetAll()
 {
     return(WebApi <List <SalesOrder> > .GetData(controllerName));
 }
Exemplo n.º 22
0
 public static List <SalesOrder> GetOpenedSalesOrders()
 {
     return(WebApi <List <SalesOrder> > .GetData(controllerName, "GetOpenedSalesOrders"));
 }
Exemplo n.º 23
0
 public static List <Booking> GetAll()
 {
     return(WebApi <List <Booking> > .GetData(controllerName));
 }
Exemplo n.º 24
0
 public static List <Invoice> GetOpenInvoices()
 {
     return(WebApi <List <Invoice> > .GetData(controllerName, "GetOpenInvoices"));
 }
Exemplo n.º 25
0
 public static List <Product> GetAll()
 {
     return(WebApi <List <Product> > .GetData(controllerName));
 }
Exemplo n.º 26
0
 public static List <Debitor> GetAll()
 {
     return(WebApi <List <Debitor> > .GetData(controllerName));
 }
Exemplo n.º 27
0
 public static List <ScannedDocument> GetAll()
 {
     return(WebApi <List <ScannedDocument> > .GetData(controllerName));
 }
Exemplo n.º 28
0
 public static List <ProjectRole> GetAll()
 {
     return(WebApi <List <ProjectRole> > .GetData(controllerName));
 }
Exemplo n.º 29
0
 public static List <InvoiceType> GetAll()
 {
     return(WebApi <List <InvoiceType> > .GetData(controllerName));
 }
Exemplo n.º 30
0
 public static List <CostCenter> GetAll()
 {
     return(WebApi <List <CostCenter> > .GetData(controllerName));
 }