<%@ Page language="c#" Codebehind="ADVConfig.aspx.cs"  AutoEventWireup="false" Inherits="StarSuitWSYW.Include.ADVConfig" %>
<%@ Register src="ColumnSelect.ascx" tagname="ColumnSelect" tagprefix="uc2" %>
<%@ Register src="Css.ascx" tagname="Css" tagprefix="uc1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>高级设置</title>
	</HEAD>
	<body >
		<form id="Form1" method="post" runat="server">
		<uc1:Css ID="Css1" runat="server" />
		 <TABLE width=100% cellpadding=0 cellspacing=0>
  <TR >             
	<TD>
        <asp:Button class="buttons" ID="ButtonP1" runat="server" Text="重复判断" onclick="ButtonP1_Click" />
        <asp:Button class="buttons" ID="ButtonP2" runat="server" Text="自动编码" onclick="ButtonP2_Click" />
        <asp:Button class="buttons" ID="ButtonP3" runat="server" Text="默认值" onclick="ButtonP3_Click" />
        <asp:Button class="buttons" ID="ButtonP4" runat="server" Text="自动附加" onclick="ButtonP4_Click" />
        <asp:Button class="buttons" ID="ButtonP5" runat="server" Text="自动计算" onclick="ButtonP5_Click" />
        <asp:Button class="buttons" ID="ButtonP6" runat="server" Text="主从表关联" 
            onclick="ButtonP6_Click" />
        <asp:Button class="buttons" ID="ButtonP7" runat="server" Text="货币符号设置" 
            onclick="ButtonP7_Click" />
        </TD>
          <TR class="WsdnOrgInfo">             
	<TD><hr></TR>
  <TR>
  </TR>
  <TR>
	<TD>
        <asp:Panel ID="Panel1" runat="server">
         <TABLE width="100%" cellpadding=0 cellspacing=0>
                <TR   class="WsdnOrgInfo">
					<TD>
                        <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
					
					<br>
					</TD>
				</TR>				


				<TR  class="WsdnOrgInfo" >
					<TD>
						<P>
                            <uc2:ColumnSelect ID="ColumnSelect1" runat="server" />
                            <asp:button class="buttons"  id="Button1" runat="server" Width="96px" Text="添加" 
                                onclick="Button1_Click1"></asp:button>
                        </P>
						<P><asp:datagrid id="Datagrid2" runat="server" Width="100%" DataKeyField="id" AutoGenerateColumns="False"
								AllowPaging="True" BorderColor="#336666" BorderStyle="Double" BorderWidth="3px" BackColor="White"
								CellPadding="4" GridLines="Horizontal">
        <FooterStyle CssClass="WsdnOrgInfo1" ForeColor="White" Font-Bold="True" />
        <PagerStyle CssClass="WsdnOrgInfo1" ForeColor="#333333" HorizontalAlign="Center" />
        <SelectedItemStyle CssClass="WsdnOrgInfo1" Font-Bold="True" ForeColor="Navy" />
        <HeaderStyle CssClass="WsdnOrgTitle" Font-Bold="True" HorizontalAlign="Left" />
								<Columns>
									<asp:EditCommandColumn Visible=false ButtonType="LinkButton" UpdateText="更新" HeaderText="编辑" CancelText="取消" EditText="编辑"></asp:EditCommandColumn>
									<asp:BoundColumn DataField="id"  Visible=false HeaderText="ID">
										<HeaderStyle Width="15px"></HeaderStyle>
									</asp:BoundColumn>
									<asp:BoundColumn Visible=false DataField="tname" HeaderText="表名">
										<ItemStyle CssClass="WsdnOrgInfo1"></ItemStyle>
									</asp:BoundColumn>
									<asp:BoundColumn Visible=false DataField="tc" HeaderText="指标名"></asp:BoundColumn>
									<asp:BoundColumn DataField="TTdisplay" HeaderText="项目名称"></asp:BoundColumn>
									<asp:BoundColumn DataField="TCdisplay" HeaderText="指标名称"></asp:BoundColumn>
									<asp:ButtonColumn Text="Delete" CommandName="Delete"></asp:ButtonColumn>
								</Columns>
							</asp:datagrid></P>
					</TD>
				</TR>
				</TABLE>
        </asp:Panel>
    </TD>
  </TR>
  <TR>
	<TD>  
	      <asp:Panel ID="Panel2" runat="server">
	      <TABLE width="100%" cellpadding=0 cellspacing=0>
            <TR  class="WsdnOrgInfo">
					<TD>
					<asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
					<br>
					</TD>
				</TR>
				<TR class="WsdnOrgInfo">
					<TD>
                        <uc2:ColumnSelect ID="ColumnSelect2" runat="server" />
						<asp:label id="Label11" runat="server">前缀</asp:label><asp:textbox id="Textbox10" runat="server" MaxLength="4"></asp:textbox><asp:button class="buttons"  id="Button10" runat="server" Width="96px" Text="添加"></asp:button>
                        <asp:datagrid id="DataGridcode" runat="server" Width="100%" DataKeyField="id" AutoGenerateColumns="False"
								AllowPaging="True" BorderColor="#336666" BorderStyle="Double" BorderWidth="3px" BackColor="White"
								CellPadding="4" GridLines="Horizontal">
        <FooterStyle CssClass="WsdnOrgInfo1" ForeColor="White" Font-Bold="True" />
        <PagerStyle CssClass="WsdnOrgInfo1" ForeColor="#333333" HorizontalAlign="Center" />
        <SelectedItemStyle CssClass="WsdnOrgInfo1" Font-Bold="True" ForeColor="Navy" />
        <HeaderStyle CssClass="WsdnOrgTitle" Font-Bold="True" HorizontalAlign="Left" />
								<Columns>
									<asp:EditCommandColumn Visible=false ButtonType="LinkButton" UpdateText="更新" HeaderText="编辑" CancelText="取消" EditText="编辑"></asp:EditCommandColumn>
									<asp:BoundColumn  Visible=false DataField="id" HeaderText="ID">
										<HeaderStyle Width="15px"></HeaderStyle>
									</asp:BoundColumn>
									<asp:BoundColumn DataField="TTdisplay" HeaderText="项目名称"></asp:BoundColumn>
									<asp:BoundColumn DataField="TCdisplay" HeaderText="指标名称"></asp:BoundColumn>

									<asp:BoundColumn DataField="StartWith" HeaderText="前缀"></asp:BoundColumn>
									<asp:ButtonColumn Text="Delete" CommandName="Delete"></asp:ButtonColumn>
								</Columns>
							</asp:datagrid></P>
					</TD>
				</TR>
            </TABLE>
        </asp:Panel>
        </TD>
  </TR>
  <TR>
	<TD>	      <asp:Panel ID="Panel3" runat="server">
	<TABLE width="100%" cellpadding=0 cellspacing=0>
            <TR  class="WsdnOrgInfo">
					<TD>
					<asp:Label ID="Label3" runat="server" Text="Label"></asp:Label>
					<br>
					</TD>
				</TR>
				<TR class="WsdnOrgInfo">
					<TD>
						<P>
						<uc2:ColumnSelect ID="ColumnSelect3" runat="server" />
						<asp:label id="Label14" runat="server">默认值</asp:label>
						<asp:textbox id="Textbox13" runat="server" MaxLength="4"></asp:textbox>
						<asp:button class="buttons"  id="BtDefault" runat="server" Width="96px" Text="添加"></asp:button></P>
						<P><asp:datagrid id="DataGridDefault" runat="server" Width="100%" DataKeyField="id" AutoGenerateColumns="False"
								AllowPaging="True" BorderColor="#336666" BorderStyle="Double" BorderWidth="3px" BackColor="White"
								CellPadding="4" GridLines="Horizontal">
        <FooterStyle CssClass="WsdnOrgInfo1" ForeColor="White" Font-Bold="True" />
        <PagerStyle CssClass="WsdnOrgInfo1" ForeColor="#333333" HorizontalAlign="Center" />
        <SelectedItemStyle CssClass="WsdnOrgInfo1" Font-Bold="True" ForeColor="Navy" />
        <HeaderStyle CssClass="WsdnOrgTitle" Font-Bold="True" HorizontalAlign="Left" />
								<Columns>
									<asp:EditCommandColumn ButtonType="LinkButton" Visible=false UpdateText="更新" HeaderText="编辑" CancelText="取消" EditText="编辑"></asp:EditCommandColumn>
									<asp:BoundColumn DataField="id" Visible=false HeaderText="ID">
										<HeaderStyle Width="15px"></HeaderStyle>
									</asp:BoundColumn>
									<asp:BoundColumn DataField="TTdisplay" HeaderText="项目名称"></asp:BoundColumn>
									<asp:BoundColumn DataField="TCdisplay" HeaderText="指标名称"></asp:BoundColumn>
									<asp:BoundColumn DataField="DefaultValue" HeaderText="默认值"></asp:BoundColumn>
									<asp:ButtonColumn Text="Delete" CommandName="Delete"></asp:ButtonColumn>
								</Columns>
							</asp:datagrid></P>
					</TD>
				</TR>
            </TABLE> 
        </asp:Panel>
