Пример #1
0
 private void DataGridView_LoadData(ZongJie zj, string tmppath)
 {
     try
     {
         zj = bll.getZongJie();
         bll.addTitle(Path.GetFileNameWithoutExtension(tmppath));
         borrowM = bll.getZongJie().jiekuan;
         dataGridView1.Rows.Clear();
         if (zj.list.Count == 0)
         {
             return;
         }
         foreach (travelInfo tv in zj.list)
         {
             addToGridView(tv);
         }
         SetTotalText(bll.getZongJie());
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
         throw;
     }
 }