예제 #1
0
        private void MainToolWindow_Load(object sender, EventArgs e)
        {
            OutlookBarBand band = new OutlookBarBand("仓库管理");

            band.SmallImageList = this.imageList1;
            band.LargeImageList = this.imageList1;

            band.Items.Add(new OutlookBarItem("备件入库1", 0));

            band.Items.Add(new OutlookBarItem("备件出库2", 1));

            band.Items.Add(new OutlookBarItem("库存查询3", 2));

            band.Items.Add(new OutlookBarItem("备件信息4", 3));

            band.Items.Add(new OutlookBarItem("数据字典5", 4));

            band.Items.Add(new OutlookBarItem("业务报表6", 5));

            band.Items.Add(new OutlookBarItem("库房管理7", 6));

            band.Background = SystemColors.AppWorkspace;
            band.TextColor  = Color.White;
            this.outlookBar1.Bands.Add(band);
        }
예제 #2
0
 protected void RaiseChangedEvent(OutlookBarBand item)
 {
     if (Changed != null)
     {
         Changed(this, new OutlookBarBandEventArgs(item));
     }
 }
예제 #3
0
        private void InitializeOutlookbar()
        {
            this.outlookBar1 = new OutlookBar();
            //if (Portal.gc.HasFunction("WareMis"))
            //{
            OutlookBarBand band = new OutlookBarBand("仓库管理");

            band.SmallImageList = this.imageList1;
            band.LargeImageList = this.imageList1;

            band.Items.Add(new OutlookBarItem("备件入库", 0));

            band.Items.Add(new OutlookBarItem("备件出库", 1));

            band.Items.Add(new OutlookBarItem("库存查询", 2));

            band.Items.Add(new OutlookBarItem("备件信息", 3));

            band.Items.Add(new OutlookBarItem("数据字典", 4));

            band.Items.Add(new OutlookBarItem("业务报表", 5));

            band.Items.Add(new OutlookBarItem("库房管理", 6));

            band.Background = SystemColors.AppWorkspace;
            band.TextColor  = Color.White;
            this.outlookBar1.Bands.Add(band);

            this.outlookBar1.Dock = DockStyle.Fill;
            // this.outlookBar1.SetCurrentBand(0);
            this.outlookBar1.ItemClicked += new OutlookBarItemClickedHandler(this.OnOutlookBarItemClicked);
            this.outlookBar1.ItemDropped += new OutlookBarItemDroppedHandler(this.OnOutlookBarItemDropped);
            this.panel1.Controls.AddRange(new Control[] { this.outlookBar1 });
        }
예제 #4
0
 private void OnOutlookBarItemClicked(OutlookBarBand band, OutlookBarItem item)
 {
     if (item.Text == "缺陷字典管理")
     {
         DockContent itemDockContent = new FrmBseDictionaryTreeQuery();
         OpenForm(itemDockContent);
     }
     else if (item.Text == "基础项目")
     {
         DockContent itemDockContent = new FrmBseProjectSimpleQuery();
         OpenForm(itemDockContent);
     }
     else if (item.Text == "项目版本")
     {
         DockContent itemDockContent = new FrmBseProjectMasterDetailQuery();
         OpenForm(itemDockContent);
     }
     else if (item.Text == "项目模块")
     {
         DockContent itemDockContent = new FrmBseProjectModuleMasterDetailQuery();
         OpenForm(itemDockContent);
     }
     else if (item.Text == "基础表设置")
     {
         Form itemDockContent = new FrmCacheTablesSimpleQuery();
         itemDockContent.ShowDialog();
     }
     else if (item.Text == "缓存设置")
     {
         Form itemDockContent = new FrmCacheConfigSimpleQuery();
         itemDockContent.ShowDialog();
     }
 }
예제 #5
0
        private void OnOutlookBarItemClicked(OutlookBarBand band, OutlookBarItem item)
        {
            switch (item.Text)
            {
                //case "备件入库":
                //    Portal.gc.MainDialog.ShowContent("备件入库", typeof(FrmPurchase));
                //    break;

                //case "备件出库":
                //    Portal.gc.MainDialog.ShowContent("备件出库", typeof(FrmTakeOut));
                //    break;

                //case "库存查询":
                //    Portal.gc.MainDialog.ShowContent("库存查询", typeof(FrmStockSearch));
                //    break;

                //case "备件信息":
                //    Portal.gc.MainDialog.ShowContent("备件信息", typeof(FrmItemDetail));
                //    break;

                //case "数据字典":
                //    new FrmDictionary().Show();
                //    break;

                //case "业务报表":
                //    new FrmReports().ShowDialog();
                //    break;

                //case "库房管理":
                //    new FrmWareHouse().ShowDialog();
                //    break;
            }
        }
