dev
dengyu 1 month ago
commit f09f64917a

@ -25407,7 +25407,7 @@ namespace DSWeb.Areas.Account.DAL.Chfee_Settlement
sortint = sortint + 1;
}
CwVouitemsEntities = tmpCwVouitemsEntities.OrderByDescending(x => x.TMPGID).ThenBy(p => p.ITEMNO).ToList();
CwVouitemsEntities = tmpCwVouitemsEntities.OrderBy(x => x.TMPGID).ThenBy(p => p.ITEMNO).ToList();
}
else {
foreach (var vouitem in CwVouitemsEntities)
@ -25678,7 +25678,7 @@ namespace DSWeb.Areas.Account.DAL.Chfee_Settlement
result = modb.Save(MsCwVouchersGl);
if (result.Success == true)
{
var NewCwVouitemsEntities=CwVouitemsEntities.OrderByDescending(x=>x.TMPBILLNO).ThenBy(x=>x.ITEMNO);
var NewCwVouitemsEntities=CwVouitemsEntities.OrderBy(x=>x.TMPBILLNO).ThenBy(x=>x.ITEMNO);
int n = 1;
foreach (var enumValue in NewCwVouitemsEntities)

@ -218,6 +218,7 @@
|| name == "ENTERPID"
|| name == "OPERATORFAX"
|| name == "KGS"
|| name == "PKGS"
|| name == "CBM"
|| name == "VOYNO"|| name == "ETD"|| name == "YARD") {
tag = "input";

@ -2653,14 +2653,14 @@ Ext.extend(Shipping.MsOpPriceEdit, Ext.Panel, {
Print: function () {
var basicForm = this.formHead.getForm();
var billNo = basicForm.findField('BSNO').value;
var billNo = basicForm.findField('GID').value;
if (billNo == '*' || billNo == '') {
Ext.Msg.show({ title: '错误', msg: '单据还没有保存,请保存后再打印', icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK });
return;
}
var printType = 'MSOPOHTER';
var sql1 = "SET LANGUAGE 'us_english' SELECT * FROM op_other WHERE BSNO = '" + billNo + "'";
var printType = 'MSOPPRICE';
var sql1 = "SET LANGUAGE 'us_english' SELECT * FROM op_price WHERE GID = '" + billNo + "'";
var sql2 = "";
var sql3 = "";
var sql4 = "";

@ -2759,14 +2759,14 @@ Ext.extend(Shipping.MsOpPriceSellEdit, Ext.Panel, {
Print: function () {
var basicForm = this.formHead.getForm();
var billNo = basicForm.findField('BSNO').value;
var billNo = basicForm.findField('GID').value;
if (billNo == '*' || billNo == '') {
Ext.Msg.show({ title: '错误', msg: '单据还没有保存,请保存后再打印', icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK });
return;
}
var printType = 'MSOPOHTER';
var sql1 = "SET LANGUAGE 'us_english' SELECT * FROM op_other WHERE BSNO = '" + billNo + "'";
var printType = 'MSOPPRICE';
var sql1 = "SET LANGUAGE 'us_english' SELECT * FROM op_price WHERE GID = '" + billNo + "'";
var sql2 = "";
var sql3 = "";
var sql4 = "";

@ -78,6 +78,7 @@ Ext.extend(Shipping.SeaeFee, Ext.Panel, {
},
{
fieldLabel: Zi.LAN.CNTRTOTAL3, //'箱型箱量',
flex: 0.5,
readOnly: true,
name: 'CNTRTOTAL'
},
@ -108,6 +109,13 @@ Ext.extend(Shipping.SeaeFee, Ext.Panel, {
labelWidth: 45,
readOnly: true,
name: 'INVNO'
},
{
fieldLabel: Zi.LAN.KGSCBM, //'毛重',
flex: 0.5,
labelWidth: 45,
readOnly: true,
name: 'INVNO'
}
]
},

@ -956,4 +956,4 @@ Zi.LAN.PKGTYPE = "包件种类";
Zi.LAN.FACTORY = "生产企业";
Zi.LAN.GXWTHM = "更新委托货描";
Zi.LAN.DGTRUCKER = "危险品车队";
Zi.LAN.KGSCBM = "重抛比";

@ -857,6 +857,9 @@ namespace DSWeb.Areas.TruckMng.Controllers
DBResult result = new DBResult();
foreach (var ctn in bodyctnData) {
var fen = Fenlist.Find(x => x.ContainerNo == ctn.CNTRNO);
if (fen == null)
{
if (headData.BsType == "装箱")
{
@ -913,6 +916,7 @@ namespace DSWeb.Areas.TruckMng.Controllers
var modb = new ModelObjectDB();
result = modb.Save(headData);
}
}

@ -1839,6 +1839,9 @@ Ext.extend(DsTruck.MsPcHYRDEdit, Ext.Panel, {
var PGid = this.formEdit.getForm().findField('PGid');
PGid.setValue(this.selectPGID);
if (this.editRecord != NaN && this.editRecord != null) {
this.formEdit.getForm().findField('CUSTNO').setValue(this.editRecord.get('CUSTNO'));
this.formEdit.getForm().findField('TruckSpec').setValue(this.editRecord.get('TruckSpec'));
this.formEdit.getForm().findField('CustomerName').setValue(this.editRecord.get('CustomerName'));
this.formEdit.getForm().findField('SalesName').setValue(this.editRecord.get('SalesName'));
this.formEdit.getForm().findField('DdName').setValue(this.editRecord.get('DdName'));
@ -2479,12 +2482,14 @@ Ext.extend(DsTruck.MsPcHYRDEdit, Ext.Panel, {
Ext.Msg.show({ title: '警告', msg: '主提单号不能为空!', icon: Ext.Msg.WARNING, buttons: Ext.Msg.OK });//'主提单号不能为空!'
return;
}
var ContainerNo = _thisPc.formEdit.getForm().findField('ContainerNo').getValue();
if (ContainerNo != '') {
Ext.Msg.show({ title: '警告', msg: '已存在箱号,不允许引入!', icon: Ext.Msg.WARNING, buttons: Ext.Msg.OK });//'主提单号不能为空!'
return;
var cntrnostr = '';
}
var cntrnostr = _thisPc.formEdit.getForm().findField('ContainerNo').getValue();
//if (ContainerNo != '') {
// Ext.Msg.show({ title: '警告', msg: '已存在箱号,不允许引入!', icon: Ext.Msg.WARNING, buttons: Ext.Msg.OK });//'主提单号不能为空!'
// return;
//}
@ -2516,12 +2521,12 @@ Ext.extend(DsTruck.MsPcHYRDEdit, Ext.Panel, {
var sVESSEL = "";
var sVOYNO = "";
var bodydatas = [];
var cntrnostr = '';
var sealnostr = '';
var pkgsstr = '';
var tixiangshijian = '';
var fanchangshijian = '';
var ctnnum = 0;
var createfen = 0;
for (var j = 0; j < storeyardctn.getCount(); j += 1) {
var member = storeyardctn.getAt(j);
var WEIGHDATE = member.data.WEIGHDATE;
@ -2533,6 +2538,9 @@ Ext.extend(DsTruck.MsPcHYRDEdit, Ext.Panel, {
TIXIANGSHIJIAN = Ext.util.Format.date(TIXIANGSHIJIAN, 'Y-m-d');
member.data.TIXIANGSHIJIAN = TIXIANGSHIJIAN;
if (member.data.TAREWEIGHT == '') member.data.TAREWEIGHT = '0';
if (cntrnostr!=''&&cntrnostr.indexOf(member.data.CNTRNO)>0)
bodydatas.push(member);
cntrnostr = cntrnostr + ' ' + member.data.CNTRNO;
sealnostr = sealnostr + ' ' + member.data.SEALNO;
pkgsstr = pkgsstr + ' ' + member.data.PKGS + '/' + member.data.KGS + '/' + member.data.CBM;
@ -2543,7 +2551,7 @@ Ext.extend(DsTruck.MsPcHYRDEdit, Ext.Panel, {
if (fanchangshijian != '')
fanchangshijian = Ext.util.Format.date(fanchangshijian, 'Y-m-d');
ctnnum = ctnnum + 1;
bodydatas.push(member);
};
var field = _thisPc.formEdit.getForm().findField('ContainerNo');
field.setValue(cntrnostr);
@ -2563,7 +2571,7 @@ Ext.extend(DsTruck.MsPcHYRDEdit, Ext.Panel, {
if (field.getValue == "")
field.setValue(fanchangshijian);
if (ctnnum != 1) {
if ((ctnnum != 1) && (bodydatas.length != 0)) {
var jsonBody = ConvertRecordsToJsonAll(bodydatas);
Ext.Msg.wait('正在保存数据, 请稍侯..');

@ -2418,6 +2418,8 @@ Ext.extend(DsTruck.MsPcHYRDEdit, Ext.Panel, {
var PGid = this.formEdit.getForm().findField('PGid');
PGid.setValue(this.selectPGID);
if (this.editRecord != NaN && this.editRecord != null) {
this.formEdit.getForm().findField('CUSTNO').setValue(this.editRecord.get('CUSTNO'));
this.formEdit.getForm().findField('TruckSpec').setValue(this.editRecord.get('TruckSpec'));
this.formEdit.getForm().findField('CustomerName').setValue(this.editRecord.get('CustomerName'));
this.formEdit.getForm().findField('SalesName').setValue(this.editRecord.get('SalesName'));
this.formEdit.getForm().findField('DdName').setValue(this.editRecord.get('DdName'));
@ -3448,18 +3450,18 @@ Ext.extend(DsTruck.MsPcHYRDEdit, Ext.Panel, {
Ext.Msg.show({ title: '警告', msg: '主提单号不能为空!', icon: Ext.Msg.WARNING, buttons: Ext.Msg.OK });//'主提单号不能为空!'
return;
}
if (this.storeBodyList.getCount() != 0) {
Ext.Msg.show({ title: '警告', msg: '已存在集装箱信息不允许引入!', icon: Ext.Msg.WARNING, buttons: Ext.Msg.OK });//'场站不能为空!'
return;
//Ext.MessageBox.confirm('提示', '已存在集装箱信息确认要引入吗?',
// function (btn) {
// if (btn != 'yes') {
//if (this.storeBodyList.getCount() != 0) {
// Ext.Msg.show({ title: '警告', msg: '已存在集装箱信息不允许引入!', icon: Ext.Msg.WARNING, buttons: Ext.Msg.OK });//'场站不能为空!'
// return;
// //Ext.MessageBox.confirm('提示', '已存在集装箱信息确认要引入吗?',
// // function (btn) {
// // if (btn != 'yes') {
// // return;
// }
// });
// // }
// // });
}
//}
var BSNO = this.formEdit.getForm().findField('gId').getValue();

@ -38,7 +38,7 @@ namespace JobCreateFee
var JsonGetBankData = new GetBankData();
JsonGetBankData.AccountName = companyName;
JsonGetBankData.AccountKey = CustId;
JsonGetBankData.BeginDate = DateTime.Now.AddDays(-1).ToString("yyyyMMdd");
JsonGetBankData.BeginDate = DateTime.Now.AddDays(-2).ToString("yyyyMMdd");
JsonGetBankData.EndDate = DateTime.Now.ToString("yyyyMMdd");
var PCNO = DateTime.Now.ToString("yyyyMMddhhmmss");

Loading…
Cancel
Save