Esempio n. 1
0
        public string GetFinancingPledgeApplyRepoInfoList(int pagenum, int pagesize, string orderStr, int pledgeApplyId)
        {
            try
            {
                UserModel user = new UserModel();

                RepoApplyBLL bll = new RepoApplyBLL();
                SelectModel select = bll.GetSelectModelRepoInfo(pagenum, pagesize, orderStr, pledgeApplyId);
                ResultModel result = bll.Load(user, select);

                DataTable dt = new DataTable();

                if (result.ResultStatus == 0)
                    dt = result.ReturnValue as DataTable;

                Dictionary<string, object> dic = new Dictionary<string, object>();

                dic.Add("count", result.AffectCount);
                dic.Add("data", dt);

                return JsonConvert.SerializeObject(dic, new DataTableConverter());
            }
            catch (Exception e)
            {
                this.log.ErrorFormat("FinService出错,出错方法:{0},{1}", "GetFinancingPledgeApplyRepoInfoList", e.Message);
                return e.Message;
            }
        }