This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exec :pt_no := '88888888'; | |
select * | |
from ACPPRICD | |
where PT_NO = :pt_no ; | |
define in_pt_no = '88888888' | |
select * | |
from ACPPRICD |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public bool ValidateData(object data) | |
{ | |
foreach (PropertyInfo propertyInfo in data.GetType().GetProperties()) | |
{ | |
if (propertyInfo.PropertyType == typeof(DateTime) ) | |
{ | |
if (Convert.ToDateTime(propertyInfo.GetValue(data)) == DateTime.MinValue) | |
{ | |
propertyInfo.SetValue(data, DateTime.Now); | |
} |