瀏覽代碼

冲突提交

demon 9 年之前
父節點
當前提交
22f1679824
共有 17 個文件被更改,包括 0 次插入1433 次删除
  1. 0 211
      Hos-resource/src/main/java/com/yihu/ehr/standard/controller/AdapterController.java
  2. 0 92
      Hos-resource/src/main/java/com/yihu/ehr/standard/controller/SchemeVersionController.java
  3. 0 42
      Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/standard/adapterplan/dataset/updateDataset.jsp
  4. 0 31
      Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/standard/adapterplan/dataset/updateDatasetCss.jsp
  5. 0 145
      Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/standard/adapterplan/dataset/updateDatasetJs.jsp
  6. 0 62
      Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/standard/adapterplan/dataset/updateMetadata.jsp
  7. 0 31
      Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/standard/adapterplan/dataset/updateMetadataCss.jsp
  8. 0 145
      Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/standard/adapterplan/dataset/updateMetadataJs.jsp
  9. 0 62
      Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/standard/adapterplan/datasource/updateDatasource.jsp
  10. 0 31
      Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/standard/adapterplan/datasource/updateDatasourceCss.jsp
  11. 0 145
      Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/standard/adapterplan/datasource/updateDatasourceJs.jsp
  12. 0 42
      Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/standard/adapterplan/dict/updateDict.jsp
  13. 0 31
      Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/standard/adapterplan/dict/updateDictCss.jsp
  14. 0 42
      Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/standard/adapterplan/dict/updateDictItem.jsp
  15. 0 31
      Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/standard/adapterplan/dict/updateDictItemCss.jsp
  16. 0 145
      Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/standard/adapterplan/dict/updateDictItemJs.jsp
  17. 0 145
      Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/standard/adapterplan/dict/updateDictJs.jsp

+ 0 - 211
Hos-resource/src/main/java/com/yihu/ehr/standard/controller/AdapterController.java

