示例#1
0
        private void btDelete_Click(object sender, EventArgs e)
        {
            string strWorkID    = dataGridView2.CurrentRow.Cells["人员工号"].Value.ToString();
            string strStorageID = dataGridView2.CurrentRow.Cells["库房编码"].Value.ToString();

            if (m_serverStorageInfo.DeleteStorageAndPersonnel(strWorkID, strStorageID, out m_err))
            {
                MessageBox.Show("删除成功", "提示");
            }
            else
            {
                MessageBox.Show("错误信息:" + m_err, "提示");
            }

            Refresh(1);

            btNew_Click(sender, e);
        }