Example #1
0
        void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            if (DtGrid.SelectedItems.Count > 0)
            {
                T_HR_EMPLOYEEADDSUM tmpEnt = DtGrid.SelectedItems[0] as T_HR_EMPLOYEEADDSUM;

                if (tmpEnt.CHECKSTATE == "0" || tmpEnt.CHECKSTATE == "3")
                {
                    Form.Salary.EmployeeAddSumForm form = new SMT.HRM.UI.Form.Salary.EmployeeAddSumForm(FormTypes.Edit, tmpEnt.ADDSUMID);

                    EntityBrowser browser = new EntityBrowser(form);
                    form.MinWidth            = 600;
                    form.MinHeight           = 240;
                    browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
                    browser.FormType         = FormTypes.Edit;
                    browser.Show <string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
                }
                else
                {
                    ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("NOTEDIT"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
                }
            }
            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;
            }
        }
Example #2
0
        void btnNew_Click(object sender, RoutedEventArgs e)
        {
            Form.Salary.EmployeeAddSumForm form = new SMT.HRM.UI.Form.Salary.EmployeeAddSumForm(FormTypes.New, "");
            EntityBrowser browser = new EntityBrowser(form);

            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) => { });
        }
Example #3
0
        void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            if (DtGrid.SelectedItems.Count > 0)
            {
                T_HR_EMPLOYEEADDSUM tmpEnt = DtGrid.SelectedItems[0] as T_HR_EMPLOYEEADDSUM;

                if (tmpEnt.CHECKSTATE == "0" || tmpEnt.CHECKSTATE == "3")
                {

                    Form.Salary.EmployeeAddSumForm form = new SMT.HRM.UI.Form.Salary.EmployeeAddSumForm(FormTypes.Edit, tmpEnt.ADDSUMID);

                    EntityBrowser browser = new EntityBrowser(form);
                    form.MinWidth = 600;
                    form.MinHeight = 240;
                    browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
                    browser.FormType = FormTypes.Edit;
                    browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
                }
                else
                {
                    ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("NOTEDIT"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
                }
            }
            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;
            }

        }
Example #4
0
        void btnNew_Click(object sender, RoutedEventArgs e)
        {

            Form.Salary.EmployeeAddSumForm form = new SMT.HRM.UI.Form.Salary.EmployeeAddSumForm(FormTypes.New, "");
            EntityBrowser browser = new EntityBrowser(form);
            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) => { });

        }