Пример #1
0
        void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            if (DtGridStand.SelectedItems.Count > 0)
            {
                selectedStand = DtGrid.SelectedItems[0] as T_HR_SALARYSTANDARD;
                //  T_HR_SALARYSTANDARD tmpStandard = DtGrid.SelectedItems[0] as T_HR_SALARYSTANDARD;

                Form.Salary.SalaryStandardForm form = new SMT.HRM.UI.Form.Salary.SalaryStandardForm(FormTypes.Edit, selectedStand.SALARYSTANDARDID);

                EntityBrowser browser = new EntityBrowser(form);
                browser.FormType = FormTypes.Edit; 
                browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
                browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
            }
            else
            {
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTERROR", "EDIT"),
Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
                //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTERROR", "EDIT"));
                return;
            }
        }
Пример #2
0
        void btnNew_Click(object sender, RoutedEventArgs e)
        {
            Form.Salary.SalaryStandardForm form = new SMT.HRM.UI.Form.Salary.SalaryStandardForm(FormTypes.New, "");

            EntityBrowser browser = new EntityBrowser(form);
            form.MinWidth = 780;
            browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
            browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });

        }