Commit f0fecd68 authored by 黄奎's avatar 黄奎

页面修改

parent 3b9afe43
......@@ -203,6 +203,32 @@ namespace Edu.Module.Customer
string logContent = "";
if (model.Id > 0)
{
var oldModel = GetStudentVisitModule(model.Id);
logContent = "修改到访";
if (oldModel.School_Id != model.School_Id)
{
logContent += string.Format("校区由{0}=>{1},", oldModel.School_Id, model.School_Id);
}
if (oldModel.Date != model.Date)
{
logContent += string.Format("日期由{0}=>{1},", Common.ConvertHelper.FormatDate(oldModel.Date), Common.ConvertHelper.FormatDate(model.Date));
}
if (oldModel.VisitTime != model.VisitTime)
{
logContent += string.Format("到访时间由{0}=>{1},", oldModel.VisitTime, model.VisitTime);
}
if (oldModel.ReceptionPersion != model.ReceptionPersion)
{
logContent += string.Format("接待人由{0}=>{1},", oldModel.ReceptionPersion, model.ReceptionPersion);
}
if (oldModel.Remark != model.Remark)
{
logContent += string.Format("备注由{0}=>{1},", oldModel.Remark, model.Remark);
}
if (oldModel.Feedback != model.Feedback)
{
logContent += string.Format("反馈信息由{0}=>{1},", oldModel.Feedback, model.Feedback);
}
Dictionary<string, object> fileds = new Dictionary<string, object>()
{
{nameof(RB_Student_Visit_Extend.School_Id),model.School_Id },
......@@ -219,6 +245,7 @@ namespace Edu.Module.Customer
var newId = student_VisitRepository.Insert(model);
model.Id = newId;
flag = newId > 0;
logContent = "新增到访";
}
student_LogRepository.AddStuLogRepository(model.StuId, Common.Enum.Log.StudentLogTypeEnum.Visit, logContent, model.CreateBy);
return flag;
......
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