Esempio n. 1
0
        void btnAudit_Click(object sender, RoutedEventArgs e)
        {
            ///TODO:ADD 审核
            if (DtGrid.SelectedItems.Count > 0)
            {
                T_HR_PERFORMANCEREWARDSET            tmpEnt = DtGrid.SelectedItems[0] as T_HR_PERFORMANCEREWARDSET;
                Form.Salary.PerformanceRewardSetForm form   = new Form.Salary.PerformanceRewardSetForm(FormTypes.Audit, tmpEnt.PERFORMANCEREWARDSETID);
                EntityBrowser browser = new EntityBrowser(form);

                browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
                browser.FormType         = FormTypes.Audit;
                browser.Show <string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
            }
            else
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTERROR", "AUDIT"));
                return;
            }
        }
Esempio n. 2
0
        void btnAudit_Click(object sender, RoutedEventArgs e)
        {
            ///TODO:ADD 审核  
            if (DtGrid.SelectedItems.Count > 0)
            {
                T_HR_PERFORMANCEREWARDSET tmpEnt = DtGrid.SelectedItems[0] as T_HR_PERFORMANCEREWARDSET;
                Form.Salary.PerformanceRewardSetForm form = new Form.Salary.PerformanceRewardSetForm(FormTypes.Audit, tmpEnt.PERFORMANCEREWARDSETID);
                EntityBrowser browser = new EntityBrowser(form);

                browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
                browser.FormType = FormTypes.Audit;
                browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
            }
            else
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTERROR", "AUDIT"));
                return;
            }
        }