private void 使用帮助ToolStripMenuItem_Click(object sender, EventArgs e) { foreach (ToolStripMenuItem item in this.menuStrip1.Items) { if (item.Text == "使用帮助") { item.Checked = true; item.BackColor = Color.CadetBlue; this.flowLayoutPanel1.Controls.Clear(); Label[] Lab = new Label[item.DropDownItems.Count]; for (int i = 0; i < item.DropDownItems.Count; i++) { Lab[i] = new Label(); if (i == 0)//默认首项选中 { Lab[i].ForeColor = Color.LawnGreen; softwareSystems pR = new softwareSystems(); pR.TopLevel = false; pR.Dock = DockStyle.Fill; pR.FormBorderStyle = FormBorderStyle.None; this.panel1.Controls.Clear(); this.panel1.Controls.Add(pR); pR.Show(); } Lab[i].Font = new Font("宋体", 15F, FontStyle.Bold, GraphicsUnit.Point, ((byte)(134))); Lab[i].Size = new Size(260, 40);//大 小 Lab[i].Click += new EventHandler(Lab_DouClick); Lab[i].Tag = item.DropDownItems[i].Text; Lab[i].Text = item.DropDownItems[i].Text; //TextBox rt = new TextBox(); //rt.Width = 200; //rt.Height = 40; //rt.Font = new Font("微软雅黑", 13F, FontStyle.Bold, GraphicsUnit.Point, ((byte)(134))); //rt.Enabled = false; //rt.Text = item.DropDownItems[i].Text; //rt.Parent = Lab[i];//指定父级 this.flowLayoutPanel1.Controls.Add(Lab[i]); item.DropDownItems[i].Visible = false; //看不见 } ; } else { item.Checked = false; item.BackColor = Color.SkyBlue; } } }
private void picb_DouClick(object sender, EventArgs e) { PictureBox pic = (PictureBox)sender; pic.BackColor = Color.Blue; string tag = pic.Tag.ToString(); if (!"人员登记".Equals(tag) && pR != null) { pR.btnClose_Click(); pR = null; } //选中打标 for (int i = 0; i < this.flowLayoutPanel1.Controls.Count; i++) { if (this.flowLayoutPanel1.Controls[i].Tag.ToString() == tag) { this.flowLayoutPanel1.Controls[i].BackColor = Color.Blue; } else { this.flowLayoutPanel1.Controls[i].BackColor = this.flowLayoutPanel1.BackColor; } } if (tag == "人员登记") { //公共卫生模块 personRegist pR = new personRegist(); pR.TopLevel = false; pR.Dock = DockStyle.Fill; pR.FormBorderStyle = FormBorderStyle.None; this.panel1.Controls.Clear(); this.panel1.Controls.Add(pR); pR.Show(); } else if (tag == "体检进度") { examinatProgress pR = new examinatProgress(); pR.TopLevel = false; pR.Dock = DockStyle.Fill; pR.FormBorderStyle = FormBorderStyle.None; this.panel1.Controls.Clear(); this.panel1.Controls.Add(pR); pR.Show(); } else if (tag == "体检报告") { examinatReport pR = new examinatReport(); pR.TopLevel = false; pR.Dock = DockStyle.Fill; pR.FormBorderStyle = FormBorderStyle.None; this.panel1.Controls.Clear(); this.panel1.Controls.Add(pR); pR.Show(); } else if (tag == "个人基本信息建档") { personalBasicInfo pR = new personalBasicInfo(); pR.TopLevel = false; pR.Dock = DockStyle.Fill; pR.FormBorderStyle = FormBorderStyle.None; this.panel1.Controls.Clear(); this.panel1.Controls.Add(pR); pR.Show(); } else if (tag == "健康体检表") { healthCheckup pR = new healthCheckup(); pR.TopLevel = false; pR.Dock = DockStyle.Fill; pR.FormBorderStyle = FormBorderStyle.None; this.panel1.Controls.Clear(); this.panel1.Controls.Add(pR); pR.Show(); } else if (tag == "老年人健康服务") { olderHelthService pR = new olderHelthService(); pR.TopLevel = false; pR.Dock = DockStyle.Fill; pR.FormBorderStyle = FormBorderStyle.None; this.panel1.Controls.Clear(); this.panel1.Controls.Add(pR); pR.Show(); } else if (tag == "高血压患者服务") { hypertensionPatientServices pR = new hypertensionPatientServices(); pR.TopLevel = false; pR.Dock = DockStyle.Fill; pR.FormBorderStyle = FormBorderStyle.None; this.panel1.Controls.Clear(); this.panel1.Controls.Add(pR); pR.Show(); } else if (tag == "2型糖尿病患者服务") { diabetesPatientServices pR = new diabetesPatientServices(); pR.TopLevel = false; pR.Dock = DockStyle.Fill; pR.FormBorderStyle = FormBorderStyle.None; this.panel1.Controls.Clear(); this.panel1.Controls.Add(pR); pR.Show(); } else if (tag == "严重精神病障碍患者服务") { psychiatricPatientServices pR = new psychiatricPatientServices(); pR.TopLevel = false; pR.Dock = DockStyle.Fill; pR.FormBorderStyle = FormBorderStyle.None; this.panel1.Controls.Clear(); this.panel1.Controls.Add(pR); pR.Show(); } else if (tag == "肺结核患者服务") { tuberculosisPatientServices pR = new tuberculosisPatientServices(); pR.TopLevel = false; pR.Dock = DockStyle.Fill; pR.FormBorderStyle = FormBorderStyle.None; this.panel1.Controls.Clear(); this.panel1.Controls.Add(pR); pR.Show(); } else if (tag == "中医健康服务") { tcmHealthServices pR = new tcmHealthServices(); pR.TopLevel = false; pR.Dock = DockStyle.Fill; pR.FormBorderStyle = FormBorderStyle.None; this.panel1.Controls.Clear(); this.panel1.Controls.Add(pR); pR.Show(); } else if (tag == "孕产妇健康服务") { maternalHealthServices pR = new maternalHealthServices(); pR.TopLevel = false; pR.Dock = DockStyle.Fill; pR.FormBorderStyle = FormBorderStyle.None; this.panel1.Controls.Clear(); this.panel1.Controls.Add(pR); pR.Show(); } else if (tag == "0—6岁儿童健康服务") { childHealthServices pR = new childHealthServices(); pR.TopLevel = false; pR.Dock = DockStyle.Fill; pR.FormBorderStyle = FormBorderStyle.None; this.panel1.Controls.Clear(); this.panel1.Controls.Add(pR); pR.Show(); } else if (tag == "预防接种服务") { vaccinationServices pR = new vaccinationServices(); pR.TopLevel = false; pR.Dock = DockStyle.Fill; pR.FormBorderStyle = FormBorderStyle.None; this.panel1.Controls.Clear(); this.panel1.Controls.Add(pR); pR.Show(); } else if (tag == "健康教育服务") { healthEducationServices pR = new healthEducationServices(); pR.TopLevel = false; pR.Dock = DockStyle.Fill; pR.FormBorderStyle = FormBorderStyle.None; this.panel1.Controls.Clear(); this.panel1.Controls.Add(pR); pR.Show(); } else if (tag == "现场签约") { //家医签约模块 onSiteSigning pR = new onSiteSigning(); pR.TopLevel = false; pR.Dock = DockStyle.Fill; pR.FormBorderStyle = FormBorderStyle.None; this.panel1.Controls.Clear(); this.panel1.Controls.Add(pR); pR.Show(); } else if (tag == "团队成员") { teamMembers pR = new teamMembers(); pR.TopLevel = false; pR.Dock = DockStyle.Fill; pR.FormBorderStyle = FormBorderStyle.None; this.panel1.Controls.Clear(); this.panel1.Controls.Add(pR); pR.Show(); } else if (tag == "签约统计") { signingStatistics pR = new signingStatistics(); pR.TopLevel = false; pR.Dock = DockStyle.Fill; pR.FormBorderStyle = FormBorderStyle.None; this.panel1.Controls.Clear(); this.panel1.Controls.Add(pR); pR.Show(); } else if (tag == "使用情况统计") { //数据分析模块模块 usageStatistics pR = new usageStatistics(); pR.TopLevel = false; pR.Dock = DockStyle.Fill; pR.FormBorderStyle = FormBorderStyle.None; this.panel1.Controls.Clear(); this.panel1.Controls.Add(pR); pR.Show(); } else if (tag == "基本信息设置") { //设置模块 basicInfoSettings pR = new basicInfoSettings(); pR.TopLevel = false; pR.Dock = DockStyle.Fill; pR.FormBorderStyle = FormBorderStyle.None; this.panel1.Controls.Clear(); this.panel1.Controls.Add(pR); pR.Show(); } else if (tag == "设备管理") { deviceManagement pR = new deviceManagement(); pR.TopLevel = false; pR.Dock = DockStyle.Fill; pR.FormBorderStyle = FormBorderStyle.None; this.panel1.Controls.Clear(); this.panel1.Controls.Add(pR); pR.Show(); } else if (tag == "系统日志") { systemlog pR = new systemlog(); pR.TopLevel = false; pR.Dock = DockStyle.Fill; pR.FormBorderStyle = FormBorderStyle.None; this.panel1.Controls.Clear(); this.panel1.Controls.Add(pR); pR.Show(); } else if (tag == "软件系统") { //使用帮助模块 softwareSystems pR = new softwareSystems(); pR.TopLevel = false; pR.Dock = DockStyle.Fill; pR.FormBorderStyle = FormBorderStyle.None; this.panel1.Controls.Clear(); this.panel1.Controls.Add(pR); pR.Show(); } else if (tag == "B超") { bUltrasound pR = new bUltrasound(); pR.TopLevel = false; pR.Dock = DockStyle.Fill; pR.FormBorderStyle = FormBorderStyle.None; this.panel1.Controls.Clear(); this.panel1.Controls.Add(pR); pR.Show(); } else if (tag == "生化") { biochemical pR = new biochemical(); pR.TopLevel = false; pR.Dock = DockStyle.Fill; pR.FormBorderStyle = FormBorderStyle.None; this.panel1.Controls.Clear(); this.panel1.Controls.Add(pR); pR.Show(); } else if (tag == "尿液") { urinaryFluid pR = new urinaryFluid(); pR.TopLevel = false; pR.Dock = DockStyle.Fill; pR.FormBorderStyle = FormBorderStyle.None; this.panel1.Controls.Clear(); this.panel1.Controls.Add(pR); pR.Show(); } else if (tag == "血常规") { bloodAnalysis pR = new bloodAnalysis(); pR.TopLevel = false; pR.Dock = DockStyle.Fill; pR.FormBorderStyle = FormBorderStyle.None; this.panel1.Controls.Clear(); this.panel1.Controls.Add(pR); pR.Show(); } else if (tag == "身高体重") { heightAndWeight pR = new heightAndWeight(); pR.TopLevel = false; pR.Dock = DockStyle.Fill; pR.FormBorderStyle = FormBorderStyle.None; this.panel1.Controls.Clear(); this.panel1.Controls.Add(pR); pR.Show(); } else if (tag == "心电图") { electrocarDiogram pR = new electrocarDiogram(); pR.TopLevel = false; pR.Dock = DockStyle.Fill; pR.FormBorderStyle = FormBorderStyle.None; this.panel1.Controls.Clear(); this.panel1.Controls.Add(pR); pR.Show(); } else if (tag == "血压") { bloodPressure pR = new bloodPressure(); pR.TopLevel = false; pR.Dock = DockStyle.Fill; pR.FormBorderStyle = FormBorderStyle.None; this.panel1.Controls.Clear(); this.panel1.Controls.Add(pR); pR.Show(); } else { this.panel1.Controls.Clear(); } }