|
|
|
@ -62,6 +62,7 @@ using DSWeb.MvcShipping.Models.YardDataSet;
|
|
|
|
|
using DSWeb.Common.Model;
|
|
|
|
|
using sun.swing;
|
|
|
|
|
using DSWeb.MvcShipping.Models.MsSysThirdPartyAccount;
|
|
|
|
|
using Microsoft.Practices.EnterpriseLibrary.Data;
|
|
|
|
|
|
|
|
|
|
//using Discuz.Common;
|
|
|
|
|
|
|
|
|
@ -7988,14 +7989,38 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
|
public ContentResult SyNcBooking(string bsno)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
T_ALL_DA T_ALL_DA = new EntityDA.T_ALL_DA();
|
|
|
|
|
var result = new DBResult();
|
|
|
|
|
var UPDATESUBDATAAFTERSI = MsSysParamSetDAL.GetData("PARAMNAME='UPDATESUBDATAAFTERSI'");
|
|
|
|
|
if (UPDATESUBDATAAFTERSI.PARAMVALUE == "1")
|
|
|
|
|
{
|
|
|
|
|
var blUpSQL = " exec ExeUpdateSubOpSeae '" + bsno + "'";
|
|
|
|
|
bool bl = T_ALL_DA.GetExecuteSqlCommand(blUpSQL);
|
|
|
|
|
//var blUpSQL = " exec ExeUpdateSubOpSeae '" + bsno + "'";
|
|
|
|
|
//bool bl = T_ALL_DA.GetExecuteSqlCommand(blUpSQL);
|
|
|
|
|
Database db = DatabaseFactory.CreateDatabase();
|
|
|
|
|
using (var conn = db.CreateConnection())
|
|
|
|
|
{
|
|
|
|
|
conn.Open();
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
var cmdCancel = db.GetSqlStringCommand("exec ExeUpdateSubOpSeae '" + bsno + "'");
|
|
|
|
|
db.ExecuteNonQuery(cmdCancel);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
catch (Exception)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
result.Success = false;
|
|
|
|
|
result.Message = "操作出现错误,请重试或联系系统管理员";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
result.Success = true;
|
|
|
|
|
result.Message = "操作成功";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
var json = JsonConvert.Serialize(new { Success = true, Message = "查询成功" });
|
|
|
|
|
var json = JsonConvert.Serialize(new { Success = result.Success, Message = result.Message});
|
|
|
|
|
return new ContentResult() { Content = json };
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|