示例#1
0
        /// <summary>
        /// Loads the work space.
        /// </summary>
        private void LoadWorkSpace()
        {
            if (this.form8901Control.WorkItem.SmartParts.Contains(SmartPartNames.FormHeaderSmartPart))
            {
                this.FormHeaderWorkSpace.Show(this.form8901Control.WorkItem.SmartParts.Get(SmartPartNames.FormHeaderSmartPart));
            }
            else
            {
                this.FormHeaderWorkSpace.Show(this.form8901Control.WorkItem.SmartParts.AddNew <FormHeaderSmartPart>(SmartPartNames.FormHeaderSmartPart));
            }

            if (this.form8901Control.WorkItem.SmartParts.Contains(SmartPartNames.ReportActionSmartPart))
            {
                this.GdocPrintHeaderWorkSpace.Show(this.form8901Control.WorkItem.SmartParts.Get(SmartPartNames.ReportActionSmartPart));
            }
            else
            {
                this.GdocPrintHeaderWorkSpace.Show(this.form8901Control.WorkItem.SmartParts.AddNew <ReportActionSmartPart>(SmartPartNames.ReportActionSmartPart));
                this.reportActionSmartPart = (ReportActionSmartPart)this.form8901Control.WorkItem.SmartParts.Get(SmartPartNames.ReportActionSmartPart);
            }

            this.reportActionSmartPart.DetailsButtonVisible = false;
            this.formLabelInfo[0] = "Work Order Engine";
            this.formLabelInfo[1] = string.Empty;
            this.SetFormHeader(this, new DataEventArgs <string[]>(this.formLabelInfo));
        }
示例#2
0
文件: F9008.cs 项目: CSSAdmin/TScan
        /// <summary>
        /// Loads the work spaces.
        /// </summary>
        private void LoadWorkSpaces()
        {
            if (this.form9008Control.WorkItem.SmartParts.Contains(SmartPartNames.OperationSmartPart))
            {
                this.operationSmartPart = (OperationSmartPart)this.form9008Control.WorkItem.SmartParts.Get(SmartPartNames.OperationSmartPart);
                this.OperationSmartpartDeckWorkSpace.Show(this.operationSmartPart);
            }
            else
            {
                this.operationSmartPart = (OperationSmartPart)this.Form9008Control.WorkItem.SmartParts.AddNew <OperationSmartPart>(SmartPartNames.OperationSmartPart);
                this.OperationSmartpartDeckWorkSpace.Show(this.operationSmartPart);
            }

            this.operationSmartPart.NewButtonVisible   = false;
            this.operationSmartPart.DeleteButtonEnable = false;
            this.ParentForm.CancelButton = this.operationSmartPart.RetrieveCancelButton;

            if (this.form9008Control.WorkItem.SmartParts.Contains(SmartPartNames.ReportActionSmartPart))
            {
                this.GdocPrintHeaderWorkSpace.Show(this.form9008Control.WorkItem.SmartParts.Get(SmartPartNames.ReportActionSmartPart));
            }
            else
            {
                this.GdocPrintHeaderWorkSpace.Show(this.form9008Control.WorkItem.SmartParts.AddNew <ReportActionSmartPart>(SmartPartNames.ReportActionSmartPart));
                this.reportActionSmartPart = (ReportActionSmartPart)this.form9008Control.WorkItem.SmartParts.Get(SmartPartNames.ReportActionSmartPart);
            }

            this.reportActionSmartPart.DetailsButtonVisible = false;
            this.reportActionSmartPart.EmailButtonVisible   = false;

            ////Load FormHeaderSmartPart to FormHeaderSmartPartdeckWorkspace
            if (this.Form9008Control.WorkItem.SmartParts.Contains(SmartPartNames.FormHeaderSmartPart))
            {
                this.FormHeaderSmartPartdeckWorkspace.Show(this.Form9008Control.WorkItem.SmartParts.Get(SmartPartNames.FormHeaderSmartPart));
            }
            else
            {
                this.FormHeaderSmartPartdeckWorkspace.Show(this.Form9008Control.WorkItem.SmartParts.AddNew <FormHeaderSmartPart>(SmartPartNames.FormHeaderSmartPart));
            }
            ////sets form header
            this.SetFormHeader(this, new DataEventArgs <string[]>(new string[] { "Report Printer Configuration", string.Empty }));
        }