예제 #6
0
        private static void OnOutlookBarItemClicked(OutlookBarBand band, OutlookBarItem item)
        {
            switch (item.Text)
            {
            case "运行真空":
                application.Common.CommonControl.GetGpb(vp);
                break;

            case "运行时间":
                application.Common.CommonControl.GetGpb(tp);
                break;

            case "运行温度":
                application.Common.CommonControl.GetGpb(ttp);
                break;

            case "运行日志":
                application.Common.CommonControl.GetGpb(np);
                break;

            case "温度查询":
                application.Common.CommonControl.GetGpb(tqp);
                break;

            case "报警查询":
                application.Common.CommonControl.GetGpb(eqp);
                break;

            case "状态查询":
                application.Common.CommonControl.GetGpb(sqp);
                break;

            case "最小化":
                thisff.WindowState = FormWindowState.Minimized;
                break;

            case "切换登录":
                if (!Common.Msg.AskQuestion("是否切换用户?"))
                {
                    return;
                }
                string appStartupPath = System.IO.Path.GetDirectoryName(Process.GetCurrentProcess().MainModule.FileName);
                System.Diagnostics.Process.Start(appStartupPath + @"\application.UI.exe");
                Process.GetCurrentProcess().Kill();
                break;

            case "退出系统":
                if (application.Common.Msg.AskQuestion("确定要退出应用程序吗?"))
                {
                    //for (int i = 0; i < 1; i++)
                    //{
                    //    DataGather.bakingContent[0].Close();
                    //}

                    application.Common.GetCurrentProcess.Kill();
                }
                break;
            }
        }
예제 #7
0
 public int Add(OutlookBarBand band)
 {
     if (Contains(band))
     {
         return(-1);
     }
     return(List.Add(band));
 }
예제 #8
0
        private void MakeTree(ChoiceGroupCollection groupCollection, string label, out OutlookBarBand band)
        {
            TreeView tree = new TreeView();

            tree.Tag          = groupCollection;
            tree.AfterSelect += new TreeViewEventHandler(OnTreeNodeSelected);
            band              = new OutlookBarBand(label, tree);
        }
예제 #9
0
파일: MainForm.cs 프로젝트: demonzhq/Mine
        private void OnOutlookBarItemClicked(OutlookBarBand band, OutlookBarItem item)
        {
            switch (item.Text)
            {
                #region 业务管理

            case "建当处理":
                CreateTab("建当");
                break;

            case "赎当处理":
                CreateTab("赎当");
                break;

            case "续当处理":
                CreateTab("续当");
                break;

            case "绝当处理":
                CreateTab("绝当处理");
                break;

            case "清算处理":
                CreateTab("清算处理");
                break;
                #endregion

                #region 统计查询
            case "资金统计查询":
                CreateTab("资金统计查询");
                break;

            case "当日业务监控":
                CreateTab("当日业务监控");
                break;

            case "当品标准分类统计":
                CreateTab("当品标准分类统计");
                break;

            case "当品统计分类统计":
                CreateTab("当品统计分类统计");
                break;

            case "营收标准分类统计":
                CreateTab("营收标准分类统计");
                break;

            case "营收统计分类统计":
                CreateTab("营收统计分类统计");
                break;
                #endregion

            default:
                break;
            }
        }
예제 #10
0
        protected void RaiseOnItemAddedEvent(OutlookBarBand item)
        {
            if (OnItemAdded != null)
            {
                OnItemAdded(this, new OutlookBarBandEventArgs(item));
            }

            RaiseChangedEvent(item);
        }
예제 #11
0
        public int Add(OutlookBarBand band)
        {
            if (Contains(band))
            {
                return(-1);
            }
            int index = InnerList.Add(band);

            RaiseChanged();
            return(index);
        }
