@ -20,6 +20,7 @@ Ext.extend(DsTruck.MsPcHYRDEdit, Ext.Panel, {
this . fixSerialNo = 0 ;
this . fixBodyDel = [ ] ;
this . accdatesameetd = 0 ;
this . modPcHeadEdit _GDFY = 0 ;
this . MsPeriod = null ;
Ext . define ( 'PCmb' , {
extend : 'Ext.data.Model' ,
@ -241,25 +242,7 @@ Ext.extend(DsTruck.MsPcHYRDEdit, Ext.Panel, {
} ) ;
//客户加载_车队
this . storeTRUCKER = Ext . create ( 'DsExt.ux.RefTableStore' , {
model : 'DsShipping.ux.CustomRefModel' ,
proxy : { url : '/CommMng/BasicDataRef/GetCustomRefListTRUCK' }
} ) ;
//this.storeTRUCKER.load({ params: { condition: "ISTRUCK='1'"} });
_thisPc = this ;
//车队
this . comboxTRUCKER = Ext . create ( 'DsExt.ux.RefTableCombox' , {
fieldLabel : '车队' ,
store : this . storeTRUCKER ,
queryMode : 'remote' ,
minChars : 1 ,
queryParam : 'CODENAME' ,
name : 'F_CustomerName' ,
valueField : 'CustName' ,
displayField : 'CodeAndName'
} ) ;
this . StoreBLTYPE = Ext . create ( 'Ext.data.Store' , {
fields : [ 'BLTYPE' ]
@ -290,18 +273,8 @@ Ext.extend(DsTruck.MsPcHYRDEdit, Ext.Panel, {
name : 'PcBillType'
} ) ;
this . StoreTruckTypeProp = Ext . create ( 'DsExt.ux.RefEnumStore' , { } ) ;
this . StoreTruckTypeProp . load ( { params : { enumTypeId : 97043 } } ) ;
this . comboxTruckTypeProp = Ext . create ( 'DsExt.ux.RefEnumCombox' , {
fieldLabel : '车辆类别' ,
store : this . StoreTruckTypeProp ,
//flex: 0.5,
// forceSelection: true,
name : 'Property'
} ) ;
this . StoreTruckType = Ext . create ( 'DsExt.ux.RefEnumStore' , { } ) ;
this . StoreTruckType . load ( { params : { enumTypeId : 99019 } } ) ;
@ -543,7 +516,6 @@ Ext.extend(DsTruck.MsPcHYRDEdit, Ext.Panel, {
fieldLabel : '工厂名称' ,
flex : 1 ,
store : this . storeFactry ,
hidden : true ,
matchFieldWidth : false , //下拉款自适应宽度
queryMode : 'remote' ,
minChars : 1 ,
@ -557,8 +529,7 @@ Ext.extend(DsTruck.MsPcHYRDEdit, Ext.Panel, {
'select' : function ( combo , records , eOpts ) {
if ( records . length > 0 ) {
var dataFactory = records [ 0 ] . data ;
this . formEdit . getForm ( ) . findField ( 'CustLikeManName' ) . setValue ( dataFactory . FACTRYATTN ) ;
this . formEdit . getForm ( ) . findField ( 'LoadPlace' ) . setValue ( dataFactory . FACTRYADDR ) ;
this . formEdit . getForm ( ) . findField ( 'FactoryAddrSe' ) . setValue ( dataFactory . FACTRYADDR ) ;
}
}
}
@ -618,26 +589,7 @@ Ext.extend(DsTruck.MsPcHYRDEdit, Ext.Panel, {
}
} ) ;
//客户加载_工厂
this . storeFactry = Ext . create ( 'DsExt.ux.RefTableStore' , {
model : 'MsCodeFactry' ,
proxy : { url : '/MvcShipping/MsCodeFactry/GetDataListRm' }
} ) ;
this . storeFactry . load ( ) ;
//工厂
this . comboxFactory = Ext . create ( 'DsExt.ux.RefTableCombox' , {
fieldLabel : '工厂' ,
flex : 1 ,
store : this . storeFactry ,
matchFieldWidth : false , //下拉款自适应宽度
queryMode : 'remote' ,
minChars : 1 ,
queryParam : 'CODENAME' ,
autoSelect : true ,
name : 'LoadFactory' ,
valueField : 'FACTRYNAME' ,
displayField : 'CodeAndName'
} ) ;
this . storeBodyList = Ext . create ( 'Ext.data.Store' , {
model : 'MsOpSeaeDetail' ,
remoteSort : true ,
@ -1153,6 +1105,20 @@ Ext.extend(DsTruck.MsPcHYRDEdit, Ext.Panel, {
items : [ this . gridList ]
} ) ;
this . storeCodeContainerType = Ext . create ( 'DsExt.ux.RefTableStore' , {
model : 'DsShipping.ux.CodeCtnModel' ,
proxy : { url : '/CommMng/BasicDataRef/GetCodeCtnList' }
} ) ;
this . storeCodeContainerType . load ( ) ;
this . comboxContainerType = Ext . create ( 'DsExt.ux.RefTableCombox' , {
fieldLabel : '箱型' , //'箱型',
store : this . storeCodeContainerType ,
forceSelection : true ,
name : 'ContainerType' ,
valueField : 'CTN' ,
displayField : 'CTN'
} ) ;
//编辑form
this . formEdit = Ext . widget ( 'form' , {
region : 'center' ,
@ -1205,6 +1171,9 @@ Ext.extend(DsTruck.MsPcHYRDEdit, Ext.Panel, {
name : 'RefBillNo' , flex : 0 , hidden : true , margins : '0'
} , { fieldLabel : 'RefBillNose' ,
name : 'RefBillNose' , flex : 0 , hidden : true , margins : '0'
} , {
fieldLabel : 'Property' ,
name : 'Property' , flex : 0 , hidden : true , margins : '0'
} , { fieldLabel : 'FEESTATUS' ,
name : 'FEESTATUS' , flex : 0 , hidden : true , margins : '0'
} , {
@ -1281,10 +1250,7 @@ Ext.extend(DsTruck.MsPcHYRDEdit, Ext.Panel, {
items : [ {
fieldLabel : '主提单号' ,
name : 'MblNoSe'
} , {
fieldLabel : '箱型' ,
name : 'ContainerType'
} , {
} , this . comboxContainerType , {
fieldLabel : '箱量' ,
name : 'ContainerQty'
} , {
@ -1395,7 +1361,7 @@ Ext.extend(DsTruck.MsPcHYRDEdit, Ext.Panel, {
xtype : 'button' ,
width : 90 ,
handler : function ( button , event ) {
this . Save ( '0' , '1' ) ;
} ,
scope : this
}
@ -1443,7 +1409,7 @@ Ext.extend(DsTruck.MsPcHYRDEdit, Ext.Panel, {
} , this . comboxFactory , {
fieldLabel : '装箱地点' ,
flex : 3 ,
name : 'DetiNation Se'
name : 'FactoryAddr Se'
}
]
} , this . panelBodyCtn , {
@ -1459,7 +1425,7 @@ Ext.extend(DsTruck.MsPcHYRDEdit, Ext.Panel, {
fieldLabel : '装箱要求' ,
height : 50 ,
flex : 3 ,
name : ' SealNo Se'
name : ' DetiNation Se'
} , {
fieldLabel : '入库要求' ,
height : 50 ,
@ -1503,7 +1469,7 @@ Ext.extend(DsTruck.MsPcHYRDEdit, Ext.Panel, {
text : "保存" ,
iconCls : "btnsave" ,
handler : function ( button , event ) {
this . Save ( '0' );
this . Save ( '0' ,'0' );
} ,
scope : this
} ,
@ -1511,7 +1477,7 @@ Ext.extend(DsTruck.MsPcHYRDEdit, Ext.Panel, {
id : 'bsbtnSaveAndClose' ,
text : "保存并关闭" ,
handler : function ( button , event ) {
this . Save ( '1' );
this . Save ( '1' , '0' );
} ,
scope : this
} ,
@ -1520,7 +1486,7 @@ Ext.extend(DsTruck.MsPcHYRDEdit, Ext.Panel, {
id : 'bsbtnSaveAndNew' ,
text : "保存并新建" ,
handler : function ( button , event ) {
this . Save ( '2' );
this . Save ( '2' , '0' );
} ,
scope : this
} ,
@ -1957,6 +1923,26 @@ Ext.extend(DsTruck.MsPcHYRDEdit, Ext.Panel, {
Ext . apply ( store . proxy . extraParams , { condition : condition } ) ;
} , this ) ;
Ext . Ajax . request ( {
waitMsg : Zi . LAN . ZhengZaiCaoZuoShuJu ,
url : '/MvcShipping/MsBaseInfo/GetUserModuleEnable' ,
params : {
modulename : 'modPcHeadEdit_GDFY'
} ,
callback : function ( options , success , response ) {
if ( success ) {
var result = Ext . JSON . decode ( response . responseText ) ;
if ( result . Success ) {
this . modPcHeadEdit _GDFY = 1 ;
} else {
this . modPcHeadEdit _GDFY = 0 ;
}
}
} ,
scope : this
} ) ;
//#endregion
} , //end initUIComponents
@ -2009,7 +1995,9 @@ Ext.extend(DsTruck.MsPcHYRDEdit, Ext.Panel, {
var data = result . data ;
if ( opstatus == 'add' ) {
data . PcBillType = '' ;
}
this . formEdit . getForm ( ) . reset ( ) ;
this . formEdit . getForm ( ) . setValues ( data ) ;
@ -2022,18 +2010,50 @@ Ext.extend(DsTruck.MsPcHYRDEdit, Ext.Panel, {
PGid . setValue ( this . selectPGID ) ;
if ( this . editRecord != NaN && this . editRecord != null ) {
this . formEdit . getForm ( ) . findField ( 'CustomerName' ) . setValue ( this . editRecord . get ( 'CustomerName' ) ) ;
this . formEdit . getForm ( ) . findField ( 'LinkMan' ) . setValue ( this . editRecord . get ( 'LinkMan' ) ) ;
this . formEdit . getForm ( ) . findField ( 'CustName' ) . setValue ( this . editRecord . get ( 'CustName' ) ) ;
this . formEdit . getForm ( ) . findField ( 'DispatchName' ) . setValue ( this . editRecord . get ( 'DispatchName' ) ) ;
this . formEdit . getForm ( ) . findField ( 'SalesName' ) . setValue ( this . editRecord . get ( 'SalesName' ) ) ;
this . formEdit . getForm ( ) . findField ( 'DdName' ) . setValue ( this . editRecord . get ( 'DdName' ) ) ;
this . formEdit . getForm ( ) . findField ( 'YardName' ) . setValue ( this . editRecord . get ( 'YardName' ) ) ;
this . formEdit . getForm ( ) . findField ( 'LinkManSe' ) . setValue ( this . editRecord . get ( 'LinkManSe' ) ) ;
this . formEdit . getForm ( ) . findField ( 'BLTYPE' ) . setValue ( '派车分票' ) ;
this . formEdit . getForm ( ) . findField ( ' DstArea ') . setValue ( this . editRecord . get ( ' DstArea ') ) ;
this . formEdit . getForm ( ) . findField ( 'DetiNation ') . setValue ( this . editRecord . get ( 'DetiNation ') ) ;
this . formEdit . getForm ( ) . findField ( ' LoadPlac e') . setValue ( this . editRecord . get ( ' LoadPlac e') ) ;
this . formEdit . getForm ( ) . findField ( ' LoadFactory ') . setValue ( this . editRecord . get ( ' LoadFactory ') ) ;
this . formEdit . getForm ( ) . findField ( 'DetiNation Se ') . setValue ( this . editRecord . get ( 'DetiNation Se ') ) ;
this . formEdit . getForm ( ) . findField ( ' DrvCod e') . setValue ( this . editRecord . get ( ' DrvCod e') ) ;
this . formEdit . getForm ( ) . findField ( 'PcBillType' ) . setValue ( this . editRecord . get ( 'PcBillType' ) ) ;
this . formEdit . getForm ( ) . findField ( 'VoyVeg' ) . setValue ( this . editRecord . get ( 'VoyVeg' ) ) ;
this . formEdit . getForm ( ) . findField ( 'ExpDate' ) . setValue ( this . editRecord . get ( 'ExpDate' ) ) ;
this . formEdit . getForm ( ) . findField ( 'ArriveDate' ) . setValue ( this . editRecord . get ( 'ArriveDate' ) ) ;
this . formEdit . getForm ( ) . findField ( 'VoyVegSe' ) . setValue ( this . editRecord . get ( 'VoyVegSe' ) ) ;
this . formEdit . getForm ( ) . findField ( 'EtDateSe' ) . setValue ( this . editRecord . get ( 'EtDateSe' ) ) ;
this . formEdit . getForm ( ) . findField ( 'EndPortDate' ) . setValue ( this . editRecord . get ( 'EndPortDate' ) ) ;
this . formEdit . getForm ( ) . findField ( 'EtDate' ) . setValue ( this . editRecord . get ( 'EtDate' ) ) ;
this . formEdit . getForm ( ) . findField ( 'MblNoSe' ) . setValue ( this . editRecord . get ( 'MblNoSe' ) ) ;
this . formEdit . getForm ( ) . findField ( 'ContainerQty' ) . setValue ( this . editRecord . get ( 'ContainerQty' ) ) ;
this . formEdit . getForm ( ) . findField ( 'GoodsName' ) . setValue ( this . editRecord . get ( 'GoodsName' ) ) ;
this . formEdit . getForm ( ) . findField ( 'ContainerNoSe' ) . setValue ( this . editRecord . get ( 'ContainerNoSe' ) ) ;
this . formEdit . getForm ( ) . findField ( 'ContainerNo' ) . setValue ( this . editRecord . get ( 'ContainerNo' ) ) ;
this . formEdit . getForm ( ) . findField ( 'SealNo' ) . setValue ( this . editRecord . get ( 'SealNo' ) ) ;
this . formEdit . getForm ( ) . findField ( 'DUNNO' ) . setValue ( this . editRecord . get ( 'DUNNO' ) ) ;
this . formEdit . getForm ( ) . findField ( 'DCLASS' ) . setValue ( this . editRecord . get ( 'DCLASS' ) ) ;
this . formEdit . getForm ( ) . findField ( 'YardCodeSe' ) . setValue ( this . editRecord . get ( 'YardCodeSe' ) ) ;
this . formEdit . getForm ( ) . findField ( 'YardNameSe' ) . setValue ( this . editRecord . get ( 'YardNameSe' ) ) ;
this . formEdit . getForm ( ) . findField ( 'ISSHUISHI' ) . setValue ( this . editRecord . get ( 'ISSHUISHI' ) ) ;
this . formEdit . getForm ( ) . findField ( 'ISGAOWEN' ) . setValue ( this . editRecord . get ( 'ISGAOWEN' ) ) ;
this . formEdit . getForm ( ) . findField ( 'ISXIANLIANG' ) . setValue ( this . editRecord . get ( 'ISXIANLIANG' ) ) ;
this . formEdit . getForm ( ) . findField ( 'ISHAIWU' ) . setValue ( this . editRecord . get ( 'ISHAIWU' ) ) ;
this . formEdit . getForm ( ) . findField ( 'ISFENGXIANG' ) . setValue ( this . editRecord . get ( 'ISFENGXIANG' ) ) ;
this . formEdit . getForm ( ) . findField ( 'ISWEISHENBAO' ) . setValue ( this . editRecord . get ( 'ISWEISHENBAO' ) ) ;
this . formEdit . getForm ( ) . findField ( 'ISBAOGUAN' ) . setValue ( this . editRecord . get ( 'ISBAOGUAN' ) ) ;
this . formEdit . getForm ( ) . findField ( 'DispatchName' ) . setValue ( this . editRecord . get ( 'DispatchName' ) ) ;
this . formEdit . getForm ( ) . findField ( 'ReturnDate' ) . setValue ( this . editRecord . get ( 'ReturnDate' ) ) ;
this . formEdit . getForm ( ) . findField ( 'TruckNo' ) . setValue ( this . editRecord . get ( 'TruckNo' ) ) ;
this . formEdit . getForm ( ) . findField ( 'ISPINGTAI' ) . setValue ( this . editRecord . get ( 'ISPINGTAI' ) ) ;
this . formEdit . getForm ( ) . findField ( 'RtnDocTime' ) . setValue ( this . editRecord . get ( 'RtnDocTime' ) ) ;
this . formEdit . getForm ( ) . findField ( 'WmsTruckNo' ) . setValue ( this . editRecord . get ( 'WmsTruckNo' ) ) ;
this . formEdit . getForm ( ) . findField ( 'WmsDrvName' ) . setValue ( this . editRecord . get ( 'WmsDrvName' ) ) ;
this . formEdit . getForm ( ) . findField ( 'ArriveDate' ) . setValue ( this . editRecord . get ( 'ArriveDate' ) ) ;
this . formEdit . getForm ( ) . findField ( 'DstAreaSe' ) . setValue ( this . editRecord . get ( 'DstAreaSe' ) ) ;
this . formEdit . getForm ( ) . findField ( 'SealNoSe' ) . setValue ( this . editRecord . get ( 'SealNoSe' ) ) ;
this . formEdit . getForm ( ) . findField ( 'ContainerTypeSe' ) . setValue ( this . editRecord . get ( 'ContainerTypeSe' ) ) ;
this . formEdit . getForm ( ) . findField ( 'Remark' ) . setValue ( this . editRecord . get ( 'Remark' ) ) ;
this . formEdit . getForm ( ) . findField ( 'FactoryAddrSe' ) . setValue ( this . editRecord . get ( 'FactoryAddrSe' ) ) ;
}
}
this . LoadPeriod ( ) ;
@ -2180,19 +2200,50 @@ Ext.extend(DsTruck.MsPcHYRDEdit, Ext.Panel, {
PGid . setValue ( this . selectPGID ) ;
if ( this . editRecord != NaN && this . editRecord != null ) {
this . formEdit . getForm ( ) . findField ( 'CustomerName' ) . setValue ( this . editRecord . get ( 'CustomerName' ) ) ;
this . formEdit . getForm ( ) . findField ( ' F_Customer Name') . setValue ( this . editRecord . get ( ' F_Customer Name') ) ;
this . formEdit . getForm ( ) . findField ( ' LinkMan ') . setValue ( this . editRecord . get ( ' LinkMan ') ) ;
this . formEdit . getForm ( ) . findField ( ' Cust Name') . setValue ( this . editRecord . get ( ' Cust Name') ) ;
this . formEdit . getForm ( ) . findField ( ' DispatchNam e') . setValue ( this . editRecord . get ( ' DispatchNam e') ) ;
this . formEdit . getForm ( ) . findField ( ' Sales Name') . setValue ( this . editRecord . get ( ' Sales Name') ) ;
this . formEdit . getForm ( ) . findField ( ' DdName ') . setValue ( this . editRecord . get ( ' DdName ') ) ;
this . formEdit . getForm ( ) . findField ( ' Yard Name') . setValue ( this . editRecord . get ( ' Yard Name') ) ;
this . formEdit . getForm ( ) . findField ( ' LinkManS e') . setValue ( this . editRecord . get ( ' LinkManS e') ) ;
this . formEdit . getForm ( ) . findField ( 'BLTYPE' ) . setValue ( '派车分票' ) ;
this . formEdit . getForm ( ) . findField ( ' DstArea ') . setValue ( this . editRecord . get ( ' DstArea ') ) ;
this . formEdit . getForm ( ) . findField ( 'DetiNation ') . setValue ( this . editRecord . get ( 'DetiNation ') ) ;
this . formEdit . getForm ( ) . findField ( ' LoadPlac e') . setValue ( this . editRecord . get ( ' LoadPlac e') ) ;
this . formEdit . getForm ( ) . findField ( ' LoadFactory ') . setValue ( this . editRecord . get ( ' LoadFactory ') ) ;
this . formEdit . getForm ( ) . findField ( 'DetiNation Se ') . setValue ( this . editRecord . get ( 'DetiNation Se ') ) ;
this . formEdit . getForm ( ) . findField ( ' DrvCod e') . setValue ( this . editRecord . get ( ' DrvCod e') ) ;
this . formEdit . getForm ( ) . findField ( 'PcBillType' ) . setValue ( this . editRecord . get ( 'PcBillType' ) ) ;
this . formEdit . getForm ( ) . findField ( 'VoyVeg' ) . setValue ( this . editRecord . get ( 'VoyVeg' ) ) ;
this . formEdit . getForm ( ) . findField ( 'ExpDate' ) . setValue ( this . editRecord . get ( 'ExpDate' ) ) ;
this . formEdit . getForm ( ) . findField ( 'ArriveDate' ) . setValue ( this . editRecord . get ( 'ArriveDate' ) ) ;
this . formEdit . getForm ( ) . findField ( 'VoyVegSe' ) . setValue ( this . editRecord . get ( 'VoyVegSe' ) ) ;
this . formEdit . getForm ( ) . findField ( 'EtDateSe' ) . setValue ( this . editRecord . get ( 'EtDateSe' ) ) ;
this . formEdit . getForm ( ) . findField ( 'EndPortDate' ) . setValue ( this . editRecord . get ( 'EndPortDate' ) ) ;
this . formEdit . getForm ( ) . findField ( 'EtDate' ) . setValue ( this . editRecord . get ( 'EtDate' ) ) ;
this . formEdit . getForm ( ) . findField ( 'MblNoSe' ) . setValue ( this . editRecord . get ( 'MblNoSe' ) ) ;
this . formEdit . getForm ( ) . findField ( 'ContainerQty' ) . setValue ( this . editRecord . get ( 'ContainerQty' ) ) ;
this . formEdit . getForm ( ) . findField ( 'GoodsName' ) . setValue ( this . editRecord . get ( 'GoodsName' ) ) ;
this . formEdit . getForm ( ) . findField ( 'ContainerNoSe' ) . setValue ( this . editRecord . get ( 'ContainerNoSe' ) ) ;
this . formEdit . getForm ( ) . findField ( 'ContainerNo' ) . setValue ( this . editRecord . get ( 'ContainerNo' ) ) ;
this . formEdit . getForm ( ) . findField ( 'SealNo' ) . setValue ( this . editRecord . get ( 'SealNo' ) ) ;
this . formEdit . getForm ( ) . findField ( 'DUNNO' ) . setValue ( this . editRecord . get ( 'DUNNO' ) ) ;
this . formEdit . getForm ( ) . findField ( 'DCLASS' ) . setValue ( this . editRecord . get ( 'DCLASS' ) ) ;
this . formEdit . getForm ( ) . findField ( 'YardCodeSe' ) . setValue ( this . editRecord . get ( 'YardCodeSe' ) ) ;
this . formEdit . getForm ( ) . findField ( 'YardNameSe' ) . setValue ( this . editRecord . get ( 'YardNameSe' ) ) ;
this . formEdit . getForm ( ) . findField ( 'ISSHUISHI' ) . setValue ( this . editRecord . get ( 'ISSHUISHI' ) ) ;
this . formEdit . getForm ( ) . findField ( 'ISGAOWEN' ) . setValue ( this . editRecord . get ( 'ISGAOWEN' ) ) ;
this . formEdit . getForm ( ) . findField ( 'ISXIANLIANG' ) . setValue ( this . editRecord . get ( 'ISXIANLIANG' ) ) ;
this . formEdit . getForm ( ) . findField ( 'ISHAIWU' ) . setValue ( this . editRecord . get ( 'ISHAIWU' ) ) ;
this . formEdit . getForm ( ) . findField ( 'ISFENGXIANG' ) . setValue ( this . editRecord . get ( 'ISFENGXIANG' ) ) ;
this . formEdit . getForm ( ) . findField ( 'ISWEISHENBAO' ) . setValue ( this . editRecord . get ( 'ISWEISHENBAO' ) ) ;
this . formEdit . getForm ( ) . findField ( 'ISBAOGUAN' ) . setValue ( this . editRecord . get ( 'ISBAOGUAN' ) ) ;
this . formEdit . getForm ( ) . findField ( 'DispatchName' ) . setValue ( this . editRecord . get ( 'DispatchName' ) ) ;
this . formEdit . getForm ( ) . findField ( 'ReturnDate' ) . setValue ( this . editRecord . get ( 'ReturnDate' ) ) ;
this . formEdit . getForm ( ) . findField ( 'TruckNo' ) . setValue ( this . editRecord . get ( 'TruckNo' ) ) ;
this . formEdit . getForm ( ) . findField ( 'ISPINGTAI' ) . setValue ( this . editRecord . get ( 'ISPINGTAI' ) ) ;
this . formEdit . getForm ( ) . findField ( 'RtnDocTime' ) . setValue ( this . editRecord . get ( 'RtnDocTime' ) ) ;
this . formEdit . getForm ( ) . findField ( 'WmsTruckNo' ) . setValue ( this . editRecord . get ( 'WmsTruckNo' ) ) ;
this . formEdit . getForm ( ) . findField ( 'WmsDrvName' ) . setValue ( this . editRecord . get ( 'WmsDrvName' ) ) ;
this . formEdit . getForm ( ) . findField ( 'ArriveDate' ) . setValue ( this . editRecord . get ( 'ArriveDate' ) ) ;
this . formEdit . getForm ( ) . findField ( 'DstAreaSe' ) . setValue ( this . editRecord . get ( 'DstAreaSe' ) ) ;
this . formEdit . getForm ( ) . findField ( 'SealNoSe' ) . setValue ( this . editRecord . get ( 'SealNoSe' ) ) ;
this . formEdit . getForm ( ) . findField ( 'ContainerTypeSe' ) . setValue ( this . editRecord . get ( 'ContainerTypeSe' ) ) ;
this . formEdit . getForm ( ) . findField ( 'Remark' ) . setValue ( this . editRecord . get ( 'Remark' ) ) ;
this . formEdit . getForm ( ) . findField ( 'FactoryAddrSe' ) . setValue ( this . editRecord . get ( 'FactoryAddrSe' ) ) ;
}
}
this . LoadPeriod ( ) ;
@ -2451,7 +2502,7 @@ Ext.extend(DsTruck.MsPcHYRDEdit, Ext.Panel, {
//#endregion
Save : function ( type ) {
Save : function ( type , createpc ) {
var basicForm = this . formEdit . getForm ( ) ;
if ( ! basicForm . isValid ( ) ) {
return ;
@ -2507,7 +2558,8 @@ Ext.extend(DsTruck.MsPcHYRDEdit, Ext.Panel, {
data : Ext . JSON . encode ( data ) ,
fixbody : jsonFixBody ,
fixdelbody : jsonFixDelBody ,
ctnbody : jsonBody
ctnbody : jsonBody ,
createpc : createpc
} ,
callback : function ( options , success , response ) {
if ( success ) {
@ -2565,6 +2617,11 @@ Ext.extend(DsTruck.MsPcHYRDEdit, Ext.Panel, {
} else {
this . LoadData ( 'add' , '' ) ;
}
if ( createpc == '1' ) {
Ext . Msg . show ( { title : '提示' , msg : jsonresult . Message , icon : Ext . Msg . ERROR , buttons : Ext . Msg . OK } ) ;
}
} else {
Ext . Msg . show ( { title : '错误' , msg : jsonresult . Message , icon : Ext . Msg . ERROR , buttons : Ext . Msg . OK } ) ;
}
@ -3156,6 +3213,11 @@ Ext.extend(DsTruck.MsPcHYRDEdit, Ext.Panel, {
onAddDetailClick : function ( button , event , type ) {
if ( this . modPcHeadEdit _GDFY == 0 ) {
Ext . Msg . show ( { title : '提示' , msg : '没有权限修改费用' , icon : Ext . Msg . INFO , buttons : Ext . Msg . OK } ) ; //当前费用已対帐无法修改!
return ;
}
var allow = this . getAllowOperationDetail ( ) ;
if ( allow == false ) {
return ;
@ -3230,6 +3292,10 @@ Ext.extend(DsTruck.MsPcHYRDEdit, Ext.Panel, {
} ,
onDelDetailClick : function ( button , event , type ) {
if ( this . modPcHeadEdit _GDFY == 0 ) {
Ext . Msg . show ( { title : '提示' , msg : '没有权限修改费用' , icon : Ext . Msg . INFO , buttons : Ext . Msg . OK } ) ; //当前费用已対帐无法修改!
return ;
}
var allow = this . getAllowOperationDetail ( ) ;
if ( allow == false ) {
return ;
@ -3261,9 +3327,7 @@ Ext.extend(DsTruck.MsPcHYRDEdit, Ext.Panel, {
selectedRecords = this . gridListFix . selModel . getSelection ( ) ;
//var candelete = DsTruck.CheckChFeeDelete(selectedRecords);
//if (candelete == false)
// return;
if ( selectedRecords . length > 0 ) {
for ( var i = 0 ; i < selectedRecords . length ; i ++ ) {
@ -3289,6 +3353,8 @@ Ext.extend(DsTruck.MsPcHYRDEdit, Ext.Panel, {
Ext . Msg . show ( { title : '错误' , msg : "此票委托已费用已锁定,不允许操作费用!" , icon : Ext . Msg . ERROR , buttons : Ext . Msg . OK } ) ;
return false ;
}
} ,
gridListFixAfterEdit : function ( editor , e , eOpts ) {
@ -3321,6 +3387,11 @@ Ext.extend(DsTruck.MsPcHYRDEdit, Ext.Panel, {
var feeStatus = this . getFeeStatus ( ) ;
var billStatus = this . getBillStatus ( ) ;
var canedit = feeStatus == '0' && billStatus == '0' ;
if ( this . modPcHeadEdit _GDFY == 0 ) {
Ext . Msg . show ( { title : '提示' , msg : '没有权限修改费用' , icon : Ext . Msg . INFO , buttons : Ext . Msg . OK } ) ; //当前费用已対帐无法修改!
return false ;
}
return canedit ;
} ,