Beispiel #1
0
        void btnNew_Click(object sender, RoutedEventArgs e)
        {
            OperatorParamSet Oparamset = new OperatorParamSet(FormTypes.New, "", GETMODELTYPE);
            EntityBrowser    browser   = new EntityBrowser(Oparamset);

            browser.Show <string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => {});
        }
Beispiel #2
0
        void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            if (DtGrid.SelectedItems.Count > 0)
            {
                T_HR_SYSTEMSETTING tmpSystemset = DtGrid.SelectedItems[0] as T_HR_SYSTEMSETTING;

                //if (tmpSystemsetIDs.Count <= 0)
                //{
                //    Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTDATAALERT"));
                //    return;
                //}
                OperatorParamSet form    = new OperatorParamSet(FormTypes.Edit, tmpSystemset.SYSTEMSETTINGID, GETMODELTYPE);
                EntityBrowser    browser = new EntityBrowser(form);

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

                //if (tmpSystemsetIDs.Count <= 0)
                //{
                //    Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTDATAALERT"));
                //    return;
                //}
                OperatorParamSet form = new OperatorParamSet(FormTypes.Edit, tmpSystemset.SYSTEMSETTINGID, GETMODELTYPE);
                EntityBrowser browser = new EntityBrowser(form);

                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"));
            }
        }
Beispiel #4
0
 void btnNew_Click(object sender, RoutedEventArgs e)
 {
     OperatorParamSet Oparamset = new OperatorParamSet(FormTypes.New, "", GETMODELTYPE);
     EntityBrowser browser = new EntityBrowser(Oparamset);
     
     browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) =>{});
 }