You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
DS7/DSWeb/Modules/ModuleManagement.aspx.cs

66 lines
1.9 KiB
C#

3 years ago
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using DSWeb.Models;
using DSWeb.EntityDA;
namespace DSWeb.Modules
{
public partial class ModuleManagement : System.Web.UI.Page
{
private string strHandle;
private string strModuleGID;//模块GID
private string strUserID;//用户GID
private string strModuleDescription;//模块中文名称
protected System.Web.UI.HtmlControls.HtmlSelect sel_module;
protected void Page_Load(object sender, EventArgs e)
{
if(Session["USERID"] != null)
{
strUserID = Session["USERID"].ToString();
}
if(Request.QueryString["handle"] != null)
{
strHandle = Request.QueryString["handle"].ToString();
}
if(Request.QueryString["id"] != null)
{
strModuleGID = Request.QueryString["id"].ToString();
h_moduleid.Value = strModuleGID;
}
if (Request.QueryString["description"] != null)
{
strModuleDescription = Request.QueryString["description"].ToString();
}
if(strHandle != null)
{
if (strHandle == "edit" && strModuleGID != null)
{
ModuleDA moduleDA = new ModuleDA();
ModuleEntity moduleEntity = new ModuleEntity();
moduleEntity = moduleDA.GetModuleByID(strModuleGID);
if (moduleEntity.ParentID.Trim().Equals(""))
{
this.sel_module.Items.Add(new ListItem(moduleEntity.ModuleDescription, moduleEntity.Gid));
}
}
}
}
}
}