Beispiel #1
0
        public ActionResult CreateOutPut(int pIdCashRegister)
        {
            var lMCashRegister = new MCashRegister
            {
                LIdCashRegister = pIdCashRegister
            };

            return(this.View(lMCashRegister));
        }
Beispiel #2
0
        public ActionResult Delete(MCashRegister pCashRegister, int pIdCash, bool pIsInput)
        {
            var lResult = this.LiCashRegister.bll_DeleteCash(pIdCash, pIsInput);

            if (string.IsNullOrEmpty(lResult))
            {
                return(RedirectToAction("Index"));
            }
            pCashRegister.LMessageException = lResult;
            return(this.View(pCashRegister));
        }
Beispiel #3
0
        public ActionResult CreateOutPut(MCashRegister pCashRegister)
        {
            var lResult = this.LiCashRegister.bll_CreateCashOutput(pCashRegister.LIdCashRegister, pCashRegister.LValue, pCashRegister.LDescription);

            if (string.IsNullOrEmpty(lResult))
            {
                return(RedirectToAction("Index"));
            }
            pCashRegister.LMessageException = lResult;
            return(this.View(pCashRegister));
        }
        public static MCashRegister ToMCashRegister(this BoCashRegister pCashRegister)
        {
            var lMCashRegister = new MCashRegister
            {
                LDescription      = pCashRegister.LDescription,
                LIdCash           = pCashRegister.LIdCash,
                LIdCashRegister   = pCashRegister.LIdCashRegister,
                LIsInput          = pCashRegister.LIsInput,
                LValue            = pCashRegister.LValue,
                LCreationDate     = pCashRegister.LCreationDate,
                LModificationDate = pCashRegister.LModificationDate
            };

            return(lMCashRegister);
        }
        public static List <MCashRegister> MListCashhRegister(this List <BoCashRegister> pListCashRegister)
        {
            var lMListCashRegister = new List <MCashRegister>();

            pListCashRegister.ForEach(x => {
                var lMCashRegister = new MCashRegister
                {
                    LDescription      = x.LDescription,
                    LIdCash           = x.LIdCash,
                    LIdCashRegister   = x.LIdCashRegister,
                    LIsInput          = x.LIsInput,
                    LValue            = x.LValue,
                    LCreationDate     = x.LCreationDate,
                    LModificationDate = x.LModificationDate
                };
                lMListCashRegister.Add(lMCashRegister);
            });
            return(lMListCashRegister);
        }