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

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

                if (result.ResultStatus != 0)
                    return string.Empty;

                DataTable 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}", "GetFinancingPledgeApplyCashInfoList", e.Message);
                return e.Message;
            }
        }