I have no idea what this error means! Can someone please point me in the correct direction?
Hey Anthony,
Can you share the code behind the error message?
StringBuilder desc = new StringBuilder();
if (Inputs.cmbBody.Value != ββ) desc.AppendLine("SERVICE BODY- " + Inputs.txtBodyQuoteDesc.Value);
if (Inputs.cmbUnderBodyBox.Value != ββ) desc.AppendLine("PASSENGER SIDE BOX- " + Inputs.txtUnderBodyBoxQuoteDesc.Value);
if (Inputs.cmbUnderBodyBoxSR.Value != ββ) desc.AppendLine("DRIVERβS SIDE BOX- " + Inputs.txtUnderBodyBoxQuoteDescSR.Value);
if (Inputs.cmbUnderBodyBoxCF.Value != ββ) desc.AppendLine("CROSSBOX- " + Inputs.txtUnderBodyBoxCFQuoteDesc.Value);
if (Inputs.cmbTopSideBoxSSR.Value != ββ) desc.AppendLine(βPACK RAT- " + Inputs.txtTopSideBoxSSRQuoteDesc.Value);
if (Inputs.cmbTopSideBoxCS1.Value != ββ) desc.AppendLine(βBED SLIDE- " + Inputs.txtTopSideBoxCS1QuoteDesc.Value);
if ((Inputs.cmbBody.Value != ββ) || (Inputs.cmbUnderBodyBoxSR.Value != ββ) || (Input.cmbUnderBodyBoxCF.Value !=ββ) || (Inputs.cmbTopSideBoxCS1.Value != ββ) || (Inputs.cmbTopSideBoxSSR.Value != ββ) || (Inputs.cmbUnderBodyBox.Value != ββ)) desc.AppendLine();
if (Inputs.cmbBackupSensor.Value != ββ) desc.AppendLine("BACKUP SENSOR - " + Inputs.txtBackupSensorQuoteDesc.Value);
if (Inputs.cmbBackupAlarm.Value != ββ) desc.AppendLine("BACKUP ALARM - " + Inputs.txtBackupAlarmQuoteDesc.Value);
if (Inputs.cmbFireExt.Value != ββ) desc.AppendLine("FIRE EXT. - " + Inputs.txtFireExtQuoteDesc.Value);
if (Inputs.cmbSafetyKit.Value != ββ) desc.AppendLine("SAFETY KIT - " + Inputs.txtSafetyKitQuoteDesc.Value);
if (Inputs.cmbCamera.Value != ββ) desc.AppendLine("REAR CAMERA - " + Inputs.txtCameraQuoteDesc.Value);
if ((Inputs.cmbBackupSensor.Value != ββ) || (Inputs.cmbCamera.Value != ββ) (Inputs.cmbSafetyKit.Value != ββ) || (Inputs.cmbFireExt.Value != ββ) || (Inputs.cmbBackupAlarm.Value != ββ)) desc.AppendLine();
if (Inputs.cmbFirstAid.Value != ββ) desc.AppendLine("FIRST AID KIT - " + Inputs.txtFirstAidQuoteDesc.Value);
if (Inputs.cmbLiftgate.Value != ββ) desc.AppendLine("LIFTGATE - " + Inputs.txtLiftgateQuoteDesc.Value);
if (Inputs.cmbCranes.Value != ββ) desc.AppendLine("BED COVER - " + Inputs.txtCranesQuoteDesc.Value);
if (Inputs.cmbLadderRack.Value != ββ) desc.AppendLine("LADDER RACK - " + Inputs.txtLadderRackQuoteDesc.Value);
if ((Inputs.cmbFirstAid.Value != ββ) || (Inputs.cmbLiftgate.Value != ββ) || (Inputs.cmbCranes.Value != ββ) || (Inputs.cmbLadderRack.Value != ββ)) desc.AppendLine();
if (Inputs.cmbCH.Value != ββ) desc.AppendLine ("WINCH- " + Inputs.txtSHQuoteDesc.Value);
if (Inputs.cmbFrontEnd.Value != ββ) desc.AppendLine("FRONTEND REPLACEMENT - " + Inputs.txtFrontEndQuoteDesc.Value);
if (Inputs.cmbNerfBars.Value != ββ) desc.AppendLine("STEP SIDES- " + Inputs.txtNerfBarsQuoteDesc.Value);
if (Inputs.cmbCellBoost.Value != ββ) desc.AppendLine ("CELL BOOSTER - " + Inputs.txtCellBoostQuoteDesc.Value);
if (Inputs.cmbInverter.Value != ββ) desc.AppendLine ("INVERTER - " + Inputs.txtInverterQuoteDesc.Value);
if ((Inputs.cmbCH.Value != ββ) || (Inputs.cmbFrontEnd.Value != ββ) || (Inputs.cmbNerfBars.Value != ββ) || (Inputs.cmbCellBoost.Value != ββ) || (Inputs.cmbInverter.Value != ββ)) desc.AppendLine();
if (Inputs.cmbCornerStrobe.Value != ββ) desc.AppendLine("STROBE LIGHTS - " + Inputs.txtCornerStrobeQuoteDesc.Value);
if (Inputs.cmbLightBar.Value != ββ) desc.AppendLine("LIGHT BAR - " + Inputs.txtLightBarQuoteDesc.Value);
if (Inputs.cmbWorkLights.Value != ββ) desc.AppendLine("WORK LIGHT - " + Inputs.txtWorkLightsQuoteDesc.Value);
if (Inputs.cmbCompLights.Value != ββ) desc.AppendLine("COMPARTMENT LIGHTS - " + Inputs.txtCompLightsQuoteDesc.Value);
if (Inputs.cmbSideRails.Value != ββ) desc.AppendLine("SIDE RAILS - " + Inputs.txtSideRailsQuoteDesc.Value);
if (Inputs.cmbSides.Value != ββ) desc.AppendLine("STAKE SIDES - " + Inputs.txtSidesQuoteDesc.Value);
if (Inputs.cmbFoldDownSide.Value != ββ) desc.AppendLine("FOLD DOWN SIDES - " + Inputs.txtFoldDownSidesQuoteDesc.Value);
if (Inputs.cmbSolidSide.Value != ββ) desc.AppendLine("SOLID SIDES - " + Inputs.txtSolidSidesQuoteDesc.Value);
if ((Inputs.cmbCornerStrobe.Value != ββ) || (Inputs.cmbWorkLights.Value != ββ) || (Inputs.cmbLightBar.Value != ββ) || (Inputs.cmbCompLights.Value != ββ))desc.AppendLine();
if (Inputs.cmbHeadRack.Value != ββ) desc.AppendLine("HEAD RACK - " + Inputs.txtHeadRackQuoteDesc.Value);
if (Inputs.cmbRH.Value != ββ) desc.AppendLine("REAR HITCH - " + Inputs.txtRHQuoteDesc.Value);
if (Inputs.cmbVise.Value != ββ) desc.AppendLine("VISE - " + Inputs.txtViseQuoteDesc.Value);
if (Inputs.cmbCodeLock.Value != ββ) desc.AppendLine("TELESCOPIC ROOF- " + Inputs.txtCodeLockQuoteDesc.Value);
if (Inputs.cmbSpray.Value != ββ) desc.AppendLine ("SPRAY LINER - " + Inputs.txtSprayQuoteDesc.Value);
if ((Inputs.cmbHeadRack.Value != ββ) || (Inputs.cmbRH.Value != ββ) || (Inputs.cmbVise.Value != ββ) || (Inputs.cmbCodeLock.Value != ββ) || (Inputs.cmbSpray.Value != ββ)) desc.AppendLine();
if (Inputs.cmbSideRails.Value != ββ) desc.AppendLine ("ETRAC - " + Inputs.txtSideRailsQuoteDesc.Value);
if (Inputs.cmbSdes.Value != ββ) desc.AppendLine("GRAB HANDLES - " + Inputs.txtSidesQuoteDesc.Value);
if (Inputs.cmbFoldDownSide.Value != ββ) desc.AppendLine ("CARGO TIE DOWNS - " + Inputs.txtFoldDownSideQuoteDesc.Value);
if (Inputs.cmbSV1.Value != ββ) desc.AppendLine ("DRAWER UNIT - " + Inputs.txtSV1QuoteDesc.Value);
if (Inputs.cmbC1V.Value != ββ) desc.AppendLine ("PULL OUT DRAWER - " + Inputs.txtC1VQuoteDesc.Value);
if (Inputs.cmbCR.Value != ββ) desc.AppendLine ("MUD GUARDS - " + Inputs.txtCRQuoteDesc.Value);
if (Inputs.cmbSR.Value != ββ) desc.AppendLine ("FLOOR MATS - " + Inputs.txtSRQuoteDesc.Value);
if (Inputs.cmbSpareTire.Value != ββ) desc.AppendLine("TAILGATE MAT - " + Inputs.txtSpareTireQuoteDesc.Value);
if (Inputs.cmbPadlock.Value != ββ) desc.AppendLine("BED MAT - " + Inputs.txtPadlocksQuoteDesc.Value);
if (Inputs.cmbGrillGuard.Value != ββ) desc.AppendLine("DOOR DECALS - " + Inputs.txtGrillGuardQuoteDesc.Value);
if (Inputs.cmbC2V.Value != ββ) desc.AppendLine("UNIT NUMBERS - " + Inputs.txtC2VQuoteDesc.Value);
if (Inputs.cmbCompressor.Value != ββ) desc.AppendLine("ROOF DECAL- " + Inputs.txtCompressorQuoteDesc.Value);
if (Inputs.cmbS2V.Value != ββ) desc.AppendLine("REFLECTIVE TAPE- " + Inputs.txtS2VQuoteDesc.Value);
if (Inputs.cmbBeaconLight.Value != ββ) desc.AppendLine("DOT DECAL- " + Inputs.txtBeaconLightQuoteDesc.Value);
if (Inputs.cmbBumpers.Value != ββ) desc.AppendLine("FUEL - " + Inputs.txtBumpersQuoteDesc.Value);
if (Inputs.cmbSH.Value != ββ) desc.AppendLine("GPS - " + Inputs.txtSHQuoteDesc.Value);
if (Inputs.cmbSolidSide.Value != ββ) desc.AppendLine("TIRES - " + Inputs.txtSolidSideQuoteDesc.Value);
if ((Inputs.cmbSideRails.Value != ββ) || (Inputs.cmbSides.Value != ββ) || (Inputs.cmbFoldDownSide.Value != ββ) || (Inputs.cmbSR.Value != ββ) || (Inputs.cmbSV1.Value != ββ) || (Inputs.cmbC1V.Value != ββ) || (Inputs.cmbSpareTire.Value != ββ) || (Inputs.cmbSH.Value != ββ) || (Inputs.cmbSolidSide.Value != ββ) || (Inputs.cmbBumpers.Value != ββ) || (Inputs.cmbBeaconLight.Value != ββ) || (Inputs.cmbS2V.Value != ββ) || (Inputs.cmbCompressor.Value != ββ) || (Inputs.cmbC2V.Value != ββ) || (Inputs.cmbGrillGuard.Value != ββ) || (Inputs.cmbPadlock.Value != ββ) || (Inputs.cmbCR.Value != ββ)) desc.AppendLine();
if (Inputs.chkWT.Value != false) desc.AppendLine (βWINDOW TINTING REQUIREDβ);
if (Inputs.chkPDI.Value || Inputs.chkPDISTate.Value || Inputs.chkPDIDOT.Value || Inputs.chkDOTOnly.Value || Inputs.chkTexInspecOnly.Value);
{
if (Inputs.chkPDI.Value)
{
desc.AppendLine (βPDI ONLY INCLUDEDβ);
}
if (Inputs.chkPDISTate.Value)
{
desc.AppendLine (βPDI and STATE INSPECTION INCLUDEDβ);
}
if (Inputs.chkDOTOnly.Value)
{
desc.AppendLine (βDOT INSPECTION ONLY INCLUDEDβ);
}
if (Inputs.chkPDIDOT.Value)
{
desc.AppendLine (βPDI and DOT INSPECTION INCLUDEDβ);
}
if (Inputs.chkTexInspecOnly.Value)
{
desc.AppendLine (βTEXAS INSPECTION ONLY INCLUDEDβ);
}
}
Inputs.edtPartDescription.Value = desc.ToString();
This is a UD Method
You are the greatest! Thanksβ¦let me give it a try now.
I can see now that you have multiple errors. Mostly misspellings.
At line 50 you have written βcmbSdesβ instead if βcmbSidesβ.
Give me few minutes to look through the code.
Thank you!!!
Can you try this. Some of the Double quotes used in the code were different than others, so I changed them
StringBuilder desc = new StringBuilder();
if (Inputs.cmbBody.Value != "") desc.AppendLine("SERVICE BODY- " + Inputs.txtBodyQuoteDesc.Value);
if (Inputs.cmbUnderBodyBox.Value != "") desc.AppendLine("PASSENGER SIDE BOX- " + Inputs.txtUnderBodyBoxQuoteDesc.Value);
if (Inputs.cmbUnderBodyBoxSR.Value != "") desc.AppendLine("DRIVERβS SIDE BOX- " + Inputs.txtUnderBodyBoxQuoteDescSR.Value);
if (Inputs.cmbUnderBodyBoxCF.Value != "") desc.AppendLine("CROSSBOX- " + Inputs.txtUnderBodyBoxCFQuoteDesc.Value);
if (Inputs.cmbTopSideBoxSSR.Value != "") desc.AppendLine("PACK RAT- " + Inputs.txtTopSideBoxSSRQuoteDesc.Value);
if (Inputs.cmbTopSideBoxCS1.Value != "") desc.AppendLine("BED SLIDE- " + Inputs.txtTopSideBoxCS1QuoteDesc.Value);
if ((Inputs.cmbBody.Value != "") || (Inputs.cmbUnderBodyBoxSR.Value != "") || (Inputs.cmbUnderBodyBoxCF.Value !="") || (Inputs.cmbTopSideBoxCS1.Value != "") || (Inputs.cmbTopSideBoxSSR.Value != "") || (Inputs.cmbUnderBodyBox.Value != "")) desc.AppendLine();
if (Inputs.cmbBackupSensor.Value != "") desc.AppendLine("BACKUP SENSOR - " + Inputs.txtBackupSensorQuoteDesc.Value);
if (Inputs.cmbBackupAlarm.Value != "") desc.AppendLine("BACKUP ALARM - " + Inputs.txtBackupAlarmQuoteDesc.Value);
if (Inputs.cmbFireExt.Value != "") desc.AppendLine("FIRE EXT. - " + Inputs.txtFireExtQuoteDesc.Value);
if (Inputs.cmbSafetyKit.Value != "") desc.AppendLine("SAFETY KIT - " + Inputs.txtSafetyKitQuoteDesc.Value);
if (Inputs.cmbCamera.Value != "") desc.AppendLine("REAR CAMERA - " + Inputs.txtCameraQuoteDesc.Value);
if ((Inputs.cmbBackupSensor.Value != "") || (Inputs.cmbCamera.Value != "") (Inputs.cmbSafetyKit.Value != "") || (Inputs.cmbFireExt.Value != "") || (Inputs.cmbBackupAlarm.Value != "")) desc.AppendLine();
if (Inputs.cmbFirstAid.Value != "") desc.AppendLine("FIRST AID KIT - " + Inputs.txtFirstAidQuoteDesc.Value);
if (Inputs.cmbLiftgate.Value != "") desc.AppendLine("LIFTGATE - " + Inputs.txtLiftgateQuoteDesc.Value);
if (Inputs.cmbCranes.Value != "") desc.AppendLine("BED COVER - " + Inputs.txtCranesQuoteDesc.Value);
if (Inputs.cmbLadderRack.Value != "") desc.AppendLine("LADDER RACK - " + Inputs.txtLadderRackQuoteDesc.Value);
if ((Inputs.cmbFirstAid.Value != "") || (Inputs.cmbLiftgate.Value != "") || (Inputs.cmbCranes.Value != "") || (Inputs.cmbLadderRack.Value != "")) desc.AppendLine();
if (Inputs.cmbCH.Value != "") desc.AppendLine ("WINCH- " + Inputs.txtSHQuoteDesc.Value);
if (Inputs.cmbFrontEnd.Value != "") desc.AppendLine("FRONTEND REPLACEMENT - " + Inputs.txtFrontEndQuoteDesc.Value);
if (Inputs.cmbNerfBars.Value != "") desc.AppendLine("STEP SIDES- " + Inputs.txtNerfBarsQuoteDesc.Value);
if (Inputs.cmbCellBoost.Value != "") desc.AppendLine ("CELL BOOSTER - " + Inputs.txtCellBoostQuoteDesc.Value);
if (Inputs.cmbInverter.Value != "") desc.AppendLine ("INVERTER - " + Inputs.txtInverterQuoteDesc.Value);
if ((Inputs.cmbCH.Value != "") || (Inputs.cmbFrontEnd.Value != "") || (Inputs.cmbNerfBars.Value != "") || (Inputs.cmbCellBoost.Value != "") || (Inputs.cmbInverter.Value != "")) desc.AppendLine();
if (Inputs.cmbCornerStrobe.Value != "") desc.AppendLine("STROBE LIGHTS - " + Inputs.txtCornerStrobeQuoteDesc.Value);
if (Inputs.cmbLightBar.Value != "") desc.AppendLine("LIGHT BAR - " + Inputs.txtLightBarQuoteDesc.Value);
if (Inputs.cmbWorkLights.Value != "") desc.AppendLine("WORK LIGHT - " + Inputs.txtWorkLightsQuoteDesc.Value);
if (Inputs.cmbCompLights.Value != "") desc.AppendLine("COMPARTMENT LIGHTS - " + Inputs.txtCompLightsQuoteDesc.Value);
if (Inputs.cmbSideRails.Value != "") desc.AppendLine("SIDE RAILS - " + Inputs.txtSideRailsQuoteDesc.Value);
if (Inputs.cmbSides.Value != "") desc.AppendLine("STAKE SIDES - " + Inputs.txtSidesQuoteDesc.Value);
if (Inputs.cmbFoldDownSide.Value != "") desc.AppendLine("FOLD DOWN SIDES - " + Inputs.txtFoldDownSidesQuoteDesc.Value);
if (Inputs.cmbSolidSide.Value != "") desc.AppendLine("SOLID SIDES - " + Inputs.txtSolidSidesQuoteDesc.Value);
if ((Inputs.cmbCornerStrobe.Value != "") || (Inputs.cmbWorkLights.Value != "") || (Inputs.cmbLightBar.Value != "") || (Inputs.cmbCompLights.Value != ""))desc.AppendLine();
if (Inputs.cmbHeadRack.Value != "") desc.AppendLine("HEAD RACK - " + Inputs.txtHeadRackQuoteDesc.Value);
if (Inputs.cmbRH.Value != "") desc.AppendLine("REAR HITCH - " + Inputs.txtRHQuoteDesc.Value);
if (Inputs.cmbVise.Value != "") desc.AppendLine("VISE - " + Inputs.txtViseQuoteDesc.Value);
if (Inputs.cmbCodeLock.Value != "") desc.AppendLine("TELESCOPIC ROOF- " + Inputs.txtCodeLockQuoteDesc.Value);
if (Inputs.cmbSpray.Value != "") desc.AppendLine ("SPRAY LINER - " + Inputs.txtSprayQuoteDesc.Value);
if ((Inputs.cmbHeadRack.Value != "") || (Inputs.cmbRH.Value != "") || (Inputs.cmbVise.Value != "") || (Inputs.cmbCodeLock.Value != "") || (Inputs.cmbSpray.Value != "")) desc.AppendLine();
if (Inputs.cmbSideRails.Value != "") desc.AppendLine ("ETRAC - " + Inputs.txtSideRailsQuoteDesc.Value);
if (Inputs.cmbSides.Value != "") desc.AppendLine("GRAB HANDLES - " + Inputs.txtSidesQuoteDesc.Value);
if (Inputs.cmbFoldDownSide.Value != "") desc.AppendLine ("CARGO TIE DOWNS - " + Inputs.txtFoldDownSideQuoteDesc.Value);
if (Inputs.cmbSV1.Value != "") desc.AppendLine ("DRAWER UNIT - " + Inputs.txtSV1QuoteDesc.Value);
if (Inputs.cmbC1V.Value != "") desc.AppendLine ("PULL OUT DRAWER - " + Inputs.txtC1VQuoteDesc.Value);
if (Inputs.cmbCR.Value != "") desc.AppendLine ("MUD GUARDS - " + Inputs.txtCRQuoteDesc.Value);
if (Inputs.cmbSR.Value != "") desc.AppendLine ("FLOOR MATS - " + Inputs.txtSRQuoteDesc.Value);
if (Inputs.cmbSpareTire.Value != "") desc.AppendLine("TAILGATE MAT - " + Inputs.txtSpareTireQuoteDesc.Value);
if (Inputs.cmbPadlock.Value != "") desc.AppendLine("BED MAT - " + Inputs.txtPadlocksQuoteDesc.Value);
if (Inputs.cmbGrillGuard.Value != "") desc.AppendLine("DOOR DECALS - " + Inputs.txtGrillGuardQuoteDesc.Value);
if (Inputs.cmbC2V.Value != "") desc.AppendLine("UNIT NUMBERS - " + Inputs.txtC2VQuoteDesc.Value);
if (Inputs.cmbCompressor.Value != "") desc.AppendLine("ROOF DECAL- " + Inputs.txtCompressorQuoteDesc.Value);
if (Inputs.cmbS2V.Value != "") desc.AppendLine("REFLECTIVE TAPE- " + Inputs.txtS2VQuoteDesc.Value);
if (Inputs.cmbBeaconLight.Value != "") desc.AppendLine("DOT DECAL- " + Inputs.txtBeaconLightQuoteDesc.Value);
if (Inputs.cmbBumpers.Value != "") desc.AppendLine("FUEL - " + Inputs.txtBumpersQuoteDesc.Value);
if (Inputs.cmbSH.Value != "") desc.AppendLine("GPS - " + Inputs.txtSHQuoteDesc.Value);
if (Inputs.cmbSolidSide.Value != "") desc.AppendLine("TIRES - " + Inputs.txtSolidSideQuoteDesc.Value);
if ((Inputs.cmbSideRails.Value != "") || (Inputs.cmbSides.Value != "") || (Inputs.cmbFoldDownSide.Value != "") || (Inputs.cmbSR.Value != "") || (Inputs.cmbSV1.Value != "") || (Inputs.cmbC1V.Value != "") || (Inputs.cmbSpareTire.Value != "") || (Inputs.cmbSH.Value != "") || (Inputs.cmbSolidSide.Value != "") || (Inputs.cmbBumpers.Value != "") || (Inputs.cmbBeaconLight.Value != "") || (Inputs.cmbS2V.Value != "") || (Inputs.cmbCompressor.Value != "") || (Inputs.cmbC2V.Value != "") || (Inputs.cmbGrillGuard.Value != "") || (Inputs.cmbPadlock.Value != "") || (Inputs.cmbCR.Value != "")) desc.AppendLine();
if (Inputs.chkWT.Value != false) desc.AppendLine ("WINDOW TINTING REQUIRED");
if (Inputs.chkPDI.Value || Inputs.chkPDISTate.Value || Inputs.chkPDIDOT.Value || Inputs.chkDOTOnly.Value || Inputs.chkTexInspecOnly.Value);
{
if (Inputs.chkPDI.Value)
{
desc.AppendLine ("PDI ONLY INCLUDED");
}
if (Inputs.chkPDISTate.Value)
{
desc.AppendLine ("PDI and STATE INSPECTION INCLUDED");
}
if (Inputs.chkDOTOnly.Value)
{
desc.AppendLine ("DOT INSPECTION ONLY INCLUDED");
}
if (Inputs.chkPDIDOT.Value)
{
desc.AppendLine ("PDI and DOT INSPECTION INCLUDED");
}
if (Inputs.chkTexInspecOnly.Value)
{
desc.AppendLine ("TEXAS INSPECTION ONLY INCLUDED");
}
}
Inputs.edtPartDescription.Value = desc.ToString();
Same error againβ¦
The red arrows points to the name of the input fields that are wrong. Can you validate that they are not misspelled (You can do that by clicking Ctrl + Space after the βInputs.β or by the Available selections Common-> Inputs) ?.
The text underlined with Blue shows the number of found errors.
Got it, Iβm diving in nowβ¦
Iβm not sure about this one, but I saw that there is a semicolon out of place:
Here:
Try to remove it and see if something changes.
No change at all, same 1 error, so I guess the semicolon didnβt belong after all.
Itβs saying that the Method name is expected, where would I put that?
The Method name is Gen_Part_Desc
_EBRIDGE1UserFunctionsClientEventCollectionTmpl.cs (20.1 KB)
EPICOR is saying that itβs in this file, but I donβt know where!
I think the problem is coming from the StringBuilder().
I replaced the String Builder with a list of strings.
List<string> desc = new List<string>();
if (Inputs.cmbBody.Value != "") desc.Add("SERVICE BODY- " + Inputs.txtBodyQuoteDesc.Value);
if (Inputs.cmbUnderBodyBox.Value != "") desc.Add("PASSENGER SIDE BOX- " + Inputs.txtUnderBodyBoxQuoteDesc.Value);
if (Inputs.cmbUnderBodyBoxSR.Value != "") desc.Add("DRIVER'S SIDE BOX- " + Inputs.txtUnderBodyBoxQuoteDescSR.Value);
if (Inputs.cmbUnderBodyBoxCF.Value != "") desc.Add("CROSSBOX- " + Inputs.txtUnderBodyBoxCFQuoteDesc.Value);
if (Inputs.cmbTopSideBoxSSR.Value != "") desc.Add("PACK RAT- " + Inputs.txtTopSideBoxSSRQuoteDesc.Value);
if (Inputs.cmbTopSideBoxCS1.Value != "") desc.Add("BED SLIDE- " + Inputs.txtTopSideBoxCS1QuoteDesc.Value);
if ((Inputs.cmbBody.Value != "") || (Inputs.cmbUnderBodyBoxSR.Value != "") || (Inputs.cmbUnderBodyBoxCF.Value !="") || (Inputs.cmbTopSideBoxCS1.Value != "") || (Inputs.cmbTopSideBoxSSR.Value != "") || (Inputs.cmbUnderBodyBox.Value != "")) desc.Add();
if (Inputs.cmbBackupSensor.Value != "") desc.Add("BACKUP SENSOR - " + Inputs.txtBackupSensorQuoteDesc.Value);
if (Inputs.cmbBackupAlarm.Value != "") desc.Add("BACKUP ALARM - " + Inputs.txtBackupAlarmQuoteDesc.Value);
if (Inputs.cmbFireExt.Value != "") desc.Add("FIRE EXT. - " + Inputs.txtFireExtQuoteDesc.Value);
if (Inputs.cmbSafetyKit.Value != "") desc.Add("SAFETY KIT - " + Inputs.txtSafetyKitQuoteDesc.Value);
if (Inputs.cmbCamera.Value != "") desc.Add("REAR CAMERA - " + Inputs.txtCameraQuoteDesc.Value);
if ((Inputs.cmbBackupSensor.Value != "") || (Inputs.cmbCamera.Value != "") (Inputs.cmbSafetyKit.Value != "") || (Inputs.cmbFireExt.Value != "") || (Inputs.cmbBackupAlarm.Value != "")) desc.Add();
if (Inputs.cmbFirstAid.Value != "") desc.Add("FIRST AID KIT - " + Inputs.txtFirstAidQuoteDesc.Value);
if (Inputs.cmbLiftgate.Value != "") desc.Add("LIFTGATE - " + Inputs.txtLiftgateQuoteDesc.Value);
if (Inputs.cmbCranes.Value != "") desc.Add("BED COVER - " + Inputs.txtCranesQuoteDesc.Value);
if (Inputs.cmbLadderRack.Value != "") desc.Add("LADDER RACK - " + Inputs.txtLadderRackQuoteDesc.Value);
if ((Inputs.cmbFirstAid.Value != "") || (Inputs.cmbLiftgate.Value != "") || (Inputs.cmbCranes.Value != "") || (Inputs.cmbLadderRack.Value != "")) desc.Add();
if (Inputs.cmbCH.Value != "") desc.Add ("WINCH- " + Inputs.txtSHQuoteDesc.Value);
if (Inputs.cmbFrontEnd.Value != "") desc.Add("FRONTEND REPLACEMENT - " + Inputs.txtFrontEndQuoteDesc.Value);
if (Inputs.cmbNerfBars.Value != "") desc.Add("STEP SIDES- " + Inputs.txtNerfBarsQuoteDesc.Value);
if (Inputs.cmbCellBoost.Value != "") desc.Add ("CELL BOOSTER - " + Inputs.txtCellBoostQuoteDesc.Value);
if (Inputs.cmbInverter.Value != "") desc.Add ("INVERTER - " + Inputs.txtInverterQuoteDesc.Value);
if ((Inputs.cmbCH.Value != "") || (Inputs.cmbFrontEnd.Value != "") || (Inputs.cmbNerfBars.Value != "") || (Inputs.cmbCellBoost.Value != "") || (Inputs.cmbInverter.Value != "")) desc.Add();
if (Inputs.cmbCornerStrobe.Value != "") desc.Add("STROBE LIGHTS - " + Inputs.txtCornerStrobeQuoteDesc.Value);
if (Inputs.cmbLightBar.Value != "") desc.Add("LIGHT BAR - " + Inputs.txtLightBarQuoteDesc.Value);
if (Inputs.cmbWorkLights.Value != "") desc.Add("WORK LIGHT - " + Inputs.txtWorkLightsQuoteDesc.Value);
if (Inputs.cmbCompLights.Value != "") desc.Add("COMPARTMENT LIGHTS - " + Inputs.txtCompLightsQuoteDesc.Value);
if (Inputs.cmbSideRails.Value != "") desc.Add("SIDE RAILS - " + Inputs.txtSideRailsQuoteDesc.Value);
if (Inputs.cmbSides.Value != "") desc.Add("STAKE SIDES - " + Inputs.txtSidesQuoteDesc.Value);
if (Inputs.cmbFoldDownSide.Value != "") desc.Add("FOLD DOWN SIDES - " + Inputs.txtFoldDownSidesQuoteDesc.Value);
if (Inputs.cmbSolidSide.Value != "") desc.Add("TIRES - " + Inputs.txtSolidSidesQuoteDesc.Value);
if ((Inputs.cmbCornerStrobe.Value != "") || (Inputs.cmbWorkLights.Value != "") || (Inputs.cmbLightBar.Value != "") || (Inputs.cmbCompLights.Value != ""))desc.Add();
if (Inputs.cmbHeadRack.Value != "") desc.Add("HEAD RACK - " + Inputs.txtHeadRackQuoteDesc.Value);
if (Inputs.cmbRH.Value != "") desc.Add("REAR HITCH - " + Inputs.txtRHQuoteDesc.Value);
if (Inputs.cmbVise.Value != "") desc.Add("VISE - " + Inputs.txtViseQuoteDesc.Value);
if (Inputs.cmbCodeLock.Value != "") desc.Add("TELESCOPIC ROOF- " + Inputs.txtCodeLockQuoteDesc.Value);
if (Inputs.cmbSpray.Value != "") desc.Add ("SPRAY LINER - " + Inputs.txtSprayQuoteDesc.Value);
if ((Inputs.cmbHeadRack.Value != "") || (Inputs.cmbRH.Value != "") || (Inputs.cmbVise.Value != "") || (Inputs.cmbCodeLock.Value != "") || (Inputs.cmbSpray.Value != "")) desc.Add();
if (Inputs.cmbSideRails.Value != "") desc.Add ("ETRAC - " + Inputs.txtSideRailsQuoteDesc.Value);
if (Inputs.cmbSides.Value != "") desc.Add("GRAB HANDLES - " + Inputs.txtSidesQuoteDesc.Value);
if (Inputs.cmbFoldDownSide.Value != "") desc.Add ("CARGO TIE DOWNS - " + Inputs.txtFoldDownSidesQuoteDesc.Value);
if (Inputs.cmbS1V.Value != "") desc.Add ("DRAWER UNIT - " + Inputs.txtS1VQuoteDesc.Value);
if (Inputs.cmbC1V.Value != "") desc.Add ("PULL OUT DRAWER - " + Inputs.txtC1VQuoteDesc.Value);
if (Inputs.cmbCR.Value != "") desc.Add ("MUD GUARDS - " + Inputs.txtCRQuoteDesc.Value);
if (Inputs.cmbSR.Value != "") desc.Add ("FLOOR MATS - " + Inputs.txtSRQuoteDesc.Value);
if (Inputs.cmbSpareTire.Value != "") desc.Add("TAILGATE MAT - " + Inputs.txtSpareTireQuoteDesc.Value);
if (Inputs.cmbPadlock.Value != "") desc.Add("BED MAT - " + Inputs.txtPadlocksQuoteDesc.Value);
if (Inputs.cmbGrillGuard.Value != "") desc.Add("DOOR DECALS - " + Inputs.txtGrillGuardQuoteDesc.Value);
if (Inputs.cmbC2V.Value != "") desc.Add("UNIT NUMBERS - " + Inputs.txtC2VQuoteDesc.Value);
if (Inputs.cmbCompressor.Value != "") desc.Add("ROOF DECAL- " + Inputs.txtCompressorQuoteDesc.Value);
if (Inputs.cmbS2V.Value != "") desc.Add("REFLECTIVE TAPE- " + Inputs.txtS2VQuoteDesc.Value);
if (Inputs.cmbBeaconLight.Value != "") desc.Add("DOT DECAL- " + Inputs.txtBeaconLightQuoteDesc.Value);
if (Inputs.cmbBumpers.Value != "") desc.Add("FUEL - " + Inputs.txtBumpersQuoteDesc.Value);
if (Inputs.cmbSH.Value != "") desc.Add("GPS - " + Inputs.txtSHQuoteDesc.Value);
if (Inputs.cmbSolidSide.Value != "") desc.Add("TIRES - " + Inputs.txtSolidSidesQuoteDesc.Value);
if ((Inputs.cmbSideRails.Value != "") || (Inputs.cmbSides.Value != "") || (Inputs.cmbFoldDownSide.Value != "") || (Inputs.cmbSR.Value != "") || (Inputs.cmbS1V.Value != "") || (Inputs.cmbC1V.Value != "") || (Inputs.cmbSpareTire.Value != "") || (Inputs.cmbSH.Value != "") || (Inputs.cmbSolidSide.Value != "") || (Inputs.cmbBumpers.Value != "") || (Inputs.cmbBeaconLight.Value != "") || (Inputs.cmbS2V.Value != "") || (Inputs.cmbCompressor.Value != "") || (Inputs.cmbC2V.Value != "") || (Inputs.cmbGrillGuard.Value != "") || (Inputs.cmbPadlock.Value != "") || (Inputs.cmbCR.Value != "")) desc.Add();
if (Inputs.chkWT.Value != false) desc.Add ("WINDOW TINTING REQUIRED");
if (Inputs.chkPDI.Value || Inputs.chkPDISTate.Value || Inputs.chkPDIDOT.Value || Inputs.chkDOTOnly.Value || Inputs.chkTexInspecOnly.Value)
{
if (Inputs.chkPDI.Value)
{
desc.Add ("PDI ONLY INCLUDED");
}
if (Inputs.chkPDISTate.Value)
{
desc.Add ("PDI and STATE INSPECTION INCLUDED");
}
if (Inputs.chkDOTOnly.Value)
{
desc.Add ("DOT INSPECTION ONLY INCLUDED");
}
if (Inputs.chkPDIDOT.Value)
{
desc.Add ("PDI and DOT INSPECTION INCLUDED");
}
if (Inputs.chkTexInspecOnly.Value)
{
desc.Add ("TEXAS INSPECTION ONLY INCLUDED");
}
}
Inputs.edtPartDescription.Value = string.Join( "\n", desc.ToArray() );