コード例 #1
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();
        }
コード例 #2
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();
        }
コード例 #3
0
        public static decimal TotalToPay(int index, int client_id, int month)
        {
            decimal realmoney    = getServiceCost(index, client_id, month);
            decimal virtualmoney = getVirtualMoneyInCash(index, client_id);
            decimal debt         = DebtHandler.MainDebtHandler(index, client_id, month);

            if (virtualmoney < 0)
            {
                virtualmoney = 0;
            }

            if (debt < 0)
            {
                debt = 0;
            }

            return(Math.Abs(realmoney - virtualmoney - debt));
        }