using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Web; 
using BLL.Manager.RoleUserManagerBLL; 
using System.Data; 
using System.Text; 
using Model; 
using BLL; 
namespace ExamSystemV3.Manager.RoleManager 
{ 
/// <summary> 
/// AddBox 的摘要说明 
/// </summary> 
public class AddBox : IHttpHandler 
{ 
public void ProcessRequest(HttpContext context) 
{ 
context.Response.ContentType = "text/plain"; 
System.Threading.Thread.Sleep(1000); 
DIVEntity EDiv = new DIVEntity(); 
TR_WindowsDIVEntity EWindowsDiv = new TR_WindowsDIVEntity(); 
AdmDIVManager admDIVManager = new AdmDIVManager(); 
PublicBLL publicBll = new PublicBLL(); 
///收集信息 
string strChildBoxId = ""; 
string strChildBoxTitle = ""; 
strChildBoxId = context.Request.QueryString["childboxId"].ToString().Trim(); 
strChildBoxTitle = context.Server.UrlDecode(context.Request.QueryString["childboxTitle"].ToString().Trim()); 
string strWindowsId = context.Request.QueryString["windowsId"].ToString().Trim(); 
string strParentBoxId=context.Request.QueryString["parentboxId"].ToString ().Trim();; 
string strState = "是"; 
string strDateTime = publicBll.GetDate(); 
string strIP = publicBll.GetWebClientIp(); 
string strOperator ="xvshu";//context.Session["UserNo"].ToString().Trim(); ; 
//给实体类赋值 
EDiv.Id = strChildBoxId; 
EDiv.MainRelation = strParentBoxId; 
EDiv.DIVName = strChildBoxTitle; 
EDiv.DIVDescribe = strChildBoxTitle; 
EDiv.Operator = strOperator; 
EDiv.OperatorIP = strIP; 
EDiv.State = strState; 
EDiv.DateTime = strDateTime; 
//给WindowsDIV实体类赋值 
EWindowsDiv.DIVID = strChildBoxId; 
EWindowsDiv.WindowsID = strWindowsId; 
EWindowsDiv.IsVisible = "是"; 
EWindowsDiv.Operator = strOperator; 
EWindowsDiv.OperatorIP = strIP; 
EWindowsDiv.DateTime = strDateTime; 
//添加DIV 
admDIVManager.AddDIV(EDiv,EWindowsDiv); 
} 
public bool IsReusable 
{ 
get 
{ 
return false; 
} 
} 
} 
} 
您可能感兴趣的文章:
