/// <summary> /// F1060_s the list suspended payment. /// </summary> /// <param name="lastName">Name of the last.</param> /// <param name="firstName">Name of the first.</param> /// <param name="receiptDate">The receipt date.</param> /// <returns>Typed DataSet containing the Suspended Payment Details.</returns> //public static F1060SudpendedPaymentSelectionData F1060_ListSuspendedPayment(string lastName, string firstName, string receiptDate) //{ // F1060SudpendedPaymentSelectionData suspendedPaymentSelectionData = new F1060SudpendedPaymentSelectionData(); // Hashtable ht = new Hashtable(); // ht.Add("@LastName", lastName); // ht.Add("@FirstName", firstName); // ht.Add("@ReceiptDate", receiptDate); // Utility.FillDataSet(suspendedPaymentSelectionData.ListSuspendedPayment, "f1060_pclst_SuspendedPayment", ht); // return suspendedPaymentSelectionData; //} public static F1060SudpendedPaymentSelectionData F1060_ListSuspendedPayment(string searchDetail) { F1060SudpendedPaymentSelectionData suspendedPaymentSelectionData = new F1060SudpendedPaymentSelectionData(); Hashtable ht = new Hashtable(); ht.Add("@PaymentItems", searchDetail); Utility.LoadDataSet(suspendedPaymentSelectionData.ListSuspendedPayment, "f1060_pclst_SuspendedPayment", ht); return(suspendedPaymentSelectionData); }
/// <summary> /// Loads the suspended payment selection grid. /// </summary> /// <param name="lastName">Name of the last.</param> /// <param name="firstName">Name of the first.</param> /// <param name="date">The date.</param> private void LoadSuspendedPaymentSelectionGrid(string SearchDetail) { this.Cursor = Cursors.WaitCursor; // this.sudpendedPaymentSelectionData = this.form1060Controll.WorkItem.F1060_ListSuspendedPayment(lastName, firstName, date); this.sudpendedPaymentSelectionData = this.form1060Controll.WorkItem.F1060_ListSuspendedPayment(SearchDetail); this.suspendedItemsRowCount = this.sudpendedPaymentSelectionData.ListSuspendedPayment.Rows.Count; if (this.suspendedItemsRowCount > 0) { this.SuspendedPaymentSelectionDataGridView.Enabled = true; this.SuspendedPaymentSelectionDataGridView.DataSource = this.sudpendedPaymentSelectionData.ListSuspendedPayment.DefaultView; this.SuspendedPaymentSelectionDataGridView.Focus(); this.SuspendedPaymentSelectionDataGridView.Rows[0].Selected = true; if (this.suspendedItemsRowCount > this.SuspendedPaymentSelectionDataGridView.NumRowsVisible) { this.ReceiptDate.Width = 104; } else { this.ReceiptDate.Width = 105; } } else { this.ClearSuspendedPaymentSelectionGrid(); } ////to enable or disable the vertical scroll bar if (this.suspendedItemsRowCount > this.SuspendedPaymentSelectionDataGridView.NumRowsVisible) { this.SuspendedPaymentSlectionVerticalScroll.Visible = false; } else { this.SuspendedPaymentSlectionVerticalScroll.Visible = true; } ////To display the no of display rows in the grid this.RecordCountLabel.Text = this.suspendedItemsRowCount + SharedFunctions.GetResourceString("9101MasterNameSearch"); this.Cursor = Cursors.Default; }