</TD>
  </TR>
  <TR>
	<TD>	      <asp:Panel ID="Panel4" runat="server">
	<TABLE width="100%" cellpadding=0 cellspacing=0>
            <TR  class="WsdnOrgInfo">
					<TD>
					<asp:Label ID="Label4" runat="server" Text="Label"></asp:Label>
					<br>
					</TD>
				</TR>
				<TR class="WsdnOrginfo">
					<TD>
					From：<uc2:ColumnSelect ID="ColumnSelect4" runat="server" />
					To：<uc2:ColumnSelect ID="ColumnSelect5" runat="server" />
						<asp:Button class="buttons" id="btnPlus" runat="server" Text="添加" onclick="btnPlus_Click"></asp:Button>
						
						</TD>
				</TR>
				<TR class="WsdnOrginfo">
					<TD>
						<asp:datagrid id="DataGridPlus" runat="server" GridLines="Horizontal" 
                            CellPadding="4" BackColor="White"
								BorderWidth="3px" BorderStyle="Double" BorderColor="#336666" Width="100%" AllowPaging="True"
								AutoGenerateColumns="False" DataKeyField="id">
        <FooterStyle CssClass="WsdnOrgInfo1" ForeColor="White" Font-Bold="True" />
        <PagerStyle CssClass="WsdnOrgInfo1" ForeColor="#333333" HorizontalAlign="Center" />
        <SelectedItemStyle CssClass="WsdnOrgInfo1" Font-Bold="True" ForeColor="Navy" />
        <HeaderStyle CssClass="WsdnOrgTitle" Font-Bold="True" HorizontalAlign="Left" />
								<Columns>
									<asp:EditCommandColumn Visible=false ButtonType="LinkButton" UpdateText="更新" HeaderText="编辑" CancelText="取消" EditText="编辑"></asp:EditCommandColumn>
									<asp:BoundColumn Visible=false DataField="id" HeaderText="ID">
										<HeaderStyle Width="15px"></HeaderStyle>
									</asp:BoundColumn>
									<asp:BoundColumn DataField="FTdisplay" HeaderText="源表"></asp:BoundColumn>
									<asp:BoundColumn DataField="TTdisplay" HeaderText="目标表"></asp:BoundColumn>
									<asp:BoundColumn DataField="FCdisplay" HeaderText="源指标"></asp:BoundColumn>
									<asp:BoundColumn DataField="TCdisplay" HeaderText="目标指标"></asp:BoundColumn>
									<asp:ButtonColumn Text="Delete" CommandName="Delete"></asp:ButtonColumn>
								</Columns>
							</asp:datagrid>
							
					</TD>
				</TR>
            </TABLE>
        </asp:Panel>
