public MdiMenu1()
        {
            InitializeComponent();

            BaseWinFramework.ShowProgressBar(Text);

            #region Register Persistance Engine
            BaseFramework.DpEngine
            .RegisterEngine <SqlServerPersistance>();
            BaseFramework.DpEngine
            .RegisterEngine <AccessPersistance>();
            #endregion

            BaseSecurity.LoginWithRole = false;
            BaseWinSecurity.Init(this, DoLogin, DoLogout, true);

            #region register button menu
            BaseWinSecurity.ListLoginButton.Add(btnLogout);
            BaseWinSecurity.ListLoginButton.Add(btnUbahPassword);

            BaseWinSecurity.ListAdminButton.Add(btnUserDanHakAkses);
            BaseWinSecurity.ListAdminButton.Add(btnLogAktivitas);
            BaseWinSecurity.ListAdminButton.Add(btnManajemenDatabase);
            #endregion

            #region Place Init Security Module here...
            #endregion
        }
        public RibbonMenu1()
        {
            InitializeComponent();

            BaseWinFramework.ShowProgressBar(Text);
            BaseSecurity.LoginWithRole = false;

            #region Register Persistance Engine
            BaseFramework.DpEngine
            .RegisterEngine <SqlServerPersistance>();
            BaseFramework.DpEngine
            .RegisterEngine <AccessPersistance>();
            #endregion

            // WARNING !!!
            // You Must Set your Company Name & Product Name on
            //   Project->[ProjectName] Properties->Application->
            //   Assembly Information->Product...

            BaseWinSecurity.Init(this, DoLogin, DoLogout, true, pgSistem);

            // Register your Document here...
        }
Example #3
0
        public MdiForm()
        {
            using (new WaitCursor())
            {
                InitializeComponent();

                BaseWinFramework.ShowProgressBar(Text);

                BaseSecurity.LoginWithRole = false;

                BaseFramework.DpEngine
                .RegisterEngine <SqlServerPersistance>();
                BaseFramework.DpEngine
                .RegisterEngine <AccessPersistance>();

                //BaseFramework.EnableWriteLog = true;

                ribbonControl1.SelectedPage = ribbonPage4;

                BaseWinSecurity.Init(this, null, null,
                                     true, pgAksesSistem);

                BaseGL.SetingPerusahaan.OnEntityAction +=
                    new EntityAction(SetingPerusahaan_OnEntityAction);

                TableDef td  = MetaData.GetTableDef <Departemen>();
                FieldDef fld = td.GetFieldDef("DepartemenProduksi");
                fld.IsHidden = true;

                BaseWinSecurity.ListAdminButton.Add(mnPenguncianTgl);

                BaseWinSecurity.ListLoginButton.Add(mnNeraca);
                BaseWinSecurity.ListLoginButton.Add(mnLabaRugi);
                BaseWinSecurity.ListLoginButton.Add(mnMutasiAkun);
                BaseWinSecurity.ListLoginButton.Add(mnRingkasanAkun);

                string FolderName;

                #region Menu Keuangan
                FolderName = "Keuangan\\Transaksi";
                BaseWinSecurity.RegisterDocumentModule
                <DocPenerimaanKasUmum>(PenerimaanKasUmum.ModuleName,
                                       FolderName, mnPenerimaanKasUmum);
                BaseWinSecurity.RegisterDocumentModule
                <DocPengeluaranKasUmum>("Pengeluaran Kas Umum", FolderName,
                                        mnPengeluaranKasUmum);
                BaseWinSecurity.RegisterDocumentModule
                <DocTransferAntarKas>("Transfer Antar Kas", FolderName,
                                      mnTransferKas);
                BaseWinSecurity.RegisterDocumentModule
                <DocPerintahBayar>("Perintah Bayar", FolderName,
                                   mnPerintahBayar);
                BaseWinSecurity.RegisterDocumentModule
                <DocPengeluaranPerintahBayar>(
                    "Pengeluaran Uang dari Perintah Bayar", FolderName,
                    mnPengeluaranDariPerintahBayar);

                FolderName = "Keuangan\\Master";
                BaseWinSecurity.RegisterDocumentModule
                <DocJenisPenerimaanKas>("Jenis Penerimaan Kas", FolderName,
                                        mnJenisPenerimaanKas);
                BaseWinSecurity.RegisterDocumentModule
                <DocJenisPengeluaranKas>("Jenis Pengeluaran Kas", FolderName,
                                         mnJenisPengeluaranKas);
                #endregion

                #region Menu Buku Besar
                FolderName = "Buku Besar\\Transaksi";
                BaseWinSecurity.RegisterDocumentModule
                <DocJurnal>("Jurnal Umum", FolderName, mnJurnalUmum);
                BaseWinSecurity.RegisterDocumentModule
                <DocKursHarian>("Kurs Harian", FolderName, mnKursHarian);

                FolderName = "Buku Besar\\Laporan";
                BaseWinGL.RegisterPopNeraca(FolderName, mnNeraca);
                BaseWinGL.RegisterPopLabaRugi(FolderName, mnLabaRugi);
                BaseWinGL.RegisterPosisiAkun(FolderName, mnPosisiAkun);
                BaseWinGL.RegisterPopMutasiAkun(FolderName, mnMutasiAkun);
                BaseWinGL.RegisterPopRingkasanAkun(FolderName, mnRingkasanAkun);

                FolderName = "Buku Besar\\Master";
                BaseWinSecurity.RegisterDocumentModule
                <DocAkun>("Akun", FolderName, mnAkun);
                BaseWinSecurity.RegisterDocumentModule
                <DocAturanJurnal>("Aturan Jurnal", FolderName, mnAturanJurnal);
                BaseWinSecurity.RegisterDocumentModule
                <DocJenisDokSumberJurnal>("Jenis Dok. Sumber",
                                          FolderName, mnJenisDokSumberJurnal);
                BaseWinSecurity.RegisterDocumentModule
                <DocDepartemen>("Departemen", FolderName, mnDepartemen);
                BaseWinSecurity.RegisterDocumentModule
                <DocProyek>("Proyek", FolderName, mnProyek);
                BaseWinSecurity.RegisterDocumentModule
                <DocMataUang>("Mata Uang", FolderName, mnMataUang);

                BaseWinSecurity.RegisterDocumentModule
                <DocSaldoAwalAkun>("Saldo Awal Akun",
                                   "Sistem\\Saldo Awal", mnSaldoAwalAkun);
                BaseWinSecurity.RegisterDocumentModule
                <DocNilaiTukarSaldoAwal>("Nilai Tukar Saldo Awal",
                                         "Sistem\\Saldo Awal", mnNilaiTukarSaldoAwal);
                #endregion

                BaseWinSecurity.RegisterSingleDocumentModule <frmSetingPerusahaan>(
                    "Seting Perusahaan", "Sistem", mnSetingPerusahaan);
            }
        }