<%@ 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"];
      if(!string.IsNullOrEmpty(item)){
         this.XTextBox20.Text = item;
         }
          string AAA= Request.QueryString["AAA"];
          if(!string.IsNullOrEmpty(AAA)){
         this.XTextBox20.Text = AAA;
         }
          string cus = Request.QueryString["cusid"];
         this.XTextBox3.Text= cus;
          string itemID = Request.QueryString["edititem"];
         this.XTextBox16.Text = itemID;
    }

</script>
<script type="text/javascript">

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

}

</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}
    </style>
</head>
<body>
    <form runat="server">
        <table class="head" border="0" cellspacing="0" cellpadding="0" width="1200">
            <tbody>
                <tr>
                    <td class="logo">
                    </td>
                    <td class="biaoti">
                        <aspxform:XLabel id="XLabel2" runat="server" text="联系人" ValueToDisplayText Value></aspxform:XLabel>
                    </td>
                    <td class="formno">
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table class="table">
            <tbody>
                <tr>
                    <td style="WIDTH: 6%" class="basiclblfirst">
                        <aspxform:XLabel id="XLabel20" runat="server" text="创建用户" ValueToDisplayText Value></aspxform:XLabel>
                    </td>
                    <td style="WIDTH: 20%" class="basictextfirst">
                        <aspxform:XTextBox id="XTextBox4" runat="server" ValueToDisplayText="TableName:V_Users;FilterColumn:Account;DisplayColumn:DisplayName" XDataBind="DF_CONTACT_INFO.CreateUser" backColor="#e6f1f8" CssClass="text" Width="50%"></aspxform:XTextBox>
                    </td>
                    <td style="WIDTH: 6%" class="basiclblfirst3">
                        <aspxform:XLabel id="XLabel21" runat="server" text="创建日期" ValueToDisplayText Value></aspxform:XLabel>
                    </td>
                    <td style="WIDTH: 20%" class="basictextfirst3">
                        <aspxform:XDateTimePicker id="XDateTimePicker1" runat="server" XDataBind="DF_CONTACT_INFO.CreateDate" backColor="#e6f1f8" CssClass="text" Width="50%"></aspxform:XDateTimePicker>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table class="table" width="586">
            <tbody>
                <tr>
                    <td class="title1" height="17" colspan="4">
                        <aspxform:XLabel id="XLabel100" runat="server" text="客户信息 " ValueToDisplayText Value></aspxform:XLabel>
                        <aspxform:XTextBox id="XTextBox16" runat="server" ValueToDisplayText="TableName:V_DF_TheContract;FilterColumn:ItemID;DisplayColumn:ItemID" Value XDataBind="DF_CONTACT_INFO.TTID" Width="91px" HiddenInput="True" Min="0" Max="0" BorderWidth="1px" BorderColor="Gainsboro" DataMap="OwnUser->DF_CONTACT_INFO.OwnUser;BelongCus->varCustomer;FaxExt->DF_CONTACT_INFO.FaxExt;DeptName->DF_CONTACT_INFO.DeptName;ContactName->DF_CONTACT_INFO.ContactName;TelCode->DF_CONTACT_INFO.TelCode;FaxTel->DF_CONTACT_INFO.FaxTel;TelExt->DF_CONTACT_INFO.TelExt;DeptType->DF_CONTACT_INFO.DeptType;CusStatus->DF_CONTACT_INFO.CusStatus;FaxCode->DF_CONTACT_INFO.FaxCode;PositionName->DF_CONTACT_INFO.PositionName;Email->DF_CONTACT_INFO.Email;CreateDate->DF_CONTACT_INFO.CreateDate;Mobile->DF_CONTACT_INFO.Mobile;TelPhone->DF_CONTACT_INFO.TelPhone;CreateUser->DF_CONTACT_INFO.CreateUser"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox17" runat="server" ValueToDisplayText Value XDataBind="varCustomer" Width="50px" HiddenInput="True" Min="0" Max="0" BorderWidth="1px" BorderColor="Gainsboro"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="td" height="47">
                        <aspxform:XLabel id="XlUser" runat="server" text="所有者" ValueToDisplayText Value></aspxform:XLabel>
                    </td>
                    <td class="td1">
                        <aspxform:XTextBox id="XxtUser" runat="server" ValueToDisplayText="TableName:V_Users;FilterColumn:Account;DisplayColumn:DisplayName" XDataBind="DF_CONTACT_INFO.OwnUser" backColor="#e6f1f8" CssClass="text" Width="50%" Express="DF_CONTACT_INFO.CreateUser"></aspxform:XTextBox>
                    </td>
                    <td class="td">
                        <aspxform:XLabel id="XLabel19" runat="server" text="客户状态" ValueToDisplayText Value></aspxform:XLabel>
                    </td>
                    <td class="td1">
                        <aspxform:XDropDownList id="XDropDownList5" runat="server" XDataBind="varstatuts" Width="50%" HiddenExpress="1" XDataSource="TableName:DF_DataSourceList;Filter:Type->varkehuzhuangtai" DisplayColumn="Name" ValueColumn="ItemID">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XDropDownList id="XDropDownList1" runat="server" XDataBind="DF_CONTACT_INFO.CusStatus" Width="50%" Express='if(varstatuts!="",varstatuts,DF_CONTACT_INFO.CusStatus)' XDataSource="TableName:DF_DataSourceList;Filter:Type->varkehuzhuangtai" DisplayColumn="Name" ValueColumn="ItemID" DisableExpress="1">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XLabel id="XLabel25" runat="server" text="zhuangtai" ValueToDisplayText Value XDataBind="varkehuzhuangtai" HiddenExpress="1"></aspxform:XLabel>
                    </td>
                </tr>
                <tr>
                    <td class="td" widt='20%"'>
                        <aspxform:XLabel id="XLabel3" runat="server" text="所属客户" ValueToDisplayText Value></aspxform:XLabel>
                    </td>
                    <td class="td1" colspan="3">
                        <aspxform:XTextBox id="XTextBox20" runat="server" ValueToDisplayText="TableName:DF_CUSSUP_INFO;FilterColumn:ItemID;DisplayColumn:CusChiName" XDataBind="DF_CONTACT_INFO.BelongCus" backColor="#e6f1f8" CssClass="text1" Width="44%" DataMap="CreateUser->DF_CONTACT_INFO.CreateUser;CusType->DF_CONTACT_INFO.CusStatus" Express='if(DF_CONTACT_INFO.CusID!="",DF_CONTACT_INFO.CusID,if(varCustomer!="",varCustomer,DF_CONTACT_INFO.BelongCus))'></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox3" runat="server" ValueToDisplayText="TableName:DF_CUSSUP_INFO;FilterColumn:ItemID;DisplayColumn:ItemID" XDataBind="DF_CONTACT_INFO.CusID" HiddenInput="True" BorderWidth="1" BorderColor="#DCDCDC" DataMap="CusType->varstatuts"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table class="table" width="586">
            <tbody>
                <tr>
                    <td class="title1" height="17" colspan="4">
                        <aspxform:XLabel id="XLabel1" runat="server" text="联系人基本信息 " ValueToDisplayText Value></aspxform:XLabel>
                    </td>
                </tr>
                <tr>
                    <td class="td" height="23">
                        <aspxform:XLabel id="XLabel7" runat="server" text="联系人姓名" ValueToDisplayText Value></aspxform:XLabel>
                    </td>
                    <td class="td1">
                        <aspxform:XTextBox id="XTextBox5" runat="server" XDataBind="DF_CONTACT_INFO.ContactName" CssClass="text" width="50%"></aspxform:XTextBox>
                    </td>
                    <td class="td">
                        <aspxform:XLabel id="XLabel6" runat="server" text="部门名称" ValueToDisplayText Value></aspxform:XLabel>
                    </td>
                    <td class="td1">
                        <aspxform:XTextBox id="XTextBox6" runat="server" XDataBind="DF_CONTACT_INFO.DeptName" CssClass="text" width="50%"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="td" height="23">
                        <aspxform:XLabel id="XLabel9" runat="server" text="固定电话" ValueToDisplayText Value></aspxform:XLabel>
                    </td>
                    <td class="td1">
                        <aspxform:XTextBox id="XTextBox7" runat="server" ValueToDisplayText Value XDataBind="DF_CONTACT_INFO.TelCode" CssClass="text" Width="55px"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox8" runat="server" ValueToDisplayText Value XDataBind="DF_CONTACT_INFO.TelPhone" CssClass="text" Width="113px"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox9" runat="server" ValueToDisplayText Value XDataBind="DF_CONTACT_INFO.TelExt" CssClass="text" Width="55px"></aspxform:XTextBox>
                    </td>
                    <td class="td">
                        <aspxform:XLabel id="XLabel10" runat="server" text="传真" ValueToDisplayText Value></aspxform:XLabel>
                    </td>
                    <td class="td1">
                        <aspxform:XTextBox id="XTextBox10" runat="server" ValueToDisplayText Value XDataBind="DF_CONTACT_INFO.FaxCode" CssClass="text" Width="55px"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox11" runat="server" ValueToDisplayText Value XDataBind="DF_CONTACT_INFO.FaxTel" CssClass="text" Width="113px"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox12" runat="server" ValueToDisplayText Value XDataBind="DF_CONTACT_INFO.FaxExt" CssClass="text" Width="55px"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="td" height="24">
                        <aspxform:XLabel id="XLabel8" runat="server" text="移动电话" ValueToDisplayText Value></aspxform:XLabel>
                    </td>
                    <td class="td1">
                        <aspxform:XTextBox id="XTextBox13" runat="server" XDataBind="DF_CONTACT_INFO.Mobile" CssClass="text" width="50%"></aspxform:XTextBox>
                    </td>
                    <td class="td">
                        <aspxform:XLabel id="XLabel13" runat="server" text="电子邮件" ValueToDisplayText Value></aspxform:XLabel>
                    </td>
                    <td class="td1">
                        <aspxform:XTextBox id="XTextBox14" runat="server" XDataBind="DF_CONTACT_INFO.Email" CssClass="text" width="50%"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="td" height="23">
                        <aspxform:XLabel id="XLabel11" runat="server" text="职位名称" ValueToDisplayText Value></aspxform:XLabel>
                    </td>
                    <td class="td1">
                        <aspxform:XTextBox id="XTextBox15" runat="server" XDataBind="DF_CONTACT_INFO.PositionName" CssClass="text" width="50%"></aspxform:XTextBox>
                    </td>
                    <td class="td">
                        <aspxform:XLabel id="XLabel4" runat="server" text="部门类型" ValueToDisplayText Value></aspxform:XLabel>
                    </td>
                    <td class="td1">
                        <aspxform:XDropDownList id="XDropDownList3" runat="server" XDataBind="DF_CONTACT_INFO.DeptType" Width="50%" XDataSource="TableName:DF_DataSourceList;Filter:Type->varbumenleixing" DisplayColumn="Name" ValueColumn="ItemID" Height="23px">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XLabel id="XLabel5" runat="server" text="bumenleixing" ValueToDisplayText Value XDataBind="varbumenleixing" HiddenExpress="1"></aspxform:XLabel>
                    </td>
                </tr>
                <tr>
                    <td class="td" height="36">
                        <aspxform:XLabel id="XLabel16" runat="server" text="联系人类型" ValueToDisplayText Value></aspxform:XLabel>
                    </td>
                    <td class="td1">
                        <aspxform:XDropDownList id="XDropDownList4" runat="server" XDataBind="DF_CONTACT_INFO.ContactType" Width="50%" 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" ValueToDisplayText Value XDataBind="varlianxirenleixing" HiddenExpress="1"></aspxform:XLabel>
                    </td>
                    <td class="td">
                        <aspxform:XLabel id="XLabel17" runat="server" text="联系人状态" ValueToDisplayText Value></aspxform:XLabel>
                    </td>
                    <td class="td1">
                        <aspxform:XDropDownList id="XDropDownList6" runat="server" XDataBind="DF_CONTACT_INFO.ContactStatus" Width="50%" 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" ValueToDisplayText Value XDataBind="varlianxirenzhuangtai" HiddenExpress="1"></aspxform:XLabel>
                    </td>
                </tr>
                <tr>
                    <td class="td" height="37">
                        <aspxform:XLabel id="XLabel161" runat="server" text="主数据验证状态" ValueToDisplayText Value></aspxform:XLabel>
                    </td>
                    <td class="td1">
                        <aspxform:XDropDownList id="XDropDownList41" runat="server" XDataBind="DF_CONTACT_INFO.IsAdmins" Width="50%" XDataSource="TableName:DF_DataSourceList;Filter:Type->varzhushujuyanzhengzhuangtai" DisplayColumn="Name" ValueColumn="ItemID">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XLabel id="XLabel221" runat="server" text="zhushujuyanzhengzhuangtai" ValueToDisplayText Value XDataBind="varzhushujuyanzhengzhuangtai" HiddenExpress="1"></aspxform:XLabel>
                    </td>
                    <td class="td">
                    </td>
                    <td class="td1">
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table class="table" hiddenexpress="1">
            <tbody>
                <tr>
                    <td class="title1" height="22" colspan="3">
                        <aspxform:XLabel id="XLabel26" runat="server" text="常用地址" ValueToDisplayText Value></aspxform:XLabel>
                        <aspxform:XDataBrowserButton id="XDataBrowserButton1" runat="server" CssClass="anxiu" Width="60px" XDataSource Height="21px" PopupWndHeight="-1" UseSubmitBehavior="False" PopupWndWidth="-1" MultiSelect="True" Text="添加"></aspxform:XDataBrowserButton>
                        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator1" runat="server" ErrorMessage="请选择主数据验证状态" ControlToValidate="XDropDownList41"></aspxform:XRequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td style="WIDTH: 200px" class="tds">
                        <aspxform:XLabel id="XLabel27" runat="server" text="类型" ValueToDisplayText Value></aspxform:XLabel>
                    </td>
                    <td class="tds">
                        <aspxform:XLabel id="XLabel28" runat="server" text="地址" ValueToDisplayText Value></aspxform:XLabel>
                    </td>
                    <td style="TEXT-ALIGN: center; WIDTH: 200px; BORDER-RIGHT: #93a1ae 1px solid" class="tds">
                        <aspxform:XLabel id="XLabel29" runat="server" text="邮编" ValueToDisplayText Value></aspxform:XLabel>
                    </td>
                </tr>
                <tr>
                    <td class="tds1">
                        <aspxform:XDropDownList id="XDropDownList2" runat="server" XDataBind="DF_CONTACTADDRESS_DETAIL.Type" Width="99.9%" XDataSource="TableName:DF_DataSourceList;Filter:Type->varchangyongdizhi" DisplayColumn="Name" ValueColumn="ItemID">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XLabel id="XLabel24" runat="server" text="changyongdizhi" ValueToDisplayText Value XDataBind="varchangyongdizhi"></aspxform:XLabel>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox1" runat="server" XDataBind="DF_CONTACTADDRESS_DETAIL.Address" CssClass="text" width="99.9%"></aspxform:XTextBox>
                    </td>
                    <td style="TEXT-ALIGN: center; WIDTH: 200px; BORDER-RIGHT: #93a1ae 1px solid" class="tds1">
                        <aspxform:XTextBox id="XTextBox2" runat="server" XDataBind="DF_CONTACTADDRESS_DETAIL.ZipCode" CssClass="text" width="99.9%"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <aspxform:XProcessButtonList id="XProcessButtonList1" runat="server" PositionSelectVisible="False"></aspxform:XProcessButtonList>
    </form>
</body>
</html>
