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

    // Insert page code here
    //

</script>
<script type="text/javascript">
    function RegionNO() {

        YZSoft.Ajax.RFC({
            url: 'DFJC/HR/StoreDataService/HRRegionNO.ashx',
            params: { RegionNO: document.getElementById("XTextBox5").value },
            sync: true,
            success: function(action) {
                alert('您添加的大区编号已存在！请重新添加！');
                //window.location.reload();
                document.getElementById("XTextBox5").value="";
            }
        });


    }
</script>
<html xmlns:xform="xmlns:xform">
<head runat="server">
    <link href="../../../../css/StyleSheet.css" rel="Stylesheet" type="text/css" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
    <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}

    .yz-textbox{display:inline;}
    </style>
</head>
<body>
    <form id="Form1" 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" Value ValueToDisplayText text="BU下大区维护" runat="server"></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="502">
                        <aspxform:XLabel id="XLabel1" Value ValueToDisplayText text="BU编号" runat="server"></aspxform:XLabel>
                    </td>
                    <td class="td1" width="94">
                        <aspxform:XTextBox id="XTextBox1" runat="server" ReadOnly="True" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" width="60%" XDataBind="DF_HR_OrgRegion.BUID"></aspxform:XTextBox>
                    </td>
                    <td class="td" width="440">
                        <aspxform:XLabel id="XLabel3" Value ValueToDisplayText text="BU名称" runat="server"></aspxform:XLabel>
                    </td>
                    <td class="td1" width="173">
                        <aspxform:XTextBox id="XTextBox2" runat="server" ReadOnly="True" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" width="200px" XDataBind="DF_HR_OrgRegion.BUName"></aspxform:XTextBox>
                        <aspxform:XDataBrowserButton id="XDataBrowserButton1" runat="server" Width="50px" XDataSource="TableName:V_DF_HR_OrgMaintenance_BU" DisplayColumns="BUID:BU编号,;BUName:BU名称," DataMap="BUID->DF_HR_OrgRegion.BUID;BUName->DF_HR_OrgRegion.BUName" Text="查询"></aspxform:XDataBrowserButton>
                    </td>
                </tr>
                <tr>
                    <td class="td">
                        <aspxform:XLabel id="XLabel5" Value ValueToDisplayText text="大区编码" runat="server"></aspxform:XLabel>
                    </td>
                    <td class="td1">
                        <aspxform:XTextBox onblur="RegionNO();" id="XTextBox5" runat="server" BorderColor="#DCDCDC" BorderWidth="1" width="60%" XDataBind="DF_HR_OrgRegion.RegionID"></aspxform:XTextBox>
                    </td>
                    <td class="td">
                        <aspxform:XLabel id="XLabel4" Value ValueToDisplayText text="大区名称" runat="server"></aspxform:XLabel>
                    </td>
                    <td class="td1">
                        <aspxform:XTextBox id="XTextBox4" runat="server" BorderColor="#DCDCDC" BorderWidth="1" width="70%" XDataBind="DF_HR_OrgRegion.RegionName"></aspxform:XTextBox>
                    </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">
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator1" runat="server" ControlToValidate="XTextBox2" ErrorMessage="请填写BU名称"></aspxform:XRequiredFieldValidator>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator3" runat="server" ControlToValidate="XTextBox5" ErrorMessage="请填写大区编码"></aspxform:XRequiredFieldValidator>
            &nbsp; 
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator4" runat="server" ControlToValidate="XTextBox4" ErrorMessage="请填写大区名称"></aspxform:XRequiredFieldValidator>
        </p>
    </form>
</body>
</html>
