/**
 * @author lubihua
 */

Ext.namespace('AssistCom','AssistCom.Core','AssistCom.Core.Base');

Ext.QuickTips.init();

AssistCom.Core.Base.ShowInfo = function(titleMsg,msg){
	Ext.MessageBox.show({
		title : titleMsg,
		msg : msg,
		icon : Ext.MessageBox.INFO,
		buttons : Ext.MessageBox.OK
	});
};

AssistCom.Core.Base.ShowWarning = function(titleMsg,msg){
	Ext.MessageBox.show({
		title : titleMsg,
		msg : msg,
		icon : Ext.MessageBox.WARNING,
		buttons : Ext.MessageBox.OK
	});
};

AssistCom.Core.Base.ShowError = function(titleMsg,msg){
	Ext.MessageBox.show({
		title : titleMsg,
		msg : msg,
		 icon: Ext.MessageBox.ERROR,
		buttons : Ext.MessageBox.OK
	});
};

AssistCom.Core.Base.ShowConfirm = function(titleMsg,msg,callbackFun,scope){
	Ext.MessageBox.confirm(titleMsg,msg,function(buttonId){
		if(buttonId == 'yes'){
			callbackFun.call(scope);
		}
	},scope);
}

AssistCom.Core.Base.ShowAlertWithFun = function(titleMsg,msg,callbackFun,scope){
	Ext.MessageBox.alert(titleMsg,msg,callbackFun,scope);
}
