Esempio n. 1
0
        public bool InsertExpense(string expenseContent, string dcrDate, string dcrStatus, string dailyAllowance, string dcrFlag)
        {
            try
            {
                bool       result     = false;
                DCRExpense objExpense = new DCRExpense();
                result = objExpense.InsertExpense(expenseContent, dcrDate, dcrStatus, dailyAllowance, dcrFlag);

                return(result);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Esempio n. 2
0
        public double GetExpenseSum(FormCollection collection)
        {
            try
            {
                double     sum        = 0.0;
                DCRExpense objExpense = new DCRExpense();

                sum = objExpense.GetExpenseSum(collection["dcrDate"].ToString(), collection["expenseMode"].ToString(), collection["expenseTypeCode"].ToString());
                return(sum);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }