public ActionResult _InsertMultipleCashCashierInstantMoney(CashierInstantMoney 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"); }
public ActionResult _InsertInstantMoneyFromMultiInstantMoney(CashierInstantMoney ins) { //ins.KiwkPay.ActualDate = ins.ActualDate; //ins.KiwkPay.EmployeeID = ins.EmployeeID.ToString(); InstantMoney ins2 = ImRep.Insert(ins.InstantMoney); if (ins2.InstantMoneyID != 0) { return Content(ins2.Amount.ToString(), "text/html"); } else { return Content("0", "text/html"); } }
public ActionResult _CashierInstantMoneyReport(CashierInstantMoney ins) { ins.Report = RepRep.GetCashierInstantMoneyReport(ins.ReportActualDate, ins.ReportEmployeeID); return PartialView("_CashierInstantMoneyReport", ins); }
public ActionResult _InsertElectronicFromMultiInstantMoney(CashierInstantMoney 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"); } }
public ActionResult CashierInstantMoney() { ViewData["Employees"] = DDRep.GetEmployeeList(); ViewData["Movements"] = DDRep.GetMovementTypeList(); ViewData["MoneyUnit"] = DDRep.GetMoneyUnitList(); ViewData["ElectronicType"] = DDRep.GetElectronicFundTypeListC(); ViewData["ReconciliationTypeID"] = DDRep.GetCashReconList(); ViewData["InstantMoneyType"] = DDRep.GetInstantMoneyTypeC(); 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 = 4; } CashierInstantMoney model = new CashierInstantMoney(); model.CashMovements = ins; model.ElectronicFund = new ElectronicFund(); model.ElectronicFund.MovementTypeID = 4; model.InstantMoney = new InstantMoney(); return View(model); }