<%@ Register TagPrefix="uc1" TagName="LanguagesDeal" Src="LanguagesDeal.ascx" %>
<%@ Page language="c#" Codebehind="ProviderManage.aspx.cs" AutoEventWireup="True" Inherits="DreamerShop.Admin.ProviderManage" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>
			<%=myLanguagesDeal.GetMyString("TextProvider")%>
			-
			<%=mConfigInf.strWebTitle%>
		</title>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
		<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">
		<META content="<%=mConfigInf.strDescription%>" name=description>
		<META content="<%=mConfigInf.strKeywords%>" name=keywords>
		<LINK href="../StyleSheet1.css" rel="stylesheet">
		<SCRIPT language="javascript" id="clientEventHandlersJS">
		<!--

		
		function selall1()
		{	
			var a = document.getElementsByTagName("input");
		
			var str;
			var len;
			var state;
			
			for (var i=0; i<a.length; i++)
			{
				if (a[i].type == "checkbox") 
				{	
					str=a[i].id;
					len=str.lastIndexOf("SelAllPur1");
					if((len * 1)>=1)
					{
						state=a[i].checked;
						break;
						}
				}
			}
			for (var i=0; i<a.length; i++)
			{
				if (a[i].type == "checkbox") 
				{
					str=a[i].id;
					len=str.lastIndexOf("Purview1");
					if((len * 1)>=1)
						a[i].checked=state;
				}
			}
		}
		
		function selall2()
		{	
			var a = document.getElementsByTagName("input");
		
			var str;
			var len;
			var state;
			
			for (var i=0; i<a.length; i++)
			{
				if (a[i].type == "checkbox") 
				{	
					str=a[i].id;
					len=str.lastIndexOf("SelAllPur2");
					if((len * 1)>=1)
					{
						state=a[i].checked;
						break;
						}
				}
			}
			for (var i=0; i<a.length; i++)
			{
				if (a[i].type == "checkbox") 
				{
					str=a[i].id;
					len=str.lastIndexOf("Purview2");
					if((len * 1)>=1)
						a[i].checked=state;
				}
			}
		}
		
		function selall3()
		{	
			var a = document.getElementsByTagName("input");
		
			var str;
			var len;
			var state;
			
			for (var i=0; i<a.length; i++)
			{
				if (a[i].type == "checkbox") 
				{	
					str=a[i].id;
					len=str.lastIndexOf("SelAllPur3");
					if((len * 1)>=1)
					{
						state=a[i].checked;
						break;
						}
				}
			}
			for (var i=0; i<a.length; i++)
			{
				if (a[i].type == "checkbox") 
				{
					str=a[i].id;
					len=str.lastIndexOf("Purview3");
					if((len * 1)>=1)
						a[i].checked=state;
				}
			}
		}
		
		function selall4()
		{	
			var a = document.getElementsByTagName("input");
		
			var str;
			var len;
			var state;
			
			for (var i=0; i<a.length; i++)
			{
				if (a[i].type == "checkbox") 
				{	
					str=a[i].id;
					len=str.lastIndexOf("SelAllPur4");
					if((len * 1)>=1)
					{
						state=a[i].checked;
						break;
						}
				}
			}
			for (var i=0; i<a.length; i++)
			{
				if (a[i].type == "checkbox") 
				{
					str=a[i].id;
					len=str.lastIndexOf("Purview4");
					if((len * 1)>=1)
						a[i].checked=state;
				}
			}
		}
		
		function popUpWin(URLStr,WinName, left, top, width, height)
		{
			var popUpWin=0;
			if(popUpWin)

			{

			if(!popUpWin.closed) popUpWin.close();

			}

			popUpWin = open(URLStr, WinName, 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
		}
		//-->
		</SCRIPT>
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<uc1:LanguagesDeal id="myLanguagesDeal" runat="server" Visible="False"></uc1:LanguagesDeal>
			<table cellSpacing="0" cellPadding="0" width="97%" border="0" align="center">
				<tr>
					<td vAlign="top" height="262">
						<table cellSpacing="0" cellPadding="0" width="100%" border="0">
							<tr>
								<td vAlign="top" bgColor="#ffffff" height="300"><FONT face="宋体"><asp:panel id="Pan1" runat="server">
											<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
												<TR>
													<TD class="p12black"><SPAN class="p9orange"><IMG height="11" src="IMAGES/icon_1.gif" width="12" align="absMiddle">&nbsp;<%=myLanguagesDeal.GetMyString("TextProductManage")%>--&gt;<%=myLanguagesDeal.GetMyString("TextProvider")%></SPAN></TD>
													<TD>
														<asp:ImageButton id="btAddNew" runat="server" ImageUrl="../Images/Admin/fb-new.gif" onclick="btAddNew_Click"></asp:ImageButton><%=myLanguagesDeal.GetMyString("ProviderTextAddNew")%><!--新增供应商--></TD>
												</TR>
											</TABLE>
											<HR noShade SIZE="1">
											<asp:datagrid id="dgList" runat="server" DataKeyField="ProviderID" Width="100%" AutoGenerateColumns="False"
												AllowPaging="True" PageSize="20" CssClass="table-shangxia">
												<HeaderStyle HorizontalAlign="Center" BackColor="#F1F1F1"></HeaderStyle>
												<Columns>
													<asp:BoundColumn DataField="ProviderNumber" HeaderText="供应商编号">
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
													</asp:BoundColumn>
													<asp:BoundColumn DataField="CorpName" HeaderText="公司名称">
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
													</asp:BoundColumn>
													<asp:BoundColumn DataField="LinkMan" HeaderText="联系人">
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
													</asp:BoundColumn>
													<asp:BoundColumn DataField="LinkTel" HeaderText="联系电话">
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
													</asp:BoundColumn>
													<asp:BoundColumn DataField="Fax" HeaderText="传真">
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
													</asp:BoundColumn>
													<asp:TemplateColumn HeaderText="操作">
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
														<ItemTemplate>
															<asp:Button id="btEdit" Text="修改" CssClass="go-wenbenkuang" CommandName="Edit" Runat="server"></asp:Button>
															<asp:Button id="btDelete" Text="删除" CssClass="go-wenbenkuang" CommandName="Delete" Runat="server"></asp:Button>
														</ItemTemplate>
													</asp:TemplateColumn>
												</Columns>
												<PagerStyle Visible="False" NextPageText="下一页" PrevPageText="上一页" HorizontalAlign="Right"></PagerStyle>
											</asp:datagrid>
											<TABLE class="table-zuoyou" id="Table1" width="100%" align="center" border="0">
												<TR align="center" bgColor="#f1f1f1">
													<TD>
														<asp:button id="btFirst" runat="server" CssClass="go-wenbenkuang" Text=" 首 页" BorderStyle="Groove" onclick="btFirst_Click"></asp:button>&nbsp;
														<asp:button id="btPre" runat="server" CssClass="go-wenbenkuang" Text="上一页" BorderStyle="Groove" onclick="btPre_Click"></asp:button>&nbsp;
														<asp:button id="btNext" runat="server" CssClass="go-wenbenkuang" Text="下一页" BorderStyle="Groove" onclick="btNext_Click"></asp:button>&nbsp;
														<asp:button id="btLast" runat="server" CssClass="go-wenbenkuang" Text=" 尾 页" BorderStyle="Groove" onclick="btLast_Click"></asp:button>&nbsp;
														<asp:label id="lbPage" runat="server"></asp:label>&nbsp;
														<%=myLanguagesDeal.GetMyString("TextGotoPage")%>
														<asp:textbox id="txtPageNum" runat="server" Width="30px" CssClass="wenbenkuang" MaxLength="3"></asp:textbox>
														<asp:CompareValidator id="CompareValidator2" runat="server" ErrorMessage="输入数字" Display="Dynamic" ControlToValidate="txtPageNum"
															Type="Integer" Operator="DataTypeCheck"></asp:CompareValidator><%=myLanguagesDeal.GetMyString("TextPages")%>
														<asp:button id="btGo" runat="server" CssClass="go-wenbenkuang" Text="Go" onclick="btGo_Click"></asp:button></TD>
												</TR>
											</TABLE>
										</asp:panel></FONT><asp:panel id="Pan2" runat="server" Visible="False">
										<TABLE class="p9black" cellSpacing="0" cellPadding="0" width="100%" border="0">
											<TR>
												<TD style="WIDTH: 711px">
													<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
														<TR>
															<TD class="p12black" align="left"><SPAN class="p9orange"><IMG height="11" src="IMAGES/icon_1.gif" width="12" align="absMiddle">&nbsp;<%=myLanguagesDeal.GetMyString("TextProductManage")%>--&gt;
																	<asp:Label id="lbMessage" runat="server"></asp:Label></SPAN></TD>
															<TD align="right" width="50"><!--BUTTON_BEGIN-->
																<TABLE>
																	<TR>
																		<TD vAlign="bottom" noWrap>
																			<asp:ImageButton id="ibtReturn" runat="server" ImageUrl="../Images/Admin/fb-cancel.gif" CausesValidation="False" onclick="ibtReturn_Click"></asp:ImageButton><%=myLanguagesDeal.GetMyString("TextReturn")%></TD>
																	</TR>
																</TABLE> <!--BUTTON_END--></TD>
														</TR>
													</TABLE>
												</TD>
											</TR>
										</TABLE>
										<HR noShade SIZE="1">
										<TABLE cellSpacing="1" cellPadding="5" width="650" align="center" bgColor="#cccccc" border="0">
											<TR bgColor="#ffffff">
												<TD align="right" width="30%"><%=myLanguagesDeal.GetMyString("ProviderTextNumber")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--供应商编号：--></TD>
												<TD class="pad" width="70%">
													<asp:TextBox id="txtProviderNumber" runat="server" Width="250px" CssClass="wenbenkuang" MaxLength="30"
														EnableViewState="False"></asp:TextBox></TD>
											</TR>
											
											<TR bgColor="#ffffff">
												<TD align="right" width="30%"><%=myLanguagesDeal.GetMyString("TextLockStr")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--是否锁定：--></TD>
												<TD class="pad"><FONT color="red">
														<asp:CheckBox id="ckStateLock" runat="server" Text="锁定" EnableViewState="False"></asp:CheckBox></FONT></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right" width="30%"><%=myLanguagesDeal.GetMyString("CorpTextCorpName")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--公司名称：--></TD>
												<TD class="pad"><FONT color="red">
														<asp:TextBox id="txtCorpName" runat="server" Width="250px" CssClass="wenbenkuang" MaxLength="100"
															EnableViewState="False"></asp:TextBox>
														<asp:RequiredFieldValidator id="RequiredFieldValidator1" runat="server" ErrorMessage="请输入公司名称" Display="Dynamic"
															ControlToValidate="txtCorpName"></asp:RequiredFieldValidator></FONT></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right" width="30%"><%=myLanguagesDeal.GetMyString("CorpTextLinkMan")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--联系人：--></TD>
												<TD class="pad"><FONT color="red">
														<asp:TextBox id="txtLinkMan" runat="server" Width="250px" CssClass="wenbenkuang" MaxLength="30"
															EnableViewState="False"></asp:TextBox></FONT></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right" width="30%"><%=myLanguagesDeal.GetMyString("CorpTextLinkTel")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--联系电话：--></TD>
												<TD class="pad"><FONT color="red">
														<asp:TextBox id="txtLinkTel" runat="server" Width="250px" CssClass="wenbenkuang" MaxLength="40"
															EnableViewState="False"></asp:TextBox></FONT></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right" width="30%">Email<%=myLanguagesDeal.GetMyString("TextColonCharacter")%></TD>
												<TD class="pad"><FONT color="red">
														<asp:TextBox id="txtCorpEmail" runat="server" Width="250px" CssClass="wenbenkuang" MaxLength="80"
															EnableViewState="False"></asp:TextBox></FONT></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right" width="30%"><%=myLanguagesDeal.GetMyString("CorpTextFax")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--传真：--></TD>
												<TD class="pad"><FONT color="red">
														<asp:TextBox id="txtFax" runat="server" Width="250px" CssClass="wenbenkuang" MaxLength="40" EnableViewState="False"></asp:TextBox></FONT></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right" width="30%"><%=myLanguagesDeal.GetMyString("CorpTextCorpUrl")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--公司网址：--></TD>
												<TD class="pad"><FONT color="red">
														<asp:TextBox id="txtCorpUrl" runat="server" Width="250px" CssClass="wenbenkuang" MaxLength="80"
															EnableViewState="False"></asp:TextBox></FONT></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right" width="30%"><%=myLanguagesDeal.GetMyString("CorpTextTaxNumber")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--公司税号：--></TD>
												<TD class="pad"><FONT color="red">
														<asp:TextBox id="txtTaxNumber" runat="server" Width="250px" CssClass="wenbenkuang" MaxLength="40"
															EnableViewState="False"></asp:TextBox></FONT></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right" width="30%"><%=myLanguagesDeal.GetMyString("CorpTextRegNumber")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--注册号：--></TD>
												<TD class="pad"><FONT color="red">
														<asp:TextBox id="txtRegNumber" runat="server" Width="250px" CssClass="wenbenkuang" MaxLength="40"
															EnableViewState="False"></asp:TextBox></FONT></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right" width="30%"><%=myLanguagesDeal.GetMyString("CorpTextRegDate")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--注册日期：--></TD>
												<TD class="pad">
													<asp:TextBox id="txtRegDate" runat="server" Width="100px" CssClass="wenbenkuang" MaxLength="100"
														EnableViewState="False"></asp:TextBox>(<%=myLanguagesDeal.GetMyString("TextFormat")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%>2006-01-01)
													<asp:RegularExpressionValidator id="RegularExpressionValidator1" runat="server" ErrorMessage="请输入制定格式日期" Display="Dynamic"
														ControlToValidate="txtRegDate" ValidationExpression="[0-9]{4}-[0-9]{2}-[0-9]{2}"></asp:RegularExpressionValidator></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right" width="30%"><%=myLanguagesDeal.GetMyString("CorpTextRegAddress")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--注册地址：--></TD>
												<TD class="pad"><FONT color="red">
														<asp:TextBox id="txtRegAddress" runat="server" Width="250px" CssClass="wenbenkuang" MaxLength="100"
															EnableViewState="False"></asp:TextBox></FONT></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right" width="30%"><%=myLanguagesDeal.GetMyString("CorpTextPostCode")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--邮政编码：--></TD>
												<TD class="pad"><FONT color="red">
														<asp:TextBox id="txtPostCode" runat="server" Width="250px" CssClass="wenbenkuang" MaxLength="15"
															EnableViewState="False"></asp:TextBox></FONT></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right" width="30%"><%=myLanguagesDeal.GetMyString("CorpTextOpenBank")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--开户行：--></TD>
												<TD class="pad"><FONT color="red">
														<asp:TextBox id="txtOpenBank" runat="server" Width="250px" CssClass="wenbenkuang" MaxLength="50"
															EnableViewState="False"></asp:TextBox></FONT></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right" width="30%"><%=myLanguagesDeal.GetMyString("CorpTextBankAccount")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--银行帐号：--></TD>
												<TD class="pad"><FONT color="red">
														<asp:TextBox id="txtBankAccount" runat="server" Width="250px" CssClass="wenbenkuang" MaxLength="40"
															EnableViewState="False"></asp:TextBox></FONT></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right" width="30%"><%=myLanguagesDeal.GetMyString("CorpTextCorpKind")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--公司性质：--></TD>
												<TD class="pad"><FONT color="red">
														<asp:TextBox id="txtCorpKind" runat="server" Width="250px" CssClass="wenbenkuang" MaxLength="25"
															EnableViewState="False"></asp:TextBox></FONT></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right" width="30%"><%=myLanguagesDeal.GetMyString("CorpTextCorpAddress")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--公司地址：--></TD>
												<TD class="pad"><FONT color="red">
														<asp:TextBox id="txtCorpAddress" runat="server" Width="250px" CssClass="wenbenkuang" MaxLength="100"
															EnableViewState="False"></asp:TextBox></FONT></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right" width="30%"><%=myLanguagesDeal.GetMyString("CorpTextInvoiceAddress")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--发票地址：--></TD>
												<TD class="pad"><FONT color="red">
														<asp:TextBox id="txtInvoiceAddress" runat="server" Width="250px" CssClass="wenbenkuang" MaxLength="100"
															EnableViewState="False"></asp:TextBox></FONT></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right" width="30%"><%=myLanguagesDeal.GetMyString("CorpTextProductType")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--产品类别：--></TD>
												<TD class="pad"><FONT color="red">
														<asp:TextBox id="txtProductKind" runat="server" Width="250px" CssClass="wenbenkuang" MaxLength="25"
															EnableViewState="False"></asp:TextBox></FONT></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right" width="30%"><%=myLanguagesDeal.GetMyString("TextRemark")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--备注：--></TD>
												<TD class="pad"><FONT color="red">
														<asp:TextBox id="txtRemark" runat="server" Width="400px" CssClass="wenbenkuang" MaxLength="300"
															EnableViewState="False" TextMode="MultiLine" Rows="3"></asp:TextBox></FONT></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right" width="20%"></TD>
												<TD class="pad">&nbsp;
													<asp:button id="btSubmit" runat="server" CssClass="go-wenbenkuang" Text="提交信息" onclick="btSubmit_Click"></asp:button>
													<asp:button id="btSave" runat="server" CssClass="go-wenbenkuang" Text="更新信息" onclick="btSave_Click"></asp:button>&nbsp;&nbsp;
												</TD>
											</TR>
										</TABLE>
										<P align="center">
											<asp:Label id="lbInfo" runat="server" ForeColor="Red"></asp:Label></P>
									</asp:panel>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</form>
	</body>
</HTML>
