レンダリング:
説明:
- 二つの部分にフォームをコーディング上の図は、左側がコードの良い親ツリーノードの規定(変更することはできません)、再チェックダイナミックフォームに右である、リアルタイムエンコーディングを確認することができるかどうか、あなたがすでにデータベースに存在する入力された***(コードテキストの端部に取り付けられた)***
- レセプション図コード:
- 背後図コード:
コード:
- 次のようにここでの唯一の先端に取り付けられたコードは、アイテムに直接次のコードを使用することができる効果があります。
{
xtype : "fieldcontainer",
fieldLabel : "编码",
layout : "hbox",
items : [
{
width : 120,
xtype : "textfield",
id : "oldSysCode",
name : "oldSysCode",
readOnly : true,
allowBlank : false,
},{
width : 130,
xtype : "textfield",
id:"newMenuCode",
name : "newMenuCode",
emptyText: '--填写三位编码--',
allowBlank : false,
minLength : 3,
maxLength : 3,
validator : function() {
var error = true;
var oldSysCode =Ext.getCmp("oldSysCode").getValue();
var newMenuCode =Ext.getCmp("newMenuCode").getValue();
Ext.Ajax.request({
url : getServerHttp() +"/nh-bank/cp/sysAndMenus/baseMenusAndButtonCodeExists?oldSysCode="+oldSysCode+"&newMenuCode="+newMenuCode,
method:"POST",
scope : this,
async : false,
success : function(response) {
var result = Ext.JSON.decode(response.responseText);
if ("yes" == result.result) {
error = "该系统代号己经存在,请重新输入!";
}
}
});
return error;
}
}
]
},