Пример #1
0
        private void sideBar1_ItemClick(Aptech.UI.SbItemEventArgs e)
        {
            switch (sideBar1.SeletedItem.Text)
            {
            case "员工管理":
                PersonnelSys.Form_EmployeeList emplist = new FinanceSys.PersonnelSys.Form_EmployeeList();

                emplist.ShowDialog();
                break;

            case "员工添加":
                PersonnelSys.Form_EmployeeAdd empadd = new FinanceSys.PersonnelSys.Form_EmployeeAdd();
                empadd.canshu = "add";
                empadd.ShowDialog();
                break;

            case "部门管理":
                PersonnelSys.Form_DepartmentList depart = new FinanceSys.PersonnelSys.Form_DepartmentList();

                depart.ShowDialog();
                break;

            case "离职管理":
                PersonnelSys.Form_LeaveList leave = new FinanceSys.PersonnelSys.Form_LeaveList();

                leave.ShowDialog();
                break;

            case "工资管理":
                PersonnelSys.Form_EmpWageList wage = new FinanceSys.PersonnelSys.Form_EmpWageList();

                wage.ShowDialog();
                break;

            case "工资发放":
                PersonnelSys.Form_PayMonth pay = new FinanceSys.PersonnelSys.Form_PayMonth();

                pay.ShowDialog();
                break;

            case "调薪设置":
                PersonnelSys.Form_WageChangeList salary = new FinanceSys.PersonnelSys.Form_WageChangeList();

                salary.ShowDialog();
                break;

            case "支出管理":
                FinanceManagerSys.Form_OutlayList outlay = new FinanceSys.FinanceManagerSys.Form_OutlayList();

                outlay.ShowDialog();
                break;

            case "收入管理":
                FinanceManagerSys.Form_IncomeList type = new FinanceSys.FinanceManagerSys.Form_IncomeList();

                type.ShowDialog();
                break;

            case "发票列表":
                FinanceManagerSys.Form_OpenInvoice openinvoice = new FinanceSys.FinanceManagerSys.Form_OpenInvoice();

                openinvoice.canshu = "main";
                openinvoice.Show();
                break;

            case "收入合同管理":
                FinanceManagerSys.Form_ContractList contract = new FinanceSys.FinanceManagerSys.Form_ContractList();

                contract.ShowDialog();
                break;

            case "账户查询":
                FinanceManagerSys.Form_Money money = new FinanceSys.FinanceManagerSys.Form_Money();

                money.ShowDialog();
                break;

            case "收入明细":
                FinanceManagerSys.Form_IncomeList incomelist = new FinanceSys.FinanceManagerSys.Form_IncomeList();

                incomelist.ShowDialog();
                break;

            case "支出明细":
                FinanceManagerSys.Form_OutlayList outlaylist = new FinanceSys.FinanceManagerSys.Form_OutlayList();

                outlaylist.ShowDialog();
                break;

            case "密码修改":
                Form_UpdatePwd pwd = new Form_UpdatePwd();

                pwd.ShowDialog();
                break;

            case "系统初始化":
                if (MessageBox.Show("警告:数据初始化会造成数据丢失,您确定要初始化吗??", "警告", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning) == DialogResult.OK)
                {
                    if (Systems.SysInit())
                    {
                        App_Code.Message.InfoMsg("系统初始化成功。");
                    }
                    else
                    {
                        App_Code.Message.InfoMsg("系统初始化失败。");
                    }
                }
                break;

            case "用户管理":
                Form_UserList userlist = new Form_UserList();
                userlist.ShowDialog();
                break;

            case "新增用户":
                Form_UserAdd useradd = new Form_UserAdd();

                useradd.Show();
                break;

            default:
                return;

                break;
            }
        }
Пример #2
0
        private void 修改密码ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form_UpdatePwd pwd = new Form_UpdatePwd();

            pwd.ShowDialog();
        }