Ejemplo n.º 1
0
        public frmGioGiangGiaoVien()
        {
            InitializeComponent();
            oBGG_CongViecGiaoVien          = new cBwsGG_CongViecGiaoVien();
            pGG_CongViecGiaoVienInfo       = new GG_CongViecGiaoVienInfo();
            oBGG_GiangDayGiaoVien          = new cBwsGG_GiangDayGiaoVien();
            pGG_GiangDayGiaoVienInfo       = new GG_GiangDayGiaoVienInfo();
            cmbDonVi.Properties.DataSource = LoadDonVi();
            // Thực hiện tính tổng theo group
            this.grvGioGiang.GroupSummary.AddRange(new DevExpress.XtraGrid.GridSummaryItem[] {
                new DevExpress.XtraGrid.GridGroupSummaryItem(DevExpress.Data.SummaryItemType.Sum, "TongTiet", this.grcTongTiet, "{0:#,###}"),
                new DevExpress.XtraGrid.GridGroupSummaryItem(DevExpress.Data.SummaryItemType.Sum, "LyThuyet", this.grcLyThuyet, "{0:#,###}"),
                new DevExpress.XtraGrid.GridGroupSummaryItem(DevExpress.Data.SummaryItemType.Sum, "ThucHanh", this.grcThucHanh, "{0:#,###}"),
                new DevExpress.XtraGrid.GridGroupSummaryItem(DevExpress.Data.SummaryItemType.Sum, "GioQuyChuan", this.grcGioChuan, "{0:#,###.##}"),
                new DevExpress.XtraGrid.GridGroupSummaryItem(DevExpress.Data.SummaryItemType.Sum, "LyThuyetQuyDoi", this.grcLyThuyeQuyDoi, "{0:#,###.##}"),
                new DevExpress.XtraGrid.GridGroupSummaryItem(DevExpress.Data.SummaryItemType.Sum, "ThucHanhQuyDoi", this.grcThucHanhQuyDoi, "{0:#,###.##}")
            });

            cBwsHT_ThamSoHeThong oBHT_ThamSoHeThong = new cBwsHT_ThamSoHeThong();

            SoGioThucHanhTrongTuan        = int.Parse(oBHT_ThamSoHeThong.GetGiaTriByMaThamSo("SoTietThucHanhTrong1Tuan"));
            SoTietQuyDoiThucHanhTrongTuan = int.Parse(oBHT_ThamSoHeThong.GetGiaTriByMaThamSo("SoTietQuyDoiThucHanhTrongTuan"));
        }