Commit 98d30c10 authored by 黄奎's avatar 黄奎

页面修改

parent 8aa6e9db
......@@ -97,8 +97,8 @@ namespace Edu.Model.Entity.Duty
public int ItemType { get; set; }
/// <summary>
/// 交接班次
/// 交接班次(rb_duty_plandetails表的Id)
/// </summary>
public string HandoverShift { get; set; }
public string HandoverDlandetails { get; set; }
}
}
......@@ -106,7 +106,7 @@ namespace Edu.Module.Course
}
var teacherId = teacherModel?.Id ?? 0;
//基础课时分钟数
var BasicMinutes = class_ConfigRepository.GetClassConfigRepository(new RB_Class_Config_ViewModel() { Group_Id = userinfo.Group_Id })?.BasicMinutes ?? 45;
var BasicMinutes = class_ConfigRepository.GetBasicMinutesRepository(userinfo.Group_Id);
var stuCheckList = class_CheckRepository.GetGuestFinishMinutesRepository(GuestId.ToString());
//总签到上课分钟数
var totalFinishMinutes = stuCheckList?.Sum(qitem => qitem.FinishMinutes) ?? 0;
......
......@@ -58,16 +58,16 @@ WHERE 1=1
/// <summary>
/// 交接班次
/// </summary>
/// <param name="HandoverShift"></param>
/// <param name="HandoverDlandetails"></param>
/// <param name="query"></param>
/// <returns></returns>
public bool UpdateHandoverShiftRepository(string HandoverShift, RB_Duty_Content_ViewModel query)
public bool UpdateHandoverShiftRepository(string HandoverDlandetails, RB_Duty_Content_ViewModel query)
{
StringBuilder builder = new StringBuilder();
builder.AppendFormat(@"
UPDATE RB_Duty_Content
SET HandoverShift='{0}'
", HandoverShift);
SET HandoverDlandetails='{0}'
", HandoverDlandetails);
builder.AppendFormat(@" WHERE PlanId={0} AND PlanType=2 AND PlanShift={1} AND CreateBy={2} ", query.PlanId, query.PlanShift, query.CreateBy);
return base.Execute(builder.ToString()) > 0;
......
......@@ -364,7 +364,7 @@ namespace Edu.WebApi.Controllers.Duty
//工作交接说明
int IsHandover = base.ParmJObj.GetInt("IsHandover");
//交接班次
string HandoverShift = base.ParmJObj.GetStringValue("HandoverShift");
string HandoverDlandetails = base.ParmJObj.GetStringValue("HandoverDlandetails");
List<RB_Duty_Content_ViewModel> list = new List<RB_Duty_Content_ViewModel>();
if (Status == 2)
{
......
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