private void superGridControl1_BeforeCheck(object sender, GridBeforeCheckEventArgs e)
        {
            GridRow gridRow = (e.Item as GridRow);

            if (gridRow == null || gridRow.Checked)
            {
                e.Cancel = true; return;
            }

            InfEquInfSampleBarrel equInfSampleBarrel = gridRow.DataItem as InfEquInfSampleBarrel;

            if (!string.IsNullOrEmpty(equInfSampleBarrel.SampleCode))
            {
                // 选中其他相同采样码的样罐记录
                CheckedSameBarrelRow(sender as SuperGridControl, equInfSampleBarrel);
                // 加载采样单
                LoadRCSamplingList(superGridControl2, equInfSampleBarrel.InFactoryBatchId);
            }
            else
            {
                e.Cancel = true;
            }
        }
        private void superGridControl2_BeforeCheck(object sender, GridBeforeCheckEventArgs e)
        {
            GridRow gridRow = (e.Item as GridRow);

            if (gridRow == null || gridRow.Checked)
            {
                e.Cancel = true; return;
            }

            this.CurrentRCSampling = gridRow.DataItem as CmcsRCSampling;
            e.Cancel = string.IsNullOrEmpty(this.CurrentRCSampling.SampleCode);

            // 取消其他行的选中状态
            foreach (GridRow gridRowItem in superGridControl2.PrimaryGrid.Rows)
            {
                CmcsRCSampling rCSampling = gridRowItem.DataItem as CmcsRCSampling;
                if (rCSampling.Id == this.CurrentRCSampling.Id)
                {
                    continue;
                }

                gridRowItem.Checked = false;
            }
        }