コード例 #1
0
ファイル: DebtHandler.cs プロジェクト: s3nnou/kursovayarabota
 public static bool ServiceDebtScout(debt_table debt)
 {
     if (debt == null)
     {
         return(false);
     }
     else
     {
         return(true);
     }
 }
コード例 #2
0
ファイル: DebtHandler.cs プロジェクト: s3nnou/kursovayarabota
        public static decimal MainDebtHandler(int index, int client_id, int month)
        {
            List <active_debts> debts = getActiveDebtRecods(client_id);

            foreach (active_debts item in debts)
            {
                debt_table debt = getDebtRecordById((int)item.debt_id);

                if ((debt.service_id == index + 1) && (debt.month_id == month - 1))
                {
                    return((decimal)getDebtRecordById((int)item.debt_id).debt);
                }
            }

            return(-1);
        }
コード例 #3
0
ファイル: DebtHandler.cs プロジェクト: s3nnou/kursovayarabota
 public static decimal getDebtCost(debt_table debt) => (decimal)debt.debt;