Kingdee EAS pop-up message box

MsgBox class provides several types of message box to prompt the pop-up message,

Generally showInfo (), showWarning (), showError (), showConfirm2 () and so on. Each method has different parameters passed overloaded methods,

Typically pass a string or a string and a Component object.

Here I use a showConfirm2 () method, the return value is an int type,

Tip box as shown:



When clicking OK, the return value is 0, when the return value is Cancel 2, it can be determined to add logic to the return value.

int choice = MsgBox.showConfirm2(this,"收款金额大于" + formatLine + "无法收款");

if(choice!=0){
	SysUtil.abort(); 
}
else{
	HttpSendMsg.httpRequest("skd", editData.getId().toString(),
			editData.getCompany().getId().toString(), "GET", null);
}

 
 
 
 
 

Guess you like

Origin blog.csdn.net/qq_20377675/article/details/78365007