📄 manger.cs
字号:
this.groupBox4.Controls.Add(this.textBox2);
this.groupBox4.Controls.Add(this.button15);
this.groupBox4.Location = new System.Drawing.Point(608, 192);
this.groupBox4.Name = "groupBox4";
this.groupBox4.Size = new System.Drawing.Size(168, 304);
this.groupBox4.TabIndex = 2;
this.groupBox4.TabStop = false;
this.groupBox4.Text = "医生信息查找";
//
// label9
//
this.label9.Location = new System.Drawing.Point(8, 184);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(100, 16);
this.label9.TabIndex = 10;
this.label9.Text = "性别";
//
// label8
//
this.label8.Location = new System.Drawing.Point(8, 144);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(100, 16);
this.label8.TabIndex = 9;
this.label8.Text = "职称";
//
// label7
//
this.label7.Location = new System.Drawing.Point(8, 104);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(100, 16);
this.label7.TabIndex = 8;
this.label7.Text = "所在科室";
//
// label6
//
this.label6.Location = new System.Drawing.Point(8, 64);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(100, 16);
this.label6.TabIndex = 7;
this.label6.Text = "所在医院";
//
// label5
//
this.label5.Location = new System.Drawing.Point(8, 24);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(100, 16);
this.label5.TabIndex = 6;
this.label5.Text = "医生名称";
//
// button7
//
this.button7.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.button7.Location = new System.Drawing.Point(48, 232);
this.button7.Name = "button7";
this.button7.Size = new System.Drawing.Size(80, 23);
this.button7.TabIndex = 5;
this.button7.Text = "查找";
this.button7.Click += new System.EventHandler(this.button7_Click);
//
// comboBox6
//
this.comboBox6.Location = new System.Drawing.Point(24, 200);
this.comboBox6.Name = "comboBox6";
this.comboBox6.Size = new System.Drawing.Size(121, 20);
this.comboBox6.TabIndex = 4;
//
// comboBox5
//
this.comboBox5.Location = new System.Drawing.Point(24, 160);
this.comboBox5.Name = "comboBox5";
this.comboBox5.Size = new System.Drawing.Size(121, 20);
this.comboBox5.TabIndex = 3;
//
// comboBox4
//
this.comboBox4.Location = new System.Drawing.Point(24, 120);
this.comboBox4.Name = "comboBox4";
this.comboBox4.Size = new System.Drawing.Size(121, 20);
this.comboBox4.TabIndex = 2;
//
// textBox3
//
this.textBox3.Location = new System.Drawing.Point(24, 80);
this.textBox3.Name = "textBox3";
this.textBox3.Size = new System.Drawing.Size(120, 21);
this.textBox3.TabIndex = 1;
this.textBox3.Text = "";
//
// textBox2
//
this.textBox2.Location = new System.Drawing.Point(24, 40);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(120, 21);
this.textBox2.TabIndex = 0;
this.textBox2.Text = "";
//
// dataGrid2
//
this.dataGrid2.CaptionVisible = false;
this.dataGrid2.DataMember = "";
this.dataGrid2.HeaderForeColor = System.Drawing.SystemColors.ControlText;
this.dataGrid2.Location = new System.Drawing.Point(8, 8);
this.dataGrid2.Name = "dataGrid2";
this.dataGrid2.ReadOnly = true;
this.dataGrid2.RowHeaderWidth = 0;
this.dataGrid2.Size = new System.Drawing.Size(592, 488);
this.dataGrid2.TabIndex = 1;
this.dataGrid2.TableStyles.AddRange(new System.Windows.Forms.DataGridTableStyle[] {
this.dataGridTableStyle3});
//
// dataGridTableStyle3
//
this.dataGridTableStyle3.DataGrid = this.dataGrid2;
this.dataGridTableStyle3.GridColumnStyles.AddRange(new System.Windows.Forms.DataGridColumnStyle[] {
this.dataGridTextBoxColumn9,
this.dataGridTextBoxColumn10,
this.dataGridTextBoxColumn11,
this.dataGridTextBoxColumn12,
this.dataGridTextBoxColumn13,
this.dataGridTextBoxColumn14,
this.dataGridTextBoxColumn15,
this.dataGridTextBoxColumn16,
this.dataGridTextBoxColumn17});
this.dataGridTableStyle3.HeaderForeColor = System.Drawing.SystemColors.ControlText;
this.dataGridTableStyle3.MappingName = "";
//
// dataGridTextBoxColumn9
//
this.dataGridTextBoxColumn9.Format = "";
this.dataGridTextBoxColumn9.FormatInfo = null;
this.dataGridTextBoxColumn9.HeaderText = "医生名称";
this.dataGridTextBoxColumn9.MappingName = "Name";
this.dataGridTextBoxColumn9.NullText = "";
this.dataGridTextBoxColumn9.Width = 75;
//
// dataGridTextBoxColumn10
//
this.dataGridTextBoxColumn10.Format = "";
this.dataGridTextBoxColumn10.FormatInfo = null;
this.dataGridTextBoxColumn10.HeaderText = "性别";
this.dataGridTextBoxColumn10.MappingName = "Sex";
this.dataGridTextBoxColumn10.NullText = "";
this.dataGridTextBoxColumn10.Width = 75;
//
// dataGridTextBoxColumn11
//
this.dataGridTextBoxColumn11.Format = "";
this.dataGridTextBoxColumn11.FormatInfo = null;
this.dataGridTextBoxColumn11.HeaderText = "年龄";
this.dataGridTextBoxColumn11.MappingName = "Old";
this.dataGridTextBoxColumn11.NullText = "";
this.dataGridTextBoxColumn11.Width = 75;
//
// dataGridTextBoxColumn12
//
this.dataGridTextBoxColumn12.Format = "";
this.dataGridTextBoxColumn12.FormatInfo = null;
this.dataGridTextBoxColumn12.HeaderText = "职称";
this.dataGridTextBoxColumn12.MappingName = "Profess";
this.dataGridTextBoxColumn12.NullText = "";
this.dataGridTextBoxColumn12.Width = 75;
//
// dataGridTextBoxColumn13
//
this.dataGridTextBoxColumn13.Format = "";
this.dataGridTextBoxColumn13.FormatInfo = null;
this.dataGridTextBoxColumn13.HeaderText = "科室";
this.dataGridTextBoxColumn13.MappingName = "BelongOff";
this.dataGridTextBoxColumn13.NullText = "";
this.dataGridTextBoxColumn13.Width = 75;
//
// dataGridTextBoxColumn14
//
this.dataGridTextBoxColumn14.Format = "";
this.dataGridTextBoxColumn14.FormatInfo = null;
this.dataGridTextBoxColumn14.HeaderText = "专长";
this.dataGridTextBoxColumn14.MappingName = "Specialty";
this.dataGridTextBoxColumn14.NullText = "";
this.dataGridTextBoxColumn14.Width = 75;
//
// dataGridTextBoxColumn15
//
this.dataGridTextBoxColumn15.Format = "";
this.dataGridTextBoxColumn15.FormatInfo = null;
this.dataGridTextBoxColumn15.HeaderText = "所属医院";
this.dataGridTextBoxColumn15.MappingName = "HospitalName";
this.dataGridTextBoxColumn15.NullText = "";
this.dataGridTextBoxColumn15.Width = 75;
//
// dataGridTextBoxColumn16
//
this.dataGridTextBoxColumn16.Format = "";
this.dataGridTextBoxColumn16.FormatInfo = null;
this.dataGridTextBoxColumn16.HeaderText = "门诊时间";
this.dataGridTextBoxColumn16.MappingName = "DocTime";
this.dataGridTextBoxColumn16.NullText = "";
this.dataGridTextBoxColumn16.Width = 75;
//
// dataGridTextBoxColumn17
//
this.dataGridTextBoxColumn17.Format = "";
this.dataGridTextBoxColumn17.FormatInfo = null;
this.dataGridTextBoxColumn17.HeaderText = "电话号码";
this.dataGridTextBoxColumn17.MappingName = "TelphonNum";
this.dataGridTextBoxColumn17.NullText = "";
this.dataGridTextBoxColumn17.Width = 75;
//
// groupBox3
//
this.groupBox3.Controls.Add(this.button6);
this.groupBox3.Controls.Add(this.button5);
this.groupBox3.Controls.Add(this.button4);
this.groupBox3.Location = new System.Drawing.Point(608, 8);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(168, 168);
this.groupBox3.TabIndex = 0;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "医生信息管理";
//
// button6
//
this.button6.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.button6.Location = new System.Drawing.Point(24, 128);
this.button6.Name = "button6";
this.button6.Size = new System.Drawing.Size(120, 23);
this.button6.TabIndex = 2;
this.button6.Text = "删除";
this.button6.Click += new System.EventHandler(this.button6_Click);
//
// button5
//
this.button5.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.button5.Location = new System.Drawing.Point(24, 80);
this.button5.Name = "button5";
this.button5.Size = new System.Drawing.Size(120, 23);
this.button5.TabIndex = 1;
this.button5.Text = "修改";
this.button5.Click += new System.EventHandler(this.button5_Click);
//
// button4
//
this.button4.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.button4.Location = new System.Drawing.Point(24, 32);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(120, 23);
this.button4.TabIndex = 0;
this.button4.Text = "新增";
this.button4.Click += new System.EventHandler(this.button4_Click);
//
// button13
//
this.button13.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.button13.Location = new System.Drawing.Point(40, 536);
this.button13.Name = "button13";
this.button13.Size = new System.Drawing.Size(112, 23);
this.button13.TabIndex = 1;
this.button13.Text = "新增系统管理员";
this.button13.Click += new System.EventHandler(this.button13_Click);
//
// button15
//
this.button15.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.button15.Location = new System.Drawing.Point(48, 264);
this.button15.Name = "button15";
this.button15.Size = new System.Drawing.Size(80, 23);
this.button15.TabIndex = 5;
this.button15.Text = "返回";
this.button15.Click += new System.EventHandler(this.button15_Click);
//
// Manger
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.ClientSize = new System.Drawing.Size(792, 566);
this.Controls.Add(this.button13);
this.Controls.Add(this.tabControl1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.Name = "Manger";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "系统管理";
this.Load += new System.EventHandler(this.Manger_Load);
this.tabControl1.ResumeLayout(false);
this.tabPage1.ResumeLayout(false);
this.groupBox5.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dataGrid3)).EndInit();
this.groupBox2.ResumeLayout(false);
this.groupBox1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).EndInit();
this.tabPage2.ResumeLayout(false);
this.groupBox4.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dataGrid2)).EndInit();
this.groupBox3.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
/// <summary>
/// 填充DataGrid1
/// </summary>
public void FillDataGrid1()
{
DataTable table = new DataTable("Hospital");
table = hosAccess.HosTable();
dataGrid1.DataSource = table;
}
/// <summary>
/// 填充DataGrid2
/// </summary>
public void FillDataGrid2()
{
DataTable table = new DataTable("Doctor");
table = docAccess.SelectDoc();
dataGrid2.DataSource = table;
}
/// <summary>
/// 填充DataGrid3
/// </summary>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -