using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using dccdc.Models; namespace dccdc.BLL { public class Common { /// /// 获取参数值 /// /// 参数名 /// 参数默认值 /// 如果有系统参数返回参数值,如果没有添加参数所加默认值 public string getParm_Value(string parm_name,string default_value,string remarks) { return new DAL.Common().getParm_Value(parm_name, default_value,remarks); } public List GetAllList(string id) { return new DAL.Common().GetAllList( id); } /// /// 预约登记维护 /// /// /// public SystemParmsModel GetModelBy(string parmName) { return new DAL.Common().GetModelBy(parmName); } public bool Update(SystemParmsModel model) { return new DAL.Common().Update(model); } public bool Add(SystemParmsModel model) { return new DAL.Common().Add(model); } DAL.Common _dal = new DAL.Common(); public int getCount(string strParamName, string strParamValue, string strParamRemark) { //throw new NotImplementedException(); return _dal.getCount(strParamName, strParamValue, strParamRemark); } /// /// 获取系统参数列表 /// /// /// /// public List getListPage(int page,int pagesize, string strParamName, string strParamValue, string strParamRemark) { return _dal.getListPage(page, pagesize, strParamName, strParamValue, strParamRemark); } public SystemParmsModel getParm(string id, string v1, string v2) { return _dal.getParm( id, v1, v2); } /// /// 根据id删除系统参数 /// /// /// public object delParamResult(string id) { return _dal.del(id); } } }