123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- @model PMS.BusinessModels.SysManager.emailConfig
- @{
- ViewBag.Title = "SystemSettigns";
- Layout = "~/Views/Shared/_MainLayoutPage.cshtml";
- }
- <script src="~/ViewModels/sysmanager.config.js?r=12"></script>
- <script type="text/javascript">
- $(function () {
- $('#Timeout').datagrid({
- url: "/SysManager/RingInfo",
- method: 'post',
- rownumbers: true,
- fit: true,
- singleSelect: true,
- toolbar: "#btn_func",
- columns: [[
- {
- field: '超时启用', title: '超时启用', width: 60, align: 'center', styler: function (value, row, index) {
- if (value == '启用') {
- return 'color:green;font-weight:bold';
- }
- if (value == '待用') {
- return 'color:red;font-weight:bold;';
- }
- }
- },
- { field: '名称', title: '名称', width: 120, align: 'center' },
- { field: '描述', title: '描述', width: 200, halign: 'center' },
- {
- field: '受理时间', title: '受理超时', width: 100, align: 'center', formatter: function (value, row, index) {
-
- return value=value+"分钟"
- } },
- {
- field: '处理时间', title: '处理超时', width: 100, align: 'center', formatter: function (value, row, index) {
- return value = value + "分钟"
- }
- }
- ]],
- })
- })
- function Config_Timeout() {
- var data = $("#Timeout").datagrid("getSelected");
- if (data == null)
- {
- top.ZLPMS.Msg("请选择一行数据!")
- return;
- }
- top.ZLPMS.OpenNewWindow("配置超时时间", "/SysManager/Time_Window/" + data["ID"], "264px", "178px", function () {
- $("#Timeout").datagrid("reload")
- })
- }
- function Refresh() {
- $("#Timeout").datagrid("reload")
- }
- </script>
- <style>
- fieldset {
- border: solid 1px #EEE;
- margin: 5px;
- }
- table td {
- padding: 10px;
- }
- </style>
- <div class="easyui-tabs" data-options="fit:true">
- <div title="通知服务配置" style="padding:5px">
- <form id="form1">
- <fieldset>
- <legend><input class="easyui-checkbox" id="IsActive" type="checkbox" checked="@Model.IsActive" label="启用邮件" labelPosition="after"></legend>
- <table>
- <tr>
- <td>邮件主机:</td>
- <td><input class="easyui-textbox" id="EmailServer" data-options="required:true" value="@Model.EmailServer" style="width:300px" /> 示例:mail.zlsoft.cn</td>
- </tr>
- <tr>
- <td>邮件端口:</td>
- <td><input type="text" class="easyui-numberbox" id="Port" data-options="required:true" value="@Model.Port" style="width:300px" /> 示例:25</td>
- </tr>
- <tr>
- <td>启用SSL:</td>
- <td><input class="easyui-switchbutton" id="SSL" checked="@Model.SSL"></td>
- </tr>
- <tr>
- <td>送信息人邮箱:</td>
- <td><input class="easyui-textbox" id="SendEmail" data-options="required:true,validType:'email'" style="width:300px" value="@Model.SendEmail" /> 示例:xxxxx@zlsoft.cn</td>
- </tr>
- <tr>
- <td>送信人名称:</td>
- <td><input class="easyui-textbox" id="SendName" style="width:300px" value="@Model.SendName" /> 示例:PMS送信服务</td>
- </tr>
- <tr>
- <td>送信人邮箱密码:</td>
- <td><input class="easyui-passwordbox" id="SendPassword" data-options="required:true" style="width:300px" /> </td>
- </tr>
- </table>
- </fieldset>
- <a href="#" id="btnSave" class="easyui-linkbutton c1" style="margin:5px">
- <i class="fa fa-check-square"></i>
- 保存
- </a>
- </form>
- </div>
-
- <div title="环节超时配置" style="padding:5px">
- <div id="btn_func">
- <a href="#" onclick="Config_Timeout()" class="easyui-linkbutton" data-options="iconCls:'fa fa-plus color_blue',plain:true,align:'center'">配置</a>
- <a href="#" onclick="Refresh()" class="easyui-linkbutton" data-options="iconCls:'fa fa-refresh color_blue',plain:true,align:'center'">刷新</a>
- </div>
- <table class="easyui-datagrid" id="Timeout"></table>
- </div>
- <div title="系统信息" style="padding:5px">
- 开发中...
- </div>
- </div>
|