Esempio n. 1
0
        void btnReSubmit_Click(object sender, RoutedEventArgs e)
        {
            if (DtGrid.SelectedItems.Count > 0)
            {
                T_HR_POSTDICTIONARY tmpEnt = DtGrid.SelectedItems[0] as T_HR_POSTDICTIONARY;

                //if (tmpEnt.CHECKSTATE == Utility.GetCheckState(CheckStates.Approved))
                //{
                //    ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr("REPEATAUDITERROR"),
                //Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
                //    return;
                //}

                PostDictionaryForms form    = new PostDictionaryForms(FormTypes.Resubmit, tmpEnt.POSTDICTIONARYID);
                EntityBrowser       browser = new EntityBrowser(form);
                browser.FormType         = FormTypes.Resubmit;
                form.MinWidth            = 500;
                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", "ReSubmit"),
                                               Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
            }
        }
Esempio n. 2
0
        void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            if (DtGrid.SelectedItems.Count > 0)
            {
                T_HR_POSTDICTIONARY tmpEnt = DtGrid.SelectedItems[0] as T_HR_POSTDICTIONARY;
                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;
                }
                PostDictionaryForms form    = new PostDictionaryForms(FormTypes.Edit, tmpEnt.POSTDICTIONARYID);
                EntityBrowser       browser = new EntityBrowser(form);
                browser.FormType         = FormTypes.Edit;
                form.MinWidth            = 500;
                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);
            }
        }
Esempio n. 3
0
        void btnNew_Click(object sender, RoutedEventArgs e)
        {
            PostDictionaryForms form    = new PostDictionaryForms(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) => { });
        }
Esempio n. 4
0
 void BtnView_Click(object sender, RoutedEventArgs e)
 {
     if (DtGrid.SelectedItems.Count > 0)
     {
         T_HR_POSTDICTIONARY tmpEnt  = DtGrid.SelectedItems[0] as T_HR_POSTDICTIONARY;
         PostDictionaryForms form    = new PostDictionaryForms(FormTypes.Browse, tmpEnt.POSTDICTIONARYID);
         EntityBrowser       browser = new EntityBrowser(form);
         browser.FormType         = FormTypes.Browse;
         form.MinWidth            = 500;
         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", "VIEW"),
                                        Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
     }
 }