/// <summary> /// Gets the form title. /// </summary> /// <param name="formId">The form id.</param> /// <returns>String with Title</returns> public static string GetFormTitle(int formId) { object tempvalue = null; Hashtable ht = new Hashtable(); ht.Add("@FormID", formId); tempvalue = DataProxy.FetchSpObject("f9001_pcget_TitleCaption", ht); if (tempvalue != null) { return(tempvalue.ToString()); } return(string.Empty); }
/// <summary> /// Gets the penalty percent. /// </summary> /// <param name="filingDate">The filing date.</param> /// <returns>PenaltyPercent</returns> public static decimal GetPenaltyPercent(string filingDate) { object tempvalue = null; Hashtable ht = new Hashtable(); ht.Add("@FilingDate", filingDate); tempvalue = DataProxy.FetchSpObject("f2200_pcget_PPPenaltyPercent", ht); if (tempvalue != null) { return((decimal)tempvalue); } return(0); }
/// <summary> /// Test for reciept validity /// </summary> /// <param name="statementId">The statement id.</param> /// <param name="receiptDate">The transaction date of the reciept.</param> /// <returns>The string containing the recipiet's validity information.</returns> public static string GetValidReceiptTest(int statementId, DateTime receiptDate) { object tempvalue = null; Hashtable ht = new Hashtable(); ht.Add("@StatementId", statementId); ht.Add("@ReceiptDate", receiptDate); tempvalue = DataProxy.FetchSpObject("f1009_pcget_ValidReceiptTest", ht); if (tempvalue != null) { return(tempvalue.ToString()); } return(string.Empty); }
/// <summary> /// Get the interest amoount. /// </summary> /// <param name="statmentId">The statment id.</param> /// <param name="interestDate">The interest date of the reciept.</param> /// <param name="taxDueAmount">The tax due amount.</param> /// <returns> /// The decimal containing the interest information. /// </returns> public static decimal GetInterestAmount(int statmentId, string interestDate, decimal taxDueAmount) { object tempvalue = null; Hashtable ht = new Hashtable(); ht.Add("@StatmentID", statmentId); ht.Add("@InterestDate", interestDate); ht.Add("@TaxAmount", taxDueAmount); tempvalue = DataProxy.FetchSpObject("f1004_pcget_InterestAmount", ht); if (tempvalue != null) { return((decimal)tempvalue); } return(0); }
/// <summary> /// Gets the minimum tax due amount /// </summary> /// <param name="statmentId">The statment id.</param> /// <param name="interestDate">The interest date of the reciept.</param> /// <returns> /// The decimal containing minimum tax amount due. /// </returns> public static decimal GetMinTaxDue(int statmentId, string interestDate) { object tempvalue = null; Hashtable ht = new Hashtable(); ht.Add("@StatmentID", statmentId); ht.Add("@InterestDate", interestDate); tempvalue = DataProxy.FetchSpObject("f1003_pcget_MinTaxDue", ht); if (tempvalue != null) { return((decimal)tempvalue); } return(0); }
/// <summary> /// Gets the exemption loss. /// </summary> /// <param name="lossValue">The loss value.</param> /// <param name="maxValue">The max value.</param> /// <returns>Returns Loss value</returns> public static decimal GetExemptionLoss(decimal lossValue, decimal maxValue) { object tempvalue = null; Hashtable ht = new Hashtable(); ht.Add("@Loss", lossValue); ht.Add("@Maximum", maxValue); tempvalue = DataProxy.FetchSpObject("f29650_pcget_FrozenLoss", ht); if (tempvalue != null) { return((decimal)tempvalue); } return(0); }
public static decimal F2200_GetFarmExemptAmount(int scheduleId, bool isFarmExempt, int ExemptRollYear, bool isEx259, decimal ex259Amount) { object tempValue = null; Hashtable ht = new Hashtable(); ht.Add("@ScheduleID", scheduleId); ht.Add("@IsFarmExempt", isFarmExempt); ht.Add("@FarmExemptYear", ExemptRollYear); ht.Add("@Is259Exempt", isEx259); ht.Add("@Exempt259Amount", ex259Amount); tempValue = DataProxy.FetchSpObject("f2200_pcget_GetFarmExemptAmount_NE", ht); if (!string.IsNullOrEmpty(tempValue.ToString())) { return((decimal)tempValue); } return(0); }