|
|
@ -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 参照部分
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|