<%@ Page Language="C#" %>
<%@ Register TagPrefix="aspxform" Namespace="XFormDesigner.Framework.Web.UI" Assembly="XFormDesigner.Framework" %>
<script runat="server">

    protected void Page_Load(object sender, EventArgs e)
     {
    
        this.XTextBox6.Text = DateTime.Now.Year.ToString();
    
    
    
       // this.XTextBox6.Text = DateTime.Now.Year.ToString();
    
           string state = Request.QueryString["formstate"];
    
           if (!String.IsNullOrEmpty(state))
           {
               if (state == "Edit")
               {
               //Enabled  不能编辑
               //Visible  隐藏
    
                  this.XDataBrowserButton1.Enabled = false;
                  this.XDataBrowserButton2.Enabled = false;
    
    
    
               }
           }
    
    
    
    
    
     }

</script>
<html xmlns:xform="xmlns:xform">
<head runat="server">
    <link href="../../../../css/StyleSheet.css" rel="Stylesheet" type="text/css" />
    <title>BPM Form</title> <style>
    BODY {FONT-SIZE: 12px; FONT-FAMILY: verdana}
    TABLE {border-collapse: collapse; FONT-SIZE: 12px; FONT-FAMILY: verdana}
    P {PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; FONT-SIZE: 12px; FONT-FAMILY: verdana}
    TD {PADDING-RIGHT: 0px; PADDING-LEFT: 2px; PADDING-BOTTOM: 0px}
    TD.NoPadding {PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px}
    INPUT {HEIGHT: 20px}
    INPUT.UL {BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: #33ff33 1px solid}
    TEXTAREA {FONT-SIZE:12px}
    </style>
</head>
<body>
    <form runat="server">
        <table class="head" border="0" cellspacing="0" cellpadding="0" width="1200" align="center">
            <tbody>
                <tr>
                    <td class="logo">
                    </td>
                    <td class="biaoti">
                        <aspxform:XLabel id="XLabel2" runat="server" Value ValueToDisplayText text="新增编制"></aspxform:XLabel>
                    </td>
                    <%--<td class="formno">
                        <aspxform:XLabel id="XLabel93" runat="server" text="表单号：" ValueToDisplayText Value></aspxform:XLabel>
                        <aspxform:XLabel id="XLabel94" runat="server" text="--系统自动生成--" ValueToDisplayText Value XDataBind="DF_HR_NEWSTAFFAPP.FormNo"></aspxform:XLabel>
                    </td>--%>
                </tr>
            </tbody>
        </table>
        <br />
        <table class="table" width="1200" align="center">
            <tbody>
                <tr>
                    <td class="td" width="62">
                        <aspxform:XLabel id="XLabel1" runat="server" Value ValueToDisplayText text="部门编号"></aspxform:XLabel>
                        <aspxform:XTextBox id="XTextBox6" runat="server" BorderColor="#DCDCDC" BorderWidth="1" width="50%" XDataBind="DF_HR_COMPILE.years" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                    <td style="WIDTH: 8%" class="td1">
                        <aspxform:XTextBox id="XTextBox1" runat="server" BorderColor="#DCDCDC" BorderWidth="1" width="50%" XDataBind="DF_HR_COMPILE.DepartmentNO" BackColor="#E6F1F8" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="td" width="62">
                        <aspxform:XLabel id="XLabel3" runat="server" Value ValueToDisplayText text="部门名称"></aspxform:XLabel>
                    </td>
                    <td style="WIDTH: 8%" class="td1">
                        <aspxform:XTextBox id="XTextBox2" runat="server" BorderColor="#DCDCDC" BorderWidth="1" width="50%" XDataBind="DF_HR_COMPILE.DepartmentName" BackColor="#E6F1F8" ReadOnly="True"></aspxform:XTextBox>
                        <aspxform:XDataBrowserButton id="XDataBrowserButton1" runat="server" Width="50px" XDataSource="TableName:DF_HR_DEPARTMENTAREA" DisplayColumns="DepartmentNO:部门编号,200;DepartmentName:部门名称,280" DataMap="DepartmentNO->DF_HR_COMPILE.DepartmentNO;DepartmentName->DF_HR_COMPILE.DepartmentName" Text="查询"></aspxform:XDataBrowserButton>
                    </td>
                </tr>
                <tr>
                    <td class="td" width="62">
                        <aspxform:XLabel id="XLabel5" runat="server" Value ValueToDisplayText text="地区编码"></aspxform:XLabel>
                    </td>
                    <td style="WIDTH: 8%" class="td1">
                        <aspxform:XTextBox id="XTextBox5" runat="server" BorderColor="#DCDCDC" BorderWidth="1" width="50%" XDataBind="DF_HR_COMPILE.AreaNO" BackColor="#E6F1F8" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="td" width="62">
                        <aspxform:XLabel id="XLabel4" runat="server" Value ValueToDisplayText text="地区名称"></aspxform:XLabel>
                    </td>
                    <td style="WIDTH: 8%" class="td1">
                        <aspxform:XTextBox id="XTextBox4" runat="server" BorderColor="#DCDCDC" BorderWidth="1" width="50%" XDataBind="DF_HR_COMPILE.AreaName" BackColor="#E6F1F8" ReadOnly="True"></aspxform:XTextBox>
                        <aspxform:XDataBrowserButton id="XDataBrowserButton2" runat="server" Width="50px" XDataSource="TableName:DF_HR_AREA;Filter:DepartmentNO->DF_HR_COMPILE.DepartmentNO" DataMap="AreaNO->DF_HR_COMPILE.AreaNO;AreaName->DF_HR_COMPILE.AreaName" Text="查询"></aspxform:XDataBrowserButton>
                    </td>
                </tr>
                <tr>
                    <td class="td" width="62">
                        <aspxform:XLabel id="XLabel6" runat="server" Value ValueToDisplayText text="编制"></aspxform:XLabel>
                    </td>
                    <td style="WIDTH: 8%" class="td1">
                        <aspxform:XTextBox id="XTextBox3" runat="server" BorderColor="#DCDCDC" BorderWidth="1" width="50%" XDataBind="DF_HR_COMPILE.Compile"></aspxform:XTextBox>
                    </td>
                    <td class="td" width="62">
                    </td>
                    <td style="WIDTH: 8%" class="td1">
                    </td>
                </tr>
            </tbody>
        </table>
        <table border="0" cellspacing="0" cellpadding="0" width="1200" align="center">
            <tbody>
                <tr>
                    <td width="800">
                        <p>
                            <aspxform:XProcessButtonList id="XProcessButtonList1" runat="server" PositionSelectVisible="False"></aspxform:XProcessButtonList>
                        </p>
                    </td>
                </tr>
            </tbody>
        </table>
        <p align="center">
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator4" runat="server" ControlToValidate="XTextBox3" ErrorMessage="请填写编制"></aspxform:XRequiredFieldValidator>
        </p>
    </form>
</body>
</html>
