Beispiel #1
0
        private void IUD()
        {
            string        sql = "exec [SMS].[IUDPaymentDetails]";
            List <string> lst = new List <string>();

            this.EntityID    = SelectedExpense.StaticID.ToString();
            this.EntityType  = "Expense";
            this.PaymentType = SelectedExpense.StaticName.ToString();
            //SelectedFees.StaticID.ToString();
            this.TransType = "D";
            //this.PaymentExpenseDate = ExpenseDate;
            ExpenseDateStr = ExpenseDate.ToString("yyyy-MM-dd");
            lst.Add(ID);
            lst.Add(EntityID);
            lst.Add(EntityType);
            lst.Add(PaymentType);
            lst.Add(TransType);
            lst.Add(Amount);
            lst.Add(Comments);
            lst.Add(IUDFlag);
            lst.Add(Schoolid);
            lst.Add(AcademicYear);
            lst.Add(ModeofPayment);
            lst.Add(ChequeNo);
            lst.Add(BankBranchDetails);
            lst.Add(ExpenseDateStr);
            lst.Add(string.Empty);

            DataTable dtResult = DAL.Select(sql, lst);

            GetExpenseDetails();
            //GeneratePaymentReciept();
        }
Beispiel #2
0
 public override int GetHashCode()
 {
     if (ExpenseVendor != null)
     {
         return(ExpenseVendor.GetHashCode() + Convert.ToInt32(ExpensePrice) + ExpenseDate.ToString().GetHashCode());
     }
     else
     {
         return(Convert.ToInt32(ExpensePrice) + ExpenseDate.ToString().GetHashCode());
     }
 }