예제 #1
0
 // 取得编辑页面中的主表数据及上一页下一页主键 GET api/trade/send/geteditmaster
 public virtual dynamic GetEditMaster(string id)
 {
     return(new
     {
         form = masterService.GetModel(ParamQuery.Instance().Where("Jobno", id)),
         //scrollKeys = masterService.ScrollKeys("Jobno", id, ParamQuery.Instance().Where("ProjectCode", projectCode))
         scrollKeys = masterService.ScrollKeys("Jobno", id, ParamQuery.Instance().Where("Jobno", id))
     });
 }
예제 #2
0
        public dynamic GetPageData(string id)
        {
            var masterService = new trade_trailerService();
            var pQuery = ParamQuery.Instance().Where("JOBNO", id);

             var result = new {
                //主表数据
                form = masterService.GetModel(pQuery),
                scrollKeys = masterService.ScrollKeys("JOBNO", id),

                //明细数据
                tab0 = new trade_schedulerService().GetDynamicList(pQuery)
            };
            return result;
        }
예제 #3
0
        public dynamic GetPageData(string id)
        {
            var masterService = new trade_trailerService();
            var pQuery        = ParamQuery.Instance().Where("JOBNO", id);

            var result = new {
                //主表数据
                form       = masterService.GetModel(pQuery),
                scrollKeys = masterService.ScrollKeys("JOBNO", id),

                //明细数据
                tab0 = new trade_schedulerService().GetDynamicList(pQuery)
            };

            return(result);
        }