@ -100,6 +100,12 @@ Ext.extend(Shipping.MsChDuiEdit, Ext.Panel, {
} ) ;
var DuiTemplateFIELDNAME = 'NAME' ;
if ( strLANGUAGES == "en-us" ) {
DuiTemplateFIELDNAME = 'ENAME' ;
}
this . storeDuiTemplate = Ext . create ( 'DsExt.ux.RefTableStore' , {
model : 'MsCodeDuiTemplate' ,
proxy : { url : '/MvcShipping/MsCodeDuiTemplate/GetDataList' }
@ -112,16 +118,23 @@ Ext.extend(Shipping.MsChDuiEdit, Ext.Panel, {
forceSelection : true ,
name : 'DM_ID' ,
valueField : 'DM_ID' ,
displayField : 'NAME'
displayField : DuiTemplateFIELDNAME
} ) ;
var BLTYPEDFIELDNAME = 'EnumValueName' ;
if ( strLANGUAGES == "en-us" ) {
BLTYPEDFIELDNAME = 'EnumValueName_2' ;
}
this . storeDCType = Ext . create ( 'DsExt.ux.RefEnumStore' , { } ) ;
this . storeDCType . load ( { params : { enumTypeId : 96008 } } ) ;
this . comboxDCType = Ext . create ( 'DsExt.ux.RefEnumCombox' , {
fieldLabel : Zi . LAN . zdantype , //账单类别
store : this . storeDCType ,
displayField : BLTYPEDFIELDNAME ,
forceSelection : true ,
name : 'DC'
} ) ;
@ -132,6 +145,7 @@ Ext.extend(Shipping.MsChDuiEdit, Ext.Panel, {
this . comboxFeeType = Ext . create ( 'DsExt.ux.RefEnumCombox' , {
fieldLabel : Zi . LAN . fyfanwei , //费用范围
store : this . storeFeeType ,
displayField : BLTYPEDFIELDNAME ,
forceSelection : true ,
name : 'ISNOSTL'
} ) ;
@ -140,8 +154,8 @@ Ext.extend(Shipping.MsChDuiEdit, Ext.Panel, {
this . storeNOTAX = Ext . create ( 'Ext.data.Store' , {
fields : [ 'DC' , 'NAME' ]
} ) ;
this . storeNOTAX . add ( { "DC" : "" , "NAME" : "含税" } ) ;
this . storeNOTAX . add ( { "DC" : "1" , "NAME" : "不含税" } ) ;
this . storeNOTAX . add ( { "DC" : "" , "NAME" : Zi . LAN . NOTAX } ) ;
this . storeNOTAX . add ( { "DC" : "1" , "NAME" : Zi . LAN . NOTAXYES } ) ;
this . comboxNOTAX = Ext . create ( 'DsExt.ux.RefTableCombox' , {
fieldLabel : Zi . LAN . ishanshui , //是否含税
@ -288,16 +302,16 @@ Ext.extend(Shipping.MsChDuiEdit, Ext.Panel, {
scope : this
} , '-' , {
id : 'btnSubmitAudit' ,
text : '锁定' , //锁定
tooltip : '锁定' ,
text : Zi . LAN . SubmitAudit , //锁定
tooltip : Zi . LAN . SubmitAudit ,
handler : function ( button , event ) {
this . onSubmitAuditClick ( ) ;
} ,
scope : this
} , '-' , {
id : 'btnSubmitAuditBack' ,
text : '撤销锁定' , //撤销锁定
tooltip : '撤销锁定' ,
text : Zi . LAN . SubmitAuditBack , //撤销锁定
tooltip : Zi . LAN . SubmitAuditBack ,
handler : function ( button , event ) {
this . onSubmitAuditBackClick ( ) ;
} ,
@ -448,23 +462,32 @@ Ext.extend(Shipping.MsChDuiEdit, Ext.Panel, {
width : 60 ,
renderer : function ( value , meta ) {
if ( value == '审核通过' ) {
meta . tdCls = 'feestatus_pass' ;
value = Zi . LAN . SHENHETONGGUO ;
} else if ( value == '录入状态' ) {
value = Zi . LAN . LURUZHUAGNTAI ;
} else if ( value == '提交审核' ) {
meta . tdCls = 'feestatus_refer' ;
value = Zi . LAN . TIJIAOSHENHE ;
} else if ( value == '部分结算' ) {
meta . tdCls = 'feestatus_refer' ;
meta . tdCls = 'feestatus_settlepart' ;
value = Zi . LAN . BUFENJIESUAN ;
} else if ( value == '结算完毕' ) {
meta . tdCls = 'feestatus_settle' ;
value = Zi . LAN . JIESUANWANBI ;
} else if ( value == '未录入' ) {
} else if ( value == '部分结算' ) {
meta . tdCls = 'feestatus_settle' ;
value = Zi . LAN . WEILURU ;
} else if ( value == '部分审核' ) {
meta . tdCls = 'feestatus_pass' ;
meta . tdCls = 'feestatus_refer' ;
value = Zi . LAN . BUFENSHENHE ;
} else if ( value == '部分提交' ) {
meta . tdCls = 'feestatus_refer' ;
value = Zi . LAN . BUFENTIJIAO ;
} else if ( value == '驳回提交' ) {
meta . tdCls = 'feestatus_nopass' ;
value = Zi . LAN . BOHUITIJIAO ;
}
return value ;
}
@ -543,7 +566,7 @@ Ext.extend(Shipping.MsChDuiEdit, Ext.Panel, {
} , {
sortable : true ,
dataIndex : 'TTLDR' ,
header : '应收合计' , //应收合计
header : Zi . LAN . countyings , //应收合计
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
summaryType : 'sum' ,
@ -555,7 +578,7 @@ Ext.extend(Shipping.MsChDuiEdit, Ext.Panel, {
} , {
sortable : true ,
dataIndex : 'BALTTLDR' ,
header : '未收合计' , //未收合计
header : Zi . LAN . countweis , //未收合计
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
summaryType : 'sum' ,
@ -639,7 +662,7 @@ Ext.extend(Shipping.MsChDuiEdit, Ext.Panel, {
} , {
sortable : true ,
dataIndex : 'TTLCR' ,
header : '应付合计' , //应付合计
header : Zi . LAN . yingfusum , //应付合计
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
summaryType : 'sum' ,
@ -651,7 +674,7 @@ Ext.extend(Shipping.MsChDuiEdit, Ext.Panel, {
} , {
sortable : true ,
dataIndex : 'BALTTLCR' ,
header : '未付合计' , //未付合计
header : Zi . LAN . weifusum , //未付合计
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
summaryType : 'sum' ,
@ -663,7 +686,7 @@ Ext.extend(Shipping.MsChDuiEdit, Ext.Panel, {
} , {
sortable : true ,
dataIndex : 'RMBORDERINVOICEDR' ,
header : 'RMB发票申请' , //未付合计
header : Zi . LAN . RMBORDERINVOICEDR , //未付合计
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
summaryType : 'sum' ,
@ -675,7 +698,7 @@ Ext.extend(Shipping.MsChDuiEdit, Ext.Panel, {
} , {
sortable : true ,
dataIndex : 'USDORDERINVOICEDR' ,
header : 'USD发票申请' , //未付合计
header : Zi . LAN . USDORDERINVOICEDR , //未付合计
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
summaryType : 'sum' ,
@ -687,7 +710,7 @@ Ext.extend(Shipping.MsChDuiEdit, Ext.Panel, {
} , {
sortable : true ,
dataIndex : 'RMBORDERAMOUNTCR' ,
header : 'RMB申请金额' , //未付合计
header : Zi . LAN . RMBORDERAMOUNTCR , //未付合计
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
summaryType : 'sum' ,
@ -699,7 +722,7 @@ Ext.extend(Shipping.MsChDuiEdit, Ext.Panel, {
} , {
sortable : true ,
dataIndex : 'USDORDERAMOUNTCR' ,
header : 'USD申请金额' , //未付合计
header : Zi . LAN . USDORDERAMOUNTCR , //未付合计
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
summaryType : 'sum' ,
@ -784,7 +807,8 @@ Ext.extend(Shipping.MsChDuiEdit, Ext.Panel, {
_this . gridListcolumns = DsTruck . SaveGridPanel ( USERID , _this . formname + '_gridList' , _this . gridList . columns , _this . gridListcolumns , 0 , true ) ;
}
} , { text : '初始化' , //初始化
} , {
text : Zi . LAN . Initialization , //初始化
handler : function ( menu , event ) {
_this . gridList . reconfigure ( _this . storeBodyList , _this . initgridListcolumns ) ;
_this . gridListcolumns = DsTruck . SaveGridPanel ( USERID , _this . formname + '_gridList' , _this . gridList . columns , _this . initgridListcolumns , 0 , true ) ;
@ -792,7 +816,8 @@ Ext.extend(Shipping.MsChDuiEdit, Ext.Panel, {
} ] ,
scope : this
} ,
{ fieldLabel : "单号" ,
{
fieldLabel : Zi . LAN . NO ,
labelWidth : 40 ,
xtype : 'textfield' ,
name : 'BSNO' ,
@ -1700,25 +1725,25 @@ Ext.extend(Shipping.MsChDuiEdit, Ext.Panel, {
this . storeFeeRange = Ext . create ( 'Ext.data.Store' , {
fields : [ 'DC' , 'NAME' ]
} ) ;
this . storeFeeRange . add ( { "DC" : "" , "NAME" : "全部" } ) ;
this . storeFeeRange . add ( { "DC" : "B" , "NAME" : "未结费用" } ) ;
this . storeFeeRange . add ( { "DC" : "S" , "NAME" : "已结费用" } ) ;
this . storeFeeRange . add ( { "DC" : "审核通过" , "NAME" : "审核通过" } ) ;
this . storeFeeRange . add ( { "DC" : "已付未收" , "NAME" : "已付未收" } ) ;
this . storeFeeRange . add ( { "DC" : "已收未付" , "NAME" : "已收未付" } ) ;
this . storeFeeRange . add ( { "DC" : "未申请未结算" , "NAME" : "未申请未结算" } ) ;
this . storeFeeRange . add ( { "DC" : "仅已开发票" , "NAME" : "仅已开发票" } ) ;
this . storeFeeRange . add ( { "DC" : "仅未开发票" , "NAME" : "仅未开发票" } ) ;
this . storeFeeRange . add ( { "DC" : "仅已开发票未收款" , "NAME" : "仅已开发票未收款" } ) ;
this . storeFeeRange . add ( { "DC" : "仅已收款未开发票" , "NAME" : "仅已收款未开发票" } ) ;
this . storeFeeRange . add ( { "DC" : "仅未开票未申请未收款" , "NAME" : "仅未开票未申请未收款" } ) ;
this . storeFeeRange . add ( { "DC" : "仅已收款已开发票" , "NAME" : "仅已收款已开发票" } ) ;
this . storeFeeRange . add ( { "DC" : "仅未开票未收款" , "NAME" : "仅未开票未收款" } ) ;
this . storeFeeRange . add ( { "DC" : "审核通过未结算" , "NAME" : "审核通过未结算" } ) ;
this . storeFeeRange . add ( { "DC" : "" , "NAME" : Zi . LAN . FEERANGALL } ) ;
this . storeFeeRange . add ( { "DC" : "B" , "NAME" : Zi . LAN . FEERANGNOSTL } ) ;
this . storeFeeRange . add ( { "DC" : "S" , "NAME" : Zi . LAN . FEERANGSTL } ) ;
this . storeFeeRange . add ( { "DC" : "审核通过" , "NAME" : Zi . LAN . FEERANGAUDIT } ) ;
this . storeFeeRange . add ( { "DC" : "已付未收" , "NAME" : Zi . LAN . FEERANGYFWS } ) ;
this . storeFeeRange . add ( { "DC" : "已收未付" , "NAME" : Zi . LAN . FEERANGYSWF } ) ;
this . storeFeeRange . add ( { "DC" : "未申请未结算" , "NAME" : Zi . LAN . FEERANWSQWJS } ) ;
this . storeFeeRange . add ( { "DC" : "仅已开发票" , "NAME" : Zi . LAN . FEERANGJYKFP } ) ;
this . storeFeeRange . add ( { "DC" : "仅未开发票" , "NAME" : Zi . LAN . FEERANGJWKFP } ) ;
this . storeFeeRange . add ( { "DC" : "仅已开发票未收款" , "NAME" : Zi . LAN . FEERANGJYKFPWSK } ) ;
this . storeFeeRange . add ( { "DC" : "仅已收款未开发票" , "NAME" : Zi . LAN . FEERANGJYSKWKFP } ) ;
this . storeFeeRange . add ( { "DC" : "仅未开票未申请未收款" , "NAME" : Zi . LAN . FEERANGJWKPWSQWSK } ) ;
this . storeFeeRange . add ( { "DC" : "仅已收款已开发票" , "NAME" : Zi . LAN . FEERANGJYSKYKFP } ) ;
this . storeFeeRange . add ( { "DC" : "仅未开票未收款" , "NAME" : Zi . LAN . FEERANGJWKPWSK } ) ;
this . storeFeeRange . add ( { "DC" : "审核通过未结算" , "NAME" : Zi . LAN . FEERANGSHTGWJS } ) ;
this . comboxaddFeeType = Ext . create ( 'DsExt.ux.RefTableCombox' , {
fieldLabel : '费用范围' ,
fieldLabel : Zi . LAN . fyfanwei ,
store : this . storeFeeRange ,
valueField : 'DC' ,
displayField : 'NAME' ,
@ -1752,9 +1777,9 @@ Ext.extend(Shipping.MsChDuiEdit, Ext.Panel, {
this . storeINVSTATUS = Ext . create ( 'Ext.data.Store' , {
fields : [ 'FSTATUS' , 'NAME' ]
} ) ;
this . storeINVSTATUS . add ( { "FSTATUS" : "" , "NAME" : "全部" } ) ;
this . storeINVSTATUS . add ( { "FSTATUS" : "0" , "NAME" : "仅开票" } ) ;
this . storeINVSTATUS . add ( { "FSTATUS" : "1" , "NAME" : "仅不开票" } ) ;
this . storeINVSTATUS . add ( { "FSTATUS" : "" , "NAME" : Zi . LAN . FEERANGALL } ) ;
this . storeINVSTATUS . add ( { "FSTATUS" : "0" , "NAME" : Zi . LAN . INVSTATUSYES } ) ;
this . storeINVSTATUS . add ( { "FSTATUS" : "1" , "NAME" : Zi . LAN . INVSTATUSNO } ) ;
this . comboxINVSTATUS = Ext . create ( 'DsExt.ux.RefTableCombox' , {
fieldLabel : Zi . LAN . iskaipiao , //是否开票
@ -1778,9 +1803,9 @@ Ext.extend(Shipping.MsChDuiEdit, Ext.Panel, {
this . storeISADVANCEDPAY = Ext . create ( 'Ext.data.Store' , {
fields : [ 'FSTATUS' , 'NAME' ]
} ) ;
this . storeISADVANCEDPAY . add ( { "FSTATUS" : "" , "NAME" : "全部" } ) ;
this . storeISADVANCEDPAY . add ( { "FSTATUS" : "0" , "NAME" : "仅未垫付" } ) ;
this . storeISADVANCEDPAY . add ( { "FSTATUS" : "1" , "NAME" : "仅垫付" } ) ;
this . storeISADVANCEDPAY . add ( { "FSTATUS" : "" , "NAME" : Zi . LAN . FEERANGALL } ) ;
this . storeISADVANCEDPAY . add ( { "FSTATUS" : "0" , "NAME" : Zi . LAN . ISADVANCEDPAYNO } ) ;
this . storeISADVANCEDPAY . add ( { "FSTATUS" : "1" , "NAME" : Zi . LAN . ISADVANCEDPAYYES } ) ;
this . comboxISADVANCEDPAY = Ext . create ( 'DsExt.ux.RefTableCombox' , {
fieldLabel : Zi . LAN . isdianfu , //是否开垫付
@ -1904,8 +1929,8 @@ Ext.extend(Shipping.MsChDuiEdit, Ext.Panel, {
this . storeHYF = Ext . create ( 'Ext.data.Store' , {
fields : [ 'FSTATUS' , 'NAME' ]
} ) ;
this . storeHYF . add ( { "FSTATUS" : "" , "NAME" : "是" } ) ;
this . storeHYF . add ( { "FSTATUS" : "0" , "NAME" : "否" } ) ;
this . storeHYF . add ( { "FSTATUS" : "" , "NAME" : Zi . LAN . YES } ) ;
this . storeHYF . add ( { "FSTATUS" : "0" , "NAME" : Zi . LAN . NO } ) ;
this . comboxHYF = Ext . create ( 'DsExt.ux.RefTableCombox' , {
fieldLabel : Zi . LAN . hseayw , //含海运费业务
@ -2166,8 +2191,8 @@ Ext.extend(Shipping.MsChDuiEdit, Ext.Panel, {
this . storeISOPEN = Ext . create ( 'Ext.data.Store' , {
fields : [ 'FSTATUS' , 'NAME' ]
} ) ;
this . storeISOPEN . add ( { "FSTATUS" : "1" , "NAME" : "公开" } ) ;
this . storeISOPEN . add ( { "FSTATUS" : "0" , "NAME" : "不公开" } ) ;
this . storeISOPEN . add ( { "FSTATUS" : "1" , "NAME" : Zi . LAN . GK } ) ;
this . storeISOPEN . add ( { "FSTATUS" : "0" , "NAME" : Zi . LAN . BGK } ) ;
this . comboxISOPEN = Ext . create ( 'DsExt.ux.RefTableCombox' , {
// fieldLabel: '海运费',
@ -2213,16 +2238,16 @@ Ext.extend(Shipping.MsChDuiEdit, Ext.Panel, {
selModel : this . DocCM ,
selType : 'cellmodel' ,
tbar : [ {
text : '删除' ,
tooltip : '删除' ,
text : Zi . LAN . delete1 ,
tooltip : Zi . LAN . delete1 ,
iconCls : "btndeletedetail" ,
handler : function ( button , event ) {
this . onDelFileClick ( button , event ) ;
} ,
scope : this
} , '-' , {
text : '上传附件' ,
tooltip : '上传附件' ,
text : Zi . LAN . UpLoadFile ,
tooltip : Zi . LAN . UpLoadFile ,
iconCls : "btnadddetail" ,
handler : function ( button , event ) {
this . onUpLoadFileClick ( button , event ) ;
@ -2250,7 +2275,7 @@ Ext.extend(Shipping.MsChDuiEdit, Ext.Panel, {
{
sortable : true ,
dataIndex : 'URL' ,
header : '文件名' ,
header : Zi . LAN . FileName ,
width : 200 ,
renderer : function ( value , p , record ) {
return '<a href="' + record . data . Driect _URL + '" target="_blank" style=' + '"text-decoration:none"' + ' >' + value + '</a>' ;
@ -2259,7 +2284,7 @@ Ext.extend(Shipping.MsChDuiEdit, Ext.Panel, {
{
sortable : true ,
dataIndex : 'RECEIPTTYPE' ,
header : '附件类型' ,
header : Zi . LAN . RECEIPTTYPE ,
width : 135
} ,
{
@ -2277,36 +2302,36 @@ Ext.extend(Shipping.MsChDuiEdit, Ext.Panel, {
{
sortable : true ,
dataIndex : 'MODIFIEDUSERRef' ,
header : '上传人' ,
header : Zi . LAN . MODIFIEDUSERRef ,
width : 80
} ,
{
sortable : true ,
dataIndex : 'MODIFIEDTIME' ,
header : '上传时间' ,
header : Zi . LAN . MODIFIEDTIME ,
width : 135
} ,
{
sortable : true ,
dataIndex : 'DOCUMENTATTACHEDCODE' ,
header : '随附单证代码' , //需求编号: SR2017081100003
header : Zi . LAN . DOCUMENTATTACHEDCODE , //需求编号: SR2017081100003
width : 120
} ,
{
sortable : true ,
dataIndex : 'DOCUMENTATTACHEDNO' ,
header : '随附单证编号' , //需求编号: SR2017081100003
header : Zi . LAN . DOCUMENTATTACHEDNO , //需求编号: SR2017081100003
width : 120
} , {
sortable : true ,
dataIndex : 'ISPUBLIC' ,
header : '是否公开' ,
header : Zi . LAN . GK ,
editor : this . comboxISOPEN ,
width : 80 ,
renderer : function ( value , cellmeta ) {
if ( value == '1' ) {
return "公开" ;
} else return "不公开" ;
return Zi . LAN . GK ;
} else return Zi . LAN . BGK ;
}
}
]
@ -2341,7 +2366,7 @@ Ext.extend(Shipping.MsChDuiEdit, Ext.Panel, {
id : "panelDoc" ,
layout : "border" ,
region : "center" ,
title : "附件" , //账单明细
title : Zi . LAN . panelDoc , //账单明细
//autoScroll: true,
frame : false ,
// split: true,
@ -4129,7 +4154,7 @@ Ext.extend(Shipping.MsChDuiEdit, Ext.Panel, {
} ) ;
this . storeFileType . load ( { params : { condition : " and EnumTypeID=97048" } } ) ;
var comboxFileType = Ext . create ( 'DsExt.ux.RefTableCombox' , {
fieldLabel : '附件类型' ,
fieldLabel : Zi . LAN . RECEIPTTYPE ,
store : this . storeFileType ,
forceSelection : true ,
id : 'FILETYPE' ,
@ -4151,9 +4176,9 @@ Ext.extend(Shipping.MsChDuiEdit, Ext.Panel, {
xtype : 'fileuploadfield' ,
id : 'LoadFile' ,
name : 'LoadFile' ,
emptyText : '请选择文件' ,
fieldLabel : '文件' ,
buttonText : '选择文件' ,
emptyText : Zi . LAN . QingXuanZeWeiJian ,
fieldLabel : Zi . LAN . WenJiAN ,
buttonText : Zi . LAN . XZWenJiAN ,
allowBlank : false ,
buttonCfg : { iconCls : 'uploaddialog' } ,
anchor : '98%'
@ -4161,15 +4186,15 @@ Ext.extend(Shipping.MsChDuiEdit, Ext.Panel, {
xtype : 'textfield' ,
id : 'DOCUMENTATTACHEDCODE' ,
name : 'DOCUMENTATTACHEDCODE' ,
fieldLabel : '随附单证代码' //需求编号: SR2017081100003
fieldLabel : Zi . LAN . DOCUMENTATTACHEDCODE //需求编号: SR2017081100003
} , {
xtype : 'textfield' ,
id : 'DOCUMENTATTACHEDNO' ,
name : 'DOCUMENTATTACHEDNO' ,
fieldLabel : '随附单证编号' //需求编号: SR2017081100003
fieldLabel : Zi . LAN . DOCUMENTATTACHEDNO //需求编号: SR2017081100003
} ] ,
buttons : [ {
text : '上传' ,
text : Zi . LAN . ShangChuan ,
type : 'submit' ,
handler : function ( ) {
var UserFilePath = Ext . getCmp ( 'LoadFile' ) . getValue ( ) ;
@ -4193,7 +4218,7 @@ Ext.extend(Shipping.MsChDuiEdit, Ext.Panel, {
} ,
success : function ( form , action ) {
win . close ( this ) ;
Ext . Msg . show ( { title : '提示' , msg : '上传成功!' , icon : Ext . Msg . INFO , buttons : Ext . Msg . OK } ) ;
Ext . Msg . show ( { title : Zi . LAN . Prompt , msg : Zi . LAN . CaoZuoChengGong , icon : Ext . Msg . INFO , buttons : Ext . Msg . OK } ) ;
var condition = billno ;
var condition2 = " BSNO='" + condition + "' " ;
me . Loading = true ;
@ -4215,7 +4240,7 @@ Ext.extend(Shipping.MsChDuiEdit, Ext.Panel, {
} ) ;
}
} , {
text : '关闭' ,
text : Zi . LAN . close ,
type : 'submit' ,
handler : function ( ) {
win . close ( this ) ;
@ -4224,7 +4249,7 @@ Ext.extend(Shipping.MsChDuiEdit, Ext.Panel, {
} ) ;
var win = new Ext . Window ( {
title : "上传文件" ,
title : Zi . LAN . UpLoadFile ,
width : 360 ,
height : 200 ,
modal : true ,
@ -4361,7 +4386,7 @@ Ext.extend(Shipping.MsChDuiEdit, Ext.Panel, {
}
} else {
Ext . MessageBox . alert ( '请求出现错误,请重试' , response . responseText ) ;
Ext . MessageBox . alert ( Zi . LAN . qqerror , response . responseText ) ;
}
} ,
scope : this