Exemplo n.º 1
0
        public ActionResult AnotherChargeSearch(EasyUIGridParamModel param, AnotherCharge aCharge)
        {
            int            itemCount  = 0;
            List <dynamic> chargeList = new AnotherChargeRule().AnotherChargeSearch(param, aCharge, out itemCount);
            var            showList   = from anotherCharge in chargeList
                                        select new
            {
                ID           = anotherCharge.ID,
                CustomerName = anotherCharge.CUSTOMERNAME,
                Money        = anotherCharge.MONEY,
                ActMoney     = anotherCharge.ACTMONEY,
                Remark       = anotherCharge.REMARK,
                ChargeDate   = TimeParser.FormatDateTime(anotherCharge.CHARGEDATE),
                OperatorName = anotherCharge.OPERATORNAME,
                Detail       = "查看详细"
            };

            return(Json(new { total = chargeList.Count, rows = showList }, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 2
0
        public ActionResult SearchAgree(EasyUIGridParamModel param, Agreements agree, Ajax.Model.Customer c)
        {
            int            itemCount = 0;
            List <dynamic> agreeList = new AgreementsRule().SearchAgree(param, agree, c, out itemCount);
            var            showList  = from a in agreeList
                                       select new
            {
                ID            = a.ID,
                CONTRASTID    = a.ID,
                CUSTOMERID    = a.CUSTOMERID,
                CODE          = a.CODE,
                NAME          = a.NAME,
                MONEY         = a.MONEY,
                BEGINDATE     = a.BEGINDATE,
                AGREEMENTCODE = a.AGREEMENTCODE,
                ENDDATE       = TimeParser.FormatDateTime(a.ENDDATE),
                STATUS        = Convert.ToString(a.STATUS).Replace("0", "未审核").Replace("1", "已审核").Replace("2", "已删除")
            };

            return(Json(new { total = itemCount, rows = showList }, JsonRequestBehavior.AllowGet));
        }