@ -1,211 +0,0 @@
package com.yihu.ehr.standard.controller;
import com.yihu.ehr.framework.constrant.ErrorCode;
import com.yihu.ehr.framework.model.DictItem;
import com.yihu.ehr.framework.model.DictionaryResult;
import com.yihu.ehr.framework.util.controller.BaseController;
import com.yihu.ehr.standard.model.adapter.AdapterSchemeModel;
import com.yihu.ehr.standard.model.standard.StandardModel;
import com.yihu.ehr.standard.model.standard.StandardVersionModel;
import com.yihu.ehr.standard.service.adapter.AdapterSchemeService;
import com.yihu.ehr.standard.service.standard.StandardService;
import com.yihu.ehr.standard.service.standard.StandardVersionService;
import com.yihu.ehr.standard.service.standard.StdPublisherService;
import com.yihu.ehr.system.model.SystemOrganization;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;
@RestController("AdapterController")
@RequestMapping("/adapter")
@Api(protocols = "https", value = "AdapterController", description = "适配管理", tags = {"适配"})
public class AdapterController extends BaseController {
    @Resource(name = AdapterSchemeService.BEAN_ID)
    private AdapterSchemeService adapterSchemeService;
    @Resource(name = StandardService.BEAN_ID)
    private StandardService standardService;
    @Resource(name = StandardVersionService.BEAN_ID)
    private StandardVersionService standardVersionService;
    @Resource(name = StdPublisherService.BEAN_ID)
    private StdPublisherService stdPublisherService;
    /**
     * 查询适配方案首页信息(get)
     * @param condition
     * @return
     * @throws Exception
     */
    @RequestMapping(value = "/searchSchemesList")
    @ApiOperation(value = "获取适配方案列表", response = AdapterSchemeModel.class, responseContainer = "List", produces = "application/json", notes = "获取适配方案列表")
    public List<AdapterSchemeModel> getList(
            @ApiParam(name = "condition", value = "Search param,Must be json")
            @RequestParam(value = "condition", required = false) String condition,
            @ApiParam(name = "order", value = "Order param,Must be json.ascending:asc,descending:desc")
            @RequestParam(value = "order", required = false) String order,
            @ApiParam(name = "rows", value = "Limit the size of result set. Must be an integer")
            @RequestParam(value = "rows", required = false) Integer rows,
            @ApiParam(name = "page", value = "Start position of result set. Must be an integer")
            @RequestParam(value = "page", required = false) Integer page) {
        return adapterSchemeService.getEntityList(AdapterSchemeModel.class, condition, order, rows, page, ErrorCode.GetSchemeListFailed);
    }
    /**
     * 根据适配ID获取适配方案信息(get)
     * @param schemeId
     * @return
     * @throws Exception
     */
    @RequestMapping(value = "/getForSchemeId")
    @ApiOperation(value = "获取适配方案", response = AdapterSchemeModel.class, produces = "application/json", notes = "获取适配方案")
    public AdapterSchemeModel get(
            @ApiParam(name = "schemeId", value = "标准版本ID")
            @RequestParam(value = "schemeId") Integer schemeId) {
        return adapterSchemeService.get(schemeId);
    }
    /**
     * 修改适配(PUT)
     * @param scheme
     * @return
     * @throws Exception
     */
    @RequestMapping("/updateScheme")
    @ApiOperation(value = "修改适配方案", response = AdapterSchemeModel.class, produces = "application/json", notes = "修改适配方案")
    public AdapterSchemeModel modify(
            @ApiParam(name = "scheme", value = "适配方案")
            @RequestParam(value = "scheme") String scheme) {
        return adapterSchemeService.update(scheme);
    }
    /**
     * 新增适配(POST)
     * @param scheme
     * @return
     * @throws Exception
     */
    @RequestMapping(value = "/addScheme")
    @ApiOperation(value = "保存适配方案", response = AdapterSchemeModel.class, produces = "application/json", notes = "保存适配方案")
    public AdapterSchemeModel add(
            @ApiParam(name = "scheme", value = "适配方案信息")
            @RequestParam(value = "scheme") String scheme) {
        return adapterSchemeService.add(scheme);
    }
    /**
     * 删除适配(DELETE)
     * @param  schemeId
     * @return
     * @throws Exception
     */
    @RequestMapping(value = "/deleteScheme")
    @ApiOperation(value = "删除适配方案", produces = "application/json", notes = "删除适配方案")
    public void delete(
            @ApiParam(name = "schemeId", value = "适配方案ID")
            @RequestParam(value = "schemeId") Integer schemeId) {
        adapterSchemeService.delete(schemeId);
    }
    /**
     * 获取平台标准名称/应用标准名称列表
     * @param condition
     * @return
     * @throws Exception
     */
    @RequestMapping(value = "/getStandards")
    @ApiOperation(value = "获取标准列表", response = DictionaryResult.class, produces = "application/json", notes = "获取标准列表")
    public DictionaryResult getStandardList(
            @ApiParam(name = "condition", value = "Must be Json,其中type为区分集成与应用标准")
            @RequestParam(value = "condition", required = false) String condition,
            @ApiParam(name = "order", value = "Must be Json")
            @RequestParam(value = "order", required = false) String order,
            @ApiParam(name = "rows", value = "Limit the size of result set. Must be an integer")
            @RequestParam(value = "rows", required = false) Integer rows,
            @ApiParam(name = "page", value = "Start position of result set. Must be an integer")
            @RequestParam(value = "page", required = false) Integer page) {
        List<StandardModel> standardModelList = standardService.getList(condition, order, rows, page);
        DictionaryResult dictionaryResult = new DictionaryResult();
        List<DictItem> detailModelList = new ArrayList<DictItem>();
        for(StandardModel standardModel : standardModelList){
            DictItem items = new DictItem();
            Integer id = standardModel.getId();
            items.setCode(id.toString());
            items.setValue(standardModel.getName());
            detailModelList.add(items);
        }
        dictionaryResult.setDetailModelList(detailModelList);
        return dictionaryResult;
    }
    /**
     * 获取平台标准版本/应用标准版本列表
     * @param standardId
     * @return
     * @throws Exception
     */
    @RequestMapping(value = "/getVersions")
    @ApiOperation(value = "获取标准版本列表", response = DictionaryResult.class, produces = "application/json", notes = "获取标准版本列表")
    public DictionaryResult getVersionList(
            @ApiParam(name = "standardId", value = "标准ID")
            @RequestParam(value = "standardId") Integer standardId,
            @ApiParam(name = "condition", value = "Must be Json")
            @RequestParam(value = "condition", required = false) String condition,
            @ApiParam(name = "order", value = "Must be Json")
            @RequestParam(value = "order", required = false) String order,
            @ApiParam(name = "rows", value = "Limit the size of result set. Must be an integer")
            @RequestParam(value = "rows", required = false) Integer rows,
            @ApiParam(name = "page", value = "Start position of result set. Must be an integer")
            @RequestParam(value = "page", required = false) Integer page) {
        List<StandardVersionModel> standardVersionModelList = standardVersionService.getVersionList(standardId, condition, order, rows, page);
        DictionaryResult dictionaryResult = new DictionaryResult();
        List<DictItem> detailModelList = new ArrayList<DictItem>();
        for(StandardVersionModel standardVersionModel : standardVersionModelList){
            DictItem items = new DictItem();
            String id = standardVersionModel.getVersion();
            String name = standardVersionModel.getName();
            items.setCode(id.toString());
            items.setValue(name);
            detailModelList.add(items);
        }
        dictionaryResult.setDetailModelList(detailModelList);
        return dictionaryResult;
    }
    /**
     * 获取发布机构名称列表
     * @return
     * @throws Exception
     */
    @RequestMapping(value = "/getPublishers")
    @ApiOperation(value = "获取发布机构列表", response = DictionaryResult.class, produces = "application/json", notes = "获取发布机构列表")
    public DictionaryResult getPublishers(
            @ApiParam(name = "condition", value = "Must be Json")
            @RequestParam(value = "condition", required = false) String condition,
            @ApiParam(name = "order", value = "Must be Json")
            @RequestParam(value = "order", required = false) String order,
            @ApiParam(name = "rows", value = "Limit the size of result set. Must be an integer")
            @RequestParam(value = "rows", required = false) Integer rows,
            @ApiParam(name = "page", value = "Start position of result set. Must be an integer")
            @RequestParam(value = "page", required = false) Integer page) {
        List<SystemOrganization> stdPublisherModelList = stdPublisherService.getList(condition, order, rows, page);
        DictionaryResult dictionaryResult = new DictionaryResult();
        List<DictItem> detailModelList = new ArrayList<DictItem>();
        for(SystemOrganization systemOrganization : stdPublisherModelList){
            DictItem items = new DictItem();
            String id = systemOrganization.getCode();
            String name = systemOrganization.getFullName();
            items.setCode(id.toString());
            items.setValue(name);
            detailModelList.add(items);
        }
        dictionaryResult.setDetailModelList(detailModelList);
        return dictionaryResult;
    }
}

+ 0 - 92
Hos-resource/src/main/java/com/yihu/ehr/standard/controller/SchemeVersionController.java

