<%@ Page language="c#" Codebehind="ClientEdit.aspx.cs"  validateRequest=false  AutoEventWireup="false" Inherits="WebOCRM.Crm.ClientEdit" buffer="True" smartNavigation="True"%>
<%@ Register TagPrefix="ftb" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %>
<%@ Register TagPrefix="uc1" TagName="Css" Src="../include/Css.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>BargainEdit</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<script language="javascript" src="../js/JScript.js"></script>
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<uc1:css id="Css1" runat="server"></uc1:css>
			<TABLE cellSpacing="1" cellPadding="0" width="100%" border="0" align="center">
				<TR>
					<TD class="WsdnOrgTitle1" colSpan="4"><asp:button id="Button1" runat="server" Text="基本资料↓"></asp:button><asp:textbox id="Wsdn_StarCRM_Id" runat="server" Visible="False"></asp:textbox></TD>
				</TR>
				<TR>
					<TD class="" colSpan="4"><asp:panel id="Panel1" runat="server">
							<TABLE cellSpacing="1" cellPadding="0" width="100%" align="center" border="0">
								<TR class="WsdnOrgInfo">
									<TD>
										<asp:Label id="Label1" runat="server">客户名称</asp:Label></TD>
									<TD class="WsdnOrgInfo">
										<asp:TextBox id="Wsdn_StarCRM_Name" runat="server" MaxLength="50" Width="200px"></asp:TextBox></TD>
									<TD>
										<asp:Label id="Label3" runat="server">主要联系人</asp:Label></TD>
									<TD class="WsdnOrgInfo">
										<asp:TextBox id="Wsdn_StarCRM_Linkman" runat="server"></asp:TextBox>&nbsp;<IMG onclick="javascript:selectlinkman();" alt="选择联系人" src="../image/mini_post.gif">
										&nbsp;<asp:ImageButton id="ImageButton5" runat="server" ImageUrl="../image/mini_query.gif"></asp:ImageButton></TD>
								</TR>
								<TR>
									<TD>
										<asp:Label id="Label14" runat="server">客户类别</asp:Label></TD>
									<TD class="WsdnOrgInfo">
										<asp:TextBox id="Wsdn_StarCRM_ClinetType" runat="server"></asp:TextBox>&nbsp;<IMG onclick="javascript:doselect('客户类别','Wsdn_StarCRM_ClinetType');" alt="察看该项目" src="../image/mini_post.gif">
									</TD>
									<TD>
										<asp:Label id="Label11" runat="server">客户性质</asp:Label></TD>
									<TD class="WsdnOrgInfo">
										<asp:TextBox id="Wsdn_StarCRM_Character" runat="server"></asp:TextBox>&nbsp;<IMG onclick="javascript:doselect('客户性质','Wsdn_StarCRM_Character');" alt="察看该项目" src="../image/mini_post.gif">
									</TD>
								</TR>
								<TR>
									<TD>
										<asp:Label id="Label2" runat="server">所处行业</asp:Label></TD>
									<TD class="WsdnOrgInfo">
										<asp:TextBox id="Wsdn_StarCRM_Vocation" runat="server"></asp:TextBox>&nbsp;<IMG onclick="javascript:doselect('行业','Wsdn_StarCRM_Vocation');" alt="察看该项目" src="../image/mini_post.gif">
									</TD>
									<TD>
										<asp:Label id="Label4" runat="server">商业关系</asp:Label></TD>
									<TD class="WsdnOrgInfo">
										<asp:TextBox id="Wsdn_StarCRM_Relation" runat="server"></asp:TextBox>&nbsp;<IMG onclick="javascript:doselect('商业关系','Wsdn_StarCRM_Relation');" alt="察看该项目" src="../image/mini_post.gif">
									</TD>
								</TR>
								<TR>
									<TD>
										<asp:Label id="Label15" runat="server">电话</asp:Label></TD>
									<TD class="WsdnOrgInfo">
										<asp:TextBox id="Wsdn_StarCRM_Phone" runat="server"></asp:TextBox>&nbsp;
									</TD>
									<TD>
										<asp:Label id="Label16" runat="server">传真</asp:Label></TD>
									<TD class="WsdnOrgInfo">
										<asp:TextBox id="Wsdn_StarCRM_Fax" runat="server"></asp:TextBox>&nbsp;
									</TD>
								</TR>
								<TR>
									<TD>
										<asp:Label id="Label5" runat="server">跟进员工</asp:Label></TD>
									<TD class="WsdnOrgInfo">
										<asp:TextBox id="Wsdn_StarCRM_Employee" runat="server"></asp:TextBox>&nbsp;<IMG onclick="javascript:selectemployee();" alt="选择员工" src="../image/mini_post.gif">
										&nbsp;<asp:ImageButton id="ImageButton6" runat="server" ImageUrl="../image/mini_query.gif"></asp:ImageButton></TD>
									<TD>
										<asp:Label id="Label6" runat="server">第一次会谈时间</asp:Label></TD>
									<TD class="WsdnOrgInfo">
										<asp:TextBox id="Wsdn_StarCRM_FirstTime" runat="server"></asp:TextBox>&nbsp;<A title="选择时间" href="javascript:OpenCalendar('Wsdn_StarCRM_FirstTime', false)"><IMG src="../image/ftb/insertdate.gif" align="absMiddle" border="0"></A>
										<asp:ImageButton id="ImageButton1" runat="server" ImageUrl="../image/mini_query.gif" AlternateText="计算至今的时间"></asp:ImageButton></TD>
								</TR>
								<TR>
									<TD>
										<asp:Label id="Label7" runat="server">最近联络时间</asp:Label></TD>
									<TD class="WsdnOrgInfo">
										<asp:TextBox id="Wsdn_StarCRM_LatelyTime" runat="server"></asp:TextBox>&nbsp;<A title="选择时间" href="javascript:OpenCalendar('Wsdn_StarCRM_LatelyTime', false)"><IMG src="../image/ftb/insertdate.gif" align="absMiddle" border="0"></A>
										<asp:ImageButton id="Imagebutton2" runat="server" ImageUrl="../image/mini_query.gif" AlternateText="计算至今的时间"></asp:ImageButton></TD>
									<TD>
										<asp:Label id="Label10" runat="server">地区</asp:Label></TD>
									<TD class="WsdnOrgInfo">
										<asp:TextBox id="Wsdn_StarCRM_Region" runat="server"></asp:TextBox>&nbsp;<IMG onclick="javascript:doselect('地区','Wsdn_StarCRM_Region');" alt="察看该项目" src="../image/mini_post.gif"></TD>
								</TR>
								<TR>
									<TD>
										<asp:Label id="Label8" runat="server">国家</asp:Label></TD>
									<TD class="WsdnOrgInfo">
										<asp:TextBox id="Wsdn_StarCRM_Country" runat="server"></asp:TextBox>&nbsp;<IMG onclick="javascript:doselect('国家','Wsdn_StarCRM_Country');" alt="察看该项目" src="../image/mini_post.gif"></TD>
									<TD>
										<asp:Label id="Label9" runat="server">省份</asp:Label></TD>
									<TD class="WsdnOrgInfo">
										<asp:TextBox id="Wsdn_StarCRM_Provine" runat="server"></asp:TextBox>&nbsp;<IMG onclick="javascript:doselect('省份','Wsdn_StarCRM_Provine');" alt="察看该项目" src="../image/mini_post.gif"></TD>
								</TR>
								<TR>
									<TD>
										<asp:Label id="Label12" runat="server">城市</asp:Label></TD>
									<TD class="WsdnOrgInfo">
										<asp:TextBox id="Wsdn_StarCRM_City" runat="server"></asp:TextBox>&nbsp;<IMG onclick="javascript:doselect('城市','Wsdn_StarCRM_City');" alt="察看该项目" src="../image/mini_post.gif">
									</TD>
									<TD>
										<asp:Label id="Label13" runat="server">公司主页</asp:Label></TD>
									<TD class="WsdnOrgInfo">
										<asp:TextBox id="Wsdn_StarCRM_URL" runat="server" Width="200px"></asp:TextBox>&nbsp;
									</TD>
								</TR>
								<TR>
									<TD>
										<asp:Label id="Label19" runat="server">邮编</asp:Label></TD>
									<TD class="WsdnOrgInfo">
										<asp:TextBox id="Wsdn_StarCRM_Postnum" runat="server"></asp:TextBox>&nbsp;
									</TD>
									<TD>
										<asp:Label id="Label18" runat="server">地址</asp:Label></TD>
									<TD class="WsdnOrgInfo">
										<asp:TextBox id="Wsdn_StarCRM_Address" runat="server" Width="200px"></asp:TextBox>&nbsp;
									</TD>
								</TR>
								<TR>
									<TD>
										<asp:Label id="Label17" runat="server">电子邮件</asp:Label></TD>
									<TD class="WsdnOrgInfo">
										<asp:TextBox id="Wsdn_StarCRM_Email" runat="server" Width="200px"></asp:TextBox>&nbsp;
									</TD>
									<TD>
										<asp:Label id="Label34" runat="server">相关部门</asp:Label></TD>
									<TD class="WsdnOrgInfo">
										<asp:TextBox id="Wsdn_StarCRM_Department" runat="server"></asp:TextBox>&nbsp;<IMG onclick="javascript:doselectdepartment();" alt="选择部门" src="../image/mini_post.gif">
									</TD>
								</TR>
								<TR>
									<TD>
										<asp:Label id="Label36" runat="server">录入时间</asp:Label></TD>
									<TD class="WsdnOrgInfo">
										<asp:TextBox id="Wsdn_StarCRM_Time" runat="server"></asp:TextBox>&nbsp;<asp:ImageButton id="Imagebutton4" runat="server" ImageUrl="../image/mini_query.gif" AlternateText="计算至今的时间"></asp:ImageButton></TD>
									<TD>
										<asp:Label id="Label37" runat="server">录入人员</asp:Label></TD>
									<TD class="WsdnOrgInfo">
										<asp:TextBox id="Wsdn_StarCRM_Recorder" runat="server"></asp:TextBox>&nbsp;
									</TD>
								</TR>
								<TR class="WsdnOrgInfo">
									<TD></TD>
									<TD>
										<asp:CheckBox id="Locked" runat="server" Text="是否锁定"></asp:CheckBox></TD>
									<TD>
										<asp:CheckBox id="Wsdn_StarCRM_IsPublic" runat="server" Text="其他部门可见" Checked="True"></asp:CheckBox></TD>
									<TD>
										<asp:CheckBox id="DeleteFlag" runat="server" Text="删除"></asp:CheckBox></TD>
								</TR>
							</TABLE>
						</asp:panel></TD>
				</TR>
				<TR>
					<TD class="WsdnOrgTitle1" colSpan="4"><asp:button id="Button4" runat="server" Text="其它信息↓"></asp:button></TD>
				</TR>
				<TR>
					<TD class="WsdnOrgInfo" colSpan="4"><asp:panel id="Panel2" runat="server" Visible="False">
							<TABLE cellSpacing="1" cellPadding="0" width="100%" border="0">
								<TR>
									<TD>
										<asp:Label id="Label20" runat="server">主要产品</asp:Label></TD>
									<TD class="WsdnOrgInfo">
										<asp:TextBox id="Wsdn_StarCRM_Mproduct" runat="server" Width="200px"></asp:TextBox>&nbsp;
									</TD>
									<TD>
										<asp:Label id="Label33" runat="server">税号</asp:Label></TD>
									<TD class="WsdnOrgInfo">
										<asp:TextBox id="Wsdn_StarCRM_Tax" runat="server"></asp:TextBox>&nbsp;
									</TD>
								</TR>
								<TR>
									<TD>
										<asp:Label id="Label21" runat="server">主要用户</asp:Label></TD>
									<TD class="WsdnOrgInfo">
										<asp:TextBox id="Wsdn_StarCRM_Muser" runat="server" Width="200px"></asp:TextBox>&nbsp;
									</TD>
									<TD>
										<asp:Label id="Label22" runat="server">上级机构</asp:Label></TD>
									<TD class="WsdnOrgInfo">
										<asp:TextBox id="Wsdn_StarCRM_Pdetp" runat="server"></asp:TextBox>&nbsp;
									</TD>
								</TR>
								<TR>
									<TD>
										<asp:Label id="Label23" runat="server">主要机构</asp:Label></TD>
									<TD class="WsdnOrgInfo">
										<asp:TextBox id="Wsdn_StarCRM_Mdept" runat="server" Width="200px"></asp:TextBox>&nbsp;
									</TD>
									<TD>
										<asp:Label id="Label24" runat="server">法人代表</asp:Label></TD>
									<TD class="WsdnOrgInfo">
										<asp:TextBox id="Wsdn_StarCRM_Corporation" runat="server"></asp:TextBox>&nbsp;
									</TD>
								</TR>
								<TR>
									<TD>
										<asp:Label id="Label25" runat="server">总经理</asp:Label></TD>
									<TD class="WsdnOrgInfo">
										<asp:TextBox id="Wsdn_StarCRM_Manager" runat="server"></asp:TextBox>&nbsp;
									</TD>
									<TD>
										<asp:Label id="Label26" runat="server">员工数</asp:Label></TD>
									<TD class="WsdnOrgInfo">
										<asp:TextBox id="Wsdn_StarCRM_Peoples" runat="server"></asp:TextBox>&nbsp;
									</TD>
								</TR>
								<TR>
									<TD>
										<asp:Label id="Label27" runat="server">年营业额</asp:Label></TD>
									<TD class="WsdnOrgInfo">
										<asp:TextBox id="Wsdn_StarCRM_Turnover" runat="server"></asp:TextBox>&nbsp;
									</TD>
									<TD>
										<asp:Label id="Label28" runat="server">财务状况</asp:Label></TD>
									<TD class="WsdnOrgInfo">
										<asp:TextBox id="Wsdn_StarCRM_Fstatus" runat="server"></asp:TextBox>&nbsp;<IMG onclick="javascript:doselect('财务状况','Wsdn_StarCRM_Fstatus');" alt="察看该项目" src="../image/mini_post.gif">
									</TD>
								</TR>
								<TR>
									<TD>
										<asp:Label id="Label29" runat="server">公司注册时间</asp:Label></TD>
									<TD class="WsdnOrgInfo">
										<asp:TextBox id="Wsdn_StarCRM_RegTime" runat="server"></asp:TextBox>&nbsp;<A title="选择时间" href="javascript:OpenCalendar('Wsdn_StarCRM_RegTime', false)"><IMG src="../image/ftb/insertdate.gif" align="absMiddle" border="0"></A><asp:ImageButton id="Imagebutton3" runat="server" ImageUrl="../image/mini_query.gif" AlternateText="计算至今的时间"></asp:ImageButton></TD>
									<TD>
										<asp:Label id="Label30" runat="server">开户银行</asp:Label></TD>
									<TD class="WsdnOrgInfo">
										<asp:TextBox id="Wsdn_StarCRM_Bank" runat="server"></asp:TextBox>&nbsp;<IMG onclick="javascript:doselect('银行','Wsdn_StarCRM_Bank');" alt="察看该项目" src="../image/mini_post.gif">
									</TD>
								</TR>
								<TR>
									<TD>
										<asp:Label id="Label31" runat="server">银行账号</asp:Label></TD>
									<TD class="WsdnOrgInfo">
										<asp:TextBox id="Wsdn_StarCRM_BankAccount" runat="server" Width="200px"></asp:TextBox></TD>
									<TD>
										<asp:Label id="Label32" runat="server">经营范围</asp:Label></TD>
									<TD class="WsdnOrgInfo">
										<asp:TextBox id="Wsdn_StarCRM_Farea" runat="server" Width="200px"></asp:TextBox>&nbsp;
									</TD>
								</TR>
							</TABLE>
						</asp:panel></TD>
				</TR>
				<TR>
					<TD class="WsdnOrgTitle1" colSpan="4"><asp:button id="Button5" runat="server" Text="客户备注↓"></asp:button></TD>
				</TR>
				<TR>
					<TD class="WsdnOrgInfo" colSpan="4"><asp:panel id="Panel3" runat="server">
							<TABLE cellSpacing="1" cellPadding="0" width="100%" border="0">
								<TR>
									<TD>
										<FTB:FreeTextBox id="Wsdn_StarCRM_Info" runat="server" Width="90%" Height="200px" ToolbarType="Office2000"></FTB:FreeTextBox></TD>
								</TR>
							</TABLE>
						</asp:panel></TD>
				</TR>
				<TR>
					<TD class="WsdnOrgInfo" align="center" colSpan="4">
						<P><asp:button id="BtSubmit" runat="server" Text="Button"></asp:button>&nbsp;
							<asp:button id="Btcopy" runat="server" Text="复制当前记录"></asp:button>
							&nbsp;
							<asp:button id="Btsearch" runat="server" Text="高级搜索"></asp:button>&nbsp;
							<asp:button id="Button3" runat="server" Text="返回客户分组"></asp:button>&nbsp;
							<asp:button id="Button2" runat="server" Text="返回客户列表"></asp:button></P>
						<P>
							<asp:button id="BtPrint" runat="server" Text="打印当前信息"></asp:button>&nbsp;
							<asp:DropDownList id="PrintList" runat="server">
								<asp:ListItem Value="网页形式">网页形式</asp:ListItem>
								<asp:ListItem Value="输出为Word" Selected>输出为Word</asp:ListItem>
							</asp:DropDownList>
							<asp:checkbox id="CheckBox2" runat="server" Text="打印基本资料" Checked="True"></asp:checkbox>&nbsp;
							<asp:checkbox id="CheckBox1" runat="server" Text="打印备注" Checked="True"></asp:checkbox>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							<asp:label id="Msg" runat="server" ForeColor="#C00000"></asp:label>
						</P>
					</TD>
				</TR>
				<TR>
					<TD class="WsdnOrgInfo" colSpan="4"><asp:datagrid id="DGValidate" runat="server" Visible="False" Width="100%" Height="68px" AutoGenerateColumns="False"
							ForeColor="#C00000">
							<ItemStyle CssClass="WsdnOrgInfo"></ItemStyle>
							<HeaderStyle CssClass="WsdnOrgTitle1"></HeaderStyle>
							<Columns>
								<asp:BoundColumn DataField="MainCaption" HeaderText="错误项目"></asp:BoundColumn>
								<asp:BoundColumn DataField="Value" HeaderText="项目值"></asp:BoundColumn>
								<asp:BoundColumn DataField="ValidateMessage" HeaderText="描述"></asp:BoundColumn>
							</Columns>
						</asp:datagrid>
						<HR width="100%" SIZE="1">
					</TD>
				</TR>
				<TR>
					<TD class="WsdnOrgTitle1" colSpan="4" align="right">该客户相关记录(或历史记录)：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<asp:Label id="Label42" runat="server"></asp:Label>
						<asp:Label id="Label44" runat="server"></asp:Label>
						<asp:Label id="Label45" runat="server"></asp:Label>
						<asp:Label id="Label46" runat="server"></asp:Label>
						<asp:Label id="Label47" runat="server"></asp:Label>
						<br>
						<asp:Label id="Label48" runat="server"></asp:Label>
						<asp:Label id="Label49" runat="server"></asp:Label>
						<asp:Label id="Label50" runat="server"></asp:Label>
						<asp:Label id="Label43" runat="server"></asp:Label>
					</TD>
				</TR>
				<TR>
					<TD><a href="../Office/FileUpload.aspx?type=New" target="_blank"><STRONG>相关文件：</STRONG></a>&nbsp;
					</TD>
					<TD><asp:label id="Label40" runat="server"></asp:label></TD>
					<TD><a href="../Office/Pic.aspx" target="_blank"><STRONG>相关图片：</STRONG></a></TD>
					<TD><asp:label id="Label41" runat="server"></asp:label></TD>
				</TR>
			</TABLE>
		</form>
	</body>
</HTML>
