shine преди 9 години
родител
ревизия
83333b5005
променени са 16 файла, в които са добавени 211 реда и са изтрити 168 реда
  1. 14 14
      Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/system/dict/dictDialog.jsp
  2. 15 11
      Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/system/dict/dictDialogJs.jsp
  3. 13 13
      Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/system/dict/dictItemDialog.jsp
  4. 17 11
      Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/system/dict/dictItemDialogJs.jsp
  5. 14 17
      Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/system/menu/editorMenu.jsp
  6. 21 11
      Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/system/menu/editorMenuJs.jsp
  7. 13 13
      Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/system/menuaction/editorMenuAction.jsp
  8. 17 10
      Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/system/menuaction/editorMenuActionJs.jsp
  9. 1 1
      Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/system/menuaction/menuActionJs.jsp
  10. 5 5
      Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/system/role/editorRole.jsp
  11. 17 10
      Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/system/role/editorRoleJs.jsp
  12. 8 8
      Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/system/systemparam/editorParam.jsp
  13. 16 11
      Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/system/systemparam/editorParamJs.jsp
  14. 20 20
      Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/system/user/editorUser.jsp
  15. 19 12
      Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/system/user/editorUserJs.jsp
  16. 1 1
      Hos-resource/src/main/webapp/develop/common/base.css

+ 14 - 14
Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/system/dict/dictDialog.jsp

@ -4,21 +4,21 @@
<!--######机构管理页面 > 机构信息对话框模板页######-->
<div id="div_info_form" class="m-form-inline" style="padding-top:10px;" data-role-form>
    <div class="m-form-group">
        <label>字典名:</label>
        <label><span class="red">*&nbsp;</span>字典名:</label>
        <div class="m-form-control essential">
        <div class="m-form-control">
            <div class="l-text">
                <input type="text" class="l-text-field required"  data-attr-scan="chineseName"/>
                <input type="text" class="l-text-field required"  name="chineseName"/>
            </div>
        </div>
    </div>
    <div class="m-form-group">
        <label>字典代码:</label>
        <label><span class="red">*&nbsp;</span>字典代码:</label>
        <div class="m-form-control essential">
        <div class="m-form-control ">
            <div class="l-text">
                <input type="text" class="l-text-field required"  data-attr-scan="dictName"/>
                <input type="text" class="l-text-field required"  name="dictName"/>
            </div>
        </div>
    </div>
@ -28,7 +28,7 @@
        <div class="m-form-control">
            <div class="l-text">
                <input type="text" class="l-text-field" data-attr-scan="pyCode"/>
                <input type="text" class="l-text-field" name="pyCode"/>
            </div>
        </div>
    </div>
@ -38,7 +38,7 @@
        <div class="m-form-control ">
            <div class="l-text">
                <input type="text" class="l-text-field" class="l-text-field" data-attr-scan="pid">
                <input type="text" class="l-text-field" class="l-text-field" name="pid">
            </div>
        </div>
    </div>
@ -47,7 +47,7 @@
        <div class="m-form-control ">
            <div class="l-text">
                <input type="text" class="l-text-field" class="l-text-field" data-attr-scan="remark">
                <input type="text" class="l-text-field" class="l-text-field" name="remark">
            </div>
        </div>
    </div>
@ -57,7 +57,7 @@
        <div class="m-form-control ">
            <div class="l-text">
                <input type="text" class="l-text-field" class="l-text-field" data-attr-scan="relationTable">
                <input type="text" class="l-text-field" class="l-text-field" name="relationTable">
            </div>
        </div>
    </div>
@ -67,7 +67,7 @@
        <div class="m-form-control ">
            <div class="l-text">
                <input type="text" class="l-text-field" class="l-text-field" data-attr-scan="relationColCode">
                <input type="text" class="l-text-field" class="l-text-field" name="relationColCode">
            </div>
        </div>
    </div>
@ -77,7 +77,7 @@
        <div class="m-form-control ">
            <div class="l-text">
                <input type="text" class="l-text-field" class="l-text-field" data-attr-scan="relationColValue">
                <input type="text" class="l-text-field" class="l-text-field" name="relationColValue">
            </div>
        </div>
    </div>
