private void removePackingMaterialItem_Click(object sender, EventArgs e)
        {
            DialogResult rest = MessageBox.Show(this,
                                                "确定删除当前包材记录?",
                                                "删除包材警告",
                                                MessageBoxButtons.OKCancel,
                                                MessageBoxIcon.Warning);
            if (rest == DialogResult.OK)
            {
                NewMaterialListManager newPackingListManager = new NewMaterialListManager();
                newPackingListManager.removePackingMaterial(this.packingMaterialTable.Rows[this.currentRow].Cells[0].Value.ToString());
                newPackingListManager.removeSupplierWithPackingMaterial(this.packingMaterialTable.Rows[this.currentRow].Cells[0].Value.ToString());

                fillTableAndTextBox();
            }
        }
        private void fillTableAndTextBox()
        {
            NewMaterialListManager newMaterialListManager = new NewMaterialListManager();

            this.cartonSum.Text = Convert.ToString(newMaterialListManager.getCartonCount());
            this.packingMaterialSum.Text = Convert.ToString(newMaterialListManager.getPackingMaterialCount());

            this.cartonTable.DataSource = newMaterialListManager.getCartonInformation();
            this.packingMaterialTable.DataSource = newMaterialListManager.getPackingMaterialInformation();
        }