82 lines
2.5 KiB
C#
82 lines
2.5 KiB
C#
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
|
|
{
|
|
/// <summary>
|
|
/// 获取参数值
|
|
/// </summary>
|
|
/// <param name="parm_name">参数名</param>
|
|
/// <param name="default_value">参数默认值</param>
|
|
/// <returns>如果有系统参数返回参数值,如果没有添加参数所加默认值</returns>
|
|
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<SystemParmsModel> GetAllList(string id)
|
|
{
|
|
return new DAL.Common().GetAllList( id);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 预约登记维护
|
|
/// </summary>
|
|
/// <param name="parmName"></param>
|
|
/// <returns></returns>
|
|
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);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 获取系统参数列表
|
|
/// </summary>
|
|
/// <param name="page"></param>
|
|
/// <param name="pagesize"></param>
|
|
/// <returns></returns>
|
|
public List<Models.SystemParmsModel> 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);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 根据id删除系统参数
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
public object delParamResult(string id)
|
|
{
|
|
return _dal.del(id);
|
|
}
|
|
}
|
|
}
|