コード例 #1
0
        public RoutingDetails(int customerID)
        {
            InitializeComponent();
            routingDao = new RoutingDAO();


            routingList = routingDao.getRoutingList(customerID);

            foreach (Routing i in routingList)
            {
                listBox1.Items.Add(routingDao.getRoutingContent(i));
            }
        }
コード例 #2
0
        public void populateTable(int lastInsertedID)
        {
            List <Routing> routingList = routingDao.getRoutingList(customerID);

            //for (int i = 0; i < routingList.Count; i++)
            //{

            int lastRouting = routingList.Count - 1;

            dataGridView1.Rows.Add();
            dataGridView1.Rows[lastRouting].Cells[0].Value   = routingDao.getRoutingContent(routingList[lastRouting]);
            dataGridView1.Rows[lastRouting].HeaderCell.Value = lastInsertedID;


            setDataGridViewHeight();

            //System.Diagnostics.Debug.WriteLine(lastInsertedID);
            // System.Diagnostics.Debug.WriteLine(dataGridView1.Rows[lastRouting].HeaderCell.Value);

            // }
        }