Esempio n. 1
0
        public async Task <JsonResult> ftMultiplePayment(jQueryDataTableParamModel Params)
        {
            var _filtered = new List <MultiPayment>();
            var list      = (await MultiPaymentOpService.WebMultiPaymentListSelect()).multiPayments;

            if (!string.IsNullOrEmpty(Params.sSearch))
            {
                Params.sSearch = Params.sSearch.ToLower();
            }
            if (!string.IsNullOrEmpty(Params.sSearch))
            {
                _filtered = list.Where(p => (!string.IsNullOrEmpty(p.BatchId) ? p.BatchId : string.Empty).ToLower().Contains(Params.sSearch) ||
                                       (!string.IsNullOrEmpty(p.CreationDate) ? p.CreationDate : string.Empty).ToLower().Contains(Params.sSearch)).ToList();

                _filtered = _filtered.Skip(Params.iDisplayStart).Take(Params.iDisplayLength).ToList();
            }
            else
            {
                _filtered = list.Skip(Params.iDisplayStart).Take(Params.iDisplayLength).ToList();
            }

            return(Json(new
            {
                sEcho = Params.sEcho,
                iTotalRecords = list.Count,
                iTotalDisplayRecords = list.Count,
                aaData = _filtered.Select(x => new object[] { null, x.BatchId, x.CreationDate, x.SelectedTxnCode, x.RefNo, x.ChequeNo, x.TxnCnt, x.BillingAmt, x.SelectedOwner, x.SelectedSts })//, x.XRefCardNo
            }, JsonRequestBehavior.AllowGet));
        }
Esempio n. 2
0
        public async Task <JsonResult> ftMultiplePaymentMaint(TxnAdjustment _MultipleTxn)
        {
            _MultipleTxn.SelectedTxnCd = _MultipleTxn.SelectedTxnCode;
            _MultipleTxn.UserId        = GetUserId;
            var _saveMultiAdj = await MultiPaymentOpService.SaveWebMultiPaymentMaint(_MultipleTxn);

            var BatchId = _saveMultiAdj.returnValue.BatchId;

            return(Json(new { resultCd = _saveMultiAdj, batchId = BatchId }, JsonRequestBehavior.AllowGet));
        }
Esempio n. 3
0
        public async Task <ActionResult> WebGetAltPymtTxnCd(string GlSettlementCd)
        {
            var list = await MultiPaymentOpService.GetPymtTxnCd(GlSettlementCd, "Pymt");

            return(Json(list, JsonRequestBehavior.AllowGet));
        }
Esempio n. 4
0
        public async Task <ActionResult> WebGetGLCode(jQueryDataTableParamModel Params, MultiPayment _multipayment)
        {
            var list = (await MultiPaymentOpService.WebGetGLCodeByTxnCd(_multipayment.SelectedTxnCode, _multipayment.SelectedGLSettlement, _multipayment.AcctNo)).multiPayments;

            return(Json(list, JsonRequestBehavior.AllowGet));
        }
Esempio n. 5
0
        public async Task <JsonResult> WebMultiPaymentSelect(string BatchId, MultiPayment _MultiPymt)
        {
            var multipaymentSelectObj = (await MultiPaymentOpService.WebMultiPaymentSelect(BatchId, _MultiPymt)).multiPayment;

            return(Json(new { list = multipaymentSelectObj }, JsonRequestBehavior.AllowGet));
        }