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

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

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

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