Yes/No
Ext.Msg.confirm("提示!","您确定要删除该房间类型信息吗?",function(btn){
if(btn=="yes")
{
//提交到后台
}
else{
}
})
Ok/Cancel:
Ext.MessageBox.show({
title: '提示',
msg: '您确定要生成凭证吗?',
buttons: { ok: "生成", cancel: "取消" },
//buttons:Ext.MessageBox.OKCANCEL,
fn: showResult,
animEl: 'mb4',
icon:Ext.MessageBox.QUESTION
});
function showResult(btn) {
if (btn == "ok") {
@* Ext.Ajax.request({
url:'@Url.Action("UpdateCompanyCode", "CompanyCode")',
success: function(response) {
var rs =Ext.util.JSON.decode(response.responseText);
if (rs.Success) {
//ExtShowInfo(rs.Msg);
} else {
ExtShowError(rs.Msg);
}
},
failure: function (){
Ext.Msg.alert('提示', '服务器处理出错!请稍后再试!');
},
params: { rcmid:e.record.dataNaNid, rcmkeepfield2: e.record.dataNaNkeepfield2 }
});*@
//gridstore.load({params: { start: 0, limit: pageSize } });
Ext.MessageBox.alert("提醒", "生成成功!");
}
};
Yes/No/Cancel
Ext.MessageBox.show({
title: '生成方式',
msg: '请选择你想要的生成方式!',
buttons: { yes: "按已执行合同生成", no: "按全部任务生成", cancel: "取消" },
fn: function (btn) {
var PayMenType;
//if(parseInt(item.Type) == 0) return '所有任务合同生成';
//if(parseInt(item.Type) == 1) return '已执行合同生成';
if (btn == "yes") {
PayMenType = 1;
Ext.MessageBox.alert("提醒", "按已执行合同生成,需要存储过程");
} else if (btn == "no") {
PayMenType = 0;
Ext.MessageBox.alert("提醒", "按全部任务生成,需要存储过程");
}
@* $.post('@Url.Action("ExecProductCreate","FinancePayment")', {
id:id, //CMCompID、CMSN、ServerProduct、CompStarDate、CompEndDate、year、month
PayMenType:PayMenType, //--生成选项items[i].Type
}, function (data) {
if (data =="sucess") {
alert('生成成功!');
gridstore.reload();
} else {
alert('生成失败!');
}
})*@
},
icon:Ext.MessageBox.QUESTION
});