{"inframe":false,"title":"注册 WebBuilder","hidden":false,"roles":{},"children":[{"configs":{"itemId":"module"},"events":{"initialize":"app.checkSn = function() {\n  if (!app.snText.getValue()) {\n    Wb.warn('请输入有效的序列号。');\n    return false;\n  }\n  return true;\n};"},"children":[{"configs":{"minButtonWidth":"100","title":"注册 WebBuilder","autoShow":"true","height":"368","closable":"contextOwner!==undefined","width":"544","layout":"absolute","resizable":"false","itemId":"window1","defaultFocus":"snText","modal":"true","iconCls":"system_icon"},"children":[{"configs":{"height":"312","width":"162","stretch":"false","src":"wb/images/app/setup.jpg","itemId":"image1","y":"0","x":"0"},"children":[],"expanded":false,"type":"image"},{"configs":{"height":"304","width":"360","layout":"absolute","flat":"true","itemId":"panel1","y":"2","x":"166"},"events":{"afterrender":"var text;\nif ('{#Var.sys.app.versionType#}' == 'e') {\n  text = '<div style=\"line-height:1.8\">' +\n    '<h2>注册 WebBuilder<\/h2>' +\n    '<hr class=\"wb_hr\">' +\n    '<p>WebBuilder 企业版具有强大的功能和高效稳定的系统，为应用系统的开发带来完美的解决方案。请在以下输入框中输入产品序列号，然后点击 [立即注册] 按钮。<\/p>' +\n    '<\/div>';\n} else {\n  text = '<div style=\"line-height:1.8\">' +\n    '<h2>注册 WebBuilder<\/h2>' +\n    '<hr class=\"wb_hr\">' +\n    '<p>该版本为功能简化及有使用时间限制的试用版本，用于评估和学习目的。商业使用请<a href=\"http://www.putdb.com/enterprise\" target=\"_blank\">获取 WebBuilder 正式企业版本<\/a>，该版本具有强大的功能和高效稳定的系统，为应用系统的开发带来完美的解决方案。<\/p>' +\n    '<\/div>';\n}\napp.descComp.update(text);"},"children":[{"configs":{"height":"168","width":"344","itemId":"descComp","y":"8","x":"8"},"children":[],"expanded":false,"type":"comp"},{"configs":{"labelWidth":"60","height":"22","width":"312","value":"{#Var.sys.app.serialNumber#}","labelAlign":"right","itemId":"snText","fieldLabel":"序列号：","y":"200","x":"16"},"children":[],"expanded":false,"type":"text"},{"configs":{"height":"22","width":"248","html":"<a href=\"http://www.putdb.com/enterprise\" target=\"_blank\">获取正式企业版本<\/a>","labelAlign":"right","itemId":"getSnLabel","y":"240","x":"80"},"children":[],"expanded":false,"type":"label"}],"expanded":true,"type":"panel"},{"configs":{"itemId":"buttons"},"children":[{"configs":{"text":"立即注册","itemId":"registerBtn","iconCls":"record_icon","tooltip":"立即把序列号写入系统文件"},"events":{"click":"if (!app.checkSn()) return;\nWb.request({\n  url: 'm?xwl=admin/register/register',\n  out: app.snText,\n  success: function() {\n    Wb.info('已经把序列号写入系统文件。请点击 [在线验证] 按钮在线验证序列号有效性。');\n  }\n});"},"children":[],"expanded":false,"type":"button"},{"configs":{"text":"在线验证","itemId":"verifyBtn","iconCls":"check_icon","tooltip":"在线验证序列号是否有效"},"events":{"click":"if (!app.checkSn()) return;\nvar sn = app.snText.getValue();\nWb.request({\n  url: 'm?xwl=admin/register/verify',\n  out: app.snText,\n  success: function() {\n    Wb.info('验证成功，序列号 \u201c' + sn + '\u201d 有效。');\n  }\n});"},"children":[],"expanded":false,"type":"button"}],"expanded":true,"type":"array"}],"expanded":true,"type":"window"},{"configs":{"style":"background-color:#787878;","itemId":"viewport1"},"children":[],"expanded":false,"type":"viewport"}],"expanded":true,"type":"module"}],"pageLink":"{container:false}","iconCls":"registration_icon"}