@@ -149,6 +149,14 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
{ | { | ||||
DispatchEntity entity = strEntity.ToObject<DispatchEntity>(); | DispatchEntity entity = strEntity.ToObject<DispatchEntity>(); | ||||
entity.FlowNo = "0"; | entity.FlowNo = "0"; | ||||
if (entity.DisOffice == "1") | |||||
{ | |||||
entity.WorkName = "1"; | |||||
} | |||||
else | |||||
{ | |||||
entity.WorkName = "2"; | |||||
} | |||||
dispatchIBLL.SaveEntity(keyValue, entity); | dispatchIBLL.SaveEntity(keyValue, entity); | ||||
if (string.IsNullOrEmpty(keyValue)) | if (string.IsNullOrEmpty(keyValue)) | ||||
@@ -98,11 +98,6 @@ var bootstrap = function ($, learun) { | |||||
if (!!processId) { | if (!!processId) { | ||||
formData.FlowNo = processId; | formData.FlowNo = processId; | ||||
} | } | ||||
if (formData.DisOffice == "1") { | |||||
formData.WorkName = "1"; | |||||
} else { | |||||
formData.WorkName = "2"; | |||||
} | |||||
var postData = { | var postData = { | ||||
strEntity: JSON.stringify(formData) | strEntity: JSON.stringify(formData) | ||||
}; | }; | ||||
@@ -99,11 +99,6 @@ var bootstrap = function ($, learun) { | |||||
if (!!processId) { | if (!!processId) { | ||||
formData.FlowNo = processId; | formData.FlowNo = processId; | ||||
} | } | ||||
if (formData.DisOffice == "1") { | |||||
formData.WorkName = "1"; | |||||
} else { | |||||
formData.WorkName = "2"; | |||||
} | |||||
var postData = { | var postData = { | ||||
strEntity: JSON.stringify(formData) | strEntity: JSON.stringify(formData) | ||||
}; | }; | ||||