/// <summary>
    /// Creates a CommCalcLineView object based on the FlatSlab control input
    /// </summary>
    /// <param name="uc">The FlatSlab user control</param>
    /// <returns>A CommCalcLineView object</returns>
    private FeeCalcLineHelper createFeeCalcLineHelper(FlatSlab uc)
    {
        FeeCalcLineHelper line = new FeeCalcLineHelper();

        line.FeePercentage = uc.Percentage;
        line.LowerRange = uc.FromRange;
        line.StaticCharge = uc.StaticCharge;
        return line;
    }
Esempio n. 2
0
    /// <summary>
    /// Creates a CommCalcLineView object based on the FlatSlab control input
    /// </summary>
    /// <param name="uc">The FlatSlab user control</param>
    /// <returns>A CommCalcLineView object</returns>
    private CommCalcLineView createCommCalcLineView(FlatSlab uc)
    {
        CommCalcLineView lineView = new CommCalcLineView();

        lineView.FeePercentage = uc.dBoxPercent.Value;
        lineView.LowerRange = uc.dBoxFrom.Value;
        lineView.StaticCharge = uc.dBoxStaticCharge.Value;
        lineView.Tariff = uc.dBoxTariff.Value;
        lineView.IsAmountBased = uc.IsAmountBased;

        return lineView;
    }