private void FillCombos() { //ComboFunctions.FillLocationTypeCombo(ddlLocationType,c=>c.Id!=Enums.LOCATION_TYPES.ADDRESS); ComboFunctions.FillLocationTypeCombo(ddlLocationType); ComboFunctions.FillZonesCombo(ddlZone); }
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; }
private void InitializeConstructor() { ComboFunctions.FillLocationTypeCombo(ddlFromLocType); ComboFunctions.FillLocationTypeCombo(ddlToLocType); numFareRate.Value = this.ObjBooking.FareRate.ToDecimal(); numReturnFareRate.Value = ObjBooking.ReturnFareRate.ToDecimal(); SetLocation(this.ObjBooking.FromLocTypeId, this.ObjBooking.FromDoorNo, this.ObjBooking.FromAddress, this.ObjBooking.FromStreet, this.ObjBooking.FromPostCode, this.ObjBooking.FromLocId, this.ObjBooking.ToLocTypeId, this.ObjBooking.ToDoorNo, this.ObjBooking.ToAddress, this.ObjBooking.ToStreet, this.ObjBooking.ToPostCode, this.ObjBooking.ToLocId); this.txtFromAddress.TextChanged += new EventHandler(TextBoxElement_TextChanged); this.txtToAddress.TextChanged += new EventHandler(TextBoxElement_TextChanged); if (AppVars.objPolicyConfiguration.MapType.ToInt() == Enums.MAP_TYPE.GOOGLEMAPS) { UseGoogleMap = true; } dtpPickupDate.Value = ObjBooking.PickupDateTime; dtpPickupTime.Value = ObjBooking.PickupDateTime; if (ObjBooking.JourneyTypeId.ToInt() == Enums.JOURNEY_TYPES.RETURN) { chkIsReturn.Checked = true; dtpReturnPickupDate.Value = ObjBooking.ReturnPickupDateTime; dtpReturnPickupTime.Value = ObjBooking.ReturnPickupDateTime; SetReturnPickupDate(ToggleState.On); } else { SetReturnPickupDate(ToggleState.Off); } timer1.Tick += new EventHandler(timer1_Tick); if (AppVars.objPolicyConfiguration != null) { MapType = AppVars.objPolicyConfiguration.MapType.ToInt(); } txtFromAddress.ListBoxElement.Width = txtFromAddress.DefaultWidth; txtToAddress.ListBoxElement.Width = txtToAddress.DefaultWidth; }
private void FillCombo() { ComboFunctions.FillLocationTypeCombo(ddlLocations); ComboFunctions.FillLocationTypeCombo(ddlLocationTypes2); }