@ -1,92 +0,0 @@
package com.yihu.ehr.standard.controller;
import com.yihu.ehr.framework.util.controller.BaseController;
import com.yihu.ehr.standard.model.adapter.AdapterSchemeVersionModel;
import com.yihu.ehr.standard.service.adapter.AdapterSchemeVersionService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
@RestController("SchemeVersionController")
@RequestMapping("/adapterCenter")
@Api(protocols = "https", value = "SchemeVersionController", description = "适配版本管理", tags = {"适配版本"})
public class SchemeVersionController extends BaseController {
    @Resource(name = AdapterSchemeVersionService.BEAN_ID)
    private AdapterSchemeVersionService adapterSchemeVersion;
    /**
     * 根据版本id获取适配方案信息(get)
     * @param versionId
     * @return
     * @throws Exception
     */
    @RequestMapping("/getForVersionId")
    @ApiOperation(value = "获取适配版本", response = AdapterSchemeVersionModel.class, produces = "application/json", notes = "获取适配版本")
    public AdapterSchemeVersionModel get(
            @ApiParam(name = "versionId", value = "适配版本ID")
            @RequestParam(value = "versionId") Integer versionId) {
        return adapterSchemeVersion.get(versionId);
    }
    /**
     * 新增版本(post)
     * @param version
     * @return
     * @throws Exception
     */
    @RequestMapping("/addVersion")
    @ApiOperation(value = "保存适配版本", response = AdapterSchemeVersionModel.class, produces = "application/json", notes = "保存适配版本")
    public AdapterSchemeVersionModel add(
            @ApiParam(name = "version", value = "适配版本信息")
            @RequestParam(value = "version") String version) {
        return adapterSchemeVersion.add(version);
    }
    /**
     * 修改版本(put)
     * @param version
     * @return
     * @throws Exception
     */
    @RequestMapping("/updateVersion")
    @ApiOperation(value = "修改适配版本", response = AdapterSchemeVersionModel.class, produces = "application/json", notes = "修改适配版本")
    public AdapterSchemeVersionModel modify(
            @ApiParam(name = "version", value = "标准版本")
            @RequestParam(value = "version") String version) {
        return adapterSchemeVersion.update(version);
    }
    /**
     * 发布版本(put)
     * @param versionId
     * @return
     * @throws Exception
     */
    @RequestMapping("/publishVersion")
    @ApiOperation(value = "发布适配版本", response = AdapterSchemeVersionModel.class, produces = "application/json", notes = "发布适配版本")
    public AdapterSchemeVersionModel publish(
            @ApiParam(name = "versionId", value = "适配版本ID")
            @RequestParam(value = "versionId") Integer versionId,
            @ApiParam(name = "publisher", value = "发布者")
            @RequestParam(value = "publisher", required = false) String publisher) {
        return adapterSchemeVersion.publish(versionId, publisher);
    }
    /**
     * 删除版本(put)
     * @param versionId
     * @return
     * @throws Exception
     */
    @RequestMapping("/deleteVersion")
    @ApiOperation(value = "删除版本", produces = "application/json", notes = "删除版本")
    public void delete(
            @ApiParam(name = "versionId", value = "标准版本ID")
            @RequestParam(value = "versionId") Integer versionId) {
        adapterSchemeVersion.delete(versionId);
    }
}

+ 0 - 42
Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/standard/adapterplan/dataset/updateDataset.jsp

@ -1,42 +0,0 @@
<%--
  Created by IntelliJ IDEA.
  User: llh
  Date: 2016/1/7
  Time: 14:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="utf-8"%>
<%@include file="/WEB-INF/ehr/commons/jsp/commonInclude.jsp" %>
<div id="div_dataset_info_form" data-role-form class="m-form-inline f-mt20">
  <div class="m-form-group">
    <label>数据元编码:</label>
    <div class="l-text-wrapper m-form-control essential">
      <input type="text" class="f-w240 " id="txt_code" data-attr-scan="code">
    </div>
  </div>
  <div class="m-form-group">
    <label>数据源名称:</label>
    <div class="l-text-wrapper m-form-control essential">
      <input type="text" class="required f-w240 " id="txt_name" data-attr-scan="name">
    </div>
  </div>
  <div class="m-form-group">
    <label>数据集说明:</label>
    <div class="m-form-control">
      <textarea rows="3" id="txt_description" style="width: 240px;height: 60px;" data-attr-scan="description"  class="useTitle"></textarea>
    </div>
  </div>
  <div class="m-form-control pane-attribute-toolbar">
    <div class="l-button u-btn u-btn-primary u-btn-large f-ib f-vam" id="btn_save">
      <span>保存</span>
    </div>
    <div class="l-button u-btn u-btn-cancel u-btn-large f-ib f-vam close-toolbar" id="btn_close">
      <span>关闭</span>
    </div>
  </div>
  <input type="hidden" id="hdId" value=""/>
  <input type="hidden" id="hd_url" value="${contextRoot}"/>
</div>

+ 0 - 31
Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/standard/adapterplan/dataset/updateDatasetCss.jsp

@ -1,31 +0,0 @@
<%--
  Created by IntelliJ IDEA.
  User: llh
  Date: 2016/1/7
  Time: 14:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="utf-8"%>
<%@include file="/WEB-INF/ehr/commons/jsp/commonInclude.jsp" %>
<style type="text/css">
  .pane-attribute-toolbar{
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    padding: 6px 0 4px;
    background-color: #fff;
    border-top: 1px solid #ccc;
    text-align: right;
  }
  .close-toolbar{
    margin-right: 20px;
  }
  input{
    height: 28px;
    width: 240px;
  }
</style>

+ 0 - 145
Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/standard/adapterplan/dataset/updateDatasetJs.jsp

@ -1,145 +0,0 @@
<%--
  Created by IntelliJ IDEA.
  User: llh
  Date: 2016/1/7
  Time: 14:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="utf-8"%>