예제 #12
0
 /// <summary>
 /// The OutlookBar calls this when one of its properties changes, specifically, a different band is opened.
 /// </summary>
 /// <param name="band"></param>
 /// <param name="property"></param>
 public void PropertyChanged(OutlookBarBand band, OutlookBarProperty property)
 {
     if (property == OutlookBarProperty.CurrentBandChanged)
     {
         //int index =m_bar.GetCurrentBand();
         //OutlookBarBand band = m_bar.Bands[index];
         ChoiceGroup group = (ChoiceGroup)band.Tag;
         Debug.Assert(group != null);
         group.OnDisplay(this, null);
     }
 }
예제 #13
0
        private void OnOutlookBarItemClicked(OutlookBarBand band, OutlookBarItem item)
        {
            switch (item.Text)
            {
                #region 销售管理

            case "备件入库":
                mainForm.ShowContent("备件入库", typeof(Form备件入库));
                break;

            case "备件出库":
                mainForm.ShowContent("客户管理", typeof(Form备件出库));
                break;

            case "库存查询":
                mainForm.ShowContent("库存查询", typeof(Form库存查询));
                break;

            case "备件信息":
                mainForm.ShowContent("备件信息", typeof(Form备件信息));
                break;

            case "套餐管理":
                //FrmYouhui dlg = new FrmYouhui();
                // dlg.ShowDialog();
                break;

            case "来电记录":
                //Portal.gc.MainDialog.ShowContent("来电记录", typeof(FrmComingCall));
                break;

            case "送货记录":
                //Portal.gc.MainDialog.ShowContent("送货记录", typeof(FrmDeliving));
                break;

                #endregion

                #region 产品库存管理
            case "产品管理":
                //Portal.gc.MainDialog.ShowContent("产品管理", typeof(FrmProduct));
                break;

            case "库存管理":
                //Portal.gc.MainDialog.ShowContent("库存管理", typeof(FrmStock));
                break;

                #endregion
            default:
                break;
            }
        }
예제 #14
0
        /// <summary>
        /// take the opportunity to read draw this band, so that these selected and enabled items are up to date.
        /// </summary>
        public void OnIdle()
        {
            OutlookBarBand band = this.m_bar.Bands[this.m_bar.GetCurrentBand()];

            if (band == null)
            {
                return;
            }

            ChoiceGroup group = (ChoiceGroup)band.Tag;

            CreateUIForChoiceGroup(group);
            m_bar.Refresh();
        }
예제 #15
0
        protected void MakeButton(OutlookBarBand band, ChoiceBase control)
        {
            UIItemDisplayProperties display = control.GetDisplayProperties();

            display.Text = display.Text.Replace("_", "");
            OutlookBarItem button;

            //			if(m_images!=null && m_images.ImageList.Images.Count>0)
            //			{
            //				button = new OutlookBarItem(display.Text,0,control);
            //			}
            //			else		//no images have been supplied to us!
            button     = new OutlookBarItem();
            button.Tag = control;
            control.ReferenceWidget = button;

            if (band.IconView == SidebarLibrary.WinControls.IconView.Large)
            {
                if (m_largeImages.ImageList.Images.Count > 0)
                {
                    button.ImageIndex = m_largeImages.GetImageIndex(display.ImageLabel);
                }
            }
            else
            {
                if (m_smallImages.ImageList.Images.Count > 0)
                {
                    button.ImageIndex = m_smallImages.GetImageIndex(display.ImageLabel);
                }
            }

            button.Selected = display.Checked;
            button.Text     = display.Text;
//			if(display.Checked)
//				button.Text = button.Text + " (X)";

            if (!display.Enabled)
            {
                button.Text = button.Text + " NA";
            }


            //note that this sidebar library we are using does not provide click events on individual items.
            //So we cannot wire them up here.
            band.Items.Add(button);
        }
