Esempio n. 1
0
	    public void Insert(int Fileid,int Fieldid,int? Codeid,string Storedvalue,bool? Deleted,DateTime? Createdon,DateTime? Modifiedon,string Createdby,string Modifiedby)
	    {
		    Formrecord item = new Formrecord();
		    
            item.Fileid = Fileid;
            
            item.Fieldid = Fieldid;
            
            item.Codeid = Codeid;
            
            item.Storedvalue = Storedvalue;
            
            item.Deleted = Deleted;
            
            item.Createdon = Createdon;
            
            item.Modifiedon = Modifiedon;
            
            item.Createdby = Createdby;
            
            item.Modifiedby = Modifiedby;
            
	    
		    item.Save(UserName);
	    }
Esempio n. 2
0
        public void Insert(int Fileid, int Fieldid, int?Codeid, string Storedvalue, bool?Deleted, DateTime?Createdon, DateTime?Modifiedon, string Createdby, string Modifiedby)
        {
            Formrecord item = new Formrecord();

            item.Fileid = Fileid;

            item.Fieldid = Fieldid;

            item.Codeid = Codeid;

            item.Storedvalue = Storedvalue;

            item.Deleted = Deleted;

            item.Createdon = Createdon;

            item.Modifiedon = Modifiedon;

            item.Createdby = Createdby;

            item.Modifiedby = Modifiedby;


            item.Save(UserName);
        }
Esempio n. 3
0
 /// <summary>
 /// Encapsulates an existing record for this field
 /// </summary>
 /// <param name="formrecord"></param>
 public EditableField(Formrecord formrecord)
     :this(formrecord.Formfield)
 {
     this.FormRecord = formrecord;
     this.Status = FieldStatus.Unmodified;
     this.workingTextValue = this.FormRecord.Storedvalue;
     this.workingCodeValue = this.FormRecord.Codeid;
 }
Esempio n. 4
0
 /// <summary>
 /// Creates a new Formrecord with the required values and appropriate defaults
 /// </summary>
 /// <returns></returns>
 public static Formrecord CreateNew(int fileid, int fieldid)
 {
     Formrecord record = new Formrecord();
     record.Fieldid = fieldid;
     record.Fileid = fileid;
     record.Deleted = false;
     record.Save(Utility.GetActiveUsername());
     return record;
 }
Esempio n. 5
0
        /// <summary>
        /// Creates a new Formrecord with the required values and appropriate defaults
        /// </summary>
        /// <returns></returns>
        public static Formrecord CreateNew(int fileid, int fieldid)
        {
            Formrecord record = new Formrecord();

            record.Fieldid = fieldid;
            record.Fileid  = fileid;
            record.Deleted = false;
            record.Save(Utility.GetActiveUsername());
            return(record);
        }
Esempio n. 6
0
 public EditableField(Formfield formfield, Formrecord formrecord)
     :this(formrecord)
 {
     if (formrecord.Formfield.Id != formfield.Id)
         throw new NotSupportedException("Cannot encapsulate a record with a different field (Field IDs do not match)");
 }
Esempio n. 7
0
 public bool Destroy(object Id)
 {
     return(Formrecord.Destroy(Id) == 1);
 }
Esempio n. 8
0
 public bool Delete(object Id)
 {
     return(Formrecord.Delete(Id) == 1);
 }