public frmCompanyVehcile()
        {
            InitializeComponent();
            InitializeConstructor();
            ComboFunctions.FillSubCompanyCombo(ddlSubCompany);
            ComboFunctions.FillVehicleTypeCombo(ddlVehicleType);
            ComboFunctions.FillVehicleColorsCombo(ddlVehicleColor);
            ComboFunctions.FillFuelTypeCombo(ddlFuelType);


            btnInsuranceExpiryBrowsing.Click += new EventHandler(btnInsuranceExpiryBrowsing_Click);
            btnMOTExpiryBrowsing.Click       += new EventHandler(btnMOTExpiryBrowsing_Click);
            btnRoadTaxExpiryBrowsing.Click   += new EventHandler(btnRoadTaxExpiryBrowsing_Click);
            btnPlateExpiryBrowsing.Click     += new EventHandler(btnPlateExpiryBrowsing_Click);
            btnPlateExpiryBrowsing2.Click    += new EventHandler(btnPlateExpiryBrowsing2_Click);
            btnPlateExpiryBrowsing3.Click    += new EventHandler(btnPlateExpiryBrowsing3_Click);
            btnVehicleBookBrowsing.Click     += new EventHandler(btnVehicleBookBrowsing_Click);

            btnPlateExpiryView.Click     += new EventHandler(btnPlateExpiryView_Click);
            btnPlateExpiryView2.Click    += new EventHandler(btnPlateExpiryView2_Click);
            btnPlateExpiryView3.Click    += new EventHandler(btnPlateExpiryView3_Click);
            btnMOTExpiryView.Click       += new EventHandler(btnMOTExpiryView_Click);
            btnInsuranceExpiryView.Click += new EventHandler(btnInsuranceExpiryView_Click);
            btnRoadTaxExpiryView.Click   += new EventHandler(btnRoadTaxExpiryView_Click);
            btnVehicleBookView.Click     += new EventHandler(btnVehicleBookView_Click);

            btnInsuranceExpiryClear.Click += new EventHandler(btnInsuranceExpiryClear_Click);
            btnMOTExpiryClear.Click       += new EventHandler(btnMOTExpiryClear_Click);
            btnPlateExpiryClear.Click     += new EventHandler(btnPlateExpiryClear_Click);
            btnPlateExpiryClear2.Click    += new EventHandler(btnPlateExpiryClear2_Click);
            btnPlateExpiryClear3.Click    += new EventHandler(btnPlateExpiryClear3_Click);
            btnRoadTaxExpiryClear.Click   += new EventHandler(btnRoadTaxExpiryClear_Click);
            btnVehicleBookClear.Click     += new EventHandler(btnVehicleBookClear_Click);
        }
Esempio n. 2
0
 void rptfrmCompnayVehicle_Load(object sender, EventArgs e)
 {
     ComboFunctions.FillSubCompanyCombo(ddlSubCompany);;
     if (ddlSubCompany.Items.Count() == 1)
     {
         ddlSubCompany.SelectedIndex = 0;
     }
     ComboFunctions.FillVehicleTypeCombo(ddlVehicleType);
 }
 private void FillCombo()
 {
     // ComboFunctions.
     ComboFunctions.FillLocationTypeCombo(ddlFromLocType);
     ComboFunctions.FillLocationTypeCombo(ddlToLocType);
     ComboFunctions.FillVehicleTypeCombo(ddlVehicleType);
     //    ComboFunctions.FillCompanyCombo(ddlCompany);
     ddlFromLocType.SelectedValue = Enums.LOCATION_TYPES.POSTCODE;
     ddlToLocType.SelectedValue   = Enums.LOCATION_TYPES.POSTCODE;
 }
Esempio n. 4
0
        private void rptfrmJobHistoryReport_Load_1(object sender, EventArgs e)
        {
            try
            {
                ComboFunctions.FillDriverNoCombo(ddl_Driver);
                ComboFunctions.FillVehicleTypeCombo(ddlVehicle);

                dtpFromDate.Value = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1);
                dtpTillDate.Value = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.LastDayOfMonthValue());
            }
            catch (Exception ex)
            {
            }
        }
Esempio n. 5
0
        private void FillCombos()
        {
            ComboFunctions.FillVehicleTypeCombo(ddlVehicleType);
            ComboFunctions.FillCompanyCombo(ddlCompany);



            ComboFunctions.FillSubCompanyCombo(ddlSubCompanyId);

            if (ddlSubCompanyId.Items.Count == 0)
            {
                ddlSubCompanyId.SelectedIndex = 0;
            }
        }