Commit 79c23792 authored by liudong1993's avatar liudong1993

1

parent 920ed0e2
...@@ -11,22 +11,22 @@ namespace Edu.Common.Enum.User ...@@ -11,22 +11,22 @@ namespace Edu.Common.Enum.User
/// <summary> /// <summary>
/// 请假 /// 请假
/// </summary> /// </summary>
[EnumField("请假|/Upload/Icon/Audit/qingjia.png|1|app_user_workflow_askforleave_template|app_user_workflow_askforleave_submit")] [EnumField("请假|/Upload/Icon/Audit/qingjia.png|1|/workflow/AskForLeaveTemplate|/workflow/AskForLeaveSubmit")]
AskForLeave = 1, AskForLeave = 1,
/// <summary> /// <summary>
/// 出差 /// 出差
/// </summary> /// </summary>
[EnumField("出差|/Upload/Icon/Audit/chucai.png|1|app_user_workflow_evection_template|app_user_workflow_evection_submit")] [EnumField("出差|/Upload/Icon/Audit/chucai.png|1|/workflow/EvectionTemplate|/workflow/EvectionSubmit")]
Evection = 2, Evection = 2,
/// <summary> /// <summary>
/// 外出 /// 外出
/// </summary> /// </summary>
[EnumField("外出|/Upload/Icon/Audit/waichu.png|1|app_user_workflow_goout_template|app_user_workflow_goout_submit")] [EnumField("外出|/Upload/Icon/Audit/waichu.png|1|/workflow/GooutTemplate|/workflow/GooutSubmit")]
Goout = 3, Goout = 3,
/// <summary> /// <summary>
/// 补卡 /// 补卡
/// </summary> /// </summary>
[EnumField("补卡|/Upload/Icon/Audit/buka.png|1|app_user_workflow_reissueCard_template|app_user_workflow_reissueCard_submit")] [EnumField("补卡|/Upload/Icon/Audit/buka.png|1|/workflow/ReissueCardTemplate|/workflow/ReissueCardSubmit")]
ReissueCard = 4, ReissueCard = 4,
} }
} }
...@@ -739,6 +739,7 @@ namespace Edu.Module.Course ...@@ -739,6 +739,7 @@ namespace Edu.Module.Course
{ {
var backModel = student_BackClassRepository.GetEntity(backClassId); var backModel = student_BackClassRepository.GetEntity(backClassId);
if (backModel == null || backModel.AuditStatus != BackClassAuditStatusEnum.Pass) { return "退课流程未审核通过"; } if (backModel == null || backModel.AuditStatus != BackClassAuditStatusEnum.Pass) { return "退课流程未审核通过"; }
if (backModel.FinanceId > 0) { return "已制单,无法再次生成财务单据"; }
var guestModel = order_GuestRepository.GetEntity(backModel.GuestId); var guestModel = order_GuestRepository.GetEntity(backModel.GuestId);
if (guestModel == null || guestModel.GuestState != 2) { return "客人名单状态不正确"; } if (guestModel == null || guestModel.GuestState != 2) { return "客人名单状态不正确"; }
......
...@@ -600,6 +600,8 @@ namespace Edu.Module.Course ...@@ -600,6 +600,8 @@ namespace Edu.Module.Course
{ {
var tmodel = teaching_BonusRepository.GetEntity(bonusId); var tmodel = teaching_BonusRepository.GetEntity(bonusId);
if (tmodel == null) { return "教师奖励不存在"; } if (tmodel == null) { return "教师奖励不存在"; }
if (tmodel.State != BonusStateEnum.Confirmed) { return "奖金状态不正确"; }
if (!string.IsNullOrEmpty(tmodel.FinanceId)) { return "已制单,无法再次生成单据"; }
var list = teaching_BonusDetailRepository.GetTeachingBonusStatistics(new RB_Teaching_BonusDetail_ViewModel() { Group_Id = userInfo.Group_Id, BonusId = bonusId }); var list = teaching_BonusDetailRepository.GetTeachingBonusStatistics(new RB_Teaching_BonusDetail_ViewModel() { Group_Id = userInfo.Group_Id, BonusId = bonusId });
string msg = ""; string msg = "";
...@@ -1209,6 +1211,7 @@ namespace Edu.Module.Course ...@@ -1209,6 +1211,7 @@ namespace Edu.Module.Course
var tmodel = teaching_PerfRepository.GetEntity(perfId); var tmodel = teaching_PerfRepository.GetEntity(perfId);
if (tmodel == null) { return "教师绩效不存在"; } if (tmodel == null) { return "教师绩效不存在"; }
if (tmodel.PerfState != PerfStateEnum.Confirmed) { return "未确认无法制单"; } if (tmodel.PerfState != PerfStateEnum.Confirmed) { return "未确认无法制单"; }
if (tmodel.FinanceId > 0) { return "财务单据已存在,无法再次制单"; }
string msg = ""; string msg = "";
var teacherModel = teacherRepository.GetTeacherList(tmodel.TeacherId.ToString()).FirstOrDefault(); var teacherModel = teacherRepository.GetTeacherList(tmodel.TeacherId.ToString()).FirstOrDefault();
......
...@@ -60,8 +60,8 @@ case when a.Id is NULL then 2 else 1 end AS IsBind ,e.EmName as UpdateName,b.SNa ...@@ -60,8 +60,8 @@ case when a.Id is NULL then 2 else 1 end AS IsBind ,e.EmName as UpdateName,b.SNa
(select count(*) from rb_employee em where em.IsLeave=0 and em.RB_Branch_id=b.SId) as PeopleNum, (select count(*) from rb_employee em where em.IsLeave=0 and em.RB_Branch_id=b.SId) as PeopleNum,
case when a.Id IS NOT NULL THEN (select GROUP_CONCAT(ws.Workday SEPARATOR '、') case when a.Id IS NOT NULL THEN (select GROUP_CONCAT(ws.Workday SEPARATOR '、')
from rb_workdayseting ws where ws.AttendanceId=a.Id) ELSE '' END as AttendanceDate from rb_workdayseting ws where ws.AttendanceId=a.Id) ELSE '' END as AttendanceDate
from Rb_attendance a from rb_school b
left join rb_school b on a.RB_BranchId = b.SId left join Rb_attendance a on a.RB_BranchId = b.SId
left join rb_employee e on a.UpdateBy=e.EmployeeId )t " + where + " order by t.IsBind,t.RB_BranchId asc").ToList(); left join rb_employee e on a.UpdateBy=e.EmployeeId )t " + where + " order by t.IsBind,t.RB_BranchId asc").ToList();
return pageList; return pageList;
} }
......
...@@ -56,7 +56,7 @@ namespace Edu.WebApi.Controllers.User ...@@ -56,7 +56,7 @@ namespace Edu.WebApi.Controllers.User
string[] tempTypeStr = template.TemplateType.ToName().Split('|'); string[] tempTypeStr = template.TemplateType.ToName().Split('|');
if (tempTypeStr.Length > 1) if (tempTypeStr.Length > 1)
{ {
var tmp = new { id = template.Id, name = template.Name, icon = Config.GetOssFileUrl + tempTypeStr[1], cmd = tempTypeStr[3], submitCmd = tempTypeStr[4], jumpUrl = $"vt://applySubmit/view?type={template.Name}" }; var tmp = new { id = template.Id, name = template.Name, icon = Config.GetErpFileUrl(tempTypeStr[1]), cmd = tempTypeStr[3], submitCmd = tempTypeStr[4], jumpUrl = $"vt://applySubmit/view?type={template.Name}" };
templateList.Add(tmp); templateList.Add(tmp);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment