/// <summary> /// Loads the WorkSpaces /// </summary> private void LoadWorkSpaces() { if (this.form1016Control.WorkItem.SmartParts.Contains(SmartPartNames.OperationSmartPart)) { this.operationSmartPart = (OperationSmartPart)this.F1016Control.WorkItem.SmartParts.Get(SmartPartNames.OperationSmartPart); this.OperationSmartpartDeckWorkSpace.Show(this.operationSmartPart); } else { this.operationSmartPart = (OperationSmartPart)this.F1016Control.WorkItem.SmartParts.AddNew <OperationSmartPart>(SmartPartNames.OperationSmartPart); this.OperationSmartpartDeckWorkSpace.Show(this.operationSmartPart); } this.operationSmartPart.NewButtonVisible = false; this.operationSmartPart.DeleteButtonEnable = false; // To Load FormHeaderSmartPart into formHeaderSmartPartdeckWorkspace if (this.form1016Control.WorkItem.SmartParts.Contains(SmartPartNames.FormHeaderSmartPart)) { this.formHeaderSmartPartdeckWorkspace.Show(this.form1016Control.WorkItem.SmartParts.Get(SmartPartNames.FormHeaderSmartPart)); } else { this.formHeaderSmartPartdeckWorkspace.Show(this.form1016Control.WorkItem.SmartParts.AddNew <FormHeaderSmartPart>(SmartPartNames.FormHeaderSmartPart)); } string[] formLabelInfo = new string[2]; formLabelInfo[0] = "Next Number Configuration"; formLabelInfo[1] = string.Empty; this.SetFormHeader(this, new DataEventArgs <string[]>(formLabelInfo)); // To Load FooterSmartPart into FooterWorkspace if (this.form1016Control.WorkItem.SmartParts.Contains(SmartPartNames.FooterSmartPart)) { this.FooterWorkspace.Show(this.form1016Control.WorkItem.SmartParts.Get(SmartPartNames.FooterSmartPart)); } else { this.FooterWorkspace.Show(this.form1016Control.WorkItem.SmartParts.AddNew <FooterSmartPart>(SmartPartNames.FooterSmartPart)); } this.footerSmartPart = (FooterSmartPart)this.form1016Control.WorkItem.SmartParts[SmartPartNames.FooterSmartPart]; this.footerSmartPart.ParentWorkItem = this.form1016Control.WorkItem; this.footerSmartPart.FormId = "1016"; this.footerSmartPart.AuditLinkText = "tTR_NextNum [NextNumID] "; this.footerSmartPart.VisibleHelpButton = false; this.footerSmartPart.VisibleHelpLinkButton = true; }
/// <summary> /// Loads the work spaces. /// </summary> private void LoadWorkSpaces() { if (this.form9080Control.WorkItem.SmartParts.Contains(SmartPartNames.FormHeaderSmartPart)) { this.formHeaderSmartPartdeckWorkspace.Show(this.form9080Control.WorkItem.SmartParts.Get(SmartPartNames.FormHeaderSmartPart)); } else { this.formHeaderSmartPartdeckWorkspace.Show(this.form9080Control.WorkItem.SmartParts.AddNew <FormHeaderSmartPart>(SmartPartNames.FormHeaderSmartPart)); } this.formLabelInfo[0] = "Roll Year Management"; this.formLabelInfo[1] = string.Empty; this.SetFormHeader(this, new DataEventArgs <string[]>(this.formLabelInfo)); if (this.form9080Control.WorkItem.SmartParts.Contains(SmartPartNames.FooterSmartPart)) { this.FooterWorkspace.Show(this.form9080Control.WorkItem.SmartParts.Get(SmartPartNames.FooterSmartPart)); } else { this.FooterWorkspace.Show(this.form9080Control.WorkItem.SmartParts.AddNew <FooterSmartPart>(SmartPartNames.FooterSmartPart)); } this.footerSmartPart = (FooterSmartPart)this.form9080Control.WorkItem.SmartParts[SmartPartNames.FooterSmartPart]; this.footerSmartPart.ParentWorkItem = this.form9080Control.WorkItem; this.footerSmartPart.FormId = "9080"; this.footerSmartPart.AuditLinkText = ""; this.footerSmartPart.VisibleHelpButton = false; this.footerSmartPart.VisibleHelpLinkButton = true; this.footerSmartPart.TabStop = true; foreach (UserControl ctrl in this.FooterWorkspace.SmartParts) { if (ctrl != null) { ctrl.TabStop = true; } } }