</TD>
  </TR>
  <TR>
	<TD>	      <asp:Panel ID="Panel5" runat="server">
	<TABLE width="100%" cellpadding=0 cellspacing=0>
            <TR  class="WsdnOrgInfo">
					<TD>
					<asp:Label ID="Label6" runat="server" Text="Label"></asp:Label>
					<br>
					</TD>
				</TR>
				<TR class="WsdnOrginfo">
					<TD>
					<uc2:ColumnSelect ID="ColumnSelect6" runat="server" />
					    <asp:TextBox ID="tbxCal" runat="server"></asp:TextBox>
					<asp:Button class="buttons" id="btnCal" runat="server" Text="添加" onclick="btnCal_Click" ></asp:Button>
						</TD>
				</TR>
				<TR class="WsdnOrginfo">
					<TD>
				<asp:datagrid id="DataGridCal" runat="server" GridLines="Horizontal" CellPadding="4" BackColor="White"
								BorderWidth="3px" BorderStyle="Double" BorderColor="#336666" Width="100%" AllowPaging="True"
								AutoGenerateColumns="False" DataKeyField="id">
        <FooterStyle CssClass="WsdnOrgInfo1" ForeColor="White" Font-Bold="True" />
        <PagerStyle CssClass="WsdnOrgInfo1" ForeColor="#333333" HorizontalAlign="Center" />
        <SelectedItemStyle CssClass="WsdnOrgInfo1" Font-Bold="True" ForeColor="Navy" />
        <HeaderStyle CssClass="WsdnOrgTitle" Font-Bold="True" HorizontalAlign="Left" />
								<Columns>
									<asp:EditCommandColumn Visible=false ButtonType="LinkButton" UpdateText="更新" HeaderText="编辑" CancelText="取消" EditText="编辑"></asp:EditCommandColumn>
									<asp:BoundColumn Visible=false DataField="id" HeaderText="ID">
										<HeaderStyle Width="15px"></HeaderStyle>
									</asp:BoundColumn>
									<asp:BoundColumn DataField="TTdisplay" HeaderText="项目名称"></asp:BoundColumn>
									<asp:BoundColumn DataField="TCdisplay" HeaderText="指标名称"></asp:BoundColumn>
									<asp:BoundColumn DataField="seval" HeaderText="公式"></asp:BoundColumn>
									<asp:ButtonColumn Text="Delete" CommandName="Delete"></asp:ButtonColumn>
								</Columns>
							</asp:datagrid></TD>
				</TR>
            </TABLE> 
        </asp:Panel>