예제 #16
0
        void InitializeOutlookBar()
        {
            //创建功能菜单
            OutlookBarBand outlookShortcutsBand;

            outlookShortcutsBand = new OutlookBarBand("诊疗管理");
            outlookShortcutsBand.LargeImageList = this.baseImageList;
            outlookShortcutsBand.Items.Add(new OutlookBarItem("医嘱管理", 7));
            outlookShortcutsBand.Items.Add(new OutlookBarItem("手术申请", 10));
            outlookShortcutsBand.Items.Add(new OutlookBarItem("手术查询", 12));
            outlookShortcutsBand.Items.Add(new OutlookBarItem("检查申请", 9));
            outlookShortcutsBand.Items.Add(new OutlookBarItem("检验申请", 11));
            outlookShortcutsBand.Items.Add(new OutlookBarItem("治疗申请", 6));
            outlookShortcutsBand.Background = Color.DarkSlateBlue;
            outlookShortcutsBand.TextColor  = Color.White;
            outlookBar1.Bands.Add(outlookShortcutsBand);
            OutlookBarBand outlookShortcutsBand1;

            outlookShortcutsBand1 = new OutlookBarBand("查询功能");
            outlookShortcutsBand1.LargeImageList = this.baseImageList;
            outlookShortcutsBand1.Items.Add(new OutlookBarItem("住院病人信息统计", 9));

            outlookShortcutsBand1.Items.Add(new OutlookBarItem("医生工作量统计", 6));
            outlookShortcutsBand1.Background = Color.DarkSlateGray;
            outlookShortcutsBand1.TextColor  = Color.White;
            outlookBar1.Bands.Add(outlookShortcutsBand1);
            OutlookBarBand outlookShortcutsBand3 = new OutlookBarBand("常用工具");

            outlookShortcutsBand3.LargeImageList = outlookLargeIcons;
            outlookShortcutsBand3.Items.Add(new OutlookBarItem("计算器", 0));
            outlookShortcutsBand3.Items.Add(new OutlookBarItem("画笔", 1));
            outlookShortcutsBand3.Items.Add(new OutlookBarItem("图象处理", 2));
            outlookShortcutsBand3.Items.Add(new OutlookBarItem("记事本", 3));
            outlookShortcutsBand3.Items.Add(new OutlookBarItem("写字板", 4));
            outlookShortcutsBand3.Items.Add(new OutlookBarItem("通讯簿", 5));
            outlookShortcutsBand3.Background = SystemColors.ControlDarkDark;
            outlookShortcutsBand3.TextColor  = Color.White;
            outlookBar1.Bands.Add(outlookShortcutsBand3);
            //添加控件的单击事件和设置字体
            outlookBar1.ItemClicked += new OutlookBarItemClickedHandler(OnOutlookBarItemClicked);
            outlookBar1.Font         = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
            //控制控件的停靠
            outlookBar1.Dock = System.Windows.Forms.DockStyle.Left;
        }
예제 #17
0
        public void CreateUIForChoiceGroupCollection(ChoiceGroupCollection groupCollection)
        {
            foreach (ChoiceGroup group in groupCollection)
            {
                // make band
                string label = group.Label;
                label = label.Replace("_", "");
                OutlookBarBand band;
                if (group.HasSubGroups())
                {
                    MakeTree(groupCollection, label, out band);
                }
                else
                {
                    band = new OutlookBarBand(label);
                }
                band.Tag = group;

                group.ReferenceWidget = band;

                //				band.GotFocus += new System.EventHandler(group.OnDisplay);

                m_bar.Bands.Add(band);
                band.SmallImageList = m_smallImages.ImageList;
                band.LargeImageList = m_largeImages.ImageList;

                object s = m_mediator.PropertyTable.GetValue("SidebarSize");
                if (s == null || (string)s == "small")
                {
                    band.IconView = SidebarLibrary.WinControls.IconView.Small;
                }
                else
                {
                    band.IconView = SidebarLibrary.WinControls.IconView.Large;
                }

                band.Background = SystemColors.AppWorkspace;
                band.TextColor  = Color.White;
                //note that I had to fix the outlook bar code I downloaded to make this work.
                //so if we download a new one and it stops working, go fix it again.
                band.Font = new Font("Microsoft Sans Serif", 12);
            }
        }
예제 #18
0
        public void CreateUIForChoiceGroup(ChoiceGroup group)
        {
            OutlookBarBand band = (OutlookBarBand)group.ReferenceWidget;

            if (band.ChildControl != null)
            {
                FillTreeNodes(((TreeView)(band.ChildControl)).Nodes, group);
            }
            else
            {
                band.Items.Clear();
                //doesn't make a difference: band.Click += new System.  EventHandler(group.OnDisplay);
                foreach (ChoiceRelatedClass item in group)
                {
                    Debug.Assert(item is ChoiceBase, "only things that can be made into buttons should be appearing here.else, we should have a tree.");
                    MakeButton(band, (ChoiceBase)item);
                }
            }
        }
