修改质量接口

This commit is contained in:
2023-03-17 09:59:48 +08:00
parent eef27faf84
commit 4a3fb76c8c
12 changed files with 962 additions and 74 deletions
+41 -1
View File
@@ -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>
/// 获取质量会议参加人员