sysmanager.config.js 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. $(function () {
  2. //绑定提交事件
  3. $('#btnSave').bind('click', function () {
  4. //提交事件
  5. $('#form1').form('submit', {
  6. url: '/SysManager/SaveEmailConfig',
  7. method:'post',
  8. onSubmit: function (para) {
  9. para.IsActive = $('#IsActive').checkbox('options').checked;
  10. para.EmailServer = $('#EmailServer').textbox('getValue');
  11. para.Port = $('#Port').numberbox('getValue');
  12. para.SSL = $('#SSL').switchbutton('options').checked;
  13. para.SendEmail = $('#SendEmail').textbox('getValue');
  14. para.SendName = $('#SendName').textbox('getValue');
  15. para.SendPassword = $('#SendPassword').textbox('getValue');
  16. return $(this).form('validate');
  17. },
  18. success: function (data) {
  19. if (data=="1") {
  20. ZLPMS.Msg('保存配置成功');
  21. } else {
  22. ZLPMS.Msg('保存配置失败,详细请查询日志');
  23. }
  24. }
  25. });
  26. });
  27. $('#form1').form('load', '/SysManager/GetEmailConfig1');
  28. });