Esempio n. 1
0
 public TableByDraws(TableBase table) : base(table)
 {
 }
Esempio n. 2
0
 public NDateTimeOffsetColumn(TableBase table, string columnName, bool isPrimaryKey)
     : base(table, columnName, isPrimaryKey)
 {
 }
Esempio n. 3
0
 public static string GetColumnNames()
 {
     return(TableBase <ShortMessage> .GetColumnNames(string.Empty, ShortMessageTable.Columns.Item));
 }
Esempio n. 4
0
 public NSmallIntegerColumn(TableBase table, string columnName)
     : base(table, columnName, false)
 {
 }
Esempio n. 5
0
 public static string GetColumnNames()
 {
     return(TableBase <ReportLinkGroup> .GetColumnNames(string.Empty, ReportLinkGroupTable.Columns.Item));
 }
Esempio n. 6
0
 public static string GetColumnNames()
 {
     return(TableBase <Application> .GetColumnNames(string.Empty, ApplicationTable.Columns.Item));
 }
 private void InsertNewItems(TableBase toUpdate, List <Seat> viewSeats)
 {
     toUpdate.AddSeats(viewSeats);
 }
Esempio n. 8
0
 public static string GetColumnNames(string tablePrefix)
 {
     return(TableBase <ProfileThumbnailData> .GetColumnNames(tablePrefix, ProfileThumbnailDataTable.Columns.Item));
 }
        private void ExportBandLayers(Base band)
        {
            LayerBack(htmlPage, band as ReportComponentBase, null);
            foreach (Base c in band.ForEachAllConvectedObjects(this))
            {
                if (c is ReportComponentBase && (c as ReportComponentBase).Exportable)
                {
                    ReportComponentBase obj = c as ReportComponentBase;

                    // custom draw
                    CustomDrawEventArgs e = new CustomDrawEventArgs();
                    e.report       = Report;
                    e.reportObject = obj;
                    e.layers       = Layers;
                    e.zoom         = Zoom;
                    e.left         = obj.AbsLeft;
                    e.top          = hPos + obj.AbsTop;
                    e.width        = obj.Width;
                    e.height       = obj.Height;

                    OnCustomDraw(e);
                    if (e.done)
                    {
                        css.Append(e.css);
                        htmlPage.Append(e.html);
                    }
                    else
                    {
                        if (!String.IsNullOrEmpty(obj.Bookmark))
                        {
                            htmlPage.Append("<a name=\"").Append(obj.Bookmark).Append("\"></a>");
                        }

                        if (obj is CellularTextObject)
                        {
                            obj = (obj as CellularTextObject).GetTable();
                        }
                        if (obj is TableCell)
                        {
                            continue;
                        }
                        else if (obj is TableBase)
                        {
                            TableBase table = obj as TableBase;
                            if (table.ColumnCount > 0 && table.RowCount > 0)
                            {
                                using (TextObject tableback = new TextObject())
                                {
                                    tableback.Border    = table.Border;
                                    tableback.Fill      = table.Fill;
                                    tableback.FillColor = table.FillColor;
                                    tableback.Left      = table.AbsLeft;
                                    tableback.Top       = table.AbsTop;
                                    float tableWidth  = 0;
                                    float tableHeight = 0;
                                    for (int i = 0; i < table.ColumnCount; i++)
                                    {
                                        tableWidth += table[i, 0].Width;
                                    }
                                    for (int i = 0; i < table.RowCount; i++)
                                    {
                                        tableHeight += table.Rows[i].Height;
                                    }
                                    tableback.Width  = (tableWidth < table.Width) ? tableWidth : table.Width;
                                    tableback.Height = tableHeight;
                                    LayerText(htmlPage, tableback);
                                }
                                LayerTable(htmlPage, css, table);
                            }
                        }
                        else if (IsMemo(obj))
                        {
                            LayerText(htmlPage, obj as TextObject);
                        }
                        else if (obj is HtmlObject)
                        {
                            LayerHtml(htmlPage, obj as HtmlObject);
                        }
                        else if (obj is BandBase)
                        {
                            LayerBack(htmlPage, obj, null);
                        }
                        else if (obj is LineObject)
                        {
                            LayerPicture(htmlPage, obj, null);
                        }
                        else if (obj is ShapeObject && ((obj as ShapeObject).Shape == ShapeKind.Rectangle ||
                                                        (obj as ShapeObject).Shape == ShapeKind.RoundRectangle) &&
                                 !((obj as ShapeObject).Fill is TextureFill))
                        {
                            LayerShape(htmlPage, obj as ShapeObject, null);
                        }
                        else if (HasExtendedExport(obj))
                        {
                            ExtendExport(htmlPage, obj, null);
                        }
                        else
                        {
                            LayerBack(htmlPage, obj, null);
                            LayerPicture(htmlPage, obj, null);
                        }
                    }
                }
            }
        }
 public void Process(TableBase toUpdate, List <Seat> viewSeats)
 {
     ProcessSeats(toUpdate.Seats, viewSeats);
     InsertNewItems(toUpdate, viewSeats);                                // list of items in this step is decreased by items that were used to update existing seats
 }
