DS7_JinGang
ddlucky 2 years ago
commit 0c2744c5dc

@ -982,7 +982,7 @@ namespace DSWeb.Areas.Account.Controllers
T_ALL_DA T_ALL_DA = new EntityDA.T_ALL_DA(); T_ALL_DA T_ALL_DA = new EntityDA.T_ALL_DA();
string blUpSQL = " update ch_fee_payapplication set ISPRINT='1',PRINTCOUNT=ISNULL(PRINTCOUNT,0)+1 where BILLNO IN (" + billnos + ")"; string blUpSQL = " update ch_fee_payapplication set ISPRINT='1',PRINTCOUNT=ISNULL(PRINTCOUNT,0)+1,PRINTTIME=GETDATE() where BILLNO IN (" + billnos + ")";
bool bl = T_ALL_DA.GetExecuteSqlCommand(blUpSQL); bool bl = T_ALL_DA.GetExecuteSqlCommand(blUpSQL);
result.Success = true; result.Success = true;
@ -1004,7 +1004,7 @@ namespace DSWeb.Areas.Account.Controllers
T_ALL_DA T_ALL_DA = new EntityDA.T_ALL_DA(); T_ALL_DA T_ALL_DA = new EntityDA.T_ALL_DA();
string blUpSQL = " update ch_fee_payapplication set ISPRINT='0' where BILLNO IN (" + billnos + ")"; string blUpSQL = " update ch_fee_payapplication set ISPRINT='0',PRINTTIME=NULL where BILLNO IN (" + billnos + ")";
bool bl = T_ALL_DA.GetExecuteSqlCommand(blUpSQL); bool bl = T_ALL_DA.GetExecuteSqlCommand(blUpSQL);
result.Success = true; result.Success = true;

@ -729,6 +729,26 @@ namespace DSWeb.MvcShipping.Controllers
var json = JsonConvert.Serialize(new { Success = true, Message = "查询成功", totalCount = count, data1 = feejian,data2 =feeton }); var json = JsonConvert.Serialize(new { Success = true, Message = "查询成功", totalCount = count, data1 = feejian,data2 =feeton });
return new ContentResult() { Content = json }; return new ContentResult() { Content = json };
} }
public ContentResult modify(string data, string modifydata)
{
var bodyList = JsonConvert.Deserialize<List<WMSNewList>>(data);
var amodifydata = JsonConvert.Deserialize<WMSNewList>(modifydata);
var result = new DBResult();
if (bodyList != null)
{
result = WMSNewDAL.Modify(bodyList, amodifydata, Convert.ToString(Session["COMPANYID"]));
}
var jsonRespose = new JsonResponse
{
Success = result.Success,
Message = result.Message,
};
return new ContentResult() { Content = JsonConvert.Serialize(jsonRespose) };
}
/// <summary> /// <summary>
/// 导入 /// 导入
/// </summary> /// </summary>

@ -3741,6 +3741,14 @@ namespace DSWeb.MvcShipping.DAL.MsChFeeDAL
if (reader["ISADVANCEDPAY"] != DBNull.Value) { if (reader["ISADVANCEDPAY"] != DBNull.Value) {
if (Convert.ToBoolean(reader["ISADVANCEDPAY"])) evData.ISADVANCEDPAY = "1"; if (Convert.ToBoolean(reader["ISADVANCEDPAY"])) evData.ISADVANCEDPAY = "1";
} }
if (reader["ISOPEN"] != DBNull.Value)
{
if (Convert.ToBoolean(reader["ISOPEN"])) evData.ISOPEN = "1";
}
if (reader["ISINVOICE"] != DBNull.Value)
{
if (Convert.ToBoolean(reader["ISINVOICE"])) evData.ISINVOICE = "1";
}
if (reader["TAXRATE"] != DBNull.Value) if (reader["TAXRATE"] != DBNull.Value)
evData.TAXRATE = Convert.ToDecimal(reader["TAXRATE"]); evData.TAXRATE = Convert.ToDecimal(reader["TAXRATE"]);
evList.Add(evData); evList.Add(evData);
@ -3760,6 +3768,8 @@ namespace DSWeb.MvcShipping.DAL.MsChFeeDAL
evData2.FEETYPE ="1"; evData2.FEETYPE ="1";
evData2.FEEFRT = "PP"; evData2.FEEFRT = "PP";
evData2.ISADVANCEDPAY = "0"; evData2.ISADVANCEDPAY = "0";
evData2.ISOPEN = "0";
evData2.ISINVOICE = "0";
evData2.TAXRATE = 0; evData2.TAXRATE = 0;
evList.Add(evData2); evList.Add(evData2);
} }
@ -3769,7 +3779,7 @@ namespace DSWeb.MvcShipping.DAL.MsChFeeDAL
public static StringBuilder GetFeeTypeRefList_Sqlstr(string sCondition) { public static StringBuilder GetFeeTypeRefList_Sqlstr(string sCondition) {
var strSql = new StringBuilder(); var strSql = new StringBuilder();
strSql.Append("Select FeeCode,Name,FEECODE + '-' + NAME AS CodeAndName,DEFAULTCURR,DEFAULTDEBIT,DEFAULTCREDIT,feetype,Description,DefaultUnit,FeeFRT,ISADVANCEDPAY,TAXRATE "); strSql.Append("Select FeeCode,Name,FEECODE + '-' + NAME AS CodeAndName,DEFAULTCURR,DEFAULTDEBIT,DEFAULTCREDIT,feetype,Description,DefaultUnit,FeeFRT,ISADVANCEDPAY,ISOPEN,ISINVOICE,TAXRATE ");
strSql.Append(",isnull(CASE DEFAULTDEBIT when 1 then '船公司' when 2 then '订舱代理' when 3 then '场站' when 4 then '车队' when 5 then '委托单位' when 6 then '报关行' when 7 then '代理' when 8 then '航空公司' when 9 then '发货人' when 10 then '收货人' when 11 then '通知人' when 12 then '船代' when 0 then '其他' end ,'') DEFAULTDEBITREF "); strSql.Append(",isnull(CASE DEFAULTDEBIT when 1 then '船公司' when 2 then '订舱代理' when 3 then '场站' when 4 then '车队' when 5 then '委托单位' when 6 then '报关行' when 7 then '代理' when 8 then '航空公司' when 9 then '发货人' when 10 then '收货人' when 11 then '通知人' when 12 then '船代' when 0 then '其他' end ,'') DEFAULTDEBITREF ");
strSql.Append(",isnull(CASE DEFAULTCREDIT when 1 then '船公司' when 2 then '订舱代理' when 3 then '场站' when 4 then '车队' when 5 then '委托单位' when 6 then '报关行' when 7 then '代理' when 8 then '航空公司' when 9 then '发货人' when 10 then '收货人' when 11 then '通知人' when 12 then '船代' when 0 then '其他' end ,'') DEFAULTCREDITREF "); strSql.Append(",isnull(CASE DEFAULTCREDIT when 1 then '船公司' when 2 then '订舱代理' when 3 then '场站' when 4 then '车队' when 5 then '委托单位' when 6 then '报关行' when 7 then '代理' when 8 then '航空公司' when 9 then '发货人' when 10 then '收货人' when 11 then '通知人' when 12 then '船代' when 0 then '其他' end ,'') DEFAULTCREDITREF ");
strSql.Append(" from code_fee "); strSql.Append(" from code_fee ");
@ -5914,6 +5924,7 @@ namespace DSWeb.MvcShipping.DAL.MsChFeeDAL
} }
var YJFEENAME = MsSysParamSetDAL.GetData("PARAMNAME='DZLXFeeCustName'");
T_ALL_DA T_ALL_DA = new T_ALL_DA(); T_ALL_DA T_ALL_DA = new T_ALL_DA();
Database db = DatabaseFactory.CreateDatabase(); Database db = DatabaseFactory.CreateDatabase();
using (var conn = db.CreateConnection()) using (var conn = db.CreateConnection())
@ -5997,7 +6008,7 @@ namespace DSWeb.MvcShipping.DAL.MsChFeeDAL
else else
{ {
db.AddInParameter(cmdInsert, "@fee_type", DbType.Int16, 2); db.AddInParameter(cmdInsert, "@fee_type", DbType.Int16, 2);
db.AddInParameter(cmdInsert, "@customer_name", DbType.String, "青岛鼎程供应链"); db.AddInParameter(cmdInsert, "@customer_name", DbType.String, YJFEENAME.PARAMVALUE);
} }
db.AddInParameter(cmdInsert, "@unit", DbType.String, "票"); db.AddInParameter(cmdInsert, "@unit", DbType.String, "票");

