<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GridTableAdd.aspx.cs" Inherits="InfoPath.DataGridTemplete.GridTableAdd" %>

<%@ Register src="../Include/Css.ascx" tagname="Css" tagprefix="uc1" %>

<%@ Register src="../Include/ColumnSelect.ascx" tagname="ColumnSelect" tagprefix="uc2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <uc1:Css ID="Css1" runat="server" />
    <table width="100%">
  <tr class="WsdnOrgInfo1">
	<td>
	<asp:Button class="buttons" ID="btnSubmit" runat="server" Text="" onclick="btnSubmit_Click" />
	<asp:Button class="buttons" ID="btnBack" runat="server" Text="Button" onclick="btnBack_Click" />

	<asp:Label ID="lblMsg" runat="server" Text="" ForeColor=Red></asp:Label>
	</td>
  </tr>
  <tr class="WsdnOrgTitle">
	<td><b>
        <asp:Label ID="titAddGridTable" runat="server" Text=""></asp:Label></b>
    </td>
  </tr>
  <tr>
	<td>
	<TABLE width="100%">
  <tr class="WsdnOrgInfo">
	<td  width="15%">
        <asp:Label ID="lblColumnName" runat="server" Text="Label"></asp:Label>
        </td>
	<td>
        <asp:TextBox ID="ColumnName" runat="server" AutoPostBack="True" 
            ontextchanged="ColumnName_TextChanged"></asp:TextBox><asp:TextBox ID="ID" runat="server" Visible=false></asp:TextBox></td>
              </tr>
  <tr class="WsdnOrgInfo1">

	<td>
	        <asp:Label ID="lblLabelMSG" runat="server" Text="Label"></asp:Label>

	</td>
	<td><asp:TextBox ID="LabelMSG" runat="server"></asp:TextBox>
	<asp:CheckBox ID="IsSameColumnName"  runat="server" />
	</td>
  </tr> 
   <tr class="WsdnOrgInfo">
	<td><asp:Label ID="lblItemType" runat="server" Text="Label"></asp:Label></td>
	<td><asp:DropDownList ID="ddlItemType" runat="server" AutoPostBack="True" 
            onselectedindexchanged="ddlItemType_SelectedIndexChanged">
            <asp:ListItem>非选择项</asp:ListItem>
            <asp:ListItem Value="ddl">下拉选项</asp:ListItem>
            <asp:ListItem Value="ckb">多选选项</asp:ListItem>
            <asp:ListItem Value="rdb">单选选项</asp:ListItem>
            <asp:ListItem Value="EMP">员工选择</asp:ListItem>
            <asp:ListItem Value="DEP">部门选择</asp:ListItem>
            <asp:ListItem Value="COP">公司选择</asp:ListItem>
            <asp:ListItem Value="DAT">数据表数据选择</asp:ListItem>
        </asp:DropDownList>
    </td>
      </tr>
  <tr class="WsdnOrgInfo1">

	<td><asp:Label ID="lblItemConfigType" runat="server" Text="Label" Visible="False"></asp:Label></td>
	<td><asp:DropDownList ID="ddlItemConfigType" runat="server" Visible="False">
        </asp:DropDownList></td>
  </tr>
  <tr class="WsdnOrgInfo1">

	<td><asp:Label ID="lblBindTable" runat="server" Text="绑定数据列" Visible="False"></asp:Label></td>
	<td>
        
	    <uc2:ColumnSelect ID="ColumnSelect1" runat="server"  Visible="False"/>
        <asp:CheckBox ID="IsLookup" runat="server" Text="是否自动提示输入？"/>
        
	</td>
  </tr>
  <tr class="WsdnOrgInfo">
	<td>
	        <asp:Label ID="lblIsNull" runat="server" Text="Label" Visible="False"></asp:Label>
	        <asp:Label ID="lblIsHide" runat="server" Text="Label" ></asp:Label>

	</td>
	  

	<td> 
        <asp:CheckBox ID="IsNull" runat="server" Visible="False" />
        <asp:CheckBox ID="IsHide" runat="server" /></td>
	</tr>
	  <tr class="WsdnOrgInfo1">
	<td ><asp:Label ID="lblOrderNum" runat="server" Text="" ></asp:Label></td>
	<td><asp:TextBox ID="OrderNum" runat="server"></asp:TextBox></td>
  </tr>
  <tr class="WsdnOrgInfo">
	<td>
	        <asp:Label ID="lblColumnType" runat="server" Text="Label"></asp:Label>

	</td>
	<td>
        <asp:RadioButtonList ID="ColumnType" runat="server" RepeatColumns="5" 
            AutoPostBack="True" onselectedindexchanged="ColumnType_SelectedIndexChanged">
            <asp:ListItem Value="nvarchar">文本</asp:ListItem>
            <asp:ListItem Value="decimal">小数(精度18小数位2)</asp:ListItem>
            <asp:ListItem Value="int">整数</asp:ListItem>
            <asp:ListItem Value="varchar">文件</asp:ListItem>
           <asp:ListItem Value="ntext">备注</asp:ListItem>
             <asp:ListItem Value="real">双精度数</asp:ListItem>
             <asp:ListItem Value="datetime">日期</asp:ListItem>
            <asp:ListItem Value="float">自动计算型</asp:ListItem>
        </asp:RadioButtonList>
    </td>
      </tr>
  <tr class="WsdnOrgInfo1">

	<td>
	        <asp:Label ID="lblColumnSize" runat="server" Text="Label"></asp:Label>

	</td>
	<td><asp:TextBox ID="ColumnSize" runat="server" Enabled=false></asp:TextBox></td>
  </tr>

  <tr class="WsdnOrgInfo">
  <td>
	
	        <asp:Label ID="lblWidth" runat="server" Text="Label" ></asp:Label>

	</td>
	<td> 
      <asp:RadioButtonList ID="rblWidth" runat="server" RepeatColumns="6">
          <asp:ListItem>40</asp:ListItem>
          <asp:ListItem>60</asp:ListItem>
          <asp:ListItem>80</asp:ListItem>
          <asp:ListItem>90</asp:ListItem>
          <asp:ListItem>100</asp:ListItem>
          <asp:ListItem Selected="True">120</asp:ListItem>
          <asp:ListItem>140</asp:ListItem>
          <asp:ListItem>160</asp:ListItem>
          <asp:ListItem>180</asp:ListItem>
          <asp:ListItem>200</asp:ListItem>
          <asp:ListItem>300</asp:ListItem>
          <asp:ListItem>400</asp:ListItem>
      </asp:RadioButtonList>
        </td>
  </tr>
  <tr class="WsdnOrgInfo1">

	<td>
	        <asp:Label ID="lblExpression" runat="server" Visible="false" Text="计算公式"></asp:Label>

	</td>
	<td>
        <asp:ListBox ID="ddlExpression" runat="server" Visible="false" Width="155px" 
            AutoPostBack="True" onselectedindexchanged="ddlExpression_SelectedIndexChanged">
            <asp:ListItem Value="">----数学操作----</asp:ListItem>
            <asp:ListItem Value="expC1">前括号(</asp:ListItem>
            <asp:ListItem Value="expC2">后括号)</asp:ListItem>
            <asp:ListItem Value="expA">加法+</asp:ListItem>
            <asp:ListItem Value="expR">减法-</asp:ListItem>
            <asp:ListItem Value="expC">乘法*</asp:ListItem>
            <asp:ListItem Value="expD">除法/</asp:ListItem>
            <asp:ListItem Value="expMo">求余(%)</asp:ListItem>
            <asp:ListItem Value="expPI">π(圆周率)</asp:ListItem>
            <asp:ListItem Value="expSqr">sqr(平方根)</asp:ListItem>
            <asp:ListItem Value="expsin">sin(正弦)</asp:ListItem>
            <asp:ListItem Value="expcos">cos(余弦)</asp:ListItem>
            <asp:ListItem Value="exptan">tan(正切)</asp:ListItem>
            <asp:ListItem Value="explog">log(对数)</asp:ListItem>
            <asp:ListItem Value="expabs">abs(绝对值)</asp:ListItem>
            <asp:ListItem Value="expfac">fac(乘积)</asp:ListItem>
            <asp:ListItem Value="Acos">Acos(余弦角度)</asp:ListItem>
            <asp:ListItem Value="Asin">Asin(正弦角度)</asp:ListItem>
            <asp:ListItem Value="Atan">Atan(正弦角度)</asp:ListItem>
            <asp:ListItem Value="Cosh">Cosh(双曲余弦)</asp:ListItem>
            <asp:ListItem Value="Round">Round(四舍五入)</asp:ListItem>
            <asp:ListItem Value="">----字符操作----</asp:ListItem>
            <asp:ListItem Value="expString">转换成字符</asp:ListItem>
            <asp:ListItem Value="expConcat">连接字符</asp:ListItem>
            <asp:ListItem Value="expSubstring">截取字符</asp:ListItem>
            <asp:ListItem Value="expStrLength">字符长度</asp:ListItem>
            <asp:ListItem Value="">----日期操作----</asp:ListItem>
            <asp:ListItem Value="expaddDays">日期差值</asp:ListItem>
            <asp:ListItem Value="exptoday">当前日期</asp:ListItem>
            <asp:ListItem Value="expnow">当前时间</asp:ListItem>
        </asp:ListBox>
        <asp:TextBox ID="Expression" runat="server" Visible="false" TextMode=MultiLine Height="67px" 
            Width="229px"></asp:TextBox></td>
  </tr>
    <tr class="WsdnOrgInfo1">

	<td>
	        <asp:Label ID="lblValidate" runat="server" Text="验证公式"></asp:Label>

	</td>
	<td>
        <asp:DropDownList ID="ddlValidate" runat="server"  Width="155px" AutoPostBack="true"
            onselectedindexchanged="ddlValidate_SelectedIndexChanged">
        <asp:ListItem Value="">----常用验证----</asp:ListItem>
	    <asp:ListItem Value="NotEmpty">不能为空</asp:ListItem>
	    <asp:ListItem Value="IsNumeric">必须是数字</asp:ListItem>
	    <asp:ListItem Value="IsDateTime">必须是日期</asp:ListItem>
	    <asp:ListItem Value="IsEmail">必须是Email</asp:ListItem>
	    <asp:ListItem Value="IsURL">必须是URl</asp:ListItem>
	    <asp:ListItem Value="IsMobile">必须是手机号</asp:ListItem>
	    <asp:ListItem Value="IsPostNum">必须是邮政编码</asp:ListItem>
	    <asp:ListItem Value="CheckIDCard">必须是身份证号</asp:ListItem>
	    <asp:ListItem Value="">----逻辑判断----</asp:ListItem>
	    <asp:ListItem Value="=">(必须)等于</asp:ListItem>
	    <asp:ListItem Value="!=">(必须)不等于</asp:ListItem>
	    <asp:ListItem Value="<">(必须)小于</asp:ListItem>
	    <asp:ListItem Value="<=">(必须)小于等于</asp:ListItem>
	    <asp:ListItem Value=">">(必须)大于</asp:ListItem>
	    <asp:ListItem Value="&gt;=">(必须)大于等于</asp:ListItem>
	    <asp:ListItem Value="Contain">(必须)包含</asp:ListItem>
	    <asp:ListItem Value="StartsWith">(必须)始于</asp:ListItem>
	    <asp:ListItem Value="EndsWith">(必须)止于</asp:ListItem>
	    <asp:ListItem Value="MatchRegex">(必须)匹配正则表达式</asp:ListItem>
	    <asp:ListItem Value="NotMatchRegex">(必须)不匹配正则表达式</asp:ListItem>
        </asp:DropDownList>
        <asp:TextBox ID="txbValiValue" runat="server" AutoPostBack="true" OnTextChanged="ddlValidate_SelectedIndexChanged"></asp:TextBox><br>
        <asp:TextBox ID="Validate" runat="server" TextMode="MultiLine" Height="54px" Visible="false"
            Width="416px"></asp:TextBox></td>
  </tr>
      <tr class="WsdnOrgInfo">

	<td>
	        <asp:Label ID="Label1" runat="server" Text="验证提示"></asp:Label>

	</td>
	<td>        <asp:TextBox ID="ValidateMsg" runat="server" Width="195px"></asp:TextBox><br>
</td>
  </tr>

  </TABLE>
	</td>
  </tr>
  <tr>
	<td>	
	
</td>
  </tr>
  <tr class="WsdnOrgInfo1">
	<td>	<asp:Button class="buttons" ID="btnSubmit1" runat="server" Text="" 
            onclick="btnSubmit1_Click" />
            <asp:Button class="buttons" ID="btnBack1" runat="server" Text="Button" 
            onclick="btnBack1_Click" />
</td>
  </tr>
  </TABLE>
    </div>
    </form>
</body>
</html>