Esempio n. 11
0
 public NByteColumn(TableBase table, string columnName)
     : base(table, columnName, false)
 {
 }
        internal static List <(Dictionary <string, string> data, Tuple <string, string> keyData)> PrepareIndexData(ITECObject sender, string propertyName, TableBase table, DBType type)
        {
            List <(Dictionary <string, string> data, Tuple <string, string> keyData)> outData = new List <(Dictionary <string, string> data, Tuple <string, string> keyData)>();
            var childCollection = sender.GetType().GetProperty(propertyName).GetValue(sender) as IList;

            string indexField = table.IndexString;
            string keyField   = table.PrimaryKeys[1].Name;

            foreach (var item in childCollection)
            {
                var data = new Dictionary <string, string>();
                data[indexField] = childCollection.IndexOf(item).ToString();
                var keyData = new Tuple <string, string>(keyField, ((ITECObject)item).Guid.ToString());
                outData.Add((data, keyData));
            }
            return(outData);
        }
 public static string GetColumnNames(string tablePrefix)
 {
     return(TableBase <ServiceConfigurationEntry> .GetColumnNames(tablePrefix, ServiceConfigurationEntryTable.Columns.Item));
 }
 public static string GetColumnNames()
 {
     return(TableBase <ServiceConfigurationEntry> .GetColumnNames(string.Empty, ServiceConfigurationEntryTable.Columns.Item));
 }
Esempio n. 15
0
 public TableByGoalsAgainst(TableBase table) : base(table)
 {
 }
Esempio n. 16
0
 public static string GetColumnNames()
 {
     return(TableBase <ProfileThumbnailData> .GetColumnNames(string.Empty, ProfileThumbnailDataTable.Columns.Item));
 }
Esempio n. 17
0
 public void AdjustLobUsageCount(TableBase table, object[] data, int adjust)
 {
     this.AdjustLobUsageCount(table, data, adjust, false);
 }
Esempio n. 18
0
 public SmallIntegerColumn(TableBase table, string columnName, bool isPrimaryKey, bool isAutoId)
     : base(table, columnName, isPrimaryKey)
 {
     this.IsAutoId = isAutoId;
 }
Esempio n. 19
0
 public NDecimalColumn(TableBase table, string columnName)
     : base(table, columnName, false)
 {
 }
Esempio n. 20
0
 public static string GetColumnNames(string tablePrefix)
 {
     return(TableBase <ReportLinkGroup> .GetColumnNames(tablePrefix, ReportLinkGroupTable.Columns.Item));
 }
Esempio n. 21
0
 public NDecimalColumn(TableBase table, string columnName, bool isPrimaryKey)
     : base(table, columnName, isPrimaryKey)
 {
 }
Esempio n. 22
0
 public static string GetColumnNames(string tablePrefix)
 {
     return(TableBase <Application> .GetColumnNames(tablePrefix, ApplicationTable.Columns.Item));
 }
Esempio n. 23
0
 public static string GetColumnNames()
 {
     return(TableBase <UserStatusHistory> .GetColumnNames(string.Empty, UserStatusHistoryTable.Columns.Item));
 }
Esempio n. 24
0
 public static string GetColumnNames(string tablePrefix)
 {
     return(TableBase <ShortMessage> .GetColumnNames(tablePrefix, ShortMessageTable.Columns.Item));
 }
Esempio n. 25
0
 public static string GetColumnNames(string tablePrefix)
 {
     return(TableBase <UserStatusHistory> .GetColumnNames(tablePrefix, UserStatusHistoryTable.Columns.Item));
 }
Esempio n. 26
0
 public NSmallIntegerColumn(TableBase table, string columnName, bool isPrimaryKey)
     : base(table, columnName, isPrimaryKey)
 {
 }
