|
|
@@ -132,7 +132,8 @@ namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers |
|
|
|
public ActionResult GetFormData(string keyValue) |
|
|
|
{ |
|
|
|
var RepairReport_TeacherData = repairReportTeacherIBLL.GetRepairReport_TeacherEntity(keyValue); |
|
|
|
var jsonData = new { |
|
|
|
var jsonData = new |
|
|
|
{ |
|
|
|
RepairReport_Teacher = RepairReport_TeacherData, |
|
|
|
}; |
|
|
|
return Success(jsonData); |
|
|
@@ -178,7 +179,7 @@ namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers |
|
|
|
string servicevalue = datalist.Where(c => c.F_ItemValue == model.ServiceType).FirstOrDefault().F_ItemName; |
|
|
|
string content = "您发起" + model.Address + "-" + servicevalue + "维修请求已处理,请评价。"; |
|
|
|
|
|
|
|
addmessagerind(userList, model, content, "评价通知"); |
|
|
|
addmessagerind(userList, model, content, "评价通知", true); |
|
|
|
} |
|
|
|
if (string.IsNullOrEmpty(keyValue)) |
|
|
|
{ |
|
|
@@ -202,7 +203,7 @@ namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers |
|
|
|
//查询当前用户是否有已处理未评价的报修数据 |
|
|
|
//select * from repairreport_teacher where status='2' and creator='' |
|
|
|
int existcount = repairReportTeacherIBLL.Waitevaluatecount(); |
|
|
|
if (existcount>0) |
|
|
|
if (existcount > 0) |
|
|
|
{ |
|
|
|
return Fail("您有待评价的保修单,请评价后在提交!"); |
|
|
|
} |
|
|
@@ -234,7 +235,7 @@ namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers |
|
|
|
return Success("提交成功!"); |
|
|
|
} |
|
|
|
|
|
|
|
private void addmessagerind(List<UserEntity> userList,RepairReport_TeacherEntity model,string content,string title= "维修通知") |
|
|
|
private void addmessagerind(List<UserEntity> userList, RepairReport_TeacherEntity model, string content, string title = "维修通知", bool isComment = false) |
|
|
|
{ |
|
|
|
foreach (var userinfo in userList) |
|
|
|
{ |
|
|
@@ -248,7 +249,14 @@ namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers |
|
|
|
|
|
|
|
entity.TheContent = content; |
|
|
|
entity.InstanceId = model.ID; |
|
|
|
entity.ConnectionUrl = "/LogisticsManagement/RepairReportTeacher/FormView?keyValue="; |
|
|
|
if (isComment) |
|
|
|
{ |
|
|
|
entity.ConnectionUrl = "/LogisticsManagement/RepairReportTeacher/EvaluateFormView?keyValue="; |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
entity.ConnectionUrl = "/LogisticsManagement/RepairReportTeacher/FormView?keyValue="; |
|
|
|
} |
|
|
|
entity.SendTime = DateTime.Now; |
|
|
|
entity.ReadSigns = false; |
|
|
|
messageRindIBLL.SaveEntity("", entity); |
|
|
|