예제 #1
0
    protected void SendEmailForBankTransferPayment()
    {
        string mailbody = string.Empty;
        string url      = Request.Url.ToString().Substring(0, Request.Url.ToString().LastIndexOf("/"));
        string bodyhtml = clsCommon.ReadFile("mailer_BankTransfer.html");
        //string logo = url + "/img/CMS-logo.jpg";
        string logo = ConfigurationSettings.AppSettings["Mailer_Image"].ToString(); //url + "/img/CMS-logo.jpg";

        bodyhtml = bodyhtml.Replace("#logo#", logo);
        //bodyhtml = bodyhtml.Replace("#membername#", PayeeName);
        bodyhtml = bodyhtml.Replace("#registrationno#", RegistrationNo.ToString().Trim());


        //string Frommail = clsMails.MailFrom;
        //string ToMail = clsMails.MailTo;
        //string subject = "Contact Us queries/suggestions information.";
        //clsMails.SendWebMail(ToMail, Frommail, subject, bodyhtml);

        //string subject = "Content Marketing Summit Asia 2015";
        string subject = "Content Marketing Summit Asia";


        try
        {
            clsCommon.SendMail(Session["ToEmailString"].ToString(), bodyhtml.ToString(), subject);

            clsCommon.PageAlert(Page, "Thank you for contacting us! We will get back soon.", "Registration.aspx");
        }
        catch (Exception ex)
        {
            Response.Write(ex.Message.ToString());
        }
    }
        public JsonResult ReadyRegistrationNo(RegistrationNo registtration)
        {
            var           latestposition = Employee.SupervisingHistory(registtration.Id).Where(x => x.To.Year == 1905).First();
            HRSupervisory sup            = new HRSupervisory();

            sup.Id           = registtration.Id;
            sup.PartnerId    = latestposition.PartnerId;
            sup.ManagerId    = latestposition.ManagerId;
            sup.From         = latestposition.From;
            sup.DepartmentId = Lists4CV.Department.Where(x => x.Name == "Administration").Select(x => x.Id).First();

            Employee emp = new Employee();
            string   msg = emp.UpdateRegistrationNo(sup, registtration.RegNo, registtration.PeriodOfCourse);

            return(Json(msg, JsonRequestBehavior.AllowGet));
        }
        public virtual int _GetUniqueIdentifier()
        {
            var hashCode = 399326290;

            hashCode = hashCode * -1521134295 + (InvestorId?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (PrimaryPhone?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (SecondaryPhone?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Fax?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (WebSite?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Company?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (ContactPerson?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Logo?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (SupervisingAuthority?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (RegistrationNo?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (DomainFocus?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (TurnOver?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (VatNumber?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (AddressTwo?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (AddressOne?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (ManagingDirector?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (TargetMarket?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (CustomerSizeFrom?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (CustomerSizeTo?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (LocalJurisdiction?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (CommercialRegNo?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (OtherMinRequirements?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (CRR.GetHashCode());
            hashCode = hashCode * -1521134295 + (UploadCompliance?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (OtherMemberships?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (OtherDomainFocus?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (InvestorStatus?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (IAFC.GetHashCode());
            hashCode = hashCode * -1521134295 + (Prefix?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (UserName?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (PasswordHash?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (SecurityStamp?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (EmailConfirmed.GetHashCode());
            hashCode = hashCode * -1521134295 + (LockoutEnabled.GetHashCode());
            hashCode = hashCode * -1521134295 + (PhoneNumberConfirmed.GetHashCode());
            hashCode = hashCode * -1521134295 + (TwoFactorEnabled.GetHashCode());
            hashCode = hashCode * -1521134295 + (AccessFailedCount?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Name?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Email?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (PhoneNumber?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (LockoutEndDate?.GetHashCode() ?? 0);
            return(hashCode);
        }