void btnNew_Click(object sender, RoutedEventArgs e) { Form.Salary.PostSalaryForm form = new SMT.HRM.UI.Form.Salary.PostSalaryForm(FormTypes.New, null); EntityBrowser browser = new EntityBrowser(form); form.MinWidth = 570; form.MinHeight = 220; browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent); browser.Show <string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { }); }
void btnNew_Click(object sender, RoutedEventArgs e) { Form.Salary.PostSalaryForm form = new SMT.HRM.UI.Form.Salary.PostSalaryForm(FormTypes.New, null); EntityBrowser browser = new EntityBrowser(form); form.MinWidth = 570; form.MinHeight = 220; browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent); browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { }); }
void btnEdit_Click(object sender, RoutedEventArgs e) { // client.PostLevelDistinctionUpdateAsync(postLevels); if (DtGrid.SelectedItems.Count > 0) { T_HR_POSTLEVELDISTINCTION tmpEnt = DtGrid.SelectedItems[0] as T_HR_POSTLEVELDISTINCTION; Form.Salary.PostSalaryForm form = new SMT.HRM.UI.Form.Salary.PostSalaryForm(FormTypes.Edit, tmpEnt.POSTLEVELID); EntityBrowser browser = new EntityBrowser(form); form.MinWidth = 570; form.MinHeight = 220; browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent); browser.Show <string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { }); } else { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTERROR", "EDIT")); return; } }
void btnEdit_Click(object sender, RoutedEventArgs e) { // client.PostLevelDistinctionUpdateAsync(postLevels); if (DtGrid.SelectedItems.Count > 0) { T_HR_POSTLEVELDISTINCTION tmpEnt = DtGrid.SelectedItems[0] as T_HR_POSTLEVELDISTINCTION; Form.Salary.PostSalaryForm form = new SMT.HRM.UI.Form.Salary.PostSalaryForm(FormTypes.Edit, tmpEnt.POSTLEVELID); EntityBrowser browser = new EntityBrowser(form); form.MinWidth = 570; form.MinHeight = 220; browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent); browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { }); } else { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTERROR", "EDIT")); return; } }