80 lines
1.9 KiB
C#
80 lines
1.9 KiB
C#
|
|
using dccdc.DAL;
|
|||
|
|
using dccdc.Models;
|
|||
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Web;
|
|||
|
|
using System.Collections;
|
|||
|
|
|
|||
|
|
namespace dccdc
|
|||
|
|
{
|
|||
|
|
public class ERPUserBll
|
|||
|
|
{
|
|||
|
|
public ERPUserDal Dal = new ERPUserDal();
|
|||
|
|
public List<ERPUser> GetAllList(string key)
|
|||
|
|
{
|
|||
|
|
return Dal.GetAllList(key);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public List<ERPUser> getListByDepname(string ksmc)
|
|||
|
|
{
|
|||
|
|
//throw new NotImplementedException();
|
|||
|
|
return Dal.getListByDepname(ksmc);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public ERPUser login(string username,string pwd)
|
|||
|
|
{
|
|||
|
|
return Dal.login(username, pwd);
|
|||
|
|
}
|
|||
|
|
public ERPUser login2(string yhid)
|
|||
|
|
{
|
|||
|
|
return Dal.login2(yhid);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public List<ERPUser> GetSelectList()
|
|||
|
|
{
|
|||
|
|
return Dal.GetSelectList();
|
|||
|
|
}
|
|||
|
|
public List<ERPUser> GetUserDepart(string where)
|
|||
|
|
{
|
|||
|
|
return Dal.GetUserDepart(where);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public List<string> GetQuanxian(int id)
|
|||
|
|
{
|
|||
|
|
return Dal.GetQuanxian(id);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public int GetERPUser(string openid) {
|
|||
|
|
return Dal.GetERPUser(openid);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public string GetTrueNameById(int id)
|
|||
|
|
{
|
|||
|
|
return Dal.GetTrueNameById(id);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public string GetSignation(int id)
|
|||
|
|
{
|
|||
|
|
return Dal.GetSignation(id);
|
|||
|
|
}
|
|||
|
|
public bool SetSignation(int id, string qianming)
|
|||
|
|
{
|
|||
|
|
return Dal.SetSignation(id, qianming);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public List<ERPUser> getOpenids(string sql)
|
|||
|
|
{
|
|||
|
|
return Dal.getOpenids(sql);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public bool Setopenid(string id, string openid)
|
|||
|
|
{
|
|||
|
|
return Dal.Setopenid(id, openid);
|
|||
|
|
}
|
|||
|
|
public string GetUsername(String userid)
|
|||
|
|
{
|
|||
|
|
return Dal.getUserName(userid);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|