public void ShowDataTank(int ID) { groupBox4.Hide(); RW_CA_TANK_BUS busTank = new RW_CA_TANK_BUS(); RW_CA_TANK ca = busTank.getData(ID); txtFC.Text = (ca.FC_Environ + ca.FC_Environ_Leak + ca.FC_Environ_Rupture).ToString(); txtCA.Text = ca.ConsequenceCategory; }
private void initData_Shell(int ID) { RW_CA_TANK_BUS busCA_Tank = new RW_CA_TANK_BUS(); RW_CA_TANK caTank = busCA_Tank.getData(ID); tbFlowRateShellD1.Text = caTank.Flow_Rate_D1.ToString(); tbFlowRateShellD2.Text = caTank.Flow_Rate_D2.ToString(); tbFlowRateShellD3.Text = caTank.Flow_Rate_D3.ToString(); tbFlowRateShellD4.Text = caTank.Flow_Rate_D4.ToString(); tbLeakDurationShellD1.Text = caTank.Leak_Duration_D1.ToString(); tbLeakDurationShellD2.Text = caTank.Leak_Duration_D2.ToString(); tbLeakDurationShellD3.Text = caTank.Leak_Duration_D3.ToString(); tbLeakDurationShellD4.Text = caTank.Leak_Duration_D4.ToString(); tbReleaseVolumeLeakageShellD1.Text = caTank.Release_Volume_Leak_D1.ToString(); tbReleaseVolumeLeakageShellD2.Text = caTank.Release_Volume_Leak_D2.ToString(); tbReleaseVolumeLeakageShellD3.Text = caTank.Release_Volume_Leak_D3.ToString(); tbReleaseVolumeLeakageShellD4.Text = caTank.Release_Volume_Leak_D4.ToString(); tbReleaseVolumeRuptureShell.Text = caTank.Release_Volume_Rupture.ToString(); tbTimeLeakageGroundWaterShell.Text = caTank.Time_Leak_Ground.ToString(); tbVolumeSubsoilShellD1.Text = caTank.Volume_SubSoil_Leak_D1.ToString(); tbVolumeSubsoilShellD4.Text = caTank.Volume_SubSoil_Leak_D4.ToString(); tbVolumeGroundWaterShellD1.Text = caTank.Volume_Ground_Water_Leak_D1.ToString(); tbVolumeGroundWaterShellD4.Text = caTank.Volume_Ground_Water_Leak_D4.ToString(); tbDikeRuptureShell.Text = caTank.Barrel_Dike_Rupture.ToString(); tbOn_siteShell.Text = caTank.Barrel_Onsite_Rupture.ToString(); tbIn_siteShell.Text = caTank.Barrel_Offsite_Rupture.ToString(); tbReachWaterRuptureShell.Text = caTank.Barrel_Water_Rupture.ToString(); tbFCleakageShell.Text = caTank.FC_Environ_Leak.ToString(); tbFCruptureShell.Text = caTank.FC_Environ_Rupture.ToString(); tbTotalF_Shell.Text = caTank.FC_Environ.ToString(); tbComponentDamageCost.Text = caTank.Component_Damage_Cost.ToString(); tbCostBussinessInterruptionShell.Text = caTank.Business_Cost.ToString(); tbTotalConsequenceShell.Text = caTank.Consequence.ToString(); tbConsequenceCategoryShell.Text = caTank.ConsequenceCategory; }
private void initData_Tank(int ID) { RW_CA_TANK_BUS busCA_Tank = new RW_CA_TANK_BUS(); RW_CA_TANK caTank = busCA_Tank.getData(ID); tbHdraulicFluid.Text = caTank.Hydraulic_Fluid.ToString(); tbHdraulicWater.Text = caTank.Hydraulic_Water.ToString(); tbSeepageVelocity.Text = caTank.Seepage_Velocity.ToString(); tbFlowRateD1.Text = caTank.Flow_Rate_D1.ToString(); tbFlowRateD4.Text = caTank.Flow_Rate_D4.ToString(); tbLeakDurationD1.Text = caTank.Leak_Duration_D1.ToString(); tbLeakDurationD4.Text = caTank.Leak_Duration_D4.ToString(); tbRealeaseVolumeFromLeakageD1.Text = caTank.Release_Volume_Leak_D1.ToString(); //MessageBox.Show(caTank.Release_Volume_Leak_D1.ToString()); // MessageBox.Show(caTank.FC_Environ_Rupture.ToString()); tbRealeaseVolumeFromLeakageD4.Text = caTank.Release_Volume_Leak_D4.ToString(); tbReleaseVolumeFromRuptureD1.Text = caTank.Release_Volume_Rupture_D1.ToString(); tbReleaseVolumeFromRuptureD4.Text = caTank.Release_Volume_Rupture_D4.ToString(); tbTimeToInitiate.Text = caTank.Time_Leak_Ground.ToString(); // MessageBox.Show(caTank.Time_Leak_Ground.ToString()); tbVolumeSubsoilFromLeakageD1.Text = caTank.Volume_SubSoil_Leak_D1.ToString(); tbVolumeSubsoilFromLeakageD4.Text = caTank.Volume_SubSoil_Leak_D4.ToString(); tbVolumeGroundWaterFromLeakageD1.Text = caTank.Volume_Ground_Water_Leak_D1.ToString(); tbVolumeGroundWaterFromLeakageD4.Text = caTank.Volume_Ground_Water_Leak_D4.ToString(); tbWithinTheDike.Text = caTank.Barrel_Dike_Rupture.ToString(); tbWithinTheDike.Text = caTank.Barrel_Dike_Rupture.ToString(); tbOnsiteRupture.Text = caTank.Barrel_Onsite_Rupture.ToString(); tbOffsiteRupture.Text = caTank.Barrel_Offsite_Rupture.ToString(); tbReachWater.Text = caTank.Barrel_Water_Rupture.ToString(); tbFC_Env_Leakage.Text = caTank.FC_Environ_Leak.ToString(); tbFC_Env_Rupture.Text = caTank.FC_Environ_Rupture.ToString(); tbMaterialFactor.Text = caTank.Material_Factor.ToString(); tbTotalCost.Text = caTank.FC_Environ.ToString(); tbComponentDamageCost.Text = caTank.Component_Damage_Cost.ToString(); tbCostOfBusinessInterruption.Text = caTank.Business_Cost.ToString(); tbTotalConsequence.Text = caTank.Consequence.ToString(); tbConsequenceCategory.Text = caTank.ConsequenceCategory; }
private void initData_Shell(int ID) { RW_CA_TANK_BUS busCA_Tank = new RW_CA_TANK_BUS(); RW_CA_TANK caTank = busCA_Tank.getData(ID); #region consequences area tbFlowRateShellD1.Text = caTank.Flow_Rate_D1.ToString(); tbFlowRateShellD2.Text = caTank.Flow_Rate_D2.ToString(); tbFlowRateShellD3.Text = caTank.Flow_Rate_D3.ToString(); tbFlowRateShellD4.Text = caTank.Flow_Rate_D4.ToString(); tbLeakDurationShellD1.Text = caTank.Leak_Duration_D1.ToString(); tbLeakDurationShellD2.Text = caTank.Leak_Duration_D2.ToString(); tbLeakDurationShellD3.Text = caTank.Leak_Duration_D3.ToString(); tbLeakDurationShellD4.Text = caTank.Leak_Duration_D4.ToString(); tbReleaseVolumeLeakageShellD1.Text = caTank.Release_Volume_Leak_D1.ToString(); tbReleaseVolumeLeakageShellD2.Text = caTank.Release_Volume_Leak_D2.ToString(); tbReleaseVolumeLeakageShellD3.Text = caTank.Release_Volume_Leak_D3.ToString(); tbReleaseVolumeLeakageShellD4.Text = caTank.Release_Volume_Leak_D4.ToString(); tbReleaseVolumeLeakageShellD1.Text = caTank.Release_Volume_Leak_D1.ToString(); tbReleaseVolumeLeakageShellD2.Text = caTank.Release_Volume_Leak_D2.ToString(); tbReleaseVolumeLeakageShellD3.Text = caTank.Release_Volume_Leak_D3.ToString(); tbReleaseVolumeLeakageShellD4.Text = caTank.Release_Volume_Leak_D4.ToString(); tbTimeLeakageGroundWaterShell.Text = caTank.Time_Leak_Ground.ToString(); tbVolumeSubsoilShellD1.Text = caTank.Volume_SubSoil_Leak_D1.ToString(); tbVolumeSubsoilShellD4.Text = caTank.Volume_SubSoil_Leak_D4.ToString(); tbVolumeGroundWaterShellD1.Text = caTank.Volume_Ground_Water_Leak_D1.ToString(); tbVolumeGroundWaterShellD4.Text = caTank.Volume_Ground_Water_Leak_D4.ToString(); tbDikeRuptureShell.Text = caTank.Barrel_Dike_Rupture.ToString(); tbOn_siteShell.Text = caTank.Barrel_Onsite_Rupture.ToString(); tbIn_siteShell.Text = caTank.Barrel_Offsite_Rupture.ToString(); tbReachWaterRuptureShell.Text = caTank.Barrel_Water_Rupture.ToString(); tbFCleakageShell.Text = caTank.FC_Environ_Leak.ToString(); tbFCruptureShell.Text = caTank.FC_Environ_Rupture.ToString(); tbTotalF_Shell.Text = caTank.FC_Environ.ToString(); tbComponentDamageCost.Text = caTank.Component_Damage_Cost.ToString(); tbCostBussinessInterruptionShell.Text = caTank.Business_Cost.ToString(); tbTotalConsequenceShell.Text = caTank.Consequence.ToString(); tbConsequenceCategoryShell.Text = caTank.ConsequenceCategory; #endregion #region Tab COF Financial for Shell tbWithinDikeLeakageShell.Text = caTank.Barrel_Dike_Leak.ToString(); tbWithinDikeRuptureShell.Text = caTank.Barrel_Dike_Rupture.ToString(); tbOn_siteLeakageShell.Text = caTank.Barrel_Onsite_Leak.ToString(); tbOn_siteRuptureShell.Text = caTank.Barrel_Onsite_Rupture.ToString(); tbOff_siteLeakageShell.Text = caTank.Barrel_Offsite_Leak.ToString(); tbOff_siteRupureShell.Text = caTank.Barrel_Offsite_Rupture.ToString(); txtReachWaterLeakageShell.Text = caTank.Barrel_Water_Leak.ToString(); txtReachWaterRuptureShell.Text = caTank.Barrel_Water_Rupture.ToString(); tbFCenvLeakageShell.Text = caTank.FC_Environ_Leak.ToString(); tbFCenvRuptureShell.Text = caTank.FC_Environ_Rupture.ToString(); tbTotalFCenvShell.Text = caTank.FC_Environ.ToString(); tbComponentDamageCostShell.Text = caTank.Component_Damage_Cost.ToString(); //tbDamageSurroundEquipmentShell.Text = caTank. tbCostOfBusinessInterruptionShell.Text = caTank.Business_Cost.ToString(); //tbCostAssociatedPersonInjury.Text = #endregion }