修改质量接口
This commit is contained in:
@@ -819,7 +819,7 @@ namespace BLL
|
||||
/// 获取质量会议主持人
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static List<Model.BaseInfoItem> getCQMSMeetingHostMan(string projectId,string unitId)
|
||||
public static List<Model.BaseInfoItem> getCQMSMeetingHostMan(string projectId, string unitId)
|
||||
{
|
||||
var list = BLL.SitePerson_PersonService.GetSitePerson_PersonListByUnitIdsRoleIds(projectId, unitId, null);
|
||||
List<Model.BaseInfoItem> items = new List<Model.BaseInfoItem>();
|
||||
@@ -834,6 +834,46 @@ namespace BLL
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 获取质量奖罚事由
|
||||
/// <summary>
|
||||
/// 获取质量奖罚事由
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static List<Model.BaseInfoItem> getRewardAndPunishCause(string type)
|
||||
{
|
||||
if (type == "1") //奖励
|
||||
{
|
||||
var list = RewardTypeService.GetRewardTypeList();
|
||||
List<Model.BaseInfoItem> items = new List<Model.BaseInfoItem>();
|
||||
foreach (var item in list)
|
||||
{
|
||||
Model.BaseInfoItem b = new Model.BaseInfoItem();
|
||||
b.BaseInfoId = item.RewardTypeId;
|
||||
b.BaseInfoName = item.RewardCause;
|
||||
items.Add(b);
|
||||
}
|
||||
return items;
|
||||
}
|
||||
else if (type == "2") //处罚
|
||||
{
|
||||
var list = PunishTypeService.GetPunishTypeList();
|
||||
List<Model.BaseInfoItem> items = new List<Model.BaseInfoItem>();
|
||||
foreach (var item in list)
|
||||
{
|
||||
Model.BaseInfoItem b = new Model.BaseInfoItem();
|
||||
b.BaseInfoId = item.PunishTypeId;
|
||||
b.BaseInfoName = item.PunishCause;
|
||||
items.Add(b);
|
||||
}
|
||||
return items;
|
||||
}
|
||||
else
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 获取质量会议参加人员
|
||||
/// <summary>
|
||||
/// 获取质量会议参加人员
|
||||
|
||||
Reference in New Issue
Block a user