void btnNew_Click(object sender, RoutedEventArgs e) { Form.Salary.SalarySolutionAssignForm form = new SMT.HRM.UI.Form.Salary.SalarySolutionAssignForm(FormTypes.New, ""); EntityBrowser browser = new EntityBrowser(form); form.MinHeight = 250; 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) { if (DtGrid.SelectedItems.Count > 0) { V_SALARYSOLUTIONASSIGN tmpSolution = DtGrid.SelectedItems[0] as V_SALARYSOLUTIONASSIGN; Form.Salary.SalarySolutionAssignForm form = new SMT.HRM.UI.Form.Salary.SalarySolutionAssignForm(FormTypes.Edit, tmpSolution.SalarySolutionAssign.SALARYSOLUTIONASSIGNID); EntityBrowser browser = new EntityBrowser(form); form.MinHeight = 250; 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.Message, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTERROR", "EDIT")); return; } }
void BtnView_Click(object sender, RoutedEventArgs e) { if (DtGrid.SelectedItems.Count > 0) { V_SALARYSOLUTIONASSIGN tmpSolution = DtGrid.SelectedItems[0] as V_SALARYSOLUTIONASSIGN; Form.Salary.SalarySolutionAssignForm form = new SMT.HRM.UI.Form.Salary.SalarySolutionAssignForm(FormTypes.Browse, tmpSolution.SalarySolutionAssign.SALARYSOLUTIONASSIGNID); EntityBrowser browser = new EntityBrowser(form); browser.FormType = FormTypes.Browse; form.MinHeight = 250; browser.IsEnabled = false; 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", "VIEW"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation); //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTERROR", "EDIT")); return; } }
void btnNew_Click(object sender, RoutedEventArgs e) { Form.Salary.SalarySolutionAssignForm form = new SMT.HRM.UI.Form.Salary.SalarySolutionAssignForm(FormTypes.New, ""); EntityBrowser browser = new EntityBrowser(form); form.MinHeight = 250; browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent); browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });