20241203;pil小窗,消除一些问题。

同步bc数据算法修改,接收到数据后,如果没有找到业务,也保存这条bc数据,但bsno与此条数据gid相同。获取业务的bc数据时,条件由bsno相同改为bsno或TRANSNO相同。业务中的TRANSNO需手动维护
ShenZhenCHJY
dengyu 1 week ago
parent 26777a9de5
commit e7c0adcbe6

@ -3560,6 +3560,9 @@ namespace DSWeb.Common.DB
{
GID = Guid.NewGuid().ToString();
this.BSNO = BSNO;
if (string.IsNullOrWhiteSpace(this.BSNO)) {
this.BSNO = GID;
}
CREATETIME = DateTime.Now;
USED = false;
}

@ -433,6 +433,13 @@ namespace DSWeb.Areas.CommMng.DAL
//新增业务
//var ctnlist = head.GetCtnList("*");
if (head.SyncType == "BC") {
head.SetField(ref newhead);
}
//newhead.BSNO = "topseae" + Guid.NewGuid().ToString();
//var _r = DSWeb.MvcShipping.DAL.MsOpSeaeDAL.MsOpSeaeDAL.DoSave(

@ -13692,7 +13692,9 @@ namespace DSWeb.MvcShipping.Controllers
return new ContentResult() { Content = JsonConvert.Serialize(jsonRespose2) };
}
var dataList = MsOpSeaeDAL.GetSyncBCList(BSNO);
var head = MsOpSeaeDAL.GetData(" BSNO = '" + BSNO + "'");
var dataList = MsOpSeaeDAL.GetSyncBCList(head.BSNO,head.TRANSNO);
int count = dataList.Count();
var json = JsonConvert.Serialize(new { Success = true, Message = "查询成功", totalCount = count, data = dataList});
return new ContentResult() { Content = json };

@ -7876,14 +7876,23 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL
static public List<DJY_SYNC_BC_md> GetSyncBCList(string BSNO)
static public List<DJY_SYNC_BC_md> GetSyncBCList(string BSNO,string TRANSNO="")
{
var cdc = new CommonDataContext();
var result = cdc.DJY_SYNC_BC.Where(x => x.BSNO == BSNO && x.USED==false).ToList();
if (string.IsNullOrWhiteSpace(TRANSNO))
{
var result = cdc.DJY_SYNC_BC.Where(x => (x.BSNO == BSNO ) && x.USED == false).ToList();
return result;
}
else {
var result = cdc.DJY_SYNC_BC.Where(x => (x.BSNO == BSNO || x.TRANSNO==TRANSNO) && x.USED == false).ToList();
return result;
}
}
}
@ -9866,7 +9875,8 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL
SetHeadField("LANE", OpseaeDjyOrderHead.LANE);
SetHeadField("ETD", ((DateTime)OpseaeDjyOrderHead.ETD).ToString("yyyy-MM-dd"));
SetHeadField("ORDERNO", OpseaeHead.ORDNO);//彩虹的 BC号 。大简云的订单号
//SetHeadField("ORDERNO", OpseaeHead.ORDNO);//彩虹的 BC号 。大简云的订单号
SetHeadField("ORDERNO", OpseaeHead.CUSTNO);//20241203 应衣国豪要求 改用东胜业务的CUSTNO
var cdc = new CommonDataContext();

