void _view_InsertCommand(object sender, EventArgs e)
    {
        try
        {
            MissingCashBack item = new MissingCashBack();


            item.TransactionDate = _view.TransactionDate;
            item.MID             = _view.MID;
            //item.UserID = (Guid)Membership.GetUser().ProviderUserKey;
            item.OrderID    = _view.OrderID;
            item.AmountPaid = _view.AmountPaid;
            item.CouponCode = _view.CouponCode;
            item.Details    = _view.Details;
            item.FileUrl    = _view.FileUrl;
            item.ContactNo  = _view.ContactNo;

            item.Status = _view.Status;
            _model.DBOperation(Constants.Action.Insert, item);
            _view.strMessage = "Successfully Submitted!!";
            LoadViewFromModel();

            _view.DataBind();
        }
        catch (Exception ex)
        {
            _view.strMessage = ex.Message;
        }
    }
Esempio n. 2
0
    void _view_InsertCommand(object sender, EventArgs e)
    {
        try
        {
            Merchant_Banner c = new Merchant_Banner();

            c.BannerText      = _view.BannerText;
            c.BannerType      = _view.BannerType;
            c.BannerURL       = _view.BannerURL;
            c.Price           = _view.Price;
            c.DiscountedPrice = _view.DiscountedPrice;
            c.Description     = _view.Description;

            c.BannerLocation = _view.BannerLocation;
            c.MID            = _view.MID;

            _model.DBOperation(Constants.Action.Insert, c);
            _view.strMessage = "Successfully Inserted!!!";



            LoadViewFromModel();

            _view.DataBind();
        }
        catch (Exception ex)
        {
            _view.strMessage = ex.Message;
        }
    }
Esempio n. 3
0
    void _view_InsertCommand(object sender, EventArgs e)
    {
        try
        {
            Merchant_ApiURL c = new Merchant_ApiURL();

            c.APIType         = _view.APIType;
            c.ApiName         = _view.ApiName;
            c.ApiURL          = _view.ApiURL;
            c.ExpireOn        = _view.ExpireOn;
            c.ApiScheduleType = _view.ApiScheduleType;
            c.RunOnTime       = _view.RunOnTime;
            _model.DBOperation(Constants.Action.Insert, c);
            _view.strMessage = "Successfully Inserted!!!";

            c.ApiName = string.Empty;
            c.ApiURL  = string.Empty;

            LoadViewFromModel();

            _view.DataBind();
        }
        catch (Exception ex)
        {
            _view.strMessage = ex.Message;
        }
    }
Esempio n. 4
0
    void _view_InsertCommand(object sender, EventArgs e)
    {
        try
        {
            foreach (Merchant_Deal deal in _view.Merchant_Deals)
            {
                //Merchant_Deal var = new Merchant_Deal();

                //var.MID = _view.MID;
                //var.ProductCategoryName = _view.ProductCategoryName;
                //var.Title = _view.Title;
                //var.Description = _view.Description;
                //var.Availability = _view.Availability;
                //var.CouponCode = _view.NavigationURL;
                //var.ImageUrl = _view.NavigationURL;

                //var.SerialNo = _view.SerialNo;
                //var.NavigationURL = _view.NavigationURL;
                deal.CreatedDate = DateTime.Now;

                _model.DBOperation(Constants.Action.Insert, deal);
            }
            _view.strMessage = "Successfully Inserted!!!";
            LoadViewFromModel();
            _view.DataBind();
        }
        catch (Exception ex)
        {
            _view.strMessage = ex.Message;
        }
    }
