Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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();
        }
Exemplo n.º 4
0
        private void showWindow(CWinOrgChartLoadParam param, String className)
        {
            WinBase cr = (WinBase)Activator.CreateInstance(Type.GetType(className), new object[] { param });

            cr.ShowDialog();
        }