Exemple #1
0
 public static data.baseDS.stockExchangeRow UpdateData(data.baseDS.stockExchangeRow row)
 {
     data.baseDS.stockExchangeDataTable tbl = new data.baseDS.stockExchangeDataTable();
     tbl.ImportRow(row);
     myClient.UpdateStockExchange(ref tbl);
     row.AcceptChanges();
     return(tbl[0]);
 }
Exemple #2
0
 // Stock Exchange
 public static data.baseDS.stockExchangeRow AddStockExchange(data.baseDS.stockExchangeDataTable tbl, string code)
 {
     data.baseDS.stockExchangeRow stockExchangeRow = application.SysLibs.FindAndCache_StockExchange(code);
     if (stockExchangeRow == null)
     {
         stockExchangeRow = tbl.NewstockExchangeRow();
         commonClass.AppLibs.InitData(stockExchangeRow);
         stockExchangeRow.code = code;
         tbl.AddstockExchangeRow(stockExchangeRow);
         application.DbAccess.UpdateData(stockExchangeRow);
         common.fileFuncs.WriteLog(" - Add stockExchange" + common.Consts.constTab + code);
     }
     return(stockExchangeRow);
 }
 public void UpdateStockExchange(ref data.baseDS.stockExchangeDataTable tbl)
 {
     DbAccess.UpdateData(tbl);
 }
 public data.baseDS.stockExchangeDataTable GetStockExchange()
 {
     data.baseDS.stockExchangeDataTable tbl = new data.baseDS.stockExchangeDataTable();
     DbAccess.LoadData(tbl);
     return(tbl);
 }
Exemple #5
0
 public static data.baseDS.stockExchangeRow UpdateData(data.baseDS.stockExchangeRow row)
 {
     data.baseDS.stockExchangeDataTable tbl = new data.baseDS.stockExchangeDataTable();
     tbl.ImportRow(row);
     myClient.UpdateStockExchange(ref tbl);
     row.AcceptChanges();
     return tbl[0];
 }
 public data.baseDS.stockExchangeDataTable GetStockExchange()
 {
     data.baseDS.stockExchangeDataTable tbl = new data.baseDS.stockExchangeDataTable();
     DbAccess.LoadData(tbl);
     return tbl;
 }
Exemple #7
0
 public static void UpdateData(data.baseDS.stockExchangeDataTable tbl)
 {
     stockExchangeTA.Update(tbl);
     tbl.AcceptChanges();
 }
Exemple #8
0
 public static void LoadData(data.baseDS.stockExchangeDataTable tbl)
 {
     stockExchangeTA.ClearBeforeFill = false;
     stockExchangeTA.Fill(tbl);
 }