private void btnUpdateStatus_ServerClick(object sender, EventArgs e) { int StatusId = int.Parse(ddStatus.SelectedValue); Document2.UpdateStatus(DocumentID, StatusId); Response.Redirect(GetLink()); }
/// <summary> /// Example #7. /// Delete the file we uploaded from Example #1. /// </summary> public static void Example7() { Console.WriteLine("Example #7 - Delete the second file we uploaded."); Console.Write(" Deleting... "); try { var deleted = Document2.Delete(); if (deleted) { Console.WriteLine("success :)"); Console.WriteLine(" File was deleted."); } else { Console.WriteLine("failed :("); } } catch (BoxViewException e) { Console.WriteLine("failed :("); Console.WriteLine(" Error Code: " + e.Code); Console.WriteLine(" Error Message: " + e.Message); } Console.WriteLine(); }
IQueryOver <Document2> GetDocument2Query(IUnitOfWork u) { DocumentJournalNode resultAlias = null; Document2 Document2Alias = null; return(u.Session.QueryOver <Document2>(() => Document2Alias) .SelectList(list => list .Select(() => Document2Alias.Id).WithAlias(() => resultAlias.Id) .Select(() => Document2Alias.Date).WithAlias(() => resultAlias.Date) ) .OrderBy(x => x.Date).Desc .TransformUsing(Transformers.AliasToBean <DocumentJournalNode <Document2> >())); }
private void btnSave_ServerClick(object sender, EventArgs e) { ArrayList categories = new ArrayList(); ArrayList incidentCategories = new ArrayList(); CollectSelectedValues(grdCategories, categories); Document2.SetGeneralCategories(DocumentId, categories); Page.ClientScript.RegisterStartupScript(this.GetType(), Guid.NewGuid().ToString(), "try {window.opener.top.frames['right'].location.href='../Documents/DocumentView.aspx?DocumentId=" + DocumentId + "';}" + "catch (e){} window.close();", true); }
protected void btnSave_Click(object sender, System.EventArgs e) { SynchronizeDT(); DataTable dt = (DataTable)ViewState["Participants"]; Document2.UpdateResources(DocumentID, dt); Util.CommonHelper.ReloadTopFrame("ActiveWork.ascx", "../Documents/DocumentView.aspx?DocumentId=" + DocumentID, Response); if (Request["closeFramePopup"] != null) { CommandParameters cp = new CommandParameters("MC_DM_DocRes"); Mediachase.Ibn.Web.UI.WebControls.CommandHandler.RegisterCloseOpenedFrameScript(this.Page, cp.ToString()); } }
private void btnUpdateTTStatus_ServerClick(object sender, EventArgs e) { if (!Page.IsValid) { return; } string Hours = String.Format("{0:H:mm}", dtcTimesheetHours2.Value); if (Hours == "") { Hours = "0:00"; } string[] parts = Hours.Split(':'); int Minutes = 0; Minutes = int.Parse(parts[0]) * 60; if (parts.Length > 1) { Minutes += int.Parse(parts[1]); } if (Minutes > 0 && !TimeTracking.CanUpdate(dtc2.SelectedDate, Document.GetProject(DocumentID))) { cvHours2.ErrorMessage = LocRM2.GetString("tWrongDate"); cvHours2.IsValid = false; return; } Document.AddTimeSheet(DocumentID, Minutes, dtc2.SelectedDate); int StatusId = int.Parse(ddStatus2.SelectedValue); Document2.UpdateStatus(DocumentID, StatusId); Response.Redirect(GetLink()); }
protected void btnSend_Click(object sender, EventArgs e) { ArrayList res = new ArrayList(); ArrayList resAdmin = new ArrayList(); #region MakeUsers int iId1 = MakeUser(txtFirstName1.Text, txtLastName1.Text, txtEMail1.Text, cbAdmin1.Checked); if (iId1 > 0) { if (cbAdmin1.Checked) { resAdmin.Add(iId1); } res.Add(iId1); } int iId2 = MakeUser(txtFirstName2.Text, txtLastName2.Text, txtEMail2.Text, cbAdmin2.Checked); if (iId2 > 0) { if (cbAdmin2.Checked) { resAdmin.Add(iId2); } res.Add(iId2); } int iId3 = MakeUser(txtFirstName3.Text, txtLastName3.Text, txtEMail3.Text, cbAdmin3.Checked); if (iId3 > 0) { if (cbAdmin3.Checked) { resAdmin.Add(iId3); } res.Add(iId3); } int iId4 = MakeUser(txtFirstName4.Text, txtLastName4.Text, txtEMail4.Text, cbAdmin4.Checked); if (iId4 > 0) { if (cbAdmin4.Checked) { resAdmin.Add(iId4); } res.Add(iId4); } res.Add(Security.CurrentUser.UserID); if (Security.IsUserInGroup(InternalSecureGroups.Administrator)) { resAdmin.Add(Security.CurrentUser.UserID); } #endregion #region MakeObjects if (cbAdd.Checked) { //1. string data0 = string.Format("[InternetShortcut]\r\nURL={0}", GlobalResourceManager.Strings["QuickHelpLink"]); MemoryStream memStream0 = new MemoryStream(); StreamWriter writer0 = new StreamWriter(memStream0, Encoding.Unicode); writer0.Write(data0); writer0.Flush(); memStream0.Seek(0, SeekOrigin.Begin); string title0 = String.Format("Справочник по работе с {0}", IbnConst.ProductFamilyShort); string html_filename0 = Mediachase.UI.Web.Util.CommonHelper.GetHtmlFileTitle(title0); if (html_filename0.IndexOf(".url") < 0) { html_filename0 += ".url"; } PrimaryKeyId org_id = PrimaryKeyId.Empty; PrimaryKeyId contact_id = PrimaryKeyId.Empty; Common.GetDefaultClient(PortalConfig.ToDoDefaultValueClientField, out contact_id, out org_id); ToDo.Create(-1, Security.CurrentUser.UserID, String.Format("Ознакомиться со Справочником по работе с {0}", IbnConst.ProductFamilyShort), "", DateTime.Now, DateTime.MinValue, int.Parse(PortalConfig.ToDoDefaultValuePriorityField), int.Parse(PortalConfig.ToDoDefaultValueActivationTypeField), int.Parse(PortalConfig.ToDoDefaultValueCompetionTypeField), bool.Parse(PortalConfig.ToDoDefaultValueMustConfirmField), int.Parse(PortalConfig.ToDoDefaultValueTaskTimeField), Common.StringToArrayList(PortalConfig.ToDoDefaultValueGeneralCategoriesField), html_filename0, memStream0, res, contact_id, org_id); //2. if (resAdmin.Count > 0) { string data = string.Format("[InternetShortcut]\r\nURL={0}", "http://friends.pmbox.ru/media/p/5422.aspx"); MemoryStream memStream = new MemoryStream(); StreamWriter writer = new StreamWriter(memStream, Encoding.Unicode); writer.Write(data); writer.Flush(); memStream.Seek(0, SeekOrigin.Begin); string title = String.Format("Администрирование {0}", IbnConst.ProductName); string html_filename = Mediachase.UI.Web.Util.CommonHelper.GetHtmlFileTitle(title); if (html_filename.IndexOf(".url") < 0) { html_filename += ".url"; } ToDo.Create(-1, Security.CurrentUser.UserID, "Прочитать про администрирование портала", "", DateTime.Now, DateTime.MinValue, int.Parse(PortalConfig.ToDoDefaultValuePriorityField), int.Parse(PortalConfig.ToDoDefaultValueActivationTypeField), int.Parse(PortalConfig.ToDoDefaultValueCompetionTypeField), bool.Parse(PortalConfig.ToDoDefaultValueMustConfirmField), int.Parse(PortalConfig.ToDoDefaultValueTaskTimeField), Common.StringToArrayList(PortalConfig.ToDoDefaultValueGeneralCategoriesField), html_filename, memStream, resAdmin, contact_id, org_id); } //3. string data1 = string.Format("[InternetShortcut]\r\nURL={0}", "http://friends.pmbox.ru/files/folders/ibn/entry2685.aspx"); MemoryStream memStream1 = new MemoryStream(); StreamWriter writer1 = new StreamWriter(memStream1, Encoding.Unicode); writer1.Write(data1); writer1.Flush(); memStream1.Seek(0, SeekOrigin.Begin); string title1 = String.Format("Что нового в {0} {1}", IbnConst.ProductFamilyShort, IbnConst.VersionMajorDotMinor); string html_filename1 = Mediachase.UI.Web.Util.CommonHelper.GetHtmlFileTitle(title1); if (html_filename1.IndexOf(".url") < 0) { html_filename1 += ".url"; } ToDo.Create(-1, Security.CurrentUser.UserID, String.Format("Ознакомиться с документом Что нового в {0} {1}", IbnConst.ProductFamilyShort, IbnConst.VersionMajorDotMinor), "", DateTime.Now, DateTime.MinValue, int.Parse(PortalConfig.ToDoDefaultValuePriorityField), int.Parse(PortalConfig.ToDoDefaultValueActivationTypeField), int.Parse(PortalConfig.ToDoDefaultValueCompetionTypeField), bool.Parse(PortalConfig.ToDoDefaultValueMustConfirmField), int.Parse(PortalConfig.ToDoDefaultValueTaskTimeField), Common.StringToArrayList(PortalConfig.ToDoDefaultValueGeneralCategoriesField), html_filename1, memStream1, res, contact_id, org_id); //4. if (resAdmin.Count > 0) { string data2 = string.Format("[InternetShortcut]\r\nURL={0}", "http://friends.pmbox.ru/wikis/docs/help-desk-ibn.aspx"); MemoryStream memStream2 = new MemoryStream(); StreamWriter writer2 = new StreamWriter(memStream2, Encoding.Unicode); writer2.Write(data2); writer2.Flush(); memStream2.Seek(0, SeekOrigin.Begin); string title2 = String.Format("Как настроить работу Help Desk в {0} {1}", IbnConst.ProductFamilyShort, IbnConst.VersionMajorDotMinor); string html_filename2 = Mediachase.UI.Web.Util.CommonHelper.GetHtmlFileTitle(title2); if (html_filename2.IndexOf(".url") < 0) { html_filename2 += ".url"; } ToDo.Create(-1, Security.CurrentUser.UserID, "Прочитать про настройку Help Desk", "", DateTime.Now, DateTime.MinValue, int.Parse(PortalConfig.ToDoDefaultValuePriorityField), int.Parse(PortalConfig.ToDoDefaultValueActivationTypeField), int.Parse(PortalConfig.ToDoDefaultValueCompetionTypeField), bool.Parse(PortalConfig.ToDoDefaultValueMustConfirmField), int.Parse(PortalConfig.ToDoDefaultValueTaskTimeField), Common.StringToArrayList(PortalConfig.ToDoDefaultValueGeneralCategoriesField), html_filename2, memStream2, resAdmin, contact_id, org_id); } DataTable dt = new DataTable(); dt.Columns.Add(new DataColumn("PrincipalId", typeof(int))); dt.Columns.Add(new DataColumn("IsNew", typeof(bool))); dt.Columns.Add(new DataColumn("ResponsePending", typeof(bool))); dt.Columns.Add(new DataColumn("MustBeConfirmed", typeof(bool))); dt.Columns.Add(new DataColumn("CanManage", typeof(bool))); foreach (int usId in res) { DataRow row = dt.NewRow(); row["PrincipalId"] = usId; row["IsNew"] = true; row["ResponsePending"] = true; row["MustBeConfirmed"] = false; row["CanManage"] = (usId == Security.CurrentUser.UserID); dt.Rows.Add(row); } if (Configuration.HelpDeskEnabled) { //5. int IssId = Incident.Create("Демо инцидент", "", int.Parse(PortalConfig.IncidentDefaultValueTypeField), int.Parse(PortalConfig.IncidentDefaultValuePriorityField), int.Parse(PortalConfig.IncidentDefaultValueSeverityField), Security.CurrentUser.UserID, DateTime.UtcNow); Issue2.UpdateQuickTracking(IssId, "", (int)ObjectStates.Active, -1, -1, true, dt, false); } //6. org_id = PrimaryKeyId.Empty; contact_id = PrimaryKeyId.Empty; Common.GetDefaultClient(PortalConfig.CEntryDefaultValueClientField, out contact_id, out org_id); CalendarEntry.Create("Демо мероприятие", "", "", -1, Security.CurrentUser.UserID, int.Parse(PortalConfig.CEntryDefaultValuePriorityField), (int)CalendarEntry.EventType.Event, DateTime.Today.AddDays(1).AddHours(10), DateTime.Today.AddDays(1).AddHours(11), Mediachase.IBN.Business.Common.StringToArrayList(PortalConfig.CEntryDefaultValueGeneralCategoriesField), null, null, res, contact_id, org_id); //7. org_id = PrimaryKeyId.Empty; contact_id = PrimaryKeyId.Empty; Common.GetDefaultClient(PortalConfig.DocumentDefaultValueClientField, out contact_id, out org_id); int docId = Document.Create(String.Format("Подготовить регламент по работе с {0}", IbnConst.ProductFamilyShort), "", -1, int.Parse(PortalConfig.DocumentDefaultValuePriorityField), Security.CurrentUser.UserID, 1, int.Parse(PortalConfig.DocumentDefaultValueTaskTimeField), contact_id, org_id); Document2.UpdateResources(docId, dt); Document.ActivateDocument(docId); } #endregion PortalConfig.PortalShowAdminWizard = false; Page.ClientScript.RegisterStartupScript(this.GetType(), Guid.NewGuid().ToString(), "window.top.location.href='" + ResolveClientUrl("~/Apps/Shell/Pages/default.aspx") + "';", true); }
/// <inheritdoc/> public override IDock CreateLayout() { // Documents var document1 = new Document1 { Id = "Document1", Width = double.NaN, Height = double.NaN, Title = "Document1" }; var document2 = new Document2 { Id = "Document2", Width = double.NaN, Height = double.NaN, Title = "Document2" }; var document3 = new Document3 { Id = "Document3", Width = double.NaN, Height = double.NaN, Title = "Document3" }; // Left / Top var leftTopTool1 = new LeftTopTool1 { Id = "LeftTop1", Width = double.NaN, Height = double.NaN, Title = "LeftTop1" }; var leftTopTool2 = new LeftTopTool2 { Id = "LeftTop2", Width = 200, Height = 200, Title = "LeftTop2" }; var leftTopTool3 = new LeftTopTool3 { Id = "LeftTop3", Width = double.NaN, Height = double.NaN, Title = "LeftTop3" }; // Left / Bottom var leftBottomTool1 = new LeftBottomTool1 { Id = "LeftBottom1", Width = double.NaN, Height = double.NaN, Title = "LeftBottom1" }; var leftBottomTool2 = new LeftBottomTool2 { Id = "LeftBottom2", Width = double.NaN, Height = double.NaN, Title = "LeftBottom2" }; var leftBottomTool3 = new LeftBottomTool3 { Id = "LeftBottom3", Width = double.NaN, Height = double.NaN, Title = "LeftBottom3" }; // Right / Top var rightTopTool1 = new RightTopTool1 { Id = "RightTop1", Width = double.NaN, Height = double.NaN, Title = "RightTop1" }; var rightTopTool2 = new RightTopTool2 { Id = "RightTop2", Width = double.NaN, Height = double.NaN, Title = "RightTop2" }; var rightTopTool3 = new RightTopTool3 { Id = "RightTop3", Width = double.NaN, Height = double.NaN, Title = "RightTop3" }; // Right / Bottom var rightBottomTool1 = new RightBottomTool1 { Id = "RightBottom1", Width = double.NaN, Height = double.NaN, Title = "RightBottom1" }; var rightBottomTool2 = new RightBottomTool2 { Id = "RightBottom2", Width = double.NaN, Height = double.NaN, Title = "RightBottom2" }; var rightBottomTool3 = new RightBottomTool3 { Id = "RightBottom3", Width = double.NaN, Height = double.NaN, Title = "RightBottom3" }; // Left Pane var leftPane = new LayoutDock { Id = "LeftPane", Dock = "Left", Width = 200, Height = double.NaN, Title = "LeftPane", CurrentView = null, Views = CreateList <IView> ( new ToolDock { Id = "LeftPaneTop", Dock = "Top", Width = double.NaN, Height = 340, Title = "LeftPaneTop", CurrentView = leftTopTool1, Views = CreateList <IView> ( leftTopTool1, leftTopTool2, leftTopTool3 ) }, new SplitterDock() { Id = "LeftPaneTopSplitter", Dock = "Top", Title = "LeftPaneTopSplitter" }, new ToolDock { Id = "LeftPaneBottom", Dock = "Bottom", Width = double.NaN, Height = double.NaN, Title = "LeftPaneBottom", CurrentView = leftBottomTool1, Views = CreateList <IView> ( leftBottomTool1, leftBottomTool2, leftBottomTool3 ) } ) }; // Right Pane var rightPane = new LayoutDock { Id = "RightPane", Dock = "Right", Width = 240, Height = double.NaN, Title = "RightPane", CurrentView = null, Views = CreateList <IView> ( new ToolDock { Id = "RightPaneTop", Dock = "Top", Width = double.NaN, Height = 340, Title = "RightPaneTop", CurrentView = rightTopTool1, Views = CreateList <IView> ( rightTopTool1, rightTopTool2, rightTopTool3 ) }, new SplitterDock() { Id = "RightPaneTopSplitter", Dock = "Top", Title = "RightPaneTopSplitter" }, new ToolDock { Id = "RightPaneBottom", Dock = "Bottom", Width = double.NaN, Height = double.NaN, Title = "RightPaneBottom", CurrentView = rightBottomTool1, Views = CreateList <IView> ( rightBottomTool1, rightBottomTool2, rightBottomTool3 ) } ) }; // Documents var documentsPane = new DocumentDock { Id = "DocumentsPane", Dock = "", Width = double.NaN, Height = double.NaN, Title = "DocumentsPane", CurrentView = document1, Views = CreateList <IView> ( document1, document2, document3 ) }; // Main var mainLayout = new LayoutDock { Id = "MainLayout", Dock = "", Width = double.NaN, Height = double.NaN, Title = "MainLayout", CurrentView = null, Views = CreateList <IView> ( leftPane, new SplitterDock() { Id = "LeftSplitter", Dock = "Left", Title = "LeftSplitter" }, rightPane, new SplitterDock() { Id = "RightSplitter", Dock = "Right", Title = "RightSplitter" }, documentsPane ) }; var mainView = new MainView { Id = "Main", Width = double.NaN, Height = double.NaN, Title = "Main", CurrentView = mainLayout, Views = CreateList <IView> ( mainLayout ) }; // Home var homeView = new HomeView { Id = "Home", Width = double.NaN, Height = double.NaN, Title = "Home" }; // Root var root = new RootDock { Id = "Root", Width = double.NaN, Height = double.NaN, Title = "Root", CurrentView = homeView, DefaultView = homeView, Views = CreateList <IView>(homeView, mainView) }; return(root); }
public Document2 Create(int pagesCount) { Document2 result = new Document2(pagesCount, new CostCalculatorFactory(new InMemoryConfiguration()).Create()); return(result); }
public void ResultCacheShouldConsiderDocumentsLoadedInProjection() { using (var store = GetDocumentStore()) { Document mainDocument; Document2 referencedDocument; using (var session = store.OpenSession()) { referencedDocument = new Document2 { DataToUpdate = "original" }; session.Store(referencedDocument); mainDocument = new Document { References = new[] { new DocumentReference { Document2Id = referencedDocument.Id }, } }; session.Store(mainDocument); session.SaveChanges(); } string[] ProjectValuesLinq() { using (var session = store.OpenSession()) { var single = (from doc in session.Query <Document>().Where(x => x.Id == mainDocument.Id) let referenced = RavenQuery.Load <Document2>(doc.References.Select(x => x.Document2Id)) select new Result { Data = referenced .Select(x => x.DataToUpdate) .ToArray() }) .Single(); return(single.Data); } } string[] ProjectValuesRql1() { var query = $"from Documents as doc where id() = '{mainDocument.Id}'" + @"select { Data: doc.References.map(function(x){return load(x.Document2Id);}).map(function(x){return x.DataToUpdate;}) }"; return(ProjectValuesRql(query)); } string[] ProjectValuesRql2() { var query = $"from Documents as doc where id() = '{mainDocument.Id}'" + @"load doc.References[].Document2Id as r[] select { Data: r.map(function(x){return x.DataToUpdate;}) }"; return(ProjectValuesRql(query)); } string[] ProjectValuesRql(string query) { using (var session = store.OpenSession()) { var single = session.Advanced.RawQuery <Result>(query).Single(); return(single.Data); } } Assert.Contains(ProjectValuesLinq(), x => x == "original"); Assert.Contains(ProjectValuesRql1(), x => x == "original"); Assert.Contains(ProjectValuesRql2(), x => x == "original"); using (var session = store.OpenSession()) { var dbDoc = session.Load <Document2>(referencedDocument.Id); dbDoc.DataToUpdate = "modified"; session.SaveChanges(); } using (var session = store.OpenSession()) { var dbDoc = session.Load <Document2>(referencedDocument.Id); Assert.Equal("modified", dbDoc.DataToUpdate); } Assert.Contains(ProjectValuesLinq(), x => x == "modified"); Assert.Contains(ProjectValuesRql1(), x => x == "modified"); Assert.Contains(ProjectValuesRql2(), x => x == "modified"); } }
public override IDock CreateLayout() { var document1 = new Document1 { Id = "Document1", Title = "Document1" }; var document2 = new Document2 { Id = "Document2", Title = "Document2" }; var document3 = new Document3 { Id = "Document3", Title = "Document3" }; var leftTopTool1 = new LeftTopTool1 { Id = "LeftTop1", Title = "LeftTop1" }; var leftTopTool2 = new LeftTopTool2 { Id = "LeftTop2", Title = "LeftTop2" }; var leftTopTool3 = new LeftTopTool3 { Id = "LeftTop3", Title = "LeftTop3" }; var leftBottomTool1 = new LeftBottomTool1 { Id = "LeftBottom1", Title = "LeftBottom1" }; var leftBottomTool2 = new LeftBottomTool2 { Id = "LeftBottom2", Title = "LeftBottom2" }; var leftBottomTool3 = new LeftBottomTool3 { Id = "LeftBottom3", Title = "LeftBottom3" }; var rightTopTool1 = new RightTopTool1 { Id = "RightTop1", Title = "RightTop1" }; var rightTopTool2 = new RightTopTool2 { Id = "RightTop2", Title = "RightTop2" }; var rightTopTool3 = new RightTopTool3 { Id = "RightTop3", Title = "RightTop3" }; var rightBottomTool1 = new RightBottomTool1 { Id = "RightBottom1", Title = "RightBottom1" }; var rightBottomTool2 = new RightBottomTool2 { Id = "RightBottom2", Title = "RightBottom2" }; var rightBottomTool3 = new RightBottomTool3 { Id = "RightBottom3", Title = "RightBottom3" }; var mainLayout = new LayoutDock { Id = "MainLayout", Title = "MainLayout", Proportion = double.NaN, Orientation = Orientation.Horizontal, CurrentView = null, Views = CreateList <IView> ( new LayoutDock { Id = "LeftPane", Title = "LeftPane", Proportion = double.NaN, Orientation = Orientation.Vertical, CurrentView = null, Views = CreateList <IView> ( new ToolDock { Id = "LeftPaneTop", Title = "LeftPaneTop", Proportion = double.NaN, CurrentView = leftTopTool1, Views = CreateList <IView> ( leftTopTool1, leftTopTool2, leftTopTool3 ) }, new SplitterDock() { Id = "LeftPaneTopSplitter", Title = "LeftPaneTopSplitter" }, new ToolDock { Id = "LeftPaneBottom", Title = "LeftPaneBottom", Proportion = double.NaN, CurrentView = leftBottomTool1, Views = CreateList <IView> ( leftBottomTool1, leftBottomTool2, leftBottomTool3 ) } ) }, new SplitterDock() { Id = "LeftSplitter", Title = "LeftSplitter" }, new DocumentDock { Id = "DocumentsPane", Title = "DocumentsPane", Proportion = double.NaN, CurrentView = document1, Views = CreateList <IView> ( document1, document2, document3 ) }, new SplitterDock() { Id = "RightSplitter", Title = "RightSplitter" }, new LayoutDock { Id = "RightPane", Title = "RightPane", Proportion = double.NaN, Orientation = Orientation.Vertical, CurrentView = null, Views = CreateList <IView> ( new ToolDock { Id = "RightPaneTop", Title = "RightPaneTop", Proportion = double.NaN, CurrentView = rightTopTool1, Views = CreateList <IView> ( rightTopTool1, rightTopTool2, rightTopTool3 ) }, new SplitterDock() { Id = "RightPaneTopSplitter", Title = "RightPaneTopSplitter" }, new ToolDock { Id = "RightPaneBottom", Title = "RightPaneBottom", Proportion = double.NaN, CurrentView = rightBottomTool1, Views = CreateList <IView> ( rightBottomTool1, rightBottomTool2, rightBottomTool3 ) } ) } ) }; var mainView = new MainView { Id = "Main", Title = "Main", CurrentView = mainLayout, Views = CreateList <IView>(mainLayout) }; var homeView = new HomeView { Id = "Home", Title = "Home" }; var root = CreateRootDock(); root.Id = "Root"; root.Title = "Root"; root.CurrentView = homeView; root.DefaultView = homeView; root.Views = CreateList <IView>(homeView, mainView); root.Top = CreatePinDock(); root.Top.Alignment = Alignment.Top; root.Bottom = CreatePinDock(); root.Bottom.Alignment = Alignment.Bottom; root.Left = CreatePinDock(); root.Left.Alignment = Alignment.Left; root.Right = CreatePinDock(); root.Right.Alignment = Alignment.Right; return(root); }
private void btnDecline_ServerClick(object sender, EventArgs e) { Document2.DeclineResource(DocumentID); CheckCompleted(); Util.CommonHelper.ReloadTopFrame("ActiveWork.ascx", GetLink(), Response); }
private void btnAccept_ServerClick(object sender, EventArgs e) { Document2.AcceptResource(DocumentID); Util.CommonHelper.ReloadTopFrame("ActiveWork.ascx", GetLink(), Response); }