void btnNew_Click(object sender, RoutedEventArgs e)
        {
            SMT.HRM.UI.Form.Salary.SolutionItemForm form = new SolutionItemForm(FormTypes.New, savesid);
            EntityBrowser browser = new EntityBrowser(form);

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

            #region ----
            //System.Collections.ObjectModel.ObservableCollection<object> paras = new System.Collections.ObjectModel.ObservableCollection<object>();
            ////string filter = "";
            ////filter = "CHECKSTATE==@" + paras.Count;
            //paras.Add(Convert.ToInt16(CheckStates.Approved).ToString());
            //LookupForm lookup = new LookupForm(EntityNames.SalaryStandard,
            //  typeof(List<T_HR_SALARYSTANDARD>), cols, filter, paras);
            #endregion
        }
 void btnEdit_Click(object sender, RoutedEventArgs e)
 {
     if (DtGrid.SelectedItems.Count > 0)
     {
         V_SALARYSOLUTIONITEM tmp = DtGrid.SelectedItems[0] as V_SALARYSOLUTIONITEM;
         SMT.HRM.UI.Form.Salary.SolutionItemForm form = new SolutionItemForm(FormTypes.Edit, tmp.SOLUTIONITEMID);
         EntityBrowser browser = new EntityBrowser(form);
         form.MinWidth            = 400;
         form.MinHeight           = 180;
         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;
     }
 }
示例#3
0
        void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            if (DtGrid.SelectedItems.Count > 0)
            {
                V_SALARYSOLUTIONITEM tmp = DtGrid.SelectedItems[0] as V_SALARYSOLUTIONITEM;
                SMT.HRM.UI.Form.Salary.SolutionItemForm form = new SolutionItemForm(FormTypes.Edit, tmp.SOLUTIONITEMID);
                EntityBrowser browser = new EntityBrowser(form);
                form.MinWidth = 400;
                form.MinHeight = 180;
                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;
            }

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

            SMT.HRM.UI.Form.Salary.SolutionItemForm form = new SolutionItemForm(FormTypes.New, savesid);
            EntityBrowser browser = new EntityBrowser(form);
            form.MinWidth = 400;
            form.MinHeight = 180;
            browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
            browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });

            #region ----
            //System.Collections.ObjectModel.ObservableCollection<object> paras = new System.Collections.ObjectModel.ObservableCollection<object>();
            ////string filter = "";
            ////filter = "CHECKSTATE==@" + paras.Count;
            //paras.Add(Convert.ToInt16(CheckStates.Approved).ToString());
            //LookupForm lookup = new LookupForm(EntityNames.SalaryStandard,
            //  typeof(List<T_HR_SALARYSTANDARD>), cols, filter, paras);
            #endregion

        }