@ -14,7 +14,7 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
EditRecord: null,
Editdata: null,
MainEditRecord: null,
seaeHeadData:null,
seaeHeadData: null,
initUIComponents: function () {
@ -493,11 +493,11 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
this.comboxCargoid2 = Ext.create('DsExt.ux.RefTableCombox', {
store: this.StoreCargoid,
labelWidth:60,
labelWidth: 60,
fieldLabel: "<a><font color='#000000'>货物类型</font></a>",
forceSelection: true,
allowBlank: true,
flex:0.70,
flex: 0.70,
//width: 1200,
name: 'CARGOID',
valueField: 'EnumValueId',
@ -585,7 +585,7 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
this.comboxPLACERECEIPTID = Ext.create('DsExt.ux.RefTableCombox', {
fieldLabel: "收货地", //'装货港',
hidden:true,
hidden: true,
labelWidth: 60,
store: this.storeCodeLoadport_Order2,
name: 'PLACERECEIPTID',
@ -1065,7 +1065,7 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
this.comboxPAYABLEAT = Ext.create('DsExt.ux.RefTableCombox', {
fieldLabel: Zi.LAN.PAYABLEAT, //'到付地点',
store: this.storeCodeDisport6,
id:"comboxPAYABLEAT",
id: "comboxPAYABLEAT",
queryMode: 'remote',
minChars: 2,
queryParam: 'PORT',
@ -1176,6 +1176,78 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
});
this.storeISSUETYPE = Ext.create('DsExt.ux.RefTableStore', {
model: 'CODE_BLTYPE',
proxy: { url: '/CommMng/BasicDataRef/GetCodeBLTYPEList' }
});
this.storeISSUETYPE.load({ params: { condition: "" } });
this.comboxISSUETYPE = Ext.create('DsExt.ux.RefTableCombox', {
fieldLabel: Zi.LAN.ISSUETYPE, //'签单方式',
store: this.storeISSUETYPE,
forceSelection: true,
name: 'ISSUETYPE',
id: 'ISSUETYPE',
valueField: 'BLTYPE',
displayField: 'BLTYPE',
listeners: {
scope: this,
'select': function (combo, records, eOpts) {
if (records.length > 0) {
if (records[0].data.NOBILL != '') {
this.formEdit.getForm().findField('NOBILL').setValue(records[0].data.NOBILL);
this.formEdit.getForm().findField('COPYNOBILL').setValue(records[0].data.COPYNOBILL);
} else {
if (combo.value == "正本") {
this.formEdit.getForm().findField('NOBILL').setValue('THREE');
this.formEdit.getForm().findField('COPYNOBILL').setValue('ONE');
} else if (combo.value == "电放") {
this.formEdit.getForm().findField('NOBILL').setValue('ONE');
}
}
}
}
}
});
this.storeCodeGoodsList = Ext.create('DsExt.ux.RefTableStore', {
model: 'DsShipping.ux.CodeGoodsModel',
proxy: { url: '/CommMng/BasicDataRef/GetCodeGoodsList' }
});
this.storeCodeGoodsList.load();
this.comboxGOODSNAME = Ext.create('DsExt.ux.RefTableCombox', {
fieldLabel: "中文品名",
store: this.storeCodeGoodsList,
labelWidth: 60,
// forceSelection: true,
name: 'GOODSNAME',
valueField: 'GOODNAME',
displayField: 'CodeAndName'
});
this.comboxGOODCODE = Ext.create('DsExt.ux.RefTableCombox', {
store: this.storeCodeGoodsList,
name: 'HSCODE',
fieldLabel: Zi.LAN.HSCODE, //'HS编码',
labelWidth: 45,
valueField: 'GOODCODE',
displayField: 'GOODCODE',
listeners: {
scope: this,
'select': function (combo, records, eOpts) {
if (records.length > 0) {
var hscode = combo.value;
if (hscode.length > 6) {
hscode = hscode.substring(0, 6);
this.formEdit.getForm().findField('HSCODE').setValue(hscode);
}
}
}
}
});
//////////////////////
this.formDjyOrder = Ext.widget('form', {
@ -1226,7 +1298,7 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
, {
xtype: 'container',
id: 'formDjyOrder_3',
hidden:false,
hidden: false,
layout: 'hbox',
defaultType: 'textfield',
labelWidth: 60,
@ -1238,7 +1310,7 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
readOnly: true,
name: 'CARRIER'
},{
}, {
xtype: 'datefield',
format: 'Y-m-d',
@ -1268,7 +1340,7 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
labelWidth: 60,
items: [
this.comboxPLACERECEIPTID
,this.comboxPORTLOAD2
, this.comboxPORTLOAD2
, this.comboxPORTDISCHARGE2
, this.comboxDESTINATION2
@ -1282,23 +1354,26 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
defaultType: 'textfield',
labelWidth: 60,
items: [
{
flex: 1,
xtype: 'label',
html: '提单类型'
},
{
flex: 1,
xtype: 'label',
html: '中文品名'
},
{
flex: 1,
xtype: 'label',
html: 'HSCODE'
},
this.comboxSERVICE
, this.comboxMBLFRT
//{
// flex: 1,
// xtype: 'label',
// html: '签单方式'
//},
this.comboxISSUETYPE,
//{
// flex: 1,
// xtype: 'label',
// html: '中文品名'
//},
this.comboxGOODSNAME,
//{
// flex: 1,
// xtype: 'label',
// html: 'HSCODE'
//},
this.comboxGOODCODE,
this.comboxSERVICE,
this.comboxMBLFRT
]
}
@ -1617,7 +1692,7 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
var grid_VesselVoyno = Ext.create('Ext.grid.Panel', {
region: "center",
autoWidth:false,
autoWidth: false,
store: _this.storeVesselVoyno,
plugins: [{
ptype: 'rowexpander',
@ -1691,7 +1766,7 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
}, this);
grid_VesselVoyno.view.on('expandBody', function (rowNode, record, expandRow, eOpts) {
_this.displayInnerGrid(record.get('ID') );
_this.displayInnerGrid(record.get('ID'));
});
grid_VesselVoyno.view.on('collapsebody', function (rowNode, record, expandRow, eOpts) {
@ -1759,8 +1834,8 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
this.formDjyOrder
,this.panel_DjyOrderBody
,this.panelBtn
, this.panel_DjyOrderBody
, this.panelBtn
/////////
//,this.gridList_OrderCtn
//, this.gridDocList
@ -1770,6 +1845,15 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
//#endregion
//装货港
this.storeCodeLoadport_Order.add({ EDICODE: this.seaeHeadData.PORTLOADID, CodeAndName: this.seaeHeadData.PORTLOAD });
//卸货港
this.storeCodeDisport_Order.add({ EDICODE: this.seaeHeadData.PORTDISCHARGEID, CodeAndName: this.seaeHeadData.PORTDISCHARGE });
//目的地
this.storeCodeDisport_Order2.add({ EDICODE: this.seaeHeadData.DESTINATIONID, CodeAndName: this.seaeHeadData.DESTINATION });
this.formDjyOrder.getForm().setValues(this.seaeHeadData);
this.LoadData();
@ -1921,8 +2005,7 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
,
DoSendDjyOrder()
{
DoSendDjyOrder() {
me = this;
var BSNO = this.seaeHeadData.BSNO;
@ -1998,8 +2081,7 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
{
me.storeDocList.remove(selectedRecords[i]);
}
else
{
else {
var feeGId = "" + rec.data.GID + "";
if (feeGidSql == '') {
feeGidSql = feeGId;
@ -2255,12 +2337,10 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
// checked: false
//}
if (this.carrier == "PIL")
{
if (this.carrier == "PIL") {
carriervalue = 'PABV';
}
if (this.carrier == "ZIM")
{
if (this.carrier == "ZIM") {
carriervalue = 'ZIMU';
}
this.ParentWin.LeYuDingCangSwap(data, bodydatas, FILETYPE, FILEROLE, carriervalue);

@ -131,14 +131,14 @@
<add name="DongShengDB" connectionString="Server=123.234.225.158,26600;Database=shippingwebTEST;User ID=sa;Password=Ds20040201;Connect Timeout=120000;" providerName="System.Data.SqlClient" />
<add name="sydevzsh" connectionString="Server=123.234.225.158,26600;Database=shippingwebTEST;User ID=sa;Password=Ds20040201;Connect Timeout=120000;" providerName="System.Data.SqlClient" />
-->
<!-- 深圳彩虹捷运 正式库 rainbow admin admin -->
<!-- 深圳彩虹捷运 正式库 rainbow admin admin
<add name="DongShengDB" connectionString="Server=119.23.249.201,12356;Database=ShippingWeb_CHJY;User ID=sa;Password=Ds20040201;Connect Timeout=120000;" providerName="System.Data.SqlClient" />
<add name="sydevzsh" connectionString="Server=119.23.249.201,12356;Database=ShippingWeb_CHJY;User ID=sa;Password=Ds20040201;Connect Timeout=120000;" providerName="System.Data.SqlClient" />
<!-- 深圳彩虹捷运 测试库 CHJY admin 123456
-->
<!-- 深圳彩虹捷运 测试库 CHJY admin 123456 -->
<add name="DongShengDB" connectionString="Server=119.23.249.201,12356;Database=1107;User ID=sa;Password=Ds20040201;Connect Timeout=120000;" providerName="System.Data.SqlClient" />
<add name="sydevzsh" connectionString="Server=119.23.249.201,12356;Database=1107;User ID=sa;Password=Ds20040201;Connect Timeout=120000;" providerName="System.Data.SqlClient" />
-->
<!-- 深圳泛亚捷运 正式库 SZFYJY admin 123456
<add name="DongShengDB" connectionString="Server=39.108.7.69,62356;Database=ShippingWeb_SZFYJY;User ID=sa;Password=Ds20040201;Connect Timeout=120000;" providerName="System.Data.SqlClient" />

Loading…
Cancel
Save