コード例 #1
0
ファイル: DashBoard.cs プロジェクト: opianHealth/ForLAB
        private void BulildDashBoard()
        {
            this._currentUserCtr = new ChartSiteperRegion();

            LoadCurrentUserCtr();

            this._currentUserCtr = new ChartTestperArea();

            LoadCurrentUserCtr();

            this._currentUserCtr = new ProductNoperCat();

            LoadCurrentUserCtr();

            this._currentUserCtr = new chartSiteCategory();

            LoadCurrentUserCtr();

            this._currentUserCtr = new ChartSiteLevelperRegion();

            LoadCurrentUserCtr();

            this._currentUserCtr = new chartInstrumentDistribution();

            LoadCurrentUserCtr();
        }
コード例 #2
0
ファイル: LqtDialogForm.cs プロジェクト: opianHealth/ForLAB
 public LqtDialogForm(BaseUserControl buc)
 {
     InitializeComponent();
 }
コード例 #3
0
        private void tsbReport_Click(object sender, EventArgs e)
        {
            //FrmReportBrowser frm = new FrmReportBrowser();
            //frm.ShowDialog();
            this._currentUserCtr = null;

            SetEditButtonsStatus(false);

            ListReport lr = new ListReport();

            this.tlpMainPanel.Controls.Clear();
            //lr.MdiParentForm = this;
            lr.Dock = DockStyle.Fill;
            //.OnSelectedItemChanged += new EventHandler(_currentUserCtr_OnSelectedItemChanged);
            this.lblTitle.Text = "List of reports";
            this.tlpMainPanel.Controls.Add(lr);
        }
コード例 #4
0
        private void treeViewNav_AfterSelect(object sender, TreeViewEventArgs e)
        {
            string[] tag = e.Node.Tag.ToString().Split(new char[] { '|' });
            MainMenuTag mtag = (MainMenuTag)Enum.Parse(typeof(MainMenuTag), tag[0]);
            e.Node.Expand();
            int mid;

            switch (mtag)
            {
                case MainMenuTag.LOCATION:
                    if (tag.Length > 1)
                    {
                        mid = int.Parse(tag[1]);
                        if (mid == -1)
                        {
                            this._currentUserCtr = new ListRegionPane();
                            LoadCurrentUserCtr();
                        }
                        else if (mid == -2)
                        {
                            this._currentUserCtr = new ListSitePane(0);
                            LoadCurrentUserCtr();
                        }
                        else if (mid == -3)
                        {
                            this._currentUserCtr = new ListSitePane(int.Parse(tag[2]));
                            LoadCurrentUserCtr();
                        }
                        else if (mid == -4)
                        {
                            this._currentUserCtr = new ListSiteCatPane();
                            LoadCurrentUserCtr();
                        }
                    }
                    else
                    {
                        this._currentUserCtr = new ChartSiteperRegion();
                        LoadCurrentUserCtr();
                    }
                    break;
                case MainMenuTag.SETTINGS:
                    break;
                case MainMenuTag.TEST:
                    if (tag.Length > 1)
                    {
                        mid = int.Parse(tag[1]);
                        if (mid == -1)
                        {
                            this._currentUserCtr = new ListTestingAreaPane();
                            LoadCurrentUserCtr();
                        }
                        else if (mid == -2)
                        {
                            this._currentUserCtr = new ListTestingGroupPane();
                            LoadCurrentUserCtr();
                        }
                        else if (mid == -3)
                        {
                            this._currentUserCtr = new ListTestPane(FiliterTestByEnum.All, 0);
                            LoadCurrentUserCtr();
                        }
                        else if (mid == -4)
                        {
                            this._currentUserCtr = new ListTestPane(FiliterTestByEnum.TestArea, int.Parse(tag[2]));
                            LoadCurrentUserCtr();
                        }
                        else if (mid == -5)
                        {
                            this._currentUserCtr = new ListTestPane(FiliterTestByEnum.TestGroup, int.Parse(tag[2]));
                            LoadCurrentUserCtr();
                        }
                        else if (mid == -6)
                        {
                            if (tag.Length > 2)
                            {
                                ClassOfMorbidityTestEnum mtest = (ClassOfMorbidityTestEnum)Enum.ToObject(typeof(ClassOfMorbidityTestEnum), int.Parse(tag[2]));
                                if (int.Parse(tag[2]) <= 4)
                                {
                                    this._currentUserCtr = new ListMorbidityTestPane(mtest);
                                }
                                else
                                {
                                    this._currentUserCtr = new ListSupplyListPane(mtest);
                                }

                                LoadCurrentUserCtr();
                            }
                        }
                    }
                    else
                    {
                        this._currentUserCtr = new ChartTestperArea();
                        LoadCurrentUserCtr();
                    }
                    break;
                case MainMenuTag.PRODUCT:
                    if (tag.Length > 1)
                    {
                        mid = int.Parse(tag[1]);
                        if (mid == -1)
                        {
                            this._currentUserCtr = new ListProductTypePane();
                            LoadCurrentUserCtr();
                        }
                        else if (mid == -2)
                        {
                            this._currentUserCtr = new ListProductPane(0);
                            LoadCurrentUserCtr();
                        }
                        else if (mid == -3)
                        {
                            this._currentUserCtr = new ListProductPane(int.Parse(tag[2]));
                            LoadCurrentUserCtr();
                        }
                    }
                    else
                    {
                        this._currentUserCtr = new ProductNoperCat();
                        LoadCurrentUserCtr();
                    }
                    break;
                case MainMenuTag.INSTRUMENT:
                    this._currentUserCtr = new ListInstrumentPane();
                    LoadCurrentUserCtr();
                    break;
                case MainMenuTag.METHODOLOGY:
                    if (tag.Length > 1)
                    {
                        mid = int.Parse(tag[1]);
                        if (mid == -1)
                        {
                            this._currentUserCtr = new ListConsumptionPane(MethodologyEnum.CONSUMPTION);
                            LoadCurrentUserCtr();
                        }
                        else if (mid == -2)
                        {
                            this._currentUserCtr = new ListConsumptionPane(MethodologyEnum.SERVICE_STATISTIC);
                            LoadCurrentUserCtr();
                        }
                        else if (mid == -3)
                        {
                            this._currentUserCtr = new ListMorbidityPane();
                            LoadCurrentUserCtr();
                        }
                    }
                    break;
                case MainMenuTag.DASHBOARD:
                    this._currentUserCtr = new DashBoard();
                    LoadCurrentUserCtr();
                    break;
                case MainMenuTag.PROTOCOLS:

                    this._currentUserCtr = new ListProtocolPane();
                    LoadCurrentUserCtr();
                    break;
                case MainMenuTag.RAPIDTEST:

                    //this._currentUserCtr = new ListProtocolPane();
                    //LoadCurrentUserCtr();
                    RapidTestForm frm = new RapidTestForm();
                    frm.ShowDialog();
                    break;
            }
        }