Exemplo n.º 1
0
        private static DataRow SP_30_FillIncentiveDetailsRebateCalc(int tdxTermsID, int baseAmount, DataRow resultRow)
        {
            // RebateAmount,UtilityLogoURL,TdxIncentiveID,RatingModelTdxID = SP_30(tdxTermsID,baseAmountForRebateCalculation-hardcoded)
            sp_030_select_incentive_details_rebateCalcTableAdapter taIncentiveDetailRebateCalc = new sp_030_select_incentive_details_rebateCalcTableAdapter();

            Search.sp_030_select_incentive_details_rebateCalcDataTable dtIncentiveDetailRebateCalc = taIncentiveDetailRebateCalc.GetIncentiveDetailsRebateCalc(tdxTermsID, baseAmount);

            //Get Above info into that partially filled result row which comes as input
            if (dtIncentiveDetailRebateCalc.Rows.Count > 0)
            {
                resultRow["RebateAmount"]   = dtIncentiveDetailRebateCalc.Rows[0]["RebateAmount"];
                resultRow["UtilityLogoURL"] = dtIncentiveDetailRebateCalc.Rows[0]["UtilityLogoURL"];
                resultRow["TdxIncentiveID"] = dtIncentiveDetailRebateCalc.Rows[0]["TdxIncentiveID"];
            }

            //return result row after filling in model info into this
            return(resultRow);
        }
Exemplo n.º 2
0
        private static DataRow SP_30_FillIncentiveDetailsRebateCalc(int tdxTermsID, int baseAmount, DataRow resultRow)
        {
            // RebateAmount,UtilityLogoURL,TdxIncentiveID,RatingModelTdxID = SP_30(tdxTermsID,baseAmountForRebateCalculation-hardcoded)
            sp_030_select_incentive_details_rebateCalcTableAdapter taIncentiveDetailRebateCalc = new sp_030_select_incentive_details_rebateCalcTableAdapter();
            Search.sp_030_select_incentive_details_rebateCalcDataTable dtIncentiveDetailRebateCalc = taIncentiveDetailRebateCalc.GetIncentiveDetailsRebateCalc(tdxTermsID, baseAmount);

            //Get Above info into that partially filled result row which comes as input
            if (dtIncentiveDetailRebateCalc.Rows.Count > 0)
            {
                resultRow["RebateAmount"] = dtIncentiveDetailRebateCalc.Rows[0]["RebateAmount"];
                resultRow["UtilityLogoURL"] = dtIncentiveDetailRebateCalc.Rows[0]["UtilityLogoURL"];
                resultRow["TdxIncentiveID"] = dtIncentiveDetailRebateCalc.Rows[0]["TdxIncentiveID"];
            }

            //return result row after filling in model info into this
            return resultRow;
        }