Esempio n. 1
0
        /// <summary>
        /// F9070s the get report listing details.
        /// </summary>
        /// <param name="userId">The user ID.</param>
        /// <returns>form9070ReportListingData</returns>
        public static F9070ReportListingData F9070GetReportListingDetails(int userId)
        {
            F9070ReportListingData form9070ReportListingData = new F9070ReportListingData();
            Hashtable ht = new Hashtable();

            ht.Add("@UserID", userId);
            string[] tableName = new string[] { form9070ReportListingData.ReportHeader.TableName, form9070ReportListingData.F9070GetReportListing.TableName };
            Utility.LoadDataSet(form9070ReportListingData, "f9070_pclst_ReportListing", ht, tableName);
            return(form9070ReportListingData);
        }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:F9070"/> class.
 /// </summary>
 /// <param name="masterform">The masterform.</param>
 /// <param name="formNo">The form no.</param>
 /// <param name="keyID">The key ID.</param>
 /// <param name="red">The red.</param>
 /// <param name="green">The green.</param>
 /// <param name="blue">The blue.</param>
 /// <param name="tabText">The tab text.</param>
 /// <param name="permissionEdit">if set to <c>true</c> [permission edit].</param>
 /// <param name="featureClassID">The feature class ID.</param>
 public F9070(int masterform, int formNo, int keyID, int red, int green, int blue, string tabText, bool permissionEdit, int featureClassID)
 {
     this.InitializeComponent();
     this.Tag   = formNo;
     this.keyId = keyID;
     this.sectionIndicatorTabText = tabText;
     this.redColor   = red;
     this.greenColor = green;
     this.blueColor  = blue;
     this.ReportListingpicturebox.Image = ExtendedGraphics.GenerateVerticalImage(this.ReportListingpicturebox.Height, this.ReportListingpicturebox.Width, this.sectionIndicatorTabText, this.redColor, this.greenColor, this.blueColor);
     this.form9070ReportListingData     = new F9070ReportListingData();
 }
Esempio n. 3
0
        /// <summary>
        /// To Load ReportListing Details Grid
        /// </summary>
        private void LoadReportListingDetailsGrid()
        {
            DataColumn[] primaryKeys = new DataColumn[1];
            primaryKeys[0] = this.form9070ReportListingData.ReportHeader.GroupIDColumn;
            this.form9070ReportListingData.ReportHeader.PrimaryKey = primaryKeys;
            this.form9070ReportListingData = this.form9070Control.WorkItem.F9070GetReportListingDetails(TerraScanCommon.UserId);

            this.form9070ReportListingData.Relations.Add(this.form9070ReportListingData.ReportHeader.Columns[this.form9070ReportListingData.ReportHeader.GroupIDColumn.ColumnName], this.form9070ReportListingData.F9070GetReportListing.Columns[this.form9070ReportListingData.F9070GetReportListing.GroupIDColumn.ColumnName]);

            this.ReportListingGrid.DataMember = this.form9070ReportListingData.ReportHeader.TableName;
            this.ReportListingGrid.DataSource = this.form9070ReportListingData;

            if (this.form9070ReportListingData.F9070GetReportListing.Rows.Count > 0)
            {
                this.PreviewReportButton.Enabled = true;
            }
            else
            {
                this.PreviewReportButton.Enabled = false;
            }
        }
Esempio n. 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:F9070"/> class.
 /// </summary>
 public F9070()
 {
     InitializeComponent();
     this.ReportListingpicturebox.Image = ExtendedGraphics.GenerateVerticalImage(this.ReportListingpicturebox.Height, this.ReportListingpicturebox.Width, "Reports", 28, 81, 128);
     this.form9070ReportListingData     = new F9070ReportListingData();
 }