var model={add:function(){ct.form("\u6dfb\u52a0\u5185\u5bb9\u6a21\u578b","?app=system&controller=model&action=add",430,255,function(a){if(a.state){tableApp.load();ct.ok("\u64cd\u4f5c\u6210\u529f");return true}else{ct.error(a.error);return false}})},edit:function(a){ct.form("\u4fee\u6539\u5185\u5bb9\u6a21\u578b","?app=system&controller=model&action=edit&modelid="+a,430,255,function(b){if(b.state){tableApp.load();ct.ok("\u64cd\u4f5c\u6210\u529f");return true}else{ct.error(b.error);return false}})},
del:function(a){ct.confirm('\u786e\u5b9a\u5220\u9664\u7f16\u53f7\u4e3a<b style="color:red">'+a+"</b>\u7684\u5185\u5bb9\u6a21\u578b\u5417\uff1f",function(){$.getJSON("?app=system&controller=model&action=delete&modelid="+a,function(b){if(b.state){tableApp.load();ct.ok("\u5220\u9664\u6210\u529f\uff01")}else ct.error("\u5220\u9664\u5931\u8d25\uff01")})})}};
