Example #1
0
    private decimal GetLandRate(string landType, int DistrictCode, int TalukaCode, int VillageCode, string SchemeNo, string SchemeType)
    {
        decimal retValue = 0;
        JantriRatesTableAdapter JantriAdapter = new JantriRatesTableAdapter();
        JantriTable             dt            = JantriAdapter.GetLandRatesByTpNo(DistrictCode, TalukaCode, VillageCode, SchemeNo);

        if (dt.Rows.Count > 0)
        {
            retValue = Convert.ToDecimal(dt.Rows[0][landType]);
        }

        return(retValue);
    }
Example #2
0
    private decimal GetLandRate(string landType, int DistrictCode, int TalukaCode, int VillageCode, string SchemeNo, string SchemeType)
    {
        decimal retValue = 0;
        JantriRatesTableAdapter JantriAdapter = new JantriRatesTableAdapter();
        JantriTable dt = JantriAdapter.GetLandRatesByTpNo(DistrictCode, TalukaCode, VillageCode, SchemeNo);
        if (dt.Rows.Count > 0)
        {
            retValue = Convert.ToDecimal(dt.Rows[0][landType]);
        }

        return retValue;
    }