<%@include file="/WEB-INF/ehr/commons/jsp/commonInclude.jsp" %>
<script >
  (function ($, win) {
      var standard = {};
      //集成标准版本处理
      standard.dataset = {
        type_form: $("#div_dataset_info_form"),
        validator: null,
        baseversion_select: null,
        init: function () {
          var id = $.Util.getUrlQueryString('id');
          var name = $.Util.getUrlQueryString('name');
          var version = $.Util.getUrlQueryString('version');
          var description = $.Util.getUrlQueryString('description');
          $("#txt_Name").text(name);
          $("#txt_version").val(version);
          $("#txt_description").val(description);
          $("#hdId").val(id);
          this.getStandardVersionInfo();
          this.event();
          this.validator =  new $.jValidation.Validation(this.type_form, {immediate: true, onSubmit: false,
            onElementValidateForAjax:function(elm){
            }
          });
        },
        getBaseVersionList: function (initValue, initText) {//获取基础版本信息
          //set.elementAttr.standard_select = $("#baseversion_select").ligerComboBox({
          //    url: set.list._url + "/std/dataset/getMetaDataDict?version=" + version,
          //    valueField: 'id',
          //    textField: 'name',
          //    selectBoxWidth: 400,
          //    autocomplete: true,
          //    keySupport: true,
          //    width: 400,
          //    initValue: initValue,
          //    initText: initText,
          //    onSuccess: function () {
          //        $("#sel_Name").css({"width": 213, "height": 28});
          //        $(".l-text-combobox").css({"width": 227});
          //        $(".l-box-select-absolute").css({"width": 227});
          //    },
          //    onAfterSetData: function () {
          //
          //    }
          //});
          //set.elementAttr.standard_select.setValue(initValue);
          //set.elementAttr.standard_select.setText(initText);
        },
        getStandardVersionInfo: function () {//获取标准版本信息
          //var u = standard.list;
          //var id = $("#hdId").val();
          //
          //if (id == "") {
          //    standard.dataset.getBaseVersionList("", "");
          //    return;
          //}
          //
          //$.ajax({
          //    url: u._url + "/cdatype/getCdaTypeById",
          //    type: "get",
          //    dataType: "json",
          //    data: {strIds: id},
          //    success: function (data) {
          //
          //        var result = eval(data);
          //        var info = result.obj;
          //        if (info != null) {
          //            standard.dataset.type_form.attrScan();
          //            standard.dataset.type_form.Fields.fillValues(info);
          //
          //            var initValue = info.parentId;
          //            var initText = info.parentName;
          //
          //            standard.dataset.getStandardList(initValue, initText);
          //        }
          //        else {
          //            $.Notice.error(result.errorMsg);
          //        }
          //    }
          //})
        },
        save: function () {
          if(!this.validator.validate()){
            return;
          }
          var id = $("#hdId").val();
          standard.dataset.type_form.attrScan();
          var dataJson = eval("[" + standard.dataset.type_form.Fields.toJsonString() + "]");
          dataJson[0]["id"] = id;
          //TODO 下面写保存标准的后台逻辑,dataJson[0]为传到后台的数据
          //var _url = standard.list._url + "/cdatype/SaveCdaType";//设置保存标准的url
          //
          //$.ajax({
          //    url: _url,
          //    type: "POST",
          //    dataType: "json",
          //    data: dataJson[0],
          //    success: function (data) {
          //        if (data != null) {
          //            var _res = eval(data);
          //            if (_res.successFlg) {
          //                $.ligerDialog.alert("保存成功", "提示", "success", function () {
          //                    parent.standard.list.top.dialog_standard_detail.close();
          //                }, null);
          //            }
          //            else {
          //                $.Notice.error(_res.errorMsg);
          //            }
          //        }
          //        else {
          //            $.Notice.error("保存失败!")
          //        }
          //    }
          //})
        },
        event: function () {
          $("#btn_save").click(function () {
            standard.dataset.save();//保存
          });
          $("#btn_close").click(function () {//关闭
            win.closeDialog();
          });
        }
      };
      $(function(){
        standard.dataset.init();
      })
  })(jQuery, window)
</script>

+ 0 - 62
Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/standard/adapterplan/dataset/updateMetadata.jsp

@ -1,62 +0,0 @@
<%--
  Created by IntelliJ IDEA.
  User: llh
  Date: 2016/1/7
  Time: 14:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="utf-8"%>
<%@include file="/WEB-INF/ehr/commons/jsp/commonInclude.jsp" %>
<div id="div_metadata_info_form" data-role-form class="m-form-inline f-mt20">
  <div class="m-form-group">
    <label>数据元编码:</label>
    <div class="l-text-wrapper m-form-control essential">
      <input type="text" class="f-w240 " id="txt_code" data-attr-scan="code">
    </div>
  </div>
  <div class="m-form-group">
    <label>数据源名称:</label>
    <div class="l-text-wrapper m-form-control essential">
      <input type="text" class="required f-w240 " id="txt_name" data-attr-scan="name">
    </div>
  </div>
  <div class="m-form-group">
    <label>数据类型:</label>
    <div class="l-text-wrapper m-form-control essential">
      <select class="f-w240 " data-attr-scan="type"  id="sel_type">
        <option>S字符型</option>
        <option>L布尔型</option>
        <option>N数值型</option>
        <option>D日期型</option>
        <option>T时间型</option>
        <option>DT日期时间型</option>
        <option>BY二进制型</option>
      </select>
    </div>
  </div>
  <div class="m-form-group">
    <label>数据格式:</label>
    <div class="l-text-wrapper m-form-control essential">
      <input type="text" class="f-w240 " id="txt_format" data-attr-scan="format">
    </div>
  </div>
  <div class="m-form-group">
    <label>数据集说明:</label>
    <div class="m-form-control">
      <textarea rows="3" id="txt_description" style="width: 240px;height: 60px;" data-attr-scan="description"  class="useTitle"></textarea>
    </div>
  </div>
  <div class="m-form-control pane-attribute-toolbar">
    <div class="l-button u-btn u-btn-primary u-btn-large f-ib f-vam" id="btn_save">
      <span>保存</span>
    </div>
    <div class="l-button u-btn u-btn-cancel u-btn-large f-ib f-vam close-toolbar" id="btn_close">
      <span>关闭</span>
    </div>
  </div>
  <input type="hidden" id="hdId" value=""/>
  <input type="hidden" id="hd_url" value="${contextRoot}"/>
</div>

+ 0 - 31
Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/standard/adapterplan/dataset/updateMetadataCss.jsp

@ -1,31 +0,0 @@
<%--
  Created by IntelliJ IDEA.
  User: llh
  Date: 2016/1/7
  Time: 14:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="utf-8"%>
<%@include file="/WEB-INF/ehr/commons/jsp/commonInclude.jsp" %>
<style type="text/css">
  .pane-attribute-toolbar{
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    padding: 6px 0 4px;
    background-color: #fff;
    border-top: 1px solid #ccc;
    text-align: right;
  }
  .close-toolbar{
    margin-right: 20px;
  }
  input{
    height: 28px;
    width: 240px;
  }
</style>

+ 0 - 145
Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/standard/adapterplan/dataset/updateMetadataJs.jsp

@ -1,145 +0,0 @@
<%--
  Created by IntelliJ IDEA.
  User: llh
  Date: 2016/1/7
  Time: 14:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="utf-8"%>
