
$(window).load(function(){$("button").unbind("click").bind("click",function(){ewt()})});function ewt(){var c=1904;var d="DefaultF_";if(mxx(c,d)!=1){art.VLdialog.alert("密码已修改。",function(){},4,"提示");return null}
var e=yci(c,d);var f=null;var g=col(c,d);f=g.$form;if(f==null){art.VLdialog.alert("获取表单的HTML对象失败。请确认代码正确。",function(){},4,"提示");return null}
var h=sme(f,false,c,d,true,c,e,true);if(ymr(h)||h==false){return null}
if(h==null)return;var i="/Designer/WebServices/System/User.asmx/UpdateMyPassword";$.ajax({type:"POST",contentType:"application/json; charset=utf-8",url:i,data:"{OldPassword:\""+h.oldPwd+"\",NewPassword:\""+h.newPwd+"\",ValidatePassord:\""+h.newPwd2+"\"}",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==null||ymr(a)){art.VLdialog.alert("修改成功！",function(){},2,"提示");return false}else{art.VLdialog.alert("修改失败。原因："+a,function(){},8,"提示")}}});return}