@ -208,7 +208,7 @@ namespace DSWeb.MvcShipping.DAL.MsChFeeAutoDuiDAL
return SetBody(strSql); return SetBody(strSql);
} }
static public List<CH_FEE_AutoDuiDetailmb> GetLocalList ( string CUSTOMERNAME,string AutoDui_GID, string FEETYPE,string HAVEDEBIT,string FEEDC,string CURR,string FSTATUS,string FEEDUITYPE,string FEEDUITYPECONDIT,string SALECORP) static public List<CH_FEE_AutoDuiDetailmb> GetLocalList ( string CUSTOMERNAME,string AutoDui_GID, string FEETYPE,string HAVEDEBIT,string FEEDC,string CURR,string FSTATUS,string FEEDUITYPE,string FEEDUITYPECONDIT,string SALECORP,string PS_OPLB)
{ {
var strSql = new StringBuilder(); var strSql = new StringBuilder();
@ -245,6 +245,11 @@ namespace DSWeb.MvcShipping.DAL.MsChFeeAutoDuiDAL
if ((FEEDC != "0") && (FEEDC.Trim()!= "")){ if ((FEEDC != "0") && (FEEDC.Trim()!= "")){
strSql.Append(" and f.FEETYPE="+FEEDC); strSql.Append(" and f.FEETYPE="+FEEDC);
} }
if (!string.IsNullOrEmpty(PS_OPLB)) {
strSql.Append(" and B.OPLBNAME='" + PS_OPLB + "'");
}
if (CURR!= "") if (CURR!= "")
{ {
strSql.Append(" and f.CURRENCY='" + CURR+"'"); strSql.Append(" and f.CURRENCY='" + CURR+"'");
@ -312,6 +317,11 @@ namespace DSWeb.MvcShipping.DAL.MsChFeeAutoDuiDAL
{ {
strSql.Append(" and f.FEETYPE=" + FEEDC); strSql.Append(" and f.FEETYPE=" + FEEDC);
} }
if (!string.IsNullOrEmpty(PS_OPLB))
{
strSql.Append(" and B.OPLBNAME='" + PS_OPLB + "'");
}
if (CURR != "") if (CURR != "")
{ {
strSql.Append(" and f.CURRENCY='" + CURR + "'"); strSql.Append(" and f.CURRENCY='" + CURR + "'");
@ -673,7 +683,7 @@ namespace DSWeb.MvcShipping.DAL.MsChFeeAutoDuiDAL
DetailList = GetBodyList("BSNO='" + head.GID + "'"); DetailList = GetBodyList("BSNO='" + head.GID + "'");
//var _DelDetailList = new List<CH_FEE_AutoDuiDetailmb>(); //var _DelDetailList = new List<CH_FEE_AutoDuiDetailmb>();
var LocalDetailList = GetLocalList(head.CUSTOMERNAME,head.GID,head.FEETYPE,head.HAVEDEBIT,head.FEEDC,head.CURR,head.FSTATUS,head.FEEDUITYPE,head.FEEDUITYPECONDIT,head.SALECORP); var LocalDetailList = GetLocalList(head.CUSTOMERNAME,head.GID,head.FEETYPE,head.HAVEDEBIT,head.FEEDC,head.CURR,head.FSTATUS,head.FEEDUITYPE,head.FEEDUITYPECONDIT,head.SALECORP,head.PS_OPLB);
//var LocalDetailList = DetailList; //var LocalDetailList = DetailList;
//var result = new DBResult(); //var result = new DBResult();

@ -37,6 +37,8 @@ namespace DSWeb.MvcShipping.DAL.MsCodeFeeSetList
ISTRUCKINGFIXED, ISTRUCKINGFIXED,
ISWMS, ISWMS,
ISADVANCEDPAY, ISADVANCEDPAY,
ISOPEN,
ISINVOICE,
DEFAULTUNIT,ISNULL((case A.DEFAULTUNIT DEFAULTUNIT,ISNULL((case A.DEFAULTUNIT
when 1 then '' when 2 then '' when 1 then '' when 2 then ''
when 3 then '' when 4 then '' when 3 then '' when 4 then ''
@ -90,6 +92,8 @@ namespace DSWeb.MvcShipping.DAL.MsCodeFeeSetList
ISTRUCKINGFIXED, ISTRUCKINGFIXED,
ISWMS, ISWMS,
ISADVANCEDPAY, ISADVANCEDPAY,
ISOPEN,
ISINVOICE,
DEFAULTUNIT,ISNULL((case A.DEFAULTUNIT DEFAULTUNIT,ISNULL((case A.DEFAULTUNIT
when 1 then '' when 2 then '' when 1 then '' when 2 then ''
when 3 then '' when 4 then '' when 3 then '' when 4 then ''
@ -199,6 +203,10 @@ namespace DSWeb.MvcShipping.DAL.MsCodeFeeSetList
data.ISWMS = Convert.ToBoolean(reader["ISWMS"]);//状态 data.ISWMS = Convert.ToBoolean(reader["ISWMS"]);//状态
if (reader["ISADVANCEDPAY"] != DBNull.Value) if (reader["ISADVANCEDPAY"] != DBNull.Value)
data.ISADVANCEDPAY = Convert.ToBoolean(reader["ISADVANCEDPAY"]);//状态 data.ISADVANCEDPAY = Convert.ToBoolean(reader["ISADVANCEDPAY"]);//状态
if (reader["ISOPEN"] != DBNull.Value)
data.ISOPEN = Convert.ToBoolean(reader["ISOPEN"]);//状态
if (reader["ISINVOICE"] != DBNull.Value)
data.ISINVOICE = Convert.ToBoolean(reader["ISINVOICE"]);//状态
data.DEFAULTUNIT = Convert.ToString(reader["DEFAULTUNIT"]); data.DEFAULTUNIT = Convert.ToString(reader["DEFAULTUNIT"]);
data.DEFAULTDEBIT = Convert.ToString(reader["DEFAULTDEBIT"]); data.DEFAULTDEBIT = Convert.ToString(reader["DEFAULTDEBIT"]);

@ -91,6 +91,7 @@ namespace DSWeb.Areas.MvcShipping.DAL
strSql.Append("SELECT "); strSql.Append("SELECT ");
strSql.Append("LE_ID,MBLNO,PORTDISCHARGE,VESSELVOYNO,ETD,DESTINATION,PKC,CNTR,[DESCRIPTION],YARD,[Address],Tel,YARD2,Address2,Tel2,TiXiangTime,RuHuoTime,"); strSql.Append("LE_ID,MBLNO,PORTDISCHARGE,VESSELVOYNO,ETD,DESTINATION,PKC,CNTR,[DESCRIPTION],YARD,[Address],Tel,YARD2,Address2,Tel2,TiXiangTime,RuHuoTime,");
strSql.Append("DRQ,CLOSEDOCDATE,ExportCustoms,CustomsCode,DeclarationCode,REMARK,CLOSINGDATE,DOC,CHIEF,CHIEF2,DOCTEL,DOCFAX,DOCEMAIL,CLOSEVGMDATE,TXXPURL"); strSql.Append("DRQ,CLOSEDOCDATE,ExportCustoms,CustomsCode,DeclarationCode,REMARK,CLOSINGDATE,DOC,CHIEF,CHIEF2,DOCTEL,DOCFAX,DOCEMAIL,CLOSEVGMDATE,TXXPURL");
strSql.Append(",(SELECT TOP 1 SHARE_LINK FROM op_seae_billtrace_share_link where BSNO IN (SELECT BSNO FROM op_letter where LE_ID=op_letter_yard.LE_ID)) TRACKSHARELINK");
strSql.Append(" from op_letter_yard "); strSql.Append(" from op_letter_yard ");
if (!string.IsNullOrEmpty(strCondition)) if (!string.IsNullOrEmpty(strCondition))
@ -161,6 +162,7 @@ namespace DSWeb.Areas.MvcShipping.DAL
if (reader["CLOSEVGMDATE"] != DBNull.Value) if (reader["CLOSEVGMDATE"] != DBNull.Value)
data.CLOSEVGMDATE = Convert.ToDateTime(reader["CLOSEVGMDATE"]).ToString("yyyy-MM-dd HH:mm:ss");//截VGM日期 data.CLOSEVGMDATE = Convert.ToDateTime(reader["CLOSEVGMDATE"]).ToString("yyyy-MM-dd HH:mm:ss");//截VGM日期
data.TXXPURL = Convert.ToString(reader["TXXPURL"]); data.TXXPURL = Convert.ToString(reader["TXXPURL"]);
data.TRACKSHARELINK = Convert.ToString(reader["TRACKSHARELINK"]);
#endregion #endregion
headList.Add(data); headList.Add(data);
} }

@ -1562,6 +1562,81 @@ namespace DSWeb.MvcShipping.DAL.WMSNewDAL
return list; return list;
} }
public static DBResult Modify(List<WMSNewList> bodyList, WMSNewList modifydata, string companyid)
{
var result = new DBResult();
var head = ChMonthCloseDAL.ChMonthCloseDAL.GetData("", companyid);
string errstr = "";
int i = 0;
Database db = DatabaseFactory.CreateDatabase();
using (var conn = db.CreateConnection())
{
conn.Open();
var tran = conn.BeginTransaction();
try
{
var strSql = new StringBuilder();
var strSqlBL = new StringBuilder();
strSql.Append("update wms set GID=GID ");
if (modifydata.BLNO != "" && modifydata.BLNO != null)
strSql.Append(",BLNO=@BLNO");
strSql.Append(" where GID=@GID ");
var cmdupdate =
db.GetSqlStringCommand(strSql.ToString());
if (bodyList != null)
{
foreach (var enumValue in bodyList)
{
var isPost = true;
if (isPost)
{
cmdupdate.Parameters.Clear();
if (modifydata.BLNO != "" && modifydata.BLNO != null)
db.AddInParameter(cmdupdate, "@BLNO", DbType.String, modifydata.BLNO);
db.AddInParameter(cmdupdate, "@GID", DbType.String, enumValue.GID);
db.ExecuteNonQuery(cmdupdate, tran);
i = i + 1;
}
}
}
tran.Commit();
}
catch (Exception)
{
tran.Rollback();
result.Success = false;
result.Message = "修改出现错误,请重试或联系系统管理员";
return result;
}
}
result.Success = true;
result.Message = "修改成功" + i.ToString() + "票";
if (errstr != "")
{
result.Message = result.Message + "(其中" + errstr + " 无法修改)";
}
return result;
}
#region 权限范围 #region 权限范围
public static string GetRangDAStr(string tb, string userid, string username, string companyid) public static string GetRangDAStr(string tb, string userid, string username, string companyid)

@ -930,6 +930,8 @@ namespace DSWeb.MvcShipping.Models.MsChFee
get { return _ISADVANCEDPAY; } get { return _ISADVANCEDPAY; }
set { _ISADVANCEDPAY = value; } set { _ISADVANCEDPAY = value; }
} }
public string ISOPEN { get; set; }
public string ISINVOICE { get; set; }
public decimal TAXRATE public decimal TAXRATE
{ {
get { return _TAXRATE; } get { return _TAXRATE; }

@ -28,7 +28,7 @@ namespace DSWeb.MvcShipping.Models.MsChFeeAutoDui
private string _CURR = string.Empty; private string _CURR = string.Empty;
private string _DUITYPE = string.Empty; private string _DUITYPE = string.Empty;
private string _FEEDUITYPE = string.Empty; private string _FEEDUITYPE = string.Empty;
private string _FEEDUITYPECONDIT ="等于"; private string _FEEDUITYPECONDIT = "等于";
#endregion #endregion
@ -132,6 +132,9 @@ namespace DSWeb.MvcShipping.Models.MsChFeeAutoDui
get { return _DUITYPE; } get { return _DUITYPE; }
set { _DUITYPE = value; } set { _DUITYPE = value; }
} }
[ModelDB]
public string PS_OPLB { get;set;}
public string STATUS_REF public string STATUS_REF
{ {
get { return _STATUS_REF; } get { return _STATUS_REF; }

@ -127,6 +127,13 @@ namespace DSWeb.MvcShipping.Models.MsCodeFeeSetList
[ModelDB] [ModelDB]
public bool ISADVANCEDPAY { get; set; } public bool ISADVANCEDPAY { get; set; }
[ModelDB]
public bool ISOPEN { get; set; }
[ModelDB]
public bool ISINVOICE { get; set; }
[ModelDB] [ModelDB]
public string CREATEUSER { get; set; } public string CREATEUSER { get; set; }
public string CREATEUSERREF { get; set; } public string CREATEUSERREF { get; set; }

@ -148,6 +148,8 @@ namespace DSWeb.MvcShipping.Models.MsOpLetter
[ModelDB] [ModelDB]
public string TXXPURL { get; set; } public string TXXPURL { get; set; }
public string TRACKSHARELINK { get; set; }
#endregion #endregion
public MsOpLetterYard() public MsOpLetterYard()

@ -308,7 +308,9 @@ Ext.define('DsShipping.ux.FeeTypeRefModel', {
{ name: 'FEETYPE', type: 'string' }, { name: 'FEETYPE', type: 'string' },
{ name: 'FEEFRT', type: 'string' }, { name: 'FEEFRT', type: 'string' },
{ name: 'TAXRATE', type: 'number' }, { name: 'TAXRATE', type: 'number' },
{ name: 'ISADVANCEDPAY', type: 'string' } { name: 'ISADVANCEDPAY', type: 'string' },
{ name: 'ISOPEN', type: 'string' },
{ name: 'ISINVOICE', type: 'string' }
] ]
}); });

@ -5749,9 +5749,11 @@ Ext.extend(Shipping.FeeAmendEditGrid, Ext.Panel, {
if (this.MsPeriod.CLOSEDAY != 0) { if (this.MsPeriod.CLOSEDAY != 0) {
var myday = Ext.util.Format.date(oDate1, 'd'); var myday = Ext.util.Format.date(oDate1, 'd');
if (myday > this.MsPeriod.CLOSEDAY) { if (myday > this.MsPeriod.CLOSEDAY) {
var mymonth = Ext.util.Format.date(oDate1, 'm'); var lastMonthDate = new Date(oDate1); //上月日期
var myyear = Ext.util.Format.date(oDate1, 'Y'); lastMonthDate.setDate(1);
mymonth = parseInt(mymonth) + 1; lastMonthDate.setMonth(lastMonthDate.getMonth() + 1);
var mymonth = Ext.util.Format.date(lastMonthDate, 'm');
var myyear = Ext.util.Format.date(lastMonthDate, 'Y');
var mymonthstr = mymonth.toString(); var mymonthstr = mymonth.toString();
if (mymonthstr.length == 1) mymonthstr = '0' + mymonthstr; if (mymonthstr.length == 1) mymonthstr = '0' + mymonthstr;
mydatestr = myyear.toString() + '-' + mymonthstr; mydatestr = myyear.toString() + '-' + mymonthstr;

@ -8935,6 +8935,8 @@ Ext.extend(Shipping.FeeEditGrid, Ext.Panel, {
e.record.set('Remark', Gddata.REMARK); e.record.set('Remark', Gddata.REMARK);
e.record.set('FeeFrt', Gddata.FEEFRT); e.record.set('FeeFrt', Gddata.FEEFRT);
e.record.set('IsAdvancedpay', Gddata.ISADVANCEDPAY); e.record.set('IsAdvancedpay', Gddata.ISADVANCEDPAY);
e.record.set('IsOpen', Gddata.ISOPEN);
e.record.set('IsInvoice', Gddata.ISINVOICE);
var TaxUnitPrice = e.record.data['TaxUnitPrice']; var TaxUnitPrice = e.record.data['TaxUnitPrice'];
var quantity = e.record.data['Quantity']; var quantity = e.record.data['Quantity'];
@ -9116,6 +9118,12 @@ Ext.extend(Shipping.FeeEditGrid, Ext.Panel, {
if (ISADVANCEDPAY != '') { if (ISADVANCEDPAY != '') {
e.record.set('IsAdvancedpay', ISADVANCEDPAY); e.record.set('IsAdvancedpay', ISADVANCEDPAY);
} }
if (data.ISOPEN != '')
e.record.set('IsOpen', data.ISOPEN);
if (data.ISINVOICE != '')
e.record.set('IsInvoice', data.ISINVOICE);
if (DefTaxRate!=0){ if (DefTaxRate!=0){
e.record.set('TaxRate', DefTaxRate); e.record.set('TaxRate', DefTaxRate);
if (_thisfee.ACCTAXRATESAMETAXRATE == 1) e.record.set('AccTaxRate', DefTaxRate); if (_thisfee.ACCTAXRATESAMETAXRATE == 1) e.record.set('AccTaxRate', DefTaxRate);
@ -9272,6 +9280,9 @@ Ext.extend(Shipping.FeeEditGrid, Ext.Panel, {
e.record.set('Remark', Gddata.REMARK); e.record.set('Remark', Gddata.REMARK);
e.record.set('FeeFrt', Gddata.FEEFRT); e.record.set('FeeFrt', Gddata.FEEFRT);
e.record.set('IsAdvancedpay', Gddata.ISADVANCEDPAY); e.record.set('IsAdvancedpay', Gddata.ISADVANCEDPAY);
e.record.set('IsOpen', Gddata.ISOPEN);
e.record.set('IsInvoice', Gddata.ISINVOICE);
var taxrate = e.record.data['TaxRate']; var taxrate = e.record.data['TaxRate'];
TaxUnitPrice = Gddata.UNITPRICE; TaxUnitPrice = Gddata.UNITPRICE;
if (taxrate != null) { if (taxrate != null) {

@ -428,6 +428,11 @@ Ext.extend(Shipping.FeeViewGrid, Ext.Panel, {
return record.data.MANAGERREF; return record.data.MANAGERREF;
}, },
width: 100 width: 100
}, {
sortable: true,
dataIndex: 'SALECORP',
header: '核算单位', //'MANAGER',
width: 100
} }
]; ];
@ -865,6 +870,11 @@ Ext.extend(Shipping.FeeViewGrid, Ext.Panel, {
return record.data.MANAGERREF; return record.data.MANAGERREF;
}, },
width: 100 width: 100
}, {
sortable: true,
dataIndex: 'SALECORP',
header: '核算单位', //'MANAGER',
width: 100
} }
]; ];

@ -314,7 +314,18 @@
displayField: 'CodeAndName' displayField: 'CodeAndName'
}); });
this.StoreOpLb = Ext.create('DsExt.ux.RefEnumStore', {});
this.StoreOpLb.load({ params: { enumTypeId: 96005 } });
this.comboxOpLb = Ext.create('DsExt.ux.RefTableCombox', {
fieldLabel: '业务类型',
store: this.StoreOpLb,
forceSelection: true,
name: 'PS_OPLB',
valueField: 'EnumValueName',
displayField: 'EnumValueName',
enableKeyEvents: true
});
//#endregion //#endregion
@ -396,7 +407,7 @@
labelWidth: 75, labelWidth: 75,
renderer: Ext.util.Format.dateRenderer('Y-m-d H:i:s'), renderer: Ext.util.Format.dateRenderer('Y-m-d H:i:s'),
name: 'OPDATE' name: 'OPDATE'
}, { xtype: 'hiddenfield' } }, this.comboxOpLb
] ]
}, },
{ {

@ -168,7 +168,15 @@ Ext.extend(Shipping.MsCodeFeeSetListEdit, Ext.Panel, {
boxLabel: Zi.LAN.ISADVANCEDPAY, //'是否垫付费用', boxLabel: Zi.LAN.ISADVANCEDPAY, //'是否垫付费用',
inputValue: true, inputValue: true,
name: 'ISADVANCEDPAY' name: 'ISADVANCEDPAY'
}] }, {
boxLabel: Zi.LAN.ISOPEN, //'是否仓储费用',
inputValue: true,
name: 'ISOPEN'
}, {
boxLabel: Zi.LAN.ISINVOICE, //'是否垫付费用',
inputValue: true,
name: 'ISINVOICE'
}]
}); });
this.storeDUITYPE = Ext.create('DsExt.ux.RefEnumStore', {}); this.storeDUITYPE = Ext.create('DsExt.ux.RefEnumStore', {});

