Esempio n. 1
0
        void client_PostCancelCompleted(object sender, PostCancelCompletedEventArgs e)
        {
            if (e.Error != null && e.Error.Message != "")
            {
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"),
                                               Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
            }
            else
            {
                if (!string.IsNullOrEmpty(e.strMsg))
                {
                    SelectPost.EDITSTATE  = Convert.ToInt32(EditStates.Actived).ToString();
                    SelectPost.CHECKSTATE = Convert.ToInt32(CheckStates.Approved).ToString();
                    ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr(e.strMsg),
                                                   Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
                    return;
                }


                PostForm      form    = new PostForm(FormTypes.Resubmit, SelectPost.POSTID);
                EntityBrowser browser = new EntityBrowser(form);

                browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
                browser.FormType         = FormTypes.Resubmit;
                browser.Show <string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
            }
        }
Esempio n. 2
0
        void client_PostCancelCompleted(object sender, PostCancelCompletedEventArgs e)
        {
            if (e.Error != null && e.Error.Message != "")
            {
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"),
                        Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
            }
            else
            {
                if (!string.IsNullOrEmpty(e.strMsg))
                {
                    SelectPost.EDITSTATE = Convert.ToInt32(EditStates.Actived).ToString();
                    SelectPost.CHECKSTATE = Convert.ToInt32(CheckStates.Approved).ToString();
                    ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr(e.strMsg),
                        Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
                    return;
                }
               

                PostForm form = new PostForm(FormTypes.Resubmit, SelectPost.POSTID);
                EntityBrowser browser = new EntityBrowser(form);

                browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
                browser.FormType = FormTypes.Resubmit;
                browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
            }
        }