⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mysystemcore.cs

📁 实现企业的人事管理
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.Text;
using System.Data.SqlClient;

namespace renshiguanli
{
    public class MySystemCore
    {
        private string Temp_Information;

        DepartmentManage Department_frm = new DepartmentManage();
        AddDepartment Add_frm = new AddDepartment();
        DepartmentDetails Details_frm = new DepartmentDetails();
        Browse_form Browse_frm = new Browse_form();
        DistributeEmployee disEmployee_frm = new DistributeEmployee();

        public void OpenForm(string name)
        {
            if (name == "DepartmentManage")
            {
                Department_frm.Show();
            }
            else if (name == "AddDepartment")
            {
                Add_frm.Show();
            }
            else if (name == "DepartmentDetails")
            {
                if (Department_frm.Gettemp_common() != null)
                {//获得所选中的树结点
                    Details_frm.Settemp1(Department_frm.Gettemp_common());
                    Details_frm.SetLabel2_text();
                }
                Details_frm.Show();
            }
            else if (name == "Browse")
            {
                Browse_frm.Show();
            }
        }

        public void Open_disEmployee(string a, string b)
        {
            //a:DeptName
            //b:DeptID
            disEmployee_frm.Set_textBox2(a);
            disEmployee_frm.Set_ID_temp(b);
            disEmployee_frm.Set_Dept_and_Employee_comboBox1();
            disEmployee_frm.Show();
        }

        public void SetText(string info)
        {
            Temp_Information = info;
        }

        public void GiveText()
        {//把经理的ID传给添加部门的经理文本框
            Add_frm.SetManager(Temp_Information);
        }

        int step = 0;//use in SendText()
        public void SendText()
        {
            if (step == 0)
            {
                Department_frm.Settemp(Temp_Information);
                step++;
            }
            else if (step == 1)
            {
                Department_frm.Settemp1(Temp_Information);
                step++;
            }
            else if (step == 2)
            {
                Department_frm.Settemp_common(Temp_Information);
                step = 0;
            }
        }
    }
}

⌨️ 快捷键说明

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