예제 #1
0
파일: Search.cs 프로젝트: imatary/work
        private void btnDelBox_Click(object sender, EventArgs e)
        {
            var logs = _iqcService.GetShippingsByBoxId(txtSearch.Text.Trim());

            _iqcService.DeleteShipingByBoxId(txtSearch.Text.Trim(), logs.Count(), logs.FirstOrDefault().Model, logs.FirstOrDefault().PO_NO);
            _shippings = new List <Shipping>();
            gridControlData.Refresh();
            gridControlData.DataSource = null;
            MessageBox.Show($"Xóa thành công Box {txtSearch.Text}");
            txtSearch.SelectAll();
            txtSearch.Focus();
            btnDelBox.Enabled  = false;
            btnExports.Enabled = false;
        }