Пример #1
0
        private void label1_Click(object sender, EventArgs e)//生成按钮的单击事件
        {
            if (((Label)sender).Text == "系统管理")

            {
                panel4.Controls.Clear();
                xitongForm zhu = new xitongForm();
                zhu.TopLevel = false;
                this.panel4.Controls.Add(zhu);
                zhu.Show();
            }
            else if (((Label)sender).Text == "门诊管理")
            {
                panel4.Controls.Clear();
                gerenzhongxin zhu = new gerenzhongxin();
                zhu.TopLevel = false;
                this.panel4.Controls.Add(zhu);
                zhu.Show();
            }
            else if (((Label)sender).Text == "财务管理")
            {
                panel4.Controls.Clear();
                guanlizhongxin zhu = new guanlizhongxin();
                zhu.TopLevel = false;
                this.panel4.Controls.Add(zhu);
                zhu.Show();
            }
            else if (((Label)sender).Text == "药房管理")
            {
                panel4.Controls.Clear();
                gerenzhongxin zhu = new gerenzhongxin();
                zhu.TopLevel = false;
                this.panel4.Controls.Add(zhu);
                zhu.Show();
            }
            else if (((Label)sender).Text == "住院管理")
            {
                panel4.Controls.Clear();
                xiangmuzhuizong zhu = new xiangmuzhuizong();
                zhu.TopLevel = false;
                this.panel4.Controls.Add(zhu);
                zhu.Show();
            }
            else if (((Label)sender).Text == "门诊收费")
            {
                panel4.Controls.Clear();
                gerenzhongxin zhu = new gerenzhongxin();
                zhu.TopLevel = false;
                this.panel4.Controls.Add(zhu);
                zhu.Show();
            }
            else if (((Label)sender).Text == "药库管理")
            {
                panel4.Controls.Clear();
                xiangmuzhuizong zhu = new xiangmuzhuizong();
                zhu.TopLevel = false;
                this.panel4.Controls.Add(zhu);
                zhu.Show();
            }
        }
Пример #2
0
        private void zhufrom_Load(object sender, EventArgs e)//窗体加载事件
        {
            //this.skinEngine1.SkinFile = "MacOS.ssk";
            xitongForm zhu = new xitongForm();

            zhu.TopLevel = false;
            this.panel4.Controls.Add(zhu);
            zhu.Show();
            #region 自动生成按钮
            string[] ss = { "系统管理", "门诊管理", "财务管理", "药房管理", "住院管理", "门诊收费", "药库管理" };
            int      i  = 38;
            #endregion

            string   Data = (DateTime.Now + "");
            string[] data = (DateTime.Now + "").Substring(0, (DateTime.Now + "").IndexOf(' ')).Split('/');
            lblData.Text = data[0] + "年" + data[1] + "月" + data[2] + "日 ";

            /*string date = DateTime.Now.DayOfWeek + "";
             * if (date == "Monday") { lblData.Text += "星期一"; }
             * else if (date == "Tuesday") { lblData.Text += "星期二"; }
             * else if (date == "Wednesday") { lblData.Text += "星期三"; }
             * else if (date == "Thursday") { lblData.Text += "星期四"; }
             * else if (date == "Friday") { lblData.Text += "星期五"; }
             * else if (date == "Saturday") { lblData.Text += "星期六"; }
             * else if (date == "Sunday") { lblData.Text += "星期日"; }*/
            xitongForm xitong = new xitongForm();
            xitong.TopLevel = false;
            this.panel4.Controls.Add(xitong);
            xitong.Show();
            panel4.Controls.Clear();
        }
Пример #3
0
        private void label6_Click(object sender, EventArgs e)
        {
            panel4.Controls.Clear();
            xitongForm zhu = new xitongForm();

            zhu.TopLevel = false;
            this.panel4.Controls.Add(zhu);
            zhu.Show();
        }
Пример #4
0
        private void label1_Click(object sender, EventArgs e)//按钮的单击事件
        {
            if (lab.Count != 0)
            {
                lab[0].Image = Image.FromFile(Application.StartupPath + "\\imag\\" + (lab[0].Tag + "").Replace(' ', '-'));
                lab[0].ForeColor = System.Drawing.Color.Black;
                lab.RemoveAt(0);
            }
            lab.Add(((Label)sender));
            if (((Label)sender).Text=="门诊医生")
            {
                panel4.Controls.Clear();
                Prescribe_UI zhu = new Prescribe_UI(lblUname.Text);
                zhu.TopLevel = false;
                this.panel4.Controls.Add(zhu);
                zhu.Show();
            
            }
            else if (((Label)sender).Text == "系统管理")
            
            {
                panel4.Controls.Clear();
                xitongForm zhu = new xitongForm(lblUname.Text);
                zhu.TopLevel = false;
                this.panel4.Controls.Add(zhu);
                zhu.Show();
            
            }
            else if (((Label)sender).Text == "门诊管理") 
            {
                panel4.Controls.Clear();
                clinic zhu = new clinic(lblUname.Text);
                zhu.TopLevel = false;
                this.panel4.Controls.Add(zhu);
                zhu.Show();
            }
            else if (((Label)sender).Text == "财务管理") 
            {
                panel4.Controls.Clear();
                caiwuForm zhu = new caiwuForm(lblUname.Text);
                zhu.TopLevel = false;
                this.panel4.Controls.Add(zhu);
                zhu.Show();
            }
            else if (((Label)sender).Text == "药房管理")
            {
                panel4.Controls.Clear();
                yaofangForm zhu = new yaofangForm(lblUname.Text);
                zhu.TopLevel = false;
                this.panel4.Controls.Add(zhu);
                zhu.Show();
            }
            else if (((Label)sender).Text == "住院管理")
            {
                panel4.Controls.Clear();
                InHospitalzhu zhu = new InHospitalzhu(lblUname.Text);
                zhu.TopLevel = false;
                this.panel4.Controls.Add(zhu);
                zhu.Show();
            }
            else if (((Label)sender).Text == "门诊收费") 
            {
                panel4.Controls.Clear();
                maidanForm zhu = new maidanForm(lblUname.Text);
                zhu.TopLevel = false;
                this.panel4.Controls.Add(zhu);
                zhu.Show();
            
            }
            else if (((Label)sender).Text == "药库管理") 
            {
                panel4.Controls.Clear();
                Drug_Form zhu = new Drug_Form(lblUname.Text);
                zhu.TopLevel = false;
                this.panel4.Controls.Add(zhu);
                zhu.Show();

            }    
        }