Ejemplo n.º 1
0
        /// <summary>
        /// Lists the posting errors.
        /// </summary>
        /// <param name="userId">The user id.</param>
        /// <returns>ListPostingErrors data table</returns>
        public static PostingErrorsData ListPostingErrors(int userId)
        {
            PostingErrorsData postingErrorsData = new PostingErrorsData();
            Hashtable         ht = new Hashtable();

            ht.Add("@UserID", userId);
            Utility.LoadDataSet(postingErrorsData, "f1206_pclst_PostingError", ht, new string[] { postingErrorsData.ListPostingErrors.TableName, postingErrorsData.ListPostingErrorFlag.TableName });
            return(postingErrorsData);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Fills the post errorsgrid.
        /// </summary>
        private void FillPostErrorsgrid()
        {
            this.postingErrorsDataset   = this.F1206Controll.WorkItem.ListpostingErrors(TerraScanCommon.UserId);
            this.postingErrorsGridCount = this.postingErrorsDataset.ListPostingErrors.Rows.Count;
            if (this.postingErrorsGridCount > 0)
            {
                this.PostingErrorsDataGrid.Enabled = true;
                this.postingErrorsDataset.ListPostingErrors.Columns.Add("ReportText", typeof(string));
                foreach (DataRow row in this.postingErrorsDataset.ListPostingErrors.Rows)
                {
                    row["ReportText"] = "Report";
                }
                this.PostingErrorsDataGrid.DataSource = this.postingErrorsDataset.ListPostingErrors;

                this.PostingErrorsDataGrid.Rows[0].Selected = true;
                ////this.DisableVScrollBar();

                ////To Enable or Disable Create account and Create subfund buttons based on error type id
                this.ToDisableEnableAccountButtons(0);
                //////if (Convert.ToBoolean(this.postingErrorsDataset.ListPostingErrorFlag.Rows[0][0]) == true)
                //////{
                //////    this.CreateAccountButton.Enabled = true;
                //////}
                //////else
                //////{
                //////    this.CreateAccountButton.Enabled = false;
                //////}
            }
            else
            {
                this.PostingErrorsDataGrid.DataSource       = this.postingErrorsDataset;
                this.PostingErrorsDataGrid.Enabled          = false;
                this.PostingErrorsDataGrid.Rows[0].Selected = false;
                ////this.emptyRecord = true;
                ////this.ReverseGLPostButton.Enabled = false;
            }
        }