コード例 #1
0
 public void 下一筆(string 程式名稱, CollectionViewSource[] cv, string[] 資料表名稱, string keyfldvalue)
 {
     string LP_p1 = 資料表名稱[0].ToUpper();
     DataSet ds = 導覽區Bll.導覽(程式名稱, 資料表名稱, keyfldvalue, "NEXT");
     if (ds.Tables[0].Rows.Count == 0)
     {
         MessageBox.Show("無下一筆紀錄可移動", "訊息視窗", MessageBoxButton.OK, MessageBoxImage.Exclamation);
     }
     else
     {
         for (int i = 0; i < cv.Count(); i++)
         {
             if (cv[i] != null)
             {
                 cv[i].Source = 製作ObservableCollection(ds.Tables[i], 資料表名稱[i]);
             }
             else
             {
                 break;
             }
         }
     }
 }
コード例 #2
0
 public void 重新整理(string 程式名稱, CollectionViewSource[] cv, string[] 資料表名稱, string keyfldvalue)
 {
     string LP_p1 = 資料表名稱[0].ToUpper();
     DataSet ds = 導覽區Bll.導覽(程式名稱, 資料表名稱, keyfldvalue, "RENEW");
     for (int i = 0; i < cv.Count(); i++)
     {
         if (cv[i] != null)
         {
             cv[i].Source = 製作ObservableCollection(ds.Tables[i], 資料表名稱[i]);
         }
         else
         {
             break;
         }
     }
 }