Ejemplo n.º 1
0
	    public void Insert(int Formid,int? Personid,bool? Deleted,DateTime? Createdon,DateTime? Modifiedon,string Createdby,string Modifiedby)
	    {
		    Formfile item = new Formfile();
		    
            item.Formid = Formid;
            
            item.Personid = Personid;
            
            item.Deleted = Deleted;
            
            item.Createdon = Createdon;
            
            item.Modifiedon = Modifiedon;
            
            item.Createdby = Createdby;
            
            item.Modifiedby = Modifiedby;
            
	    
		    item.Save(UserName);
	    }
Ejemplo n.º 2
0
	    public void Update(int Id,int Formid,int? Personid,bool? Deleted,DateTime? Createdon,DateTime? Modifiedon,string Createdby,string Modifiedby)
	    {
		    Formfile item = new Formfile();
	        item.MarkOld();
	        item.IsLoaded = true;
		    
			item.Id = Id;
				
			item.Formid = Formid;
				
			item.Personid = Personid;
				
			item.Deleted = Deleted;
				
			item.Createdon = Createdon;
				
			item.Modifiedon = Modifiedon;
				
			item.Createdby = Createdby;
				
			item.Modifiedby = Modifiedby;
				
	        item.Save(UserName);
	    }
Ejemplo n.º 3
0
 /// <summary>
 /// Creates a new file frecords for this form without a specified person.
 /// </summary>
 public Formfile CreateFile()
 {
     Formfile file = new Formfile();
     file.Form = this.Form;
     file.Save(Utility.GetActiveUsername());
     this.LoadFile(file.Id);
     return file;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Creates a file record for the specified person.
 /// </summary>
 public Formfile CreateFile(Person person)
 {
     if (this.HasFile(person))
         throw new NotSupportedException("A file already exists for the person");
     Formfile file = new Formfile();
     file.Form = this.Form;
     file.Person = person;
     file.Save(Utility.GetActiveUsername());
     this.LoadFile(file.Id);
     return file;
 }