Esempio n. 1
0
        private void initVariables()
        {
            //249, 29
            pnlLeaveSanctionLimitOuter.Location = new Point(249, 20);
            pnlLeaveTypeOuter.Location          = new Point(249, 20);
            pnlLeaveOfficeMapOuter.Location     = new Point(249, 20);

            pnlLeaveSanctionLimitOuter.Parent = pnlUI;
            pnlLeaveTypeOuter.Parent          = pnlUI;
            pnlLeaveOfficeMapOuter.Parent     = pnlUI;

            pnlLeaveSanctionLimitInner.Parent = pnlLeaveSanctionLimitOuter;
            pnlLeaveTypeInner.Parent          = pnlLeaveTypeOuter;
            pnlLeaveOfficeMapInner.Parent     = pnlLeaveOfficeMapOuter;

            OfficeDB.fillOfficeComboNew(cmbLomOffice);
            CatalogueValueDB.fillCatalogValueComboNew(cmbLslDesignation, "Designation");
            CatalogueValueDB.fillCatalogValueComboNew(cmbGender, "Gender");
            LeaveSettingsdb.fillLeaveComboNew(cmbLomLeaveID);
            LeaveSettingsdb.fillLeaveComboNew(cmbLslLeaveID);
            cmbGender.Items.Add("All");
            btnNew.Visible = false;

            pnlLeaveOfficeMapOuter.Visible     = false;
            pnlLeaveSanctionLimitOuter.Visible = false;
            pnlLeaveTypeOuter.Visible          = false;
        }
Esempio n. 2
0
 private void btnLeaveOfficeMapping_Click(object sender, EventArgs e)
 {
     OfficeDB.fillOfficeComboNew(cmbLomOffice);
     CatalogueValueDB.fillCatalogValueComboNew(cmbLslDesignation, "Designation");
     CatalogueValueDB.fillCatalogValueComboNew(cmbGender, "Gender");
     LeaveSettingsdb.fillLeaveComboNew(cmbLomLeaveID);
     cmbGender.Items.Add("All");
     LeaveSettingsdb.fillLeaveComboNew(cmbLslLeaveID);
     leaveofficemapping();
 }