Ejemplo n.º 1
0
        /// <summary>
        /// 查询实收实付详细
        /// </summary>
        /// <returns></returns>
        public ActionResult GetDetail()
        {
            string CompanyID = WebUtil.GetFormValue <string>("CompanyID");
            string BillSnNum = WebUtil.GetFormValue <string>("BillSnNum");

            FinancePayProvider                provider   = new FinancePayProvider(CompanyID);
            List <FinancePayEntity>           listResult = provider.GetList(BillSnNum);
            DataListResult <FinancePayEntity> result     = new DataListResult <FinancePayEntity>()
            {
                Code    = (int)EResponseCode.Success,
                Message = "响应成功",
                Result  = listResult
            };

            return(Content(JsonHelper.SerializeObject(result)));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 查询财务实收实付分页列表
        /// </summary>
        /// <returns></returns>
        public ActionResult GetList()
        {
            string CompanyID = WebUtil.GetFormValue <string>("CompanyID");
            int    PageIndex = WebUtil.GetFormValue <int>("PageIndex", 1);
            int    PageSize  = WebUtil.GetFormValue <int>("PageSize", 10);

            string BillNum     = WebUtil.GetFormValue <string>("BillNum");
            string CateNum     = WebUtil.GetFormValue <string>("CateNum");
            string ToName      = WebUtil.GetFormValue <string>("ToName");
            string Title       = WebUtil.GetFormValue <string>("Title");
            int    PayType     = WebUtil.GetFormValue <int>("PayType");
            string BankName    = WebUtil.GetFormValue <string>("BankName");
            string BeginTime   = WebUtil.GetFormValue <string>("BeginTime");
            string EndTime     = WebUtil.GetFormValue <string>("EndTime");
            string ContractNum = WebUtil.GetFormValue <string>("ContractNum");

            FinancePayEntity entity = new FinancePayEntity();

            entity.CompanyID   = CompanyID;
            entity.PayType     = PayType;
            entity.BankName    = BankName;
            entity.BeginTime   = BeginTime;
            entity.EndTime     = EndTime;
            entity.PayNum      = BillNum;
            entity.CateNum     = CateNum;
            entity.ToName      = ToName;
            entity.Title       = Title;
            entity.ContractNum = ContractNum;


            PageInfo pageInfo = new PageInfo()
            {
                PageIndex = PageIndex, PageSize = PageSize
            };
            FinancePayProvider                provider   = new FinancePayProvider(CompanyID);
            List <FinancePayEntity>           listResult = provider.GetList(entity, ref pageInfo);
            DataListResult <FinancePayEntity> result     = new DataListResult <FinancePayEntity>()
            {
                Code     = (int)EResponseCode.Success,
                Message  = "响应成功",
                PageInfo = pageInfo,
                Result   = listResult
            };

            return(Content(JsonHelper.SerializeObject(result)));
        }