public void VerifyUserCanLogInIntoIC() { var logInPage = new LoginPage(driver); logInPage.LogIn(); // var code = "New Justice2"; var randomNumber = new Random(); var code = "Code_" + randomNumber.Next(0, 999); var randomDescription = new Random(); var description = "Desc_" + randomDescription.Next(0, 999); var CreateNewPage = new CreateNew(driver); CreateNewPage.CreateNewPage(code, description); var NewCreate = new EditPage(driver); NewCreate.FindRecord(code); }
public override SearchResultItem[] Search(string text) { var list = new List <SearchResultItem>(); var defPageHref = VirtualPathUtility.ToAbsolute(WikiManager.ViewVirtualPath); foreach (var page in new WikiEngine().SearchPagesByContent(text)) { var pageName = page.PageName; if (string.IsNullOrEmpty(pageName)) { pageName = WikiResource.MainWikiCaption; } list.Add(new SearchResultItem { Name = pageName, Description = HtmlUtil.GetText( EditPage.ConvertWikiToHtml(page.PageName, page.Body, defPageHref, WikiSection.Section.ImageHangler.UrlFormat, TenantProvider.CurrentTenantID), 120), URL = ActionHelper.GetViewPagePath(defPageHref, page.PageName), Date = page.Date }); } return(list.ToArray()); }
//event private void Repaint(string name) { switch (name) { case "Home": HomePage ph = new HomePage(); ph.HandlerRepaintMainPage += EventRepaint; mainFrame.Navigate(ph); break; case "Frige": FrigePage fp = new FrigePage(); fp.HandlerRepaintMainWind += EventRepaint; mainFrame.Navigate(fp); break; case "Edit": EditPage ep = new EditPage(); mainFrame.Navigate(ep); break; case "GI": Console.WriteLine("create GI"); break; case "Recipies": Console.WriteLine("create Recipies"); break; default: HomePage page = new HomePage(); mainFrame.Navigate(page); break; } }
public override SearchResultItem[] Search(string text) { List <SearchResultItem> list = new List <SearchResultItem>(); string rootPage = HttpContext.Current.Request.PhysicalApplicationPath.TrimEnd('\\'); string defPageHref = VirtualPathUtility.ToAbsolute(WikiManager.ViewVirtualPath); string pageName; foreach (Page page in new WikiEngine().SearchPagesByContent(text)) { pageName = page.PageName; if (string.IsNullOrEmpty(pageName)) { pageName = WikiResource.MainWikiCaption; } list.Add(new SearchResultItem() { Name = pageName, Description = HtmlUtility.GetText( EditPage.ConvertWikiToHtml(page.PageName, page.Body, defPageHref, WikiSection.Section.ImageHangler.UrlFormat, TenantId), 120), URL = ActionHelper.GetViewPagePath(defPageHref, page.PageName), Date = page.Date }); } return(list.ToArray()); }
private ITagValue[] GetCategoryNotifyTags(string objectId, string pageName) { var page = GetPage(pageName); if (page == null) { return(null); } var user = CoreContext.UserManager.GetUsers(SecurityContext.CurrentAccount.ID); var defPageHref = VirtualPathUtility.ToAbsolute(WikiManager.ViewVirtualPath); var tags = new List <ITagValue> { new TagValue(Constants.TagPageName, page.PageName), new TagValue(Constants.TagURL, CommonLinkUtility.GetFullAbsolutePath(ActionHelper.GetViewPagePath(defPageHref, page.PageName))), new TagValue(Constants.TagUserName, user.DisplayUserName()), new TagValue(Constants.TagUserURL, CommonLinkUtility.GetFullAbsolutePath(CommonLinkUtility.GetUserProfile(user.ID))), new TagValue(Constants.TagDate, TenantUtil.DateTimeNow()), new TagValue(Constants.TagPostPreview, HtmlUtil.GetText(EditPage.ConvertWikiToHtml(page.PageName, page.Body, defPageHref, WikiSection.Section.ImageHangler.UrlFormat, CoreContext.TenantManager.GetCurrentTenant().TenantId), 120)), new TagValue(Constants.TagCatName, objectId), ReplyToTagProvider.Comment("wiki", pageName) }; return(tags.ToArray()); }
public void EditTest(string key, string value, bool errorExpected) { foreach (var driver in Driver.Current) { AddressPage addressPagecs = new AddressPage(driver); addressPagecs.EditRow(_id); EditPage editPage = new EditPage(driver, _id); Dictionary <string, string> newData = new Dictionary <string, string>(); newData = editPage.GetDatafromForm(); newData[key] = value; AddressPageModel addressPageModel = new AddressPageModel(); addressPageModel.CreateData(newData); editPage.FeedDataToPageForm(addressPageModel); if (!("http://a.testaddressbook.com/addresses/" + _id == driver.Url)) { bool temp = editPage.IsError(); Assert.IsTrue(temp == errorExpected); } } }
/// <summary> /// Builds the page. /// </summary> public override void BuildPage() { string layoutName = this.ViewReference.ContextValueForKey("LayoutName"); IConfigurationUnitStore configStore = ConfigurationUnitStore.DefaultStore; WebConfigLayout layout = configStore.WebConfigLayoutByName(layoutName); if (layout == null) { return; } EditPage page = new EditPage(StringIdentifier.IdentifierWithStringId("Configuration")); page.LabelText = LocalizedString.TextTabOverview; page.Invalid = true; this.TopLevelElement = page; int tabCount; tabCount = layout.TabCount; for (int i = 0; i < tabCount; i++) { UPGroupModelController groupModelController = UPGroupModelController.SettingsEditGroupModelController(layout, i); if (groupModelController != null) { this.GroupModelControllerArray.Add(groupModelController); } } }
/// <summary> /// Updateds the element for page. /// </summary> /// <param name="oldPage">The old page.</param> /// <returns></returns> public override UPMElement UpdatedElementForPage(Page oldPage) { EditPage editPage = new EditPage(oldPage.Identifier); this.FillPageWithResultRow(editPage, null, UPRequestOption.BestAvailable); return(editPage); }
private ITagValue[] GetNotifyTags(string pageName, string patternType, Comment comment) { var page = GetPage(pageName); if (page == null) { return(null); } var user = CoreContext.UserManager.GetUsers(SecurityContext.CurrentAccount.ID); var defPage = VirtualPathUtility.ToAbsolute(WikiManager.ViewVirtualPath); var tags = new List <ITagValue> { new TagValue(Constants.TagPageName, String.IsNullOrEmpty(page.PageName) ? WikiResource.MainWikiCaption : page.PageName), new TagValue(Constants.TagURL, CommonLinkUtility.GetFullAbsolutePath(ActionHelper.GetViewPagePath(defPage, page.PageName))), new TagValue(Constants.TagUserName, user.DisplayUserName()), new TagValue(Constants.TagUserURL, CommonLinkUtility.GetFullAbsolutePath(CommonLinkUtility.GetUserProfile(user.ID))), new TagValue(Constants.TagDate, TenantUtil.DateTimeNow()), new TagValue(Constants.TagPostPreview, HtmlUtil.GetText(EditPage.ConvertWikiToHtml(page.PageName, page.Body, defPage, WikiSection.Section.ImageHangler.UrlFormat, CoreContext.TenantManager.GetCurrentTenant().TenantId), 120)) }; if (!string.IsNullOrEmpty(patternType)) { tags.Add(new TagValue(Constants.TagChangePageType, patternType)); } if (comment != null) { tags.Add(new TagValue(Constants.TagCommentBody, comment.Body)); } return(tags.ToArray()); }
public void SearchAndEditFlow() { mp = new MainPage(driver); ap = new ArticlePage(driver); ep = new EditPage(driver); sp = new SpecialPage(driver); mp.SwitchToMainPageByUrl("Wikipedia"); mp.DoSearchByText("Dropdown"); ap.CheckingArticlePageHeader("Dropdown"); ap.ClickEditTab(); ep.RunTest(); }
public void SetUp() { driver = new ChromeDriver(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)); driver.Manage().Window.Maximize(); wait = new WebDriverWait(driver, TimeSpan.FromSeconds(10)); HomePage = new HomePage(driver); RegisterPage = new RegisterPage(driver); LogInPage = new LogInPage(driver); CreatePage = new CreatePage(driver); AccountPage = new AccountPage(driver); PasswordPage = new PasswordPage(driver); BlogPage = new BlogPage(driver); DeletePage = new DeletePage(driver); EditPage = new EditPage(driver); }
protected void btSave_Click(object sender, EventArgs e) { using (MessageBuilder valMsg = EditPage.ValidateInput()) { string err = valMsg.Message; if (!string.IsNullOrEmpty(err)) { Dialog.Error(this.Page, err); return; } } Dialog.Info(this.Page, EditPage.Save() ? "保存成功!" : "保存失败!"); }
public HomePage() { //Here i am passin dbConnectivity _notesdb = new NotesDB(); _querytable = new QueryTable(); //create button for Add Note var createButton = new Button { Text = "Add Note" }; _lstview = new ListView { }; //calling item cells _lstview.ItemTemplate = new DataTemplate(typeof(NoteItemCell)); //CREATIN EVENT _lstview.ItemSelected += async(sender, e) => { if (e.SelectedItem == null) { return; } var detail_item = (NotesDB)e.SelectedItem; var detail_page = new EditPage(); detail_page.BindingContext = detail_item; await Navigation.PushAsync(detail_page); ((ListView)sender).SelectedItem = null; //using for clear selected bg }; //Add button event createButton.Clicked += (object sender, EventArgs e) => { Navigation.PushAsync(new CreatePage()); }; //LAYOUT var mainLayout = new StackLayout { }; mainLayout.Children.Add(createButton); mainLayout.Children.Add(_lstview); Content = mainLayout; }
public void Test_EditEvent_ValidData() { // Create an event for editing string eventName = "Best Show" + DateTime.Now.Ticks; this.CreateEvent(eventName); // Assert user is redirected to the "All Events" page var allEventsPage = new AllEventsPage(driver); Assert.IsTrue(allEventsPage.IsOpen(baseUrl)); // Get the row with the new event var eventRowText = allEventsPage.GetEventRow(eventName); Assert.That(eventRowText.Contains(eventName)); // Click on the "Edit" button of the new event allEventsPage.PressEventEditButton(eventName); // Assert the user is redirected to the "Edit Event" page var editPage = new EditPage(driver); Assert.IsTrue(editPage.IsOpen(baseUrl)); Assert.AreEqual("Edit Event - Eventures App", editPage.GetPageTitle()); Assert.AreEqual("Edit Event", editPage.GetPageHeadingText()); Assert.IsTrue(editPage.Contains(eventName)); // Change the name of the event var changedName = "Best Best Show" + DateTime.Now.Ticks; editPage.EditEventName(changedName); // Assert the user is redirected to the "All Events" page Assert.IsTrue(allEventsPage.IsOpen(baseUrl)); // Assert that the page contains the new event name and not the old one Assert.IsTrue(allEventsPage.Contains(changedName)); Assert.IsFalse(allEventsPage.Contains(eventName)); }
public void DeviceManager_EditDevice_Open(DeviceDescription device) { string title = "Edit Device"; if (device.Description != null) { if (device.Description.Description != null) { title += " - " + device.Description.Description; } if (device.Description.DeviceId != null) { title += " (" + device.Description.DeviceId + ")"; } } string tag = device.UniqueId; var tab = FindTab(title, tag); if (tab == null) { var page = new EditPage(CurrentUser, device.UniqueId); ImageSource img = null; if (page.Image != null) { img = new BitmapImage(page.Image); } page.DeviceListSelected += DeviceManager_EditDevice_DeviceListSelected; AddTab(page, title, img, tag); } else { SelectTab(tab); } }
public void Test_EditEvent_InvalidData() { // Create an event for editing string eventName = "Best Show" + DateTime.Now.Ticks; this.CreateEvent(eventName); // Assert user is redirected to the "All Events" page var allEventsPage = new AllEventsPage(driver); Assert.IsTrue(allEventsPage.IsOpen(baseUrl)); // Get the row with the new event var eventRowText = allEventsPage.GetEventRow(eventName); Assert.That(eventRowText.Contains("Edit")); // Click on the "Edit" button of the new event allEventsPage.PressEventEditButton(eventName); // Assert the user is redirected to the "Edit Event" page var editPage = new EditPage(driver); Assert.IsTrue(editPage.IsOpen(baseUrl)); Assert.AreEqual("Edit Event - Eventures App", editPage.GetPageTitle()); Assert.AreEqual("Edit Event", editPage.GetPageHeadingText()); Assert.IsTrue(editPage.Contains(eventName)); // Change the name of the event with an invalid one var invalidName = string.Empty; editPage.EditEventName(invalidName); // Assert the user is on the same page Assert.IsTrue(editPage.IsOpen(baseUrl)); // Assert an error message appears on the page Assert.AreEqual("The Name field is required.", editPage.GetNameError()); }
private void AppSectionChangedHandler(EditPage section) { UpdateVisibility(section); }
public string CreateImageFromWiki(string pageName, string wikiValue, string appRelativeCurrentExecutionFilePath, string imageHandlerUrl) { return(EditPage.CreateImageFromWiki(pageName, wikiValue, appRelativeCurrentExecutionFilePath, imageHandlerUrl, TenantId)); }
public string ConvertWikiToHtmlWysiwyg(string pageName, string wikiValue, string appRelativeCurrentExecutionFilePath, string imageHandlerUrl) { return(EditPage.ConvertWikiToHtmlWysiwyg(pageName, wikiValue, appRelativeCurrentExecutionFilePath, imageHandlerUrl, TenantId)); }
public ActionResult edit() { try { dynamic id = null, keys = XVar.Array(), pageMode = null, pageObject = null, var_params = XVar.Array(); XTempl xt; dbo_acceso_uggroups_Variables.Apply(); CommonFunctions.add_nocache_headers(); if (XVar.Pack(!(XVar)(EditPage.processEditPageSecurity((XVar)(GlobalVars.strTableName))))) { return(MVCFunctions.GetBuferContentAndClearBufer()); } EditPage.handleBrokenRequest(); { TLayout t_layout = null; t_layout = new TLayout(new XVar("edit_bootstrap"), new XVar("OfficeOffice"), new XVar("MobileOffice")); t_layout.version = 3; t_layout.bootstrapTheme = "default"; t_layout.customCssPageName = "dbo_acceso_uggroups_edit"; t_layout.blocks["top"] = XVar.Array(); t_layout.containers["editpage"] = XVar.Array(); t_layout.containers["editpage"].Add(new XVar("name", "wrapper", "block", "", "substyle", 1, "container", "header")); t_layout.containers["header"] = XVar.Array(); t_layout.containers["header"].Add(new XVar("name", "editheader", "block", "editheader", "substyle", 1)); t_layout.skins["header"] = ""; t_layout.containers["editpage"].Add(new XVar("name", "wrapper", "block", "", "substyle", 1, "container", "message")); t_layout.containers["message"] = XVar.Array(); t_layout.containers["message"].Add(new XVar("name", "message", "block", "message_block", "substyle", 1)); t_layout.skins["message"] = ""; t_layout.containers["editpage"].Add(new XVar("name", "wrapper", "block", "", "substyle", 1, "container", "steps")); t_layout.containers["steps"] = XVar.Array(); t_layout.containers["steps"].Add(new XVar("name", "multistep_nav_edit", "block", "", "substyle", 1)); t_layout.skins["steps"] = ""; t_layout.skins["editpage"] = ""; t_layout.blocks["top"].Add("editpage"); t_layout.containers["fields"] = XVar.Array(); t_layout.containers["fields"].Add(new XVar("name", "editfields", "block", "", "substyle", 1)); t_layout.skins["fields"] = ""; t_layout.blocks["top"].Add("fields"); t_layout.containers["bottombuttons"] = XVar.Array(); t_layout.containers["bottombuttons"].Add(new XVar("name", "wrapper", "block", "", "substyle", 1, "container", "buttons")); t_layout.containers["buttons"] = XVar.Array(); t_layout.containers["buttons"].Add(new XVar("name", "wrapper", "block", "", "substyle", 1, "container", "leftbuttons")); t_layout.containers["leftbuttons"] = XVar.Array(); t_layout.containers["leftbuttons"].Add(new XVar("name", "editbuttons", "block", "editbuttons", "substyle", 1)); t_layout.skins["leftbuttons"] = ""; t_layout.containers["buttons"].Add(new XVar("name", "wrapper", "block", "", "substyle", 1, "container", "leftbuttons_1")); t_layout.containers["leftbuttons_1"] = XVar.Array(); t_layout.containers["leftbuttons_1"].Add(new XVar("name", "righteditbuttons", "block", "righteditbuttons", "substyle", 1)); t_layout.skins["leftbuttons_1"] = ""; t_layout.skins["buttons"] = ""; t_layout.skins["bottombuttons"] = ""; t_layout.blocks["top"].Add("bottombuttons"); GlobalVars.page_layouts["dbo_acceso_uggroups_edit"] = t_layout; } { TLayout t_layout = null; t_layout = new TLayout(new XVar("list_bootstrap1"), new XVar("OfficeOffice"), new XVar("MobileOffice")); t_layout.version = 3; t_layout.bootstrapTheme = "default"; t_layout.customCssPageName = "dbo_acceso_uggroups_list"; t_layout.blocks["center"] = XVar.Array(); t_layout.containers["gridcontrols"] = XVar.Array(); t_layout.containers["gridcontrols"].Add(new XVar("name", "wrapper", "block", "", "substyle", 1, "container", "add_delete")); t_layout.containers["add_delete"] = XVar.Array(); t_layout.containers["add_delete"].Add(new XVar("name", "add", "block", "newrecord_controls_block", "substyle", 1)); t_layout.containers["add_delete"].Add(new XVar("name", "recordcontrol", "block", "record_controls_block", "substyle", 1)); t_layout.skins["add_delete"] = ""; t_layout.containers["gridcontrols"].Add(new XVar("name", "wrapper", "block", "", "substyle", 1, "container", "gridinfo")); t_layout.containers["gridinfo"] = XVar.Array(); t_layout.containers["gridinfo"].Add(new XVar("name", "details_found", "block", "details_found", "substyle", 1)); t_layout.containers["gridinfo"].Add(new XVar("name", "printpanel", "block", "print_friendly", "substyle", 1)); t_layout.containers["gridinfo"].Add(new XVar("name", "bsfieldhidepanel", "block", "field_hide_panel", "substyle", 1)); t_layout.skins["gridinfo"] = ""; t_layout.containers["gridcontrols"].Add(new XVar("name", "wrapper", "block", "", "substyle", 1, "container", "gridinfo_sort")); t_layout.containers["gridinfo_sort"] = XVar.Array(); t_layout.containers["gridinfo_sort"].Add(new XVar("name", "reorder_records", "block", "reorder_records", "substyle", 1)); t_layout.skins["gridinfo_sort"] = ""; t_layout.skins["gridcontrols"] = ""; t_layout.blocks["center"].Add("gridcontrols"); t_layout.containers["tabs"] = XVar.Array(); t_layout.containers["tabs"].Add(new XVar("name", "bsgrid_tabs", "block", "grid_tabs", "substyle", 1)); t_layout.skins["tabs"] = ""; t_layout.blocks["center"].Add("tabs"); t_layout.containers["messagerow"] = XVar.Array(); t_layout.containers["messagerow"].Add(new XVar("name", "wrapper", "block", "", "substyle", 1, "container", "message")); t_layout.containers["message"] = XVar.Array(); t_layout.containers["message"].Add(new XVar("name", "message", "block", "message_block", "substyle", 1)); t_layout.skins["message"] = ""; t_layout.skins["messagerow"] = ""; t_layout.blocks["center"].Add("messagerow"); t_layout.containers["center"] = XVar.Array(); t_layout.containers["center"].Add(new XVar("name", "wrapper", "block", "", "substyle", 1, "container", "grid")); t_layout.containers["grid"] = XVar.Array(); t_layout.containers["grid"].Add(new XVar("name", "grid", "block", "grid_block", "substyle", 1)); t_layout.skins["grid"] = ""; t_layout.skins["center"] = ""; t_layout.blocks["center"].Add("center"); t_layout.containers["pagination"] = XVar.Array(); t_layout.containers["pagination"].Add(new XVar("name", "pagination", "block", "pagination_block", "substyle", 1)); t_layout.skins["pagination"] = ""; t_layout.blocks["center"].Add("pagination"); t_layout.blocks["left"] = XVar.Array(); t_layout.containers["left"] = XVar.Array(); t_layout.containers["left"].Add(new XVar("name", "searchpanel", "block", "searchPanel", "substyle", 1)); t_layout.containers["left"].Add(new XVar("name", "filterpanel", "block", "filterPanel", "substyle", 1)); t_layout.skins["left"] = ""; t_layout.blocks["left"].Add("left"); t_layout.blocks["top"] = XVar.Array(); t_layout.containers["menu"] = XVar.Array(); t_layout.containers["menu"].Add(new XVar("name", "wrapper", "block", "", "substyle", 1, "container", "hdr")); t_layout.containers["hdr"] = XVar.Array(); t_layout.containers["hdr"].Add(new XVar("name", "logo", "block", "logo_block", "substyle", 1)); t_layout.containers["hdr"].Add(new XVar("name", "bsnavbarcollapse", "block", "collapse_block", "substyle", 1)); t_layout.skins["hdr"] = ""; t_layout.containers["menu"].Add(new XVar("name", "wrapper", "block", "", "substyle", 1, "container", "menu_1")); t_layout.containers["menu_1"] = XVar.Array(); t_layout.containers["menu_1"].Add(new XVar("name", "hmenu", "block", "menu_block", "substyle", 1)); t_layout.containers["menu_1"].Add(new XVar("name", "wrapper", "block", "", "substyle", 1, "container", "more")); t_layout.containers["more"] = XVar.Array(); t_layout.containers["more"].Add(new XVar("name", "morebutton", "block", "more_list", "substyle", 1)); t_layout.containers["more"].Add(new XVar("name", "loggedas", "block", "security_block", "substyle", 1)); t_layout.skins["more"] = ""; t_layout.containers["menu_1"].Add(new XVar("name", "wrapper", "block", "", "substyle", 1, "container", "more_1")); t_layout.containers["more_1"] = XVar.Array(); t_layout.containers["more_1"].Add(new XVar("name", "search", "block", "searchform_block", "substyle", 1)); t_layout.skins["more_1"] = ""; t_layout.skins["menu_1"] = ""; t_layout.skins["menu"] = ""; t_layout.blocks["top"].Add("menu"); t_layout.blocks["topmiddle"] = XVar.Array(); t_layout.containers["breadcrumbs"] = XVar.Array(); t_layout.containers["breadcrumbs"].Add(new XVar("name", "wrapper", "block", "", "substyle", 1, "container", "bc")); t_layout.containers["bc"] = XVar.Array(); t_layout.containers["bc"].Add(new XVar("name", "breadcrumbs", "block", "breadcrumbs", "substyle", 1)); t_layout.skins["bc"] = ""; t_layout.skins["breadcrumbs"] = ""; t_layout.blocks["topmiddle"].Add("breadcrumbs"); t_layout.containers["masterinfo"] = XVar.Array(); t_layout.containers["masterinfo"].Add(new XVar("name", "masterinfo", "block", "mastertable_block", "substyle", 1)); t_layout.skins["masterinfo"] = ""; t_layout.blocks["topmiddle"].Add("masterinfo"); GlobalVars.page_layouts["dbo_acceso_uggroups_list"] = t_layout; } pageMode = XVar.Clone(EditPage.readEditModeFromRequest()); xt = XVar.UnPackXTempl(new XTempl()); id = XVar.Clone(CommonFunctions.postvalue_number(new XVar("id"))); id = XVar.Clone((XVar.Pack(MVCFunctions.intval((XVar)(id)) == 0) ? XVar.Pack(1) : XVar.Pack(id))); keys = XVar.Clone(XVar.Array()); keys.InitAndSetArrayItem(MVCFunctions.postvalue(new XVar("editid1")), "GroupID"); var_params = XVar.Clone(XVar.Array()); var_params.InitAndSetArrayItem(id, "id"); var_params.InitAndSetArrayItem(xt, "xt"); var_params.InitAndSetArrayItem(keys, "keys"); var_params.InitAndSetArrayItem(pageMode, "mode"); var_params.InitAndSetArrayItem(Constants.PAGE_EDIT, "pageType"); var_params.InitAndSetArrayItem(MVCFunctions.postvalue(new XVar("page")), "pageName"); var_params.InitAndSetArrayItem(GlobalVars.strTableName, "tName"); var_params.InitAndSetArrayItem(MVCFunctions.postvalue(new XVar("a")), "action"); var_params.InitAndSetArrayItem(MVCFunctions.postvalue(new XVar("fields")), "selectedFields"); var_params.InitAndSetArrayItem("captcha_1209xre", "captchaName"); var_params.InitAndSetArrayItem(MVCFunctions.postvalue((XVar)(MVCFunctions.Concat("value_captcha_1209xre_", id))), "captchaValue"); var_params.InitAndSetArrayItem(MVCFunctions.postvalue(new XVar("selection")), "selection"); var_params.InitAndSetArrayItem(MVCFunctions.my_json_decode((XVar)(MVCFunctions.postvalue(new XVar("rowIds")))), "rowIds"); var_params.InitAndSetArrayItem(MVCFunctions.postvalue(new XVar("mastertable")), "masterTable"); var_params.InitAndSetArrayItem(MVCFunctions.postvalue(new XVar("action")), "lockingAction"); var_params.InitAndSetArrayItem(MVCFunctions.postvalue(new XVar("sid")), "lockingSid"); var_params.InitAndSetArrayItem(MVCFunctions.postvalue(new XVar("keys")), "lockingKeys"); var_params.InitAndSetArrayItem(MVCFunctions.postvalue(new XVar("startEdit")), "lockingStart"); if (pageMode == Constants.EDIT_INLINE) { var_params.InitAndSetArrayItem(MVCFunctions.postvalue(new XVar("screenWidth")), "screenWidth"); var_params.InitAndSetArrayItem(MVCFunctions.postvalue(new XVar("screenHeight")), "screenHeight"); var_params.InitAndSetArrayItem(MVCFunctions.postvalue(new XVar("orientation")), "orientation"); } if (pageMode == Constants.EDIT_DASHBOARD) { var_params.InitAndSetArrayItem(MVCFunctions.postvalue(new XVar("dashelement")), "dashElementName"); var_params.InitAndSetArrayItem(MVCFunctions.postvalue(new XVar("table")), "dashTName"); if (XVar.Pack(MVCFunctions.postvalue(new XVar("mapRefresh")))) { var_params.InitAndSetArrayItem(true, "mapRefresh"); var_params.InitAndSetArrayItem(MVCFunctions.my_json_decode((XVar)(MVCFunctions.postvalue(new XVar("vpCoordinates")))), "vpCoordinates"); } } if ((XVar)((XVar)(pageMode == Constants.EDIT_POPUP) || (XVar)(pageMode == Constants.EDIT_INLINE)) && (XVar)(MVCFunctions.postvalue(new XVar("dashTName")))) { var_params.InitAndSetArrayItem(MVCFunctions.postvalue(new XVar("dashTName")), "dashTName"); var_params.InitAndSetArrayItem(MVCFunctions.postvalue(new XVar("dashelement")), "dashElementName"); } if (XVar.Pack(var_params["masterTable"])) { var_params.InitAndSetArrayItem(EditPage.processMasterKeys(), "masterKeysReq"); } GlobalVars.pageObject = XVar.Clone(EditPage.EditPageFactory((XVar)(var_params))); if (XVar.Pack(GlobalVars.pageObject.isLockingRequest())) { GlobalVars.pageObject.doLockingAction(); MVCFunctions.Echo(new XVar("")); return(MVCFunctions.GetBuferContentAndClearBufer()); } GlobalVars.pageObject.init(); GlobalVars.pageObject.process(); ViewBag.xt = xt; return(View(xt.GetViewPath())); } catch (RunnerRedirectException ex) { return(Redirect(ex.Message)); } }
void Awake() { print(name); editPage = transform.FindChild("EditPage").GetComponent <EditPage>(); editPage.SetInstance(); }
public ActionResult edit() { try { dynamic id = null, keys = XVar.Array(), pageMode = null, pageObject = null, var_params = XVar.Array(); XTempl xt; ABC_Voting_Submitted1_Variables.Apply(); CommonFunctions.add_nocache_headers(); if (XVar.Pack(!(XVar)(EditPage.processEditPageSecurity((XVar)(GlobalVars.strTableName))))) { return(MVCFunctions.GetBuferContentAndClearBufer()); } EditPage.handleBrokenRequest(); { TLayout t_layout = null; t_layout = new TLayout(new XVar("edit2"), new XVar("AvenueAvenue"), new XVar("MobileAvenue")); t_layout.version = 2; t_layout.blocks["top"] = XVar.Array(); t_layout.containers["all"] = XVar.Array(); t_layout.containers["all"].Add(new XVar("name", "wrapper", "block", "", "substyle", 1, "container", "edit")); t_layout.containers["edit"] = XVar.Array(); t_layout.containers["edit"].Add(new XVar("name", "editheader", "block", "editheader", "substyle", 2)); t_layout.containers["edit"].Add(new XVar("name", "message", "block", "message_block", "substyle", 1)); t_layout.containers["edit"].Add(new XVar("name", "wrapper", "block", "", "substyle", 1, "container", "fields")); t_layout.containers["fields"] = XVar.Array(); t_layout.containers["fields"].Add(new XVar("name", "editfields", "block", "", "substyle", 1)); t_layout.containers["fields"].Add(new XVar("name", "editbuttons", "block", "editbuttons", "substyle", 2)); t_layout.skins["fields"] = "fields"; t_layout.skins["edit"] = "1"; t_layout.skins["all"] = "empty"; t_layout.blocks["top"].Add("all"); GlobalVars.page_layouts["ABC_Voting_Submitted1_edit"] = t_layout; t_layout.skinsparams = XVar.Array(); t_layout.skinsparams["empty"] = XVar.Array(); t_layout.skinsparams["empty"]["button"] = "button2"; t_layout.skinsparams["menu"] = XVar.Array(); t_layout.skinsparams["menu"]["button"] = "button1"; t_layout.skinsparams["hmenu"] = XVar.Array(); t_layout.skinsparams["hmenu"]["button"] = "button1"; t_layout.skinsparams["undermenu"] = XVar.Array(); t_layout.skinsparams["undermenu"]["button"] = "button1"; t_layout.skinsparams["fields"] = XVar.Array(); t_layout.skinsparams["fields"]["button"] = "button1"; t_layout.skinsparams["form"] = XVar.Array(); t_layout.skinsparams["form"]["button"] = "button1"; t_layout.skinsparams["1"] = XVar.Array(); t_layout.skinsparams["1"]["button"] = "button1"; t_layout.skinsparams["2"] = XVar.Array(); t_layout.skinsparams["2"]["button"] = "button1"; t_layout.skinsparams["3"] = XVar.Array(); t_layout.skinsparams["3"]["button"] = "button1"; } { TLayout t_layout = null; t_layout = new TLayout(new XVar("list6"), new XVar("AvenueAvenue"), new XVar("MobileAvenue")); t_layout.version = 2; t_layout.blocks["center"] = XVar.Array(); t_layout.containers["message"] = XVar.Array(); t_layout.containers["message"].Add(new XVar("name", "message", "block", "message_block", "substyle", 1)); t_layout.skins["message"] = "2"; t_layout.blocks["center"].Add("message"); t_layout.containers["grid"] = XVar.Array(); t_layout.containers["grid"].Add(new XVar("name", "grid", "block", "grid_block", "substyle", 1)); t_layout.skins["grid"] = "grid"; t_layout.blocks["center"].Add("grid"); t_layout.containers["pagination"] = XVar.Array(); t_layout.containers["pagination"].Add(new XVar("name", "pagination", "block", "pagination_block", "substyle", 1)); t_layout.skins["pagination"] = "2"; t_layout.blocks["center"].Add("pagination"); t_layout.blocks["left"] = XVar.Array(); t_layout.containers["left"] = XVar.Array(); t_layout.containers["left"].Add(new XVar("name", "searchpanel", "block", "searchPanel", "substyle", 1)); t_layout.skins["left"] = "menu"; t_layout.blocks["left"].Add("left"); t_layout.blocks["top"] = XVar.Array(); t_layout.skins["master"] = "empty"; t_layout.blocks["top"].Add("master"); t_layout.containers["toplinks"] = XVar.Array(); t_layout.containers["toplinks"].Add(new XVar("name", "loggedas", "block", "security_block", "substyle", 1)); t_layout.containers["toplinks"].Add(new XVar("name", "toplinks_advsearch", "block", "asearch_link", "substyle", 1)); t_layout.containers["toplinks"].Add(new XVar("name", "toplinks_import", "block", "import_link", "substyle", 1)); t_layout.containers["toplinks"].Add(new XVar("name", "toplinks_export", "block", "export_link", "substyle", 1)); t_layout.containers["toplinks"].Add(new XVar("name", "printpanel", "block", "print_friendly", "substyle", 1)); t_layout.skins["toplinks"] = "2"; t_layout.blocks["top"].Add("toplinks"); t_layout.containers["hmenu"] = XVar.Array(); t_layout.containers["hmenu"].Add(new XVar("name", "hmenu", "block", "menu_block", "substyle", 1)); t_layout.skins["hmenu"] = "hmenu"; t_layout.blocks["top"].Add("hmenu"); t_layout.containers["search"] = XVar.Array(); t_layout.containers["search"].Add(new XVar("name", "search", "block", "searchform_block", "substyle", 1)); t_layout.containers["search"].Add(new XVar("name", "search_buttons", "block", "searchformbuttons_block", "substyle", 1)); t_layout.containers["search"].Add(new XVar("name", "search_saving_buttons", "block", "searchsaving_block", "substyle", 1)); t_layout.containers["search"].Add(new XVar("name", "details_found", "block", "details_block", "substyle", 1)); t_layout.containers["search"].Add(new XVar("name", "page_of", "block", "pages_block", "substyle", 1)); t_layout.containers["search"].Add(new XVar("name", "recsperpage", "block", "recordspp_block", "substyle", 1)); t_layout.skins["search"] = "1"; t_layout.blocks["top"].Add("search"); t_layout.containers["recordcontrols"] = XVar.Array(); t_layout.containers["recordcontrols"].Add(new XVar("name", "recordcontrols_new", "block", "newrecord_controls_block", "substyle", 1)); t_layout.containers["recordcontrols"].Add(new XVar("name", "recordcontrol", "block", "record_controls_block", "substyle", 1)); t_layout.skins["recordcontrols"] = "2"; t_layout.blocks["top"].Add("recordcontrols"); GlobalVars.page_layouts["ABC_Voting_Submitted1_list"] = t_layout; t_layout.skinsparams = XVar.Array(); t_layout.skinsparams["empty"] = XVar.Array(); t_layout.skinsparams["empty"]["button"] = "button2"; t_layout.skinsparams["menu"] = XVar.Array(); t_layout.skinsparams["menu"]["button"] = "button1"; t_layout.skinsparams["hmenu"] = XVar.Array(); t_layout.skinsparams["hmenu"]["button"] = "button1"; t_layout.skinsparams["undermenu"] = XVar.Array(); t_layout.skinsparams["undermenu"]["button"] = "button1"; t_layout.skinsparams["fields"] = XVar.Array(); t_layout.skinsparams["fields"]["button"] = "button1"; t_layout.skinsparams["form"] = XVar.Array(); t_layout.skinsparams["form"]["button"] = "button1"; t_layout.skinsparams["1"] = XVar.Array(); t_layout.skinsparams["1"]["button"] = "button1"; t_layout.skinsparams["2"] = XVar.Array(); t_layout.skinsparams["2"]["button"] = "button1"; t_layout.skinsparams["3"] = XVar.Array(); t_layout.skinsparams["3"]["button"] = "button1"; } pageMode = XVar.Clone(EditPage.readEditModeFromRequest()); xt = XVar.UnPackXTempl(new XTempl()); id = XVar.Clone(MVCFunctions.postvalue(new XVar("id"))); id = XVar.Clone((XVar.Pack(MVCFunctions.intval((XVar)(id)) == 0) ? XVar.Pack(1) : XVar.Pack(id))); keys = XVar.Clone(XVar.Array()); keys.InitAndSetArrayItem(MVCFunctions.postvalue(new XVar("editid1")), "id"); keys.InitAndSetArrayItem(MVCFunctions.postvalue(new XVar("editid2")), "record"); var_params = XVar.Clone(XVar.Array()); var_params.InitAndSetArrayItem(id, "id"); var_params.InitAndSetArrayItem(xt, "xt"); var_params.InitAndSetArrayItem(keys, "keys"); var_params.InitAndSetArrayItem(pageMode, "mode"); var_params.InitAndSetArrayItem(Constants.PAGE_EDIT, "pageType"); var_params.InitAndSetArrayItem(GlobalVars.strTableName, "tName"); var_params.InitAndSetArrayItem(MVCFunctions.postvalue(new XVar("a")), "action"); var_params.InitAndSetArrayItem(MVCFunctions.postvalue(new XVar("fields")), "selectedFields"); var_params.InitAndSetArrayItem(MVCFunctions.postvalue((XVar)(MVCFunctions.Concat("value_captcha_", id))), "captchaValue"); var_params.InitAndSetArrayItem(MVCFunctions.postvalue(new XVar("selection")), "selection"); var_params.InitAndSetArrayItem(MVCFunctions.my_json_decode((XVar)(MVCFunctions.postvalue(new XVar("rowIds")))), "rowIds"); var_params.InitAndSetArrayItem(MVCFunctions.postvalue(new XVar("mastertable")), "masterTable"); var_params.InitAndSetArrayItem(MVCFunctions.postvalue(new XVar("action")), "lockingAction"); var_params.InitAndSetArrayItem(MVCFunctions.postvalue(new XVar("sid")), "lockingSid"); var_params.InitAndSetArrayItem(MVCFunctions.postvalue(new XVar("keys")), "lockingKeys"); var_params.InitAndSetArrayItem(MVCFunctions.postvalue(new XVar("startEdit")), "lockingStart"); if (pageMode == Constants.EDIT_INLINE) { var_params.InitAndSetArrayItem(MVCFunctions.postvalue(new XVar("screenWidth")), "screenWidth"); var_params.InitAndSetArrayItem(MVCFunctions.postvalue(new XVar("screenHeight")), "screenHeight"); var_params.InitAndSetArrayItem(MVCFunctions.postvalue(new XVar("orientation")), "orientation"); } if (pageMode == Constants.EDIT_DASHBOARD) { var_params.InitAndSetArrayItem(MVCFunctions.postvalue(new XVar("dashelement")), "dashElementName"); var_params.InitAndSetArrayItem(MVCFunctions.postvalue(new XVar("table")), "dashTName"); if (XVar.Pack(MVCFunctions.postvalue(new XVar("mapRefresh")))) { var_params.InitAndSetArrayItem(true, "mapRefresh"); var_params.InitAndSetArrayItem(MVCFunctions.my_json_decode((XVar)(MVCFunctions.postvalue(new XVar("vpCoordinates")))), "vpCoordinates"); } } if ((XVar)((XVar)(pageMode == Constants.EDIT_POPUP) || (XVar)(pageMode == Constants.EDIT_INLINE)) && (XVar)(MVCFunctions.postvalue(new XVar("dashTName")))) { var_params.InitAndSetArrayItem(MVCFunctions.postvalue(new XVar("dashTName")), "dashTName"); var_params.InitAndSetArrayItem(MVCFunctions.postvalue(new XVar("dashelement")), "dashElementName"); } if (XVar.Pack(var_params["masterTable"])) { var_params.InitAndSetArrayItem(EditPage.processMasterKeys(), "masterKeysReq"); } GlobalVars.pageObject = XVar.Clone(EditPage.EditPageFactory((XVar)(var_params))); if (XVar.Pack(GlobalVars.pageObject.isLockingRequest())) { GlobalVars.pageObject.doLockingAction(); MVCFunctions.Echo(new XVar("")); return(MVCFunctions.GetBuferContentAndClearBufer()); } GlobalVars.pageObject.init(); GlobalVars.pageObject.process(); ViewBag.xt = xt; return(View(xt.GetViewPath())); } catch (RunnerRedirectException ex) { return(Redirect(ex.Message)); } }
private async void ListView_ItemTapped(object sender, ItemTappedEventArgs e) { var item = e.Item as ItemModel; var editPage = new EditPage(item); await Navigation.PushAsync(editPage); }
public void ThenTheArticleSInformationShouldBeMyUpdatedName() { EditPage editPage = new EditPage(Driver); editPage.Assert_Edit(); }
public void WhenIPressTheEditButtonOnTheFirstArticleUpdateTheInformationOfThisArticle() { EditPage editPage = new EditPage(Driver); editPage.CheckIfThereIsArticle(); }
public MainMenuDataProvider(EditPage type) { Type = type; Label = type.ToString(); }
public void SetInstance() { instance = this; //자아라는 것을 알게 됨 gameObject.SetActive(false); // true : 게임을 열고 있음. }
private void UpdateVisibility(EditPage section) { gameObject.SetActive(section == Page); }