Пример #1
0
 private void LoadSectionData(int workId)
 {
     PointRepairsSectionDetailsGateway pointRepairsSectionDetailsGateway = new PointRepairsSectionDetailsGateway(pointRepairsTDS);
     if (pointRepairsSectionDetailsGateway.Table.Rows.Count > 0)
     {
         // Load Section Details
         tbxFlowOrderId.Text = pointRepairsSectionDetailsGateway.GetFlowOrderId(workId);
         hdfSectionId.Value = pointRepairsSectionDetailsGateway.GetSectionId(workId);
         hdfFlowOrderId.Value = pointRepairsSectionDetailsGateway.GetFlowOrderId(workId);
         hdfSectionId.Value = pointRepairsSectionDetailsGateway.GetSectionId(workId);
         tbxStreet.Text = pointRepairsSectionDetailsGateway.GetStreet(workId);
         tbxUSMH.Text = pointRepairsSectionDetailsGateway.GetUsmhDescription(workId);
         tbxUSMHMN.Text = pointRepairsSectionDetailsGateway.GetUsmhAddress(workId);
         tbxDSMH.Text = pointRepairsSectionDetailsGateway.GetDsmhDescription(workId);
         tbxDSMHMN.Text = pointRepairsSectionDetailsGateway.GetDsmhAddress(workId);
         tbxMapSize.Text = pointRepairsSectionDetailsGateway.GetMapSize(workId);
         tbxConfirmedSize.Text = pointRepairsSectionDetailsGateway.GetSize_(workId);
         tbxMapLength.Text = pointRepairsSectionDetailsGateway.GetMapLength(workId);
         tbxSteelTapeLength.Text = pointRepairsSectionDetailsGateway.GetLength(workId);
         tbxLaterals.Text = "0"; if (pointRepairsSectionDetailsGateway.GetLaterals(workId).HasValue) tbxLaterals.Text = pointRepairsSectionDetailsGateway.GetLaterals(workId).ToString().Trim();
         tbxLiveLaterals.Text = "0"; if (pointRepairsSectionDetailsGateway.GetLiveLaterals(workId).HasValue) tbxLiveLaterals.Text = pointRepairsSectionDetailsGateway.GetLiveLaterals(workId).ToString().Trim();
         tbxGeneralDataSubArea.Text = pointRepairsSectionDetailsGateway.GetSubArea(workId);
     }
 }