Ejemplo n.º 1
0
 void btnNew_Click(object sender, RoutedEventArgs e)
 {
     DepartmentDictionaryForms form = new DepartmentDictionaryForms(FormTypes.New, "");
     EntityBrowser browser = new EntityBrowser(form);
     form.MinWidth = 500;
     browser.FormType = FormTypes.New;
     browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
     browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
 }
Ejemplo n.º 2
0
        void btnAudit_Click(object sender, RoutedEventArgs e)
        {
            if (DtGrid.SelectedItems.Count > 0)
            {
                T_HR_DEPARTMENTDICTIONARY tmpEnt = DtGrid.SelectedItems[0] as T_HR_DEPARTMENTDICTIONARY;
                DepartmentDictionaryForms form = new DepartmentDictionaryForms(FormTypes.Audit, tmpEnt.DEPARTMENTDICTIONARYID);
                EntityBrowser browser = new EntityBrowser(form);
                form.MinWidth = 500;
                browser.FormType = FormTypes.Audit;
                browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
                browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
            }
            else
            {
                //ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTDATAALERT"), Utility.GetResourceStr("CONFIRMBUTTON"));
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "AUDIT"),
              Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);

            }
        }
Ejemplo n.º 3
0
        void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            if (DtGrid.SelectedItems.Count > 0)
            {
                T_HR_DEPARTMENTDICTIONARY tmpEnt = DtGrid.SelectedItems[0] as T_HR_DEPARTMENTDICTIONARY;
                if (tmpEnt.CHECKSTATE != Convert.ToInt32(CheckStates.UnSubmit).ToString())
                {
                    //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("Msg_NoDeleteOrder"));
                    ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr("NOTONLYCANMODIFYTHEDATASUBMITTED"),
                Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);

                    return;
                }

                DepartmentDictionaryForms form = new DepartmentDictionaryForms(FormTypes.Edit, tmpEnt.DEPARTMENTDICTIONARYID);
                EntityBrowser browser = new EntityBrowser(form);
                form.MinWidth = 500;
                browser.FormType = FormTypes.Edit;
                browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
                browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
            }
            else
            {
                //ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTDATAALERT"), Utility.GetResourceStr("CONFIRMBUTTON"));
                //  ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTDATAALERT"),
                //Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "EDIT"),
                Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
            }
            
        }