private void LoadInformation(int _request) { if (intService == Int32.Parse(ConfigurationManager.AppSettings["SERVICEID_PROVISIONINGSUPPORT_SERVER"]))//Server =1 { panIncident.Visible = true; lblView.Text = oServer.GetErrorDetailsBody(intRequest, oService.GetItemId(intService), intNumber, intEnvironment); DataSet dsError = oServer.GetErrorByRequest(intRequest, oService.GetItemId(intService), intNumber); if (dsError.Tables[0].Rows.Count > 0) { lblErrorId.Text = dsError.Tables[0].Rows[0]["id"].ToString(); lblServerId.Text = dsError.Tables[0].Rows[0]["serverid"].ToString(); int intServerId = Int32.Parse(lblServerId.Text); txtIncident.Text = dsError.Tables[0].Rows[0]["incident"].ToString(); int intAssigned = 0; string strAssigned = ""; if (Int32.TryParse(dsError.Tables[0].Rows[0]["assigned"].ToString(), out intAssigned)) { strAssigned = oUser.GetFullNameWithLanID(intAssigned); } txtIncidentUser.Text = strAssigned; hdnIncidentUser.Value = dsError.Tables[0].Rows[0]["assigned"].ToString(); LoadServerErrors(); } } if (intService == Int32.Parse(ConfigurationManager.AppSettings["SERVICEID_PROVISIONINGSUPPORT_WORKSTATION"])) //Workstation =2 { panIncident.Visible = true; lblView.Text = oWorkstation.GetVirtualErrorDetailsBody(intRequest, intNumber, intEnvironment); DataSet dsError = oWorkstation.GetVirtualErrorsByRequest(intRequest, intNumber); if (dsError.Tables[0].Rows.Count > 0) { lblErrorId.Text = dsError.Tables[0].Rows[0]["id"].ToString(); lblWorkstationId.Text = dsError.Tables[0].Rows[0]["workstationid"].ToString(); int intWorkstationId = Int32.Parse(lblWorkstationId.Text); txtIncident.Text = dsError.Tables[0].Rows[0]["incident"].ToString(); int intAssigned = 0; string strAssigned = ""; if (Int32.TryParse(dsError.Tables[0].Rows[0]["assigned"].ToString(), out intAssigned)) { strAssigned = oUser.GetFullNameWithLanID(intAssigned); } txtIncidentUser.Text = strAssigned; hdnIncidentUser.Value = dsError.Tables[0].Rows[0]["assigned"].ToString(); LoadWorkstationErrors(); } } if (intProject > 0) { lblName.Text = oProject.Get(intProject, "name"); lblNumber.Text = oProject.Get(intProject, "number"); lblType.Text = "Project"; } else { lblName.Text = oResourceRequest.GetWorkflow(_request, "name"); //lblName.Text = oResourceRequest.GetWorkflow(_request, "name"); lblNumber.Text = "CVT" + intRequest.ToString(); lblType.Text = "Task"; } if (Request.QueryString["div"] != null) { switch (Request.QueryString["div"]) { case "E": boolExecution = true; break; case "C": boolChange = true; break; case "D": boolDocuments = true; break; } } if (boolDetails == false && boolExecution == false && boolChange == false && boolDocuments == false) { boolDetails = true; } }