<%@include file="/WEB-INF/ehr/commons/jsp/commonInclude.jsp" %>
<script >
  (function ($, win) {
        var standard = {};
        //集成标准版本处理
        standard.metadata = {
          type_form: $("#div_metadata_info_form"),
          validator: null,
          baseversion_select: null,
          init: function () {
            var id = $.Util.getUrlQueryString('id');
            var name = $.Util.getUrlQueryString('name');
            var version = $.Util.getUrlQueryString('version');
            var description = $.Util.getUrlQueryString('description');
            $("#txt_Name").text(name);
            $("#txt_version").val(version);
            $("#txt_description").val(description);
            $("#hdId").val(id);
            this.getStandardVersionInfo();
            this.event();
            this.validator =  new $.jValidation.Validation(this.type_form, {immediate: true, onSubmit: false,
              onElementValidateForAjax:function(elm){
              }
            });
          },
          getBaseVersionList: function (initValue, initText) {//获取基础版本信息
            //set.elementAttr.standard_select = $("#baseversion_select").ligerComboBox({
            //    url: set.list._url + "/std/dataset/getMetaDataDict?version=" + version,
            //    valueField: 'id',
            //    textField: 'name',
            //    selectBoxWidth: 400,
            //    autocomplete: true,
            //    keySupport: true,
            //    width: 400,
            //    initValue: initValue,
            //    initText: initText,
            //    onSuccess: function () {
            //        $("#sel_Name").css({"width": 213, "height": 28});
            //        $(".l-text-combobox").css({"width": 227});
            //        $(".l-box-select-absolute").css({"width": 227});
            //    },
            //    onAfterSetData: function () {
            //
            //    }
            //});
            //set.elementAttr.standard_select.setValue(initValue);
            //set.elementAttr.standard_select.setText(initText);
          },
          getStandardVersionInfo: function () {//获取标准版本信息
            //var u = standard.list;
            //var id = $("#hdId").val();
            //
            //if (id == "") {
            //    standard.metadata.getBaseVersionList("", "");
            //    return;
            //}
            //
            //$.ajax({
            //    url: u._url + "/cdatype/getCdaTypeById",
            //    type: "get",
            //    dataType: "json",
            //    data: {strIds: id},
            //    success: function (data) {
            //
            //        var result = eval(data);
            //        var info = result.obj;
            //        if (info != null) {
            //            standard.metadata.type_form.attrScan();
            //            standard.metadata.type_form.Fields.fillValues(info);
            //
            //            var initValue = info.parentId;
            //            var initText = info.parentName;
            //
            //            standard.metadata.getStandardList(initValue, initText);
            //        }
            //        else {
            //            $.Notice.error(result.errorMsg);
            //        }
            //    }
            //})
          },
          save: function () {
            if(!this.validator.validate()){
              return;
            }
            var id = $("#hdId").val();
            standard.metadata.type_form.attrScan();
            var dataJson = eval("[" + standard.metadata.type_form.Fields.toJsonString() + "]");
            dataJson[0]["id"] = id;
            //TODO 下面写保存标准的后台逻辑,dataJson[0]为传到后台的数据
            //var _url = standard.list._url + "/cdatype/SaveCdaType";//设置保存标准的url
            //
            //$.ajax({
            //    url: _url,
            //    type: "POST",
            //    dataType: "json",
            //    data: dataJson[0],
            //    success: function (data) {
            //        if (data != null) {
            //            var _res = eval(data);
            //            if (_res.successFlg) {
            //                $.ligerDialog.alert("保存成功", "提示", "success", function () {
            //                    parent.standard.list.top.dialog_standard_detail.close();
            //                }, null);
            //            }
            //            else {
            //                $.Notice.error(_res.errorMsg);
            //            }
            //        }
            //        else {
            //            $.Notice.error("保存失败!")
            //        }
            //    }
            //})
          },
          event: function () {
            $("#btn_save").click(function () {
              standard.metadata.save();//保存
            });
            $("#btn_close").click(function () {//关闭
              win.closeDialog();
            });
          }
        };
      $(function(){
        standard.metadata.init();
      })
  })(jQuery, window)
</script>

+ 0 - 62
Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/standard/adapterplan/datasource/updateDatasource.jsp

@ -1,62 +0,0 @@
<%--
  Created by IntelliJ IDEA.
  User: llh
  Date: 2016/1/7
  Time: 14:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="utf-8"%>
<%@include file="/WEB-INF/ehr/commons/jsp/commonInclude.jsp" %>
<div id="div_metadata_info_form" data-role-form class="m-form-inline f-mt20">
  <div class="m-form-group">
    <label>数据元编码:</label>
    <div class="l-text-wrapper m-form-control essential">
      <input type="text" class="f-w240 " id="txt_code" data-attr-scan="code">
    </div>
  </div>
  <div class="m-form-group">
    <label>数据源名称:</label>
    <div class="l-text-wrapper m-form-control essential">
      <input type="text" class="required f-w240 " id="txt_name" data-attr-scan="name">
    </div>
  </div>
  <div class="m-form-group">
    <label>数据类型:</label>
    <div class="l-text-wrapper m-form-control essential">
      <select class="f-w240 " data-attr-scan="type"  id="sel_type">
        <option>S字符型</option>
        <option>L布尔型</option>
        <option>N数值型</option>
        <option>D日期型</option>
        <option>T时间型</option>
        <option>DT日期时间型</option>
        <option>BY二进制型</option>
      </select>
    </div>
  </div>
  <div class="m-form-group">
    <label>数据格式:</label>
    <div class="l-text-wrapper m-form-control essential">
      <input type="text" class="f-w240 " id="txt_format" data-attr-scan="format">
    </div>
  </div>
  <div class="m-form-group">
    <label>数据集说明:</label>
    <div class="m-form-control">
      <textarea rows="3" id="txt_description" style="width: 240px;height: 60px;" data-attr-scan="description"  class="useTitle"></textarea>
    </div>
  </div>
  <div class="m-form-control pane-attribute-toolbar">
    <div class="l-button u-btn u-btn-primary u-btn-large f-ib f-vam" id="btn_save">
      <span>保存</span>
    </div>
    <div class="l-button u-btn u-btn-cancel u-btn-large f-ib f-vam close-toolbar" id="btn_close">
      <span>关闭</span>
    </div>
  </div>
  <input type="hidden" id="hdId" value=""/>
  <input type="hidden" id="hd_url" value="${contextRoot}"/>
