private void mnuMdBranch() { if(!frmBranch.IsDisposed) { frmBranch.Dispose(); } ACMSLogic.User.BranchCode = terminalUser.Branch.Id; ACMSLogic.User.EmployeeID = employee.Id; if (employee.Department != null) ACMSLogic.User.DepartmentID = employee.Department.Id; if (employee.StrEmployeeName != null) ACMSLogic.User.EmployeeName = employee.StrEmployeeName; if (employee.JobPosition.Id != null) ACMSLogic.User.JobPositionCode = employee.JobPosition.Id; if (employee.RightsLevel != null) ACMSLogic.User.RightsLevelID = employee.RightsLevel.Id; ACMSLogic.User oUser = new User(); frmBranch = new ACMS.ACMSManager.MasterData.frmBranch(); panel1.Controls.Clear(); frmBranch.TopLevel = false; frmBranch.Dock = DockStyle.Fill; frmBranch.Parent = panel1; frmBranch.Show(); panel1.Refresh(); }
private void mdInit() { frmBank = new ACMS.ACMSManager.MasterData.frmBank(); frmComp = new ACMS.ACMSManager.MasterData.frmCompany(); frmBranch = new ACMS.ACMSManager.MasterData.frmBranch(); frmCommission = new ACMS.ACMSManager.MasterData.frmCommission(); frmPackage = new ACMS.ACMSManager.MasterData.frmPackage(); frmPromotion = new ACMS.ACMSManager.MasterData.frmPromotion(); frmEmployee = new ACMS.ACMSManager.MasterData.frmEmployee(this.employee.Id.ToString()); frmDepartment = new ACMS.ACMSManager.MasterData.frmDepartment(); frmService = new ACMS.ACMSManager.MasterData.frmService(); frmLeave = new ACMS.ACMSManager.MasterData.frmLeave(); frmUserRights = new ACMS.ACMSManager.MasterData.frmUserRights(); frmClass = new ACMS.ACMSManager.MasterData.frmClass(); frmPromotionItem = new ACMS.ACMSManager.MasterData.frmPromotionItem(); frmReward = new ACMS.ACMSManager.MasterData.frmReward(); frmInventory = new ACMS.ACMSManager.MasterData.frmInventory(); frmTerminalUser = new ACMS.ACMSManager.MasterData.frmTerminalUser(); panel1.Controls.Clear(); frmComp.TopLevel = false; frmComp.Dock = DockStyle.Fill; frmComp.Parent = panel1; frmComp.Show(); panel1.Refresh(); }