Example #1
0
	    public void Insert(string Name,string Shortname,string Tfsfnumber,string Remarks,int? Keyfieldid,bool? Deleted,DateTime? Createdon,DateTime? Modifiedon,string Createdby,string Modifiedby)
	    {
		    Form item = new Form();
		    
            item.Name = Name;
            
            item.Shortname = Shortname;
            
            item.Tfsfnumber = Tfsfnumber;
            
            item.Remarks = Remarks;
            
            item.Keyfieldid = Keyfieldid;
            
            item.Deleted = Deleted;
            
            item.Createdon = Createdon;
            
            item.Modifiedon = Modifiedon;
            
            item.Createdby = Createdby;
            
            item.Modifiedby = Modifiedby;
            
	    
		    item.Save(UserName);
	    }
Example #2
0
        public DesignableForm(Form form)
            :base(form)
        {
            this.ReloadFields();

            this.workingName = this.Form.Name;
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            TFS.OpCenter.Data.Form form = TFS.OpCenter.Data.Form.FetchByID(103);
            if (form == null)
                throw new Exception("Form is null");
            Person person = Utility.GetActivePerson();
            controller = new FormFileController(form);
            if (!controller.HasFile(person))
                controller.CreateFile(person);
            controller.LoadFile(person);

            if (!this.IsPostBack)
            {
                this.ViewableFileControl.FileId = controller.File.Id;
            }

        }
Example #4
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="form">The form to encapsulate</param>
 public SymanticForm(Form form)
 {
     this.Form = form;
 }        
Example #5
0
 public FormController(Form form)
 {
     this.Form = form;
 }
Example #6
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="form">The particular form that files will be loaded for.</param>
 public FormFileController(Form form)
 {
     this.Form = form;
     this.FileLoaded = false; //default state
 }
 public FormDesignerController(Form form)
 {
     this.Form = form;
     this.DesignableForm = new DesignableForm(form);
 }