var sign={view:function(a){ct.ajax("\u67e5\u770b\u62a5\u540d\u8005\u4fe1\u606f","?app=activity&controller=sign&action=view&signid="+a,400,500)},edit:function(a){ct.form("\u7f16\u8f91\u62a5\u540d\u8005\u4fe1\u606f","?app=activity&controller=sign&action=edit&signid="+a,400,500,function(b){if(b.state){tableApp.updateRow(a,b.data);return true}else{ct.error(b.error);return false}})},pass:function(a){if(a===undefined)a=tableApp.checkedIds();if(a.length===0){ct.warn("\u8bf7\u9009\u62e9\u8981\u64cd\u4f5c\u7684\u8bb0\u5f55");
return false}sign._common(a,"pass")},unpass:function(a){if(a===undefined)a=tableApp.checkedIds();if(a.length===0){ct.warn("\u8bf7\u9009\u62e9\u8981\u64cd\u4f5c\u7684\u8bb0\u5f55");return false}sign._common(a,"unpass")},exports:function(a){ct.confirm('<table width="200" style="text-align:left"    \t<tr><td rowspan="2">\u5bfc\u51fa</td>\t    <td><input id="cccc" type="radio" name="exportype" value="checked" checked="checked"/>\u5df2\u5ba1\u6838\u62a5\u540d\u8005</td></tr>  \t\t<tr><td><input type="radio" name="exportype" value="all"/>\u5168\u90e8\u62a5\u540d\u8005</td></tr>\t\t</table>',
function(b){window.open("?app=activity&controller=sign&action=export&type="+b.find("input:checked").val()+"&contentid="+a,"","width=0,height=0")}).find("button").addClass("button_style_1")},del:function(a){if(a===undefined){a=tableApp.checkedIds();var b='\u786e\u5b9a\u5220\u9664\u9009\u4e2d\u7684<b style="color:red">'+a.length+"</b>\u6761\u8bb0\u5f55\u5417\uff1f"}else b='\u786e\u5b9a\u5220\u9664\u7f16\u53f7\u4e3a<b style="color:red">'+a+"</b>\u7684\u8bb0\u5f55\u5417\uff1f";if(a.length===0){ct.warn("\u8bf7\u9009\u62e9\u8981\u64cd\u4f5c\u7684\u8bb0\u5f55");
return false}ct.confirm(b,function(){sign._common(a,"delete")})},_common:function(a,b){if(a==undefined)a=tableApp.checkedIds();if(a.length===0){ct.warn("\u8bf7\u9009\u62e9\u8981\u64cd\u4f5c\u7684\u8bb0\u5f55");return false}$.getJSON("?app=activity&controller=sign&action="+b+"&signid="+a,function(c){if(c.state){window.tableApp?tableApp.load():window.location.reload();ct.ok("\u64cd\u4f5c\u6210\u529f")}else ct.error(c.error)})}};
