Ejemplo n.º 1
0
        /// <summary>
        /// Customize Receipt Detail Gridview.
        /// </summary>
        private void CustomizeReceiptDetailsGrid()
        {
            form15100ReceiptHeaderData = this.form15105control.WorkItem.GetReceiptListDetails(this.keyId);
            //// assign the datasource to grid
            this.AssociatedGridView.DataSource = this.form15100ReceiptHeaderData.GetAssociatedReceiptDetails.DefaultView;
            this.AssociatedGridView.AllowUserToResizeColumns = false;
            this.AssociatedGridView.AllowUserToResizeRows    = false;
            this.AssociatedGridView.AutoGenerateColumns      = false;
            this.ReceiptNaumber.DataPropertyName             = this.form15100ReceiptHeaderData.GetAssociatedReceiptDetails.ReceiptNumberColumn.ColumnName;
            this.PostName.DataPropertyName        = this.form15100ReceiptHeaderData.GetAssociatedReceiptDetails.PostNameColumn.ColumnName;
            this.StatementNumber.DataPropertyName = this.form15100ReceiptHeaderData.GetAssociatedReceiptDetails.StatementNumberColumn.ColumnName;
            this.Rollyear.DataPropertyName        = this.form15100ReceiptHeaderData.GetAssociatedReceiptDetails.RollYearColumn.ColumnName;
            this.TotalAmount.DataPropertyName     = this.form15100ReceiptHeaderData.GetAssociatedReceiptDetails.TotalAmountColumn.ColumnName;
            this.TaxAmount.DataPropertyName       = this.form15100ReceiptHeaderData.GetAssociatedReceiptDetails.TaxAmountColumn.ColumnName;
            this.Fees.DataPropertyName            = this.form15100ReceiptHeaderData.GetAssociatedReceiptDetails.FeeAmountColumn.ColumnName;
            this.Interest.DataPropertyName        = this.form15100ReceiptHeaderData.GetAssociatedReceiptDetails.InterestAmountColumn.ColumnName;

            this.AssociatedGridView.Columns["ReceiptNaumber"].DefaultCellStyle.Alignment  = DataGridViewContentAlignment.MiddleCenter;
            this.AssociatedGridView.Columns["PostName"].DefaultCellStyle.Alignment        = DataGridViewContentAlignment.MiddleLeft;
            this.AssociatedGridView.Columns["StatementNumber"].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
            this.AssociatedGridView.Columns["Rollyear"].DefaultCellStyle.Alignment        = DataGridViewContentAlignment.MiddleCenter;
            this.AssociatedGridView.Columns["TotalAmount"].DefaultCellStyle.Alignment     = DataGridViewContentAlignment.MiddleRight;
            this.AssociatedGridView.Columns["TaxAmount"].DefaultCellStyle.Alignment       = DataGridViewContentAlignment.MiddleRight;
            this.AssociatedGridView.Columns["Fees"].DefaultCellStyle.Alignment            = DataGridViewContentAlignment.MiddleRight;
            this.AssociatedGridView.Columns["Interest"].DefaultCellStyle.Alignment        = DataGridViewContentAlignment.MiddleRight;

            this.AssociatedGridView.Columns["Fees"].DefaultCellStyle.Font     = new Font("Courier New", 8F, FontStyle.Bold);
            this.AssociatedGridView.Columns["Interest"].DefaultCellStyle.Font = new Font("Courier New", 8F, FontStyle.Bold);
        }
Ejemplo n.º 2
0
        ///<summary>
        ///Get the Receipt Header
        ///</summary>
        ///<param name="receiptId">The Receipt ID.</param>
        /// <returns>
        /// The Typed dataset containing the details of the Receipt header.
        /// </returns>
        public static F15100ReceiptHeaderData GetReceiptListDetails(int receiptId)
        {
            F15100ReceiptHeaderData form15100AssociatedReceipts = new F15100ReceiptHeaderData();
            Hashtable ht = new Hashtable();

            ht.Add("@ReceiptID", receiptId);
            Utility.LoadDataSet(form15100AssociatedReceipts, "f15105_pcget_FSRelatedReceipts", ht, new string[] { form15100AssociatedReceipts.GetAssociatedReceiptDetails.TableName });
            return(form15100AssociatedReceipts);
        }