예제 #19
0
        public void Remove(OutlookBarBand band)
        {
            // Make sure currentBandIndex is always valid
            int  currentBandIndex   = parentBar.GetCurrentBand();
            bool updateCurrentIndex = currentBandIndex != -1 && currentBandIndex == Count - 1;

            InnerList.Remove(band);
            if (updateCurrentIndex)
            {
                // Since we just removed the currently selected band,
                // set the new selected band to last band
                if (Count > 0)
                {
                    parentBar.SetCurrentBand(Count - 1);
                }
            }

            RaiseChanged();
        }
예제 #20
0
파일: MainForm.cs 프로젝트: demonzhq/Mine
        private void InitializeOutlookbar()
        {
            outlookBar1 = new OutlookBar();

            #region 业务管理
            OutlookBarBand businessBand = new OutlookBarBand("业务管理");
            businessBand.SmallImageList = this.imageList;
            businessBand.LargeImageList = this.imageList;
            businessBand.Items.Add(new OutlookBarItem("建当处理", 0));
            businessBand.Items.Add(new OutlookBarItem("赎当处理", 1));
            businessBand.Items.Add(new OutlookBarItem("续当处理", 2));
            businessBand.Items.Add(new OutlookBarItem("绝当处理", 3));
            businessBand.Items.Add(new OutlookBarItem("清算处理", 4));
            //businessBand.Background = SystemColors.AppWorkspace;
            businessBand.TextColor  = Color.SandyBrown;
            businessBand.Background = Color.White;
            outlookBar1.Bands.Add(businessBand);

            #endregion

            #region 统计查询
            OutlookBarBand searchBand = new OutlookBarBand("统计查询");
            searchBand.SmallImageList = this.imageList;
            searchBand.LargeImageList = this.imageList;
            searchBand.Items.Add(new OutlookBarItem("资金统计查询", 5));
            searchBand.Items.Add(new OutlookBarItem("当日业务监控", 6));
            searchBand.Items.Add(new OutlookBarItem("当品标准分类统计", 7));
            searchBand.Items.Add(new OutlookBarItem("当品统计分类统计", 8));
            searchBand.Items.Add(new OutlookBarItem("营收标准分类统计", 9));
            searchBand.Items.Add(new OutlookBarItem("营收统计分类统计", 10));
            //searchBand.Background = SystemColors.AppWorkspace;
            searchBand.TextColor  = Color.SandyBrown;
            searchBand.Background = Color.White;
            outlookBar1.Bands.Add(searchBand);
            #endregion

            outlookBar1.Dock = DockStyle.Fill;
            outlookBar1.SetCurrentBand(0);
            outlookBar1.ItemClicked += new OutlookBarItemClickedHandler(OnOutlookBarItemClicked);

            this.panelToolBox.Controls.AddRange(new Control[] { outlookBar1 });
        }
예제 #21
0
        public FrmBugCloseMenu()
        {
            InitializeComponent();
            OutlookBarBand outlookMenu = new OutlookBarBand("基础设置")
            {
                SmallImageList = imageList1,
                LargeImageList = imageList1
            };

            outlookMenu.Items.Add(new OutlookBarItem("缺陷字典管理", 0));
            outlookMenu.Items.Add(new OutlookBarItem("基础项目", 0));
            outlookMenu.Items.Add(new OutlookBarItem("项目版本", 0));
            outlookMenu.Items.Add(new OutlookBarItem("项目模块", 0));

            OutlookBarBand outlookMenu2 = new OutlookBarBand("Bug管理")
            {
                SmallImageList = imageList1,
                LargeImageList = imageList1
            };

            outlookMenu2.Items.Add(new OutlookBarItem("活动Bug", 1));
            outlookMenu2.Items.Add(new OutlookBarItem("所有Bug", 2));
            outlookMenu2.Items.Add(new OutlookBarItem("我的代办", 3));
            outlookMenu2.Items.Add(new OutlookBarItem("分配给我", 4));
            outlookMenu2.Items.Add(new OutlookBarItem("我的分配", 5));
            outlookMenu2.Items.Add(new OutlookBarItem("Bug统计", 5));
            OutlookBarBand outlookMenu3 = new OutlookBarBand("缓存管理")
            {
                SmallImageList = imageList1,
                LargeImageList = imageList1
            };

            outlookMenu3.Items.Add(new OutlookBarItem("基础表设置", 1));
            outlookMenu3.Items.Add(new OutlookBarItem("缓存设置", 2));

            OutLookBarMenu.Bands.Add(outlookMenu);
            OutLookBarMenu.Bands.Add(outlookMenu2);
            OutLookBarMenu.Bands.Add(outlookMenu3);
        }
