Пример #1
0
        /// <summary>
        /// Gets the payment.
        /// </summary>
        /// <returns>Tender type configuartion information</returns>
        public static PaymentEngineData GetTenderTypeConfiguration()
        {
            PaymentEngineData paymentEngineData = new PaymentEngineData();
            Hashtable         ht = new Hashtable();

            Utility.LoadDataSet(paymentEngineData.GetTenderTypeConfiguration, "f9020_pcget_TenderTypeConfigurationValue", ht);
            return(paymentEngineData);
        }
Пример #2
0
        /// <summary>
        /// Gets the query result.
        /// </summary>
        /// <param name="ppaymentId">The ppayment id</param>
        /// <returns>Complete set of payment details related to current pPaymentId</returns>
        public static PaymentEngineData GetMultiplePayment(string ppaymentId)
        {
            PaymentEngineData paymentEngineData = new PaymentEngineData();
            Hashtable         ht = new Hashtable();

            ht.Add("@PPaymentItems", ppaymentId);
            Utility.LoadDataSet(paymentEngineData.GetPayment, "f1018_pclst_Payment", ht);
            return(paymentEngineData);
        }
Пример #3
0
        /// <summary>
        /// Gets the query result.
        /// </summary>
        /// <param name="ppaymentId">The ppayment id.</param>
        /// <returns>Complete set of payment details related to current pPaymentId</returns>
        public static PaymentEngineData GetPayment(int ppaymentId)
        {
            PaymentEngineData paymentEngineData = new PaymentEngineData();
            Hashtable         ht = new Hashtable();

            ht.Add("@PPaymentID", ppaymentId);
            Utility.LoadDataSet(paymentEngineData.GetPayment, "f1018_pcget_Payment", ht);
            return(paymentEngineData);
        }
Пример #4
0
        /// <summary>
        /// Gets the query result.
        /// </summary>
        /// <param name="payeeId">The payee id.</param>
        /// <returns>Complete set of payee details related to current payeeId</returns>
        public static PaymentEngineData F1019_GetPayeeDetails(int payeeId)
        {
            PaymentEngineData OwnerDetailDataSet = new PaymentEngineData();
            Hashtable         ht = new Hashtable();

            ht.Add("@PayeeID", payeeId);
            Utility.LoadDataSet(OwnerDetailDataSet.PayeeDetail, "f1019_pcget_PayeeDetails", ht);
            return(OwnerDetailDataSet);
        }
Пример #5
0
 private void PeopleButton_Click(object sender, EventArgs e)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         string currentOwnerId = string.Empty;
         Form   paidbyF1019    = new Form();
         paidbyF1019 = this.form1019Control.WorkItem.Services.Get <TerraScan.Infrastructure.Interface.Services.IFormEngineService>().GetForm(9101, null, this.form1019Control.WorkItem);
         if (paidbyF1019 != null)
         {
             if (paidbyF1019.ShowDialog() == DialogResult.Yes)
             {
                 this.ownerId            = Convert.ToInt32(TerraScanCommon.GetValue(paidbyF1019, "MasterNameOwnerId"));
                 this.ownerDetailDataSet = this.form1019Control.WorkItem.F1019_GetPayeeDetails(this.ownerId);
                 this.CurrentOwnerID     = this.ownerId.ToString();
                 if (this.ownerDetailDataSet.PayeeDetail.Rows.Count > 0)
                 {
                     this.PaidByTextBox.Text   = this.ownerDetailDataSet.PayeeDetail.Rows[0]["PaidBy"].ToString();
                     this.Address1TextBox.Text = this.ownerDetailDataSet.PayeeDetail.Rows[0]["Address1"].ToString();
                     this.Address2TextBox.Text = this.ownerDetailDataSet.PayeeDetail.Rows[0]["Address2"].ToString();
                     this.CityTextBox.Text     = this.ownerDetailDataSet.PayeeDetail.Rows[0]["City"].ToString();
                     this.StateTextBox.Text    = this.ownerDetailDataSet.PayeeDetail.Rows[0]["State"].ToString();
                     this.ZipTextBox.Text      = this.ownerDetailDataSet.PayeeDetail.Rows[0]["Zip"].ToString();
                     this.CommentTextBox.Text  = this.ownerDetailDataSet.PayeeDetail.Rows[0]["Comment"].ToString();
                 }
                 else
                 {
                     this.PaidByTextBox.Text   = string.Empty;
                     this.Address1TextBox.Text = string.Empty;
                     this.Address2TextBox.Text = string.Empty;
                     this.CityTextBox.Text     = string.Empty;
                     this.StateTextBox.Text    = string.Empty;
                     this.ZipTextBox.Text      = string.Empty;
                     this.CommentTextBox.Text  = string.Empty;
                 }
             }
         }
     }
     catch (Exception ex)
     {
         ExceptionManager.ManageException(ex, ExceptionManager.ActionType.Display, this.ParentForm);
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }