Exemplo n.º 1
0
    // ------------------------------------------------------------------------------------
    // BuildStatus Table
    // ------------------------------------------------------------------------------------
    public bool GetStatusLockdown()
    {
        BuildStatusTableAdapter buildStatusAdapter = new BuildStatusTableAdapter();

        phxbuild.BuildStatusDataTable statusTable = buildStatusAdapter.GetBuildStatus();

        bool bLockdown = false;

        if (statusTable.Count > 0)
        {
            bLockdown = (statusTable[0].lockdown != 0) ? true : false;
        }

        return(bLockdown);
    }
Exemplo n.º 2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        phxbuild.BuildStatusDataTable buildStatusTable = s_phxBuildDB.GetBuildStatus();

        if (buildStatusTable.Count > 0)
        {
            if (!buildStatusTable[0].IsserverNull())
            {
                serverStatusLabel1.Text = buildStatusTable[0].server;
            }
            else
            {
                serverStatusLabel1.Text = "";
            }

            if (!buildStatusTable[0].IsjobNull())
            {
                jobStatusLabel1.Text = buildStatusTable[0].job.Replace("\n", "<br>");
            }
            else
            {
                jobStatusLabel1.Text = "";
            }
        }

        if (buildStatusTable.Count > 1)
        {
            if (!buildStatusTable[1].IsserverNull())
            {
                serverStatusLabel2.Text = buildStatusTable[1].server;
            }
            else
            {
                serverStatusLabel2.Text = "";
            }

            if (!buildStatusTable[1].IsjobNull())
            {
                jobStatusLabel2.Text = buildStatusTable[1].job.Replace("\n", "<br>");
            }
            else
            {
                jobStatusLabel2.Text = "";
            }
        }
    }