Ejemplo n.º 1
0
        public void GetFilter()
        {
            filterTable = Ss.CreateNpcDataTableWithMd(SsAgrTable.Md);
            // row for min
            NpcDataRow filterRow = filterTable.NewRow();

            filterTable.Rows.Add(filterRow);
            // row for max
            filterRow = filterTable.NewRow();
            filterTable.Rows.Add(filterRow);
        }
Ejemplo n.º 2
0
        public static void FillSsAgrTable1(NpcDataTable table, Dictionary <String, String> fs = null)
        {
            DataTable dt = HomeData.Agrs.F1GetAgrsTable(fs);

            foreach (DataRow dr in dt.Rows)
            {
                NpcDataRow row = table.NewRow();
                foreach (NpcDataColumn column in table.Columns)
                {
                    String dbName     = (String)column.ExtendedProperties["dbName"];
                    String columnName = (String)column.ColumnName;
                    row[columnName] = dr[dbName];
                }
                table.Rows.Add(row);
            }
        }