@ -86,13 +86,13 @@
        <div class="m-form-control ">
            <div class="l-text">
                <input type="text" class="l-text-field" class="l-text-field" data-attr-scan="relationColExtend">
                <input type="text" class="l-text-field" class="l-text-field" name="relationColExtend">
            </div>
        </div>
    </div>
    <!-- 隐藏字段 -->
    <div class="m-form-group" style="display: none;">
        <input data-attr-scan="id" hidden="hidden"/>
        <input name="id" hidden="hidden"/>
    </div>
    <div class="m-form-bottom">
        <div id="btnCancel" class="l-button l-button-no">

+ 15 - 11
Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/system/dict/dictDialogJs.jsp

@ -5,9 +5,9 @@
    /* *************************** 模块初始化 ***************************** */
    var resourceRestEditer = {
        $form: $("#div_info_form"),
        actionUrl: "${contextRoot}/dict/addDict",
        validator: null,
        init: function () {
            this.initForm();
@ -16,10 +16,10 @@
        initForm: function () {
            var me = this;
            me.$form.attrScan();
           var data;
            var modelString = "${model.id}";
            if (modelString != undefined && modelString != null && modelString.length > 0) {
                me.$form.Fields.fillValues({
               data={
                    id: "${model.id}",
                    dictName: "${model.dictName}",
                    chineseName: "${model.chineseName}",
@ -30,24 +30,28 @@
                    relationColValue: "${model.relationColValue}",
                    relationColExtend: "${model.relationColExtend}",
                    remark: "${model.remark}"
                });
                };
                me.actionUrl = "${contextRoot}/dict/updateDict";
            }
            resourceRestEditer.validator = new $.jValidation.Validation(resourceRestEditer.$form, {
                immediate: true, onSubmit: false,
                onElementValidateForAjax: function (elm) {
            $("#div_info_form").ligerAutoForm({
                data:data,
                validate:{
                    dictName:"required",
                    chineseName:"required",
                },
                }
            });
        },
        bindEvents: function () {
            var me = this;
            $("#btnSave").click(function () {
                if (!resourceRestEditer.validator.validate()) {
                if (!$("#div_info_form").ligerAutoForm("validate")) {
                    return;
                }
                var data = me.$form.Fields.getValues();
                var data = $("#div_info_form").ligerAutoForm("getData");
                $.ajax({ //ajax处理
                    type: "POST",
                    url: me.actionUrl,

+ 13 - 13
Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/system/dict/dictItemDialog.jsp

@ -4,31 +4,31 @@
<!--######机构管理页面 > 机构信息对话框模板页######-->
<div id="div_info_form" class="m-form-inline" style="padding-top:10px;" data-role-form>
    <div class="m-form-group">
        <label>所属字典:</label>
        <label><span class="red">*&nbsp;</span>所属字典:</label>
        <div class="m-form-control ">
                <input data-type="select" id="dictName" type="text" class="l-text-field required"name="dictName"/>
        <div class="m-form-control essential">
            <div class="l-text">
                <input data-type="select" id="dictName" type="text" class="l-text-field required" data-attr-scan="dictName"/>
            </div>
        </div>
    </div>
    <div class="m-form-group">
        <label>字典项代码:</label>
        <div class="m-form-control essential">
        <div class="m-form-control ">
            <div class="l-text">
                <input type="text" class="l-text-field required"  data-attr-scan="code"/>
                <input type="text" class="l-text-field required" name="code"/>
            </div>
        </div>
    </div>
    <div class="m-form-group">
        <label>字典项值:</label>
        <label><span class="red">*&nbsp;</span>字典项值:</label>
        <div class="m-form-control essential">
        <div class="m-form-control ">
            <div class="l-text">
                <input type="text" class="l-text-field required"   data-attr-scan="value"/>
                <input type="text" class="l-text-field required"  name="value"/>
            </div>
        </div>
    </div>
@ -38,7 +38,7 @@
        <div class="m-form-control">
            <div class="l-text">
                <input type="text" class="l-text-field" data-attr-scan="pyCode"/>
                <input type="text" class="l-text-field"name="pyCode"/>
            </div>
        </div>
    </div>
@ -48,14 +48,14 @@
        <div class="m-form-control ">
            <div class="l-text">
                <input type="text" class="l-text-field" class="l-text-field" data-attr-scan="sort">
                <input type="text" class="l-text-field" class="l-text-field"name="sort">
            </div>
        </div>
    </div>
    <!-- 隐藏字段 -->
    <div class="m-form-group" style="display: none;">
        <input data-attr-scan="id" hidden="hidden"/>
        <inputname="id" hidden="hidden"/>
    </div>
    <div class="m-form-bottom">
        <div id="btnCancel" class="l-button l-button-no">

+ 17 - 11
Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/system/dict/dictItemDialogJs.jsp

@ -5,9 +5,9 @@
    /* *************************** 模块初始化 ***************************** */
    var dictItemDialog = {
        $form: $("#div_info_form"),
        actionUrl:"${contextRoot}/dict/addDictItem",
        validator: null,
        $dictName:$("#dictName"),
        init: function () {
@ -18,35 +18,41 @@
            var me = this;
            this.$dictName.ligerComboBox({dict: true, dictName: "SYSTEM_DICT"});
            me.$form.attrScan();
           var data;
            var modelString = "${model.id}";
            if(modelString!=undefined && modelString!=null && modelString.length>0)
            {
                me.$form.Fields.fillValues({
               data={
                    id: "${model.id}",
                    dictName: "${model.dictName}",
                    code:"${model.code}",
                    value: "${model.value}",
                    pyCode: "${model.pyCode}",
                    sort: "${model.sort}"
                });
                };
                me.actionUrl = "${contextRoot}/dict/updateDictItem";
            }
            dictItemDialog.validator = new $.jValidation.Validation(dictItemDialog.$form, {
                immediate: true, onSubmit: false,
                onElementValidateForAjax: function (elm) {
            $("#div_info_form").ligerAutoForm({
                data:data,
                validate:{
                    dictName:"required",
                    value: {
                        required:true
                    }
                },
                }
            });
        },
        bindEvents: function () {
            var me = this;
            $("#btnSave").click(function () {
                if (!dictItemDialog.validator.validate()) {
                if (!$("#div_info_form").ligerAutoForm("validate")) {
                    return;
                }
                var data = me.$form.Fields.getValues();
                var data = $("#div_info_form").ligerAutoForm("getData");
                $.ajax({ //ajax处理
                    type: "POST",
                    url : me.actionUrl,

+ 14 - 17
Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/system/menu/editorMenu.jsp

@ -4,21 +4,21 @@
<!--######机构管理页面 > 机构信息对话框模板页######-->
<div id="div_info_form" class="m-form-inline" style="padding-top:10px;" data-role-form>
    <div class="m-form-group">
        <label>菜单代码:</label>
        <label><span class="red">*&nbsp;</span>菜单代码:</label>
        <div class="m-form-control essential">
        <div class="m-form-control">
            <div class="l-text">
                <input type="text" class="l-text-field required" data-attr-scan="code"/>
                <input type="text" class="l-text-field required" name="code"/>
            </div>
        </div>
    </div>
    <div class="m-form-group">
        <label>菜单名称:</label>
        <label><span class="red">*&nbsp;</span>菜单名称:</label>
        <div class="m-form-control essential">
        <div class="m-form-control">
            <div class="l-text">
                <input type="text" class="l-text-field required" data-attr-scan="name"/>
                <input type="text" class="l-text-field required" name="name"/>
            </div>
        </div>
    </div>
@ -28,7 +28,7 @@
        <div class="m-form-control">
            <div class="l-text">
                <input type="text" class="l-text-field" data-attr-scan="pyCode"/>
                <input type="text" class="l-text-field" name="pyCode"/>
            </div>
        </div>
    </div>
@ -37,17 +37,14 @@
        <label>父菜单:</label>
        <div class="m-form-control">
            <input type="text" data-type="select" id="pid" class="l-text-field" data-attr-scan="pid"/>
            <input type="text" data-type="select" id="pid" class="l-text-field" name="pid"/>
        </div>
    </div>
    <div class="m-form-group">
        <label>打开方式:</label>
        <div class="m-form-control ">
            <div class="l-text">
                <input id="openType" data-type="select" class="l-text-field" class="l-text-field"
                       data-attr-scan="openType">
            </div>
                <input id="openType" data-type="select" class="l-text-field" name="openType">
        </div>
    </div>
@ -56,7 +53,7 @@
        <div class="m-form-control ">
            <div class="l-text">
                <input type="text" class="l-text-field " class="l-text-field" data-attr-scan="url"/>
                <input type="text" class="l-text-field " class="l-text-field" name="url"/>
            </div>
        </div>
    </div>
@ -66,23 +63,23 @@
        <div class="m-form-control ">
            <div class="l-text">
                <input type="text" class="l-text-field" class="l-text-field" data-attr-scan="remark">
                <input type="text" class="l-text-field" class="l-text-field" name="remark">
            </div>
        </div>
    </div>
    <div class="m-form-group">
    <div >
        <label>排序:</label>
        <div class="m-form-control ">
            <div class="l-text">
                <input type="text" class="l-text-field" class="l-text-field" data-attr-scan="sort">
                <input type="text" class="l-text-field" class="l-text-field" name="sort">
            </div>
        </div>
    </div>
    <!-- 隐藏字段 -->
    <div class="m-form-group" style="display: none;">
        <input data-attr-scan="id" hidden="hidden"/>
        <input name="id" hidden="hidden"/>
    </div>
    <div class="m-form-bottom">
        <div id="btnCancel" class="l-button l-button-no">

+ 21 - 11
Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/system/menu/editorMenuJs.jsp

@ -6,9 +6,9 @@
    /* *************************** 模块初始化 ***************************** */
    var editorMenu = {
        //form
        $form: $("#div_info_form"),
        //$form: $("#div_info_form"),
        actionUrl:"${contextRoot}/menu/addMenu",
        validator: null,
        //validator: null,
        init: function () {
            this.initForm();
@ -19,11 +19,13 @@
            $("#pid").ligerComboBox({dict:true,dictName:"SYSTEM_MENU_PID"});
            $("#openType").ligerComboBox({dict:true,dictName:"SYSTEM_MENU_OPENTYPE"});
            me.$form.attrScan();
           // me.$form.attrScan();
            var modelString = "${model.id}";
            var data;
            if(modelString!=undefined && modelString!=null && modelString.length>0)
            {
                me.$form.Fields.fillValues({
                data={
                    id: "${model.id}",
                    code: "${model.code}",
                    sort:"${model.sort}",
@ -33,24 +35,32 @@
                    pid: "${model.pid}",
                    url: "${model.url}",
                    remark: "${model.remark}"
                });
                };
                me.actionUrl = "${contextRoot}/menu/updateMenu";
            }
            editorMenu.validator = new $.jValidation.Validation(editorMenu.$form, {
                immediate: true, onSubmit: false,
                onElementValidateForAjax: function (elm) {
            $("#div_info_form").ligerAutoForm({
                data:data,
                validate:{
                    code:"required",
                    name: {
                        required:true
                    }
                },
                message:{
                    code:"代码不能为空!",
                    name:"名称不能为空!"
                }
            });
        },
        bindEvents: function () {
            var me = this;
            $("#btnSave").click(function () {
                if (!editorMenu.validator.validate()) {
                if(!$("#div_info_form").ligerAutoForm("validate"))
                {
                    return;
                }
                var data = me.$form.Fields.getValues();
                var data = $("#div_info_form").ligerAutoForm("getData");
                $.ajax({ //ajax处理
                    type: "POST",
                    url : me.actionUrl,

+ 13 - 13
Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/system/menuaction/editorMenuAction.jsp

@ -4,30 +4,30 @@
<!--######机构管理页面 > 机构信息对话框模板页######-->
<div id="div_info_form" class="m-form-inline" style="padding-top:10px;" data-role-form>
    <div class="m-form-group">
        <label>菜单按钮名称:</label>
        <label><span class="red">*&nbsp;</span>菜单按钮名称:</label>
        <div class="m-form-control essential">
        <div class="m-form-control">
            <div class="l-text">
                <input type="text" class="l-text-field required" placeholder="请输入菜单按钮名称" data-attr-scan="name"/>
                <input type="text" class="l-text-field required" placeholder="请输入菜单按钮名称" name="name"/>
            </div>
        </div>
    </div>
    <div class="m-form-group">
        <label>所属菜单:</label>
        <label><span class="red">*&nbsp;</span>所属菜单:</label>
        <div class="m-form-control essential">
            <div class="l-text">
                <input type="text" data-type="select" id="pid" class="l-text-field required" data-attr-scan="menuId"/>
            </div>
        <div class="m-form-control ">
                <input type="text" data-type="select" id="pid" class="l-text-field required" name="menuId"/>
           
        </div>
    </div>
    <div class="m-form-group">
        <label>url:</label>
        <label><span class="red">*&nbsp;</span>url:</label>
        <div class="m-form-control essential">
        <div class="m-form-control ">
            <div class="l-text">
                <input type="text" class="l-text-field required" data-attr-scan="url"/>
                <input type="text" class="l-text-field required" name="url"/>
            </div>
        </div>
    </div>
@ -37,14 +37,14 @@
        <div class="m-form-control ">
            <div class="l-text">
                <input type="text" class="l-text-field" class="l-text-field" data-attr-scan="remark">
                <input type="text" class="l-text-field" class="l-text-field" name="remark">
            </div>
        </div>
    </div>
    <!-- 隐藏字段 -->
    <div class="m-form-group" style="display: none;">
        <input data-attr-scan="id" hidden="hidden"/>
        <input name="id" hidden="hidden"/>
    </div>
    <div class="m-form-bottom">
        <div id="btnCancel" class="l-button l-button-no">

+ 17 - 10
Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/system/menuaction/editorMenuActionJs.jsp

@ -6,7 +6,7 @@
    /* *************************** 模块初始化 ***************************** */
    var editorMenuAction = {
        //form
        $form: $("#div_info_form"),
       // $form: $("#div_info_form"),
        validator: null,
        actionUrl: "${contextRoot}/menu/menuAction/addMenuAction",
        init: function () {
@ -18,33 +18,40 @@
            var me = this;
            $("#pid").ligerComboBox({dict: true, dictName: "SYSTEM_MENU_PID"});
            me.$form.attrScan();
            //me.$form.attrScan();
            var modelString = "${model.id}";
            var data;
            if (modelString != undefined && modelString != null && modelString.length > 0) {
                me.$form.Fields.fillValues({
                data={
                    id: "${model.id}",
                    name: "${model.name}",
                    menuId: "${model.menuId}",
                    url: "${model.url}",
                    remark: "${model.remark}"
                });
                };
                me.actionUrl = "${contextRoot}/menu/menuAction/updateMenuAction";
            }
            editorMenuAction.validator = new $.jValidation.Validation(editorMenuAction.$form, {
                immediate: true, onSubmit: false,
                onElementValidateForAjax: function (elm) {
            $("#div_info_form").ligerAutoForm({
                data:data,
                validate:{
                    url:"required",
                    menuId:"required",
                    name:"required",
                },
                }
            });
        },
        bindEvents: function () {
            var me = this;
            $("#btnSave").click(function () {
                if (!editorMenuAction.validator.validate()) {
                if (!$("#div_info_form").ligerAutoForm("validate")) {
                    return;
                }
                var data = me.$form.Fields.getValues();
                var data = $("#div_info_form").ligerAutoForm("getData");
                $.ajax({ //ajax处理
                    type: "POST",
                    url: me.actionUrl,

+ 1 - 1
Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/system/menuaction/menuActionJs.jsp

@ -107,7 +107,7 @@
            }
            me.dialog = $.ligerDialog.open({
                height: 280,
                height: 300,
                width: 600,
                title: title,
                url: '${contextRoot}/menu/menuAction/editorMenuAction',

+ 5 - 5
Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/system/role/editorRole.jsp

@ -5,11 +5,11 @@
<div id="div_info_form" class="m-form-inline" style="padding-top:10px;" data-role-form>
    <div class="m-form-group">
        <label>角色名称:</label>
        <label><span class="red">*&nbsp;</span>角色名称:</label>
        <div class="m-form-control essential">
        <div class="m-form-control">
            <div class="l-text">
                <input type="text" class="l-text-field required" placeholder="请输入角色名称" data-attr-scan="name"/>
                <input type="text" class="l-text-field required" placeholder="请输入角色名称" name="name"/>
            </div>
        </div>
    </div>
@ -19,14 +19,14 @@
        <div class="m-form-control ">
            <div class="l-text">
                <input type="text" class="l-text-field" class="l-text-field" data-attr-scan="remark">
                <input type="text" class="l-text-field" class="l-text-field" name="remark">
            </div>
        </div>
    </div>
    <!-- 隐藏字段 -->
    <div class="m-form-group" style="display: none;">
        <input data-attr-scan="id" hidden="hidden"/>
        <input name="id" hidden="hidden"/>
    </div>
    <div class="m-form-bottom">
        <div id="btnCancel" class="l-button l-button-no">

+ 17 - 10
Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/system/role/editorRoleJs.jsp

@ -6,9 +6,9 @@
    /* *************************** 模块初始化 ***************************** */
    var editorRole = {
        //form
        $form: $("#div_info_form"),
        //$form: $("#div_info_form"),
        actionUrl: "${contextRoot}/role/addRole",
        validator: null,
        //validator: null,
        init: function () {
            this.initForm();
@ -16,31 +16,38 @@
        },
        initForm: function () {
            var me = this;
            me.$form.attrScan();
           // me.$form.attrScan();
            var modelString = "${model.id}";
            var data;
            if (modelString != undefined && modelString != null && modelString.length > 0) {
                me.$form.Fields.fillValues({
                data={
                    id: "${model.id}",
                    name: "${model.name}",
                    remark: "${model.remark}",
                });
                };
                me.actionUrl = "${contextRoot}/role/updateRole";
            }
            editorRole.validator = new $.jValidation.Validation(editorRole.$form, {
                immediate: true, onSubmit: false,
                onElementValidateForAjax: function (elm) {
            $("#div_info_form").ligerAutoForm({
                data:data,
                validate:{
                    name: {
                        required:true
                    }
                },
                message:{
                    name:"名称不能为空!"
                }
            });
        },
        bindEvents: function () {
            var me = this;
            $("#btnSave").click(function () {
                if (!editorRole.validator.validate()) {
                if (!$("#div_info_form").ligerAutoForm("validate")) {
                    return;
                }
                var data = me.$form.Fields.getValues();
                var data = $("#div_info_form").ligerAutoForm("getData");
                $.ajax({ //ajax处理
                    type: "POST",
                    url: me.actionUrl,

+ 8 - 8
Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/system/systemparam/editorParam.jsp

@ -5,20 +5,20 @@
<div id="div_info_form" class="m-form-inline" style="padding-top:10px;" data-role-form>
    <div class="m-form-group">
        <label>参数名:</label>
        <label><span class="red">*&nbsp;</span>参数名:</label>
        <div class="m-form-control essential">
        <div class="m-form-control ">
            <div class="l-text">
                <input type="text" class="l-text-field required" placeholder="请输入参数名称" data-attr-scan="paramKey"/>
                <input type="text" class="l-text-field required" placeholder="请输入参数名称" name="paramKey"/>
            </div>
        </div>
    </div>
    <div class="m-form-group">
        <label>参数值:</label>
        <label><span class="red">*&nbsp;</span>参数值:</label>
        <div class="m-form-control essential">
        <div class="m-form-control">
            <div class="l-text">
                <input type="text" class="l-text-field required" placeholder="请输入参数值" data-attr-scan="paramValue"/>
                <input type="text" class="l-text-field required" placeholder="请输入参数值" name="paramValue"/>
            </div>
        </div>
    </div>
@ -27,14 +27,14 @@
        <div class="m-form-control ">
            <div class="l-text">
                <input type="text" class="l-text-field" class="l-text-field" data-attr-scan="remark">
                <input type="text" class="l-text-field" class="l-text-field" name="remark">
            </div>
        </div>
    </div>
    <!-- 隐藏字段 -->
    <div class="m-form-group" style="display: none;">
        <input data-attr-scan="id" hidden="hidden"/>
        <input name="id" hidden="hidden"/>
    </div>
    <div class="m-form-bottom">
        <div id="btnCancel" class="l-button l-button-no">

+ 16 - 11
Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/system/systemparam/editorParamJs.jsp

@ -1,14 +1,12 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="utf-8" %>
<%@include file="/WEB-INF/ehr/commons/jsp/commonInclude.jsp" %>
<script type="text/javascript">
    /* *************************** 模块初始化 ***************************** */
    var editorParam = {
        //form
        $form: $("#div_info_form"),
        actionUrl:"${contextRoot}/param/addParam",
        validator: null,
        init: function () {
            this.initForm();
@ -16,33 +14,40 @@
        },
        initForm: function () {
            var me = this;
            me.$form.attrScan();
           var data;
            var modelString = "${model.id}";
            if(modelString!=undefined && modelString!=null && modelString.length>0)
            {
                me.$form.Fields.fillValues({
               data={
                    id: "${model.id}",
                    paramKey: "${model.paramKey}",
                    paramValue: "${model.paramValue}",
                    remark: "${model.remark}",
                });
                };
                me.actionUrl = "${contextRoot}/param/updateParam";
            }
            editorParam.validator =  new $.jValidation.Validation(editorParam.$form, {immediate: true, onSubmit: false,
                onElementValidateForAjax:function(elm){
            $("#div_info_form").ligerAutoForm({
                data:data,
                validate:{
                    paramKey:"required",
                    paramValue: {
                        required:true
                    }
                },
                }
            });
        },
        bindEvents: function () {
            var me = this;
            $("#btnSave").click(function () {
                if(!editorParam.validator.validate()){
                if(!$("#div_info_form").ligerAutoForm("validate")){
                    return;
                }
                var data = me.$form.Fields.getValues();
                var data = $("#div_info_form").ligerAutoForm("getData");
                $.ajax({ //ajax处理
                    type: "POST",
                    url : me.actionUrl,

+ 20 - 20
Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/system/user/editorUser.jsp

@ -6,29 +6,29 @@
<div id="div_info_form" class="m-form-inline" style="padding-top:10px;" data-role-form>
    <div class="m-form-group">
        <label>账号:</label>
        <label><span class="red">*&nbsp;</span>账号:</label>
        <div class="m-form-control essential">
        <div class="m-form-control ">
            <div class="l-text">
                <input type="text"  <%=StringUtils.isEmpty(request.getParameter("userId"))? "":"disabled"%>  class="l-text-field required" placeholder="请输入角色名称" data-attr-scan="loginCode"/>
                <input type="text"  <%=StringUtils.isEmpty(request.getParameter("userId"))? "":"disabled"%>  class="l-text-field required" placeholder="请输入角色名称" name="loginCode"/>
            </div>
        </div>
    </div>
        <div class="m-form-group " <%=!StringUtils.isEmpty(request.getParameter("userId"))? "style=\"display: none\"":""%> >
            <label>密码:</label>
            <label><span class="red">*&nbsp;</span>密码:</label>
            <div class="m-form-control essential">
            <div class="m-form-control ">
                <div class="l-text">
                    <input type="password" class="l-text-field required" data-attr-scan="password">
                    <input type="password" class="l-text-field required" name="password">
                </div>
            </div>
        </div>
        <div class="m-form-group " <%=!StringUtils.isEmpty(request.getParameter("userId"))? "style=\"display: none\"":""%>  >
            <label>确认密码:</label>
            <label><span class="red">*&nbsp;</span>确认密码:</label>
            <div class="m-form-control essential">
            <div class="m-form-control ">
                <div class="l-text">
                    <input type="password" class="l-text-field required" data-attr-scan="passwordTwo">
                    <input type="password" class="l-text-field required" name="passwordTwo">
                </div>
            </div>
        </div>
@ -37,7 +37,7 @@
        <div class="m-form-control ">
            <div class="l-text">
                <input type="text" class="l-text-field" class="l-text-field" data-attr-scan="userName">
                <input type="text" class="l-text-field" class="l-text-field" name="userName">
            </div>
        </div>
    </div>
@ -45,8 +45,8 @@
        <label>性别:</label>
        <div class="u-checkbox-wrap m-form-control ">
            <input type="radio" value="1" name="inp_field_is_null" data-attr-scan="userSex">是
            <input type="radio" value="2" name="inp_field_is_null" data-attr-scan="userSex">否
            <input type="radio" value="1" name="inp_field_is_null" name="userSex">男
            <input type="radio" value="2" name="inp_field_is_null" name="userSex">女
        </div>
    </div>
@ -54,9 +54,9 @@
        <label>出生日期:</label>
        <div class="m-form-control ">
            <div class="l-text">
                <input id="userBirthday" placeholder="输入日期" type="text" class="l-text-field" class="l-text-field" data-attr-scan="userBirthday">
            </div>
                <input id="userBirthday" placeholder="输入日期" type="text" class="l-text-field" class="l-text-field" name="userBirthday">
        </div>
    </div>
    <div class="m-form-group">
@ -64,7 +64,7 @@
        <div class="m-form-control ">
            <div class="l-text">
                <input type="text" class="l-text-field" class="l-text-field" data-attr-scan="userMobile">
                <input type="text" class="l-text-field" class="l-text-field" name="userMobile">
            </div>
        </div>
    </div>
@ -74,7 +74,7 @@
        <div class="m-form-control ">
            <div class="l-text">
                <input type="text" class="l-text-field" class="l-text-field" data-attr-scan="userQq">
                <input type="text" class="l-text-field" class="l-text-field" name="userQq">
            </div>
        </div>
    </div>
@ -83,7 +83,7 @@
        <div class="m-form-control ">
            <div class="l-text">
                <input type="text" class="l-text-field" class="l-text-field" data-attr-scan="userWechat">
                <input type="text" class="l-text-field" class="l-text-field" name="userWechat">
            </div>
        </div>
    </div>
@ -92,13 +92,13 @@
        <div class="m-form-control ">
            <div class="l-text">
                <input type="text" class="l-text-field" class="l-text-field" data-attr-scan="userEmail">
                <input type="text" class="l-text-field" class="l-text-field" name="userEmail">
            </div>
        </div>
    </div>
    <!-- 隐藏字段 -->
    <div class="m-form-group" style="display: none;">
        <input data-attr-scan="id" hidden="hidden"/>
        <input name="id" hidden="hidden"/>
    </div>
    <div class="m-form-bottom">
        <div id="btnCancel" class="l-button l-button-no">

+ 19 - 12
Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/system/user/editorUserJs.jsp

@ -6,9 +6,9 @@
    /* *************************** 模块初始化 ***************************** */
    var editorUser = {
        //form
        $form: $("#div_info_form"),
        //$form: $("#div_info_form"),
        actionUrl: "${contextRoot}/user/addUser",
        validator: null,
       // validator: null,
        init: function () {
            this.initForm();
@ -17,11 +17,11 @@
        initForm: function () {
            var me = this;
            $("#userBirthday").ligerDateEditor({format: "yyyy-MM-dd"});
            me.$form.attrScan();
           // me.$form.attrScan();
            var modelString = "${model.id}";
            var data;
            if (modelString != undefined && modelString != null && modelString.length > 0) {
                me.$form.Fields.fillValues({
                data={
                    id: "${model.id}",
                    loginCode: "${model.loginCode}",
                    userName: "${model.userName}",
@ -31,24 +31,31 @@
                    userQq: "${model.userQq}",
                    userWechat: "${model.userWechat}",
                    userEmail: "${model.userEmail}"
                });
                };
                me.actionUrl = "${contextRoot}/user/updateUser";
            } else {
            }
            editorUser.validator = new $.jValidation.Validation(editorUser.$form, {
                immediate: true, onSubmit: false,
                onElementValidateForAjax: function (elm) {
            $("#div_info_form").ligerAutoForm({
                data:data,
                validate:{
                    loginCode:"required",
                    password:"required",
                    passwordTwo:"required",
                },
                message:{
                    name:"名称不能为空!"
                }
            });
        },
        bindEvents: function () {
            var me = this;
            $("#btnSave").click(function () {
                if (!editorUser.validator.validate()) {
                if (!$("#div_info_form").ligerAutoForm("validate")) {
                    return;
                }
                var data = me.$form.Fields.getValues();
                var data = $("#div_info_form").ligerAutoForm("getData");
                $.ajax({ //ajax处理
                    type: "POST",
                    url: me.actionUrl,

+ 1 - 1
Hos-resource/src/main/webapp/develop/common/base.css

@ -83,7 +83,7 @@ scrollbar-track-color:#F3F3F3; /!*滑道*!/
.m-form-mult-control-panel{border: 1px solid #e1e1e1;width:200px;background: #fff;height:40px;display: none}
.m-form-mult-control-panel .l-text-wrapper{float:left;margin-top:5px;}
.m-form-mult-control-panel .m-btn-ok,.m-form-mult-control-panel .m-btn-cancle{width:25px;height:40px;}
.m-from-error .l-text,.m-from-error .l-textbox{border:#FF7777 1px solid}
.m-from-error .l-text,.m-from-error .l-textbox{border:#FF7777 1px solid;float:left}
.m-from-error-msg{float:right;height:32px;width:25px;background:url(../images/index/error_icon.png) center no-repeat;cursor: pointer}
/** 按钮样式 **/