示例#1
0
        public static string checkString(this List<AuditingDetail> record, string keyName)
        {
            AuditingDetail auditingDetail = record.Where(r => r.ColumnName == keyName).FirstOrDefault();

            string value = null;

            if(auditingDetail != null && auditingDetail.NewValue != "")
            {
               value = auditingDetail.NewValue;
            }

            return value;
        }
示例#2
0
        public static int? checkInteger(this List<AuditingDetail> record, string keyName)
        {
            AuditingDetail auditingDetail = record.Where(r => r.ColumnName == keyName).FirstOrDefault();

            int? value = null;

            if(auditingDetail != null && auditingDetail.NewValue != "")
            {
               value =  Convert.ToInt32(auditingDetail.NewValue);
            }

            return value;
        }
示例#3
0
        public static decimal? checkDecimal(this List<AuditingDetail> record, string keyName)
        {
            AuditingDetail auditingDetail = record.Where(r => r.ColumnName == keyName).FirstOrDefault();

            decimal? value = null;

            if(auditingDetail != null && auditingDetail.NewValue != "")
            {
               value =  Convert.ToDecimal(auditingDetail.NewValue);
            }

            return value;
        }
示例#4
0
        public static DateTime? checkDate(this List<AuditingDetail> record, string keyName)
        {
            AuditingDetail auditingDetail = record.Where(r => r.ColumnName == keyName).FirstOrDefault();

            DateTime? value = null;

            if(auditingDetail != null && auditingDetail.NewValue != "")
            {
               value =  Convert.ToDateTime(auditingDetail.NewValue, System.Globalization.CultureInfo.GetCultureInfo("hr-HR"));
            }

            return value;
        }