예제 #1
0
 private void LoadBillShip(int cID)
 {
     BillShipList cBSList = new BillShipList(cID);
     clearlist();
     if (cID != 0)
     {
         cBSList = new BillShipList(cID);
         foreach(CustBillShip c in cBSList.GetCustBillShip())
         {
             DataGridViewRow item = new DataGridViewRow();
             item.CreateCells(dataGridView5);
             item.Cells[0].Value = c.AddressName;
             item.Cells[1].Value = c.AddressType;
             dataGridView5.Rows.Add(item);
         }
     }
 }
예제 #2
0
 private void DeleteAllBillShip(int cID)
 {
     try
     {
         BillShipList cBSList = new BillShipList(cID);
         ArrayList delList = new ArrayList();
         foreach (CustBillShip c in cBSList.GetCustBillShip())
         {
             delList.Add(c.ID);
         }
         foreach (int i in delList)
         {
             cBSList.DeleteCustBillShip(i);
         }
         clearlist();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }