public static List<ShowDiscounts> getDiscountsByType(int ShowID, int DisType, int FixType )
        {
            String moduleSettings = ModuleConfig.GetSettings();
            Fpp.Data.ShowDiscounts sc = new Fpp.Data.ShowDiscounts(moduleSettings);

            List<ShowDiscounts> list = new List<ShowDiscounts>();
            DataSet ds = sc.getShowDiscountsByType(ShowID, DisType, FixType);
            foreach (DataRow row in ds.Tables[0].Rows)
            {
                list.Add(new ShowDiscounts(row));
            }
            return list;
        }
        public static List<ShowDiscounts> getClassChargeDetails(int ShowID)
        {
            String moduleSettings = ModuleConfig.GetSettings();
            Fpp.Data.ShowDiscounts sc = new Fpp.Data.ShowDiscounts(moduleSettings);

            List<ShowDiscounts> list = new List<ShowDiscounts>();
            DataSet ds = sc.getShowDiscounts(ShowID);
            foreach (DataRow row in ds.Tables[0].Rows)
            {
                list.Add(new ShowDiscounts(row));
            }
            return list;
        }
 public static void Delete(int ShowDiscountID)
 {
     String moduleSettings = ModuleConfig.GetSettings();
     Fpp.Data.ShowDiscounts sc = new Fpp.Data.ShowDiscounts(moduleSettings);
     sc.Delete(ShowDiscountID);
 }
 public ShowDiscounts(ShowDiscounts copy)
 {
     _showDiscounts = new Fpp.Data.ShowDiscounts(ModuleSettings);
     Amount = copy.Amount;
     DiscountType = copy.DiscountType;
     Subtype = copy.Subtype;
     VoucherCode = copy.VoucherCode;
     ChargeType = copy.ChargeType;
     Showid = copy.Showid;
     Save();
 }
 public ShowDiscounts(int ShowDiscountID)
 {
     _showDiscounts = new Fpp.Data.ShowDiscounts(ModuleSettings);
     DataSet ds = _showDiscounts.getShowDiscountsBy(ShowDiscountID);
     if (ds.Tables[0].Rows.Count > 0)
     {
         LoadFrom(ds.Tables[0].Rows[0]);
     }
 }
 public ShowDiscounts()
 {
     _showDiscounts = new Fpp.Data.ShowDiscounts(ModuleSettings);
 }