Beispiel #1
0
        protected void lnkAdd_Click(object sender, EventArgs e)
        {
            try
            {
                AdministrationEDSC.RewardDTRow         dr    = GetDetails();
                AdministrationEDSC.RewardsDetailsDTRow drDet = GetRwrdDetails();
                AdministrationEDSC.RewardImageDTRow    drt   = GetImgDetails();

                if (dr != null)
                {
                    if (drt != null)
                    {
                        dr.RewardImage = true;
                    }
                    else
                    {
                        dr.RewardImage = false;
                    }
                    new AdministrationBFC().SaveRewards(dr, drDet, drt);
                    Response.Redirect("Default.aspx");
                }
            }
            catch (Exception esd)
            {
                addeddiv.Visible = true;
            }
        }
Beispiel #2
0
        protected void lnkUpdate_Click(object sender, EventArgs e)
        {
            AdministrationEDSC.RewardDTRow         dr    = GetDetails();
            AdministrationEDSC.RewardsDetailsDTRow drDet = GetRwrdDetails();

            AdministrationEDSC.RewardImageDTRow drt = GetImgDetails();

            if (Imagecheck == true)
            {
                dr.RewardImage = true;
            }
            else
            {
                dr.RewardImage = true;
            }
            if (dr != null)
            {
                new AdministrationBFC().UpdateRewards(dr, drDet, drt);
                SetRewardInformation();
            }
            addeddiv.Visible = true;
            FormMode         = (int)HealthyClub.Utility.SystemConstants.FormMode.View;
        }