
var Pls={};var cst=2036;var oxe="DefaultF_";var wmq=null;var $SystemKey=null;var $DcxUserName=null;$(window).load(function(){$SystemKey=$("input[FieldName='SystemKey']:first");$DcxUserName=$("input[FieldName='DcxUserName']:first");trl();$("#btn_UpdatePublish").unbind("click").removeAttr("onclick").bind("click",function(){fww()})});function trl(){var c="/WebServices/Publish/Publish.asmx/htvSetMsg";$.ajax({type:"POST",contentType:"application/json; charset=utf-8",url:c,data:"{}",dataType:'json',success:function(a){a=hmy(a);$SystemKey.val(a[1]);$DcxUserName.val(a[0]);pet(cst,oxe,2)},beforeSend:function(a){},complete:function(a,b){},error:function(a){var b=JSON2.stringify(a);if(b.length>600)b=b.substr(0,600);alert("操作失败。详情："+b);return false}})}
Pls.GetPlsMsg=trl;function itz(){window.open("http://www.dcxCreator.com/Designer/main.html","_blank")}
Pls.GoToMyDcxCreator=itz;function fww(){var c=yci(cst,oxe);var d=null;var e=col(cst,oxe);d=e.$form;if(d==null){art.VLdialog.alert("获取表单的HTML对象失败。请确认代码正确。",function(){},4,"提示");return}
var f=sme(d,false,cst,oxe,true,cst,c,true);if(ymr(f)||f==false){art.VLdialog.alert("获取表单数据失败。请确认输入是否正确。",function(){},4,"提示");return}
var g="/WebServices/Publish/Publish.asmx/SetPublishSetMsg";$.ajax({type:"POST",contentType:"application/json; charset=utf-8",url:g,data:"{DcxUserName:\""+f.DcxUserName+"\",SystemKey:\""+f.SystemKey+"\"}",dataType:'json',beforeSend:function(a){},complete:function(a,b){},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);if(a.IsOK){art.VLdialog.Succeed("保存成功！",function(){},20,"提示")}else art.VLdialog.alert("保存失败。详细原因："+a.ErrorMsg,function(){},8,"提示")}});return}
Pls.UpdatePlsMsg=fww;function jev(){art.VLdialog.open.api.close()}
Pls.piv=jev;