Example #1
0
 private void btEdit_Click(object sender, RoutedEventArgs e)
 {
     if (DtGrid.SelectedItems.Count > 0)
     {
         this.selectedAreaDifference = (DtGrid.SelectedItems[0] as T_HR_AREAALLOWANCE).T_HR_AREADIFFERENCE;
         Form.Salary.AreaAllowanceForm form = new SMT.HRM.UI.Form.Salary.AreaAllowanceForm(FormTypes.Edit, (DtGrid.SelectedItems[0] as T_HR_AREAALLOWANCE).AREAALLOWANCEID, AreaID, (DtGrid.SelectedItems[0] as T_HR_AREAALLOWANCE).POSTLEVEL);
         EntityBrowser browser = new EntityBrowser(form);
         form.MinHeight = 150;
         form.MinWidth = 410;
         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;
     }
 }
Example #2
0
        private void btnAllowanceAdd_Click(object sender, RoutedEventArgs e)
        {
            if (DtGridArea.SelectedItems.Count > 0)
            {
                    Form.Salary.AreaAllowanceForm form = new SMT.HRM.UI.Form.Salary.AreaAllowanceForm(FormTypes.New, "", AreaID,"");
                    EntityBrowser browser = new EntityBrowser(form);
                    form.MinHeight = 150;
                    form.MinWidth = 410;
                    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("SELECTEAERA"));
            }

        }