</TD>
  </TR>
  <TR>
	<TD>	      <asp:Panel ID="Panel6" runat="server">
	<TABLE width="100%" cellpadding=0 cellspacing=0>
            <TR  class="WsdnOrgInfo">
					<TD>关联描述：</TD>
					<TD><asp:textbox id="dtitle" runat="server" Width="260px"></asp:textbox></TD>
				</TR>
            <TR class="WsdnOrgInfo">
					<TD>主：</TD>
					<TD><uc2:ColumnSelect ID="ColumnSelect7" runat="server" /></TD>
				</TR>
            <TR  class="WsdnOrgInfo">
					<TD>从：</TD>
					<TD><uc2:ColumnSelect ID="ColumnSelect8" runat="server" /></TD>
				</TR>
            <TR class="WsdnOrgInfo">
					<TD>第几项：</TD>
					<TD><asp:RadioButtonList id="ord" runat="server" Width="320px" RepeatColumns="5">
							<asp:ListItem Value="1" Selected="True">1</asp:ListItem>
							<asp:ListItem Value="2">2</asp:ListItem>
							<asp:ListItem Value="3">3</asp:ListItem>
							<asp:ListItem Value="4">4</asp:ListItem>
							<asp:ListItem Value="5">5</asp:ListItem>
							<asp:ListItem Value="6">6</asp:ListItem>
							<asp:ListItem Value="7">7</asp:ListItem>
							<asp:ListItem Value="8">8</asp:ListItem>
							<asp:ListItem Value="9">9</asp:ListItem>
							<asp:ListItem Value="10">10</asp:ListItem>
						</asp:RadioButtonList>
						<asp:Button class="buttons" ID="btnLink" runat="server" onclick="btnLink_Click" Text="添加" />
						</TD>
				</TR>
				<TR class="WsdnOrginfo">
					<TD colspan=2>
					<asp:datagrid id="DataGridLink" runat="server" GridLines="Horizontal" CellPadding="4" BackColor="White"
								BorderWidth="3px" BorderStyle="Double" BorderColor="#336666" Width="100%" AllowPaging="True"
								AutoGenerateColumns="False" DataKeyField="id">
        <FooterStyle CssClass="WsdnOrgInfo1" ForeColor="White" Font-Bold="True" />
        <PagerStyle CssClass="WsdnOrgInfo1" ForeColor="#333333" HorizontalAlign="Center" />
        <SelectedItemStyle CssClass="WsdnOrgInfo1" Font-Bold="True" ForeColor="Navy" />
        <HeaderStyle CssClass="WsdnOrgTitle" Font-Bold="True" HorizontalAlign="Left" />
								<Columns>
									<asp:EditCommandColumn ButtonType="LinkButton" Visible=false UpdateText="更新" HeaderText="编辑" CancelText="取消" EditText="编辑"></asp:EditCommandColumn>
									<asp:BoundColumn DataField="id" Visible=false HeaderText="ID">
										<HeaderStyle Width="15px"></HeaderStyle>
									</asp:BoundColumn>
									<asp:BoundColumn DataField="dtitle" HeaderText="关联描述">
										<ItemStyle CssClass="WsdnOrgInfo"></ItemStyle>
									</asp:BoundColumn>
									<asp:BoundColumn DataField="mtd" HeaderText="主表"></asp:BoundColumn>
									<asp:BoundColumn DataField="dtd" HeaderText="从表"></asp:BoundColumn>
									<asp:BoundColumn DataField="mfd" HeaderText="主指标"></asp:BoundColumn>
									<asp:BoundColumn DataField="dfd" HeaderText="从指标"></asp:BoundColumn>
									<asp:BoundColumn DataField="ord" HeaderText="第几项"></asp:BoundColumn>
									<asp:ButtonColumn Text="Delete" CommandName="Delete"></asp:ButtonColumn>
								</Columns>
							</asp:datagrid>
					</TD>
				</TR>
            </TABLE>
        </asp:Panel>
