コード例 #1
0
ファイル: ordersWindow.cs プロジェクト: shreya2211/RMS2
        private void insertOrderDetails()
        {
            Int64 orderID = RetrivalData.lastOrderID();
            int   count   = 0;

            foreach (DataGridViewRow row in dataGridView1.Rows)
            {
                count += insertion.insertOrderDetails(orderID, Convert.ToInt32(row.Cells["itemIDGV"].Value.ToString()), Convert.ToInt16(row.Cells["QuantityGV"].Value.ToString()));
            }
            if (count > 0)
            {
            }
            else
            {
                MainClass.showMessage("An Error Occured", "error");
            }
        }