Esempio n. 5
0
    void _view_InsertCommand(object sender, EventArgs e)
    {
        try
        {
            // Merchant c = new Merchant();

            //foreach (Merchant c in _view.Merchants)
            //{
            Merchant item = new Merchant();
            //item.MerchantID = _view.MerchantID;
            item.MerchantDetails         = _view.MerchantDetails;
            item.Status_N                = Constants.Status.Active;
            item.CountryCode             = "IN";
            item.AffiliateID             = _view.AffiliateID;
            item.OMGMID                  = _view.OMGMID;
            item.MerchantLogoUrl         = _view.LogoUrl;
            item.MerchantNameDetail      = _view.MerchantNameDetail;
            item.MerchantNameDescription = _view.MerchantNameDescription;
            item.MerchantLinkType        = _view.MerchantLinkType;
            //item.PID = c.PID;
            //item.MerchantLogoUrl = c.MerchantLogoUrl;
            //item.ProgramName = c.ProgramName;
            //item.ProductDescription = c.ProductDescription;
            //item.Sector = c.Sector;
            //item.Commision = c.Commision;
            //item.CountryCode = c.CountryCode;
            //item.PayoutType = c.PayoutType;
            //item.CookieDuration = c.CookieDuration;

            //item.DeepLinkEnabled = (Constants.YesNo)c.DeepLinkEnabled;
            //item.ProductfeedAvailable = (Constants.YesNo)c.ProductfeedAvailable;
            //item.UIDTracking = (Constants.YesNo)c.UIDTracking;
            //item.WebsiteUrl = c.WebsiteUrl;
            item.TrackingURL = _view.TrackingURL;



            _model.DBOperation(Constants.Action.Insert, item);
            //}
            _view.strMessage = "Successfully Inserted!!!";
            LoadViewFromModel();
            _view.DataBind();
        }
        catch (Exception ex)
        {
            _view.strMessage = ex.Message;
        }
    }
    void _view_InsertCommand(object sender, EventArgs e)
    {
        try
        {
            if (_view.Merchant_Offers == null)
            {
                Merchant_Offer c = new Merchant_Offer();

                c.MID             = _view.MID;
                c.CouponForDevice = (Constants.Device)_view.CouponForDevice;
                c.Title           = _view.Title;
                c.Description     = _view.Description;
                c.ValidTill       = _view.ValidTill;
                c.NavigationURL   = _view.NavigationURL;
                c.CouponCode      = _view.CouponCode;
                c.VoucherCodeID   = _view.VoucherCodeID;
                c.ActivationDate  = _view.StartDate;
                c.OfferType       = _view.OfferType;
                _model.DBOperation(Constants.Action.Insert, c);
                _view.strMessage = "Successfully Inserted!!!";
                LoadViewFromModel();

                c.Title         = string.Empty;
                c.Description   = string.Empty;
                c.NavigationURL = string.Empty;
                c.CouponCode    = string.Empty;
            }
            else
            {
                foreach (Merchant_Offer _item in _view.Merchant_Offers)
                {
                    _model.DBOperation(Constants.Action.Insert, _item);
                }
                _view.strMessage = "Successfully insert!!!";
            }
            _view.DataBind();
        }
        catch (Exception ex)
        {
            _view.strMessage = ex.InnerException.Message;
        }
    }
Esempio n. 7
0
    void _view_InsertCommand(object sender, EventArgs e)
    {
        try
        {
            foreach (Merchant_Commision view in _view.Merchant_Commisions)
            {
                //Merchant_Commision item = new Merchant_Commision();

                //item.MerchantID = view.MerchantID;
                //item.Commision = view.Commision;
                //item.UserCommision = view.UserCommision;
                //item.ProgramName = view.ProgramName;
                //item.Currency = view.Currency;

                //item.PID = view.PID;
                ////item.MerchantLogoUrl = _view.MerchantLogoUrl;
                //item.ProgramName = view.ProgramName;
                //item.ProductDescription = view.ProductDescription;
                //item.Sector = view.Sector;
                //item.PayoutType = view.PayoutType;
                //item.CookieDuration = view.CookieDuration;

                //item.DeepLinkEnabled = (Constants.YesNo)view.DeepLinkEnabled;
                //item.ProductfeedAvailable = (Constants.YesNo)view.ProductfeedAvailable;
                //item.UIDTracking = (Constants.YesNo)view.UIDTracking;
                //item.WebsiteUrl = view.WebsiteUrl;
                //item.TrackingURL = view.TrackingURL;
                //item.Status = _view.Status;

                _model.DBOperation(Constants.Action.Insert, view);
            }
            _view.strMessage = "Successfully Inserted!!!";
            LoadViewFromModel();

            _view.DataBind();
        }
        catch (Exception ex)
        {
            _view.strMessage = ex.InnerException.Message;
        }
    }
    void _view_InsertCommand(object sender, EventArgs e)
    {
        try
        {
            Merchant_Coupon var = new Merchant_Coupon();

            var.MID             = _view.MID;
            var.Coupon          = _view.Coupon;
            var.CouponForDevice = (Constants.Device)_view.CouponForDevice;
            var.Offer           = _view.Offer;
            var.ValidTill       = _view.ValidTill;
            var.NavigationURL   = _view.NavigationURL;

            _model.DBOperation(Constants.Action.Insert, var);
            _view.strMessage = "Successfully Inserted!!!";
            LoadViewFromModel();
            _view.DataBind();
        }
        catch (Exception ex)
        {
            _view.strMessage = ex.Message;
        }
    }