public override void UpdateFormProperty(FormProperty formProperty)
 {
     using (TransactionScope transaction = new TransactionScope(mConfiguration))
     {
         FormPropertyDataStore dataStore = new FormPropertyDataStore(transaction);
         dataStore.Update(formProperty);
         transaction.Commit();
     }
 }
 public override FormProperty GetFormProperty(string id)
 {
     using (TransactionScope transaction = new TransactionScope(mConfiguration))
     {
         FormPropertyDataStore dataStore    = new FormPropertyDataStore(transaction);
         FormProperty          formProperty = dataStore.FindByKey(id);
         //if (formDefinition == null)
         //    throw new FormNotFoundException(id);
         return(formProperty);
     }
 }
 public override FormProperty CreateFormProperty(FormDefinition formDefinition, string name, string datatype, int sequenceNo)
 {
     using (TransactionScope transaction = new TransactionScope(mConfiguration))
     {
         FormPropertyDataStore dataStore    = new FormPropertyDataStore(transaction);
         FormProperty          formProperty = new FormProperty(formDefinition, name, datatype, sequenceNo);
         dataStore.Insert(formProperty);
         transaction.Commit();
         return(formProperty);
     }
 }
 public override FormProperty GetFormPropertyByName(string name, bool throwIfNotFound)
 {
     using (TransactionScope transaction = new TransactionScope(mConfiguration))
     {
         FormPropertyDataStore dataStore    = new FormPropertyDataStore(transaction);
         FormProperty          formProperty = dataStore.FindByName(name);
         //if (formDefinition == null && throwIfNotFound)
         //    throw new FormNotFoundException(name);
         //else if (formDefinition == null)
         //    return null;
         return(formProperty);
     }
 }
 public override FormPropertyInstance GetFormPropertyInstanceByKeys(FormInstance formInstance, FormProperty formProperty, bool throwIfNotFound)
 {
     using (TransactionScope transaction = new TransactionScope(mConfiguration))
     {
         throw new NotImplementedException("GetFormPropertyInstanceByKeys not implemented");
         //FormPropertyInstanceDataStore dataStore = new FormPropertyInstanceDataStore(transaction);
         //FormPropertyInstance formPropertyInstance = dataStore.find.FindByName(name);
         //if (formDefinition == null && throwIfNotFound)
         //    throw new FormNotFoundException(name);
         //else if (formDefinition == null)
         //    return null;
         //return formPropertyInstance;
         //return null;
     }
 }
 public override FormPropertyInstance CreateFormPropertyInstance(FormInstance formInstance, FormProperty formProperty, string value)
 {
     using (TransactionScope transaction = new TransactionScope(mConfiguration))
     {
         FormPropertyInstanceDataStore dataStore            = new FormPropertyInstanceDataStore(transaction);
         FormPropertyInstance          formPropertyInstance = new FormPropertyInstance(formInstance, formProperty, value);
         dataStore.Insert(formPropertyInstance);
         transaction.Commit();
         return(formPropertyInstance);
     }
 }
예제 #7
0
 public static void UpdateFormProperty(FormProperty formProperty)
 {
     Provider.UpdateFormProperty(formProperty);
 }
예제 #8
0
 public static void DeleteFormProperty(FormProperty formProperty)
 {
     Provider.DeleteFormProperty(formProperty);
 }
예제 #9
0
 public static FormPropertyInstance CreateFormPropertyInstance(FormInstance formInstance, FormProperty formProperty, string value)
 {
     return(Provider.CreateFormPropertyInstance(formInstance, formProperty, value));
 }
예제 #10
0
 public abstract FormPropertyInstance GetFormPropertyInstanceByKeys(FormInstance formInstance, FormProperty formProperty, bool throwIfNotFound);
예제 #11
0
 public abstract FormPropertyInstance CreateFormPropertyInstance(FormInstance formInstance, FormProperty formProperty, string value);
예제 #12
0
 public abstract void DeleteFormProperty(FormProperty formProperty);
예제 #13
0
 public abstract void UpdateFormProperty(FormProperty formProperty);
예제 #14
0
 public FormPropertyInstance(FormInstance formInstance, FormProperty formProperty, string value)
 {
     this.FormInstance = formInstance;
     this.FormProperty = formProperty;
     this.Value        = value;
 }