예제 #1
0
파일: ImportForm.cs 프로젝트: sishui198/C-
        //取消全选
        private void btnClearAll_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            var gridView = (GridView)((GridControl)this.btnFcdsSearch.SelectedTabPage.Controls[0]).MainView;

            gridView.FocusedRowHandle = 0;
            gridView.FocusedColumn    = gridView.Columns[1];
            GridControlHelper.SelectItem(gridView, false);
        }
예제 #2
0
        //反选
        private void barButtonItem5_ItemClick(object sender, ItemClickEventArgs e)
        {
            if (this.xtraTabControl1.SelectedTabPage.Text.Equals("比对数据"))
            {
                MessageBox.Show("不能进行此操作!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            var gridview = (GridView)((GridControl)((GroupBox)this.xtraTabControl1.SelectedTabPage.Controls[0]).Controls[0]).MainView;

            gridview.FocusedRowHandle = 0;
            gridview.FocusedColumn    = gridview.Columns[1];
            GridControlHelper.SelectItem(gridview, false);
        }
예제 #3
0
 // 取消全选
 private void barBtnClearAll_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     try
     {
         this.gvUser.FocusedRowHandle = 0;
         this.gvUser.FocusedColumn    = this.gvUser.Columns[1];
         GridControlHelper.SelectItem(this.gvUser, false);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
예제 #4
0
 //取消全选
 private void btnClearAll_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (btnRLDCExport.SelectedTabPage == tpCtny)
     {
         this.gvCtny.FocusedRowHandle = 0;
         this.gvCtny.FocusedColumn    = this.gvCtny.Columns[1];
         GridControlHelper.SelectItem(this.gvCtny, false);
     }
     else if (btnRLDCExport.SelectedTabPage == tpFcds)
     {
         this.gvFcds.FocusedRowHandle = 0;
         this.gvFcds.FocusedColumn    = this.gvFcds.Columns[1];
         GridControlHelper.SelectItem(this.gvFcds, false);
     }
     else if (btnRLDCExport.SelectedTabPage == tpCds)
     {
         this.gvCds.FocusedRowHandle = 0;
         this.gvCds.FocusedColumn    = this.gvCds.Columns[1];
         GridControlHelper.SelectItem(this.gvCds, false);
     }
     else if (btnRLDCExport.SelectedTabPage == tpCdd)
     {
         this.gvCdd.FocusedRowHandle = 0;
         this.gvCdd.FocusedColumn    = this.gvCdd.Columns[1];
         GridControlHelper.SelectItem(this.gvCdd, false);
     }
     else if (btnRLDCExport.SelectedTabPage == tpRldc)
     {
         this.gvRldc.FocusedRowHandle = 0;
         this.gvRldc.FocusedColumn    = this.gvRldc.Columns[1];
         GridControlHelper.SelectItem(this.gvRldc, false);
     }
     else if (btnRLDCExport.SelectedTabPage == tpLtgg)
     {
         this.gvLtgg.FocusedRowHandle = 0;
         this.gvLtgg.FocusedColumn    = this.gvLtgg.Columns[1];
         GridControlHelper.SelectItem(this.gvLtgg, false);
     }
     else if (btnRLDCExport.SelectedTabPage == tpLj)
     {
         this.gvLj.FocusedRowHandle = 0;
         this.gvLj.FocusedColumn    = this.gvLj.Columns[1];
         GridControlHelper.SelectItem(this.gvLj, false);
     }
     else if (btnRLDCExport.SelectedTabPage == tpZczbzl)
     {
         this.gvZb.FocusedRowHandle = 0;
         this.gvZb.FocusedColumn    = this.gvZb.Columns[1];
         GridControlHelper.SelectItem(this.gvZb, false);
     }
 }
예제 #5
0
 //全部取消
 private void barBtnCancle_ItemClick(object sender, ItemClickEventArgs e)
 {
     if (this.xtraTabControl1.SelectedTabPage.Text.Equals("待审批"))
     {
         this.gvDataInfo.FocusedRowHandle = 0;
         this.gvDataInfo.FocusedColumn    = gvDataInfo.Columns[1];
         GridControlHelper.SelectItem(this.gvDataInfo, false);
     }
     else
     {
         this.gvBackInfo.FocusedRowHandle = 0;
         this.gvBackInfo.FocusedColumn    = gvBackInfo.Columns[1];
         GridControlHelper.SelectItem(this.gvBackInfo, false);
     }
 }
예제 #6
0
 //全部选中
 private void barBtnSelect_ItemClick(object sender, ItemClickEventArgs e)
 {
     if (this.xtraTabControl1.SelectedTabPage.Text.Equals("三审清算"))
     {
         this.gvDataInfo3.FocusedRowHandle = 0;
         this.gvDataInfo3.FocusedColumn    = gvDataInfo3.Columns[1];
         GridControlHelper.SelectItem(this.gvDataInfo3, true);
     }
     else
     {
         this.gvDataInfo2.FocusedRowHandle = 0;
         this.gvDataInfo2.FocusedColumn    = gvDataInfo2.Columns[1];
         GridControlHelper.SelectItem(this.gvDataInfo2, true);
     }
 }
예제 #7
0
 //取消全选
 private void btnClearAll_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (tabPage_PARAM.SelectedTabPage == xtraTabPage1)
     {
         this.gvCtny.FocusedRowHandle = 0;
         this.gvCtny.FocusedColumn    = this.gvCtny.Columns[1];
         GridControlHelper.SelectItem(this.gvCtny, false);
     }
     else if (tabPage_PARAM.SelectedTabPage == xtraTabPage2)
     {
         this.gvCpos.FocusedRowHandle = 0;
         this.gvCpos.FocusedColumn    = this.gvCpos.Columns[1];
         GridControlHelper.SelectItem(this.gvCpos, false);
     }
 }
예제 #8
0
파일: ImportForm.cs 프로젝트: sishui198/C-
 //取消全选
 private void btnClearAll_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (this.btnFcdsSearch.SelectedTabPage.Text.Equals("传统能源"))
     {
         this.gvCtny.FocusedRowHandle = 0;
         this.gvCtny.FocusedColumn    = this.gvCtny.Columns[1];
         GridControlHelper.SelectItem(this.gvCtny, false);
     }
     if (this.btnFcdsSearch.SelectedTabPage.Text.Equals("非插电式混合动力"))
     {
         this.gvFcds.FocusedRowHandle = 0;
         this.gvFcds.FocusedColumn    = this.gvFcds.Columns[1];
         GridControlHelper.SelectItem(this.gvFcds, false);
     }
 }
