Ejemplo n.º 1
0
 /// <summary>
 /// 超声科类获取二级菜单,获取二级及三级的级联菜单
 /// </summary>
 private void GetTwoModel()
 {
     System.Data.DataTable dt = BSysFun.GetList(" MODEL_CLASS='2' and UP_MODEL_ID=" + this.Name + " ORDER BY SORT_FLAG desc");
     if (dt.Rows.Count > 0)
     {
         bool isHasThree = false, isAllThree = true;
         for (int i = 0; i < dt.Rows.Count; i++)
         {
             if (GetThreeModel(Convert.ToInt16(dt.Rows[i]["MODEL_ID"].ToString()), false))
             {
                 BaseControls.OutlookBarButton outButton = new BaseControls.OutlookBarButton();
                 outButton.Text    = dt.Rows[i]["MODEL_NAME"].ToString();
                 outButton.Tag     = Convert.ToInt16(dt.Rows[i]["MODEL_ID"].ToString());
                 outButton.Enabled = true;
                 this.outlookBar.Buttons.Add(outButton);
                 this.outlookBar.Size = new Size(this.outlookBar.Width, this.outlookBar.Height + this.outlookBar.ButtonHeight);
                 isHasThree           = true;
             }
             else
             {
                 isAllThree = false;
                 NewButton(dt.Rows[i], this.p_Two, ref this.y_Two);
             }
         }
         if (isHasThree && isAllThree)
         {
             this.p_Two.Visible      = false;
             this.p_TwoAndThree.Dock = DockStyle.Fill;
             this.p_Three.Controls.Clear();
             this.y_Three = 0;
             this.outlookBar.SelectedButton = this.outlookBar.Buttons[0];
             GetThreeModel(Convert.ToInt16(this.outlookBar.SelectedButton.Tag), true);
         }
         if (!isHasThree)
         {
             this.p_TwoAndThree.Visible = false;
         }
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// 质量管理系统二级导航加载
        /// </summary>
        private void GetTwo_QualityControl()
        {
            this.p_Two.Visible      = false;
            this.p_TwoAndThree.Dock = DockStyle.Fill;
            switch (this.Tag.ToString())
            {
            case "QualityControl_PACS_Information":      //科室资料
                BaseControls.OutlookBarButton outButton = new BaseControls.OutlookBarButton();
                outButton.Text    = "操作常规";
                outButton.Tag     = "DeptInformation1";
                outButton.Enabled = true;
                this.outlookBar.Buttons.Add(outButton);
                this.outlookBar.Size = new Size(this.outlookBar.Width, this.outlookBar.Height + this.outlookBar.ButtonHeight);
                GetThree_QualityControl("DeptInformation1");

                BaseControls.OutlookBarButton outButton1 = new BaseControls.OutlookBarButton();
                outButton1.Text    = "岗位分布";
                outButton1.Tag     = "DeptInformation2";
                outButton1.Enabled = true;
                this.outlookBar.Buttons.Add(outButton1);
                this.outlookBar.Size = new Size(this.outlookBar.Width, this.outlookBar.Height + this.outlookBar.ButtonHeight);

                BaseControls.OutlookBarButton outButton2 = new BaseControls.OutlookBarButton();
                outButton2.Text    = "岗位职责";
                outButton2.Tag     = "DeptInformation3";
                outButton2.Enabled = true;
                this.outlookBar.Buttons.Add(outButton2);
                this.outlookBar.Size = new Size(this.outlookBar.Width, this.outlookBar.Height + this.outlookBar.ButtonHeight);

                break;

            case "QualityControl_PACS_Total":     //质控统计
                BaseControls.OutlookBarButton ToutButton = new BaseControls.OutlookBarButton();
                ToutButton.Text    = "普通摄片";
                ToutButton.Tag     = "QualityControlTotal1";
                ToutButton.Enabled = true;
                this.outlookBar.Buttons.Add(ToutButton);
                this.outlookBar.Size = new Size(this.outlookBar.Width, this.outlookBar.Height + this.outlookBar.ButtonHeight);
                GetThree_QualityControl("QualityControlTotal1");

                BaseControls.OutlookBarButton ToutButton1 = new BaseControls.OutlookBarButton();
                ToutButton1.Text    = "照影";
                ToutButton1.Tag     = "QualityControlTotal2";
                ToutButton1.Enabled = true;
                this.outlookBar.Buttons.Add(ToutButton1);
                this.outlookBar.Size = new Size(this.outlookBar.Width, this.outlookBar.Height + this.outlookBar.ButtonHeight);

                BaseControls.OutlookBarButton ToutButton2 = new BaseControls.OutlookBarButton();
                ToutButton2.Text    = "统计管理";
                ToutButton2.Tag     = "QualityControlTotal3";
                ToutButton2.Enabled = true;
                this.outlookBar.Buttons.Add(ToutButton2);
                this.outlookBar.Size = new Size(this.outlookBar.Width, this.outlookBar.Height + this.outlookBar.ButtonHeight);
                break;

            case "QualityControl_PACS_Office":        //质控管理文档
                BaseControls.OutlookBarButton HoutButton = new BaseControls.OutlookBarButton();
                HoutButton.Text    = "培训制度";
                HoutButton.Tag     = "QualityControlOffice1";
                HoutButton.Enabled = true;
                this.outlookBar.Buttons.Add(HoutButton);
                this.outlookBar.Size = new Size(this.outlookBar.Width, this.outlookBar.Height + this.outlookBar.ButtonHeight);
                GetThree_QualityControl("QualityControlOffice1");

                BaseControls.OutlookBarButton HoutButton1 = new BaseControls.OutlookBarButton();
                HoutButton1.Text    = "规章制度";
                HoutButton1.Tag     = "QualityControlOffice2";
                HoutButton1.Enabled = true;
                this.outlookBar.Buttons.Add(HoutButton1);
                this.outlookBar.Size = new Size(this.outlookBar.Width, this.outlookBar.Height + this.outlookBar.ButtonHeight);

                BaseControls.OutlookBarButton HoutButton2 = new BaseControls.OutlookBarButton();
                HoutButton2.Text    = "质控标准";
                HoutButton2.Tag     = "QualityControlOffice3";
                HoutButton2.Enabled = true;
                this.outlookBar.Buttons.Add(HoutButton2);
                this.outlookBar.Size = new Size(this.outlookBar.Width, this.outlookBar.Height + this.outlookBar.ButtonHeight);

                break;
            }
        }