Exemplo n.º 1
0
        public static void SendFailedMail4SO(SOEntity soEntity, ProductGroupBuyingEntity group)
        {
            CustomerInfo customerInfo = CommonDA.GetCustomerBySysNo(soEntity.SOMaster.CustomerSysNo, CompanyCode);

            if (customerInfo == null || customerInfo.Email == null)
            {
                return;
            }

            group.LowerLimitSellCount = CommonDA.GetLowerLimitSellCount(group.SystemNumber);
            string mailFrom = "IPPSystem";
            string mailTo   = Util.TrimNull(customerInfo.Email);

            string mailSubject = "您在新蛋的订单SO#" + soEntity.SOMaster.SystemNumber + "团购失败,订单取消";
            string mailBody    = BuildFailedMail(customerInfo, soEntity, group);



            CommonServiceAdapter.SendEmail2MailDb(mailFrom, mailTo, null, null, mailSubject, mailBody, CompanyCode);
        }