/// <summary> /// Constructor, which sets all member values /// </summary> public ValidationDetails(String oldvalue, String val, String range, PIC pic, MgControlBase control) : this() { _picData = pic; _oldvalue = oldvalue; // old value of the field _val = val; // new inserted value of the field _range = range; _control = control; switch (pic.getAttr()) { case StorageAttribute.NUMERIC: _pictureReal = new StringBuilder(_picData.getMaskSize()); _pictureEnable = new StringBuilder(_picData.getMaskSize()); getRealNumericPicture(); break; case StorageAttribute.BOOLEAN: if (_range == null) { _range = "True,False"; // default range value for Logical } goto case StorageAttribute.DATE; case StorageAttribute.DATE: case StorageAttribute.TIME: case StorageAttribute.ALPHA: case StorageAttribute.BLOB: case StorageAttribute.BLOB_VECTOR: case StorageAttribute.UNICODE: break; default: Events.WriteExceptionToLog("ValidationDetails.ValidationDetails: There is no type " + _picData.getAttr()); break; } // get Range for the picture: if (_range != null) { fillRange(); } // free memory range = null; }
protected internal StorageAttribute getType() { return(_picData.getAttr()); }