示例#1
0
 public void pageInit(Billing parent, BillingRptParaClass pPara)
 {
     this.m_parent     = parent;
     this.m_pParaClass = pPara;
     this.m_isRPTSaved = false;
     this.CreateChart();
 }
示例#2
0
        public void showRpt(int selpage, int needinit)
        {
            switch (selpage)
            {
            case 1:
                if (needinit == 1)
                {
                    this.billingRptPara1.pageInit(this);
                }
                else
                {
                    this.billingRptPara1.pageInit_2(0);
                }
                this.billingRptPara1.Visible = true;
                this.billingRptShow1.Visible = false;
                this.billingRptPara1.resettime();
                this.m_inAnalysisFlg = 1;
                return;

            case 2:
                Program.IdleTimer_Pause(8);
                this.billingRptPara1.pageInit_2(1);
                this.billingRptPara1.Visible = true;
                this.billingRptShow1.Visible = false;
                if (this.m_inAnalysisFlg == 2)
                {
                    return;
                }
                this.m_inAnalysisFlg  = 2;
                this.m_oldAnalysisFlg = 2;
                this.m_pParaClass     = new BillingRptParaClass(this.billingRptPara1);
                System.Threading.ThreadPool.QueueUserWorkItem(new System.Threading.WaitCallback(this.prepare_dataProc), null);
                this.dTimer.Enabled = true;
                return;

            case 3:
                this.billingRptPara1.Visible = false;
                this.billingRptShow1.Visible = true;
                this.billingRptShow1.pageInit(this, this.m_pParaClass);
                DebugCenter.GetInstance().appendToFile("BillingAnalysis Finish.");
                Program.IdleTimer_Run(8);
                this.m_inAnalysisFlg = 4;
                return;

            case 4:
                this.billingRptPara1.Visible = false;
                this.billingRptShow1.Visible = true;
                this.m_inAnalysisFlg         = 4;
                return;

            default:
                return;
            }
        }