Ejemplo n.º 1
0
        //TODO: Do these need moving?
        public void UpdateInstanceField(string fieldName, string fieldValue, string fieldType)
        {
            DBFormField fld = null;

            if (Fields.Count > 0 && Fields.ContainsKey(Settings.ALIAS_PREFIX + fieldName.ToUpper()))
            {
                fld            = Fields[Settings.ALIAS_PREFIX + fieldName];
                fld.FieldValue = fieldValue;
                fld.FieldType  = fieldType;
            }
            else
            {
                //Create Field
                fld                = new DBFormField();
                fld.FieldName      = Settings.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);
            }
        }
Ejemplo n.º 2
0
 public bool IsFormField(DBFormField Field, string TargetName)
 {
     return(Field.FieldName.Equals(Settings.ALIAS_PREFIX + TargetName, StringComparison.CurrentCultureIgnoreCase));
 }