コード例 #1
0
 public frmTimeRecordQL()
 {
     InitializeComponent();
     IDField = "CTCCV_ID";
     this.SupportIn = false;
     this.SupportThem = true;
     this.SupportChon = false;
      string view = @"
         select ctccv_id,(select name from dm_loai_cong_viecn lcv where lcv.id=ctcv.lcv_id) TEN_CV,
         nv.NAME NHANVIEN,
         ctcv.ngay_lam_viec,ctcv.ngay_cap_nhat,ctcv.lcv_id,ctcv.nv_id,ctcv.mo_ta,ctcv.thoi_gian_thuc_hien,ctcv.duyet
         from chi_tiet_cong_viec ctcv inner join dm_nhan_vien nv on nv.id=ctcv.nv_id
         where nv.visible_bit='Y' and  1=1";
     Fix = new TimPopupFix(this,view);
     gridViewMaster.OptionsView.NewItemRowPosition = DevExpress.XtraGrid.Views.Grid.NewItemRowPosition.None;
     gridViewMaster.OptionsBehavior.AutoExpandAllGroups = true;
     this.barBtnXem.Glyph = FWImageDic.VIEW_IMAGE20;
     this.barBtnXoa.Glyph = FWImageDic.DELETE_IMAGE20;
     this.barBtnCapNhat.Glyph = FWImageDic.EDIT_IMAGE20;
     this.barButtonItemDuyet.Glyph = FWImageDic.COMMIT_IMAGE16;
     this.barButtonItemK_Duyet.Glyph = FWImageDic.UNCOMMIT_IMAGE16;
     this.barButtonItemPrint.Visibility = DevExpress.XtraBars.BarItemVisibility.Never;
     InitControl(false);
     gridViewMaster.OptionsView.ShowGroupedColumns = false;
     gridViewMaster.OptionsSelection.MultiSelect = true;
     gridViewMaster.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFocus;
     gridViewMaster.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.RowSelect;
     HelpGrid.SetTitle(this.gridViewMaster, "DANH SÁCH NHẬT KÝ LÀM VIỆC");
 }
コード例 #2
0
 public frmTimeRecordQL()
 {
     InitializeComponent();
     IDField = "CTCCV_ID";
     this.SupportIn = false;
     this.SupportThem = true;
     this.SupportChon = false;
     Fix = new TimPopupFix(this);
     gridViewMaster.OptionsView.NewItemRowPosition = DevExpress.XtraGrid.Views.Grid.NewItemRowPosition.None;
     gridViewMaster.OptionsBehavior.AutoExpandAllGroups = true;
     this.barBtnXem.Glyph = FWImageDic.VIEW_IMAGE20;
     this.barBtnXoa.Glyph = FWImageDic.DELETE_IMAGE20;
     this.barBtnCapNhat.Glyph = FWImageDic.EDIT_IMAGE20;
     this.barButtonItemDuyet.Glyph = FWImageDic.COMMIT_IMAGE16;
     this.barButtonItemK_Duyet.Glyph = FWImageDic.UNCOMMIT_IMAGE16;
     this.barButtonItemPrint.Visibility = DevExpress.XtraBars.BarItemVisibility.Never;
     InitControl(false);
     gridViewMaster.OptionsView.ShowGroupedColumns = false;
     gridViewMaster.OptionsSelection.MultiSelect = true;
     gridViewMaster.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFocus;
     gridViewMaster.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.RowSelect;
 }