ExtJs formGrid submit

1415 단어
if(aqf.form.isValid()){
	aqf.form.doAction('submit',{   // 
	url:contextPath+'/xg/pypx/pypxYxjhAction.do?method=addPypxYxjh',
	method:'post',
	waitTitle:' ',                                                    
	waitMsg:' , ...',
	success:function(form,action)
	if(action.result.success){
		aqf.form.reset();
		dataStore.reload();
		addYxjhWin.hide();
										}
	},failure:function(form, action){
		switch (action.failureType) {  
			case Ext.form.Action.CLIENT_INVALID:  
			   	Ext.Msg.alert(" ", " , !");  
			  	break;  
			case Ext.form.Action.CONNECT_FAILURE:  
				Ext.Msg.alert(' ', ' ');  
				break;  
			case Ext.form.Action.SERVER_INVALID:  
				Ext.Msg.alert(' ', action.result.message);  
		}  
	}
	});

listeners:{
	'activate':fprscx2
},



								var fprs = Ext.getCmp('_fprs').getValue();
								var dqfprs = Ext.getCmp('_dqfprs').getValue();
								var yfprs = fprs.substring(0, fprs.lastIndexOf("/"));
								var qxpxrs = fprs.substring(fprs.lastIndexOf("/")+1);
								var dfprs = eval(qxpxrs - yfprs);
								if(eval(dqfprs - dfprs) > 0){
									Ext.Msg.alert(' '," !");
									return;
								}

좋은 웹페이지 즐겨찾기