<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="utf-8" %>
<%@include file="/WEB-INF/ehr/commons/jsp/commonInclude.jsp" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<style>

    #inp_url { height: 50px; }
    #inp_description { height: 100px; }

</style>

<div id="div_info_form" class="m-form-inline f-mt20 " style="padding-top: 5px">
    <div class="m-form-group">
        <label><span class="red">*&nbsp;</span>字段名称：</label>

        <div class="m-form-control">
            <input type="hidden" data-type="text">
            <input type="hidden" data-type="text" name="resourceId" value="<%=request.getParameter("resourceId")%>">
            <input type="hidden" id="inp_resource_id" name="id">
            <input type="text" id="inp_field_name" placeholder="请输入字段名称" name="name"/>
        </div>
    </div>
    <div class="m-form-group">
        <label><span class="red">*&nbsp;</span>字段代码：</label>

        <div class="l-text-wrapper m-form-control ">
            <input type="text" id="inp_field_code" name="columnCode">
        </div>
    </div>
    <div class="m-form-group">
        <label><span class="red">*&nbsp;</span>字段类型：</label>

        <div class="l-text-wrapper m-form-control">
            <input type="text" id="inp_field_type" name="columnType">
        </div>
    </div>
    <div class="m-form-group">
        <label><span class="red">*&nbsp;</span>字段长度：</label>

        <div class="u-checkbox-wrap m-form-control">
            <input type="text" id="inp_field_length" name="columnLength">
        </div>
    </div>
    <div class="m-form-group">
        <label><span class="red">*&nbsp;</span>是否主键</label>

        <div class="u-checkbox-wrap m-form-control ">
            <input type="radio" value="1" name="inp_field_is_PK">是
            <input type="radio" checked value="0" name="inp_field_is_PK">否
        </div>
        <label style="width: 90px"><span class="red">*&nbsp;</span>是否能空</label>

        <div class="u-checkbox-wrap m-form-control ">
            <input type="radio" checked  value="1" name="inp_field_is_null" >是
            <input type="radio" value="0" name="inp_field_is_null">否
        </div>
    </div>
    <div class="m-form-group">
        <label>字段说明：</label>

        <div class="u-checkbox-wrap m-form-control ">
            <input type="text" id="inp_field_remark" name="definition">

        </div>
    </div>
    <div class="m-form-group">
        <label>数据来源</label>
        <!--
        <div class="u-checkbox-wrap m-form-control ">
            <input type="radio" checked  value="2" name="inp_dataset_from">逻辑表
            <input type="radio" value="1" name="inp_dataset_from">事实表
        </div>-->
        <label id="inp_dataset_from" style="text-align:left">逻辑表</label>
    </div>
    <div id="centerTab1" style="display:none">
        <div style="margin-left: 70px;float: left">

            <div id="left_datagrid"></div>
        </div>
        <div style="margin-left: 10px;float: left">

            <div id="right_datagrid"></div>
        </div>
    </div>
    <div id="centerTab2">
        <div class="m-form-group">
            <label>逻辑数据来源</label>

            <div class="m-form-control">
                <textarea rows="10" class="l-textarea" style="width:350px;height: 200px"
                          name="logicDataSource" id="logicDataSource"></textarea>
            </div>
        </div>
    </div>
    <div position="bottom" title="">
        <div class="m-form-bottom">
            <div id="btn_cancel" class="l-button l-button-no">
                <span>关闭</span>
            </div>
            <div id="btn_save" class="l-button">
                <span>保存</span>
            </div>
        </div>
    </div>
</div>