</div>

+ 0 - 31
Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/standard/adapterplan/datasource/updateDatasourceCss.jsp

@ -1,31 +0,0 @@
<%--
  Created by IntelliJ IDEA.
  User: llh
  Date: 2016/1/7
  Time: 14:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="utf-8"%>
<%@include file="/WEB-INF/ehr/commons/jsp/commonInclude.jsp" %>
<style type="text/css">
  .pane-attribute-toolbar{
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    padding: 6px 0 4px;
    background-color: #fff;
    border-top: 1px solid #ccc;
    text-align: right;
  }
  .close-toolbar{
    margin-right: 20px;
  }
  input{
    height: 28px;
    width: 240px;
  }
</style>

+ 0 - 145
Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/standard/adapterplan/datasource/updateDatasourceJs.jsp

@ -1,145 +0,0 @@
<%--
  Created by IntelliJ IDEA.
  User: llh
  Date: 2016/1/7
  Time: 14:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="utf-8"%>
<%@include file="/WEB-INF/ehr/commons/jsp/commonInclude.jsp" %>
<script >
  (function ($, win) {
        var standard = {};
        //集成标准版本处理
        standard.metadata = {
          type_form: $("#div_metadata_info_form"),
          validator: null,
          baseversion_select: null,
          init: function () {
            var id = $.Util.getUrlQueryString('id');
            var name = $.Util.getUrlQueryString('name');
            var version = $.Util.getUrlQueryString('version');
            var description = $.Util.getUrlQueryString('description');
            $("#txt_Name").text(name);
            $("#txt_version").val(version);
            $("#txt_description").val(description);
            $("#hdId").val(id);
            this.getStandardVersionInfo();
            this.event();
            this.validator =  new $.jValidation.Validation(this.type_form, {immediate: true, onSubmit: false,
              onElementValidateForAjax:function(elm){
              }
            });
          },
          getBaseVersionList: function (initValue, initText) {//获取基础版本信息
            //set.elementAttr.standard_select = $("#baseversion_select").ligerComboBox({
            //    url: set.list._url + "/std/dataset/getMetaDataDict?version=" + version,
            //    valueField: 'id',
            //    textField: 'name',
            //    selectBoxWidth: 400,
            //    autocomplete: true,
            //    keySupport: true,
            //    width: 400,
            //    initValue: initValue,
            //    initText: initText,
            //    onSuccess: function () {
            //        $("#sel_Name").css({"width": 213, "height": 28});
            //        $(".l-text-combobox").css({"width": 227});
            //        $(".l-box-select-absolute").css({"width": 227});
            //    },
            //    onAfterSetData: function () {
            //
            //    }
            //});
            //set.elementAttr.standard_select.setValue(initValue);
            //set.elementAttr.standard_select.setText(initText);
          },
          getStandardVersionInfo: function () {//获取标准版本信息
            //var u = standard.list;
            //var id = $("#hdId").val();
            //
            //if (id == "") {
            //    standard.metadata.getBaseVersionList("", "");
            //    return;
            //}
            //
            //$.ajax({
            //    url: u._url + "/cdatype/getCdaTypeById",
            //    type: "get",
            //    dataType: "json",
            //    data: {strIds: id},
            //    success: function (data) {
            //
            //        var result = eval(data);
            //        var info = result.obj;
            //        if (info != null) {
            //            standard.metadata.type_form.attrScan();
            //            standard.metadata.type_form.Fields.fillValues(info);
            //
            //            var initValue = info.parentId;
            //            var initText = info.parentName;
            //
            //            standard.metadata.getStandardList(initValue, initText);
            //        }
            //        else {
            //            $.Notice.error(result.errorMsg);
            //        }
            //    }
            //})
          },
          save: function () {
            if(!this.validator.validate()){
              return;
            }
            var id = $("#hdId").val();
            standard.metadata.type_form.attrScan();
            var dataJson = eval("[" + standard.metadata.type_form.Fields.toJsonString() + "]");
            dataJson[0]["id"] = id;
            //TODO 下面写保存标准的后台逻辑,dataJson[0]为传到后台的数据
            //var _url = standard.list._url + "/cdatype/SaveCdaType";//设置保存标准的url
            //
            //$.ajax({
            //    url: _url,
            //    type: "POST",
            //    dataType: "json",
            //    data: dataJson[0],
            //    success: function (data) {
            //        if (data != null) {
            //            var _res = eval(data);
            //            if (_res.successFlg) {
            //                $.ligerDialog.alert("保存成功", "提示", "success", function () {
            //                    parent.standard.list.top.dialog_standard_detail.close();
            //                }, null);
            //            }
            //            else {
            //                $.Notice.error(_res.errorMsg);
            //            }
            //        }
            //        else {
            //            $.Notice.error("保存失败!")
            //        }
            //    }
            //})
          },
          event: function () {
            $("#btn_save").click(function () {
              standard.metadata.save();//保存
            });
            $("#btn_close").click(function () {//关闭
              win.closeDialog();
            });
          }
        };
      $(function(){
        standard.metadata.init();
      })
  })(jQuery, window)
</script>

+ 0 - 42
Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/standard/adapterplan/dict/updateDict.jsp

@ -1,42 +0,0 @@
<%--
  Created by IntelliJ IDEA.
  User: llh
  Date: 2016/1/7
  Time: 14:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="utf-8"%>
<%@include file="/WEB-INF/ehr/commons/jsp/commonInclude.jsp" %>
<div id="div_dict_info_form" data-role-form class="m-form-inline f-mt20">
  <div class="m-form-group">
    <label>字典编码:</label>
    <div class="l-text-wrapper m-form-control essential">
      <input type="text" class="f-w240 " id="txt_code" data-attr-scan="code">
    </div>
  </div>
  <div class="m-form-group">
    <label>字典名称:</label>
    <div class="l-text-wrapper m-form-control essential">
      <input type="text" class="required f-w240 " id="txt_name" data-attr-scan="name">
    </div>
  </div>
  <div class="m-form-group">
    <label>说明:</label>
    <div class="m-form-control">
      <textarea rows="3" id="txt_description" style="width: 240px;height: 60px;" data-attr-scan="description"  class="useTitle"></textarea>
    </div>
  </div>
  <div class="m-form-control pane-attribute-toolbar">
    <div class="l-button u-btn u-btn-primary u-btn-large f-ib f-vam" id="btn_save">
      <span>保存</span>
    </div>
    <div class="l-button u-btn u-btn-cancel u-btn-large f-ib f-vam close-toolbar" id="btn_close">
      <span>关闭</span>
    </div>
  </div>
  <input type="hidden" id="hdId" value=""/>
  <input type="hidden" id="hd_url" value="${contextRoot}"/>