Esempio n. 27
0
 public RowStoreAVLHybrid(Session session, IPersistentStoreCollection manager, TableBase table) : this(session, manager, table, true)
 {
     this._cache = session.sessionData.GetResultCache();
     if (this._cache != null)
     {
         this._isCached = true;
     }
 }
Esempio n. 28
0
 public NDateTimeOffsetColumn(TableBase table, string columnName)
     : base(table, columnName, false)
 {
 }
Esempio n. 29
0
 public RowStoreAVLHybrid(Session session, IPersistentStoreCollection manager, TableBase table, bool useCache)
 {
     this._session           = session;
     base.Manager            = manager;
     base.table              = table;
     this._maxMemoryRowCount = session.GetResultMemoryRowCount();
     this._isTempTable       = table.GetTableType() == 3;
     this._useCache          = useCache;
     if (this._maxMemoryRowCount == 0)
     {
         this._useCache = false;
     }
     if (table.GetTableType() == 9)
     {
         base.Timestamp = session.GetActionTimestamp();
     }
     this.ResetAccessorKeys(table.GetIndexList());
     manager.SetStore(table, this);
 }
Esempio n. 30
0
 public FactoryChar(TableBase tableBase) : base(tableBase)
 {
 }
Esempio n. 31
0
 private void Parse(PEData data, TableBase m)
 {
     this.data = data;
     this.table = m;
     this.Flags = this.Size = this.MaxStack = this.CodeSize = this.LocalVarSigTok = 0;
     this.ilCodes = null;
     this.ilAddr = 0;
     this.LocalVarSigTok = 0;
     this.LocalVarSig = null;
     this.LocalVars = null;
     this.ImplMap = null;
     this.Kind = this.DataSize = 0;
     this.EHTable = null;
     this.ReadSignature();
     int ad = this.RVA;
     if (ad == 0) return;
     int h = this.data.data[ad];
     if ((h & 3) ==(int) CorILMethod.TinyFormat)
     {
         this.CodeSize = h >> 2;
         ad++;
     }
     else
     {
         h = Util.GetInt16(this.data.data, ad);
         this.Flags = h & 0xfff;
         this.Size =(h >> 12) * 4;
         ad += 2;
         this.MaxStack = Util.GetInt16(this.data.data, ad);
         ad += 2;
         this.CodeSize = Util.GetInt32(this.data.data, ad);
         ad += 4;
         this.LocalVarSigTok = Util.GetInt32(this.data.data, ad);
         ad += 4;
         this.ReadLocalVars();
     }
     this.ilAddr = ad;
     ad += this.CodeSize;
     if ((this.Flags &(int) CorILMethod.MoreSects) == 0) return;
     /// More Sections
     int pad = 4 -(ad & 3);
     if (pad < 4) ad += pad;
     int end = ad;
     this.Kind = this.data.data[ad++];
     bool isFat =(this.Kind &(int) CorILMethod_Sect.FatFormat) != 0;
     if (!isFat)
     {
         this.DataSize = this.data.data[ad];
     }
     else
     {
         this.DataSize = Util.GetInt24(this.data.data, ad);
     }
     ad += 3;
     end += this.DataSize;
     this.EHTable = new ArrayList();
     while (ad < end)
     {
         ExceptionHandlingClauses ex = new ExceptionHandlingClauses();
         if (!isFat)
         {
             ex.Flags = Util.GetInt16(data.data, ad);
             ad += 2;
             ex.TryOffset = Util.GetInt16(data.data, ad);
             ad += 2;
             ex.TryLength = data.data[ad++];
             ex.HandlerOffset = Util.GetInt16(data.data, ad);
             ad += 2;
             ex.HandlerLength = data.data[ad++];
         }
         else
         {
             ex.Flags = Util.GetInt32(data.data, ad);
             ad += 4;
             ex.TryOffset = Util.GetInt32(data.data, ad);
             ad += 4;
             ex.TryLength = Util.GetInt32(data.data, ad);
             ad += 4;
             ex.HandlerOffset = Util.GetInt32(data.data, ad);
             ad += 4;
             ex.HandlerLength = Util.GetInt32(data.data, ad);
             ad += 4;
         }
         if (ex.Flags ==(int) COR_ILEXCEPTION_CLAUSE.EXCEPTION)
         {
             ex.ClassToken = Util.GetInt32(data.data, ad);
         }
         else
         {
             ex.FilterOffset = Util.GetInt32(data.data, ad);
         }
         ad += 4;
         this.EHTable.Add(ex);
     }
 }