@ -579,12 +579,71 @@ Ext.extend(Shipping.MsChPaySettlementBLEdit, Ext.Panel, {
flex : 1 ,
name : 'CUSTACCOUNT'
} , this . comboxSTLCATEGROY , this . comboxSaleCompany , {
fieldLabel : Zi . LAN . Remark ,
flex : 1 ,
name : 'REMARK'
} ]
xtype : 'container' ,
layout : 'hbox' ,
flex : 1 ,
defaultType : 'textfield' ,
items : [ {
fieldLabel : Zi . LAN . InvoiceNumber , //发票号
flex : 1 ,
name : 'INVOICENO'
} , {
xtype : 'button' ,
iconCls : "btnsearchBig" ,
width : 20 ,
handler : function ( button , event ) {
this . ShowBigEdit ( "INVOICENO" , Zi . LAN . InvoiceNumber ) ;
} ,
scope : this
} ]
}
} ]
} , {
xtype : 'container' ,
layout : 'hbox' ,
defaultType : 'textfield' ,
items : [ {
xtype : 'container' ,
layout : 'hbox' ,
flex : 1 ,
defaultType : 'textfield' ,
items : [ {
fieldLabel : Zi . LAN . INVOICEDATE , //发票号
labelWidth : 70 ,
flex : 1 ,
format : 'Y-m-d' ,
xtype : 'datefield' ,
name : 'INVOICEDATE'
} ]
} , {
xtype : 'container' ,
layout : 'hbox' ,
flex : 1 ,
defaultType : 'textfield' ,
items : [ {
fieldLabel : Zi . LAN . INVOICEAMOUNT , //发票号
flex : 1 ,
name : 'INVOICEAMOUNT'
} , {
xtype : 'button' ,
iconCls : "btnsearchBig" ,
width : 20 ,
handler : function ( button , event ) {
this . ShowBigEdit ( "INVOICEAMOUNT" , Zi . LAN . INVOICEAMOUNT ) ;
} ,
scope : this
} ]
} , {
fieldLabel : Zi . LAN . Remark ,
labelWidth : 70 ,
flex : 3 ,
name : 'REMARK'
} ]
}
] //end items(fieldset 1)
} //end fieldset 1
] //end root items
@ -3759,7 +3818,7 @@ Ext.extend(Shipping.MsChPaySettlementBLEdit, Ext.Panel, {
this . panelTop = new Ext . Panel ( {
layout : "border" ,
region : "north" ,
height : 1 45 ,
height : 1 60 ,
items : [ this . panelBtn , this . formEdit ]
} ) ;
this . panelBody = new Ext . Panel ( {
@ -4160,6 +4219,76 @@ Ext.extend(Shipping.MsChPaySettlementBLEdit, Ext.Panel, {
} ,
scope : this
} ) ;
this . FormBigMemoShow = Ext . widget ( 'form' , {
frame : true ,
region : 'center' ,
height : 480 ,
autoScroll : true ,
bodyPadding : 5 ,
fieldDefaults : {
margins : '2 2 2 2' ,
labelAlign : 'right' ,
flex : 1 ,
labelWidth : 90 ,
msgTarget : 'qtip'
} ,
items : [
{ //fieldset 1
xtype : 'container' ,
defaultType : 'textfield' ,
layout : 'anchor' ,
defaults : {
anchor : '100%'
} ,
items : [
{
xtype : 'textareafield' ,
// grow: true,
name : 'DSMEMO' ,
anchor : '100%' ,
height : 480 ,
listeners : {
scope : this ,
blur : function ( field , The , eOpts ) {
_this . FormBigMemoShow . getForm ( ) . findField ( 'DSMEMO' )
. setValue ( field . value . toUpperCase ( ) ) ;
}
}
}
] //end items(fieldset 1)
} //end fieldset 1
] //end root items
} ) ;
this . winBigMemoShow = Ext . create ( 'Ext.window.Window' , {
title : "" , //"集装箱明细",
width : 750 ,
height : 550 ,
//plain : true,
layout : "border" ,
iconCls : "addicon" ,
resizable : false ,
// 是否可以拖动
// draggable:false,
collapsible : true , // 允许缩放条
closeAction : 'close' ,
closable : true ,
modal : 'true' ,
buttonAlign : "center" ,
bodyStyle : "padding:0 0 0 0" ,
items : [ this . FormBigMemoShow ] ,
buttons : [ {
text : '退出并保存' , //"关闭",
minWidth : 70 ,
handler : function ( ) {
_this . showField . setValue ( _this . FormBigMemoShow . getForm ( ) . findField ( 'DSMEMO' ) . getValue ( ) ) ;
_this . winBigMemoShow . close ( ) ;
}
} ]
} ) ;
} , //end initUIComponents
InitData : function ( ) {
@ -7076,7 +7205,15 @@ Ext.extend(Shipping.MsChPaySettlementBLEdit, Ext.Panel, {
Ext . getCmp ( "zongshu" ) . setText ( Zi . LAN . SelecteAmount + sum ) ;
} ,
ShowBigEdit : function ( fieldname , cname ) {
this . showField = _this . formEdit . getForm ( ) . findField ( fieldname ) ;
var value = this . showField . getValue ( ) ;
this . winBigMemoShow . setTitle ( cname ) ;
this . FormBigMemoShow . getForm ( ) . findField ( 'DSMEMO' ) . setValue ( value ) ;
this . winBigMemoShow . show ( ) ;
} ,
//#region 生成凭证
onAddCwVouchers : function ( button , event ) {
var billNo = this . formEdit . getForm ( ) . findField ( 'BILLNO' ) . value ;