
var cst=2292;var oxe="ListF_";var emailObj=null;$(window).load(function(){$("#btn_updateUserMsg").unbind("click").bind("click",function(){var a="<div  style='font-size:15px;line-height:25px;'>抱歉，体验版不允许使用此功能，请直接在“用户管理”中添加。</div><div  style='font-size:13px;margin-top: 10px;'>1，您可以<a style='text-decoration: underline;' title='点击这里联系我' target='_blank' href='http://wpa.qq.com/msgrd?v=3&uin=1540438415&site=qq&menu=yes'>联系我们</a>，下载体验版(10用户)，并正式开通在线DIY帐号。</div><div  style='font-size:13px;margin-top: 10px;'>2，或者<a style='text-decoration: underline;' title='看价格表' target='_blank' href='http://www.dcxcreator.com/Designer/Finance/SelectVersion.html'>直接购买</a>正式版，并正式开通在线DIY帐号。</div><div style='font-size:13px;margin-top: 10px;'>3，也可以看示例，看教程。</div>";art.VLdialog.alert(a,function(){},204,"提示","关闭");return false;pjx()})});function pjx(){var j=opc(cst,oxe);if(ymr(j)||j.length<1){art.VLdialog.alert("请输入同事的姓名和邮件地址。",function(){},4,"提示");return}
$("#btn_updateUserMsg").html("正在邀请...");var k="/WebServices/System/User.asmx/InviteUsers";$.ajax({type:"POST",contentType:"application/json; charset=utf-8",url:k,data:"{userList:"+JSON2.stringify(j)+"}",dataType:'json',beforeSend:function(a){},complete:function(a,b){$("#btn_updateUserMsg").html("开始邀请")},error:function(a){var b=JSON2.stringify(a);if(b.length>600)b=b.substr(0,600);alert("操作失败。详情："+b);return false},success:function(a){a=hmy(a);var b=a.ErrorMsg;var c=new Array();if(!ymr(b))c=b.split("$R@D");if(c.length>1){var d=c[3];var e=c[2];var f=parseInt(c[0],10);var g=parseInt(c[1],10);var h=parseInt(c[4],10);var i=parseInt(c[5],10);if(f+g>0&&f==0&&i==f+g)art.VLdialog.Succeed("<span style='font-size:18px;'>系统邮箱还没配置，请在“系统邮箱配置”功能中进行配置！</span>",function(){},20,"提示");else if(f>0&&g==0)art.VLdialog.Succeed("<span style='font-size:18px;'>邀请成功！<br/><br/>如果有被邀请的用户长时间没登陆系统，请再主动通知您的同事</span>",function(){},20,"提示");else if(f>0&&g>0)art.VLdialog.Succeed("<span style='font-size:18px;'>已完成邀请！有些邀请失败了。<br/><br/>邀请成功的有以下：<br/>"+e+"<br/></br/>邀请失败的有以下："+d+"</span>",function(){},20,"提示");else art.VLdialog.Succeed("<span style='font-size:18px;'>邀请成功！</span>",function(){},20,"提示")}else art.VLdialog.alert("邀请失败。原因："+a.ErrorMsg,function(){},8,"提示")}})}