예제 #9
0
 //全选
 private void btnSelectAll_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (this.xtraTabControl.SelectedTabPage.Text.Equals("传统能源"))
     {
         this.gvCtny.FocusedRowHandle = 0;
         this.gvCtny.FocusedColumn    = this.gvCtny.Columns[1];
         GridControlHelper.SelectItem(this.gvCtny, true);
     }
     if (this.xtraTabControl.SelectedTabPage.Text.Equals("非插电式混合动力"))
     {
         this.gvFcds.FocusedRowHandle = 0;
         this.gvFcds.FocusedColumn    = this.gvFcds.Columns[1];
         GridControlHelper.SelectItem(this.gvFcds, true);
     }
     if (this.xtraTabControl.SelectedTabPage.Text.Equals("纯电动"))
     {
         this.gvCdd.FocusedRowHandle = 0;
         this.gvCdd.FocusedColumn    = this.gvCdd.Columns[1];
         GridControlHelper.SelectItem(this.gvCdd, true);
     }
 }
예제 #10
0
 //全部取消
 private void barBtnCancle_ItemClick(object sender, ItemClickEventArgs e)
 {
     this.gvDataInfo.FocusedRowHandle = 0;
     this.gvDataInfo.FocusedColumn    = gvDataInfo.Columns[1];
     GridControlHelper.SelectItem(this.gvDataInfo, false);
 }
예제 #11
0
 // 取消全选
 private void barBtnClearAll_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     this.gvCljbxx.FocusedRowHandle = 0;
     this.gvCljbxx.FocusedColumn    = this.gvCljbxx.Columns[1];
     GridControlHelper.SelectItem(this.gvCljbxx, false);
 }
예제 #12
0
파일: ChangeQuery.cs 프로젝트: sishui198/C-
 private void simpleButton3_Click(object sender, EventArgs e)
 {
     this.gvCljbxx.FocusedRowHandle = 0;
     this.gvCljbxx.FocusedColumn    = this.gvCljbxx.Columns[1];
     GridControlHelper.SelectItem(this.gvCljbxx, false);
 }
예제 #13
0
 //全选
 private void barBtnSelectAll_ItemClick(object sender, ItemClickEventArgs e)
 {
     this.gvCljbxx.FocusedRowHandle = 0;
     this.gvCljbxx.FocusedColumn    = this.gvCljbxx.Columns[1];
     GridControlHelper.SelectItem(this.gvCljbxx, true);
 }
예제 #14
0
 // 全选
 private void barBtnSelectAll_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     this.gvGH.FocusedRowHandle = 0;
     this.gvGH.FocusedColumn    = this.gvGH.Columns[1];
     GridControlHelper.SelectItem(this.gvGH, true);
 }