public SettlementInfoList SettlementInfoDataBind(SettlementInfoParam param)
        {
            if (param.StartTime == null)
            {
                param.StartTime = DateTime.Parse(DateTime.Now.AddDays(-7).ToString("yyyy-MM-dd") + " " + "00:00");
            }
            if (param.EndTime == null)
            {
                param.EndTime = DateTime.Parse(DateTime.Now.AddDays(+1).ToString("yyyy-MM-dd") + " " + "00:00");
            }

            var model = new SettlementInfoList()
            {
                FilterModel = new SettlementInfoParam
                {
                    Page             = param.Page,
                    PageSize         = param.PageSize,
                    CustomerCode     = param.CustomerCode,
                    StartTime        = param.StartTime,
                    EndTime          = param.EndTime,
                    CreatedBy        = param.CreatedBy,
                    Status           = param.Status,
                    SettlementBy     = param.SettlementBy,
                    SettlementNumber = param.SettlementNumber
                },
                PagedList = _settlementService.GetSettlementInfoList(param)
            };


            //结清状态
            model.PagedList.InnerList.ForEach(a => a.StatusDesc = Settlement.GetStatusDescription(a.Status));



            //状态下拉框
            var statusList = new List <SelectListItem> {
                new SelectListItem {
                    Value = "", Text = "全部", Selected = !model.FilterModel.Status.HasValue
                }
            };

            Settlement.GetStatusList().ForEach(a => statusList.Add(
                                                   new SelectListItem {
                Text = a.TextField, Value = a.ValueField, Selected = param.Status.HasValue && a.ValueField == param.Status.Value.ToString()
            }
                                                   ));

            model.StatusList = statusList;


            return(model);
        }