Example #1
0
        /// <summary>
        /// Sets the request types URL.
        /// </summary>
        /// <remarks></remarks>
        //private void SetCardRequestTypesURL()

        //{
        //    try
        //    {

        //        long cardReplacementRequestId1 = 3;
        //        long cardReplacementRequestId2 = 16;
        //        //int RequestTypeIdForInternationalLimit = 26;
        //        if (Session[sessionCardHolderRequestTypes] != null)
        //        {
        //            List<CH_RequestType_MstDTO> lstRequestTypes = (List<CH_RequestType_MstDTO>)Session[sessionCardHolderRequestTypes];
        //            CH_RequestType_MstDTO objCardReplacement = lstRequestTypes.Find(x => x.RequestType_nm.Replace(" ", "").ToLower() == "cardreplacement");
        //            CH_RequestType_MstDTO objCardRenewal = lstRequestTypes.Find(x => x.RequestType_nm.Replace(" ", "").ToLower() == "cardrenewal");
        //            if (objCardReplacement != null)
        //                cardReplacementRequestId1 = objCardReplacement.RequestType_Id;

        //            if (objCardRenewal != null)
        //                cardReplacementRequestId2 = objCardRenewal.RequestType_Id;

        //            foreach (CH_RequestType_MstDTO RequestType in lstRequestTypes)
        //            {

        //                string requestTypeName = RequestType.RequestType_nm.Replace(" ", "").Replace("-", "").ToLower();

        //                if (requestTypeName == "statementmode")
        //                {
        //                    //hlnkSTATEMENTREQUEST.NavigateUrl = "~/ServiceRequest/StatementDeliveryMode.aspx?requestid=" + RequestType.RequestType_Id.ToString().EncryptURL();
        //                    hlnkCARDSTATEMENTREQUEST.NavigateUrl = "~/Card/PaymentRequest.aspx?requestid=" + RequestType.RequestType_Id.ToString().EncryptURL();
        //                }

        //            }
        //        }
        //        else
        //        {
        //            CardHolderRequestManager objCardHolderRequestType = new CardHolderRequestManager();
        //            List<CH_RequestType_MstDTO> lstRequestTypes = objCardHolderRequestType.getCHRequestTypes();
        //            CH_RequestType_MstDTO objCardReplacement = lstRequestTypes.Find(x => x.RequestType_nm.Replace(" ", "").ToLower() == "cardreplacement");
        //            CH_RequestType_MstDTO objCardRenewal = lstRequestTypes.Find(x => x.RequestType_nm.Replace(" ", "").ToLower() == "cardrenewal");
        //            if (objCardReplacement != null)
        //                cardReplacementRequestId1 = objCardReplacement.RequestType_Id;

        //            if (objCardRenewal != null)
        //                cardReplacementRequestId2 = objCardRenewal.RequestType_Id;

        //            foreach (CH_RequestType_MstDTO RequestType in lstRequestTypes)
        //            {
        //                string requestTypeName = RequestType.RequestType_nm.Replace(" ", "").Replace("-", "").ToLower();

        //                if (requestTypeName == "statementmode")
        //                {
        //                    //hlnkSTATEMENTREQUEST.NavigateUrl = "~/ServiceRequest/StatementDeliveryMode.aspx?requestid=" + RequestType.RequestType_Id.ToString().EncryptURL();
        //                    hlnkCARDSTATEMENTREQUEST.NavigateUrl = "~/Card/PaymentRequest.aspx?requestid=" + RequestType.RequestType_Id.ToString().EncryptURL();
        //                }
        //            }
        //            Session[sessionCardHolderRequestTypes] = lstRequestTypes;
        //        }
        //    }
        //    catch (Exception)
        //    {
        //        ScriptManager.RegisterStartupScript(this, GetType(), "showalert", "alert('" + Constants.strErrorRequestTypes + "');", true);
        //    }
        //}

        /// <summary>
        /// Sets the marquee.
        /// </summary>
        /// <param name="CardNumber">The card number.</param>
        /// <remarks></remarks>
        private void SetMarquee(string CardNumber)
        {
            Personal_MessageDTO Pdto = new Personal_MessageDTO();
            CardManager         cm   = new CardManager();

            Pdto = cm.GetPersonalMessage(new Personal_MessageDTO()
            {
                CARD_NUMBER = CardNumber
            });

            if (Pdto != null)
            {
                string PersonalMessge = Pdto.MESSAGE;
                //  string txtmarquee = "<marquee behavior='scroll' direction='left' onmouseover='this.stop()' onmouseout='this.start()'>" + PersonalMessge + "</marquee>";

                litMarquee.Text = PersonalMessge;
            }
            else
            {
                divmarq.Visible = false;
            }
        }
Example #2
0
 /// <summary>
 /// Gets the personal message.
 /// </summary>
 /// <param name="pDto">The p dto.</param>
 /// <returns></returns>
 /// <remarks></remarks>
 public Personal_MessageDTO GetPersonalMessage(Personal_MessageDTO pDto)
 {
     return(CardDALC.GetPersonalMessage(pDto));
 }