private void MnuMasterRefEdit_Click(object sender, RoutedEventArgs e) { if (!CHelper.VerifyAccessRight("HR_ORGCHART_VIEW")) { return; } CWinOrgChartLoadParam param = new CWinOrgChartLoadParam(); param.Mode = "E"; param.ActualView = currentViewObj; param.GenericType = currentViewObj.Category; param.ParentItemSources = vw.CurrentItemSource; param.CurrentPaths = vw.CurrentPath; FactoryWindow.ShowWindow("WinAddEditOrgChart", param); }
public WinAddEditOrgChart(CWinOrgChartLoadParam param) : base((CWinLoadParam)param) { category = param.GenericType; currentPaths = param.CurrentPaths; accessRightName = "HR_ORGCHART_EDIT"; createAPIName = "CreateVirtualDirectory"; updateAPIName = "UpdateVirtualDirectory"; getInfoAPIName = "GetVirtualDirectoryInfo"; InitializeComponent(); //Need to be after InitializeComponent registerValidateControls(lblName, txtName, false); registerValidateControls(lblDesc, txtDesc, false); }
private void CmdAdd_Click(object sender, RoutedEventArgs e) { if (!CHelper.VerifyAccessRight("HR_ORGCHART_ADD")) { return; } CWinOrgChartLoadParam param = new CWinOrgChartLoadParam(); param.Mode = "A"; param.GenericType = vw.CurrentDirectory.Category; param.ParentItemSources = vw.CurrentItemSource; param.CurrentPaths = vw.CurrentPath; FactoryWindow.ShowWindow("WinAddEditOrgChart", param); CMasterReference.LoadEmployeeDepartments(); CMasterReference.LoadEmployeePositions(); }
private void showWindow(CWinOrgChartLoadParam param, String className) { WinBase cr = (WinBase)Activator.CreateInstance(Type.GetType(className), new object[] { param }); cr.ShowDialog(); }