Ejemplo n.º 1
0
        private void btnChangePass_Click(object sender, EventArgs e)
        {
            frmChangePass passChange = new frmChangePass();

            passChange.getEmpName = this.statGetUser.Text;
            passChange.ShowDialog();
        }
Ejemplo n.º 2
0
        private void _frmChangePass_Click(object sender, EventArgs e)
        {
            frmChangePass f = new frmChangePass();

            f.ShowDialog();
        }
Ejemplo n.º 3
0
        private void event_ItemClick(object sender, ItemClickEventArgs e)
        {
            BarButtonItem item = e.Item as BarButtonItem;

            if (item != null)
            {
                ucBase uc = new ucBase();
                switch (item.Name)
                {
                    #region Danh mục
                case "btnTinh":
                    uc = new ucDmTinh();
                    break;

                case "btnHuyen":
                    uc = new ucDmHuyen();
                    break;

                case "btnXa":
                    uc = new ucDmXa();
                    break;

                case "btnTrinhDoHocVan":
                    uc = new ucDMTrinhDoHocVan();
                    break;

                case "btnTrinhDoChuyenMon":
                    uc = new ucDMTrinhDoChuyenMon();
                    break;

                case "btnNgheNghiep":
                    uc = new ucDMNgheNghiep();
                    break;

                case "btnTrinhDoNgoaiNgu":
                    uc = new ucDMTrinhDoNgoaNgu();
                    break;

                case "btnDanToc":
                    uc = new ucDMDanToc();
                    break;

                case "btnTonGiao":
                    uc = new ucDMTonGiao();
                    break;

                case "btnChamSocBanThan":
                    uc = new ucDMChamSocBanThan();
                    break;

                case "btnChucVuTrongHoi":
                    uc = new ucDMChucVuHoi();
                    break;

                case "btnDungCuHoTro":
                    uc = new ucDMDungCuHoTro();
                    break;

                case "btnNguyenNhanKT":
                    uc = new ucDMNguyenNhanKhuyetTat();
                    break;

                case "btnTinhTrangKhuyetTat":
                    uc = new ucDMTinhTrangKhuyetTat();
                    break;

                case "btnNhuCau":
                    uc = new ucDMNhuCau();
                    break;

                case "btnThongTinNhaO":
                    uc = new ucDMThongTinNhaO();
                    break;

                case "btnNKTSongVoiAi":
                    uc = new ucDMNKTSongVoiAi();
                    break;

                case "btnNoiSinhSong":
                    uc = new ucDMNoiSinhSong();
                    break;

                case "btnPhuongTienDiLai":
                    uc = new ucDMPhuongTienDiLai();
                    break;

                case "btnThanhVienHoi":
                    uc = new ucDMThanhVienHoi();
                    break;

                case "btnTinhTrangHonNhan":
                    uc = new ucDMTinhTrangHonNhan();
                    break;

                case "btnDonViPhuTrach":
                    uc = new ucDMTapHuan_DonViPhuTrach();
                    break;

                case "btnLoaiHoatDong":
                    uc = new ucDMTapHuan_LoaiHoatDong();
                    break;

                case "btnLoaiNhaTaiTro":
                    uc = new ucDMTapHuan_LoaiNhaTaiTro();
                    break;
                    #endregion

                    #region Lý lịch
                case "btnLyLich":
                    uc = new ucLyLich();
                    break;

                case "btnDonGiaNhapHoi":
                    rptBM_DonGiaNhapHoi rpt = new rptBM_DonGiaNhapHoi();
                    rpt.pLeftHeader.Value       = clsParameter.pHospital;
                    rpt.pParentLeftHeader.Value = clsParameter.pParentHospital;
                    uc = new ucPrint(rpt);
                    break;

                case "btnBMLyLich":
                    rptLyLichHoiVien rptHoiVien = new rptLyLichHoiVien();
                    uc = new ucPrint(rptHoiVien);
                    break;

                case "btnBCLyLich":
                    uc = new ucBCLyLich();
                    break;

                    #endregion

                    #region Nâng cao năng lực

                case "btnTapHuan":
                    uc = new ucHoatDongTapHuan2((Int64)CategoryTapHuan.TH_TAPHUAN);
                    break;

                case "btnGiaoDuc":
                    uc = new ucHoatDongTapHuan2((Int64)CategoryTapHuan.TH_GIAODUC);
                    break;

                case "btnHuongDanThucTap":
                    uc = new ucHoatDongTapHuan2((Int64)CategoryTapHuan.HUONG_DAN_THUC_TAP);
                    break;

                case "btnVanDongChinhSach":
                    uc = new ucHoatDongTapHuan2((Int64)CategoryTapHuan.VAN_DONG_CHINH_SACH);
                    break;

                case "btnTruyenThongPhapLy":
                    uc = new ucHoatDongTapHuan2((Int64)CategoryTapHuan.TRUYEN_THONG_PHAP_LY);
                    break;

                    #endregion

                    #region Nâng cao nhận thức

                case "btnDaiHoi":
                    uc = new ucHoatDongHoiThao((Int64)CategoryHoiThao.DAI_HOI);
                    break;

                case "btnHoiNghi":
                    uc = new ucHoatDongTapHuan2((Int64)CategoryTapHuan.HOI_NGHI);
                    break;

                case "btnHoiThao":
                    uc = new ucHoatDongTapHuan2((Int64)CategoryTapHuan.HOI_THAO);
                    break;

                case "btnBuoiLe":
                    uc = new ucHoatDongHoiThao((Int64)CategoryHoiThao.BUOI_LE);
                    break;

                case "btnCuocHop":
                    uc = new ucHoatDongHoiThao((Int64)CategoryHoiThao.CUOC_HOP);
                    break;

                case "btnTruyenThongDaiChung":
                    uc = new ucHoatDongHoiThao((Int64)CategoryHoiThao.TRUYEN_THONG_DAI_CHUNG);
                    break;

                case "btnToChucSuKien":
                    uc = new ucHoatDongHoiThao((Int64)CategoryHoiThao.TO_CHUC_SU_KIEN);
                    break;

                case "btnToChucVanNghe":
                    uc = new ucHoatDongHoiThao((Int64)CategoryHoiThao.TO_CHUC_VAN_NGHE);
                    break;

                case "btnToChucTheThao":
                    uc = new ucHoatDongHoiThao((Int64)CategoryHoiThao.TO_CHUC_THE_THAO);
                    break;

                    #endregion

                    #region ASXH

                case "btnGiaiPhauChinhHinh":
                    uc = new ucHoatDongASXH((Int64)CategoryASXH.GIAI_PHAU_CHINH_HINH);
                    break;

                case "btnTangQua":
                    uc = new ucHoatDongASXH((Int64)CategoryASXH.TANG_QUA);
                    break;

                case "btnTangDungCuTroGiup":
                    uc = new ucHoatDongASXH((Int64)CategoryASXH.TANG_DUNG_CU_TRO_GIUP);
                    break;

                case "btnHocBong":
                    uc = new ucHoatDongASXH((Int64)CategoryASXH.HOC_BONG);
                    break;

                case "btnBHYT":
                    uc = new ucHoatDongASXH((Int64)CategoryASXH.BHYT);
                    break;

                case "btnHoTroHoiVienKK":
                    uc = new ucHoatDongASXH((Int64)CategoryASXH.HO_TRO_HOI_VIEN_KHO_KHAN);
                    break;

                case "btnThamVieng":
                    uc = new ucHoatDongASXH((Int64)CategoryASXH.THAM_VIENG_HUU_SU);
                    break;

                case "btnDamCuoi":
                    uc = new ucHoatDongASXH((Int64)CategoryASXH.DAM_CUOI);
                    break;

                case "btnCatNha":
                    uc = new ucHoatDongASXH((Int64)CategoryASXH.CAT_NHA);
                    break;

                case "btnSuaNha":
                    uc = new ucHoatDongASXH((Int64)CategoryASXH.SUA_NHA);
                    break;

                    #endregion

                    #region Hòa nhập xã hội
                case "btnGiaoLuu":
                    uc = new ucHoatDongHNXH((Int64)CategoryHNXH.GIAO_LUU);
                    break;

                case "btnLienHoan":
                    uc = new ucHoatDongHNXH((Int64)CategoryHNXH.LIEN_HOAN);
                    break;

                case "btnDonKhach":
                    uc = new ucHoatDongHNXH((Int64)CategoryHNXH.DON_KHACH);
                    break;

                case "btnThamQuanDuLich":
                    uc = new ucHoatDongHNXH((Int64)CategoryHNXH.THAM_QUAN_DU_LICH);
                    break;

                case "btnVanNghe":
                    uc = new ucHoatDongHNXH((Int64)CategoryHNXH.VAN_NGHE);
                    break;

                case "btnTheThao":
                    uc = new ucHoatDongHNXH((Int64)CategoryHNXH.THE_THAO);
                    break;

                case "btnLaodongCongIch":
                    uc = new ucHoatDongHNXH((Int64)CategoryHNXH.LAO_DONG_CONG_ICH);
                    break;
                    #endregion

                    #region Việc làm
                case "btnDayNghe":
                    uc = new ucHoatDongDayNghe();
                    break;

                case "btnGioiThieuViecLam":
                    uc = new ucHoatDongViecLam((Int64)CategoryViecLam.GIOI_THIEU_VIEC_LAM);
                    break;

                case "btnGiaiQuyetViecLam":
                    uc = new ucHoatDongViecLam((Int64)CategoryViecLam.GIAI_QUYET_VIEC_LAM);
                    break;

                case "btnVayVon":
                    uc = new ucHoatDongVayVon();
                    break;

                case "btnHoiChoTrienLam":
                    uc = new ucHoatDongHoiChoTrienLam();
                    break;
                    #endregion

                    #region Báo cáo hội viên

                case "btnBCLyLichTheoDieuKien":
                    uc = new ucBaoCaoHoiVienTheoDieuKien();
                    break;

                case "btnTongSoNKTTheoPhuong":
                    uc = new ucBCHoiVienTongNKTTheoPhuong();
                    break;

                case "btnTongSoNKTTheoDangTat":
                    uc = new ucBCHoiVienTongNKTTheoDangTat();
                    break;

                case "btnTongSoNKTCoViecLam":
                    uc = new ucBCHoiVienTongNKTCoViecLam();
                    break;

                case "btnTongSoNKTTheoHocVan":
                    uc = new ucBCHoiVienTongNKTTheoTrinhDoHocVan();
                    break;

                case "btnTongSoNamNu":
                    uc = new ucBCHoiVienTongNKTTheoNamNu();
                    break;

                case "btnSoTreKTTu0_8":
                    uc = new ucBCHoiVienTongNKTTheoTuoi(0, 8);
                    break;

                case "btnSoTreKTTu6_18":
                    uc = new ucBCHoiVienTongNKTTheoTuoi(6, 18);
                    break;

                case "btnSoLuongNKTThamGiaHoatDong":
                    uc = new ucBCHoiVienTongNKTThamGiaHoatDong();
                    break;

                case "btnSoLuongNKTNhanTCXH":
                    uc = new ucBCHoiVienTongNKTTCXH();
                    break;

                case "btnPNKTCoGiaDinh":
                    uc = new ucBCHoiVienTongNKTPhuNuCoGiaDinh();
                    break;

                case "btnBCTreKTVaConNKT":
                    uc = new ucBCTreKTVaConNKT();
                    break;

                case "btnBCNhaTaiTroMTQ":
                    uc = new ucBCNhaTaiTroVaMTQ();
                    break;
                    #endregion

                    #region Báo cáo hoạt động

                case "btnBCHoatDongTheoDieuKien":
                    uc = new ucBCHoatDongTheoDieuKien();
                    break;

                case "btnBCHoatDongNangCaoNhanThuc":
                    uc = new ucBCHoatDongNangCaoNhanThuc();
                    break;

                case "btnBCHoatDongAnSinhXaHoi":
                    uc = new ucBCHoatDongASXH();
                    break;

                case "btnBCNangCaoNangLucVaVanDongCS":
                    uc = new ucBCHoatDongNangCaoNangLucVaVanDonChinhSach();
                    break;

                case "btnBCHoatDongHNXH":
                    uc = new ucBCHoatDongHoaNhapXaHoi();
                    break;

                case "btnBCHoatDongViecLam":
                    uc = new ucBCHoatDongViecLam();
                    break;

                    #endregion

                    #region Hoạt động khác
                case "btnHoatDongKhac":
                    uc = new ucHoatDongKhac();
                    break;

                case "btnBCHoatDongKhac":
                    uc = new ucBCHoatDongKhac();
                    break;
                    #endregion

                    #region System

                case "btnSkin":
                    uc = new ucSkin();
                    break;

                case "btnUser":
                    uc = new ucUser();
                    break;

                case "btnThayDoiMatKhau":
                    frmChangePass frm = new frmChangePass();
                    frm.ShowDialog();
                    return;

                case "btnNhatKy":
                    uc = new ucNhatKy();
                    break;
                    #endregion

                default:
                    clsMessage.MessageWarning("Chức năng chưa được cấu hình");
                    return;
                }
                clsAddTab.AddTabControl(TabControlParent, uc, item.Name, item.Caption, this);
            }
        }