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

    // Insert page code here
    //
        protected void Page_Load(object sender, EventArgs e)
    {
      string item = Request.QueryString["itemid"];
      string customerID=Request.QueryString["CustomerID"];
      this.XTextBox15.Text=customerID;
      if(!string.IsNullOrEmpty(item)){
    
         }
          string AAA= Request.QueryString["AAA"];
          if(!string.IsNullOrEmpty(AAA)){
    
         }
          string cus = Request.QueryString["cusid"];
    
    
          string itemID = Request.QueryString["edititem"];
    
    }

</script>
<html xmlns:xform="xmlns:xform">
<head runat="server">
    <link href="/Oimec/Styles/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}
    </style>
    <script type="text/javascript">

function addValue(chargePerson){
   window.returnValue=chargePerson;
 alert(chargePerson);

}

</script>
</head>
<body>
    <form runat="server">
        <table width="1200" align="center" class="head" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td class="logo">
                    </td>
                    <td class="biaoti">
                        <asp:Label id="XLabel2" runat="server" valuetodisplaytext value text="联系人"></asp:Label></td>
                    <td class="formno">
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table align="center" class="table">
            <tbody>
                <tr>
                    <td width="106" class="td">
                        <asp:Label id="XLabel20" runat="server" valuetodisplaytext value text="创建用户"></asp:Label>
                        <aspxform:XTextBox id="XTextBox15" runat="server" Width="55px" CssClass="text" XDataBind="DF_MCustomer_Contact.CustomerID" HiddenInput="True" Value ValueToDisplayText></aspxform:XTextBox>
                    </td>
                    <td width="9" class="td1">
                        <aspxform:XTextBox id="XTextBox4" runat="server" Width="70%" CssClass="text" XDataBind="DF_MCustomer_Contact.AppAccount" ValueToDisplayText="TableName:V_Users;FilterColumn:Account;DisplayColumn:DisplayName" backColor="#e6f1f8"></aspxform:XTextBox>
                    </td>
                    <td width="50" class="td">
                        <asp:Label id="XLabel21" runat="server" valuetodisplaytext value text="创建日期"></asp:Label></td>
                    <td width="8" class="td1">
                        <aspxform:XDateTimePicker id="XDateTimePicker1" runat="server" Width="50%" CssClass="text" XDataBind="DF_MCustomer_Contact.CreateDate" backColor="#e6f1f8"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td class="td">
                        <asp:Label id="XLabel12" runat="server" valuetodisplaytext value text="业务员"></asp:Label></td>
                    <td class="td1">
                        <aspxform:XTextBox id="XTextBox12" runat="server" Width="220px" CssClass="text" XDataBind="DF_MCustomer_Contact.OwnerAccount" ValueToDisplayText="TableName:V_Users;FilterColumn:Account;DisplayColumn:DisplayName" backColor="#e6f1f8"></aspxform:XTextBox>
                        &nbsp;<aspxform:XDataBrowserButton id="XDataBrowserButton1" runat="server" Width="41px" DataMap="AttendanceKakaNO->DF_MCustomer_Contact.OwnerAccount" DisplayColumns="Name:姓名,;Department:部门,;AttendanceKakaNO:帐号," Text="查询" Height="25px" XDataSource="TableName:V_DF_HR_BasicInfo"></aspxform:XDataBrowserButton>
                    </td>
                    <td class="td">
                    </td>
                    <td class="td1">
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="586" align="center" class="table">
            <tbody>
                <tr>
                    <td height="17" class="title1" colspan="4">
                        <asp:Label id="XLabel1" runat="server" valuetodisplaytext value text="联系人基本信息 "></asp:Label></td>
                </tr>
                <tr>
                    <td height="23" class="td">
                        <asp:Label id="XLabel15" runat="server" valuetodisplaytext value text="*" forecolor="Red"></asp:Label><asp:Label id="XLabel7" runat="server" valuetodisplaytext value text="联系人姓名"></asp:Label></td>
                    <td class="td1">
                        <aspxform:XTextBox id="XTextBox5" runat="server" CssClass="text" XDataBind="DF_MCustomer_Contact.ContactName" width="70%"></aspxform:XTextBox>
                    </td>
                    <td class="td">
                        <asp:Label id="XLabel3" runat="server" valuetodisplaytext value text="SAP编号"></asp:Label></td>
                    <td class="td1">
                        <aspxform:XTextBox id="XTextBox1" runat="server" CssClass="text1" XDataBind="DF_MCustomer_Contact.ContactSAPID" width="70%" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="23" class="td">
                        <asp:Label id="XLabel16" runat="server" valuetodisplaytext value text="*" forecolor="Red"></asp:Label><asp:Label id="XLabel9" runat="server" valuetodisplaytext value text="固定电话"></asp:Label></td>
                    <td class="td1">
                        <aspxform:XTextBox id="XTextBox7" runat="server" Width="55px" CssClass="text" XDataBind="DF_MCustomer_Contact.ContactTelCode" Value ValueToDisplayText></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox8" runat="server" Width="123px" CssClass="text" XDataBind="DF_MCustomer_Contact.ContactTel" Value ValueToDisplayText></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox9" runat="server" Width="55px" CssClass="text" XDataBind="DF_MCustomer_Contact.ContactTelExt" Value ValueToDisplayText></aspxform:XTextBox>
                    </td>
                    <td height="23" class="td">
                        <asp:Label id="XLabel4" runat="server" valuetodisplaytext value text="传真"></asp:Label></td>
                    <td class="td1">
                        <aspxform:XTextBox id="XTextBox2" runat="server" Width="55px" CssClass="text" XDataBind="DF_MCustomer_Contact.FaxCode" Value ValueToDisplayText></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox3" runat="server" Width="123px" CssClass="text" XDataBind="DF_MCustomer_Contact.Fax" Value ValueToDisplayText></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox10" runat="server" Width="55px" CssClass="text" XDataBind="DF_MCustomer_Contact.FaxExt" Value ValueToDisplayText></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="25" class="td">
                        <asp:Label id="XLabel17" runat="server" valuetodisplaytext value text="*" forecolor="Red"></asp:Label><asp:Label id="XLabel8" runat="server" valuetodisplaytext value text="移动电话"></asp:Label></td>
                    <td class="td1">
                        <aspxform:XTextBox id="XTextBox13" runat="server" CssClass="text" XDataBind="DF_MCustomer_Contact.ContactMobile" width="70%"></aspxform:XTextBox>
                    </td>
                    <td class="td">
                        <asp:Label id="XLabel18" runat="server" valuetodisplaytext value text="*" forecolor="Red"></asp:Label><asp:Label id="XLabel13" runat="server" valuetodisplaytext value text="电子邮件"></asp:Label></td>
                    <td class="td1">
                        <aspxform:XTextBox id="XTextBox14" runat="server" CssClass="text" XDataBind="DF_MCustomer_Contact.ContactEmail" width="70%"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="td" style="HEIGHT: 23px">
                        <asp:Label id="XLabel19" runat="server" valuetodisplaytext value text="*" forecolor="Red"></asp:Label><asp:Label id="XLabel14" runat="server" valuetodisplaytext value text="联系人地址"></asp:Label></td>
                    <td class="td1">
                        <aspxform:XTextBox id="XTextBox11" runat="server" CssClass="text" XDataBind="DF_MCustomer_Contact.ContactAddr" width="70%"></aspxform:XTextBox>
                    </td>
                    <td class="td" style="HEIGHT: 24px">
                        <asp:Label id="XLabel24" runat="server" valuetodisplaytext value text="*" forecolor="Red"></asp:Label><asp:Label id="XLabel6" runat="server" valuetodisplaytext value text="部门名称"></asp:Label></td>
                    <td class="td1">
                        <aspxform:XDropDownList id="XDropDownList1" runat="server" Width="50%" XDataBind="DF_MCustomer_Contact.ContactDept" Height="23px" XDataSource="TableName:DF_DataSourceList;Filter:Type->varDept;OrderBy:OrderID" DisplayColumn="Name" ValueColumn="Value">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XLabel id="XLabel25" runat="server" text="部门" XDataBind="varDept" Value ValueToDisplayText HiddenExpress="1"></aspxform:XLabel>
                    </td>
                </tr>
                <tr>
                    <td class="td" style="HEIGHT: 24px">
                        <asp:Label id="Label1" runat="server" text="邮编"></asp:Label></td>
                    <td class="td1">
                        <aspxform:XTextBox id="XTextBox16" runat="server" CssClass="text" XDataBind="DF_MCustomer_Contact.ZipCode" width="70%"></aspxform:XTextBox>
                    </td>
                    <td class="td">
                        <asp:Label id="XLabel5" runat="server" valuetodisplaytext value text="职位名称"></asp:Label></td>
                    <td class="td1">
                        <aspxform:XTextBox id="XTextBox6" runat="server" CssClass="text" XDataBind="DF_MCustomer_Contact.Position" width="70%"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="td" style="HEIGHT: 24px">
                        <asp:Label id="XLabel10" runat="server" valuetodisplaytext value text="联系人类型"></asp:Label></td>
                    <td class="td1">
                        <aspxform:XDropDownList id="XDropDownList4" runat="server" Width="150px" XDataBind="DF_MCustomer_Contact.ContactType" XDataSource="TableName:DF_DataSourceList;Filter:Type->varlianxirenleixing" DisplayColumn="Name" ValueColumn="ItemID" PromptText="--------请选择-------">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XLabel id="XLabel22" runat="server" text="lianxirenleixing" XDataBind="varlianxirenleixing" Value ValueToDisplayText HiddenExpress="1" BackColor="#d4e4fe"></aspxform:XLabel>
                    </td>
                    <td class="td" style="HEIGHT: 24px">
                        <asp:Label id="XLabel11" runat="server" valuetodisplaytext value text="联系人状态"></asp:Label></td>
                    <td class="td1">
                        <aspxform:XDropDownList id="XDropDownList6" runat="server" Width="50%" XDataBind="DF_MCustomer_Contact.ContactStatus" XDataSource="TableName:DF_DataSourceList;Filter:Type->varlianxirenzhuangtai" DisplayColumn="Name" ValueColumn="ItemID">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XLabel id="XLabel23" runat="server" text="lianxirenzhuangtai" XDataBind="varlianxirenzhuangtai" Value ValueToDisplayText HiddenExpress="1" BackColor="#d4e4fe"></aspxform:XLabel>
                    </td>
                </tr>
            </tbody>
        </table>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator1" runat="server" ControlToValidate="XTextBox5" ErrorMessage="请填写联系人姓名"></aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator3" runat="server" ControlToValidate="XTextBox8" ErrorMessage="请填写联系人固定电话" DisableExpress='DF_MCustomer_Contact.ContactMobile!=""'></aspxform:XRequiredFieldValidator>
        &nbsp; 
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator4" runat="server" ControlToValidate="XTextBox9" ErrorMessage="请填写分机号"></aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator2" runat="server" ControlToValidate="XTextBox13" ErrorMessage="请填写联系人移动电话" DisableExpress='DF_MCustomer_Contact.ContactTelCode!=""'></aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator5" runat="server" ControlToValidate="XTextBox14" ErrorMessage="请填写电子邮件"></aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator6" runat="server" ControlToValidate="XDropDownList1" ErrorMessage="请选择部门名称"></aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator7" runat="server" ControlToValidate="XTextBox11" ErrorMessage="请填写联系人地址"></aspxform:XRequiredFieldValidator>
        <br />
        <table width="1200" align="center">
            <tbody>
                <tr>
                    <td>
                        <aspxform:XProcessButtonList id="XProcessButtonList1" runat="server" PositionSelectVisible="False"></aspxform:XProcessButtonList>
                    </td>
                </tr>
            </tbody>
        </table>
    </form>
</body>
</html>