</div>

+ 0 - 31
Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/standard/adapterplan/dict/updateDictCss.jsp

@ -1,31 +0,0 @@
<%--
  Created by IntelliJ IDEA.
  User: llh
  Date: 2016/1/7
  Time: 14:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="utf-8"%>
<%@include file="/WEB-INF/ehr/commons/jsp/commonInclude.jsp" %>
<style type="text/css">
  .pane-attribute-toolbar{
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    padding: 6px 0 4px;
    background-color: #fff;
    border-top: 1px solid #ccc;
    text-align: right;
  }
  .close-toolbar{
    margin-right: 20px;
  }
  input{
    height: 28px;
    width: 240px;
  }
</style>

+ 0 - 42
Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/standard/adapterplan/dict/updateDictItem.jsp

@ -1,42 +0,0 @@
<%--
  Created by IntelliJ IDEA.
  User: llh
  Date: 2016/1/7
  Time: 14:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="utf-8"%>
<%@include file="/WEB-INF/ehr/commons/jsp/commonInclude.jsp" %>
<div id="div_dictitem_info_form" data-role-form class="m-form-inline f-mt20">
  <div class="m-form-group">
    <label>值域编码:</label>
    <div class="l-text-wrapper m-form-control essential">
      <input type="text" class="f-w240 " id="txt_code" data-attr-scan="code">
    </div>
  </div>
  <div class="m-form-group">
    <label>值域名称:</label>
    <div class="l-text-wrapper m-form-control essential">
      <input type="text" class="required f-w240 " id="txt_name" data-attr-scan="name">
    </div>
  </div>
  <div class="m-form-group">
    <label>说明:</label>
    <div class="m-form-control">
      <textarea rows="3" id="txt_description" style="width: 240px;height: 60px;" data-attr-scan="description"  class="useTitle"></textarea>
    </div>
  </div>
  <div class="m-form-control pane-attribute-toolbar">
    <div class="l-button u-btn u-btn-primary u-btn-large f-ib f-vam" id="btn_save">
      <span>保存</span>
    </div>
    <div class="l-button u-btn u-btn-cancel u-btn-large f-ib f-vam close-toolbar" id="btn_close">
      <span>关闭</span>
    </div>
  </div>
  <input type="hidden" id="hdId" value=""/>
  <input type="hidden" id="hd_url" value="${contextRoot}"/>
</div>

+ 0 - 31
Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/standard/adapterplan/dict/updateDictItemCss.jsp

@ -1,31 +0,0 @@
<%--
  Created by IntelliJ IDEA.
  User: llh
  Date: 2016/1/7
  Time: 14:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="utf-8"%>
<%@include file="/WEB-INF/ehr/commons/jsp/commonInclude.jsp" %>
<style type="text/css">
  .pane-attribute-toolbar{
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    padding: 6px 0 4px;
    background-color: #fff;
    border-top: 1px solid #ccc;
    text-align: right;
  }
  .close-toolbar{
    margin-right: 20px;
  }
  input{
    height: 28px;
    width: 240px;
  }
</style>

+ 0 - 145
Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/standard/adapterplan/dict/updateDictItemJs.jsp

@ -1,145 +0,0 @@
<%--
  Created by IntelliJ IDEA.
  User: llh
  Date: 2016/1/7
  Time: 14:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="utf-8"%>
<%@include file="/WEB-INF/ehr/commons/jsp/commonInclude.jsp" %>
<script >
  (function ($, win) {
      var standard = {};
      //集成标准版本处理
      standard.version = {
        type_form: $("#div_dictitem_info_form"),
        validator: null,
        baseversion_select: null,
        init: function () {
          var id = $.Util.getUrlQueryString('id');
          var name = $.Util.getUrlQueryString('name');
          var version = $.Util.getUrlQueryString('version');
          var description = $.Util.getUrlQueryString('description');
          $("#txt_Name").text(name);
          $("#txt_version").val(version);
          $("#txt_description").val(description);
          $("#hdId").val(id);
          this.getStandardVersionInfo();
          this.event();
          this.validator =  new $.jValidation.Validation(this.type_form, {immediate: true, onSubmit: false,
            onElementValidateForAjax:function(elm){
            }
          });
        },
        getBaseVersionList: function (initValue, initText) {//获取基础版本信息
          //set.elementAttr.standard_select = $("#baseversion_select").ligerComboBox({
          //    url: set.list._url + "/std/dataset/getMetaDataDict?version=" + version,
          //    valueField: 'id',
          //    textField: 'name',
          //    selectBoxWidth: 400,
          //    autocomplete: true,
          //    keySupport: true,
          //    width: 400,
          //    initValue: initValue,
          //    initText: initText,
          //    onSuccess: function () {
          //        $("#sel_Name").css({"width": 213, "height": 28});
          //        $(".l-text-combobox").css({"width": 227});
          //        $(".l-box-select-absolute").css({"width": 227});
          //    },
          //    onAfterSetData: function () {
          //
          //    }
          //});
          //set.elementAttr.standard_select.setValue(initValue);
          //set.elementAttr.standard_select.setText(initText);
        },
        getStandardVersionInfo: function () {//获取标准版本信息
          //var u = standard.list;
          //var id = $("#hdId").val();
          //
          //if (id == "") {
          //    standard.version.getBaseVersionList("", "");
          //    return;
          //}
          //
          //$.ajax({
          //    url: u._url + "/cdatype/getCdaTypeById",
          //    type: "get",
          //    dataType: "json",
          //    data: {strIds: id},
          //    success: function (data) {
          //
          //        var result = eval(data);
          //        var info = result.obj;
          //        if (info != null) {
          //            standard.version.type_form.attrScan();
          //            standard.version.type_form.Fields.fillValues(info);
          //
          //            var initValue = info.parentId;
          //            var initText = info.parentName;
          //
          //            standard.version.getStandardList(initValue, initText);
          //        }
          //        else {
          //            $.Notice.error(result.errorMsg);
          //        }
          //    }
          //})
        },
        save: function () {
          if(!this.validator.validate()){
            return;
          }
          var id = $("#hdId").val();
          standard.version.type_form.attrScan();
          var dataJson = eval("[" + standard.version.type_form.Fields.toJsonString() + "]");
          dataJson[0]["id"] = id;
          //TODO 下面写保存标准的后台逻辑,dataJson[0]为传到后台的数据
          //var _url = standard.list._url + "/cdatype/SaveCdaType";//设置保存标准的url
          //
          //$.ajax({
          //    url: _url,
          //    type: "POST",
          //    dataType: "json",
          //    data: dataJson[0],
          //    success: function (data) {
          //        if (data != null) {
          //            var _res = eval(data);
          //            if (_res.successFlg) {
          //                $.ligerDialog.alert("保存成功", "提示", "success", function () {
          //                    parent.standard.list.top.dialog_standard_detail.close();
          //                }, null);
          //            }
          //            else {
          //                $.Notice.error(_res.errorMsg);
          //            }
          //        }
          //        else {
          //            $.Notice.error("保存失败!")
          //        }
          //    }
          //})
        },
        event: function () {
          $("#btn_save").click(function () {
            standard.version.save();//保存
          });
          $("#btn_close").click(function () {//关闭
            win.closeDialog();
          });
        }
      };
      $(function(){
        standard.version.init();
      })
  })(jQuery, window);