@ -13,6 +13,8 @@
{ name: 'ISTRUCKINGFIXED', type: 'boolean' }, { name: 'ISTRUCKINGFIXED', type: 'boolean' },
{ name: 'ISWMS', type: 'boolean' }, { name: 'ISWMS', type: 'boolean' },
{ name: 'ISADVANCEDPAY', type: 'boolean' }, { name: 'ISADVANCEDPAY', type: 'boolean' },
{ name: 'ISOPEN', type: 'boolean' },
{ name: 'ISINVOICE', type: 'boolean' },
{ name: 'DEFAULTUNIT', type: 'string' }, { name: 'DEFAULTUNIT', type: 'string' },
{ name: 'DEFAULTDEBIT', type: 'string' }, { name: 'DEFAULTDEBIT', type: 'string' },
{ name: 'DEFAULTCREDIT', type: 'string' }, { name: 'DEFAULTCREDIT', type: 'string' },

@ -44,7 +44,8 @@ Zi.LAN.QingXianXuanZeXinXi = "Please choose first!";//请先选择要操作的
Zi.LAN.ChaXunTiaoJianFuZhiCuoWu = "Inquiry condition is wrong, please check!";//查询条件赋值错误,请检查! Zi.LAN.ChaXunTiaoJianFuZhiCuoWu = "Inquiry condition is wrong, please check!";//查询条件赋值错误,请检查!
Zi.LAN.DUITYPE = "Fee Group"; Zi.LAN.DUITYPE = "Fee Group";
Zi.LAN.INVGOODNAME = "Inoice Fee Name"; Zi.LAN.INVGOODNAME = "Inoice Fee Name";
Zi.LAN.ISOPEN = "Is Open";
Zi.LAN.ISINVOICE = "Not Invoice";
//#endregion //#endregion

