insertchengyuan.aspx
上传用户:lishan0805
上传日期:2019-12-08
资源大小:12048k
文件大小:3k
源码类别:

OA系统

开发平台:

C#

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="insertchengyuan.aspx.cs" Inherits="insertchengyuan" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" >
  4. <head runat="server">
  5.     <title>添加成员</title>
  6. </head>
  7. <body>
  8.     <form id="form1" runat="server">
  9.     <div style="text-align: center">
  10.         <asp:ScriptManager ID="ScriptManager1" runat="server">
  11.         </asp:ScriptManager>
  12.         <asp:UpdatePanel ID="UpdatePanel1" runat="server">
  13.             <ContentTemplate>
  14.         <asp:Label ID="Label1" runat="server" Text="请选择对象"></asp:Label><asp:DropDownList
  15.             ID="ddl_bumen" runat="server" AutoPostBack="True" DataSourceID="SqlDataSource1"
  16.             DataTextField="dept_department" DataValueField="dept_id" OnSelectedIndexChanged="ddl_bumen_SelectedIndexChanged">
  17.             <asp:ListItem Value="0">请选择部门</asp:ListItem>
  18.         </asp:DropDownList><asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:OA_DBConnectionString %>"
  19.             SelectCommand="SELECT dept_department, dept_id FROM department"></asp:SqlDataSource>
  20.         <asp:DropDownList ID="ddl_duixiang" runat="server">
  21.             <asp:ListItem Value="0">请选择对象</asp:ListItem>
  22.         </asp:DropDownList><asp:Button ID="Button1" runat="server" OnClick="Button1_Click"
  23.             Text="增加" /><br />
  24.                 <asp:Label ID="Label2" runat="server" Text="群组成员:"></asp:Label><br />
  25.                 <asp:TextBox ID="txt_jieshouren" runat="server" Width="453px"></asp:TextBox><asp:Button
  26.                 ID="Button4" runat="server" OnClick="Button4_Click" Text="清除" />
  27.             </ContentTemplate>
  28.         </asp:UpdatePanel>
  29.         <br />
  30.         &nbsp;<br />
  31.         <br />                
  32.         <asp:Label ID="Label3" runat="server" Text="群组名称"></asp:Label>&nbsp;
  33.             <% 
  34.                 string groupname = this.Request["qunming"];
  35.                 string qunid = this.Request["qunid"];
  36.                 if (groupname == null || qunid == null)
  37.                 {
  38.                     this.Response.Write(string.Format(GetRedirect.REDIRECT, "qunzu.aspx"));
  39.                 }
  40.                 else
  41.                 {
  42.             %>
  43.             <input id="Txt_qunming" name="Txt_qunming" type="text" value="<%=groupname%>" />(如:我的同事)
  44.         <br />
  45.         <asp:Button ID="Button2" runat="server" Text="保存更新" OnClick="Button2_Click" />   
  46.         <input id="Button6" type="button" value="取消" onclick="javascript:history.go(-1)"/>
  47.         <input id="Hidqunid" name="Hidqunid" type="hidden"  value="<%=qunid %>"/><br />
  48.         <asp:GridView ID="Gidv_qunchengyuan" runat="server" Height="256px" Width="637px" AutoGenerateColumns="False" OnRowDataBound="Gidv_qunchengyuan_RowDataBound">
  49.             <Columns>
  50.                 <asp:BoundField DataField="G_groupname" HeaderText="群组名称" />
  51.                 <asp:BoundField HeaderText="群成员" DataField="U_username" />
  52.                 <asp:BoundField HeaderText="建立时间" DataField="U_logintime" />
  53.             </Columns>
  54.         </asp:GridView>
  55.         <br />
  56.         &nbsp;&nbsp;<br />
  57.         &nbsp;</div>
  58.     <% 
  59.        }
  60.     %>
  61.     </form>
  62. </body>
  63. </html>