예제 #22
0
        private void InitializeOutlookbar()
        {
            outlookBar1 = new OutlookBar();

            #region 仓库管理
            OutlookBarBand outlookShortcutsBand = new OutlookBarBand("仓库管理");
            outlookShortcutsBand.SmallImageList = this.imageList;
            outlookShortcutsBand.LargeImageList = this.imageList;
            outlookShortcutsBand.Items.Add(new OutlookBarItem("备件入库", 0));
            outlookShortcutsBand.Items.Add(new OutlookBarItem("备件出库", 1));
            outlookShortcutsBand.Items.Add(new OutlookBarItem("备件信息", 2));
            outlookShortcutsBand.Items.Add(new OutlookBarItem("库存查询", 3));
            outlookShortcutsBand.Items.Add(new OutlookBarItem("业务报表", 5));

            //outlookShortcutsBand.Background = SystemColors.AppWorkspace;
            outlookShortcutsBand.TextColor = Color.DarkSlateGray;//
            outlookBar1.Bands.Add(outlookShortcutsBand);

            #endregion

            #region 产品库存管理
            OutlookBarBand mystorageBand = new OutlookBarBand("产品库存管理");
            mystorageBand.SmallImageList = this.imageList;
            mystorageBand.LargeImageList = this.imageList;
            mystorageBand.Items.Add(new OutlookBarItem("产品管理", 6));
            mystorageBand.Items.Add(new OutlookBarItem("库存管理", 7));
            //mystorageBand.Background = SystemColors.AppWorkspace;
            mystorageBand.TextColor = Color.DarkSlateGray;
            outlookBar1.Bands.Add(mystorageBand);
            #endregion
            outlookBar1.Dock = DockStyle.Fill;
            outlookBar1.SetCurrentBand(0);
            outlookBar1.ItemClicked += new OutlookBarItemClickedHandler(OnOutlookBarItemClicked);
            outlookBar1.ItemDropped += new OutlookBarItemDroppedHandler(OnOutlookBarItemDropped);

            //outlookBar1.FlatArrowButtons = true;
            //outlookBar1.BackgroundBitmap = Resources.BmpToolWindow;
            this.panel1.Controls.AddRange(new Control[] { outlookBar1 });//
        }
예제 #23
0
        private void OnOutlookBarItemClicked(OutlookBarBand band, OutlookBarItem item)
        {
            frmStorageMain frmstoragemain = new frmStorageMain();

            switch (item.Text)
            {
            case "备件仪表出入库":

                break;

            case "备件仪表信息与查询":
                if (frminfocx.Visible == true)
                {
                    frminfocx.Hide();
                }
                else
                {
                    frminfocx.Show(frmstoragemain.dockPanel);
                }
                break;

            case "备件仪表综合管理":
                if (frmbymanage.Visible == true)
                {
                    frmbymanage.Hide();
                }
                else
                {
                    frmbymanage.Show(frmstoragemain.dockPanel);
                }
                break;

            default:
                break;
            }
        }
예제 #24
0
        private void InitializeOutlookbar()
        {
            outlookBar1 = new OutlookBar();
            #region 导航条设计
            OutlookBarBand outlookShortcutsBand = new OutlookBarBand("备件仪表管理");

            outlookShortcutsBand.SmallImageList = this.imageList1;
            outlookShortcutsBand.LargeImageList = this.imageList1;
            outlookShortcutsBand.Items.Add(new OutlookBarItem("备件仪表出入库", 0));
            outlookShortcutsBand.Items.Add(new OutlookBarItem("备件仪表信息与查询", 1));
            outlookShortcutsBand.Items.Add(new OutlookBarItem("备件仪表综合管理", 2));
            #endregion

            outlookShortcutsBand.Background = SystemColors.AppWorkspace;
            outlookShortcutsBand.TextColor  = Color.White;
            outlookBar1.Bands.Add(outlookShortcutsBand);

            outlookBar1.Dock = DockStyle.Fill;
            outlookBar1.SetCurrentBand(0);
            outlookBar1.ItemClicked += new OutlookBarItemClickedHandler(OnOutlookBarItemClicked);
            outlookBar1.ItemDropped += new OutlookBarItemDroppedHandler(OnOutlookBarItemDropped);

            this.panel1.Controls.AddRange(new Control[] { outlookBar1 });
        }
