private void btnSelect_Click(object sender, EventArgs e)
        {
            DateTime startTime = ServerTime.StartTime(dtpStart.Value);
            DateTime endTime   = ServerTime.EndTime(dtpEnd.Value);

            DataTable tempTable = m_serverDeliveryInSpection.SelectFinalInspectionList(startTime, endTime);

            customDataGridView1.DataSource = tempTable;
        }
        private void btnDelete_Click(object sender, EventArgs e)
        {
            if (customDataGridView1.CurrentRow != null)
            {
                DateTime startTime = ServerTime.StartTime(dtpStart.Value);
                DateTime endTime   = ServerTime.EndTime(dtpEnd.Value);

                ZL_CVTFinalInspection tempLnq = new ZL_CVTFinalInspection();

                tempLnq.ProductCode = customDataGridView1.CurrentRow.Cells["箱号"].Value.ToString();
                tempLnq.ProductType = customDataGridView1.CurrentRow.Cells["型号"].Value.ToString();
                tempLnq.SelectDate  = ServerTime.Time;
                tempLnq.WorkID      = BasicInfo.LoginID;

                m_serverDeliveryInSpection.DeleteCVTFinalInspectionInfo(startTime, endTime, tempLnq);

                customDataGridView1.Rows.Remove(customDataGridView1.CurrentRow);
            }
        }