Ejemplo n.º 3
0
        ///<summary>
        ///Get the Receipt Header
        ///</summary>
        ///<param name="receiptId">The Receipt ID.</param>
        /// <returns>
        /// The Typed dataset containing the details of the Receipt header.
        /// </returns>
        public static F15100ReceiptHeaderData GetReceiptHeaderDetails(int receiptId)
        {
            F15100ReceiptHeaderData form15100ReceiptHeaderData = new F15100ReceiptHeaderData();
            Hashtable ht = new Hashtable();

            ht.Add("@ReceiptID", receiptId);
            Utility.LoadDataSet(form15100ReceiptHeaderData, "f15100_pcget_FSReceiptHeader", ht, new string[] { form15100ReceiptHeaderData.GetReceiptHeader.TableName });
            return(form15100ReceiptHeaderData);
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:F15100"/> 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 featureclass id</param>
 public F15100(int masterform, int formNo, int keyID, int red, int green, int blue, string tabText, bool permissionEdit, int featureClassID)
 {
     this.InitializeComponent();
     this.formMasterPermissionEdit = permissionEdit;
     this.masterFormNo             = masterform;
     this.Tag   = formNo;
     this.keyId = keyID;
     this.ReceiptPictureBox.Image    = ExtendedGraphics.GenerateVerticalImage(this.ReceiptPictureBox.Height, this.ReceiptPictureBox.Width, tabText, red, green, blue);
     this.form15100RecieptHeaderData = new F15100ReceiptHeaderData();
     this.getFormDetailsDataDetails  = new SupportFormData.GetFormDetailsDataTable();
 }
Ejemplo n.º 5
0
        /// <summary>
        /// Populates the reciept items grid.
        /// </summary>
        private void PopulateRecieptDetailsGrid()
        {
            this.form15100ReceiptHeaderData.GetAssociatedReceiptDetails.Clear();
            this.AssociatedGridView.NumRowsVisible = MINROWSVISIBLE;
            // write code to access from db and assign values
            this.form15100ReceiptHeaderData = this.form15105control.WorkItem.GetReceiptListDetails(this.keyId);
            // assign the datasource to grid
            this.AssociatedGridView.DataSource = this.form15100ReceiptHeaderData.GetAssociatedReceiptDetails.DefaultView;
            this.SetSmartPartHeight(this.form15100ReceiptHeaderData.GetAssociatedReceiptDetails.Rows.Count);
            this.associateReceiptsRow = this.AssociatedGridView.OriginalRowCount;
            if (this.associateReceiptsRow > 7)
            {
                this.AssociateReceiptVscrollBar.Visible = false;
            }
            else
            {
                this.AssociateReceiptVscrollBar.Visible = true;
            }

            if (this.AssociatedGridView.OriginalRowCount > 0)
            {
                this.AssociatedGridView.Rows[0].Selected = true;
            }
            else
            {
                this.AssociatedGridView.Rows[0].Selected = false;
            }

            this.pageLoadStatus = false;

            SliceResize sliceResize;

            sliceResize.MasterFormNo    = this.masterFormNo;
            sliceResize.SliceFormName   = Utility.GetFormNameSpace(this.Name);
            sliceResize.SliceFormHeight = this.AssociatedGridView.Height;

            if (!this.flagFormLoad)
            {
                ////this.OnFormSlice_Resize(new DataEventArgs<SliceResize>(sliceResize));
                this.AssociatePaymentsPictureBox.Image = ExtendedGraphics.GenerateVerticalImage(this.AssociatePaymentsPictureBox.Height, this.AssociatePaymentsPictureBox.Width, this.sectionIndicatorTabText, this.redColor, this.greenColor, this.blueColor);
            }
        }
Ejemplo n.º 6
0
        /// <summary>
        /// method to get the Receipt Header details
        /// </summary>
        private void GetReceiptHeaderDetails()
        {
            this.flagLoadOnProcess = true;

            this.form15100RecieptHeaderData = this.form15100control.WorkItem.GetReceiptHeaderDetails(this.keyId);

            if (this.form15100RecieptHeaderData.GetReceiptHeader.Rows.Count > 0)
            {
                if (!string.IsNullOrEmpty(this.form15100RecieptHeaderData.GetReceiptHeader.Rows[0][this.form15100RecieptHeaderData.GetReceiptHeader.ReceiptNumberColumn].ToString()))
                {
                    this.ReceiptNumberTextBox.Text = this.form15100RecieptHeaderData.GetReceiptHeader.Rows[0][this.form15100RecieptHeaderData.GetReceiptHeader.ReceiptNumberColumn].ToString();
                }
                else
                {
                    this.ReceiptNumberTextBox.Text = string.Empty;
                }

                if (!string.IsNullOrEmpty(this.form15100RecieptHeaderData.GetReceiptHeader.Rows[0][this.form15100RecieptHeaderData.GetReceiptHeader.ReceiptDateColumn].ToString()))
                {
                    this.ReceiptDateTextBox.Text = this.form15100RecieptHeaderData.GetReceiptHeader.Rows[0][this.form15100RecieptHeaderData.GetReceiptHeader.ReceiptDateColumn].ToString();
                }
                else
                {
                    this.ReceiptDateTextBox.Text = string.Empty;
                }

                if (!string.IsNullOrEmpty(this.form15100RecieptHeaderData.GetReceiptHeader.Rows[0][this.form15100RecieptHeaderData.GetReceiptHeader.InterestDateColumn].ToString()))
                {
                    this.InterestDateTextBox.Text = this.form15100RecieptHeaderData.GetReceiptHeader.Rows[0][this.form15100RecieptHeaderData.GetReceiptHeader.InterestDateColumn].ToString();
                }
                else
                {
                    this.InterestAmountTextBox.Text = string.Empty;
                }

                if (!string.IsNullOrEmpty(this.form15100RecieptHeaderData.GetReceiptHeader.Rows[0][this.form15100RecieptHeaderData.GetReceiptHeader.UserNameColumn].ToString()))
                {
                    this.UserTextBox.Text = this.form15100RecieptHeaderData.GetReceiptHeader.Rows[0][this.form15100RecieptHeaderData.GetReceiptHeader.UserNameColumn].ToString();
                }
                else
                {
                    this.UserTextBox.Text = string.Empty;
                }

                if (!string.IsNullOrEmpty(this.form15100RecieptHeaderData.GetReceiptHeader.Rows[0][this.form15100RecieptHeaderData.GetReceiptHeader.PostedToGLColumn].ToString()))
                {
                    this.PostedToGLTextBox.Text = this.form15100RecieptHeaderData.GetReceiptHeader.Rows[0][this.form15100RecieptHeaderData.GetReceiptHeader.PostedToGLColumn].ToString();
                }
                else
                {
                    this.PostedToGLTextBox.Text = string.Empty;
                }

                if (!string.IsNullOrEmpty(this.form15100RecieptHeaderData.GetReceiptHeader.Rows[0][this.form15100RecieptHeaderData.GetReceiptHeader.PostNameColumn].ToString()))
                {
                    this.PostTypeTextBox.Text = this.form15100RecieptHeaderData.GetReceiptHeader.Rows[0][this.form15100RecieptHeaderData.GetReceiptHeader.PostNameColumn].ToString();
                }
                else
                {
                    this.PostTypeTextBox.Text = string.Empty;
                }

                if (!string.IsNullOrEmpty(this.form15100RecieptHeaderData.GetReceiptHeader.Rows[0][this.form15100RecieptHeaderData.GetReceiptHeader.StatementNumberColumn].ToString()))
                {
                    this.StatementNumberTextBox.Text = this.form15100RecieptHeaderData.GetReceiptHeader.Rows[0][this.form15100RecieptHeaderData.GetReceiptHeader.StatementNumberColumn].ToString();
                }
                else
                {
                    this.StatementNumberTextBox.Text = string.Empty;
                }

                if (!string.IsNullOrEmpty(this.form15100RecieptHeaderData.GetReceiptHeader.Rows[0][this.form15100RecieptHeaderData.GetReceiptHeader.ReceiptSourceColumn].ToString()))
                {
                    this.SourceTextBox.Text = this.form15100RecieptHeaderData.GetReceiptHeader.Rows[0][this.form15100RecieptHeaderData.GetReceiptHeader.ReceiptSourceColumn].ToString();
                }
                else
                {
                    this.SourceTextBox.Text = string.Empty;
                }

                if (!string.IsNullOrEmpty(this.form15100RecieptHeaderData.GetReceiptHeader.Rows[0][this.form15100RecieptHeaderData.GetReceiptHeader.RollYearColumn].ToString()))
                {
                    this.RollYearTextBox.Text = this.form15100RecieptHeaderData.GetReceiptHeader.Rows[0][this.form15100RecieptHeaderData.GetReceiptHeader.RollYearColumn].ToString();
                }
                else
                {
                    this.RollYearTextBox.Text = string.Empty;
                }

                if (!string.IsNullOrEmpty(this.form15100RecieptHeaderData.GetReceiptHeader.Rows[0][this.form15100RecieptHeaderData.GetReceiptHeader.TotalAmountColumn].ToString()))
                {
                    this.TotalAmountTextBox.Text = this.form15100RecieptHeaderData.GetReceiptHeader.Rows[0][this.form15100RecieptHeaderData.GetReceiptHeader.TotalAmountColumn].ToString();
                }
                else
                {
                    this.TotalAmountTextBox.Text = string.Empty;
                }

                if (!string.IsNullOrEmpty(this.form15100RecieptHeaderData.GetReceiptHeader.Rows[0][this.form15100RecieptHeaderData.GetReceiptHeader.TaxAmountColumn].ToString()))
                {
                    this.TaxAmountTextBox.Text = this.form15100RecieptHeaderData.GetReceiptHeader.Rows[0][this.form15100RecieptHeaderData.GetReceiptHeader.TaxAmountColumn].ToString();
                }
                else
                {
                    this.TaxAmountTextBox.Text = string.Empty;
                }

                if (!string.IsNullOrEmpty(this.form15100RecieptHeaderData.GetReceiptHeader.Rows[0][this.form15100RecieptHeaderData.GetReceiptHeader.FeeAmountColumn].ToString()))
                {
                    this.FeeAmountTextBox.Text = this.form15100RecieptHeaderData.GetReceiptHeader.Rows[0][this.form15100RecieptHeaderData.GetReceiptHeader.FeeAmountColumn].ToString();
                }
                else
                {
                    this.FeeAmountTextBox.Text = string.Empty;
                }

                if (!string.IsNullOrEmpty(this.form15100RecieptHeaderData.GetReceiptHeader.Rows[0][this.form15100RecieptHeaderData.GetReceiptHeader.InterestAmountColumn].ToString()))
                {
                    this.InterestAmountTextBox.Text = this.form15100RecieptHeaderData.GetReceiptHeader.Rows[0][this.form15100RecieptHeaderData.GetReceiptHeader.InterestAmountColumn].ToString();
                }
                else
                {
                    this.InterestAmountTextBox.Text = string.Empty;
                }

                if (!string.IsNullOrEmpty(this.form15100RecieptHeaderData.GetReceiptHeader.Rows[0][this.form15100RecieptHeaderData.GetReceiptHeader.IsEditableDateColumn].ToString()) && Convert.ToInt32(this.form15100RecieptHeaderData.GetReceiptHeader.Rows[0][this.form15100RecieptHeaderData.GetReceiptHeader.IsEditableDateColumn].ToString()) > 0)
                {
                    this.ReceiptDatePanel.Enabled       = true;
                    this.InterestDatepanel.Enabled      = true;
                    this.GeneralPaymentDatePict.Enabled = true;
                    this.GeneralFormDatePic.Enabled     = true;
                }
                else
                {
                    this.ReceiptDatePanel.Enabled       = false;
                    this.InterestDatepanel.Enabled      = false;
                    this.GeneralPaymentDatePict.Enabled = false;
                    this.GeneralFormDatePic.Enabled     = false;
                }
            }
            else
            {
                ////Coding added for the issue 4497  by Malliga on 29/3/3009
                this.ReceiptNumberTextBox.Text   = string.Empty;
                this.ReceiptDateTextBox.Text     = string.Empty;
                this.InterestDateTextBox.Text    = string.Empty;
                this.UserTextBox.Text            = string.Empty;
                this.PostedToGLTextBox.Text      = string.Empty;
                this.PostTypeTextBox.Text        = string.Empty;
                this.StatementNumberTextBox.Text = string.Empty;
                this.SourceTextBox.Text          = string.Empty;
                this.RollYearTextBox.Text        = string.Empty;
                this.TotalAmountTextBox.Text     = string.Empty;
                this.TaxAmountTextBox.Text       = string.Empty;
                this.FeeAmountTextBox.Text       = string.Empty;
                this.InterestAmountTextBox.Text  = string.Empty;
                ////End here for 4497
                this.ShowPanel(false);
            }

            this.pageMode          = TerraScanCommon.PageModeTypes.View;
            this.flagLoadOnProcess = false;

            this.AllowReceiptNumberEditable();
        }