DS7_JinGang
hanxuntao 2 years ago
parent 8fba7ce094
commit 5eada04e87

@ -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 };
}

@ -993,7 +993,9 @@ namespace DSWeb.Areas.MvcShipping.DAL.MsOp_InternalTrade
if (!string.IsNullOrEmpty(CUSTNO))
{
var headData = GetData("CUSTNO='" + CUSTNO + "'", userid);
if (!Convert.ToBoolean(headData.GetValue("BSSTATUS")))
var bsstatus = headData.GetValue("BSSTATUS");
BSNO = headData.GetValue("BSNO");
if ((bsstatus=="0"|| bsstatus == "False") &&!string.IsNullOrEmpty(BSNO))
{
@ -1005,7 +1007,6 @@ namespace DSWeb.Areas.MvcShipping.DAL.MsOp_InternalTrade
if (string.IsNullOrEmpty(TRUCKER2))
TRUCKER2 = headData.GetValue("TRUCKER2");
CUSTOMERNAME = headData.GetValue("CUSTOMERNAME");
BSNO = headData.GetValue("BSNO");
var strSql = new StringBuilder();
strSql.Append("update Op_INTERNALTRADE set BSNO=BSNO ");
@ -1060,7 +1061,7 @@ namespace DSWeb.Areas.MvcShipping.DAL.MsOp_InternalTrade
}
if (!Convert.ToBoolean(headData.GetValue("FEESTATUS")))
if (headData.GetValue("FEESTATUS")=="False")
{
if (result.Success)
{

Loading…
Cancel
Save