/// <summary> /// InitData. /// </summary> protected override void InitData() { _data = new JlAddLateralsTDS(); }
/// <summary> /// Save a lateral /// </summary> /// <param name="row">row</param> /// <param name="projectId">projectId</param> /// <param name="countryId">countryId</param> /// <param name="provinceId">provinceId</param> /// <param name="countyId">countyId</param> /// <param name="cityId">cityId</param> /// <param name="companyId">companyId</param> /// <returns>lateral_assetId</returns> private int SaveLateral(JlAddLateralsTDS.JlAddLateralsTempRow row, int projectId, Int64 countryId, Int64? provinceId, Int64? countyId, Int64? cityId, int companyId) { int section_ = row.SectionAssetID; string lateralID = row.LateralID; string address = ""; if (!row.IsAddressNull()) address = row.Address; string distanceFromUSMH = ""; if (!row.IsDistanceFromUSMHNull()) distanceFromUSMH = row.DistanceFromUSMH; string distanceFromDSMH = ""; if (!row.IsDistanceFromDSMHNull()) distanceFromDSMH = row.DistanceFromDSMH; LfsAssetSewerLateral lfsAssetSewerLateral = new LfsAssetSewerLateral(null); int lateral_assetId = lfsAssetSewerLateral.InsertDirect(countryId, provinceId, countyId, cityId, row.SectionAssetID, address, lateralID, "", "", "", "", "Live", "", distanceFromUSMH, distanceFromDSMH, "", false, companyId, ""); return lateral_assetId; }