
var cst=2039;var oxe="DefaultF_";var wmq=null;var $UserName=null;var $ServerName=null;$(window).load(function(){$UserName=$("input[FieldName='UserName']:first");$ServerName=$("input[FieldName='ServerName']:first");$("#btn_UpdateInstall").unbind("click").removeAttr("onclick").bind("click",function(){UpdateInstallMsg()})});function itz(){window.open("http://www.dcxCreator.com/Designer/main.html","_blank")}
function uyk(){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}
f.ServerName=f.ServerName.replace("/","\\");f.ServerName=f.ServerName.replace("\\\\","\\");f.ServerName=f.ServerName.replace("\\","\\\\");var g="/WebServices/Install/Install.asmx/SetDb";$.ajax({type:"POST",contentType:"application/json; charset=utf-8",url:g,data:"{ServerName:\""+f.ServerName+"\",UserName:\""+f.UserName+"\",Password:\""+f.Password+"\",DatabaseName:\""+f.DbName+"\",TablePrefix:\""+f.TablePrefix+"\"}",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}
function jev(){art.VLdialog.open.api.close()}