mdifrmmain.cs

来自「关于医院进销存的系统」· CS 代码 · 共 133 行

CS
133
字号
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace YYJXC
{
    public partial class MDIfrmMain : Form
    {
        public MDIfrmMain()
        {
            InitializeComponent();
        }

        private void 药品信息管理ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (this.MdiChildren.Length > 0) this.MdiChildren[0].Close();
            frmMedicine MedicineForm = new frmMedicine();
            MedicineForm.MdiParent = this;
            MedicineForm.Show();
        }

        private void 药品ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (this.MdiChildren.Length > 0) this.MdiChildren[0].Close();
            frmSell SellForm = new frmSell();
            SellForm.MdiParent = this;
            SellForm.Show();
        }

        private void 药品入库ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (this.MdiChildren.Length > 0) this.MdiChildren[0].Close();
            frmWareHouse WareHouseForm = new frmWareHouse();
            WareHouseForm.MdiParent = this;
            WareHouseForm.Show();
        }

        private void 库存药品查询ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (this.MdiChildren.Length > 0) this.MdiChildren[0].Close();
            frmWareHouseSelect WareHouseSelect = new frmWareHouseSelect();
            WareHouseSelect.MdiParent = this;
            WareHouseSelect.Show();
        }

        private void 销售日报表ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (this.MdiChildren.Length > 0) this.MdiChildren[0].Close();
            frmDayReport DayReportForm = new frmDayReport();
            DayReportForm.MdiParent = this;
            DayReportForm.Show();
        }

        private void 客户销售报表ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (this.MdiChildren.Length > 0) this.MdiChildren[0].Close();
            frmClientSellReport ClientSellReportForm = new frmClientSellReport();
            ClientSellReportForm.MdiParent = this;
            ClientSellReportForm.Show();
        }

        private void 应收款管理ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (this.MdiChildren.Length > 0) this.MdiChildren[0].Close();
            frmYingShouMoney YingShouMoneyForm = new frmYingShouMoney();
            YingShouMoneyForm.MdiParent = this;
            YingShouMoneyForm.Show();
        }

        private void 客户管理ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (this.MdiChildren.Length > 0) this.MdiChildren[0].Close();
            frmClient ClientForm = new frmClient();
            ClientForm.MdiParent = this;
            ClientForm.Show();
        }

        private void 供应商管理ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (this.MdiChildren.Length > 0) this.MdiChildren[0].Close();
            frmGongYingShang GongYingShangForm = new frmGongYingShang();
            GongYingShangForm.MdiParent = this;
            GongYingShangForm.Show();
        }

        private void 收款查询ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (this.MdiChildren.Length > 0) this.MdiChildren[0].Close();
            frmSelectMoney SelectMoney = new frmSelectMoney();
            SelectMoney.MdiParent = this;
            SelectMoney.Show();
        }

        private void 销售月报表ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (this.MdiChildren.Length > 0) this.MdiChildren[0].Close();
            frmMonthReport MonthReport = new frmMonthReport();
            MonthReport.MdiParent = this;
            MonthReport.Show();
        }

        private void 销售查询ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (this.MdiChildren.Length > 0) this.MdiChildren[0].Close();
            frmSellSelect SellSelectForm = new frmSellSelect();
            SellSelectForm.MdiParent = this;
            SellSelectForm.Show();
        }

        private void 入库查询ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (this.MdiChildren.Length > 0) this.MdiChildren[0].Close();
            frmStockSelect StockSelect = new frmStockSelect();
            StockSelect.MdiParent = this;
            StockSelect.Show();
        }

        private void 口令设置ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmEditPwd EditPwdForm = new frmEditPwd();
            EditPwdForm.ShowDialog();
        }

        private void MDIfrmMain_Load(object sender, EventArgs e)
        {
            Text = "医药进销存管理系统      操作员-" + CLoad.UserId;
        }
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?