</script>

+ 0 - 145
Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/standard/adapterplan/dict/updateDictJs.jsp

@ -1,145 +0,0 @@
<%--
  Created by IntelliJ IDEA.
  User: llh
  Date: 2016/1/7
  Time: 14:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="utf-8"%>
<%@include file="/WEB-INF/ehr/commons/jsp/commonInclude.jsp" %>
<script >
  (function ($, win) {
      var standard = {};
    
      //集成标准版本处理
      standard.dict = {
        type_form: $("#div_dict_info_form"),
        validator: null,
        baseversion_select: null,
        init: function () {
          var id = $.Util.getUrlQueryString('id');
          var name = $.Util.getUrlQueryString('name');
          var version = $.Util.getUrlQueryString('version');
          var description = $.Util.getUrlQueryString('description');
          $("#txt_Name").text(name);
          $("#txt_version").val(version);
          $("#txt_description").val(description);
    
    
          $("#hdId").val(id);
    
          this.getStandardVersionInfo();
          this.event();
    
          this.validator =  new $.jValidation.Validation(this.type_form, {immediate: true, onSubmit: false,
            onElementValidateForAjax:function(elm){
    
            }
          });
        },
        getBaseVersionList: function (initValue, initText) {//获取基础版本信息
          //set.elementAttr.standard_select = $("#baseversion_select").ligerComboBox({
          //    url: set.list._url + "/std/dataset/getMetaDataDict?version=" + version,
          //    valueField: 'id',
          //    textField: 'name',
          //    selectBoxWidth: 400,
          //    autocomplete: true,
          //    keySupport: true,
          //    width: 400,
          //    initValue: initValue,
          //    initText: initText,
          //    onSuccess: function () {
          //        $("#sel_Name").css({"width": 213, "height": 28});
          //        $(".l-text-combobox").css({"width": 227});
          //        $(".l-box-select-absolute").css({"width": 227});
          //    },
          //    onAfterSetData: function () {
          //
          //    }
          //});
          //set.elementAttr.standard_select.setValue(initValue);
          //set.elementAttr.standard_select.setText(initText);
        },
        getStandardVersionInfo: function () {//获取标准版本信息
    
          //var u = standard.list;
          //var id = $("#hdId").val();
          //
          //if (id == "") {
          //    standard.dict.getBaseVersionList("", "");
          //    return;
          //}
          //
          //$.ajax({
          //    url: u._url + "/cdatype/getCdaTypeById",
          //    type: "get",
          //    dataType: "json",
          //    data: {strIds: id},
          //    success: function (data) {
          //
          //        var result = eval(data);
          //        var info = result.obj;
          //        if (info != null) {
          //            standard.dict.type_form.attrScan();
          //            standard.dict.type_form.Fields.fillValues(info);
          //
          //            var initValue = info.parentId;
          //            var initText = info.parentName;
          //
          //            standard.dict.getStandardList(initValue, initText);
          //        }
          //        else {
          //            $.Notice.error(result.errorMsg);
          //        }
          //    }
          //})
        },
        save: function () {
          if(!this.validator.validate()){
            return;
          }
          var id = $("#hdId").val();
          standard.dict.type_form.attrScan();
          var dataJson = eval("[" + standard.dict.type_form.Fields.toJsonString() + "]");
          dataJson[0]["id"] = id;
          //TODO 下面写保存标准的后台逻辑,dataJson[0]为传到后台的数据
          //var _url = standard.list._url + "/cdatype/SaveCdaType";//设置保存标准的url
          //
          //$.ajax({
          //    url: _url,
          //    type: "POST",
          //    dataType: "json",
          //    data: dataJson[0],
          //    success: function (data) {
          //        if (data != null) {
          //            var _res = eval(data);
          //            if (_res.successFlg) {
          //                $.ligerDialog.alert("保存成功", "提示", "success", function () {
          //                    parent.standard.list.top.dialog_standard_detail.close();
          //                }, null);
          //            }
          //            else {
          //                $.Notice.error(_res.errorMsg);
          //            }
          //        }
          //        else {
          //            $.Notice.error("保存失败!")
          //        }
          //    }
          //})
        },
        event: function () {
          $("#btn_save").click(function () {
            standard.dict.save();//保存
          });
          $("#btn_close").click(function () {//关闭
            win.closeDialog();
          });
        }
      };
    
      $(function(){
        standard.dict.init();
      })
  })(jQuery, window);
</script>