Beispiel #1
0
        public string GetCleanNumber()
        {
            string      tmpNumber;
            string      number;
            CBProject   p   = new CBProject();
            CBBudgetPCN pcn = new CBBudgetPCN();

            p.Load(base.ProjectID);
            pcn.Load(base.PCNID);

            tmpNumber = p.Number;
            int test = tmpNumber.IndexOf("-");

            if (tmpNumber.IndexOf("-") > 1)
            {
                number = tmpNumber.Substring(0, tmpNumber.IndexOf("-"));
            }
            else
            {
                number = tmpNumber;
            }

            if (base.Revision > 0)
            {
                number += "-r" + base.Revision.ToString();
            }

            if (pcn.ID > 0)
            {
                number += "-PCN" + pcn.PCNNumber;
            }

            return(number);
        }
Beispiel #2
0
        private GrapeCity.ActiveReports.Document.Section.PagesCollection CreatePagesPCN(string projNumber, string pcnNumber, int pcnID)
        {
            rprtPCNMain rprt = new rprtPCNMain();
            DataSet     ds;
            CBBudgetPCN pcn = new CBBudgetPCN();

            ds = CBBudgetPCN.GetBudgetPCNInfoForReport(pcnID);
            pcn.Load(pcnID);

            rprt.SetInformation(pcn);
            rprt.DataSource = ds;
            rprt.DataMember = "Table";

            rprt.Run();


            return(rprt.Document.Pages);
        }
Beispiel #3
0
        public void PreviewPCN(int pcnID)
        {
            FPreviewAR  pv   = new FPreviewAR();
            rprtPCNMain rprt = new rprtPCNMain();
            DataSet     ds;
            CBBudgetPCN pcn = new CBBudgetPCN();

            ds = CBBudgetPCN.GetBudgetPCNInfoForReport(pcnID);
            pcn.Load(pcnID);

            rprt.SetInformation(pcn);
            rprt.DataSource = ds;
            rprt.DataMember = "Table";
            pv.Title        = pcn.PCNTitle; //************************Added 10/1/2015
            //rprt.Run();

            pv.ViewReport(rprt);
            pv.ShowDialog();
        }