Ver código fonte

change createddate

Narmada 2 anos atrás
pai
commit
d296bb15ba
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2
    2
      CRM.Visitors/Managers/VisitorManager.Async.cs

+ 2
- 2
CRM.Visitors/Managers/VisitorManager.Async.cs Ver arquivo

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
                 {

Carregando…
Cancelar
Salvar