Esempio n. 1
0
        public ActionResult GetForm(string WJBM, string WJNO, string WJMC)
        {
            if (WJBM == "" || WJNO == "" || WJMC == "")
            {
                //return Content("".ToJson());
            }
            var entity = new PriceDocumentService().GetDetail(WJBM, WJNO, WJMC);

            return(Content(entity.ToJson()));
        }
Esempio n. 2
0
        public ActionResult GetList(int pageIndex, int pageSize, string keyWord)
        {
            if (keyWord == "")
            {
                return(Content("".ToJson()));;
            }
            var service  = new PriceDocumentService();
            var pageData = service.GetList(pageIndex, pageSize, keyWord);
            var count    = service.GetCout(keyWord);
            var result   = new LayPadding <PriceDocumentEntity>()
            {
                result = true,
                msg    = "success",
                list   = pageData,
                count  = count
            };

            return(Content(result.ToJson()));
        }