public ActionResult TranslationReply(string translationContent)
        {
            string filePath = string.Empty;

            if (Request.Files.Count > 0 && Request.Files[0].ContentLength > 0)
            {
                HttpPostedFileBase file     = Request.Files[0];
                string             fuleName = DateTime.Now.ToString("yyyyMMddHHmmsss") + file.FileName.Substring(file.FileName.LastIndexOf("."));
                filePath = "/uploadFile/" + fuleName;
                string fileName = Server.MapPath("/uploadFile/") + fuleName;
                file.SaveAs(fileName);
            }
            long replyfollowId = 0;

            if (!string.IsNullOrEmpty(Request["replyfollowId"]))
            {
                long.TryParse(Request["replyfollowId"].ToString(), out replyfollowId);
            }
            long translationId = 0;

            if (!string.IsNullOrEmpty(Request["emailTranslationId"]))
            {
                long.TryParse(Request["emailTranslationId"].ToString(), out translationId);
            }
            string content = translationContent;


            if (replyfollowId == 0)
            {
                TranslationService.CreateEmailFollow(translationId, content, filePath);
            }
            else
            {
                TranslationService.ReplyTranslation(replyfollowId, translationId, content, CurrentManager, filePath);
            }
            return(Redirect("/Translation/EmailTranslationDetail/" + translationId));
        }
        public ActionResult SendEnquiryEmail(long enquiryId, string emailContent, long emailTranslationId)
        {
            string filePath = string.Empty;

            if (Request.Files.Count > 0 && Request.Files[0].ContentLength > 0)
            {
                HttpPostedFileBase file     = Request.Files[0];
                string             fuleName = DateTime.Now.ToString("yyyyMMddHHmmsss") + file.FileName.Substring(file.FileName.LastIndexOf("."));
                filePath = "/uploadFile/" + fuleName;
                string fileName = Server.MapPath("/uploadFile/") + fuleName;
                file.SaveAs(fileName);
            }
            if (enquiryId != 0)
            {
                string targetLanguage = Request["targetLanguage"];
                if (emailTranslationId != 0)
                {
                    TranslationService.CreateEmailFollow(emailTranslationId, emailContent, filePath, targetLanguage);
                }
                else
                {
                    Manager          superManager     = ManageService.GetSuperManager();
                    Enquiry          enquiry          = EnquiryService.GetEnquiryById(enquiryId);
                    EmailTranslation emailTranslation = EmailTranslationFactory.Create(superManager.Id,
                                                                                       enquiry.VisitLanguage, CurrentManager.RealName, CurrentManager.Id, "询盘邮件", emailContent,
                                                                                       filePath);
                    emailTranslation.TargetLanguage = targetLanguage;
                    emailTranslation.EnquiryId      = enquiryId;
                    EmailFollow emailFollow = EmailFollowFactory.Create(0, emailContent, enquiry.VisitLanguage,
                                                                        enquiry.VisitLanguage, filePath);
                    emailFollow.TargetLanguage = targetLanguage;
                    string result = TranslationService.SaveTranslation(emailTranslation, emailFollow);
                }
            }
            return(Redirect("/Enquiry/EnquiryDetail/" + enquiryId));
        }