change createddate
This commit is contained in:
1 parent
d9f40a6ff2
commit
d296bb15ba
1 file changed
+2
-2
@@ -57,7 +57,7 @@ namespace Bizgaze.CRM.Visitors.Managers
|
|||||||
{
|
{
|
||||||
return SelectResponse<Unibase.Platform.Templates.Infos.PrintTemplate>.CreateErrorResponse("1", "Template Not Found");
|
return SelectResponse<Unibase.Platform.Templates.Infos.PrintTemplate>.CreateErrorResponse("1", "Template Not Found");
|
||||||
}
|
}
|
||||||
|
string CreatedDate = VisitorInfo_.Result.CreatedDate.ToString("dd-MM-yyyy HH:mm:ss");
|
||||||
var template = System.Web.HttpUtility.UrlDecode(templateInfo.TemplateText.ToString());
|
var template = System.Web.HttpUtility.UrlDecode(templateInfo.TemplateText.ToString());
|
||||||
string multiTemplateText = "";
|
string multiTemplateText = "";
|
||||||
if (template.Contains("{{fullname}}"))
|
if (template.Contains("{{fullname}}"))
|
||||||
@@ -82,7 +82,7 @@ namespace Bizgaze.CRM.Visitors.Managers
|
|||||||
}
|
}
|
||||||
if (template.Contains("{{createddate}}"))
|
if (template.Contains("{{createddate}}"))
|
||||||
{
|
{
|
||||||
template = template.Replace("{{createddate}}", VisitorInfo_.Result.CreatedDate.ToString());
|
template = template.Replace("{{createddate}}", CreatedDate.ToString());
|
||||||
}
|
}
|
||||||
if (template.Contains("{{photourl}}"))
|
if (template.Contains("{{photourl}}"))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user