Esempio n. 1
0
        //获取单据数据
        public ActionResult GetSccjInfo()
        {
            int pageIndex = Request["page"] != null?int.Parse(Request["page"]) : 1;

            int pageSize = Request["rows"] != null?int.Parse(Request["rows"]) : 25;

            int toalcount = 0;
            var temp      = T_SCCJService.LoadPageEntities(pageIndex, pageSize, out toalcount, x => x.Del_f == 0, x => x.Wtime, false).DefaultIfEmpty().ToList();
            var rtmp      = from a in temp
                            select new
            {
                ID               = a.ID,
                Wtime            = a.Wtime,
                BuMenid          = a.BumenInfoSet.Name,
                ProductNameId    = a.T_ChanPinName2.MyTexts,
                ProductGGId      = a.T_ChanPinName.MyTexts,
                ProductJB        = a.T_ChanPinName1.MyTexts,
                JiaCiPinNum      = a.JiaCiPinNum,
                JiaHeGePinNum    = a.JiaHeGePinNum,
                JiaYiDengPinNum  = a.JiaYiDengPinNum,
                JiaYouDengPinNum = a.JiaYouDengPinNum,
                JiaFeiPinNum     = a.JiaFeiPinNum,
                YiCiPinNum       = a.YiCiPinNum,
                YiHeGePinNum     = a.YiHeGePinNum,
                YiYiDengPinNum   = a.YiYiDengPinNum,
                YiYouDengPinNum  = a.YiYouDengPinNum,
                YiFeiPinNum      = a.YiFeiPinNum
            };

            return(Json(new { rows = rtmp, total = toalcount }, JsonRequestBehavior.AllowGet));
        }