protected void btnNext_Click(Object Sender, EventArgs e) { int intRequest = Int32.Parse(Request.QueryString["rid"]); int intItem = Int32.Parse(lblItem.Text); int intNumber = Int32.Parse(lblNumber.Text); oGroupRequest.AddMaintenance(intRequest, intItem, intNumber, "CHANGE", txtGroup.Text, Int32.Parse(ddlDomain.SelectedItem.Value)); oGroupRequest.DeleteMaintenanceParameters(intRequest, intItem, intNumber); string strScope = "Domain Local"; if (radGG.Checked == true) { strScope = "Global"; } if (radUG.Checked == true) { strScope = "Universal"; } oGroupRequest.AddMaintenanceParameter(intRequest, intItem, intNumber, strScope); string strType = "Security"; if (radD.Checked == true) { strType = "Distribution"; } oGroupRequest.AddMaintenanceParameter(intRequest, intItem, intNumber, strType); oRequest.UpdateUnNamedRequest(intRequest, "Group Maintenance"); oRequestItem.UpdateForm(intRequest, true); Response.Redirect(oPage.GetFullLink(intPage) + "?rid=" + intRequest.ToString()); }
protected void btnNext_Click(Object Sender, EventArgs e) { int intRequest = Int32.Parse(Request.QueryString["rid"]); int intItem = Int32.Parse(lblItem.Text); int intNumber = Int32.Parse(lblNumber.Text); oGroupRequest.AddMaintenance(intRequest, intItem, intNumber, "RENAME", txtFrom.Text, Int32.Parse(ddlDomain.SelectedItem.Value)); oGroupRequest.DeleteMaintenanceParameters(intRequest, intItem, intNumber); oGroupRequest.AddMaintenanceParameter(intRequest, intItem, intNumber, txtTo.Text); oRequest.UpdateUnNamedRequest(intRequest, "Group Maintenance"); oRequestItem.UpdateForm(intRequest, true); Response.Redirect(oPage.GetFullLink(intPage) + "?rid=" + intRequest.ToString()); }
protected void btnNext_Click(Object Sender, EventArgs e) { int intRequest = Int32.Parse(Request.QueryString["rid"]); int intItem = Int32.Parse(lblItem.Text); int intNumber = Int32.Parse(lblNumber.Text); int intDomain = Int32.Parse(ddlDomain.SelectedItem.Value); intDomain = Int32.Parse(oDomain.Get(intDomain, "environment")); AD oAD = new AD(intProfile, dsn, intDomain); DirectoryEntry oEntry = oAD.GroupSearch(txtGroup.Text); if (oEntry != null) { Response.Redirect(oPage.GetFullLink(intPage) + "?rid=" + intRequest.ToString() + "&invalid=true"); } else { oGroupRequest.AddMaintenance(intRequest, intItem, intNumber, "CREATE", txtGroup.Text, Int32.Parse(ddlDomain.SelectedItem.Value)); oGroupRequest.DeleteMaintenanceParameters(intRequest, intItem, intNumber); string strScope = "Domain Local"; if (radGG.Checked == true) { strScope = "Global"; } if (radUG.Checked == true) { strScope = "Universal"; } oGroupRequest.AddMaintenanceParameter(intRequest, intItem, intNumber, strScope); string strType = "Security"; if (radD.Checked == true) { strType = "Distribution"; } oGroupRequest.AddMaintenanceParameter(intRequest, intItem, intNumber, strType); oRequest.UpdateUnNamedRequest(intRequest, "Group Maintenance"); oRequestItem.UpdateForm(intRequest, true); Response.Redirect(oPage.GetFullLink(intPage) + "?rid=" + intRequest.ToString()); } }