コード例 #1
0
        public static void GetTextAboutServiceWithMetrics(int index,
                                                          int client_id, int month, out string label25, out string label27,
                                                          out string label28, out string label30, out string label32, out string label34)
        {
            label25 = ServicesHandler
                      .getServiceTariff(index)
                      .ToString();

            label27 = ServicesHandler
                      .getServiceUsage(index, client_id, month)
                      .ToString();

            label28 = PaymentHandler
                      .getServiceCost(index, client_id, month)
                      .ToString();

            label30 = PaymentHandler
                      .getVirtualMoneyInCash(index, client_id)
                      .ToString();

            label32 = PaymentHandler
                      .TotalToPay(index, client_id, month)
                      .ToString();

            label34 = DebtHandler
                      .MainDebtHandler(index, client_id, month)
                      .ToString();
        }
コード例 #2
0
        public static void SetTextForStaticService(int index,
                                                   int client_id, int month, decimal dwelling_space, out string label25, out string label27,
                                                   out string label28, out string label30, out string label32, out string label34)
        {
            label25 = ServicesHandler
                      .getServiceTariff(index)
                      .ToString();

            label27 = "none";

            label28 = PaymentHandler
                      .getStaticServiceCost(index, client_id, dwelling_space)
                      .ToString();

            label30 = PaymentHandler
                      .getVirtualMoneyInCash(index, client_id)
                      .ToString();

            label32 = PaymentHandler
                      .TotalToPay(index, client_id, dwelling_space)
                      .ToString();

            label34 = DebtHandler
                      .MainDebtHandler(index, client_id, month)
                      .ToString();
        }
コード例 #3
0
        public static bool MainServiceDataProvider(int index, int client_id, int currMonth, decimal dwelling_space)
        {
            if (index + 1 < 5)
            {
                if (ServicesHandler.ScoutForSelectedServiceMetrics(index, client_id, currMonth))
                {
                    return(true);
                }
                else
                {
                    ServicesHandler.CreateServiceMetrics(index, client_id, currMonth);
                }

                return(true);
            }
            else
            {
                return(false);
            }
        }
コード例 #4
0
 public static decimal getStaticServiceCost(int index, int client_id, decimal dwelling_space) => dwelling_space *ServicesHandler.getServiceTariff(index);
コード例 #5
0
 public static decimal getServiceCost(int index, int client_id, int month) => ServicesHandler.getServiceUsage(index, client_id, month) * ServicesHandler.getServiceTariff(index);