예제 #25
0
        public void OnItemClicked(OutlookBarBand band, OutlookBarItem item)
        {
            ChoiceBase control = (ChoiceBase)item.Tag;

            control.OnClick(item, null);
        }
예제 #26
0
 public int IndexOf(OutlookBarBand band)
 {
     return(InnerList.IndexOf(band));
 }
예제 #27
0
 public bool Contains(OutlookBarBand band)
 {
     return(InnerList.Contains(band));
 }
예제 #28
0
 public void TabOpened(OutlookBarBand band, OutlookBarItem item)
 {
     Debug.WriteLine("opened");
 }
예제 #29
0
        void OnOutlookBarItemClicked(OutlookBarBand band, OutlookBarItem item)
        {
            if (this.listView1.FocusedItem == null && listView2.FocusedItem == null &&
                (item.Text == "医嘱管理" || item.Text == "检查申请" || item.Text == "检验申请" || item.Text == "治疗申请" || item.Text == "护理信息"))
            {
                MessageBox.Show("请选择病人!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            switch (item.Text)
            {
            case "医嘱管理":
                this.Cursor = PublicStaticFun.WaitCursor();
                HIS_ZYDocManager.日常业务.BaseForm form = new BaseForm(patlist, _currentUser.UserID, _currentDept.DeptID);
                form.MdiParent   = this.MdiParent;
                form.WindowState = FormWindowState.Maximized;
                ((GWMHIS.BussinessLogicLayer.Interfaces.IInvokForm) this.Parent.Parent.Parent).AddFormToTabPage(form);
                form.Show();
                this.Cursor = Cursors.Default;
                break;

            case "手术申请":
                if (HIS.ZYDoc_BLL.PatInfo.PatOperation.NotCanUpdate(patlist))      //20100518.0.03  病人定义出院后,不能再进行手术申请
                {
                    MessageBox.Show("该病人已定义出院,不能再进行手术申请");
                    return;
                }
                FrmSsApply fss = new FrmSsApply(patlist, _currentUser.UserID, _currentDept.DeptID);
                fss.ShowDialog();
                break;

            case "手术查询":
                FrmSsQuery fsq = new FrmSsQuery();
                fsq.ShowDialog();
                break;

            case "检验申请":
                FrmTestApply fta = new FrmTestApply(patlist, _currentUser.UserID, _currentDept.DeptID);
                fta.ShowDialog();
                break;

            case "检查申请":
                FrmCheckApply fca = new FrmCheckApply(patlist, _currentUser.UserID, _currentDept.DeptID);
                fca.ShowDialog();
                break;

            case "治疗申请":
                FrmCureApply fc = new FrmCureApply(patlist, _currentUser.UserID, _currentDept.DeptID);
                fc.ShowDialog();
                break;

            case "住院病人信息统计":
                HIS_ZYDocManager.查询统计.FrmPatientInfo rpt = new HIS_ZYDocManager.查询统计.FrmPatientInfo(_currentUser.UserID, _currentDept.DeptID, this.Text);
                rpt.ShowDialog();
                break;

            case "医生工作量统计":
                HIS_ZYDocManager.查询统计.FrmDocWorkQuery work = new HIS_ZYDocManager.查询统计.FrmDocWorkQuery(_currentUser.UserID, _currentDept.DeptID, "");
                work.ShowDialog();
                break;

            case "计算器":
                System.Diagnostics.Process.Start("calc.exe");
                break;

            case "画笔":
                System.Diagnostics.Process.Start("mspaint.exe");
                break;

            case "通讯簿":
                System.Diagnostics.Process.Start("wab.exe");
                break;

            case "记事本":
                System.Diagnostics.Process.Start("notepad.exe");
                break;

            case "写字板":
                System.Diagnostics.Process.Start("wordpad.exe");
                break;

            case "图象处理":
                System.Diagnostics.Process.Start("kodakimg.exe");
                break;

            default:
                break;
            }
            this.Cursor = System.Windows.Forms.Cursors.Arrow;
        }
예제 #30
0
 private void OnOutlookBarItemDropped(OutlookBarBand band, OutlookBarItem item)
 {
 }