Ejemplo n.º 1
0
 public static data.tmpDS.codeListDataTable GetTradeActions()
 {
     data.tmpDS.codeListDataTable tbl = new data.tmpDS.codeListDataTable();
     data.tmpDS.codeListRow       row;
     foreach (AppTypes.TradeActions item in Enum.GetValues(typeof(AppTypes.TradeActions)))
     {
         row             = tbl.NewcodeListRow();
         row.code        = ((byte)item).ToString();
         row.description = item.ToString();
         tbl.AddcodeListRow(row);
     }
     return(tbl);
 }
Ejemplo n.º 2
0
 public static data.tmpDS.codeListDataTable GetTimeScales()
 {
     data.tmpDS.codeListDataTable tbl = new data.tmpDS.codeListDataTable();
     data.tmpDS.codeListRow       row;
     for (int idx = 0; idx < AppTypes.myTimeScales.Length; idx++)
     {
         row             = tbl.NewcodeListRow();
         row.code        = AppTypes.myTimeScales[idx].Code;
         row.description = AppTypes.myTimeScales[idx].Text;
         tbl.AddcodeListRow(row);
     }
     return(tbl);
 }
Ejemplo n.º 3
0
 public static data.tmpDS.codeListDataTable GetTimeScales()
 {
     data.tmpDS.codeListDataTable tbl = new data.tmpDS.codeListDataTable();
     data.tmpDS.codeListRow row;
     for (int idx = 0; idx < AppTypes.myTimeScales.Length; idx++)
     {
         row = tbl.NewcodeListRow();
         row.code = AppTypes.myTimeScales[idx].Code;
         row.description = AppTypes.myTimeScales[idx].Description;
         tbl.AddcodeListRow(row);
     }
     return tbl;
 }
Ejemplo n.º 4
0
 public static data.tmpDS.codeListDataTable GetCommonStatus()
 {
     data.tmpDS.codeListDataTable tbl = new data.tmpDS.codeListDataTable();
     data.tmpDS.codeListRow row;
     foreach (AppTypes.CommonStatus item in Enum.GetValues(typeof(AppTypes.CommonStatus)))
     {
         row = tbl.NewcodeListRow();
         row.code = ((byte)item).ToString();
         row.byteValue = (byte)item;
         row.description = AppTypes.Type2Text(item);
         tbl.AddcodeListRow(row);
     }
     return tbl;
 }
Ejemplo n.º 5
0
        //Load strategy to table
        public static void LoadStrategy(data.tmpDS.codeListDataTable tbl, AppTypes.StrategyTypes type)
        {
            Meta meta;

            data.tmpDS.codeListRow row;
            for (int idx = 0; idx < Data.MetaList.Values.Length; idx++)
            {
                meta = (Meta)Data.MetaList.Values[idx];
                if (meta.Type != type)
                {
                    continue;
                }
                row             = tbl.NewcodeListRow();
                row.code        = ((Meta)Data.MetaList.Values[idx]).Code;
                row.description = ((Meta)Data.MetaList.Values[idx]).Name;
                tbl.AddcodeListRow(row);
            }
        }