Exemple #1
0
        public void ShowCompletedLabels()
        {
            int i;
            int iQuestionSections = m_iQuestionSections;
            clsTabletDB.ITPDocumentSection DBQ = new clsTabletDB.ITPDocumentSection();
            int iThisSectionDBTagId;
            bool bAnyCommitted = DBQ.ProjectSectionRFUAnyPwrIdCommitted(m_sPassedId);
            bool bAllCommittted = DBQ.ProjectSectionRFUFullyCommitted(m_sPassedId);

            for(i=0;i<iQuestionSections;i++)
            {
                UILabel hfSectionDBId = (UILabel)View.ViewWithTag (iSectionDBIdTagId * (i+1));
                iThisSectionDBTagId = Convert.ToInt32(hfSectionDBId.Text);
                UILabel lblSectionComplete = (UILabel)View.ViewWithTag (iSectionCompleteLabelTagId * (i+1));
                if(bAnyCommitted)
                {
                    lblSectionComplete.Text = "COMMITTED";
                }
                else
                {
                    lblSectionComplete.Text = "COMPLETED";
                }

                if(DBQ.ProjectQuestionsSectionFullyAnswered(m_sPassedId, iThisSectionDBTagId))
                {
                    lblSectionComplete.Hidden = false;
                }
                else
                {
                    lblSectionComplete.Hidden = true;
                }
            }

            UILabel lblCompletedBatt = (UILabel)View.ViewWithTag (iSectionCompleteLabelTagId * (m_iBatterySectionCounter + 1));

            if(BatteryFullyComplete())
            {
                if(bAllCommittted)
                {
                    lblCompletedBatt.Text = "COMMITTED";
                }
                else
                {
                    if(BatteryFullyCommitted())
                    {
                        lblCompletedBatt.Text = "COMMITTED";
                    }
                    else
                    {
                        lblCompletedBatt.Text = "COMPLETED";
                    }
                }
                lblCompletedBatt.Hidden = false;
            }
            else
            {
                lblCompletedBatt.Hidden = true;
            }

            UILabel lblCompletedPwrConv = (UILabel)View.ViewWithTag (iSectionCompleteLabelTagId * (m_iEquipmentSectionCounter+1));

            if(PowerConversionFullyComplete())
            {
                if(bAllCommittted)
                {
                    lblCompletedPwrConv.Text = "COMMITTED";
                }
                else
                {
                    if(PowerConversionFullyCommitted())
                    {
                        lblCompletedPwrConv.Text = "COMMITTED";
                    }
                    else
                    {
                        lblCompletedPwrConv.Text = "COMPLETED";
                    }
                }
                lblCompletedPwrConv.Hidden = false;
            }
            else
            {
                lblCompletedPwrConv.Hidden = true;
            }

            UILabel lblCompletedRFU = (UILabel)View.ViewWithTag (iSectionCompleteLabelTagId * (m_iRFUSectionCounter+1));

            if(RFUFullyCommitted())
            {
                lblCompletedRFU.Text = "COMMITTED";
                lblCompletedRFU.Hidden = false;
            }
        }
Exemple #2
0
 public bool RFUFullyCommitted()
 {
     clsTabletDB.ITPDocumentSection DBQ = new clsTabletDB.ITPDocumentSection();
     return DBQ.ProjectSectionRFUFullyCommitted(m_sPassedId);
 }