84 lines
2.3 KiB
C#
84 lines
2.3 KiB
C#
using System;
|
|
using AIMSDAL;
|
|
using AIMSModel;
|
|
using AIMSObjectQuery;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
using System.Windows.Forms;
|
|
|
|
namespace AIMSBLL
|
|
{
|
|
public partial class BPerson
|
|
{
|
|
public static void Add(Person PersonObj)
|
|
{
|
|
try
|
|
{
|
|
DPerson.Add(PersonObj);
|
|
MessageBox.Show("增加成功!");
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
MessageBox.Show("增加失败!" + ex.Message);
|
|
}
|
|
}
|
|
|
|
|
|
public static Person GetModel(int Id)
|
|
{
|
|
return DPerson.GetModel(Id); ;
|
|
}
|
|
|
|
public static DataTable GetPersonDataTable()
|
|
{
|
|
return DPerson.GetPersonDataTable();
|
|
}
|
|
public static DataTable GetPersonDataTable(string name, string DeptName, bool IsValid)
|
|
{
|
|
return DPerson.GetPersonDataTable(name, DeptName,IsValid);
|
|
}
|
|
public static bool Login(string No, string PassWord)
|
|
{
|
|
return DPerson.Login(No, PassWord);
|
|
}
|
|
public static Person GetModelByNo(string No)
|
|
{
|
|
return DPerson.GetModelByNo(No);
|
|
}
|
|
|
|
|
|
public static DataTable GetPersonDataTableByDepId(int DepId, string HelpCode, string PersonType)
|
|
{
|
|
return DPerson.GetPersonDataTableByDepId(DepId, HelpCode, PersonType);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 查询排班信息
|
|
/// </summary>
|
|
/// <param name="time"> 查询时间</param>
|
|
/// <param name="workerType">工种</param>
|
|
/// <param name="depId">部门Id</param>
|
|
/// <param name="keyName">关键字</param>
|
|
/// <returns></returns>
|
|
public static DataTable GetSchedulingForSelect(DateTime time, string workerType)//int depId,
|
|
{
|
|
return DPerson.GetSchedulingForSelect(time, workerType);
|
|
}
|
|
|
|
public static List<string> GetruleAnesthesiaDoctor(string Id)
|
|
{
|
|
return DPerson.GetruleAnesthesiaDoctor(Id);
|
|
}
|
|
public static List<string> GetruleNurse(string Id)
|
|
{
|
|
return DPerson.GetruleNurse(Id);
|
|
}
|
|
public static List<string> Getexperts(string Id)
|
|
{
|
|
return DPerson.Getexperts(Id);
|
|
}
|
|
|
|
}
|
|
}
|