<%@ Control Language="c#" AutoEventWireup="false" Codebehind="EmSystemConfig.ascx.cs" Inherits="WebStarCRM.Include.EmSystemConfig" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<TABLE width="100%" border="0" cellpadding="0" cellspacing="1">
	<TR>
		<TD colspan="2" class="WsdnOrgTitle1">
            <asp:Label ID="Label2" runat="server" Text="参数设置"></asp:Label><asp:Label id="Msg" runat="server" ForeColor="Red"></asp:Label></TD>
	</TR>
	<TR class="WsdnOrgInfo">
		<TD colspan="2" align="right">&nbsp;&nbsp;</TD>
	</TR>
	<TR>
		<TD align="left" style="WIDTH: 150px" class="WsdnOrgInfo1">
		<TABLE width="100%">
  <TR class="WsdnOrgTitle">
	<TD><asp:Label id="Label1" runat="server">添加类型：</asp:Label></TD>
  </TR>
  <TR class="WsdnOrgInfo">
	<TD><asp:TextBox id="TextBox3" runat="server" Width="125px"></asp:TextBox></TD>
  </TR>
  <TR class="WsdnOrgInfo1">
	<TD><asp:Button class="buttons" id="Button1" runat="server" Text="添加类型" Width="125px" 
                    onclick="Button1_Click"></asp:Button></TD>
  </TR>
  <TR class="WsdnOrgInfo1">
	<TD><asp:Button class="buttons" id="Button2" runat="server" Text="删除分类" Width="125px" 
                    onclick="Button2_Click" ></asp:Button></TD>
  </TR>
 <TR class="WsdnOrgTitle">
	<TD>Config List</TD>
  </TR>	 
  </TABLE>
			<asp:ListBox id="ListBox1" runat="server" Width="148px" Height="510px" 
                    AutoPostBack="True" 
                    onselectedindexchanged="ListBox1_SelectedIndexChanged1" ></asp:ListBox></P>
		</TD>
		<TD align="left" valign="top" class="">
			<asp:datagrid id="DataGrid1" runat="server" Width="680px" PageSize="15" 
                AllowPaging="True" AutoGenerateColumns="False" CellPadding="4" 
                ForeColor="#333333" GridLines="None">
        <FooterStyle CssClass="WsdnOrgInfo1" ForeColor="White" Font-Bold="True" />
        <PagerStyle CssClass="WsdnOrgInfo1" ForeColor="#333333" HorizontalAlign="Center" />
        <HeaderStyle CssClass="WsdnOrgTitle" Font-Bold="True" HorizontalAlign="Left" />
        <ItemStyle CssClass="WsdnOrgInfo" ForeColor="#000000" />
				<AlternatingItemStyle BackColor="White" ForeColor="#284775" />
				<Columns>
					<asp:TemplateColumn HeaderText="内容">
						<ItemTemplate>
							<a href='EmConfigEdit.aspx?id=<%#String.Format("{0}", DataBinder.Eval(Container.DataItem, "Wsdn_StarCRM_Id"))%>&mode=edit&type=<%#String.Format("{0}", DataBinder.Eval(Container.DataItem, "Wsdn_StarCRM_Ctype"))%>'
								<DIV ms_positioning="FlowLayout"><%#String.Format("{0}", DataBinder.Eval(Container.DataItem, "Wsdn_StarCRM_Name"))%></DIV>
							</a>
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:BoundColumn DataField="Wsdn_StarCRM_Ctype" Visible=false HeaderText="配置类型"></asp:BoundColumn>
					<asp:BoundColumn DataField="Wsdn_StarCRM_Num" Visible=false HeaderText="数值表示"></asp:BoundColumn>
					<asp:BoundColumn DataField="Wsdn_StarCRM_info" HeaderText="其他信息"></asp:BoundColumn>
					<asp:TemplateColumn HeaderText="删除">
						<ItemTemplate>
							<asp:CheckBox id="ChkDelete" Runat="server"></asp:CheckBox>
							<asp:TextBox id=TextBox1 accessKey='<%#String.Format("{0}", DataBinder.Eval(Container.DataItem, "DeleteFlag"))%>' runat="server" CssClass='<%#String.Format("{0}", DataBinder.Eval(Container.DataItem, "Wsdn_StarCRM_Id"))%>' Width="0px">
							</asp:TextBox>
						</ItemTemplate>
					</asp:TemplateColumn>
				</Columns>
			</asp:datagrid>
			<asp:Button class="buttons" id="ImBtAdd" Text="添加记录" runat="server" onclick="ImBtAdd_Click1"></asp:Button>
			<asp:button class="buttons"  id="BtnDelete" Text="删除记录" runat="server" 
                onclick="BtnDelete_Click1" ></asp:button></TD>
	</TR>
</TABLE>
