DS7_JingHan^2
hanxuntao 2 years ago
parent e442076097
commit dbdf6f746e

@ -758,6 +758,12 @@ namespace DSWeb.Areas.Account.Controllers
if ((head.DetiNation == null || head.DetiNation == "")) if ((head.DetiNation == null || head.DetiNation == ""))
{ error = error + "<br />提单号:" + head.MblNoSe + "目的地不能为空"; } { error = error + "<br />提单号:" + head.MblNoSe + "目的地不能为空"; }
if ((head.DetiNation == null || head.DetiNation == ""))
{ error = error + "<br />提单号:" + head.MblNoSe + "目的地不能为空"; }
if ((head.BsType == null || head.BsType == ""))
{ error = error + "<br />提单号:" + head.MblNoSe + "业务来源不能为空"; }
if ((head.EtDate == null || head.EtDate == ""))
{ error = error + "<br />提单号:" + head.MblNoSe + "发车日期不能为空"; }
} }
if (optype == "op_supervision_truck") if (optype == "op_supervision_truck")

@ -20,19 +20,26 @@ Ext.define('DsTruckMng.ux.VoyRefModel', {
}); });
//客户资料参照Model(95004-vMsTruckClient) //客户资料参照Model(95004-vMsTruckClient)
Ext.define('DsTruckMng.ux.CustomRefModel', { Ext.define('DsShipping.ux.CustomRefModel', {
extend: 'Ext.data.Model', extend: 'Ext.data.Model',
fields: [ fields: [
{ name: 'GId', type: 'string' }, { name: 'GId', type: 'string' },
{ name: 'CustCode', type: 'string' }, { name: 'CustCode', type: 'string' },
{ name: 'CustName', type: 'string' }, { name: 'CustName', type: 'string' },
{ name: 'CodeAndName', type: 'string' }, { name: 'CodeAndName', type: 'string' },
{ name: 'CodeAndFull', type: 'string' }, { name: 'CodeAndFull', type: 'string' },
{ name: 'UNITPRICE', type: 'string' }, { name: 'DESCRIPTION', type: 'string' },
//{ name: 'DESCRIPTION', type: 'string' }, { name: 'SALE', type: 'string' },
{ name: 'KFCodename', type: 'string' }, { name: 'OP', type: 'string' },
{ name: 'ISSTOP', type: 'string' } { name: 'DOC', type: 'string' },
] { name: 'CUSTSERVICE', type: 'string' },
{ name: 'SALECORPID', type: 'string' },
{ name: 'BSSOURCE', type: 'string' },
{ name: 'CONTRACTNO', type: 'string' },
{ name: 'FEEFRT', type: 'string' },
{ name: 'EMAIL', type: 'string' },
{ name: 'TEL', type: 'string' }
]
}); });
Ext.define('DsTruckMng.ux.CustomContactRefModel', { Ext.define('DsTruckMng.ux.CustomContactRefModel', {

@ -3084,16 +3084,16 @@ namespace DSWeb.MvcShipping.DAL.MsOpApplyDAL
if (bill.BSTYPE2 == "报检") if (bill.BSTYPE2 == "报检")
{ {
if ((bill.INSPECTIONNO == null || bill.INSPECTIONNO == "")) if ((bill.INSPECTIONNO == null || bill.INSPECTIONNO == ""))
{ error = error + "<br />提单号:" + bill.MBLNO + "检单号不能为空"; } { error = error + "<br />提单号:" + bill.MBLNO + "检单号不能为空"; }
if ((bill.INSPECTIONDATE == null || bill.INSPECTIONDATE == "")) if ((bill.INSPECTIONDATE == null || bill.INSPECTIONDATE == ""))
{ error = error + "<br />提单号:" + bill.MBLNO + "检日期不能为空"; } { error = error + "<br />提单号:" + bill.MBLNO + "检日期不能为空"; }
if ((bill.BYCUSTOM == null || bill.BYCUSTOM == "")) if ((bill.BYCUSTOM == null || bill.BYCUSTOM == ""))
{ error = error + "<br />提单号:" + bill.MBLNO + "商检地点不能为空"; } { error = error + "<br />提单号:" + bill.MBLNO + "商检地点不能为空"; }
} }
if ((bill.CUSTOMDATE == null || bill.CUSTOMDATE == "")) if ((bill.CUSTOMDATE == null || bill.CUSTOMDATE == ""))
{ error = error + "<br />提单号:" + bill.MBLNO + "报日期不能为空"; } { error = error + "<br />提单号:" + bill.MBLNO + "日期不能为空"; }
if ((bill.ETD == null || bill.ETD == "")) if ((bill.ETD == null || bill.ETD == ""))
{ error = error + "<br />提单号:" + bill.MBLNO + "开船日期不能为空"; } { error = error + "<br />提单号:" + bill.MBLNO + "开船日期不能为空"; }

@ -67,13 +67,15 @@
<script type="text/javascript" src="../../../../Areas/Import/Viewsjs/Comm/SaveGridPanel.js"></script> <script type="text/javascript" src="../../../../Areas/Import/Viewsjs/Comm/SaveGridPanel.js"></script>
<script type="text/javascript" src="../../../../Areas/MvcShipping/Viewsjs/Comm/MonthField.js"></script> <script type="text/javascript" src="../../../../Areas/MvcShipping/Viewsjs/Comm/MonthField.js"></script>
<script type="text/javascript" src="../../../../Areas/Import/Viewsjs/Comm/UnitDEF.js"></script> <script type="text/javascript" src="../../../../Areas/Import/Viewsjs/Comm/UnitDEF.js"></script>
<script type="text/javascript" src="../../../../Areas/MvcShipping/Viewsjs/MsChFee/FeeDrCrGridView2.js"></script>
<script type="text/javascript" src="../../../../Areas/MvcShipping/Viewsjs/MsCompanys/MsCompanysModel.js"></script> <script type="text/javascript" src="../../../../Areas/MvcShipping/Viewsjs/MsCompanys/MsCompanysModel.js"></script>
<script type="text/javascript" src="../../../../Areas/TruckMng/Viewsjs/MsWlBs/MsPcWFSDEdit.js"></script> <script type="text/javascript" src="../../../../Areas/TruckMng/Viewsjs/MsWlBs/MsPcWFSDEdit.js"></script>
<script type="text/javascript" src="../../../../Areas/MvcShipping/Viewsjs/MsChFee/FeeAmendDrCrGrid.js"></script> <script type="text/javascript" src="../../../../Areas/MvcShipping/Viewsjs/MsChFee/FeeAmendDrCrGrid.js"></script>
<script type="text/javascript" src="../../../../Areas/TruckMng/Viewsjs/MsWlBs/PcAmendFee.js"></script> <script type="text/javascript" src="../../../../Areas/TruckMng/Viewsjs/MsWlBs/PcAmendFee.js"></script>
<script type="text/javascript"> <script type="text/javascript">
var pnl = null; var pnl = null;
Ext.onReady(function () { Ext.onReady(function () {
Ext.QuickTips.init(); Ext.QuickTips.init();

@ -219,14 +219,22 @@ Ext.extend(DsTruck.MsPcWFSDEdit, Ext.Panel, {
name: 'TruckSpec' name: 'TruckSpec'
}); });
this.storeBsType = Ext.create('DsExt.ux.RefEnumStore', {}); //this.storeBsType = Ext.create('DsExt.ux.RefEnumStore', {});
this.storeBsType.load({ params: { enumTypeId: 96004 } }); //this.storeBsType.load({ params: { enumTypeId: 96004 } });
this.storeSource = Ext.create('DsExt.ux.RefTableStore', {
model: 'DsShipping.ux.SourceModel',
proxy: { url: '/CommMng/BasicDataRef/GetSource' }
});
this.storeSource.load();
this.comboxBsType = Ext.create('DsExt.ux.RefEnumCombox', { this.comboxBsType = Ext.create('DsExt.ux.RefEnumCombox', {
fieldLabel: '业务类型', fieldLabel: '业务来源',
store: this.storeBsType, store: this.storeSource,
labelWidth: 60, labelWidth: 60,
flex: 0.5, flex: 0.5,
valueField: 'SourceName',
displayField: 'SourceName',
forceSelection: true, forceSelection: true,
name: 'BsType' name: 'BsType'
}); });
@ -546,10 +554,11 @@ Ext.extend(DsTruck.MsPcWFSDEdit, Ext.Panel, {
fieldLabel: '派车时间', fieldLabel: '派车时间',
xtype: 'datetimefield', xtype: 'datetimefield',
format: 'Y-m-d', name: 'ExpDate' format: 'Y-m-d', name: 'ExpDate'
}, this.comboxPcBillType, { }, {
fieldLabel: '派车申请人', fieldLabel: '发车日期',
name: 'UserName' xtype: 'datefield',
}, this.comboxTRUCKER, this.comboxTruckNo format: 'Y-m-d', name: 'EtDate'
}, this.comboxPcBillType, this.comboxTRUCKER, this.comboxTruckNo
] ]
}, { }, {
xtype: 'container', xtype: 'container',
@ -618,10 +627,6 @@ Ext.extend(DsTruck.MsPcWFSDEdit, Ext.Panel, {
}, { }, {
fieldLabel: '船名航次', fieldLabel: '船名航次',
name: 'VoyVeg' name: 'VoyVeg'
}, {
fieldLabel: '开船日期',
xtype: 'datefield',
format: 'Y-m-d', name: 'EtDate'
}, { }, {
fieldLabel: '截港日期', fieldLabel: '截港日期',
xtype: 'datefield', xtype: 'datefield',
@ -630,7 +635,10 @@ Ext.extend(DsTruck.MsPcWFSDEdit, Ext.Panel, {
fieldLabel: '注意事项', fieldLabel: '注意事项',
flex: 1, flex: 1,
name: 'ChangedReson' name: 'ChangedReson'
} }, {
fieldLabel: '派车申请人',
name: 'UserName'
}
] ]
}, { }, {
xtype: 'container', xtype: 'container',

Loading…
Cancel
Save