Exemplo n.º 1
0
        public ActionResult CashierFNB()
        {
            ViewData["Employees"]            = DDRep.GetEmployeeList();
            ViewData["Movements"]            = DDRep.GetMovementTypeList();
            ViewData["MoneyUnit"]            = DDRep.GetMoneyUnitList();
            ViewData["ElectronicType"]       = DDRep.GetElectronicFundTypeListC();
            ViewData["ReconciliationTypeID"] = DDRep.GetCashReconList();
            ViewData["InstantMoneyType"]     = DDRep.GetInstantMoneyType();
            ViewData["FNBType"]     = DDRep.GetFNBType();
            ViewData["KwikPayType"] = DDRep.GetKwikPayType();

            CashMovementMultiple ins = new CashMovementMultiple();

            ins.Movements = new List <CashMovement>();

            for (int i = 1; i <= 12; i++)
            {
                ins.Movements.Add(new CashMovement());
                ins.Movements[i - 1].MoneyUnitID = i;
                ins.Movements[i - 1].moneyunit   = MuRep.GetMoneyUnitString(i);
                ins.MovementTypeID = 2;
            }

            CashierFNB model = new CashierFNB();

            model.CashMovements  = ins;
            model.ElectronicFund = new ElectronicFund();
            model.ElectronicFund.MovementTypeID = 2;
            model.FNB = new FNB();


            return(View(model));
        }
Exemplo n.º 2
0
        public ActionResult _InsertFNBFromMultiFNB(CashierFNB ins)
        {
            //ins.KiwkPay.ActualDate = ins.ActualDate;
            //ins.KiwkPay.EmployeeID = ins.EmployeeID.ToString();
            FNB ins2 = FNBRep.Insert(ins.FNB);

            if (ins2.FNBID != 0)
            {
                return(Content(ins2.Amount.ToString(), "text/html"));
            }
            else
            {
                return(Content("0", "text/html"));
            }
        }
Exemplo n.º 3
0
        public ActionResult _InsertElectronicFromMultiFNB(CashierFNB ins)
        {
            //ins.ElectronicFund.ActualDate = ins.ActualDate;
            //ins.ElectronicFund.EmployeeID = ins.EmployeeID;
            ElectronicFund ins2 = ELRep.Insert(ins.ElectronicFund);

            if (ins2.ElectronicFundID != 0)
            {
                return(Content(ins2.Total.ToString(), "text/html"));
            }
            else
            {
                return(Content("0", "text/html"));
            }
        }
Exemplo n.º 4
0
        public ActionResult _InsertMultipleCashCashierFNB(CashierFNB ins)
        {
            decimal total = 0;

            for (int i = 0; i < 12; i++)
            {
                ins.CashMovements.Movements[i].ActualDate     = ins.CashMovements.ActualDate;
                ins.CashMovements.Movements[i].MovementTypeID = ins.CashMovements.MovementTypeID;
                ins.CashMovements.Movements[i].EmployeeID     = ins.CashMovements.EmployeeID;
                ins.CashMovements.Movements[i].Amount         = ins.CashMovements.Movements[i].Count * MuRep.GetMoneyUnitValue(ins.CashMovements.Movements[i].MoneyUnitID);
                ins.CashMovements.Movements[i] = CashRep.Insert(ins.CashMovements.Movements[i]);

                if (ins.CashMovements.Movements[i].CashMovementID != 0)
                {
                    total = total + ins.CashMovements.Movements[i].Amount;
                }
            }

            return(Content(total.ToString(), "text/html"));
        }
Exemplo n.º 5
0
 public ActionResult _CashierFNBReportShow(CashierFNB ins)
 {
     ins.Report = RepRep.GetCashierFNBReport(ins.ReportActualDate, ins.ReportEmployeeID);
     return(PartialView("_CashierFNBReportShow", ins));
 }