insertchengyuan.aspx
资源名称:OASystem.rar [点击查看]
上传用户:lishan0805
上传日期:2019-12-08
资源大小:12048k
文件大小:3k
源码类别:
OA系统
开发平台:
C#
- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="insertchengyuan.aspx.cs" Inherits="insertchengyuan" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" >
- <head runat="server">
- <title>添加成员</title>
- </head>
- <body>
- <form id="form1" runat="server">
- <div style="text-align: center">
- <asp:ScriptManager ID="ScriptManager1" runat="server">
- </asp:ScriptManager>
- <asp:UpdatePanel ID="UpdatePanel1" runat="server">
- <ContentTemplate>
- <asp:Label ID="Label1" runat="server" Text="请选择对象"></asp:Label><asp:DropDownList
- ID="ddl_bumen" runat="server" AutoPostBack="True" DataSourceID="SqlDataSource1"
- DataTextField="dept_department" DataValueField="dept_id" OnSelectedIndexChanged="ddl_bumen_SelectedIndexChanged">
- <asp:ListItem Value="0">请选择部门</asp:ListItem>
- </asp:DropDownList><asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:OA_DBConnectionString %>"
- SelectCommand="SELECT dept_department, dept_id FROM department"></asp:SqlDataSource>
- <asp:DropDownList ID="ddl_duixiang" runat="server">
- <asp:ListItem Value="0">请选择对象</asp:ListItem>
- </asp:DropDownList><asp:Button ID="Button1" runat="server" OnClick="Button1_Click"
- Text="增加" /><br />
- <asp:Label ID="Label2" runat="server" Text="群组成员:"></asp:Label><br />
- <asp:TextBox ID="txt_jieshouren" runat="server" Width="453px"></asp:TextBox><asp:Button
- ID="Button4" runat="server" OnClick="Button4_Click" Text="清除" />
- </ContentTemplate>
- </asp:UpdatePanel>
- <br />
- <br />
- <br />
- <asp:Label ID="Label3" runat="server" Text="群组名称"></asp:Label>
- <%
- string groupname = this.Request["qunming"];
- string qunid = this.Request["qunid"];
- if (groupname == null || qunid == null)
- {
- this.Response.Write(string.Format(GetRedirect.REDIRECT, "qunzu.aspx"));
- }
- else
- {
- %>
- <input id="Txt_qunming" name="Txt_qunming" type="text" value="<%=groupname%>" />(如:我的同事)
- <br />
- <asp:Button ID="Button2" runat="server" Text="保存更新" OnClick="Button2_Click" />
- <input id="Button6" type="button" value="取消" onclick="javascript:history.go(-1)"/>
- <input id="Hidqunid" name="Hidqunid" type="hidden" value="<%=qunid %>"/><br />
- <asp:GridView ID="Gidv_qunchengyuan" runat="server" Height="256px" Width="637px" AutoGenerateColumns="False" OnRowDataBound="Gidv_qunchengyuan_RowDataBound">
- <Columns>
- <asp:BoundField DataField="G_groupname" HeaderText="群组名称" />
- <asp:BoundField HeaderText="群成员" DataField="U_username" />
- <asp:BoundField HeaderText="建立时间" DataField="U_logintime" />
- </Columns>
- </asp:GridView>
- <br />
- <br />
- </div>
- <%
- }
- %>
- </form>
- </body>
- </html>