public string GetFeeList(FormCollection from)
        {
            var param = JsonHelper.JsonToEntity(from["params"], new FeeManageParamModel()) as FeeManageParamModel;
            var list  = _feeManageService.GetFeeTypeList(param.feeTypeName, param.Status).ToModelAsCollection <FeeType, FeeTypeModel>();

            return(JsonHelper.CreateJsonParameters(list, true, list.Count));
        }
Пример #2
0
        /// <summary>
        /// 获取费用类型
        /// </summary>
        /// <returns></returns>
        private List <SelectListModel> GetFeeTypeList()
        {
            var model = new List <SelectListModel>();
            var list  = _feeManageService.GetFeeTypeList(string.Empty, true);

            list.Each(p =>
            {
                model.Add(new SelectListModel()
                {
                    SelectValue = p.FeeTypeID.ToString(),
                    SelectName  = p.FeeTypeName
                });
            });
            return(model);
        }