Narmada 2 лет назад
Родитель
Сommit
d296bb15ba
1 измененных файлов: 2 добавлений и 2 удалений
  1. 2
    2
      CRM.Visitors/Managers/VisitorManager.Async.cs

+ 2
- 2
CRM.Visitors/Managers/VisitorManager.Async.cs Просмотреть файл

57
                 {
57
                 {
58
                     return SelectResponse<Unibase.Platform.Templates.Infos.PrintTemplate>.CreateErrorResponse("1", "Template Not Found");
58
                     return SelectResponse<Unibase.Platform.Templates.Infos.PrintTemplate>.CreateErrorResponse("1", "Template Not Found");
59
                 }
59
                 }
60
-
60
+                string CreatedDate = VisitorInfo_.Result.CreatedDate.ToString("dd-MM-yyyy HH:mm:ss");
61
                 var template = System.Web.HttpUtility.UrlDecode(templateInfo.TemplateText.ToString());
61
                 var template = System.Web.HttpUtility.UrlDecode(templateInfo.TemplateText.ToString());
62
                 string multiTemplateText = "";
62
                 string multiTemplateText = "";
63
                 if (template.Contains("{{fullname}}"))
63
                 if (template.Contains("{{fullname}}"))
82
                 }
82
                 }
83
                 if (template.Contains("{{createddate}}"))
83
                 if (template.Contains("{{createddate}}"))
84
                 {
84
                 {
85
-                    template = template.Replace("{{createddate}}", VisitorInfo_.Result.CreatedDate.ToString());
85
+                    template = template.Replace("{{createddate}}", CreatedDate.ToString());
86
                 }
86
                 }
87
                 if (template.Contains("{{photourl}}"))
87
                 if (template.Contains("{{photourl}}"))
88
                 {
88
                 {

Загрузка…
Отмена
Сохранить