public ZipcodeSelectForm(Zipcodes clsZipcodesIn, string toSelect) { InitializeComponent(); lblSearchType.Text += toSelect; clsZipcodes = clsZipcodesIn; loadList(); }
/// <summary> /// Constructor for the form that either adds a Household or a HosueholdMember /// </summary> /// <param name="clsIn">The client class</param> /// adds Household</param> public AddNewHousehold2(Client clsIn) { InitializeComponent(); clsHH = clsIn.clsHH; clsHHM = clsIn.clsHHmem; this.BackColor = CCFBGlobal.bkColorBaseEdit; lblHelp.BackColor = Color.Cornsilk; csdgdataaccess = new CSDGSqlDataAccess(CCFBGlobal.connectionString); lblPhoneNum.Visible = cboPhoneType.Visible = tbPhone.Visible = CCFBPrefs.EnableClientPhone; lblVerifyMethod.Visible = cboIDType.Visible = CCFBPrefs.EnableVerifyId; tbBabySvcDescr.Visible = chkBabyServices.Visible = CCFBPrefs.EnableBabyServices; chkNoCommodities.Visible = CCFBPrefs.EnableTEFAP; chkSupplOnly.Visible = CCFBPrefs.EnableSupplemental; this.Text = modedescription; lvwSameHouseNbr.Visible = true; pnl.Visible = true; tbLastName.Text = ""; tbeAddress.Text = ""; chkInCityLimits.Checked = false; chkHomeless.Checked = false; //tpgSameHouseNbr.Text = ""; //Fill Combos CCFBGlobal.InitCombo(cboSpecialLang, CCFBGlobal.parmTbl_Language); CCFBGlobal.InitCombo(cboClientType, CCFBGlobal.parmTbl_Client); CCFBGlobal.InitCombo(cboPhoneType, CCFBGlobal.parmTbl_Phone); CCFBGlobal.InitCombo(cboIDType, CCFBGlobal.parmTbl_AddressID); CCFBGlobal.InitCombo(cboMemIDType, CCFBGlobal.parmTbl_IdVerify); CCFBGlobal.InitCombo(cboRace, CCFBGlobal.parmTbl_Race); //Set selected value for combos to ID = 0 cboIDType.SelectedValue = "0"; cboPhoneType.SelectedValue = "0"; cboClientType.SelectedValue = "1"; cboSpecialLang.SelectedValue = "0"; cboMemIDType.SelectedValue = "0"; cboRace.SelectedValue = "0"; clsZipcodes = new Zipcodes(CCFBGlobal.connectionString); initTextboxes(); tbeCity.Text = CCFBPrefs.DefaultCity; tbeState.Text = CCFBPrefs.DefaultState; tbeZipCode.Text = CCFBPrefs.DefaultZipcode; btnSaveClient.Enabled = false; lvwHHMByBirthdate.Dock = DockStyle.Fill; lvwLastName.Dock = DockStyle.Fill; lvwPeople.Dock = DockStyle.Fill; lvwSameHouseNbr.Dock = DockStyle.Fill; showlvwControl(4); //spltcontMain.Panel2Collapsed = true; }
public EditPreferencesForm() { InitializeComponent(); bNormalMode = false; //My Food Bank tbFoodBankName.Text = CCFBPrefs.FoodBankName; tbPostalAddress.Text = CCFBPrefs.PostalAddress; tbPhysicalAddress.Text = CCFBPrefs.PhysicalAddress; tbPhoneNumber.Text = CCFBPrefs.PhoneNumber; tbEmailAddress.Text = CCFBPrefs.EmailAddress; tbFaxNum.Text = CCFBPrefs.FaxNumber; tbCounty.Text = CCFBPrefs.County; chkCaptureSignature.Checked = CCFBPrefs.CaptureSignature; chkEnableCDBGReporting.Checked = CCFBPrefs.EnableCDBGReporting; tbAgencyNbr.Text = CCFBPrefs.AgencyNumber; tbEFAPLeadAgency.Text = CCFBPrefs.EFAPLeadAgency; // chkEnableHomeDeliv.Checked = CCFBPrefs.EnableHomeDeliv; chkEnableClientReceipt.Checked = CCFBPrefs.EnableClientReceipt; chkFTScaleLbsIncludeTEFAP.Checked = CCFBPrefs.LbsIncludeCommodityWt; chkEnableFTScale.Checked = CCFBPrefs.EnableFTscale; cboSvcMnuTyp.SelectedIndex = CCFBPrefs.ServiceMenuType; chkEnablePointsTracking.Checked = CCFBPrefs.EnablePointsTracking; tbPointsPerWeek.Text = CCFBPrefs.PointsPerWeek.ToString(); tbPointsPerFamMbr.Text = CCFBPrefs.PointsPerFamMbr.ToString(); tbPointsPerWeekOutOfArea.Text = CCFBPrefs.PointsPerWeekOutOfArea.ToString(); tbMaxPointsPerWeek.Text = CCFBPrefs.MaxPointsPerWeek.ToString(); //Features chkEnableFoodService.Checked = CCFBPrefs.EnableFoodServices; chkEnableAppointments.Checked = CCFBPrefs.EnableAppointments; chkEnableFoodDonations.Checked = CCFBPrefs.EnableFoodDonations; chkEnableCashDonations.Checked = CCFBPrefs.EnableCashDonations; chkEnableVolunteerHours.Checked = CCFBPrefs.EnableVolunteerHours; chkEnablePrintClientCard.Checked = CCFBPrefs.EnablePrintClientCard; chkEnableVouchers.Checked = CCFBPrefs.EnableVouchers; chkEnableCSFP.Checked = CCFBPrefs.EnableCSFP; chkEnableCSFPOnNewSvc.Checked = CCFBPrefs.EnableCSFPOnNewSvc; chkCSFPShowRoutes.Checked = CCFBPrefs.EnableCSFPShowRoutes; chkEnableSchSupply.Checked = CCFBPrefs.EnableSchSupply; chkEnableTEFAP.Checked = CCFBPrefs.EnableTEFAP; chkEnableBackPack.Checked = CCFBPrefs.EnableBackPack; chkMustBeACommodityDay.Checked = CCFBPrefs.MustBeACommodityDay; tbCommSigValidFor.Text = CCFBPrefs.CommSigValidFor.ToString(); chkEnableSupplemental.Checked = CCFBPrefs.EnableSupplemental; chkEnableServiceGroups.Checked = CCFBPrefs.EnableServiceGroups; chkEnableBabyServices.Checked = CCFBPrefs.EnableBabyServices; chkEnableBarcodePrompts.Checked = CCFBPrefs.EnableBarcodePrompts; chkSearchFamilyMember.Checked = CCFBPrefs.BarcodeUseFamilyMember; chkAutoGiveService.Checked = CCFBPrefs.AutomaticallyGiveService; chkEnableClientPhone.Checked = CCFBPrefs.EnableClientPhone; chkEnableVerifyId.Checked = CCFBPrefs.EnableVerifyId; chkEnableHouseholdIncome.Checked = CCFBPrefs.EnableHouseholdIncome; chkEnableHUDIncomeCategory.Checked = CCFBPrefs.EnableHUDCategory; chkEnableHHUserDefinedFieldsTab.Checked = CCFBPrefs.EnableHHUserDefinedFields; chkEnableWorksInArea.Checked = CCFBPrefs.EnableWorksInArea; chkEnableAdditionalHHMDataTab.Checked = CCFBPrefs.EnableAdditionalHHMDataTab; chkEnableEthnicityHHMTab.Checked = CCFBPrefs.EnableEthnicityHHMTab; chkEnableIDFlds.Checked = CCFBPrefs.EnableIDFlds; chkEnableFastTrack.Checked = CCFBPrefs.EnableFastTrack; nudAlertMonthSvc.Value = CCFBPrefs.AlertMonthSvc; tbAlertMonthSvcText.Text = CCFBPrefs.AlertMonthSvcText; nudAlertWeekSvc.Value = CCFBPrefs.AlertWeekSvc; tbAlertWeekSvcText.Text = CCFBPrefs.AlertWeekSvcText; nudAlertMinimumDays.Value = CCFBPrefs.AlertMinimumDays; tbAlertMinDaysText.Text = CCFBPrefs.AlertMinDaysText; nudAlertMinimumMonths.Value = CCFBPrefs.AlertMinimumMonths; tbAlertMinMonthsText.Text = CCFBPrefs.AlertMinMonthsText; chkWarnSvcEachPerson.Checked = CCFBPrefs.WarnSvcEachPerson; CCFBGlobal.InitCombo(cboFMIDType, CCFBGlobal.parmTbl_IdVerify); cboFMIDType.SelectedValue = CCFBPrefs.DefaultFMIDType.ToString(); chkCaptureTEFAPSign.Checked = CCFBPrefs.CaptureTEFAPSignature; chkIncludeLbsOnFoodSvcList.Checked = CCFBPrefs.IncludeLbsOnSvcList; nudAlertMonthSvc_ValueChanged(null, null); nudAlertWeekSvc_ValueChanged(null, null); //Add Client Options tbDefaultCity.Text = CCFBPrefs.DefaultCity; tbDefaultState.Text = CCFBPrefs.DefaultState; tbDefaultZipcode.Text = CCFBPrefs.DefaultZipcode; chkAllowDuplicateHHNames.Checked = CCFBPrefs.AllowDuplicateHHNames; chkAllowDuplicateMemberNames.Checked = CCFBPrefs.AllowDuplicateMemberNames; if (CCFBPrefs.UseFamilyList == CCFBPrefs.UseFamilyListCode.Normally) { rdobNormally.Checked = true; } else if (CCFBPrefs.UseFamilyList == CCFBPrefs.UseFamilyListCode.Sometimes) { rdobSometimes.Checked = true; } else if (CCFBPrefs.UseFamilyList == CCFBPrefs.UseFamilyListCode.Always) { rdobAlways.Checked = true; } else if (CCFBPrefs.UseFamilyList == CCFBPrefs.UseFamilyListCode.Never) { rdobNever.Checked = true; } switch (CCFBPrefs.OverRideLevel) { case CCFBGlobal.permissions_Intake: rdoOverRideIntake.Checked = true; break; case CCFBGlobal.permissions_IntakeAdmin: rdoOverRideInatkeAdmin.Checked = true; break; default: rdoOverRideAdmin.Checked = true; break; } //Form Options chkFindClientAutoRefresh.Checked = CCFBPrefs.FindClientAutoRefresh; tbServiceLogRefreshRate.Text = CCFBPrefs.ServiceLogRefreshRate.ToString(); tbLbsPerCSFPService.Text = CCFBPrefs.CSFPLbsPerService.ToString(); tbApptLogRefreshRate.Text = CCFBPrefs.ApptLogRefreshRate.ToString(); tbNbrMealsPerService.Text = CCFBPrefs.NbrMealsPerService.ToString(); tbNbrDaysAllowMods.Text = CCFBPrefs.NbrDaysAllowMods.ToString(); tbNbrSvcDatesFuture.Text = CCFBPrefs.NbrSvcDatesFuture.ToString(); tbNbrSvcDatesPast.Text = CCFBPrefs.NbrSvcDatesPast.ToString(); chkFilterPeriodFromAddress.Checked = CCFBPrefs.FilterPeriodFromAddress; //Monthly Reports System.Collections.ArrayList ptList = new System.Collections.ArrayList(); ptList.Add(new parmType(1, "January", 0, "JAN")); ptList.Add(new parmType(7, "July", 1, "JUL")); ptList.Add(new parmType(10, "October", 2, "OCT")); cboFiscalStartMonth.DataSource = ptList; cboFiscalStartMonth.DisplayMember = "LongName"; cboFiscalStartMonth.ValueMember = "UID"; cboFiscalStartMonth.SelectedValue = CCFBPrefs.FiscalYearStartMonth.ToString(); chkMeregeTeens.Checked = CCFBPrefs.MergeTeens; tbInkindDollarsPerHour.Text = CCFBPrefs.InkindDollarsPerHr.ToString("F"); tbInkindDollarsPerLb.Text = CCFBPrefs.InkindDollarsPerLb.ToString("F"); tbNWHDonorId.Text = CCFBPrefs.DonorIDNWH.ToString(); tbDonorIdEFAP.Text = CCFBPrefs.DonorIDEFAP.ToString(); tbDonorIdTEFAP.Text = CCFBPrefs.DonorIDTEFAP.ToString(); tbDonorId2ndHarvest.Text = CCFBPrefs.DonorID2ndHarvest.ToString(); tbDonorId01.Text = CCFBPrefs.DonorId01.ToString(); tbDonorId02.Text = CCFBPrefs.DonorId02.ToString(); tbDonorId03.Text = CCFBPrefs.DonorId03.ToString(); tbDonorId04.Text = CCFBPrefs.DonorId04.ToString(); tbDonorId05.Text = CCFBPrefs.DonorId05.ToString(); tbDonorId06.Text = CCFBPrefs.DonorId06.ToString(); tbDonorId07.Text = CCFBPrefs.DonorId07.ToString(); tbDonorId08.Text = CCFBPrefs.DonorId08.ToString(); tbDonorId09.Text = CCFBPrefs.DonorId09.ToString(); tbDonorId10.Text = CCFBPrefs.DonorId10.ToString(); tbDonorId11.Text = CCFBPrefs.DonorId11.ToString(); tbDonorId12.Text = CCFBPrefs.DonorId12.ToString(); tbDonorId13.Text = CCFBPrefs.DonorId13.ToString(); tbDonorId14.Text = CCFBPrefs.DonorId14.ToString(); tbDonorId15.Text = CCFBPrefs.DonorId15.ToString(); tbDonorId16.Text = CCFBPrefs.DonorId16.ToString(); tbDonorId17.Text = CCFBPrefs.DonorId17.ToString(); tbDonorId18.Text = CCFBPrefs.DonorId18.ToString(); tbDonorId19.Text = CCFBPrefs.DonorId19.ToString(); tbDonorId20.Text = CCFBPrefs.DonorId20.ToString(); chkIncludeCommodityLbsInCoalition.Checked = CCFBPrefs.IncludeCommodityLbsInCoalition; chkIncludeCommodityLbsInFoodLifeline.Checked = CCFBPrefs.IncludeCommodityLbsInFoodLifeline; chkIncludeCommodityLbsInNorthwestHarvest.Checked = CCFBPrefs.IncludeCommodityLbsInNorhtwestHarvest; chkIncludeCommodityLbsInSecondHarvestInlandNW.Checked = CCFBPrefs.IncludeCommodityLbsInSecondHarvestInland; if (CCFBPrefs.DonorPercentCalcMethod == CCFBPrefs.DonorCalcPercentMethod.LbsServed) { rdoUseLbsServed.Checked = true; } else if (CCFBPrefs.DonorPercentCalcMethod == CCFBPrefs.DonorCalcPercentMethod.LbsDonated) { rdoUseLbsDonated.Checked = true; } tbPreparedBy.Text = CCFBPrefs.PreparedBy; tbReportsSavePath.Text = CCFBPrefs.ReportsSavePath; LoadDonorLabelNames(); dataChanged = false; bNormalMode = true; chkUseTimeInOutForVols.Checked = CCFBPrefs.UseTimeInOutForVols; rdoViewByFullWeek.Checked = !CCFBPrefs.UseCalendarWeeks; rdoViewByCalendarWeek.Checked = CCFBPrefs.UseCalendarWeeks; clsZipcodes = new Zipcodes(CCFBGlobal.connectionString); }