📄 jl_main.cs
字号:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace CarManage
{
public partial class JL_Main : Form
{
public JL_Main()
{
InitializeComponent();
}
private void 公车档案管理ToolStripMenuItem_Click(object sender, EventArgs e)
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close(); //关闭已经打开的子窗体
JL_Car_Massage JLCM = new JL_Car_Massage();
JLCM.MdiParent = this;
JLCM.Show();
}
else
{
JL_Car_Massage JLCM = new JL_Car_Massage();
JLCM.MdiParent = this;
JLCM.Show();
}
}
private void 公车档案信息查询ToolStripMenuItem_Click(object sender, EventArgs e)
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close(); //关闭已经打开的子窗体
JL_Car_Massage JLCM = new JL_Car_Massage();
JLCM.MdiParent = this;
JLCM.Show();
}
else
{
JL_Car_Massage JLCM = new JL_Car_Massage();
JLCM.MdiParent = this;
JLCM.Show();
}
}
private void 员工信息管理ToolStripMenuItem_Click(object sender, EventArgs e)
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close(); //关闭已经打开的子窗体
JL_Person_Message JLPM = new JL_Person_Message();
JLPM.MdiParent = this;
JLPM.Show();
}
else
{
JL_Person_Message JLPM = new JL_Person_Message();
JLPM.MdiParent = this;
JLPM.Show();
}
}
private void 员工信息查询ToolStripMenuItem_Click(object sender, EventArgs e)
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close();
JL_Person_Message JLPM = new JL_Person_Message();
JLPM.MdiParent = this;
JLPM.Show();
}
else
{
JL_Person_Message JLPM = new JL_Person_Message();
JLPM.MdiParent = this;
JLPM.Show();
}
}
private void 配件购买ToolStripMenuItem_Click(object sender, EventArgs e)
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close(); //关闭已经打开的子窗体
JL_Peijian JLP = new JL_Peijian();
JLP.MdiParent = this;
JLP.Show();
}
else
{
JL_Peijian JLP = new JL_Peijian();
JLP.MdiParent = this;
JLP.Show();
}
}
private void 配件使用ToolStripMenuItem_Click(object sender, EventArgs e)
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close(); //关闭已经打开的子窗体
JL_Peijian JLP = new JL_Peijian();
JLP.MdiParent = this;
JLP.Show();
}
else
{
JL_Peijian JLP = new JL_Peijian();
JLP.MdiParent = this;
JLP.Show();
}
}
private void 配件信息查询ToolStripMenuItem_Click(object sender, EventArgs e)
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close(); //关闭已经打开的子窗体
JL_Peijian JLP = new JL_Peijian();
JLP.MdiParent = this;
JLP.Show();
}
else
{
JL_Peijian JLP = new JL_Peijian();
JLP.MdiParent = this;
JLP.Show();
}
}
private void 修车管理ToolStripMenuItem_Click(object sender, EventArgs e)
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close(); //关闭已经打开的子窗体
JL_Car_Repair JLCR = new JL_Car_Repair();
JLCR.MdiParent = this;
JLCR.Show();
}
else
{
JL_Car_Repair JLCR = new JL_Car_Repair();
JLCR.MdiParent = this;
JLCR.Show();
}
}
private void 修车信息查询ToolStripMenuItem_Click(object sender, EventArgs e)
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close(); //关闭已经打开的子窗体
JL_Car_Repair JLCR = new JL_Car_Repair();
JLCR.MdiParent = this;
JLCR.Show();
}
else
{
JL_Car_Repair JLCR = new JL_Car_Repair();
JLCR.MdiParent = this;
JLCR.Show();
}
}
private void 车辆事故管理ToolStripMenuItem_Click(object sender, EventArgs e)
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close(); //关闭已经打开的子窗体
JL_Car_Acc JLCA = new JL_Car_Acc();
JLCA.MdiParent = this;
JLCA.Show();
}
else
{
JL_Car_Acc JLCA = new JL_Car_Acc();
JLCA.MdiParent = this;
JLCA.Show();
}
}
private void 车辆事故查询ToolStripMenuItem_Click(object sender, EventArgs e)
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close(); //关闭已经打开的子窗体
JL_Car_Acc JLCA = new JL_Car_Acc();
JLCA.MdiParent = this;
JLCA.Show();
}
else
{
JL_Car_Acc JLCA = new JL_Car_Acc();
JLCA.MdiParent = this;
JLCA.Show();
}
}
private void 月票管理ToolStripMenuItem_Click(object sender, EventArgs e)
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close(); //关闭已经打开的子窗体
JL_Yuepiao JLY = new JL_Yuepiao();
JLY.MdiParent = this;
JLY.Show();
}
else
{
JL_Yuepiao JLY = new JL_Yuepiao();
JLY.MdiParent = this;
JLY.Show();
}
}
private void 月票信息查询ToolStripMenuItem_Click(object sender, EventArgs e)
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close(); //关闭已经打开的子窗体
JL_Yuepiao JLY = new JL_Yuepiao();
JLY.MdiParent = this;
JLY.Show();
}
else
{
JL_Yuepiao JLY = new JL_Yuepiao();
JLY.MdiParent = this;
JLY.Show();
}
}
private void 票款和油耗管理ToolStripMenuItem_Click(object sender, EventArgs e)
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close(); //关闭已经打开的子窗体
JL_Oil_Ticket JLOT = new JL_Oil_Ticket();
JLOT.MdiParent = this;
JLOT.Show();
}
else
{
JL_Oil_Ticket JLOT = new JL_Oil_Ticket();
JLOT.MdiParent = this;
JLOT.Show();
}
}
private void 票款和油耗信息查询ToolStripMenuItem_Click(object sender, EventArgs e)
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close(); //关闭已经打开的子窗体
JL_Oil_Ticket JLOT = new JL_Oil_Ticket();
JLOT.MdiParent = this;
JLOT.Show();
}
else
{
JL_Oil_Ticket JLOT = new JL_Oil_Ticket();
JLOT.MdiParent = this;
JLOT.Show();
}
}
private void 包车管理ToolStripMenuItem_Click(object sender, EventArgs e)
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close(); //关闭已经打开的子窗体
JL_Baoche JLB = new JL_Baoche();
JLB.MdiParent = this;
JLB.Show();
}
else
{
JL_Baoche JLB = new JL_Baoche();
JLB.MdiParent = this;
JLB.Show();
}
}
private void 包车信息查询ToolStripMenuItem_Click(object sender, EventArgs e)
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close(); //关闭已经打开的子窗体
JL_Baoche JLB = new JL_Baoche();
JLB.MdiParent = this;
JLB.Show();
}
else
{
JL_Baoche JLB = new JL_Baoche();
JLB.MdiParent = this;
JLB.Show();
}
}
private void 工人工资管理ToolStripMenuItem_Click(object sender, EventArgs e)
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close(); //关闭已经打开的子窗体
JL_gongzi JLg = new JL_gongzi();
JLg.MdiParent = this;
JLg.Show();
}
else
{
JL_gongzi JLg = new JL_gongzi();
JLg.MdiParent = this;
JLg.Show();
}
}
private void 工人工资查询ToolStripMenuItem_Click(object sender, EventArgs e)
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close(); //关闭已经打开的子窗体
JL_gongzi JLg = new JL_gongzi();
JLg.MdiParent = this;
JLg.Show();
}
else
{
JL_gongzi JLg = new JL_gongzi();
JLg.MdiParent = this;
JLg.Show();
}
}
private void 排班管理ToolStripMenuItem_Click(object sender, EventArgs e)
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close();
JL_paiban JLp = new JL_paiban();
JLp.MdiParent = this;
JLp.Show();
}
else
{
JL_paiban JLp = new JL_paiban();
JLp.MdiParent = this;
JLp.Show();
}
}
private void 排出时阿间表ToolStripMenuItem_Click(object sender, EventArgs e)
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close();
JL_paiban JLp = new JL_paiban();
JLp.MdiParent = this;
JLp.Show();
}
else
{
JL_paiban JLp = new JL_paiban();
JLp.MdiParent = this;
JLp.Show();
}
}
private void 设置ToolStripMenuItem_Click(object sender, EventArgs e)
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close();
JL_tixing JLt = new JL_tixing();
JLt.MdiParent = this;
JLt.Show();
}
else
{
JL_tixing JLt = new JL_tixing();
JLt.MdiParent = this;
JLt.Show();
}
}
private void 查看保险费提醒ToolStripMenuItem_Click(object sender, EventArgs e)
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close();
JL_tixing JLt = new JL_tixing();
JLt.MdiParent = this;
JLt.Show();
}
else
{
JL_tixing JLt = new JL_tixing();
JLt.MdiParent = this;
JLt.Show();
}
}
private void JL_Main_Load(object sender, EventArgs e)
{
}
private void 出勤情况显示ToolStripMenuItem_Click(object sender, EventArgs e)
{
if (this.ActiveMdiChild != null)
{
this.ActiveMdiChild.Close();
JL_chuqin JLc = new JL_chuqin();
JLc.MdiParent = this;
JLc.Show();
}
else
{
JL_chuqin JLc = new JL_chuqin();
JLc.MdiParent = this;
JLc.Show();
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -