Ejemplo n.º 1
0
        public void EditPreviousPCN(int pcnID)
        {
            ClearForm();

            moProj = new CBProject();
            moBudg = new CBBudget();

            moPCN.LoadWithData(pcnID);
            moProj.Load(moPCN.ProjectID);
            project_ID = moPCN.ProjectID;

            List <CBActivityCodeDisc> _Groups = CBActivityCodeDisc.GetAllForProject(project_ID).ToList();

            foreach (var group in _Groups)
            {
                codes[i] = group.Code;
                i++;
            }


            moBudg.LoadByProject(moProj.ID);

            LoadFromPCN();

            this.Text = "PCN: Job-" + moProj.Number + " PCN-" + moPCN.PCNNumber;

            SetPCNSecurityLevel();
            mbIsFixedRate = moProj.IsFixedRate;
            SetPCN_RateLevel();
        }
Ejemplo n.º 2
0
        public void CopyPCN(int projID, int pcnID)
        {
            ClearForm();

            moProj = new CBProject();
            moBudg = new CBBudget();

            moPCN.LoadWithCopyData(pcnID);

            moProj.Load(moPCN.ProjectID);
            moBudg.LoadByProject(moProj.ID);

            LoadFromPCN();

            this.Text = "PCN: Job-" + moProj.Number + " PCN-" + moPCN.PCNNumber;

            moProj.Load(projID);
            moPCN.PCNNumber = moPCN.GetNextPCNNumber(projID);
            moPCN.ProjectID = projID;

            lblProjectNumber.Text = moProj.Number;
            lblProjectTitle.Text  = moProj.Description;
            txtPCNNumber.Text     = moPCN.PCNNumber;
            this.Text             = "PCN: Job-" + moProj.Number + " PCN-" + moPCN.PCNNumber;
            project_ID            = moPCN.ProjectID;
            List <CBActivityCodeDisc> _Groups = CBActivityCodeDisc.GetAllForProject(project_ID).ToList();

            foreach (var group in _Groups)
            {
                codes[i] = group.Code;
                i++;
            }

            SetPCNSecurityLevel();
            mbIsFixedRate = moProj.IsFixedRate;
            SetPCN_RateLevel();
        }