public void UpdateInstanceField(string fieldName, string fieldValue, string fieldType) { DBFormField fld = null; if (Fields.Count > 0 && Fields.ContainsKey(ALIAS_PREFIX + fieldName.ToUpper())) { fld = Fields[ALIAS_PREFIX + fieldName]; fld.FieldValue = fieldValue; fld.FieldType = fieldType; } else { //Create Field fld = new DBFormField(); fld.FieldName = ALIAS_PREFIX + fieldName.ToUpper(); fld.FieldValue = fieldValue; fld.FieldType = fieldType; fld.FormInstanceID = this.FormInstanceID; fld.RecGUID = fld.FormInstanceID + fld.FieldName; Fields.Add(fld.FieldName, fld); } }
public bool IsFormField(DBFormField Field, string TargetName) { return(Field.FieldName.ToUpper() == (ALIAS_PREFIX + TargetName).ToUpper()); }