Пример #1
0
		/// <summary>
		/// Create a new EmailAPRptColumn.
		/// </summary>
		/// <param name="columnDef">Column define.</param>
		public EmailAPRptColumn(StringAPColumnDef columnDef)
			: base(columnDef, RegexAPRptColumn.RegexEmail, "")
		{
		}
Пример #2
0
		/// <summary>
		/// Create a new EmailAPRptColumn.
		/// </summary>
		/// <param name="columnDef">Column define.</param>
		/// <param name="id">Column unique ID.</param>
		/// <param name="title">Title.</param>
		public EmailAPRptColumn(StringAPColumnDef columnDef, string id, string title)
			: base(columnDef, id, title, RegexAPRptColumn.RegexEmail, "")
		{
		}
		/// <summary>
		/// Create a new MultiLineTextAPRptColumn.
		/// </summary>
		/// <param name="columnDef">Column define.</param>
		public MultiLineTextAPRptColumn(StringAPColumnDef columnDef)
			: base(columnDef)
		{
		}
		/// <summary>
		/// Create a new MultiLineTextAPRptColumn.
		/// </summary>
		/// <param name="columnDef">Column define.</param>
		/// <param name="id">Column unique ID.</param>
		/// <param name="title">Title.</param>
		public MultiLineTextAPRptColumn(StringAPColumnDef columnDef, string id, string title)
			: base(columnDef, id, title)
		{
		}
Пример #5
0
		/// <summary>
		/// Create a new UrlAPRptColumn.
		/// </summary>
		/// <param name="columnDef">Column define.</param>
		public UrlAPRptColumn(StringAPColumnDef columnDef)
			: base(columnDef, RegexAPRptColumn.RegexUrl, "")
		{
		}
Пример #6
0
 /// <summary>
 /// Get value from a data reader.
 /// </summary>
 /// <param name="columnDef">StringAPColumnDef</param>
 /// <param name="reader">Data reader.</param>
 /// <param name="columnName">Name of column.</param>
 /// <returns>Value</returns>
 public static String GetValue(this StringAPColumnDef columnDef, IDataReader reader, string columnName)
 {
     return(GetValue <String>(columnDef, reader, columnName, throwIfValidColumnName: true, defaultValue: default(String)));
 }
Пример #7
0
		/// <summary>
		/// Create a new LongTextAPRptColumn.
		/// </summary>
		/// <param name="columnDef">Column define.</param>
		/// <param name="id">Column unique ID.</param>
		/// <param name="title">Title.</param>
		public LongTextAPRptColumn(StringAPColumnDef columnDef, string id, string title)
			: base(columnDef, id, title)
		{
		}
Пример #8
0
		/// <summary>
		/// Create a new LongTextAPRptColumn.
		/// </summary>
		/// <param name="columnDef">Column define.</param>
		public LongTextAPRptColumn(StringAPColumnDef columnDef)
			: base(columnDef)
		{
		}
Пример #9
0
		/// <summary>
		/// Create a new RegexAPRptColumn.
		/// </summary>
		/// <param name="columnDef">Column define.</param>
		/// <param name="id">Column unique ID.</param>
		/// <param name="title">Title.</param>
		/// <param name="pattern">Pattern of Regex.</param>
		/// <param name="message">Invalidated message.</param>
		public RegexAPRptColumn(StringAPColumnDef columnDef, string id, string title, string pattern, string message)
			: base(columnDef, id, title)
		{
			_pattern = pattern;
			_message = message;
		}
Пример #10
0
		/// <summary>
		/// Create a new TextAPRptColumn.
		/// </summary>
		/// <param name="columnDef">Column define.</param>
		/// <param name="id">Column unique ID.</param>
		/// <param name="title">Title.</param>
		public TextAPRptColumn(StringAPColumnDef columnDef, string id, string title)
			: base(columnDef, id, title)
		{
			_dataLength = columnDef.Length;
		}
Пример #11
0
		/// <summary>
		/// Create a new TextAPRptColumn.
		/// </summary>
		/// <param name="columnDef">Column define</param>
		public TextAPRptColumn(StringAPColumnDef columnDef)
			: base(columnDef)
		{
			_dataLength = columnDef.Length;
		}