private bool LoadInformation(int _request)
        {
            lblView.Text = oRequestField.GetBodyWorkflow(_request, dsnServiceEditor, intEnvironment, dsnAsset, dsnIP);
            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");
                lblNumber.Text = "CVT" + intRequest.ToString();
                lblType.Text   = "Task";
            }
            bool    boolDone = false;
            DataSet ds       = oCustomized.GetServerArchive(intRequest, intItem, intNumber);

            if (ds.Tables[0].Rows.Count > 0)
            {
                txtHostname.Text    = ds.Tables[0].Rows[0]["hostname"].ToString();
                chkHostname.Checked = (txtHostname.Text != "");
                lblG1.Text          = txtHostname.Text;
                chkG1.Checked       = (ds.Tables[0].Rows[0]["G1"].ToString() == "1");
                chkG2.Checked       = (ds.Tables[0].Rows[0]["G2"].ToString() == "1");
                chkG3.Checked       = (ds.Tables[0].Rows[0]["G3"].ToString() == "1");
                chkG4.Checked       = (ds.Tables[0].Rows[0]["G4"].ToString() == "1");
                chkG5.Checked       = (ds.Tables[0].Rows[0]["G5"].ToString() == "1");
                boolDone            = (txtHostname.Text.Trim() != "" && chkG1.Checked && chkG2.Checked && chkG3.Checked && chkG4.Checked && chkG5.Checked);
            }
            if (Request.QueryString["div"] != null)
            {
                switch (Request.QueryString["div"])
                {
                case "E":
                    boolExecution = true;
                    break;

                case "X":
                    boolExtension = true;
                    break;
                }
            }
            if (boolDetails == false && boolExecution == false && boolExtension == false)
            {
                boolDetails = true;
            }
            return(boolDone);
        }
Пример #2
0
        private void LoadInformation(int _request)
        {
            lblView.Text = oRequestField.GetBodyWorkflow(_request, dsnServiceEditor, intEnvironment, dsnAsset, dsnIP);
            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";
            }
            DataSet dsAudit = oAudit.GetError(intRequest, intService, intNumber);

            if (dsAudit.Tables[0].Rows.Count > 0)
            {
                radActionFix.Checked    = (dsAudit.Tables[0].Rows[0]["fixed"].ToString() == "1");
                radActionIgnore.Checked = (dsAudit.Tables[0].Rows[0]["fixed"].ToString() == "0");
                if (radActionIgnore.Checked)
                {
                    trIgnore.Style["display"] = "inline";
                    txtReason.Text            = dsAudit.Tables[0].Rows[0]["reason"].ToString();
                }
            }

            if (Request.QueryString["div"] != null)
            {
                switch (Request.QueryString["div"])
                {
                case "E":
                    boolExecution = true;
                    break;
                }
            }
            if (boolDetails == false && boolExecution == false)
            {
                boolDetails = true;
            }
        }
Пример #3
0
        private void LoadInformation(int _request)
        {
            lblView.Text = oRequestField.GetBodyWorkflow(_request, dsnServiceEditor, intEnvironment, dsnAsset, dsnIP);
            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;

                case "S":
                    boolStatusUpdates = true;
                    break;
                }
            }
            if (boolDetails == false && boolExecution == false && boolStatusUpdates == false && boolChange == false && boolDocuments == false)
            {
                boolDetails = true;
            }
        }
Пример #4
0
        private bool LoadInformation(int _request)
        {
            lblView.Text = oRequestField.GetBodyWorkflow(_request, dsnServiceEditor, intEnvironment, dsnAsset, dsnIP);
            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");
                lblNumber.Text = "CVT" + intRequest.ToString();
                lblType.Text   = "Task";
            }
            bool    boolDone = false;
            DataSet ds       = oCustomized.GetServerArchive(intRequest, intItem, intNumber);

            if (ds.Tables[0].Rows.Count > 0)
            {
                if (ds.Tables[0].Rows[0]["backto"].ToString() == "Virtual")
                {
                    panTestCenterVirtual.Visible = true;
                    lblT1.Text = ds.Tables[0].Rows[0]["hostname"].ToString();
                    if (lblT1.Text == "")
                    {
                        lblT1.Text = "N/A";
                    }
                    chkTV1.Checked = (ds.Tables[0].Rows[0]["TV1"].ToString() == "1");
                    chkTV2.Checked = (ds.Tables[0].Rows[0]["TV2"].ToString() == "1");
                    boolDone       = (chkTV1.Checked && chkTV2.Checked);
                }
                else
                {
                    panTestCenterPhysical.Visible = true;
                    Models oModel = new Models(intProfile, dsn);
                    lblModelNumber.Text = oModel.Get(Int32.Parse(ds.Tables[0].Rows[0]["modelid"].ToString()), "name");
                    chkTP1.Checked      = (ds.Tables[0].Rows[0]["TP1"].ToString() == "1");
                    chkTP2.Checked      = (ds.Tables[0].Rows[0]["TP2"].ToString() == "1");
                    chkTP3.Checked      = (ds.Tables[0].Rows[0]["TP3"].ToString() == "1");
                    chkTP4.Checked      = (ds.Tables[0].Rows[0]["TP4"].ToString() == "1");
                    chkTP5.Checked      = (ds.Tables[0].Rows[0]["TP5"].ToString() == "1");
                    chkTP6.Checked      = (ds.Tables[0].Rows[0]["TP6"].ToString() == "1");
                    chkTP7.Checked      = (ds.Tables[0].Rows[0]["TP7"].ToString() == "1");
                    chkTP8.Checked      = (ds.Tables[0].Rows[0]["TP8"].ToString() == "1");
                    chkTP9.Checked      = (ds.Tables[0].Rows[0]["TP9"].ToString() == "1");
                    chkTP10.Checked     = (ds.Tables[0].Rows[0]["TP10"].ToString() == "1");
                    boolDone            = (chkTP1.Checked && chkTP2.Checked && chkTP3.Checked && chkTP4.Checked && chkTP5.Checked && chkTP6.Checked && chkTP7.Checked && chkTP8.Checked && chkTP9.Checked && chkTP10.Checked);
                }
            }
            if (Request.QueryString["div"] != null)
            {
                switch (Request.QueryString["div"])
                {
                case "E":
                    boolExecution = true;
                    break;

                case "X":
                    boolExtension = true;
                    break;
                }
            }
            if (boolDetails == false && boolExecution == false && boolExtension == false)
            {
                boolDetails = true;
            }
            return(boolDone);
        }