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

                if (customSalaryIDs.Count <= 0)
                {
                    Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTDATAALERT"));
                    return;
                }
                CustomSalaryForm form = new CustomSalaryForm(FormTypes.Browse, customSalaryIDs[0]);
                form.IsEnabled = false;
                EntityBrowser browser = new EntityBrowser(form);
                browser.FormType = FormTypes.Browse;
                browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
                form.MinHeight = 240;
                browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
            }
            else
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTERROR", "EDIT"));
            }
        }
Пример #2
0
        void btnNew_Click(object sender, RoutedEventArgs e)
        {            
            CustomSalaryForm form = new CustomSalaryForm(FormTypes.New, "");
            EntityBrowser browser = new EntityBrowser(form);
            
            browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
            form.MinHeight = 240;
            browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) =>{});

        }