private void btn编辑_Click(object sender, EventArgs e)
        {
            if (gridView发货计划列表.FocusedRowHandle > -1)
            {
                var rowIndex = gridView发货计划列表.GetDataSourceRowIndex(gridView发货计划列表.FocusedRowHandle);
                var rowData  = _dataSrouce[rowIndex];

                string billno = gridView发货计划列表.GetRowCellValue(gridView发货计划列表.FocusedRowHandle, "FBILLNO").ToStr();
                if (!string.IsNullOrEmpty(billno))
                {
                    //进入发货计划编辑
                    FrmPPPImmediateSendGoods frm = new FrmPPPImmediateSendGoods();
                    frm.IcseoutbillModel  = rowData;
                    frm.IcseoutbillEntrys = new List <V_ICSEOUTBILLENTRYMODEL>(gridControl发货计划明细.DataSource as V_ICSEOUTBILLENTRYMODEL[]);
                    frm.SaveAfter        += new EventHandler(FrmPPPImmediateSendGoods_SaveAfter);
                    frm.Show();
                    //if (frm.ShowDialog() == DialogResult.OK)
                    //{
                    //    this.onSearch();
                    //}
                }
                else
                {
                    //进入组柜编辑
                    FrmSGPGroupCounter frm = new FrmSGPGroupCounter();
                    frm.IcseoutbillModel = rowData;
                    frm.SaveAfter       += new EventHandler(FrmPPPImmediateSendGoods_SaveAfter);
                    frm.Show();
                    //if (frm.ShowDialog() == DialogResult.OK)
                    //{
                    //    this.onSearch();
                    //}
                }
            }
        }
        private void btn新增_Click(object sender, EventArgs e)
        {
            FrmSGPGroupCounter frm = new FrmSGPGroupCounter();

            frm.SaveAfter += new EventHandler(FrmPPPImmediateSendGoods_SaveAfter);
            frm.Show();
        }
        private void btn组柜_Click(object sender, EventArgs e)
        {
            FrmSGPGroupCounter frm = new FrmSGPGroupCounter();

            frm.SaveAfter += new EventHandler(FrmPPPImmediateSendGoods_SaveAfter);
            frm.Show();
            //if (frm.ShowDialog() == DialogResult.OK)
            //{
            //    this.onSearch();
            //}
        }
        private void btn编辑_Click(object sender, EventArgs e)
        {
            if (gridView发货计划列表.FocusedRowHandle > -1)
            {
                var rowIndex = gridView发货计划列表.GetDataSourceRowIndex(gridView发货计划列表.FocusedRowHandle);
                var rowData  = _dataSrouce[rowIndex];

                FrmSGPGroupCounter frm = new FrmSGPGroupCounter();
                frm.ICGROUPBILLModel = rowData;
                frm.SaveAfter       += new EventHandler(FrmPPPImmediateSendGoods_SaveAfter);
                frm.Show();
            }
        }
        private void btn重新组柜_Click(object sender, EventArgs e)
        {
            if (gridView发货计划列表.FocusedRowHandle > -1)
            {
                var rowIndex = gridView发货计划列表.GetDataSourceRowIndex(gridView发货计划列表.FocusedRowHandle);
                var rowData  = _dataSrouce[rowIndex];

                //进入组柜编辑
                FrmSGPGroupCounter frm = new FrmSGPGroupCounter();
                frm.SaveAfter       += new EventHandler(FrmPPPImmediateSendGoods_SaveAfter);
                frm.IcseoutbillModel = rowData;
                frm.Show();
                //if (frm.ShowDialog() == DialogResult.OK)
                //{
                //    this.onSearch();
                //}
            }
            else
            {
                MsgHelper.ShowInformation("请选择你要处理的数据!");
            }
        }