Exemple #1
0
        /// <summary>
        /// Lists the tender type.
        /// </summary>
        /// <param name="allowOverUnder">if set to <c>true</c> [allow over under].</param>
        /// <returns>
        /// The Typed dataset containing the types of tender.
        /// </returns>
        public static ReceiptEngineData ListTenderType(bool allowOverUnder)
        {
            ReceiptEngineData receiptEngineData = new ReceiptEngineData();
            Hashtable         ht = new Hashtable();

            ht.Add("@AllowOverUnder", allowOverUnder);
            Utility.LoadDataSet(receiptEngineData.ListTenderType, "f1018_pclst_TenderType", ht);
            return(receiptEngineData);
        }
Exemple #2
0
        /// <summary>
        /// Lists the history information of the statement.
        /// </summary>
        /// <param name="statementId">The statement id.</param>
        /// <returns>
        /// The Typed dataset containing the history information of the statementid.
        /// </returns>
        public static ReceiptEngineData ListHistoryGrid(int statementId)
        {
            ReceiptEngineData receiptEngineData = new ReceiptEngineData();
            Hashtable         ht = new Hashtable();

            ht.Add("@StatementID", statementId);
            Utility.LoadDataSet(receiptEngineData.ListHistoryGrid, "f1000_pclst_ReceiptEngineHistory", ht);
            return(receiptEngineData);
        }
Exemple #3
0
        /// <summary>
        /// Get a cecipt detials.
        /// </summary>
        /// <param name="receiptId">The receipt id.</param>
        /// <returns>
        /// The Typed dataset containing the details of the reciept.
        /// </returns>
        public static ReceiptEngineData GetReceiptDetails(int receiptId)
        {
            ReceiptEngineData receiptEngineData = new ReceiptEngineData();
            Hashtable         ht = new Hashtable();

            ht.Add("@ReceiptID", receiptId);
            Utility.LoadDataSet(receiptEngineData, "f1000_pcget_Receipt", ht, new string[] { "GetReceiptDetails", "PaymentItems" });
            return(receiptEngineData);
        }
Exemple #4
0
        /// <summary>
        /// Saves the receipt.
        /// </summary>
        /// <param name="receiptItems">The receipt items.</param>
        /// <param name="paymentItems">The payment items.</param>
        /// <param name="userId">userId</param>
        /// <returns>
        /// The return value specifying status of the save action.
        /// </returns>
        public static ReceiptEngineData SaveReceipt(string receiptItems, string paymentItems, int userId)
        {
            ReceiptEngineData receiptEngineData = new ReceiptEngineData();
            Hashtable         ht = new Hashtable();

            ht.Add("@ReceiptItems", receiptItems);
            ht.Add("@PaymentItems", paymentItems);
            ht.Add("@UserID", userId);
            Utility.LoadDataSet(receiptEngineData.SaveReceiptResult, "f1000_pcins_Receipt", ht);
            return(receiptEngineData);
        }