<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GYSAdd.aspx.cs" Inherits="WorkFlow.GYSManager.GYSAdd" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!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>
    <link href="../FlowPage/css/main.css" rel="stylesheet" type="text/css" />
    <link href="../FlowPage/css/ext-all.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .cbStates-list
        {
            width: 298px;
            font: 11px tahoma,arial,helvetica,sans-serif;
        }
        .cbStates-list th
        {
            font-weight: bold;
        }
        .cbStates-list td, .cbStates-list th
        {
            padding: 3px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <ext:ResourceManager ID="ResourceManager1" runat="server" DirectMethodNamespace="DirectMethod">
    </ext:ResourceManager>
    <ext:Viewport ID="Viewport1" runat="server" Layout="border">
        <Items>
            <ext:Panel ID="PList" runat="server" Layout="Fit" Region="Center">
                <Items>
                    <ext:Panel ID="Panel6" runat="server" Border="false" AutoScroll="true">
                        <TopBar>
                            <ext:Toolbar ID="Toolbar1" runat="server">
                                <Items>
                                    <ext:Hidden ID="hidAccount" runat="server">
                                    </ext:Hidden>
                                    <ext:Hidden ID="UpdateId" runat="server">
                                    </ext:Hidden>
                                    <ext:Button ID="Button3" runat="server" Text="保存" Icon="Disk" ToolTip="保存供应商">
                                        <DirectEvents>
                                            <Click OnEvent="Add_Click">
                                            </Click>
                                        </DirectEvents>
                                    </ext:Button>
                                </Items>
                            </ext:Toolbar>
                        </TopBar>
                        <Items>
                            <ext:Panel ID="Panel5" runat="server" Title="<span style='font-size: 12px;'>供应商信息</span>"
                                FormGroup="true" AutoScroll="false">
                                <Content>
                                    <table cellspacing="9">
                                        <tr>
                                            <td>
                                                供应商名称：<span style="color: Red">*</span>
                                            </td>
                                            <td style="padding-top: 2px; padding-bottom: 2px">
                                                <ext:TextField ID="GYSMC" runat="server" Width="215">
                                                </ext:TextField>
                                            </td>
                                            <td>
                                                负责人：<span style="color: Red">*</span>
                                            </td>
                                            <td style="padding-top: 2px; padding-bottom: 2px">
                                                    <ext:ComboBox ID="FZR" runat="server" Width="215" DisplayField="Name" ValueField="LoginAccount"
                                                    TypeAhead="true" Mode="Local" ForceSelection="true" TriggerAction="All" EmptyText="选择一个负责人"
                                                    ItemSelector="div.list-item" SelectOnFocus="true">
                                                    <Store>
                                                        <ext:Store ID="Store1" runat="server">
                                                            <Reader>
                                                                <ext:JsonReader IDProperty="LoginAccount">
                                                                    <Fields>
                                                                        <ext:RecordField Name="DepartmentName" />
                                                                        <ext:RecordField Name="Name" />
                                                                        <ext:RecordField Name="PostionName" />
                                                                        <ext:RecordField Name="LoginAccount" />
                                                                    </Fields>
                                                                </ext:JsonReader>
                                                            </Reader>
                                                        </ext:Store>
                                                    </Store>
                                                    <Template ID="Template1" runat="server">
                                                        <Html>
                                                        <tpl for=".">
						                                    <div class="list-item">
							                                     <h3>{LoginAccount}{Name}</h3>
							                                     {DepartmentName}, {PostionName}
						                                    </div>
					                                    </tpl>
                                                        </Html>
                                                    </Template>
                                                </ext:ComboBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                编号：
                                            </td>
                                            <td style="padding-top: 2px; padding-bottom: 2px">
                                                <ext:TextField ID="BH" runat="server" Width="215" ReadOnly="true">
                                                </ext:TextField>
                                            </td>
                                            <td>
                                                电话：
                                            </td>
                                            <td style="padding-top: 2px; padding-bottom: 2px">
                                                <ext:TextField ID="DH" runat="server" Width="215">
                                                </ext:TextField>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                传真：
                                            </td>
                                            <td style="padding-top: 2px; padding-bottom: 2px">
                                                <ext:TextField ID="CZ" runat="server" Width="215">
                                                </ext:TextField>
                                            </td>
                                            <td>
                                                Email：
                                            </td>
                                            <td style="padding-top: 2px; padding-bottom: 2px">
                                                <ext:TextField ID="Email" runat="server" Width="215">
                                                </ext:TextField>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                网址：
                                            </td>
                                            <td style="padding-top: 2px; padding-bottom: 2px">
                                               http:// <ext:TextField ID="WZ" runat="server" Width="215">
                                                </ext:TextField>
                                            </td>
                                            <td>
                                                员工人数：
                                            </td>
                                            <td style="padding-top: 2px; padding-bottom: 2px">
                                            <ext:ComboBox ID="YGRS" runat="server" Width="215" DisplayField="FLName" ValueField="Id"
                                                    TypeAhead="true" Mode="Local" ForceSelection="true" TriggerAction="All" ItemSelector="div.list-item"
                                                    SelectOnFocus="true">
                                                    <Store>
                                                        <ext:Store ID="SYGRS" runat="server">
                                                            <Reader>
                                                                <ext:JsonReader IDProperty="Id">
                                                                    <Fields>
                                                                        <ext:RecordField Name="FLName" />
                                                                        <ext:RecordField Name="Id" />
                                                                    </Fields>
                                                                </ext:JsonReader>
                                                            </Reader>
                                                        </ext:Store>
                                                    </Store>
                                                    <Template ID="Template2" runat="server">
                                                        <Html>
                                                        <tpl for=".">
						                                    <div class="list-item">
							                                     <h3>{FLName}</h3>							
						                                    </div>
					                                    </tpl>
                                                        </Html>
                                                    </Template>
                                                </ext:ComboBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                供应商级别 ：
                                            </td>
                                            <td style="padding-top: 2px; padding-bottom: 2px">
                                             <ext:ComboBox ID="GYSJB" runat="server" Width="215" DisplayField="FLName" ValueField="Id"
                                                    TypeAhead="true" Mode="Local" ForceSelection="true" TriggerAction="All" ItemSelector="div.list-item"
                                                    SelectOnFocus="true">
                                                    <Store>
                                                        <ext:Store ID="SKHJB" runat="server">
                                                            <Reader>
                                                                <ext:JsonReader IDProperty="Id">
                                                                    <Fields>
                                                                        <ext:RecordField Name="FLName" />
                                                                        <ext:RecordField Name="Id" />
                                                                    </Fields>
                                                                </ext:JsonReader>
                                                            </Reader>
                                                        </ext:Store>
                                                    </Store>
                                                    <Template ID="Template4" runat="server">
                                                        <Html>
                                                        <tpl for=".">
					                                        <div class="list-item">
						                                         <h3>{FLName}</h3>							
					                                        </div>
				                                        </tpl>
                                                        </Html>
                                                    </Template>
                                                </ext:ComboBox>
                                            </td>
                                            <td>
                                                供应商状态 ：
                                            </td>
                                            <td style="padding-top: 2px; padding-bottom: 2px">
                                              <ext:ComboBox ID="GYSZT" runat="server" Width="215" DisplayField="FLName" ValueField="Id"
                                                    TypeAhead="true" Mode="Local" ForceSelection="true" TriggerAction="All" ItemSelector="div.list-item"
                                                    SelectOnFocus="true">
                                                    <Store>
                                                        <ext:Store ID="SKHZT" runat="server">
                                                            <Reader>
                                                                <ext:JsonReader IDProperty="Id">
                                                                    <Fields>
                                                                        <ext:RecordField Name="FLName" />
                                                                        <ext:RecordField Name="Id" />
                                                                    </Fields>
                                                                </ext:JsonReader>
                                                            </Reader>
                                                        </ext:Store>
                                                    </Store>
                                                    <Template ID="Template5" runat="server">
                                                        <Html>
                                                        <tpl for=".">
						                                    <div class="list-item">
							                                     <h3>{FLName}</h3>							
						                                    </div>
					                                    </tpl>
                                                        </Html>
                                                    </Template>
                                                </ext:ComboBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                行业 ：
                                            </td>
                                            <td style="padding-top: 2px; padding-bottom: 2px">
                                              <ext:ComboBox ID="HY" runat="server" Width="215" DisplayField="FLName" ValueField="Id"
                                                    TypeAhead="true" Mode="Local" ForceSelection="true" TriggerAction="All" ItemSelector="div.list-item"
                                                    SelectOnFocus="true">
                                                    <Store>
                                                        <ext:Store ID="SHY" runat="server">
                                                            <Reader>
                                                                <ext:JsonReader IDProperty="Id">
                                                                    <Fields>
                                                                        <ext:RecordField Name="FLName" />
                                                                        <ext:RecordField Name="Id" />
                                                                    </Fields>
                                                                </ext:JsonReader>
                                                            </Reader>
                                                        </ext:Store>
                                                    </Store>
                                                    <Template ID="Template6" runat="server">
                                                        <Html>
                                                        <tpl for=".">
						                                    <div class="list-item">
							                                     <h3>{FLName}</h3>							
						                                    </div>
					                                    </tpl>
                                                        </Html>
                                                    </Template>
                                                </ext:ComboBox>
                                            </td>
                                            <td>
                                                公司性质 ：
                                            </td>
                                            <td style="padding-top: 2px; padding-bottom: 2px">
                                            <ext:ComboBox ID="GSXZ" runat="server" Width="215" DisplayField="FLName" ValueField="Id"
                                                    TypeAhead="true" Mode="Local" ForceSelection="true" TriggerAction="All" ItemSelector="div.list-item"
                                                    SelectOnFocus="true">
                                                    <Store>
                                                        <ext:Store ID="SGSXZ" runat="server">
                                                            <Reader>
                                                                <ext:JsonReader IDProperty="Id">
                                                                    <Fields>
                                                                        <ext:RecordField Name="FLName" />
                                                                        <ext:RecordField Name="Id" />
                                                                    </Fields>
                                                                </ext:JsonReader>
                                                            </Reader>
                                                        </ext:Store>
                                                    </Store>
                                                    <Template ID="Template7" runat="server">
                                                        <Html>
                                                        <tpl for=".">
						                                    <div class="list-item">
							                                     <h3>{FLName}</h3>							
						                                    </div>
					                                    </tpl>
                                                        </Html>
                                                    </Template>
                                                </ext:ComboBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                营业额 ：
                                            </td>
                                            <td style="padding-top: 2px; padding-bottom: 2px" colspan="3">
                                             <ext:ComboBox ID="YYE" runat="server" Width="215" DisplayField="FLName" ValueField="Id"
                                                    TypeAhead="true" Mode="Local" ForceSelection="true" TriggerAction="All" ItemSelector="div.list-item"
                                                    SelectOnFocus="true">
                                                    <Store>
                                                        <ext:Store ID="SYYE" runat="server">
                                                            <Reader>
                                                                <ext:JsonReader IDProperty="Id">
                                                                    <Fields>
                                                                        <ext:RecordField Name="FLName" />
                                                                        <ext:RecordField Name="Id" />
                                                                    </Fields>
                                                                </ext:JsonReader>
                                                            </Reader>
                                                        </ext:Store>
                                                    </Store>
                                                    <Template ID="Template16" runat="server">
                                                        <Html>
                                                        <tpl for=".">
						                                    <div class="list-item">
							                                     <h3>{FLName}</h3>							
						                                    </div>
					                                    </tpl>
                                                        </Html>
                                                    </Template>
                                                </ext:ComboBox>
                                            </td>
                                        </tr>
                                    </table>
                                </Content>
                            </ext:Panel>
                            <ext:Panel ID="Panel1" runat="server" Title="<span style='font-size: 12px;'>地址信息</span>"
                                FormGroup="true" AutoScroll="false">
                                <Content>
                                    <table cellspacing="9">
                                        <tr>
                                            <td>
                                                国家：
                                            </td>
                                            <td style="padding-top: 2px; padding-bottom: 2px">
                                                <ext:ComboBox ID="GJ" runat="server" Width="215" DisplayField="Name" ValueField="Id"
                                                    TypeAhead="true" Mode="Local" ForceSelection="true" TriggerAction="All" ItemSelector="div.list-item"
                                                    SelectOnFocus="true">
                                                    <Store>
                                                        <ext:Store ID="SGJ" runat="server">
                                                            <Reader>
                                                                <ext:JsonReader IDProperty="Id">
                                                                    <Fields>
                                                                        <ext:RecordField Name="Name" />
                                                                        <ext:RecordField Name="Id" />
                                                                    </Fields>
                                                                </ext:JsonReader>
                                                            </Reader>
                                                        </ext:Store>
                                                    </Store>
                                                    <Template ID="Template13" runat="server">
                                                        <Html>
                                                        <tpl for=".">
						                                    <div class="list-item">
							                                     <h3>{Name}</h3>							
						                                    </div>
					                                    </tpl>
                                                        </Html>
                                                    </Template>
                                                    <DirectEvents>
                                                        <Change OnEvent="GJ_Change">
                                                            <EventMask ShowMask="true" Msg="正在查询中，请稍后..." />
                                                        </Change>
                                                    </DirectEvents>
                                                </ext:ComboBox>
                                            </td>
                                            <td>
                                                省份：
                                            </td>
                                            <td style="padding-top: 2px; padding-bottom: 2px">
                                              <ext:ComboBox ID="SF" runat="server" Width="215" DisplayField="Name" ValueField="Id"
                                                    TypeAhead="true" Mode="Local" ForceSelection="true" TriggerAction="All" ItemSelector="div.list-item"
                                                    SelectOnFocus="true">
                                                    <Store>
                                                        <ext:Store ID="SSF" runat="server">
                                                            <Reader>
                                                                <ext:JsonReader IDProperty="Id">
                                                                    <Fields>
                                                                        <ext:RecordField Name="Name" />
                                                                        <ext:RecordField Name="Id" />
                                                                    </Fields>
                                                                </ext:JsonReader>
                                                            </Reader>
                                                        </ext:Store>
                                                    </Store>
                                                    <Template ID="Template14" runat="server">
                                                        <Html>
                                                        <tpl for=".">
					                                        <div class="list-item">
						                                         <h3>{Name}</h3>							
					                                        </div>
				                                        </tpl>
                                                        </Html>
                                                    </Template>
                                                    <DirectEvents>
                                                        <Change OnEvent="SF_Change">
                                                            <EventMask ShowMask="true" Msg="正在查询中，请稍后..." />
                                                        </Change>
                                                    </DirectEvents>
                                                </ext:ComboBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                城市：
                                            </td>
                                            <td style="padding-top: 2px; padding-bottom: 2px">
                                              <ext:ComboBox ID="CS" runat="server" Width="215" DisplayField="Name" ValueField="Id"
                                                    TypeAhead="true" Mode="Local" ForceSelection="true" TriggerAction="All" ItemSelector="div.list-item"
                                                    SelectOnFocus="true">
                                                    <Store>
                                                        <ext:Store ID="SCS" runat="server">
                                                            <Reader>
                                                                <ext:JsonReader IDProperty="Id">
                                                                    <Fields>
                                                                        <ext:RecordField Name="Name" />
                                                                        <ext:RecordField Name="Id" />
                                                                    </Fields>
                                                                </ext:JsonReader>
                                                            </Reader>
                                                        </ext:Store>
                                                    </Store>
                                                    <Template ID="Template15" runat="server">
                                                        <Html>
                                                        <tpl for=".">
					                                        <div class="list-item">
						                                         <h3>{Name}</h3>							
					                                        </div>
				                                        </tpl>
                                                        </Html>
                                                    </Template>
                                                </ext:ComboBox>
                                            </td>
                                            <td>
                                                邮编：
                                            </td>
                                            <td style="padding-top: 2px; padding-bottom: 2px">
                                              <ext:TextField ID="YB" runat="server" Width="215">
                                                </ext:TextField>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                街道 ：
                                            </td>
                                            <td style="padding-top: 2px; padding-bottom: 2px" colspan="3">
                                             <ext:TextField ID="JD" runat="server" Width="490">
                                                </ext:TextField>
                                            </td>
                                        </tr>
                                    </table>
                                </Content>
                            </ext:Panel>
                            <ext:Panel ID="Panel2" runat="server" Title="<span style='font-size: 12px;'>描述名称</span>"
                                FormGroup="true" AutoScroll="false">
                                <Content>
                                    <table cellspacing="9">
                                        <tr>
                                            <td>
                                                描述：
                                            </td>
                                            <td style="padding-top: 2px; padding-bottom: 2px">
                                                 <ext:HtmlEditor ID="MS" runat="server" Height="140" Width="580">
                                                </ext:HtmlEditor>
                                            </td>
                                        </tr>
                                    </table>
                                </Content>
                            </ext:Panel>
                        </Items>
                    </ext:Panel>
                </Items>
            </ext:Panel>
        </Items>
    </ext:Viewport>
    </form>
</body>
</html>