</TD>
  </TR>
  <TR>
	<TD>	      <asp:Panel ID="Panel7" runat="server">
	<TABLE width="100%" cellpadding=0 cellspacing=0>
            <asp:label id="Label9" runat="server" ></asp:label>
            <asp:textbox id="TextBox5" runat="server" ></asp:textbox>
			<asp:button class="buttons"  id="Button3" runat="server" Text="确认修改" ></asp:button>
            </TABLE>
        </asp:Panel>
</TD>
  </TR>
  <TR>
	<TD></TD>
  </TR>
  <TR>
	<TD></TD>
  </TR>
  </TABLE>
      


			<TABLE width="100%" cellpadding=0 cellspacing=0>


				<TR >
					<TD><%--<br>
					<STRONG>限期锁定设置--</STRONG>
					过期后表记录将不可编辑，处于锁定状态，仅具有删除权限的人可以编辑。--%>
					</TD>
				</TR>
				<TR class="WsdnOrgInfo">
					<TD>
						<asp:label id="Label12" runat="server" Visible="False">表名</asp:label>
                            <asp:textbox id="Textbox14" runat="server" Visible="False"></asp:textbox><asp:label id="Label15" runat="server" Visible="False">期限</asp:label><asp:textbox id="Textbox15" runat="server" Visible="False"></asp:textbox><asp:label id="Label16" runat="server" Visible="False">天</asp:label><asp:button class="buttons"  id="Button11" Visible="False" runat="server" Width="96px" Text="添加"></asp:button>
						<asp:datagrid id="DataGridLimitTime" runat="server"  Visible="False" Width="100%" DataKeyField="id" AutoGenerateColumns="False"
								AllowPaging="True" BorderColor="#336666" BorderStyle="Double" BorderWidth="3px" BackColor="White"
								CellPadding="4" GridLines="Horizontal">
        <FooterStyle CssClass="WsdnOrgInfo1" ForeColor="White" Font-Bold="True" />
        <PagerStyle CssClass="WsdnOrgInfo1" ForeColor="#333333" HorizontalAlign="Center" />
        <SelectedItemStyle CssClass="WsdnOrgInfo1" Font-Bold="True" ForeColor="Navy" />
        <HeaderStyle CssClass="WsdnOrgTitle" Font-Bold="True" HorizontalAlign="Left" />
								<Columns>
									<asp:BoundColumn DataField="id" HeaderText="ID">
										<HeaderStyle Width="15px"></HeaderStyle>
									</asp:BoundColumn>
									<asp:BoundColumn DataField="tname" HeaderText="表名">
										<ItemStyle CssClass="WsdnOrgInfo"></ItemStyle>
									</asp:BoundColumn>
									<asp:BoundColumn DataField="days" HeaderText="期限天数"></asp:BoundColumn>
									<asp:ButtonColumn Text="Delete" CommandName="Delete"></asp:ButtonColumn>
								</Columns>
								<PagerStyle CssClass="WsdnOrgInfo" Mode="NumericPages"></PagerStyle>
							</asp:datagrid></P>
					</TD>
				</TR>


				<TR class="WsdnOrgInfo">
					<TD ><asp:label id="Msg" runat="server" ></asp:label></TD>
				</TR>
				<TR class="WsdnOrgInfo">
					<TD><STRONG></STRONG></TD>
				</TR>
				<TR>
					<TD></TD>
				</TR>
				<TR class="WsdnOrgInfo">
					<TD>
						<P><STRONG><STRONG></STRONG></STRONG>&nbsp;</P>
					</TD>
				</TR>
				<TR>
					<TD></TD>
				</TR>
				<TR class="WsdnOrgInfo">
					<TD><STRONG></STRONG></TD>
				</TR>
				<TR>
					<TD><asp:button class="buttons"  id="Button5" runat="server" Text="短信群组设置" Visible="False"></asp:button></TD>
				</TR>
				<TR class="WsdnOrgInfo">
					<TD><STRONG></STRONG></TD>
				</TR>
				<TR>
					<TD><asp:button class="buttons"  id="Button6" runat="server" Text="短信短语设置" Visible="False"></asp:button></TD>
				</TR>
				<TR class="WsdnOrgInfo">
					<TD><STRONG></STRONG></TD>
				</TR>
				<TR>
					<TD><asp:button class="buttons"  id="Button9" runat="server" Text="邮件群组设置" Visible="False"></asp:button></TD>
				</TR>
				<TR class="WsdnOrgInfo">
					<TD><asp:label id="Label5" runat="server" Visible="False">邮件SMTP设置--用于发送邮件的SMTP设置。</asp:label></TD>
				</TR>
				<TR>
					<TD><asp:label id="Label8" runat="server" Visible="False">帐号号码：</asp:label><asp:textbox id="TextBox9" runat="server" Visible="False"></asp:textbox><asp:label id="Label7" runat="server" Visible="False">帐号密码：</asp:label><asp:textbox id="TextBox8" runat="server" TextMode="Password" Visible="False"></asp:textbox><asp:button class="buttons"  id="Button8" runat="server" Text="确认密码" Visible="False"></asp:button></TD>
				</TR>

			</TABLE>
		</form>
	</body>
</HTML>
