Beispiel #1
0
        void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            // client.PostLevelDistinctionUpdateAsync(postLevels);
            if (DtGrid.SelectedItems.Count > 0)
            {
                T_HR_SALARYSYSTEM tmpEnt = DtGrid.SelectedItems[0] as T_HR_SALARYSYSTEM;
                if (tmpEnt.CHECKSTATE == "0")
                {
                    Form.Salary.SalarySystemNameForm form = new SMT.HRM.UI.Form.Salary.SalarySystemNameForm(FormTypes.Edit, tmpEnt.SALARYSYSTEMID);

                    EntityBrowser browser = new EntityBrowser(form);
                    browser.FormType = FormTypes.Edit;
                    //form.MinWidth = 400;
                    //form.MinHeight = 230;
                    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("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;
            }
        }
Beispiel #2
0
        void btnNew_Click(object sender, RoutedEventArgs e)
        {
            Form.Salary.SalarySystemNameForm form = new SMT.HRM.UI.Form.Salary.SalarySystemNameForm(FormTypes.New, null);

            EntityBrowser browser = new EntityBrowser(form);

            //form.MinWidth =400;
            //form.MinHeight = 230;
            browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
            browser.Show <string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
        }
Beispiel #3
0
        void btnReSubmit_Click(object sender, RoutedEventArgs e)
        {
            ///TODO: 重新提交审核 
            if (DtGrid.SelectedItems.Count > 0)
            {
                T_HR_SALARYSYSTEM tmpEnt = DtGrid.SelectedItems[0] as T_HR_SALARYSYSTEM;

                Form.Salary.SalarySystemNameForm form = new SMT.HRM.UI.Form.Salary.SalarySystemNameForm(FormTypes.Resubmit, tmpEnt.SALARYSYSTEMID);

                EntityBrowser browser = new EntityBrowser(form);
                //form.MinWidth = 400;
                //form.MinHeight = 230;
                browser.FormType = FormTypes.Resubmit;
                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;
            }
        }
Beispiel #4
0
        void btnNew_Click(object sender, RoutedEventArgs e)
        {

            Form.Salary.SalarySystemNameForm form = new SMT.HRM.UI.Form.Salary.SalarySystemNameForm(FormTypes.New, null);

            EntityBrowser browser = new EntityBrowser(form);
            //form.MinWidth =400;
            //form.MinHeight = 230;
            browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
            browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });

        }