Commit 4f55691d authored by solho's avatar solho

初建FLOW邏輯處理

parent 8544537f
......@@ -445,7 +445,18 @@ namespace WebAPI.Controllers
if (dsr["esn_todos_sn"] == DBNull.Value) //insert
{
CStepTypeCur = AllStepType.Where(p => p.Map_Class.Contains(JtSn["targetclass"].ToString())).FirstOrDefault();
if (JtSn["validclass"] == null || string.IsNullOrEmpty(JtSn["validclass"].ToString()))
{
return_msg_error.Add(dsr["esn_todos_sn"] + ":無FLOW資料時,請設定來源身分代碼(設定validclass )");
continue;
}
if (JtSn["targetclass"] == null || string.IsNullOrEmpty(JtSn["targetclass"].ToString()))
{
return_msg_error.Add(dsr["esn_todos_sn"] + ":無FLOW資料時,請設定目的身分代碼(設定targetclass )");
continue;
}
CStepTypeCur = AllStepType.Where(p => p.Map_Class.Contains(JtSn["validclass"].ToString())).FirstOrDefault();
StepType_idHis = CStepTypeCur.id;
if (JtSn["targetclass"] != null && !string.IsNullOrEmpty(JtSn["targetclass"].ToString()))
......
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