예제 #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);
	    }
예제 #2
0
        public DesignableForm(Form form)
            :base(form)
        {
            this.ReloadFields();

            this.workingName = this.Form.Name;
        }
예제 #3
0
        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;
            }

        }
예제 #4
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="form">The form to encapsulate</param>
 public SymanticForm(Form form)
 {
     this.Form = form;
 }        
예제 #5
0
 public FormController(Form form)
 {
     this.Form = form;
 }
예제 #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
 }
예제 #7
0
 public FormDesignerController(Form form)
 {
     this.Form = form;
     this.DesignableForm = new DesignableForm(form);
 }