private void FrmVendorListings_Load(object sender, EventArgs e)
        {
            dGrid.DataSource = BindingSource1;
            MyModules.applyGridTheme(dGrid);
            dGrid.ReadOnly            = true;
            cboCriteria.SelectedIndex = 1;
            CmbCriteria.SelectedIndex = 1;

            mnuNew.Enabled    = MyModules.ModuleAdd;
            mnuEdit.Enabled   = MyModules.ModuleEdit;
            mnuBrowse.Enabled = MyModules.ModuleBrowse;
            mnuDelete.Enabled = MyModules.ModuleDelete;
            if (Source1 == "STAFF")
            {
                this.Text = "Staff Information";
                //LoadTV();
                //SplitContainer2.Panel1Collapsed = false;
            }
            else
            {
                this.Text = "Vendor Information";
                //SplitContainer2.Panel1Collapsed = true;
                //LoadLvList("");
            }
        }
Example #2
0
 private void FrmImportData_Load(object sender, EventArgs e)
 {
     this.DGridReal.DataSource = BindingSource1;
     //DGridReal.AutoGenerateColumns = false;
     oLoadSchName();
     MyModules.applyGridTheme(DGridReal);
     DGridReal.ReadOnly           = false;
     DGridReal.AllowUserToAddRows = false;
 }
 private void FrmPaymentType_Load(object sender, EventArgs e)
 {
     this.DbGrid.DataSource     = BindingSource1;
     DbGrid.AutoGenerateColumns = false;
     GetData("select * from PaymentType ORDER BY SN");
     MyModules.applyGridTheme(DbGrid);
     DbGrid.ReadOnly              = false;
     DbGrid.AllowUserToAddRows    = true;
     DbGrid.AllowUserToDeleteRows = true;
 }
Example #4
0
        private void FrmList_Load(object sender, EventArgs e)
        {
            DGrid.DataSource          = bindingSource;
            cboCriteria.SelectedIndex = 1;

            MyModules.applyGridTheme(DGrid);
            DGrid.RowHeadersWidth     = 12;
            DGrid.ColumnHeadersHeight = 22;
            DGrid.ReadOnly            = true;
            LoadLvList();
        }
        private void FrmSchoolListings_Load(object sender, EventArgs e)
        {
            dGrid.DataSource = BindingSource1;
            MyModules.applyGridTheme(dGrid);
            dGrid.ReadOnly = true;
            SplitContainer2.SplitterDistance = 322;
            cboCriteria.SelectedIndex        = 1;
            CmbCriteria.SelectedIndex        = 1;

            mnuNew.Enabled    = MyModules.ModuleAdd;
            mnuEdit.Enabled   = MyModules.ModuleEdit;
            mnuBrowse.Enabled = MyModules.ModuleBrowse;
            mnuDelete.Enabled = MyModules.ModuleDelete;
        }
Example #6
0
        private void FrmLedger_Load(object sender, EventArgs e)
        {
            DGrid.DataSource        = bindingSource;
            DGridSummary.DataSource = bindingSourceA;
            this.Tag             = 0;
            dtpStartDate.Value   = Convert.ToDateTime("01-Jan-" + DateTime.Now.Year.ToString());
            dtpEndDate.Value     = Convert.ToDateTime(DateTime.Now.ToString());
            dtpStartDate.Checked = false;
            dtpEndDate.Checked   = false;

            oLoadSchName();

            DeleteHTMTempFiles();

            MyModules.applyGridTheme(DGridSummary);
            MyModules.applyGridTheme(DGrid);
            DGridSummary.ReadOnly = true;
            DGrid.ReadOnly        = true;
        }
Example #7
0
        private void FrmSystemUsers_Load(object sender, EventArgs e)
        {
            mnuNew.Enabled    = MyModules.ModuleAdd;
            mnuEdit.Enabled   = MyModules.ModuleEdit;
            mnuBrowse.Enabled = MyModules.ModuleBrowse;
            mnuDelete.Enabled = MyModules.ModuleDelete;


            MyModules.applyGridTheme(ModuleDGV);
            ModuleDGV.ReadOnly = false;
            ModuleDGV.Columns["Modules"].ReadOnly = true;
            ModuleDGV.Columns["Modules"].Width    = 150;


            if (mnuNew.Enabled == true)
            {
                mnuNew_Click(sender, e);
            }
        }
Example #8
0
        private void FrmSearch_Load(object sender, EventArgs e)
        {
            DbGrid.DataSource          = bindingSource1;
            DbGrid.AutoGenerateColumns = false;

            cboCriteria.SelectedIndex = 0;

            MyModules.applyGridTheme(DbGrid);
            DbGrid.ReadOnly = true;

            DbGrid.Columns["MandateNo"].Width  = 120;
            DbGrid.Columns["dIndex"].Visible   = false;
            DbGrid.Columns["tDate"].Width      = 80;
            DbGrid.Columns["tBName"].Width     = 140;
            DbGrid.Columns["Amount"].Width     = 80;
            DbGrid.Columns["Bank"].Width       = 120;
            DbGrid.Columns["BankAcctNo"].Width = 100;
            DbGrid.Columns["PayType"].Width    = 100;
            DbGrid.Columns["PayDetails"].Width = 150;
            DbGrid.Columns["MainAction"].Width = 80;
        }
Example #9
0
        private void FrmRegister_Load(object sender, EventArgs e)
        {
            mnuNew.Enabled              = MyModules.GetUserAccessDetails("Add New Contractor", false);
            mnuEdit.Enabled             = MyModules.GetUserAccessDetails("Edit Contractor", false);
            mnuDelete.Enabled           = MyModules.GetUserAccessDetails("Delete Contractor", false);
            mnuBrowse.Enabled           = mnuEdit.Enabled || mnuDelete.Enabled;
            dataGridViewJobs.DataSource = BindingSource1;
            if (mnuNew.Enabled)
            {
                mnuNew_Click(sender, e);
            }

            MyModules.applyGridTheme(dataGridViewJobs);

            dataGridViewJobs.ReadOnly              = false;
            dataGridViewJobs.AllowUserToAddRows    = true;
            dataGridViewJobs.AllowUserToDeleteRows = true;
            dataGridViewJobs.Columns[0].Visible    = false;
            dataGridViewJobs.Columns[1].Width      = 100;
            dataGridViewJobs.Columns[2].Width      = 250;
            dataGridViewJobs.Columns[3].Width      = 100;
            dataGridViewJobs.Columns[4].Width      = 60;
        }
 private void FrmReportBuilder_Load(object sender, EventArgs e)
 {
     MyModules.applyGridTheme(userDataGridView);
     userDataGridView.ReadOnly = true;
 }