Exemple #1
0
        public ActionResult EditTable()
        {
            if (OrgTable == null)
            {
                OrgTable = new SchemaTable();
                OrgTable.ID = Guid.NewGuid();
                OrgTable.Name = @"Организация";
                OrgTable.Description = "Справочник организаций и контрагентов";

                SchemaTableColumn col;

                col = new SchemaTableColumn(); col.Table = OrgTable; OrgTable.Columns.Add(col);
                col.Name = "Номер";
                col.Description = "Номер оганизации";
                col.Position = 1;

                col = new SchemaTableColumn(); col.Table = OrgTable; OrgTable.Columns.Add(col);
                col.Name = "Название";
                col.Description = "Название оганизации";
                col.Position = 2;

                col = new SchemaTableColumn(); col.Table = OrgTable; OrgTable.Columns.Add(col);
                col.Name = "Город";
                col.Description = "Родной город оганизации";
                col.Position = 1010;

            }
            var model = new SchemaTableEditModel();
            model.Controller = this;
            model.EditedObject = OrgTable;
            return View(model);
        }
 public AddExtendedPropertyOperation(SchemaTableColumn schemaTableColumn, ExtendedProperty extendedProperty)
 {
     SchemaTableColumn = schemaTableColumn;
     ExtendedProperty  = extendedProperty;
 }