关贸云业务的任务处理完后改状态。

DS7_JingHan
ddlucky 2 years ago
parent f40a2e6310
commit eb0f0d9a88

@ -241,7 +241,7 @@ namespace DSWeb.MvcShipping.Controllers
{ {
//20230129 关贸云 报关业务导入 //20230129 关贸云 报关业务导入
result = MsOpTaskDAL.(enumValue.TASKNO, Convert.ToString(Session["SHOWNAME"]).ToString().Trim(),Convert.ToString(Session["USERID"]).ToString().Trim()); result = MsOpTaskDAL.(enumValue, Convert.ToString(Session["SHOWNAME"]).ToString().Trim(),Convert.ToString(Session["USERID"]).ToString().Trim());
} }
else else
{ {
@ -279,6 +279,7 @@ namespace DSWeb.MvcShipping.Controllers
} }
public ContentResult UpTaskEmail(string data) public ContentResult UpTaskEmail(string data)
{ {

@ -994,13 +994,15 @@ namespace DSWeb.Areas.MvcShipping.DAL
return result; return result;
} }
public static DBResult (string TASKNO,string OP,string userid) public static DBResult (OpTask TASK,string OP,string userid)
{ {
var result = new DBResult(); var result = new DBResult();
try try
{ {
//提取两个op_logicinfo中的json //提取两个op_logicinfo中的json
var TASKNO = TASK.TASKNO;
var logic = BasicDataRefDAL.GetLogicInfo(TASKNO, "关贸云报关"); var logic = BasicDataRefDAL.GetLogicInfo(TASKNO, "关贸云报关");
var json = ""; var json = "";
@ -1036,7 +1038,7 @@ namespace DSWeb.Areas.MvcShipping.DAL
} }
result.OK("导入完成"); result.OK("导入完成");
SetTaskSuccess(TASK, OP);
} }
catch (Exception e) catch (Exception e)
{ {
@ -1047,6 +1049,17 @@ namespace DSWeb.Areas.MvcShipping.DAL
#endregion #endregion
public static void SetTaskSuccess(OpTask TASK,string USERNAME)
{
T_ALL_DA T_ALL_DA = new EntityDA.T_ALL_DA();
var blUpSQL = " insert into op_task_state (GID,TASKNO,TASKSTATUS,OP,OPTIME) values (newid(),'" + TASK.TASKNO + "','已完成','" + USERNAME + "',GETDATE())";
bool bl = T_ALL_DA.GetExecuteSqlCommand(blUpSQL);
blUpSQL = " update op_task set ISCOMPLETE=1,TASKSTATUS='已完成',COMPLETETYPE='人工',COMPLETETIME=GETDATE(),OP='" + USERNAME + "' where GID='" + TASK.GID + "'";
bl = T_ALL_DA.GetExecuteSqlCommand(blUpSQL);
}
#region 参照部分 #region 参照部分

Loading…
Cancel
Save