@ -46,7 +46,8 @@ Zi.LAN.QingXianXuanZeXinXi = "请先选择要操作的信息!";
Zi.LAN.ChaXunTiaoJianFuZhiCuoWu = "查询条件赋值错误,请检查!"; Zi.LAN.ChaXunTiaoJianFuZhiCuoWu = "查询条件赋值错误,请检查!";
Zi.LAN.DUITYPE = "对账类别"; Zi.LAN.DUITYPE = "对账类别";
Zi.LAN.INVGOODNAME = "发票商品名称"; Zi.LAN.INVGOODNAME = "发票商品名称";
Zi.LAN.ISOPEN = "机密费用";
Zi.LAN.ISINVOICE = "禁开发票";
//#endregion //#endregion

@ -3308,9 +3308,11 @@ Ext.extend(Shipping.MsOpAireEdit, Ext.Panel, {
if (this.MsPeriod.CLOSEDAY != 0) { if (this.MsPeriod.CLOSEDAY != 0) {
var myday = Ext.util.Format.date(ETD, 'd'); var myday = Ext.util.Format.date(ETD, 'd');
if (myday > this.MsPeriod.CLOSEDAY) { if (myday > this.MsPeriod.CLOSEDAY) {
var mymonth = Ext.util.Format.date(ETD, 'm'); var lastMonthDate = new Date(ETD); //上月日期
var myyear = Ext.util.Format.date(ETD, 'Y'); lastMonthDate.setDate(1);
mymonth = parseInt(mymonth) + 1; lastMonthDate.setMonth(lastMonthDate.getMonth() + 1);
var mymonth = Ext.util.Format.date(lastMonthDate, 'm');
var myyear = Ext.util.Format.date(lastMonthDate, 'Y');
var mymonthstr = mymonth.toString(); var mymonthstr = mymonth.toString();
if (mymonthstr.length == 1) mymonthstr = '0' + mymonthstr; if (mymonthstr.length == 1) mymonthstr = '0' + mymonthstr;
mydatestr = myyear.toString() + '-' + mymonthstr; mydatestr = myyear.toString() + '-' + mymonthstr;

@ -2270,9 +2270,11 @@ Ext.extend(Shipping.MsOpAiriEdit, Ext.Panel, {
if (this.MsPeriod.CLOSEDAY != 0) { if (this.MsPeriod.CLOSEDAY != 0) {
var myday = Ext.util.Format.date(ETD, 'd'); var myday = Ext.util.Format.date(ETD, 'd');
if (myday > this.MsPeriod.CLOSEDAY) { if (myday > this.MsPeriod.CLOSEDAY) {
var mymonth = Ext.util.Format.date(ETD, 'm'); var lastMonthDate = new Date(ETD); //上月日期
var myyear = Ext.util.Format.date(ETD, 'Y'); lastMonthDate.setDate(1);
mymonth = parseInt(mymonth) + 1; lastMonthDate.setMonth(lastMonthDate.getMonth() + 1);
var mymonth = Ext.util.Format.date(lastMonthDate, 'm');
var myyear = Ext.util.Format.date(lastMonthDate, 'Y');
var mymonthstr = mymonth.toString(); var mymonthstr = mymonth.toString();
if (mymonthstr.length == 1) mymonthstr = '0' + mymonthstr; if (mymonthstr.length == 1) mymonthstr = '0' + mymonthstr;
mydatestr = myyear.toString() + '-' + mymonthstr; mydatestr = myyear.toString() + '-' + mymonthstr;

@ -357,7 +357,26 @@ Ext.extend(Shipping.MsOpLetterYardEdit, Ext.Panel, {
}, },
scope: this scope: this
}] }]
},{ }, {
xtype: 'container',
layout: 'hbox',
defaultType: 'textfield',
items: [{
fieldLabel: '运踪地址',
labelWidth: 90,
name: 'TRACKSHARELINK'
}, {
xtype: 'button',
width: 90,
text: '复制链接', //"执行查询",
iconCls: "btnrefresh",
handler: function (button, event) {
var url = _this.formEdit.getForm().findField('TRACKSHARELINK').getValue();
copyToClipboard(url);
},
scope: this
}]
},{
xtype: 'container', xtype: 'container',
layout: 'hbox', layout: 'hbox',
defaultType: 'textfield', defaultType: 'textfield',

@ -30,6 +30,8 @@
{ name: 'DOCFAX', type: 'string' }, { name: 'DOCFAX', type: 'string' },
{ name: 'DOCEMAIL', type: 'string' }, { name: 'DOCEMAIL', type: 'string' },
{ name: 'REMARK', type: 'string' }, { name: 'REMARK', type: 'string' },
{ name: 'TXXPURL', type: 'string' },
{ name: 'TRACKSHARELINK', type: 'string' },
{ name: 'CLOSEVGMDATE', type: 'string' } { name: 'CLOSEVGMDATE', type: 'string' }
] ]
}); });

@ -1622,9 +1622,11 @@ Ext.extend(Shipping.MsOpOtherEdit, Ext.Panel, {
if (_this.MsPeriod.CLOSEDAY != 0) { if (_this.MsPeriod.CLOSEDAY != 0) {
var myday = Ext.util.Format.date(ETD, 'd'); var myday = Ext.util.Format.date(ETD, 'd');
if (myday > _this.MsPeriod.CLOSEDAY) { if (myday > _this.MsPeriod.CLOSEDAY) {
var mymonth = Ext.util.Format.date(ETD, 'm'); var lastMonthDate = new Date(ETD); //上月日期
var myyear = Ext.util.Format.date(ETD, 'Y'); lastMonthDate.setDate(1);
mymonth = parseInt(mymonth) + 1; lastMonthDate.setMonth(lastMonthDate.getMonth() + 1);
var mymonth = Ext.util.Format.date(lastMonthDate, 'm');
var myyear = Ext.util.Format.date(lastMonthDate, 'Y');
var mymonthstr = mymonth.toString(); var mymonthstr = mymonth.toString();
if (mymonthstr.length == 1) mymonthstr = '0' + mymonthstr; if (mymonthstr.length == 1) mymonthstr = '0' + mymonthstr;
mydatestr = myyear.toString() + '-' + mymonthstr; mydatestr = myyear.toString() + '-' + mymonthstr;

@ -488,20 +488,20 @@ Ext.extend(Shipping.MsOpCtnDetailEdit, Ext.Panel, {
bodydatas.push(member); bodydatas.push(member);
} }
var jsonBody = ConvertRecordsToJsonAll(bodydatas); var jsonBody = ConvertRecordsToJsonAll(bodydatas);
//
//if (iPKGS2 > iPKGS) { if (iPKGS2 != iPKGS) {
// Ext.Msg.show({ title: '错误', msg: "多品名中 件数总和 超出 集装箱件数!", icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK }); Ext.Msg.show({ title: '错误', msg: "多品名中 件数总和与集装箱件数不一致!", icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK });
// return; return;
//} }
//if (dKGS2 > dKGS) { if (dKGS2 != dKGS) {
// Ext.Msg.show({ title: '错误', msg: "多品名中 重量总和 超出 集装箱重量!", icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK }); Ext.Msg.show({ title: '错误', msg: "多品名中 重量总和与集装箱重量不一致!", icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK });
// return; return;
//} }
//if (dCBM2 > dCBM) { if (dCBM2 != dCBM) {
// Ext.Msg.show({ title: '错误', msg: "多品名中 立方数总 超出 集装箱立方数!", icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK }); Ext.Msg.show({ title: '错误', msg: "多品名中 立方数总和与集装箱立方数不一致!", icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK });
// return; return;
//} }
//
Ext.Msg.wait('正在保存数据, 请稍侯..'); Ext.Msg.wait('正在保存数据, 请稍侯..');
Ext.Ajax.request({ Ext.Ajax.request({
waitMsg: '正在保存数据...', waitMsg: '正在保存数据...',

@ -4361,9 +4361,11 @@ Ext.extend(Shipping.MsOpSeaiEdit, Ext.Panel, {
if (_this.MsPeriod.CLOSEDAY != 0) { if (_this.MsPeriod.CLOSEDAY != 0) {
var myday = Ext.util.Format.date(ETD, 'd'); var myday = Ext.util.Format.date(ETD, 'd');
if (myday > _this.MsPeriod.CLOSEDAY) { if (myday > _this.MsPeriod.CLOSEDAY) {
var mymonth = Ext.util.Format.date(ETD, 'm'); var lastMonthDate = new Date(ETD); //上月日期
var myyear = Ext.util.Format.date(ETD, 'Y'); lastMonthDate.setDate(1);
mymonth = parseInt(mymonth) + 1; lastMonthDate.setMonth(lastMonthDate.getMonth() + 1);
var mymonth = Ext.util.Format.date(lastMonthDate, 'm');
var myyear = Ext.util.Format.date(lastMonthDate, 'Y');
var mymonthstr = mymonth.toString(); var mymonthstr = mymonth.toString();
if (mymonthstr.length == 1) mymonthstr = '0' + mymonthstr; if (mymonthstr.length == 1) mymonthstr = '0' + mymonthstr;
mydatestr = myyear.toString() + '-' + mymonthstr; mydatestr = myyear.toString() + '-' + mymonthstr;

@ -800,6 +800,11 @@ Ext.extend(Shipping.WMSNewIndex, Ext.Panel, {
}, },
scope: this scope: this
}, {
text: "业务批量修改",
handler: function (menu, event) {
_this.winModifyShow.show();
}
} }
] ]
}); });
@ -818,6 +823,78 @@ Ext.extend(Shipping.WMSNewIndex, Ext.Panel, {
this.InitData(); this.InitData();
this.formModify = Ext.widget('form', {
region: 'north',
frame: true,
bodyPadding: 5,
fieldDefaults: {
margins: '2 2 2 2',
labelAlign: 'right',
flex: 1,
labelWidth: 70,
msgTarget: 'qtip'
},
items: [
{//fieldset 1
xtype: 'fieldset',
defaultType: 'textfield',
layout: 'anchor',
defaults: {
anchor: '100%'
},
items: [{
xtype: 'container',
layout: 'hbox',
defaultType: 'textfield',
items: [{
fieldLabel: '提单号',
name: 'BLNO'
}, { xtype: 'hiddenfield' }, { xtype: 'hiddenfield' }
]
}
]//end items(fieldset 1)
}//end fieldset 1
]//end root items
}); //end this.formEdit
me = this;
this.winModifyShow = Ext.create('Ext.window.Window', {
title: "批量修改",
width: 820,
//height : 120,
//plain : true,
iconCls: "addicon",
resizable: false,
// 是否可以拖动
// draggable:false,
collapsible: true, // 允许缩放条
closeAction: 'close',
closable: true,
modal: 'true',
buttonAlign: "center",
bodyStyle: "padding:0 0 0 0",
items: [this.formModify],
buttons: [{
text: "确认修改",
minWidth: 70,
handler: function () {
me.onModifyClick()
}
}, {
text: "关闭",
minWidth: 70,
handler: function () {
me.winModifyShow.close();
}
}]
});
}, //end initUIComponents }, //end initUIComponents
@ -939,6 +1016,70 @@ Ext.extend(Shipping.WMSNewIndex, Ext.Panel, {
}, this); }, this);
}, //onDeleteClick }, //onDeleteClick
onModifyClick: function (menu, event) {
var GidStr = '';
var records = this.gridList.getSelectionModel().getSelection();
if (records.length == 0) {
Ext.Msg.show({ title: '提示', msg: '请先选择要修改的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
return;
}
var bodyAddDatas = [];
for (var i = 0; i < records.length; i++) {
var rec = records[i];
bodyAddDatas.push(rec);
}
var data = this.formModify.getForm().getValues();
_this = this;
if (bodyAddDatas.length == 0) {
Ext.Msg.show({ title: '提示', msg: '没有要修改的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
return;
} else {
var jsonbodyAddDatas = ConvertRecordsToJsonAll(bodyAddDatas);
Ext.Ajax.request({
waitMsg: '正在修改...',
url: '/MvcShipping/WMSNew/modify',
params: {
data: jsonbodyAddDatas,
modifydata: Ext.JSON.encode(data)
},
callback: function (options, success, response) {
if (success) {
var result = Ext.JSON.decode(response.responseText);
if (!result.Success) {
Ext.Msg.show({
title: '提示',
msg: result.Message,
icon: Ext.MessageBox.ERROR,
buttons: Ext.Msg.OK
});
return;
} else {
Ext.Msg.show({ title: '提示', msg: result.Message, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
_this.storeList.reload();
_this.winModifyShow.close();
}
} else {
Ext.MessageBox.alert('请求出现错误,请重试', response.responseText);
}
},
scope: this
});
}
},
getCondition: function () { getCondition: function () {
var form = this.formSearch.getForm(); var form = this.formSearch.getForm();
if (!form.isValid()) { if (!form.isValid()) {

@ -2,7 +2,7 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup> <PropertyGroup>
<ProjectView>ShowAllFiles</ProjectView> <ProjectView>ShowAllFiles</ProjectView>
<NameOfLastUsedPublishProfile>H:\DS7_dev\DSWeb\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile> <NameOfLastUsedPublishProfile>配置文件1</NameOfLastUsedPublishProfile>
<UseIISExpress>true</UseIISExpress> <UseIISExpress>true</UseIISExpress>
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig> <LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
<Use64BitIISExpress /> <Use64BitIISExpress />

@ -1,5 +1,4 @@
using log4net; using log4net;
using Newtonsoft.Json;
using Quartz; using Quartz;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
@ -104,7 +103,9 @@ namespace JobCreateFee
string Voyage = ""; string Voyage = "";
string POL = ""; string POL = "";
string POD = ""; string POD = "";
string TermsCode = ""; string POLID = "";
string PODID = "";
string TermsCode = "";
string PaymentTypeDescription = ""; string PaymentTypeDescription = "";
string ShipperDescription = ""; string ShipperDescription = "";
string MarksNumbers = ""; string MarksNumbers = "";
@ -114,6 +115,7 @@ namespace JobCreateFee
string CONSIGNEE = ""; string CONSIGNEE = "";
string NOTIFYPARTY = ""; string NOTIFYPARTY = "";
string FinalDest = ""; string FinalDest = "";
string FinalDestID = "";
string FinalDestCountry = ""; string FinalDestCountry = "";
string ETD = ""; string ETD = "";
string MhLane = ""; string MhLane = "";
@ -163,9 +165,12 @@ namespace JobCreateFee
if (string.IsNullOrEmpty(rowmhdata["BLNotify1Contact"].ToString())) NOTIFYPARTY = NOTIFYPARTY + Environment.NewLine + rowmhdata["BLNotify1Contact"].ToString(); if (string.IsNullOrEmpty(rowmhdata["BLNotify1Contact"].ToString())) NOTIFYPARTY = NOTIFYPARTY + Environment.NewLine + rowmhdata["BLNotify1Contact"].ToString();
ETD = GETETD(Vessel, Voyage, dbcon); ETD = GETETD(Vessel, Voyage, dbcon);
MhLane = GetMHLane(BOOKID,dbmh); MhLane = GetMHLane(BOOKID,dbmh);
POLID = GetMHPortid(POL, dbmh);
PODID = GetMHPortid(POD, dbmh);
FinalDestID = GetMHPortid(FinalDest, dbmh);
} }
pkgs = pkgs + Convert.ToInt32(rowmhdata["Quantity"]); pkgs = pkgs + Convert.ToInt32(rowmhdata["Quantity"]);
cbm = cbm + Convert.ToDecimal(rowmhdata["Measurement"]); cbm = cbm + Convert.ToDecimal(rowmhdata["Measurement"]);
@ -377,7 +382,8 @@ namespace JobCreateFee
strSqlUpdateD6.Append("update t_op_seae_assistant set 运费协议号=@ServiceContract,备注=@Comment,船名=@Vessel,航次=@Voyage,装货港=@POL"); strSqlUpdateD6.Append("update t_op_seae_assistant set 运费协议号=@ServiceContract,备注=@Comment,船名=@Vessel,航次=@Voyage,装货港=@POL");
strSqlUpdateD6.Append(",卸货港=@POD,目的地=@DEST,运输条款=@TermsCode,付费方式=@PaymentTypeDescription,货物描述=@ShipperDescription,唛头=@MarksNumbers"); strSqlUpdateD6.Append(",卸货港=@POD,目的地=@DEST,运输条款=@TermsCode,付费方式=@PaymentTypeDescription,货物描述=@ShipperDescription,唛头=@MarksNumbers");
strSqlUpdateD6.Append(",件数=@PKGS,重量=@KGS,尺码=@CBM,运输方式=@HarmonizedCode,包装=@PackageType,件数包装=@PKGSKIND,货物重量=@GOODKGS,货物尺码=@GOODCBM,集装箱=@CTNSTR"); strSqlUpdateD6.Append(",件数=@PKGS,重量=@KGS,尺码=@CBM,运输方式=@HarmonizedCode,包装=@PackageType,件数包装=@PKGSKIND,货物重量=@GOODKGS,货物尺码=@GOODCBM,集装箱=@CTNSTR");
strSqlUpdateD6.Append(",发货人代码=@SHIPPER,收货人代码=@CONSIGNEE,通知人代码=@NOTIFYPARTY,开船日期=@ETD,船公司航线=@MHLANE where AS_ID='" + BSNO + "'"); strSqlUpdateD6.Append(",装港代码=@POLID,卸货代码=@PODID,目的地代码=@FinalDestID");
strSqlUpdateD6.Append(",发货人代码=@SHIPPER,收货人代码=@CONSIGNEE,通知人代码=@NOTIFYPARTY,开船日期=@ETD,船公司航线=@MHLANE where AS_ID='" + BSNO + "'");
} }
else else
@ -385,7 +391,9 @@ namespace JobCreateFee
strSqlUpdateD6.Append("update t_op_seae set 运费协议号=@ServiceContract,备注=@Comment,船名=@Vessel,航次=@Voyage,装货港=@POL"); strSqlUpdateD6.Append("update t_op_seae set 运费协议号=@ServiceContract,备注=@Comment,船名=@Vessel,航次=@Voyage,装货港=@POL");
strSqlUpdateD6.Append(",卸货港=@POD,目的地=@DEST,运输条款=@TermsCode,付费方式=@PaymentTypeDescription,货物描述=@ShipperDescription,唛头=@MarksNumbers"); strSqlUpdateD6.Append(",卸货港=@POD,目的地=@DEST,运输条款=@TermsCode,付费方式=@PaymentTypeDescription,货物描述=@ShipperDescription,唛头=@MarksNumbers");
strSqlUpdateD6.Append(",件数=@PKGS,重量=@KGS,尺码=@CBM,运输方式=@HarmonizedCode,包装=@PackageType,件数包装=@PKGSKIND,货物重量=@GOODKGS,货物尺码=@GOODCBM,集装箱=@CTNSTR"); strSqlUpdateD6.Append(",件数=@PKGS,重量=@KGS,尺码=@CBM,运输方式=@HarmonizedCode,包装=@PackageType,件数包装=@PKGSKIND,货物重量=@GOODKGS,货物尺码=@GOODCBM,集装箱=@CTNSTR");
strSqlUpdateD6.Append(",发货人代码=@SHIPPER,收货人代码=@CONSIGNEE,通知人代码=@NOTIFYPARTY,开船日期=@ETD,船公司航线=@MHLANE "+ ctnUpdatestr + " where 编号='" + BSNO + "'"); strSqlUpdateD6.Append(",装港代码=@POLID,卸货代码=@PODID,目的地代码=@FinalDestID");
strSqlUpdateD6.Append(",发货人代码=@SHIPPER,收货人代码=@CONSIGNEE,通知人代码=@NOTIFYPARTY,开船日期=@ETD,船公司航线=@MHLANE "+ ctnUpdatestr + " where 编号='" + BSNO + "'");
} }
dbcon.Open(); dbcon.Open();
log.Debug($"更新业务信息{strSqlUpdateD6.ToString()}"); log.Debug($"更新业务信息{strSqlUpdateD6.ToString()}");
@ -398,6 +406,9 @@ namespace JobCreateFee
cmdUpdateD6.Parameters.AddWithValue("@POL", POL); cmdUpdateD6.Parameters.AddWithValue("@POL", POL);
cmdUpdateD6.Parameters.AddWithValue("@POD", POD); cmdUpdateD6.Parameters.AddWithValue("@POD", POD);
cmdUpdateD6.Parameters.AddWithValue("@DEST", FinalDest); cmdUpdateD6.Parameters.AddWithValue("@DEST", FinalDest);
cmdUpdateD6.Parameters.AddWithValue("@POLID", POLID);
cmdUpdateD6.Parameters.AddWithValue("@PODID", PODID);
cmdUpdateD6.Parameters.AddWithValue("@FinalDestID", FinalDestID);
cmdUpdateD6.Parameters.AddWithValue("@TermsCode", TermsCode); cmdUpdateD6.Parameters.AddWithValue("@TermsCode", TermsCode);
cmdUpdateD6.Parameters.AddWithValue("@PaymentTypeDescription", PaymentTypeDescription); cmdUpdateD6.Parameters.AddWithValue("@PaymentTypeDescription", PaymentTypeDescription);
cmdUpdateD6.Parameters.AddWithValue("@ShipperDescription", ShipperDescription); cmdUpdateD6.Parameters.AddWithValue("@ShipperDescription", ShipperDescription);
@ -560,7 +571,27 @@ namespace JobCreateFee
return result; return result;
} }
static public string GetMHPortid(string port, SqlConnection dbcon)
{
var result = "";
if (string.IsNullOrEmpty(port)) return result;
var strSql = new StringBuilder();
strSql.Append("select top 1 LocationCode from uLocation where Location ='" + port + "'");
SqlDataAdapter adapter = new SqlDataAdapter(strSql.ToString(), dbcon);
DataTable table = new DataTable();
adapter.Fill(table);
if (table.Rows.Count > 0)
{
foreach (DataRow row in table.Rows)
{
result = row["LocationCode"].ToString();
}
}
return result;
}
} }
} }

Loading…
Cancel
Save