예제 #1
0
        void BtnView_Click(object sender, RoutedEventArgs e)
        {
            if (DtGrid.SelectedItems.Count > 0)
            {
                T_HR_EMPLOYEESALARYPOSTASIGN tmpEnt = DtGrid.SelectedItems[0] as T_HR_EMPLOYEESALARYPOSTASIGN;

                Form.Salary.EmployeeBalancePostDetailForm form = new SMT.HRM.UI.Form.Salary.EmployeeBalancePostDetailForm(FormTypes.Browse, tmpEnt.EMPLOYEESALARYPOSTASIGNID);
                form.IsEnabled = false;
                EntityBrowser browser = new EntityBrowser(form);
                browser.FormType         = FormTypes.Browse;
                form.MinWidth            = 600;
                form.MinHeight           = 240;
                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 BtnView_Click(object sender, RoutedEventArgs e)
        {
            if (DtGrid.SelectedItems.Count > 0)
            {
                T_HR_EMPLOYEESALARYPOSTASIGN tmpEnt = DtGrid.SelectedItems[0] as T_HR_EMPLOYEESALARYPOSTASIGN;

                Form.Salary.EmployeeBalancePostDetailForm form = new SMT.HRM.UI.Form.Salary.EmployeeBalancePostDetailForm(FormTypes.Browse, tmpEnt.EMPLOYEESALARYPOSTASIGNID);
                form.IsEnabled = false;
                EntityBrowser browser = new EntityBrowser(form);
                browser.FormType = FormTypes.Browse;
                form.MinWidth = 600;
                form.MinHeight = 240;
                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;
            }
        }