|
|
|
@ -994,13 +994,15 @@ namespace DSWeb.Areas.MvcShipping.DAL
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static DBResult 关贸云报关从任务台导入报关业务(string TASKNO,string OP,string userid)
|
|
|
|
|
public static DBResult 关贸云报关从任务台导入报关业务(OpTask TASK,string OP,string userid)
|
|
|
|
|
{
|
|
|
|
|
var result = new DBResult();
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
//提取两个op_logicinfo中的json
|
|
|
|
|
|
|
|
|
|
var TASKNO = TASK.TASKNO;
|
|
|
|
|
|
|
|
|
|
var 报关业务logic = BasicDataRefDAL.GetLogicInfo(TASKNO, "关贸云报关");
|
|
|
|
|
var 报关业务json = "";
|
|
|
|
|
|
|
|
|
@ -1036,7 +1038,7 @@ namespace DSWeb.Areas.MvcShipping.DAL
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
result.OK("导入完成");
|
|
|
|
|
|
|
|
|
|
SetTaskSuccess(TASK, OP);
|
|
|
|
|
}
|
|
|
|
|
catch (Exception e)
|
|
|
|
|
{
|
|
|
|
@ -1047,6 +1049,17 @@ namespace DSWeb.Areas.MvcShipping.DAL
|
|
|
|
|
#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 参照部分
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|