예제 #1
0
        private void LoadSectionData(int workId)
        {
            RehabAssessmentSectionDetailsGateway rehabAssessmentSectionDetailsGateway = new RehabAssessmentSectionDetailsGateway(rehabAssessmentTDS);
            if (rehabAssessmentSectionDetailsGateway.Table.Rows.Count > 0)
            {
                // Load Section Details
                tbxFlowOrderId.Text = rehabAssessmentSectionDetailsGateway.GetFlowOrderId(workId);
                hdfFlowOrderId.Value = rehabAssessmentSectionDetailsGateway.GetFlowOrderId(workId);
                hdfSectionId.Value = rehabAssessmentSectionDetailsGateway.GetSectionId(workId);
                tbxOldCwpId.Text = rehabAssessmentSectionDetailsGateway.GetOriginalSectionId(workId);
                tbxStreet.Text = rehabAssessmentSectionDetailsGateway.GetStreet(workId);
                tbxUSMH.Text = rehabAssessmentSectionDetailsGateway.GetUsmhDescription(workId);
                tbxDSMH.Text = rehabAssessmentSectionDetailsGateway.GetDsmhDescription(workId);
                tbxMapSize.Text = rehabAssessmentSectionDetailsGateway.GetMapSize(workId);
                tbxConfirmedSize.Text = rehabAssessmentSectionDetailsGateway.GetSize_(workId);
                ddlThickness.SelectedValue = rehabAssessmentSectionDetailsGateway.GetThickness(workId);
                tbxMapLength.Text = rehabAssessmentSectionDetailsGateway.GetMapLength(workId);
                tbxSteelTapeLength.Text = rehabAssessmentSectionDetailsGateway.GetLength(workId);
                tbxLaterals.Text = "0"; if (rehabAssessmentSectionDetailsGateway.GetLaterals(workId).HasValue) tbxLaterals.Text = rehabAssessmentSectionDetailsGateway.GetLaterals(workId).ToString().Trim();
                tbxLiveLaterals.Text = "0"; if (rehabAssessmentSectionDetailsGateway.GetLiveLaterals(workId).HasValue) tbxLiveLaterals.Text = rehabAssessmentSectionDetailsGateway.GetLiveLaterals(workId).ToString().Trim();

                // For m1 data
                // ... for depths
                tbxM1DataUsmhDepth.Text = rehabAssessmentSectionDetailsGateway.GetUsmhDepth(workId);
                tbxM1DataDsmhDepth.Text = rehabAssessmentSectionDetailsGateway.GetDsmhDepth(workId);

                // ... for address
                tbxM1DataUsmhAddress.Text = rehabAssessmentSectionDetailsGateway.GetUsmhAddress(workId);
                tbxM1DataDsmhAddress.Text = rehabAssessmentSectionDetailsGateway.GetDsmhAddress(workId);

                // ... Get lfs asset sewer data
                tbxM1DataSteelTapeThroughSewer.Text = rehabAssessmentSectionDetailsGateway.GetSteelTapeThroughSewer(workId);
                tbxM1DataUsmhMouth12.Text = rehabAssessmentSectionDetailsGateway.GetUsmhMouth12(workId);
                tbxM1DataUsmhMouth1.Text = rehabAssessmentSectionDetailsGateway.GetUsmhMouth1(workId);
                tbxM1DataUsmhMouth2.Text = rehabAssessmentSectionDetailsGateway.GetUsmhMouth2(workId);
                tbxM1DataUsmhMouth3.Text = rehabAssessmentSectionDetailsGateway.GetUsmhMouth3(workId);
                tbxM1DataUsmhMouth4.Text = rehabAssessmentSectionDetailsGateway.GetUsmhMouth4(workId);
                tbxM1DataUsmhMouth5.Text = rehabAssessmentSectionDetailsGateway.GetUsmhMouth5(workId);
                tbxM1DataDsmhMouth12.Text = rehabAssessmentSectionDetailsGateway.GetDsmhMouth12(workId);
                tbxM1DataDsmhMouth1.Text = rehabAssessmentSectionDetailsGateway.GetDsmhMouth1(workId);
                tbxM1DataDsmhMouth2.Text = rehabAssessmentSectionDetailsGateway.GetDsmhMouth2(workId);
                tbxM1DataDsmhMouth3.Text = rehabAssessmentSectionDetailsGateway.GetDsmhMouth3(workId);
                tbxM1DataDsmhMouth4.Text = rehabAssessmentSectionDetailsGateway.GetDsmhMouth4(workId);
                tbxM1DataDsmhMouth5.Text = rehabAssessmentSectionDetailsGateway.GetDsmhMouth5(workId);
                tbxGeneralSubArea.Text = rehabAssessmentSectionDetailsGateway.GetSubArea(workId);
            }
        }