SystemSettigns.cshtml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. @model PMS.BusinessModels.SysManager.emailConfig
  2. @{
  3. ViewBag.Title = "SystemSettigns";
  4. Layout = "~/Views/Shared/_MainLayoutPage.cshtml";
  5. }
  6. <script src="~/ViewModels/sysmanager.config.js?r=12"></script>
  7. <script type="text/javascript">
  8. $(function () {
  9. $('#Timeout').datagrid({
  10. url: "/SysManager/RingInfo",
  11. method: 'post',
  12. rownumbers: true,
  13. fit: true,
  14. singleSelect: true,
  15. toolbar: "#btn_func",
  16. columns: [[
  17. {
  18. field: '超时启用', title: '超时启用', width: 60, align: 'center', styler: function (value, row, index) {
  19. if (value == '启用') {
  20. return 'color:green;font-weight:bold';
  21. }
  22. if (value == '待用') {
  23. return 'color:red;font-weight:bold;';
  24. }
  25. }
  26. },
  27. { field: '名称', title: '名称', width: 120, align: 'center' },
  28. { field: '描述', title: '描述', width: 200, halign: 'center' },
  29. {
  30. field: '受理时间', title: '受理超时', width: 100, align: 'center', formatter: function (value, row, index) {
  31. return value=value+"分钟"
  32. } },
  33. {
  34. field: '处理时间', title: '处理超时', width: 100, align: 'center', formatter: function (value, row, index) {
  35. return value = value + "分钟"
  36. }
  37. }
  38. ]],
  39. })
  40. })
  41. function Config_Timeout() {
  42. var data = $("#Timeout").datagrid("getSelected");
  43. if (data == null)
  44. {
  45. top.ZLPMS.Msg("请选择一行数据!")
  46. return;
  47. }
  48. top.ZLPMS.OpenNewWindow("配置超时时间", "/SysManager/Time_Window/" + data["ID"], "264px", "178px", function () {
  49. $("#Timeout").datagrid("reload")
  50. })
  51. }
  52. function Refresh() {
  53. $("#Timeout").datagrid("reload")
  54. }
  55. </script>
  56. <style>
  57. fieldset {
  58. border: solid 1px #EEE;
  59. margin: 5px;
  60. }
  61. table td {
  62. padding: 10px;
  63. }
  64. </style>
  65. <div class="easyui-tabs" data-options="fit:true">
  66. <div title="通知服务配置" style="padding:5px">
  67. <form id="form1">
  68. <fieldset>
  69. <legend><input class="easyui-checkbox" id="IsActive" type="checkbox" checked="@Model.IsActive" label="启用邮件" labelPosition="after"></legend>
  70. <table>
  71. <tr>
  72. <td>邮件主机:</td>
  73. <td><input class="easyui-textbox" id="EmailServer" data-options="required:true" value="@Model.EmailServer" style="width:300px" /> 示例:mail.zlsoft.cn</td>
  74. </tr>
  75. <tr>
  76. <td>邮件端口:</td>
  77. <td><input type="text" class="easyui-numberbox" id="Port" data-options="required:true" value="@Model.Port" style="width:300px" /> 示例:25</td>
  78. </tr>
  79. <tr>
  80. <td>启用SSL:</td>
  81. <td><input class="easyui-switchbutton" id="SSL" checked="@Model.SSL"></td>
  82. </tr>
  83. <tr>
  84. <td>送信息人邮箱:</td>
  85. <td><input class="easyui-textbox" id="SendEmail" data-options="required:true,validType:'email'" style="width:300px" value="@Model.SendEmail" /> 示例:xxxxx@zlsoft.cn</td>
  86. </tr>
  87. <tr>
  88. <td>送信人名称:</td>
  89. <td><input class="easyui-textbox" id="SendName" style="width:300px" value="@Model.SendName" /> 示例:PMS送信服务</td>
  90. </tr>
  91. <tr>
  92. <td>送信人邮箱密码:</td>
  93. <td><input class="easyui-passwordbox" id="SendPassword" data-options="required:true" style="width:300px" /> </td>
  94. </tr>
  95. </table>
  96. </fieldset>
  97. <a href="#" id="btnSave" class="easyui-linkbutton c1" style="margin:5px">
  98. <i class="fa fa-check-square"></i>
  99. 保存
  100. </a>
  101. </form>
  102. </div>
  103. <div title="环节超时配置" style="padding:5px">
  104. <div id="btn_func">
  105. <a href="#" onclick="Config_Timeout()" class="easyui-linkbutton" data-options="iconCls:'fa fa-plus color_blue',plain:true,align:'center'">配置</a>
  106. <a href="#" onclick="Refresh()" class="easyui-linkbutton" data-options="iconCls:'fa fa-refresh color_blue',plain:true,align:'center'">刷新</a>
  107. </div>
  108. <table class="easyui-datagrid" id="Timeout"></table>
  109. </div>
  110. <div title="系统信息" style="padding:5px">
  111. 开发中...
  112. </div>
  113. </div>