/// <summary> /// UpdateWorkWetOutInformation /// </summary> /// <param name="workId">workId</param> /// <param name="originalLinerTube">originalLinerTube</param> /// <param name="originalResinID">originalResinID</param> /// <param name="originalExcessResin">originalExcessResin</param> /// <param name="originalPoundsDrums">originalPoundsDrums</param> /// <param name="originalDrumDiameter">originalDrumDiameter</param> /// <param name="originalHoistMaximumHeight">originalHoistMaximumHeight</param> /// <param name="originalHoistMinimumHeight">originalHoistMinimumHeight</param> /// <param name="originalDownDropTubeLenght">originalDownDropTubeLenght</param> /// <param name="originalPumpHeightAboveGround">originalPumpHeightAboveGround</param> /// <param name="originalTubeResinToFeltFactor">originalTubeResinToFeltFactor</param> /// <param name="originalDateOfSheet">originalDateOfSheet</param> /// <param name="originalEmployeeID">originalEmployeeID</param> /// <param name="originalRunDetails">originalRunDetails</param> /// <param name="originalRunDetails2">originalRunDetails2</param> /// <param name="originalWetOutDate">originalWetOutDate</param> /// <param name="originalWetOutInstallDate">originalWetOutInstallDate</param> /// <param name="originalThickness">originalThickness</param> /// <param name="originalLengthToLine">originalLengthToLine</param> /// <param name="originalPlusExtra">originalPlusExtra</param> /// <param name="originalPlusExtra">originalPlusExtra</param> /// <param name="originalForTurnOffset">originalForTurnOffset</param> /// <param name="originalLengthToWetOut">originalLengthToWetOut</param> /// <param name="originalTubeMaxColdHead">originalTubeMaxColdHead</param> /// <param name="originalTubeMaxColdHeadPsi">originalTubeMaxColdHeadPsi</param> /// <param name="originalTubeMaxHotHead">originalTubeMaxHotHead</param> /// <param name="originalTubeMaxHotHeadPsi">originalTubeMaxHotHeadPsi</param> /// <param name="originalTubeIdealHead">originalTubeIdealHead</param> /// <param name="originalTubeIdealHeadPsi">originalTubeIdealHeadPsi</param> /// <param name="originalNetResinForTube">originalNetResinForTube</param> /// <param name="originalNetResinForTubeUsgals">originalNetResinForTubeUsgals</param> /// <param name="originalNetResinForTubeDrumsIns">originalNetResinForTubeDrumsIns</param> /// <param name="originalNetResinForTubeLbsFt">originalNetResinForTubeLbsFt</param> /// <param name="originalNetResinForTubeUsgFt">originalNetResinForTubeUsgFt</param> /// <param name="originalExtraResinForMix">originalExtraResinForMix</param> /// <param name="originalExtraLbsForMix">originalExtraLbsForMix</param> /// <param name="originalTotalMixQuantity">originalTotalMixQuantity</param> /// <param name="originalTotalMixQuantityUsgals">originalTubeMaxHotHead</param> /// <param name="originalTotalMixQuantityUsgals">originalTotalMixQuantityUsgals</param> /// <param name="originalTotalMixQuantityDrumsIns">originalTotalMixQuantityDrumsIns</param> /// <param name="originalInversionType">originalInversionType</param> /// <param name="originalDepthOfInversionMH">originalDepthOfInversionMH</param> /// <param name="originalTubeForColumn">originalTubeForColumn</param> /// <param name="originalTubeForStartDry">originalTubeForStartDry</param> /// <param name="originalTotalTube">originalTotalTube</param> /// <param name="originalDropTubeConnects">originalDropTubeConnects</param> /// <param name="originalAllowsHeadTo">originalAllowsHeadTo</param> /// <param name="originalRollerGap">originalRollerGap</param> /// <param name="originalHeightNeeded">originalHeightNeeded</param> /// <param name="originalAvailable">originalAvailable</param> /// <param name="originalHoistHeight">originalHoistHeight</param> /// <param name="originalCommentsCipp">originalCommentsCipp</param> /// <param name="originalResinsLabel">originalResinsLabel</param> /// <param name="originalDrumContainsLabel">originalDrumContainsLabel</param> /// <param name="originalLinerTubeLabel">originalLinerTubeLabel</param> /// <param name="originalForLbDrumsLabel">originalForLbDrumsLabel</param> /// <param name="originalNetResinLabel">originalNetResinLabel</param> /// <param name="originalCatalystLabel">originalCatalystLabel</param> /// /// <param name="originalInversionComment">originalInversionComment</param> /// <param name="originalTotalMixQuantityUsgals">originalTotalMixQuantityUsgals</param> /// <param name="originalTotalMixQuantityUsgals">originalTotalMixQuantityUsgals</param> /// <param name="originalTotalMixQuantityUsgals">originalTotalMixQuantityUsgals</param> /// <param name="originalTotalMixQuantityUsgals">originalTotalMixQuantityUsgals</param> /// <param name="originalTotalMixQuantityUsgals">originalTotalMixQuantityUsgals</param> /// <param name="originalTotalMixQuantityUsgals">originalTotalMixQuantityUsgals</param> /// <param name="originalTotalMixQuantityUsgals">originalTotalMixQuantityUsgals</param> /// <param name="originalTotalMixQuantityUsgals">originalTotalMixQuantityUsgals</param> /// <param name="originalTotalMixQuantityUsgals">originalTotalMixQuantityUsgals</param> /// <param name="originalTotalMixQuantityUsgals">originalTotalMixQuantityUsgals</param> /// <param name="originalTotalMixQuantityUsgals">originalTotalMixQuantityUsgals</param> /// <param name="originalPipeType">originalPipeType</param> /// <param name="originalPipeCondition">originalPipeCondition</param> /// <param name="originalGroundMoisture">originalGroundMoisture</param> /// <param name="originalBoilerSize">originalBoilerSize</param> /// <param name="originalPumpTotalCapacity">originalPumpTotalCapacity</param> /// <param name="originalLayFlatSize">originalLayFlatSize</param> /// <param name="originalLayFlatQuantityTotal">originalLayFlatQuantityTotal</param> /// <param name="originalWaterStartTemp">originalWaterStartTemp</param> /// <param name="originalTemp1">originalTemp1</param> /// <param name="originalHoldAtT1">originalHoldAtT1</param> /// <param name="originalTempT2">originalTempT2</param> /// <param name="originalCookAtT2">originalCookAtT2</param> /// <param name="originalCoolDownFor">originalCoolDownFor</param> /// <param name="originalCoolToTemp">originalCoolToTemp</param> /// <param name="originalDropInPipeRun">originalDropInPipeRun</param> /// <param name="originalPipeSlopOf">originalPipeSlopOf</param> /// <param name="originalF45F120">originalF45F120</param> /// <param name="originalHold">originalHold</param> /// <param name="originalF120F185">originalF120F185</param> /// <param name="originalCookTime">originalCookTime</param> /// <param name="originalCoolTime">originalCoolTime</param> /// <param name="originalAproxTotal">originalAproxTotal</param> /// <param name="originalWaterChangesPerHour">originalWaterChangesPerHour</param> /// <param name="originalReturnWaterVelocity">originalReturnWaterVelocity</param> /// <param name="originalLayflatBackPressure">originalLayflatBackPressure</param> /// <param name="originalPumpLiftAtIdealHead">originalPumpLiftAtIdealHead</param> /// <param name="originalWaterToFillLinerColumn">originalWaterToFillLinerColumn</param> /// <param name="originalWaterPerFit">originalWaterPerFit</param> /// <param name="originalInstallationResults">originalInstallationResults</param> /// <param name="originalInversionLinerTubeLabel">originalInversionLinerTubeLabel</param> /// <param name="originalHeadsIdealLabel">originalHeadsIdealLabel</param> /// <param name="originalPumpingAndCirculationLabel">originalPumpingAndCirculationLabel</param> /// <param name="originalDeleted">originalDeleted</param> /// <param name="originalCompanyId">originalCompanyId</param> /// /// /// /// <param name="workId">workId</param> /// <param name="newLinerTube">newLinerTube</param> /// <param name="newResinID">newResinID</param> /// <param name="newExcessResin">newExcessResin</param> /// <param name="newPoundsDrums">newPoundsDrums</param> /// <param name="newDrumDiameter">newDrumDiameter</param> /// <param name="newHoistMaximumHeight">newHoistMaximumHeight</param> /// <param name="newHoistMinimumHeight">newHoistMinimumHeight</param> /// <param name="newDownDropTubeLenght">newDownDropTubeLenght</param> /// <param name="newPumpHeightAboveGround">newPumpHeightAboveGround</param> /// <param name="newTubeResinToFeltFactor">newTubeResinToFeltFactor</param> /// <param name="newDateOfSheet">newDateOfSheet</param> /// <param name="newEmployeeID">newEmployeeID</param> /// <param name="newRunDetails">newRunDetails</param> /// <param name="newRunDetails2">newRunDetails2</param> /// <param name="newWetOutDate">newWetOutDate</param> /// <param name="newWetOutInstallDate">newWetOutInstallDate</param> /// <param name="newThickness">newThickness</param> /// <param name="newLengthToLine">newLengthToLine</param> /// <param name="newPlusExtra">newPlusExtra</param> /// <param name="newPlusExtra">newPlusExtra</param> /// <param name="newForTurnOffset">newForTurnOffset</param> /// <param name="newLengthToWetOut">newLengthToWetOut</param> /// <param name="newTubeMaxColdHead">newTubeMaxColdHead</param> /// <param name="newTubeMaxColdHeadPsi">newTubeMaxColdHeadPsi</param> /// <param name="newTubeMaxHotHead">newTubeMaxHotHead</param> /// <param name="newTubeMaxHotHeadPsi">newTubeMaxHotHeadPsi</param> /// <param name="newTubeIdealHead">newTubeIdealHead</param> /// <param name="newTubeIdealHeadPsi">newTubeIdealHeadPsi</param> /// <param name="newNetResinForTube">newNetResinForTube</param> /// <param name="newNetResinForTubeUsgals">newNetResinForTubeUsgals</param> /// <param name="newNetResinForTubeDrumsIns">newNetResinForTubeDrumsIns</param> /// <param name="newNetResinForTubeLbsFt">newNetResinForTubeLbsFt</param> /// <param name="newNetResinForTubeUsgFt">newNetResinForTubeUsgFt</param> /// <param name="newExtraResinForMix">newExtraResinForMix</param> /// <param name="newExtraLbsForMix">newExtraLbsForMix</param> /// <param name="newTotalMixQuantity">newTotalMixQuantity</param> /// <param name="newTotalMixQuantityUsgals">newTubeMaxHotHead</param> /// <param name="newTotalMixQuantityUsgals">newTotalMixQuantityUsgals</param> /// /// <param name="newTotalMixQuantityDrumsIns">newTotalMixQuantityDrumsIns</param> /// <param name="newInversionType">newInversionType</param> /// <param name="newDepthOfInversionMH">newDepthOfInversionMH</param> /// <param name="newTubeForColumn">newTubeForColumn</param> /// <param name="newTubeForStartDry">newTubeForStartDry</param> /// <param name="newTotalTube">newTotalTube</param> /// <param name="newDropTubeConnects">newDropTubeConnects</param> /// <param name="newAllowsHeadTo">newAllowsHeadTo</param> /// <param name="newRollerGap">newRollerGap</param> /// <param name="newHeightNeeded">newHeightNeeded</param> /// <param name="newAvailable">newAvailable</param> /// <param name="newHoistHeight">newHoistHeight</param> /// <param name="newCommentsCipp">newCommentsCipp</param> /// <param name="newResinsLabel">newResinsLabel</param> /// <param name="newDrumContainsLabel">newDrumContainsLabel</param> /// <param name="newLinerTubeLabel">newLinerTubeLabel</param> /// <param name="newForLbDrumsLabel">newForLbDrumsLabel</param> /// <param name="newNetResinLabel">newNetResinLabel</param> /// <param name="newCatalystLabel">newCatalystLabel</param> /// /// <param name="newInversionComment">newInversionComment</param> /// <param name="newTotalMixQuantityUsgals">newTotalMixQuantityUsgals</param> /// <param name="newTotalMixQuantityUsgals">newTotalMixQuantityUsgals</param> /// <param name="newTotalMixQuantityUsgals">newTotalMixQuantityUsgals</param> /// <param name="newTotalMixQuantityUsgals">newTotalMixQuantityUsgals</param> /// <param name="newTotalMixQuantityUsgals">newTotalMixQuantityUsgals</param> /// <param name="newTotalMixQuantityUsgals">newTotalMixQuantityUsgals</param> /// <param name="newTotalMixQuantityUsgals">newTotalMixQuantityUsgals</param> /// <param name="newTotalMixQuantityUsgals">newTotalMixQuantityUsgals</param> /// <param name="newTotalMixQuantityUsgals">newTotalMixQuantityUsgals</param> /// <param name="newTotalMixQuantityUsgals">newTotalMixQuantityUsgals</param> /// <param name="newTotalMixQuantityUsgals">newTotalMixQuantityUsgals</param> /// <param name="newPipeType">newPipeType</param> /// <param name="newPipeCondition">newPipeCondition</param> /// <param name="newGroundMoisture">newGroundMoisture</param> /// <param name="newBoilerSize">newBoilerSize</param> /// <param name="newPumpTotalCapacity">newPumpTotalCapacity</param> /// <param name="newLayFlatSize">newLayFlatSize</param> /// <param name="newLayFlatQuantityTotal">newLayFlatQuantityTotal</param> /// <param name="newWaterStartTemp">newWaterStartTemp</param> /// <param name="newTemp1">newTemp1</param> /// <param name="newHoldAtT1">newHoldAtT1</param> /// <param name="newTempT2">newTempT2</param> /// <param name="newCookAtT2">newCookAtT2</param> /// <param name="newCoolDownFor">newCoolDownFor</param> /// <param name="newCoolToTemp">newCoolToTemp</param> /// <param name="newDropInPipeRun">newDropInPipeRun</param> /// <param name="newPipeSlopOf">newPipeSlopOf</param> /// <param name="newF45F120">newF45F120</param> /// <param name="newHold">newHold</param> /// <param name="newF120F185">newF120F185</param> /// <param name="newCookTime">newCookTime</param> /// <param name="newCoolTime">newCoolTime</param> /// <param name="newAproxTotal">newAproxTotal</param> /// <param name="newWaterChangesPerHour">newWaterChangesPerHour</param> /// <param name="newReturnWaterVelocity">newReturnWaterVelocity</param> /// <param name="newLayflatBackPressure">newLayflatBackPressure</param> /// <param name="newPumpLiftAtIdealHead">newPumpLiftAtIdealHead</param> /// <param name="newWaterToFillLinerColumn">newWaterToFillLinerColumn</param> /// <param name="newWaterPerFit">newWaterPerFit</param> /// <param name="newInstallationResults">newInstallationResults</param> /// <param name="newInversionLinerTubeLabel">newInversionLinerTubeLabel</param> /// <param name="newHeadsIdealLabel">newHeadsIdealLabel</param> /// <param name="newPumpingAndCirculationLabel">newPumpingAndCirculationLabel</param> /// <param name="newDeleted">newDeleted</param> /// <param name="newCompanyId">newCompanyId</param> /// <param name="includeWetOutInformation">includeWetOutInformation</param> /// <param name="includeInversionInformation">includeInversionInformation</param> private void UpdateWorkWetOutInformation(int workId, string originalLinerTube, int originalResinID, decimal originalExcessResin, string originalPoundsDrums, decimal originalDrumDiameter, decimal originalHoistMaximumHeight, decimal originalHoistMinimumHeight, decimal originalDownDropTubeLenght, decimal originalPumpHeightAboveGround, int originalTubeResinToFeltFactor, DateTime originalDateOfSheet, int originalEmployeeID, string originalRunDetails, string originalRunDetails2, DateTime originalWetOutDate, DateTime? originalWetOutInstallDate, string originalThickness, decimal originalLengthToLine, decimal originalPlusExtra, decimal originalForTurnOffset, decimal originalLengthToWetOut, decimal originalTubeMaxColdHead, decimal originalTubeMaxColdHeadPsi, decimal originalTubeMaxHotHead, decimal originalTubeMaxHotHeadPsi, decimal originalTubeIdealHead, decimal originalTubeIdealHeadPsi, decimal originalNetResinForTube, decimal originalNetResinForTubeUsgals, string originalNetResinForTubeDrumsIns, decimal originalNetResinForTubeLbsFt, decimal originalNetResinForTubeUsgFt, int originalExtraResinForMix, decimal originalExtraLbsForMix, decimal originalTotalMixQuantity, decimal originalTotalMixQuantityUsgals, string originalTotalMixQuantityDrumsIns, string originalInversionType, decimal originalDepthOfInversionMH, decimal originalTubeForColumn, decimal originalTubeForStartDry, decimal originalTotalTube, string originalDropTubeConnects, decimal originalAllowsHeadTo, decimal originalRollerGap, decimal originalHeightNeeded, string originalAvailable, string originalHoistHeight, string originalCommentsCipp, string originalResinsLabel, string origianlDrumContainsLabel, string originalLinerTubeLabel, string originalForLbDrumsLabel, string originalNetResinLabel, string originalCatalystLabel, string originalInversionComment, string originalPipeType, string originalPipeCondition, string originalGroundMoisture, decimal originalBoilerSize, decimal originalPumpTotalCapacity, decimal originalLayFlatSize, decimal originalLayFlatQuantityTotal, decimal originalWaterStartTemp, decimal originalTemp1, decimal originalHoldAtT1, decimal originalTempT2, decimal originalCookAtT2, decimal originalCoolDownFor, decimal originalCoolToTemp, decimal originalDropInPipeRun, decimal originalPipeSlopOf, decimal originalF45F120, decimal originalHold, decimal originalF120F185, decimal originalCookTime, decimal originalCoolTime, decimal originalAproxTotal, decimal originalWaterChangesPerHour, decimal originalReturnWaterVelocity, decimal originalLayflatBackPressure, decimal originalPumpLiftAtIdealHead, decimal originalWaterToFillLinerColumn, decimal originalWaterPerFit, string originalInstallationResults, string originalInversionLinerTubeLabel, string originalHeadsIdealLabel, string originalPumpingAndCirculationLabel, bool originalDeleted, int originalCompanyId, string newLinerTube, int newResinID, decimal newExcessResin, string newPoundsDrums, decimal newDrumDiameter, decimal newHoistMaximumHeight, decimal newHoistMinimumHeight, decimal newDownDropTubeLenght, decimal newPumpHeightAboveGround, int newTubeResinToFeltFactor, DateTime newDateOfSheet, int newEmployeeID, string newRunDetails, string newRunDetails2, DateTime newWetOutDate, DateTime? newWetOutInstallDate, string newThickness, decimal newLengthToLine, decimal newPlusExtra, decimal newForTurnOffset, decimal newLengthToWetOut, decimal newTubeMaxColdHead, decimal newTubeMaxColdHeadPsi, decimal newTubeMaxHotHead, decimal newTubeMaxHotHeadPsi, decimal newTubeIdealHead, decimal newTubeIdealHeadPsi, decimal newNetResinForTube, decimal newNetResinForTubeUsgals, string newNetResinForTubeDrumsIns, decimal newNetResinForTubeLbsFt, decimal newNetResinForTubeUsgFt, int newExtraResinForMix, decimal newExtraLbsForMix, decimal newTotalMixQuantity, decimal newTotalMixQuantityUsgals, string newTotalMixQuantityDrumsIns, string newInversionType, decimal newDepthOfInversionMH, decimal newTubeForColumn, decimal newTubeForStartDry, decimal newTotalTube, string newDropTubeConnects, decimal newAllowsHeadTo, decimal newRollerGap, decimal newHeightNeeded, string newAvailable, string newHoistHeight, string newCommentsCipp, string newResinsLabel, string newDrumContainsLabel, string newLinerTubeLabel, string newForLbDrumsLabel, string newNetResinLabel, string newCatalystLabel, string newInversionComment, string newPipeType, string newPipeCondition, string newGroundMoisture, decimal newBoilerSize, decimal newPumpTotalCapacity, decimal newLayFlatSize, decimal newLayFlatQuantityTotal, decimal newWaterStartTemp, decimal newTemp1, decimal newHoldAtT1, decimal newTempT2, decimal newCookAtT2, decimal newCoolDownFor, decimal newCoolToTemp, decimal newDropInPipeRun, decimal newPipeSlopOf, decimal newF45F120, decimal newHold, decimal newF120F185, decimal newCookTime, decimal newCoolTime, decimal newAproxTotal, decimal newWaterChangesPerHour, decimal newReturnWaterVelocity, decimal newLayflatBackPressure, decimal newPumpLiftAtIdealHead, decimal newWaterToFillLinerColumn, decimal newWaterPerFit, string newInstallationResults, string newInversionLinerTubeLabel, string newHeadsIdealLabel, string newPumpingAndCirculationLabel, bool newDeleted, int newCompanyId, bool includeWetOutInformation, bool includeInversionInformation) { // Update wet out data if (includeWetOutInformation) { WorkFullLengthLiningWetOut workFullLengthLiningWetOut = new WorkFullLengthLiningWetOut(null); workFullLengthLiningWetOut.UpdateDirect(workId, originalLinerTube, originalResinID, originalExcessResin, originalPoundsDrums, originalDrumDiameter, originalHoistMaximumHeight, originalHoistMinimumHeight, originalDownDropTubeLenght, originalPumpHeightAboveGround, originalTubeResinToFeltFactor, originalDateOfSheet, originalEmployeeID, originalRunDetails, originalRunDetails2, originalWetOutDate, originalWetOutInstallDate, originalThickness, originalLengthToLine, originalPlusExtra, originalForTurnOffset, originalLengthToWetOut, originalTubeMaxColdHead, originalTubeMaxColdHeadPsi, originalTubeMaxHotHead, originalTubeMaxHotHeadPsi, originalTubeIdealHead, originalTubeIdealHeadPsi, originalNetResinForTube, originalNetResinForTubeUsgals, originalNetResinForTubeDrumsIns, originalNetResinForTubeLbsFt, originalNetResinForTubeUsgFt, originalExtraResinForMix, originalExtraLbsForMix, originalTotalMixQuantity, originalTotalMixQuantityUsgals, originalTotalMixQuantityDrumsIns, originalInversionType, originalDepthOfInversionMH, originalTubeForColumn, originalTubeForStartDry, originalTotalTube, originalDropTubeConnects, originalAllowsHeadTo, originalRollerGap, originalHeightNeeded, originalAvailable, originalHoistHeight, originalCommentsCipp, originalResinsLabel, origianlDrumContainsLabel, originalLinerTubeLabel, originalForLbDrumsLabel, originalNetResinLabel, originalCatalystLabel, originalDeleted, originalCompanyId, workId, newLinerTube, newResinID, newExcessResin, newPoundsDrums, newDrumDiameter, newHoistMaximumHeight, newHoistMinimumHeight, newDownDropTubeLenght, newPumpHeightAboveGround, newTubeResinToFeltFactor, newDateOfSheet, newEmployeeID, newRunDetails, newRunDetails2, newWetOutDate, newWetOutInstallDate, newThickness, newLengthToLine, newPlusExtra, newForTurnOffset, newLengthToWetOut, newTubeMaxColdHead, newTubeMaxColdHeadPsi, newTubeMaxHotHead, newTubeMaxHotHeadPsi, newTubeIdealHead, newTubeIdealHeadPsi, newNetResinForTube, newNetResinForTubeUsgals, newNetResinForTubeDrumsIns, newNetResinForTubeLbsFt, newNetResinForTubeUsgFt, newExtraResinForMix, newExtraLbsForMix, newTotalMixQuantity, newTotalMixQuantityUsgals, newTotalMixQuantityDrumsIns, newInversionType, newDepthOfInversionMH, newTubeForColumn, newTubeForStartDry, newTotalTube, newDropTubeConnects, newAllowsHeadTo, newRollerGap, newHeightNeeded, newAvailable, newHoistHeight, newCommentsCipp, newResinsLabel, newDrumContainsLabel, newLinerTubeLabel, newForLbDrumsLabel, newNetResinLabel, newCatalystLabel, newDeleted, newCompanyId); } // Update inversion data if (includeInversionInformation) { WorkFullLengthLiningInversion workFullLengthLiningInversion = new WorkFullLengthLiningInversion(null); workFullLengthLiningInversion.UpdateDirect(workId, originalInversionComment, originalPipeType, originalPipeCondition, originalGroundMoisture, originalBoilerSize, originalPumpTotalCapacity, originalLayFlatSize, originalLayFlatQuantityTotal, originalWaterStartTemp, originalTemp1, originalHoldAtT1, originalTempT2, originalCookAtT2, originalCoolDownFor, originalCoolToTemp, originalDropInPipeRun, originalPipeSlopOf, originalF45F120, originalHold, originalF120F185, originalCookTime, originalCoolTime, originalAproxTotal, originalWaterChangesPerHour, originalReturnWaterVelocity, originalLayflatBackPressure, originalPumpLiftAtIdealHead, originalWaterToFillLinerColumn, originalWaterPerFit, originalInstallationResults, originalInversionLinerTubeLabel, originalHeadsIdealLabel, originalPumpingAndCirculationLabel, originalDeleted, originalCompanyId, workId, newInversionComment, newPipeType, newPipeCondition, newGroundMoisture, newBoilerSize, newPumpTotalCapacity, newLayFlatSize, newLayFlatQuantityTotal, newWaterStartTemp, newTemp1, newHoldAtT1, newTempT2, newCookAtT2, newCoolDownFor, newCoolToTemp, newDropInPipeRun, newPipeSlopOf, newF45F120, newHold, newF120F185, newCookTime, newCoolTime, newAproxTotal, newWaterChangesPerHour, newReturnWaterVelocity, newLayflatBackPressure, newPumpLiftAtIdealHead, newWaterToFillLinerColumn, newWaterPerFit, newInstallationResults, newInversionLinerTubeLabel, newHeadsIdealLabel, newPumpingAndCirculationLabel, newDeleted, newCompanyId); } }
private void workUpdate() { // Get general variables int workId = Int32.Parse(hdfWorkId.Value.Trim()); int assetId = Int32.Parse(hdfAssetId.Value.Trim()); int originalCompanyId = Int32.Parse(hdfCompanyId.Value.Trim()); string workType = hdfWorkType.Value.Trim(); bool originalDeleted = false; // Get original variables FullLengthLiningWorkDetailsGateway fullLengthLiningWorkDetailsGateway = new FullLengthLiningWorkDetailsGateway(); fullLengthLiningWorkDetailsGateway.LoadByWorkIdAssetId(workId, assetId, originalCompanyId); // ... Verify if work has cipp information if (fullLengthLiningWorkDetailsGateway.Table.Rows.Count > 0) { // Wet Out data original values string originalLinerTube = fullLengthLiningWorkDetailsGateway.GetLinerTubeOriginal(workId); int originalResinId = fullLengthLiningWorkDetailsGateway.GetResinIdOriginal(workId); decimal originalExcessResin = fullLengthLiningWorkDetailsGateway.GetExcessResinOriginal(workId); string originalPoundsDrums = fullLengthLiningWorkDetailsGateway.GetPoundsDrumsOriginal(workId); decimal originalDrumDiameter = fullLengthLiningWorkDetailsGateway.GetDrumDiameterOriginal(workId); decimal originalHoistMaximumHeight = fullLengthLiningWorkDetailsGateway.GetHoistMaximumHeightOriginal(workId); decimal originalHoistMinimumHeight = fullLengthLiningWorkDetailsGateway.GetHoistMinimumHeightOriginal(workId); decimal originalDownDropTubeLenght = fullLengthLiningWorkDetailsGateway.GetDownDropTubeLenghtOriginal(workId); decimal originalPumpHeightAboveGround = fullLengthLiningWorkDetailsGateway.GetPumpHeightAboveGroundOriginal(workId); int originalTubeResinToFeltFactor = fullLengthLiningWorkDetailsGateway.GetTubeResinToFeltFactorOriginal(workId); DateTime originalDateOfSheet = fullLengthLiningWorkDetailsGateway.GetDateOfSheetOriginal(workId); int originalEmployeeId = fullLengthLiningWorkDetailsGateway.GetEmployeeIdOriginal(workId); string originalRunDetails = fullLengthLiningWorkDetailsGateway.GetRunDetailsOriginal(workId); string originalRunDetails2 = fullLengthLiningWorkDetailsGateway.GetRunDetails2Original(workId); DateTime originalWetOutDate = fullLengthLiningWorkDetailsGateway.GetWetOutDateOriginal(workId); DateTime? originalWetOutInstallDate = fullLengthLiningWorkDetailsGateway.GetWetOutInstallDateOriginal(workId); string originalThickness = fullLengthLiningWorkDetailsGateway.GetInversionThicknessOriginal(workId); decimal originalLengthToLine = fullLengthLiningWorkDetailsGateway.GetLengthToLineOriginal(workId); decimal originalPlusExtra = fullLengthLiningWorkDetailsGateway.GetPlusExtraOriginal(workId); decimal originalForTurnOffset = fullLengthLiningWorkDetailsGateway.GetForTurnOffsetOriginal(workId); decimal originalLengthToWetOut = fullLengthLiningWorkDetailsGateway.GetLengthToWetOutOriginal(workId); decimal originalTubeMaxColdHead = fullLengthLiningWorkDetailsGateway.GetTubeMaxColdHeadOriginal(workId); decimal originalTubeMaxColdHeadPsi = fullLengthLiningWorkDetailsGateway.GetTubeMaxColdHeadPsiOriginal(workId); decimal originalTubeMaxHotHead = fullLengthLiningWorkDetailsGateway.GetTubeMaxHotHeadOriginal(workId); decimal originalTubeMaxHotHeadPsi = fullLengthLiningWorkDetailsGateway.GetTubeMaxHotHeadPsiOriginal(workId); decimal originalTubeIdealHead = fullLengthLiningWorkDetailsGateway.GetTubeIdealHeadOriginal(workId); decimal originalTubeIdealHeadPsi = fullLengthLiningWorkDetailsGateway.GetTubeIdealHeadPsiOriginal(workId); decimal originalNetResinForTube = fullLengthLiningWorkDetailsGateway.GetNetResinForTubeOriginal(workId); decimal originalNetResinForTubeUsgals = fullLengthLiningWorkDetailsGateway.GetNetResinForTubeUsgalsOriginal(workId); string originalNetResinForTubeDrumsIns = fullLengthLiningWorkDetailsGateway.GetNetResinForTubeDrumsInsOriginal(workId); decimal originalNetResinForTubeLbsFt = fullLengthLiningWorkDetailsGateway.GetNetResinForTubeLbsFtOriginal(workId); decimal originalNetResinForTubeUsgFt = fullLengthLiningWorkDetailsGateway.GetNetResinForTubeUsgFtOriginal(workId); int originalExtraResinForMix = fullLengthLiningWorkDetailsGateway.GetExtraResinForMixOriginal(workId); decimal originalExtraLbsForMix = fullLengthLiningWorkDetailsGateway.GetExtraLbsForMixOriginal(workId); decimal originalTotalMixQuantity = fullLengthLiningWorkDetailsGateway.GetTotalMixQuantityOriginal(workId); decimal originalTotalMixQuantityUsgals = fullLengthLiningWorkDetailsGateway.GetTotalMixQuantityUsgalsOriginal(workId); string originalTotalMixQuantityDrumsIns = fullLengthLiningWorkDetailsGateway.GetTotalMixQuantityDrumsInsOriginal(workId); string originalInversionType = fullLengthLiningWorkDetailsGateway.GetInversionTypeOriginal(workId); decimal originalDepthOfInversionMH = fullLengthLiningWorkDetailsGateway.GetDepthOfInversionMHOriginal(workId); decimal originalTubeForColumn = fullLengthLiningWorkDetailsGateway.GetTubeForColumnOriginal(workId); decimal originalTubeForStartDry = fullLengthLiningWorkDetailsGateway.GetTubeForStartDryOriginal(workId); decimal originalTotalTube = fullLengthLiningWorkDetailsGateway.GetTotalTubeOriginal(workId); string originalDropTubeConnects = fullLengthLiningWorkDetailsGateway.GetDropTubeConnectsOriginal(workId); decimal originalAllowsHeadTo = fullLengthLiningWorkDetailsGateway.GetAllowsHeadToOriginal(workId); decimal originalRollerGap = fullLengthLiningWorkDetailsGateway.GetRollerGapOriginal(workId); decimal originalHeightNeeded = fullLengthLiningWorkDetailsGateway.GetHeightNeededOriginal(workId); string originalAvailable = fullLengthLiningWorkDetailsGateway.GetAvailableOriginal(workId); string originalHoistHeight = fullLengthLiningWorkDetailsGateway.GetHoistHeightOriginal(workId); string originalCommentsCipp = fullLengthLiningWorkDetailsGateway.GetCommentsCippOriginal(workId); string originalResinsLabel = fullLengthLiningWorkDetailsGateway.GetResinsLabelOriginal(workId); string originalDrumContainsLabel = fullLengthLiningWorkDetailsGateway.GetDrumContainsLabelOriginal(workId); string originalLinerTubeLabel = fullLengthLiningWorkDetailsGateway.GetLinerTubeLabelOriginal(workId); string originalForLbDrumsLabel = fullLengthLiningWorkDetailsGateway.GetForLbDrumsLabelOriginal(workId); string originalNetResinLabel = fullLengthLiningWorkDetailsGateway.GetNetResinLabelOriginal(workId); string originalCatalystLabel = fullLengthLiningWorkDetailsGateway.GetCatalystLabelOriginal(workId); // Wet Out new data // ... Get new comment WorkFullLengthLiningWetOutCommentsGateway workFullLengthLiningWetOutCommentsGateway = new WorkFullLengthLiningWetOutCommentsGateway(); workFullLengthLiningWetOutCommentsGateway.LoadAllByWorkIdWorkType(workId, originalCompanyId, workType); WorkFullLengthLiningWetOutComments workFullLengthLiningWetOutComments = new WorkFullLengthLiningWetOutComments(workFullLengthLiningWetOutCommentsGateway.Data); string newComments = workFullLengthLiningWetOutComments.GetCommentsSummary(originalCompanyId, workFullLengthLiningWetOutCommentsGateway.Table.Rows.Count, "\n"); // Update work with cipp information WorkFullLengthLiningWetOut workFullLengthLiningWetOut = new WorkFullLengthLiningWetOut(null); workFullLengthLiningWetOut.UpdateDirect(workId, originalLinerTube, originalResinId, originalExcessResin, originalPoundsDrums, originalDrumDiameter, originalHoistMaximumHeight, originalHoistMinimumHeight, originalDownDropTubeLenght, originalPumpHeightAboveGround, originalTubeResinToFeltFactor, originalDateOfSheet, originalEmployeeId, originalRunDetails, originalRunDetails2, originalWetOutDate, originalWetOutInstallDate, originalThickness, originalLengthToLine, originalPlusExtra, originalForTurnOffset, originalLengthToWetOut, originalTubeMaxColdHead, originalTubeMaxColdHeadPsi, originalTubeMaxHotHead, originalTubeMaxHotHeadPsi, originalTubeIdealHead, originalTubeIdealHeadPsi, originalNetResinForTube, originalNetResinForTubeUsgals, originalNetResinForTubeDrumsIns, originalNetResinForTubeLbsFt, originalNetResinForTubeUsgFt, originalExtraResinForMix, originalExtraLbsForMix, originalTotalMixQuantity, originalTotalMixQuantityUsgals, originalTotalMixQuantityDrumsIns, originalInversionType, originalDepthOfInversionMH, originalTubeForColumn, originalTubeForStartDry, originalTotalTube, originalDropTubeConnects, originalAllowsHeadTo, originalRollerGap, originalHeightNeeded, originalAvailable, originalHoistHeight, originalCommentsCipp, originalResinsLabel, originalDrumContainsLabel, originalLinerTubeLabel, originalForLbDrumsLabel, originalNetResinLabel, originalCatalystLabel, originalDeleted, originalCompanyId, workId, originalLinerTube, originalResinId, originalExcessResin, originalPoundsDrums, originalDrumDiameter, originalHoistMaximumHeight, originalHoistMinimumHeight, originalDownDropTubeLenght, originalPumpHeightAboveGround, originalTubeResinToFeltFactor, originalDateOfSheet, originalEmployeeId, originalRunDetails, originalRunDetails2, originalWetOutDate, originalWetOutInstallDate, originalThickness, originalLengthToLine, originalPlusExtra, originalForTurnOffset, originalLengthToWetOut, originalTubeMaxColdHead, originalTubeMaxColdHeadPsi, originalTubeMaxHotHead, originalTubeMaxHotHeadPsi, originalTubeIdealHead, originalTubeIdealHeadPsi, originalNetResinForTube, originalNetResinForTubeUsgals, originalNetResinForTubeDrumsIns, originalNetResinForTubeLbsFt, originalNetResinForTubeUsgFt, originalExtraResinForMix, originalExtraLbsForMix, originalTotalMixQuantity, originalTotalMixQuantityUsgals, originalTotalMixQuantityDrumsIns, originalInversionType, originalDepthOfInversionMH, originalTubeForColumn, originalTubeForStartDry, originalTotalTube, originalDropTubeConnects, originalAllowsHeadTo, originalRollerGap, originalHeightNeeded, originalAvailable, originalHoistHeight, newComments, originalResinsLabel, originalDrumContainsLabel, originalLinerTubeLabel, originalForLbDrumsLabel, originalNetResinLabel, originalCatalystLabel, originalDeleted, originalCompanyId); } }