Exemplo n.º 1
0
            public NodeTypeEditorControl(ContentTypeControl parent)
            {
                prnt = parent;
                this.Attributes.Add("width", "100%");
                HtmlTableRow  tr = new HtmlTableRow();
                HtmlTableCell td = new HtmlTableCell();

                td.InnerText = "Alias";
                tr.Cells.Add(td);

                td           = new HtmlTableCell();
                td.InnerText = "Navn";
                tr.Cells.Add(td);

                td           = new HtmlTableCell();
                td.InnerText = "Type";
                tr.Cells.Add(td);

                td           = new HtmlTableCell();
                td.InnerText = "Fane";
                tr.Cells.Add(td);

                td = new HtmlTableCell();
                tr.Cells.Add(td);

                this.Rows.Add(tr);

                cms.businesslogic.ContentType.TabI[] tbs = prnt.docType.getVirtualTabs;


                foreach (cms.businesslogic.propertytype.PropertyType pt in prnt.docType.PropertyTypes)
                {
                    editor e = new editor(pt, prnt);
                    PropertyTypes.Add(e);
                    this.Controls.Add(e);
                }
            }
Exemplo n.º 2
0
				public editor(cms.businesslogic.propertytype.PropertyType pt,ContentTypeControl parent) 
				{
					this.pt = pt;	
					ent = parent;
				}
Exemplo n.º 3
0
			public NodeTypeEditorControl(ContentTypeControl parent) 
			{
				prnt = parent;
				this.Attributes.Add("width","100%");
				HtmlTableRow tr = new HtmlTableRow();
				HtmlTableCell td =  new HtmlTableCell();
				td.InnerText = "Alias";
				tr.Cells.Add(td);

				td = new HtmlTableCell();
				td.InnerText  = "Navn";
				tr.Cells.Add(td);

				td = new HtmlTableCell();
				td.InnerText = "Type";
				tr.Cells.Add(td);

				td = new HtmlTableCell();
				td.InnerText = "Fane";
				tr.Cells.Add(td);

				td = new HtmlTableCell();
				tr.Cells.Add(td);

				this.Rows.Add(tr);
               
				cms.businesslogic.ContentType.TabI[] tbs = prnt.docType.getVirtualTabs;
	

				foreach (cms.businesslogic.propertytype.PropertyType pt in prnt.docType.PropertyTypes) 
				{
					editor e = new editor(pt,prnt);
					PropertyTypes.Add(e);
					this.Controls.Add(e);
				}
				
			}
Exemplo n.º 4
0
			public NodeTypeAddPropertyTypeControl(cms.businesslogic.ContentType dt, ContentTypeControl parent) 
			{
				ctctrl = parent;
				this.Attributes.Add("width","100%");
				HtmlTableRow tr = new HtmlTableRow();
				HtmlTableCell td =  new HtmlTableCell();
				td.InnerText = "Alias";
				tr.Cells.Add(td);

				td = new HtmlTableCell();
				td.InnerText  = "Navn";
				tr.Cells.Add(td);

				td = new HtmlTableCell();
				td.InnerText = "Type";
				tr.Cells.Add(td);

				td = new HtmlTableCell();
				td.InnerText = "Fane";
				tr.Cells.Add(td);

				td = new HtmlTableCell();
				tr.Cells.Add(td);

				this.Rows.Add(tr);
				tr = new HtmlTableRow();

				td = new HtmlTableCell();
				td.Controls.Add(AliasTxt);
				tr.Cells.Add(td);

				td = new HtmlTableCell();
				td.Controls.Add(NameTxt);
				tr.Cells.Add(td);

				td = new HtmlTableCell();
				td.Controls.Add(DataTypeDDL);
				tr.Cells.Add(td);

				td = new HtmlTableCell();
				td.Controls.Add(TabDDL);
				tr.Cells.Add(td);

				td = new HtmlTableCell();
				Button btn = new Button();
					
				td.Controls.Add(btn);
				btn.Text = "Opret";
				tr.Cells.Add(td);
				this.Rows.Add(tr);

				// Add create new PropertyType eventhandler
				btn.Click += new System.EventHandler(this.AddPropertyType);


                foreach (cms.businesslogic.ContentType.TabI t in dt.getVirtualTabs.ToList()) 
				{
					ListItem li = new ListItem();
					li.Value = t.Id.ToString();
					li.Text = t.Caption;
					TabDDL.Items.Add(li);
				}
				ListItem lie = new ListItem();
				lie.Text = "Egenskaber";
				lie.Value = "0";
				TabDDL.Items.Add(lie);
				
				foreach(cms.businesslogic.datatype.DataTypeDefinition DataType in cms.businesslogic.datatype.DataTypeDefinition.GetAll()) 
				{
					ListItem li = new ListItem();
					li.Value = DataType.Id.ToString();
					li.Text = DataType.Text;
					DataTypeDDL.Items.Add(li);
				}
				_dt = dt;
			}
Exemplo n.º 5
0
 public editor(cms.businesslogic.propertytype.PropertyType pt, ContentTypeControl parent)
 {
     this.pt = pt;
     ent     = parent;
 }
Exemplo n.º 6
0
            public NodeTypeAddPropertyTypeControl(cms.businesslogic.ContentType dt, ContentTypeControl parent)
            {
                ctctrl = parent;
                this.Attributes.Add("width", "100%");
                HtmlTableRow  tr = new HtmlTableRow();
                HtmlTableCell td = new HtmlTableCell();

                td.InnerText = "Alias";
                tr.Cells.Add(td);

                td           = new HtmlTableCell();
                td.InnerText = "Navn";
                tr.Cells.Add(td);

                td           = new HtmlTableCell();
                td.InnerText = "Type";
                tr.Cells.Add(td);

                td           = new HtmlTableCell();
                td.InnerText = "Fane";
                tr.Cells.Add(td);

                td = new HtmlTableCell();
                tr.Cells.Add(td);

                this.Rows.Add(tr);
                tr = new HtmlTableRow();

                td = new HtmlTableCell();
                td.Controls.Add(AliasTxt);
                tr.Cells.Add(td);

                td = new HtmlTableCell();
                td.Controls.Add(NameTxt);
                tr.Cells.Add(td);

                td = new HtmlTableCell();
                td.Controls.Add(DataTypeDDL);
                tr.Cells.Add(td);

                td = new HtmlTableCell();
                td.Controls.Add(TabDDL);
                tr.Cells.Add(td);

                td = new HtmlTableCell();
                Button btn = new Button();

                td.Controls.Add(btn);
                btn.Text = "Opret";
                tr.Cells.Add(td);
                this.Rows.Add(tr);

                // Add create new PropertyType eventhandler
                btn.Click += new System.EventHandler(this.AddPropertyType);


                foreach (cms.businesslogic.ContentType.TabI t in dt.getVirtualTabs.ToList())
                {
                    ListItem li = new ListItem();
                    li.Value = t.Id.ToString();
                    li.Text  = t.Caption;
                    TabDDL.Items.Add(li);
                }
                ListItem lie = new ListItem();

                lie.Text  = "Egenskaber";
                lie.Value = "0";
                TabDDL.Items.Add(lie);

                foreach (cms.businesslogic.datatype.DataTypeDefinition DataType in cms.businesslogic.datatype.DataTypeDefinition.GetAll())
                {
                    ListItem li = new ListItem();
                    li.Value = DataType.Id.ToString();
                    li.Text  = DataType.Text;
                    DataTypeDDL.Items.Add(li);
                }
                _dt = dt;
            }