﻿\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Components.cs:14://            // Выбрать все записи из таблицы EngineeringItems
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Components.cs:15://            DataRow[] adrEngineeringItems = Program.dsPipingDCF.Tables["EngineeringItems"].Select();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Components.cs:18://            foreach (DataRow drEngineeringItem in adrEngineeringItems) {
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Components.cs:25://                // Извлечь PnPID компонента
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Components.cs:26://                int iComponentPnPId = Convert.ToInt32(drEngineeringItem["PnPID"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Components.cs:28://                // Узнать PnPID чертежа для компонента
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Components.cs:29://                DataRow[] adrDataLinks = Program.dsPipingDCF.Tables["PnPDataLinks"].Select("[RowId]=" + iComponentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Components.cs:30://                if (adrDataLinks.Length != 1)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Components.cs:34://                int iDwgId = Convert.ToInt32(adrDataLinks[0]["DwgId"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Components.cs:40://                    if (dDrawing.iPnPId == iDwgId) {
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Components.cs:49://                // Узнать PnPID номера линии для компонента
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Components.cs:50://                DataRow[] adrLineGroupPartRelationships = Program.dsPipingDCF.Tables["P3dLineGroupPartRelationship"].Select("[Part]=" + iComponentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Components.cs:51://                if (adrLineGroupPartRelationships.Length != 1) {
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Components.cs:54://                int iLineNumberId = Convert.ToInt32(adrLineGroupPartRelationships[0]["LineGroup"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Components.cs:60://                    if (lnLineNumber.iPnPId == iLineNumberId) {
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Components.cs:71://                switch (string.Format("{0}", adrDataLinks[0]["RowClassName"])) {
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Components.cs:82://                        lcComponents.Add(new Component(iComponentPnPId));
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Components.cs:96://        int iPnPId; // PnPId компонента
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Components.cs:107://        public Component(int iPnPId) {
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Components.cs:108://            this.iPnPId = iPnPId;
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Components.cs:109://            DataRow[] adrDataLinks = Program.dsPipingDCF.Tables["PnPDataLinks"].Select("[RowId]=" + this.iPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Components.cs:110://            string sClassName = string.Format("{0}", adrDataLinks[0]["RowClassName"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Components.cs:143://                DataRow[] drPipeBend = Program.dsPipingDCF.Tables["PipeBend"].Select("[PnPID]=" + this.iPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Components.cs:155://                if (!GetDrawingFileNameAndComponentHandle(this.iPnPId, ref sDrawingFileName, ref lHandle)) {
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Components.cs:169://                        Components.lcComponents.Add(new Component(this.iPnPId, iNextZ - 500, Program.diDrawingsInformation.GetPipeLength(sDrawingFileName, lHandle, iNextZ, iNextZ - 1000)));
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Components.cs:172://                    Components.lcComponents.Add(new Component(this.iPnPId, (((dS1Z > dS2Z) ? dS2Z : dS1Z) + iNextZ) / 2, Program.diDrawingsInformation.GetPipeLength(sDrawingFileName, lHandle, iNextZ, (dS1Z > dS2Z) ? dS2Z : dS1Z)));
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Components.cs:179://            Console.WriteLine(iPnPId + ":" + ctComponentType.ToString() + ":" + dPositionZ + ":" + dPipeLength);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Components.cs:183://        public Component(int iPnPId, double dPositionZ, double dPipeLength) {
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Components.cs:184://            this.iPnPId = iPnPId;
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Components.cs:188://            Console.WriteLine(iPnPId + ":" + ctComponentType.ToString() + ":" + dPositionZ + ":" + dPipeLength);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Components.cs:191://        // Получить запись "PnPDataLinks" номера чертежа по БД 'Piping.dcf' с компонентом
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Components.cs:193://        static bool GetDrawingFileNameAndComponentHandle(int iPnPId, ref string sDrawingFileName, ref long lHandle) {
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Components.cs:195://                DataRow[] drRows3 = Program.dsPipingDCF.Tables["PnPDataLinks"].Select("[RowId]=" + iPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Components.cs:199://                    Program.IsErrorCodeNotOK(ErrorCode.ecPnPDataLinksNotSingleRow);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Components.cs:209://                    Program.IsErrorCodeNotOK(ErrorCode.ecPnPDataLinksCannotConvertToLongDwgHandleLow);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Components.cs:213://                // Получить PnPId чертежа с этим компонентом или выйти,
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Components.cs:220://                    Program.IsErrorCodeNotOK(ErrorCode.ecPnPDataLinksCannotConvertToInt32DwgId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Components.cs:224://                // Получить наименование файла чертежа по его PnPId из Program.ldSelectedDrawings
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Components.cs:226://                    if (dDrawing.iPnPId == iDwgId) {
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:149:        // миникаталоги, которые зарегистрированы [PnPDrawings]
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:150:        // имя в поле [Title] таблицы [PnPDrawings] может содержать
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:152:        // для сравнения, поле [Spec] таблицы [EngineeringItems] не содержит
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:159:            System.Data.DataTable tablePnPDrawings = _projectPipingDcf.Tables["PnPDrawings"];
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:161:            res = tablePnPDrawings.Select()
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:162:                .Where(x => x.Field<string>("PnPType") == "SPEC")
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:167:            //    from t1 in tablePnPDrawings.AsEnumerable()
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:168:            //    where t1.Field<string>("PnPType") == "SPEC"
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:201:        // миникаталоги, к которым обращаются компоненты [EngineeringItems]
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:207:        public List<(string sName, string sPath, List<long> ComponentPnPIDList)>
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:211:            //System.Data.DataTable tableEngineeringItems = _projectPipingDcf.Tables["EngineeringItems"];
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:212:            //res = tableEngineeringItems.Select().Select(x => x.Field<string>("Spec")).Distinct().ToList();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:214:            List<(string sName, string sPath, List<long> ComponentPnPIDList)> res
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:215:                = new List<(string sName, string sPath, List<long> ComponentPnPIDList)>();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:221:            if (_projectPipingDcf.Tables.Contains("EngineeringItems")
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:222:                && (_projectPipingDcf.Tables.Contains("PnPDataLinks"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:223:                && (_projectPipingDcf.Tables.Contains("PnPDrawings"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:224:                && (_projectPipingDcf.Tables.Contains("P3dLineGroupPartRelationship"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:225:                && (_projectPipingDcf.Tables.Contains("P3dLineGroup"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:227:                && (_projectPipingDcf.Tables["EngineeringItems"].Columns.Contains("PnPID"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:228:                && (_projectPipingDcf.Tables["EngineeringItems"].Columns.Contains("Status"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:229:                && (_projectPipingDcf.Tables["EngineeringItems"].Columns.Contains("Spec"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:231:                && (_projectPipingDcf.Tables["PnPDataLinks"].Columns.Contains("RowId"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:232:                && (_projectPipingDcf.Tables["PnPDataLinks"].Columns.Contains("DwgId"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:234:                && (_projectPipingDcf.Tables["PnPDrawings"].Columns.Contains("PnPID"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:235:                && (_projectPipingDcf.Tables["PnPDrawings"].Columns.Contains("PnPType"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:236:                // && (_projectPipingDcf.Tables["PnPDrawings"].Columns.Contains("Dwg Name"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:237:                // && (_projectPipingDcf.Tables["PnPDrawings"].Columns.Contains("Title"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:238:                // && (_projectPipingDcf.Tables["PnPDrawings"].Columns.Contains("PnPRelativePath"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:239:                && (_projectPipingDcf.Tables["PnPDrawings"].Columns.Contains("Path"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:240:                && (_projectPipingDcf.Tables["PnPDrawings"].Columns.Contains("PnPUnc"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:241:                && (_projectPipingDcf.Tables["PnPDrawings"].Columns.Contains("Area"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:243:                && (_projectPipingDcf.Tables["P3dLineGroupPartRelationship"].Columns.Contains("Part"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:244:                && (_projectPipingDcf.Tables["P3dLineGroupPartRelationship"].Columns.Contains("LineGroup"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:246:                && (_projectPipingDcf.Tables["P3dLineGroup"].Columns.Contains("PnPID"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:247:                && (_projectPipingDcf.Tables["P3dLineGroup"].Columns.Contains("Tag"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:248:                // && (_projectPipingDcf.Tables["P3dLineGroup"].Columns.Contains("Number"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:251:                //DataSet dataSetEngineeringItemsAndLinks = new DataSet();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:252:                //dataSetEngineeringItemsAndLinks.Load(_projectPipingDcf.CreateDataReader(), LoadOption.Upsert,
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:253:                //    "EngineeringItems", "PnPDataLinks", "P3dLineGroupPartRelationship");
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:256:                System.Data.DataTable tableEngineeringItems = _projectPipingDcf.Tables["EngineeringItems"];
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:257:                System.Data.DataTable tablePnPDataLinks = _projectPipingDcf.Tables["PnPDataLinks"];
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:258:                System.Data.DataTable tablePnPDrawings = _projectPipingDcf.Tables["PnPDrawings"];
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:259:                System.Data.DataTable tableP3dLineGroupPartRelationship = _projectPipingDcf.Tables["P3dLineGroupPartRelationship"];
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:260:                System.Data.DataTable tableP3dLineGroup = _projectPipingDcf.Tables["P3dLineGroup"];
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:262:                // System.Data.DataTable tableP3dDrawingLineGroupRelationship = _projectPipingDcf.Tables["P3dDrawingLineGroupRelationship"];
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:267:                // имена миникаталогов в таблице [PnPDrawings] могут иметь расширение, и могут не иметь его
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:269:                var querySpecPnPDrawings =
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:270:                    from t1 in tablePnPDrawings.AsEnumerable()
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:271:                    where t1.Field<string>("PnPType") == "SPEC"
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:280:                foreach (var itm in querySpecPnPDrawings)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:287:                //var queryEngineeringItems =
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:288:                //    from t1 in tableEngineeringItems.AsEnumerable()
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:294:                //        ComponentPnPID = t1["PnPID"].GetType() == typeof(long)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:295:                //            ? t1.Field<long>("PnPID") : t1.Field<int>("PnPID"),
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:309:                    //  по связи с компонентами в [EngineeringItems]
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:313:                    var queryEngineeringItems =
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:314:                        from t1 in tableEngineeringItems.AsEnumerable()
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:316:                        join t2 in tablePnPDataLinks.AsEnumerable()
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:317:                        on Convert.ToInt32(t1["PnPID"].GetType() == typeof(long)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:318:                            ? t1.Field<long>("PnPID") : t1.Field<int>("PnPID"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:322:                        join t3 in tablePnPDrawings.AsEnumerable()
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:325:                            equals Convert.ToInt32(t3["PnPID"].GetType() == typeof(long)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:326:                            ? t3.Field<long>("PnPID") : t3.Field<int>("PnPID"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:328:                        join t4 in tableP3dLineGroupPartRelationship.AsEnumerable()
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:329:                        on Convert.ToInt32(t1["PnPID"].GetType() == typeof(long)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:330:                            ? t1.Field<long>("PnPID") : t1.Field<int>("PnPID"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:334:                        join t5 in tableP3dLineGroup.AsEnumerable()
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:335:                        on Convert.ToInt32(t4["LineGroup"].GetType() == typeof(long)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:336:                            ? t4.Field<long>("LineGroup") : t4.Field<int>("LineGroup"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:337:                            equals Convert.ToInt32(t5["PnPID"].GetType() == typeof(long)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:338:                            ? t5.Field<long>("PnPID") : t5.Field<int>("PnPID"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:349:                                Convert.ToInt32(t5["PnPID"].GetType() == typeof(long)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:350:                                ? t5.Field<long>("PnPID") : t5.Field<int>("PnPID")))))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:352:                        // where t3.Field<string>("PnPType") == "SPEC"
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:353:                        // where t3.Field<string>("PnPType") == "DWG"
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:357:                            ComponentPnPID = t1["PnPID"].GetType() == typeof(long)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:358:                                ? t1.Field<long>("PnPID") : t1.Field<int>("PnPID"),
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:365:                            //DwgPnPID = t3["PnPID"].GetType() == typeof(long)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:366:                            //    ? t3.Field<long>("PnPID") : t3.Field<int>("PnPID"),
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:370:                            //    t3.Field<string>("PnPUnc"),
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:374:                            //LineNamePnPID = t5["PnPID"].GetType() == typeof(long)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:375:                            //    ? t5.Field<long>("PnPID") : t5.Field<int>("PnPID"),
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:380:                    //res = queryEngineeringItems.Select(x => x.SpecName).Distinct().ToList();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:381:                    foreach (var itm in queryEngineeringItems)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:385:                        specComponentsDict[itm.SpecName].Add(itm.ComponentPnPID);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:401:                    res.Add((sName: key, sPath: sPath, ComponentPnPIDList: specComponentsDict[key].ToList()));
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:414:        // получаем список труб, по таблицам [EngineeringItems], [Pipe], [PipeBend]:
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:415:        //  iPnPId, длина трубы, вес погонного метра, количество сварных швов пролета трубы (без краев)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:420:        public List<(int iPnPId, double CutLength, double? LinearWeight, int WeldsInsidePipe)>
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:423:            List<(int iPnPId, double CutLength, double? LinearWeight, int WeldsInsidePipe)> res
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:424:                = new List<(int iPnPId, double CutLength, double? LinearWeight, int WeldsInsidePipe)>();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:426:            int iPnPId;
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:432:            if (_projectPipingDcf.Tables.Contains("EngineeringItems")
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:433:                && (_projectPipingDcf.Tables.Contains("PnPDataLinks"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:434:                && (_projectPipingDcf.Tables.Contains("PnPDrawings"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:435:                && (_projectPipingDcf.Tables.Contains("P3dLineGroupPartRelationship"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:436:                && (_projectPipingDcf.Tables.Contains("P3dLineGroup"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:440:                && (_projectPipingDcf.Tables["EngineeringItems"].Columns.Contains("PnPID"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:441:                && (_projectPipingDcf.Tables["EngineeringItems"].Columns.Contains("Status"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:443:                && (_projectPipingDcf.Tables["PnPDataLinks"].Columns.Contains("RowId"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:444:                && (_projectPipingDcf.Tables["PnPDataLinks"].Columns.Contains("DwgId"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:446:                && (_projectPipingDcf.Tables["PnPDrawings"].Columns.Contains("PnPID"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:447:                // && (_projectPipingDcf.Tables["PnPDrawings"].Columns.Contains("PnPType"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:448:                // && (_projectPipingDcf.Tables["PnPDrawings"].Columns.Contains("Dwg Name"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:449:                // && (_projectPipingDcf.Tables["PnPDrawings"].Columns.Contains("Title"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:450:                // && (_projectPipingDcf.Tables["PnPDrawings"].Columns.Contains("PnPRelativePath"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:451:                && (_projectPipingDcf.Tables["PnPDrawings"].Columns.Contains("Path"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:452:                // && (_projectPipingDcf.Tables["PnPDrawings"].Columns.Contains("PnPUnc"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:453:                // && (_projectPipingDcf.Tables["PnPDrawings"].Columns.Contains("Area"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:455:                && (_projectPipingDcf.Tables["P3dLineGroupPartRelationship"].Columns.Contains("Part"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:456:                && (_projectPipingDcf.Tables["P3dLineGroupPartRelationship"].Columns.Contains("LineGroup"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:458:                && (_projectPipingDcf.Tables["P3dLineGroup"].Columns.Contains("PnPID"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:459:                && (_projectPipingDcf.Tables["P3dLineGroup"].Columns.Contains("Tag"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:460:                // && (_projectPipingDcf.Tables["P3dLineGroup"].Columns.Contains("Number"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:462:                && (_projectPipingDcf.Tables["Pipe"].Columns.Contains("PnPID"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:467:                //DataSet dataSetEngineeringItemsAndLinks = new DataSet();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:468:                //dataSetEngineeringItemsAndLinks.Load(_projectPipingDcf.CreateDataReader(), LoadOption.Upsert,
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:469:                //    "EngineeringItems", "PnPDataLinks", "P3dLineGroupPartRelationship");
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:472:                System.Data.DataTable tableEngineeringItems = _projectPipingDcf.Tables["EngineeringItems"];
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:473:                System.Data.DataTable tablePnPDataLinks = _projectPipingDcf.Tables["PnPDataLinks"];
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:474:                System.Data.DataTable tablePnPDrawings = _projectPipingDcf.Tables["PnPDrawings"];
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:475:                System.Data.DataTable tableP3dLineGroupPartRelationship = _projectPipingDcf.Tables["P3dLineGroupPartRelationship"];
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:476:                System.Data.DataTable tableP3dLineGroup = _projectPipingDcf.Tables["P3dLineGroup"];
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:478:                // System.Data.DataTable tableP3dDrawingLineGroupRelationship = _projectPipingDcf.Tables["P3dDrawingLineGroupRelationship"];
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:486:                    && (_projectPipingDcf.Tables["PipeBend"].Columns.Contains("PnPID"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:500:                    // получаем список iPnPId труб / гнутых отводов по связи с компонентами
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:505:                        from t1 in tableEngineeringItems.AsEnumerable()
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:507:                        join t2 in tablePnPDataLinks.AsEnumerable()
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:508:                        on Convert.ToInt32(t1["PnPID"].GetType() == typeof(long)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:509:                            ? t1.Field<long>("PnPID") : t1.Field<int>("PnPID"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:513:                        join t3 in tablePnPDrawings.AsEnumerable()
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:516:                            equals Convert.ToInt32(t3["PnPID"].GetType() == typeof(long)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:517:                            ? t3.Field<long>("PnPID") : t3.Field<int>("PnPID"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:519:                        join t4 in tableP3dLineGroupPartRelationship.AsEnumerable()
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:520:                        on Convert.ToInt32(t1["PnPID"].GetType() == typeof(long)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:521:                            ? t1.Field<long>("PnPID") : t1.Field<int>("PnPID"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:525:                        join t5 in tableP3dLineGroup.AsEnumerable()
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:526:                        on Convert.ToInt32(t4["LineGroup"].GetType() == typeof(long)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:527:                            ? t4.Field<long>("LineGroup") : t4.Field<int>("LineGroup"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:528:                            equals Convert.ToInt32(t5["PnPID"].GetType() == typeof(long)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:529:                            ? t5.Field<long>("PnPID") : t5.Field<int>("PnPID"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:535:                        on Convert.ToInt32(t1["PnPID"].GetType() == typeof(long)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:536:                            ? t1.Field<long>("PnPID") : t1.Field<int>("PnPID"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:537:                            equals Convert.ToInt32(t6["PnPID"].GetType() == typeof(long)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:538:                            ? t6.Field<long>("PnPID") : t6.Field<int>("PnPID"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:547:                                Convert.ToInt32(t5["PnPID"].GetType() == typeof(long)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:548:                                ? t5.Field<long>("PnPID") : t5.Field<int>("PnPID")))))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:552:                            ComponentPnPID = t1["PnPID"].GetType() == typeof(long)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:553:                                ? t1.Field<long>("PnPID") : t1.Field<int>("PnPID"),
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:562:                        iPnPId = Convert.ToInt32(itm.ComponentPnPID);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:571:                        res.Add((iPnPId, CutLength, LinearWeight, WeldsInsidePipe));
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:593:        // если линия не именованная, то обращаемся к ней по ее PnPId
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:596:        private string GetUnnamedLineName(int iPnPId)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:598:            return "(PnPId:" + iPnPId + ")";
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:610:            foreach (DataRow drRow in _projectPipingDcf.Tables["PnPDrawings"].Rows)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:612:                if (string.Format("{0}", drRow["PnPType"]) != "FOLDER")
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:617:                    dNewDrawing.iPnPId = Convert.ToInt32(drRow["PnPID"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:619:                    // dNewDrawing.sPath = Glob.sProjectFolder + "\\" + drRow["PnPRelativePath"];
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:625:                    DataRow[] adrRows = _projectPipingDcf.Tables["P3dDrawingLineGroupRelationship"]
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:626:                        .Select("[Drawing]=" + dNewDrawing.iPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:632:                            if (lnLineNumber.iPnPId == Convert.ToInt32(drRow1["LineGroup"]))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:635:                                    .Tables["P3dLineGroupPartRelationship"]
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:636:                                    .Select("[LineGroup]=" + lnLineNumber.iPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:662:            foreach (DataRow drRow in _projectPipingDcf.Tables["P3dLineGroup"].Rows)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:667:                lnNewLineNumber.iPnPId = Convert.ToInt32(drRow["PnPID"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:673:                    // lnNewLineNumber.sName = "(PnPId:" + lnNewLineNumber.iPnPId + ")";
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:674:                    lnNewLineNumber.sName = GetUnnamedLineName(lnNewLineNumber.iPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:681:                lineNameItmCalculated = CalculateTested(lnNewLineNumber.iPnPId, Glob.lkvpsdReplacePressure);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:713:            int iPnPIdLineName, List<KeyValuePair<string, double>> lkvpsdReplacePressure)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:721:            drSourceRow = _projectPipingDcf.Tables["P3dLineGroup"]
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:722:                .Select("[PnPID]=" + iPnPIdLineName).First();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:864:        public int iPnPId; // PnPId чертежа по БД 'Piping.dcf'
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:877:            iPnPId = Convert.ToInt32(drSourceRow["PnPID"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:878:            sPath = Program.sProjectFolder + "\\" + drSourceRow["PnPRelativePath"];
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:881:            DataRow[] adrRows = Program.dsPipingDCF.Tables["P3dDrawingLineGroupRelationship"].Select("[Drawing]=" + iPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:887:                    if (lnLineNumber.iPnPId == Convert.ToInt32(drRow["LineGroup"]))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:889:                        DataRow[] adrRows2 = Program.dsPipingDCF.Tables["P3dLineGroupPartRelationship"].Select("[LineGroup]=" + lnLineNumber.iPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:908:        public int iPnPId; // PnPId номера линии по БД 'Piping.dcf'
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:929:            iPnPId = Convert.ToInt32(drSourceRow["PnPID"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsAndLinenumbers.cs:933:                sName = "(PnPId:" + iPnPId + ")";
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsInformation.cs:42:                sbScriptFile.AppendLine("(arxload \"PnP3dObjects.dbx\" \"Ошибка загрузки ARX (PnP3dObjects.dbx)!\")");
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsInformation.cs:137:            if (!File.Exists(Path.Combine(Path.GetDirectoryName(sAcCoreConsolePathInternal), "PnP3dObjects.dbx")))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsInformation.cs:139:                Glob.TracedMessageBoxShow("Не найдено окружение приложения Plant 3D [PnP3dObjects.dbx]");
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\DrawingsInformation.cs:192:_arx _l ""PnP3dObjects.dbx""
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Materials.cs:77:            List<(string sSpecFile, string sMaterial, int iPnPIdOfTheFirstFound)> lsMissedMaterialsAndItsSpec
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Materials.cs:78:                = new List<(string sSpecFile, string sMaterial, int iPnPIdOfTheFirstFound)>();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Materials.cs:103:                    + "Обращение к материалу \n (миникаталог - EngineeringItems - PnPID): "
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Materials.cs:105:                    + "[" + string.Join("]\n[", lsMissedMaterialsAndItsSpec.Select(x => x.iPnPIdOfTheFirstFound).Distinct().ToList()) + "]"
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Materials.cs:140:            ref List<(string sSpecFile, string sMaterial, int iPnPIdOfTheFirstFound)> lsMissedMaterialsAndItsComponent)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Materials.cs:158:                DataRow[] adrPipes = dsSpec.Tables["EngineeringItems"].Select("[PartCategory]='Pipe'");
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Materials.cs:281:                            iPnPIdOfTheFirstFound: Convert.ToInt32(drPipe["PnPID"])));
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Program.cs:217:                if (!dsPipingDCF.Tables.Contains("EngineeringItems"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Program.cs:219:                    Glob.TracedMessageBoxShow("Не найдена таблица [EngineeringItems]");
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Program.cs:225:                DataRow[] adrEngineeringItems = dsPipingDCF.Tables["EngineeringItems"].Select();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Program.cs:226:                foreach (DataRow drEngineeringItem in adrEngineeringItems)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Program.cs:228:                    int iPnPId = Convert.ToInt32(drEngineeringItem["PnPID"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Program.cs:229:                    DataRow[] adrLineGroupPartRelationships = dsPipingDCF.Tables["P3dLineGroupPartRelationship"].Select("[Part]=" + iPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Program.cs:230:                    if (adrLineGroupPartRelationships.Length == 0)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Program.cs:237:                        //  iNozzle = dsPipingDCF.Tables["Nozzle"].Select("PnPID=" + iPnPId).Count();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Program.cs:242:                        //  iEquipment = dsPipingDCF.Tables["Equipment"].Select("PnPID=" + iPnPId).Count();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Program.cs:247:                            iNozzle = dsPipingDCF.Tables["Nozzle"].Select("PnPID=" + iPnPId).Count();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Program.cs:249:                            iEquipment = dsPipingDCF.Tables["Equipment"].Select("PnPID=" + iPnPId).Count();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Program.cs:389:                        + "\n\nPnPID" + msgFoundMoreThan + ": \n"
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Program.cs:400:                // миникаталоги, к которым обращаются компоненты [EngineeringItems]
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Program.cs:401:                List< (string sName, string sPath, List<long> ComponentPnPIDList)>
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Program.cs:402:                    specList = new List<(string sName, string sPath, List<long> ComponentPnPIDList)>();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Program.cs:411:                foreach ((string sName, string sPath, List<long> ComponentPnPIDList) spec
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Program.cs:414:                    testSpec.AddRange(spec.ComponentPnPIDList.Select(x => x.ToString()).ToList());
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Program.cs:427:                        + "\n\nPnPID" + msgFoundMoreThan + ": \n"
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Program.cs:434:                // имена миникаталогов из [EngineeringItems]
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Program.cs:435:                //List<string> testSpecEngineeringItems = specList
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Program.cs:437:                List<string> testSpecEngineeringItems = specList.Select(x => x.sName).ToList();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Program.cs:439:                // миникаталоги, которые зарегистрированы [PnPDrawings]
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Program.cs:440:                // List<string> testSpecPnPDrawings = drawingsAndLinenumbers.GetProjectSpecNameList();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Program.cs:446:                testSpec = testSpecEngineeringItems.Except(testSpecFolder).ToList();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Program.cs:466:                // test = testSpecEngineeringItems.Except(testSpecPnPDrawings).ToList();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Program.cs:531:                    .Select(x => x.iPnPId).ToList();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Program.cs:543:                        + "\n\nPnPID" + msgFoundMoreThan + ": \n"
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Program.cs:641:                    csvfErrorNKRs.AddColumnToTable("PnPId");
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Program.cs:653:                        + "Сейчас будет выведен список 'PnPId' НКР и наименований параметров у них, "
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Program.cs:656:                        + "Используйте команду 'PXP-SI' для поиска НКР в проекте Plant 3D по номеру 'PnPId'",
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Program.cs:921:        ecPnPDataLinksNotSingleRow = 1, // в БД "Piping.dcf" в таблице "PnPDataLinks" нет ни одной, либо более одной записи с данным PnPId
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Program.cs:922:        ecPnPDataLinksCannotConvertToLongDwgHandleLow = 2, // невозможно получить значение типа long из поля "DwgHandleLow" записи таблицы "PnPDataLinks"
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Program.cs:923:        ecPnPDataLinksCannotConvertToInt32DwgId = 3, // невозможно получить значение типа int из поля "DwgId" записи таблицы "PnPDataLinks"
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Program.cs:930:                                                           //ecP3dConnectorMoreThan1Row = 10, // более 1 записи с с данным PnPId в таблице "P3dConnector"
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Program.cs:931:                                                           //ecP3dConnectorMoreThan1RowStage2 = 11, // более 1 записи с с данным PnPId в таблице "P3dConnector" далее в методе
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Program.cs:932:                                                           //ecP3dLineGroupNoFieldTracingTemperature = 12, // нет поля "TracingTemperature" в таблице "P3dLineGroup"
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:27:            // Выбрать все записи из таблицы EngineeringItems
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:28:            DataRow[] adrEngineeringItems = Program.dsPipingDCF.Tables["EngineeringItems"].Select();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:31:            foreach (DataRow drEngineeringItem in adrEngineeringItems)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:33:                // Получить PnPID компонента
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:34:                int iComponentPnPId = Convert.ToInt32(drEngineeringItem["PnPID"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:36:                // Получить PnPID чертежа для компонента
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:37:                DataRow[] adrDataLinks = Program.dsPipingDCF.Tables["PnPDataLinks"].Select("[RowId]=" + iComponentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:38:                if (adrDataLinks.Length != 1)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:42:                int iDwgId = Convert.ToInt32(adrDataLinks[0]["DwgId"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:46:                if (Glob.ldSelectedDrawings.Where(o => o.iPnPId == iDwgId).Count() == 0)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:53:                //    if (dDrawing.iPnPId == iDwgId) {
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:62:                // Получить PnPID номера линии для компонента
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:63:                DataRow[] adrLineGroupPartRelationships = Program.dsPipingDCF.Tables["P3dLineGroupPartRelationship"].Select("[Part]=" + iComponentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:64:                if (adrLineGroupPartRelationships.Length == 0)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:71:                    //  iNozzle = Program.dsPipingDCF.Tables["Nozzle"].Select("PnPID=" + iComponentPnPId).Count();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:76:                    //  iEquipment = Program.dsPipingDCF.Tables["Equipment"].Select("PnPID=" + iComponentPnPId).Count();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:81:                        iNozzle = Program.dsPipingDCF.Tables["Nozzle"].Select("PnPID=" + iComponentPnPId).Count();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:84:                        iEquipment = Program.dsPipingDCF.Tables["Equipment"].Select("PnPID=" + iComponentPnPId).Count();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:89:                        Program.liComponentsWOLineNumber.Add(iComponentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:93:                int iLineNumberId = Convert.ToInt32(adrLineGroupPartRelationships[0]["LineGroup"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:97:                if (Glob.ldSelectedLineNumbers.Where(o => o.iPnPId == iLineNumberId).Count() == 0)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:104:                //    if (lnLineNumber.iPnPId == iLineNumberId) {
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:115:                DataRow[] adrPartPorts = Program.dsPipingDCF.Tables["PartPort"].Select("[Part]=" + iComponentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:119:                    int iPortPnPId = Convert.ToInt32(drPartPort["Port"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:120:                    DataRow[] adrPorts = Program.dsPipingDCF.Tables["Port"].Select("[PnPID]=" + iPortPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:134:                switch (string.Format("{0}", adrDataLinks[0]["RowClassName"]))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:143:                        UpdateOrCreatePipingElement(iComponentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:165:                foreach (DataRow drEngineeringItem in adrEngineeringItems)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:174:                    // Получить PnPID компонента
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:175:                    int iComponentPnPId = Convert.ToInt32(drEngineeringItem["PnPID"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:177:                    // Узнать PnPID чертежа для компонента
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:178:                    DataRow[] adrDataLinks = Program.dsPipingDCF.Tables["PnPDataLinks"].Select("[RowId]=" + iComponentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:179:                    if (adrDataLinks.Length != 1)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:183:                    int iDwgId = Convert.ToInt32(adrDataLinks[0]["DwgId"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:187:                    if (Glob.ldSelectedDrawings.Where(o => o.iPnPId == iDwgId).Count() == 0)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:193:                    //    if (dDrawing.iPnPId == iDwgId) {
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:202:                    // Получить PnPID номера линии для компонента
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:203:                    DataRow[] adrLineGroupPartRelationships = Program.dsPipingDCF.Tables["P3dLineGroupPartRelationship"].Select("[Part]=" + iComponentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:205:                    if (adrLineGroupPartRelationships.Length == 0)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:212:                        //  iNozzle = Program.dsPipingDCF.Tables["Nozzle"].Select("PnPID=" + iComponentPnPId).Count();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:217:                        //  iEquipment = Program.dsPipingDCF.Tables["Equipment"].Select("PnPID=" + iComponentPnPId).Count();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:222:                            iNozzle = Program.dsPipingDCF.Tables["Nozzle"].Select("PnPID=" + iComponentPnPId).Count();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:224:                            iEquipment = Program.dsPipingDCF.Tables["Equipment"].Select("PnPID=" + iComponentPnPId).Count();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:229:                            Program.liComponentsWOLineNumber.Add(iComponentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:233:                    int iLineNumberId = Convert.ToInt32(adrLineGroupPartRelationships[0]["LineGroup"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:237:                    if (Glob.ldSelectedLineNumbers.Where(o => o.iPnPId == iLineNumberId).Count() == 0)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:243:                    //    if (lnCurrentLineNumber.iPnPId == iLineNumberId) {
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:253:                    DataRow[] adrLineGroup = Program.dsPipingDCF.Tables["P3dLineGroup"].Select("[PnPID]=" + iLineNumberId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:254:                    string sTracingNumber = string.Format("{0}", adrLineGroup[0]["TracingNumber"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:267:                    string sTracingOuterDiameter = string.Format("{0}", adrLineGroup[0]["TracingDiameter"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:324:                    DataRow[] adrTracingPipes = dsTracingSpec.Tables["EngineeringItems"].Select("[MatchingPipeOd]=" + dTracingOuterDiameter);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:403:                    UpdateOrCreateTracingPipingElement(iComponentPnPId, mMaterial, ptfFormat, iNominalDiameter, dWallThickness, dOuterDiameter, dNominalPressure, iTracingCount, dWeight);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:415:        public static double GetElbowLength(int iPnPId)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:418:            DataRow drElbow = Program.dsPipingDCF.Tables["Elbow"].Select("[PnPID]=" + iPnPId)[0];
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:425:        // компонента с iComponentPnPId (добавить трубу теплоспутника)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:426:        void UpdateOrCreateTracingPipingElement(int iComponentPnPId, Material mMaterial, PipingTitleFormat ptfFormat, int iNominalDiameter, double dWallThickness, double dOuterDiameter, double dNominalPressure, int iTracingCount, double dWeight)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:428:            // Получить запись таблицы "EngineeringItems" для дальнейшей работы
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:429:            DataRow[] adrComponent = Program.dsPipingDCF.Tables["EngineeringItems"].Select("[PnPID]=" + iComponentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:437:            if (!GetDrawingFileNameAndComponentHandle(iComponentPnPId, ref sDrawingFileName, ref lHandle))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:443:            DataRow[] adrDataLinks = Program.dsPipingDCF.Tables["PnPDataLinks"].Select("[RowId]=" + iComponentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:444:            string sComponentType = string.Format("{0}", adrDataLinks[0]["RowClassName"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:537:                DataRow drPipe = Program.dsPipingDCF.Tables["Pipe"].Select("[PnPId]=" + iComponentPnPId).First();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:735:                    DataRow[] drPipeBend = Program.dsPipingDCF.Tables["PipeBend"].Select("[PnPID]=" + iComponentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:743:                    dLength = GetElbowLength(iComponentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:802:        // компонента с iComponentPnPId
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:803:        void UpdateOrCreatePipingElement(int iComponentPnPId)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:805:            // Получить запись таблицы "EngineeringItems" для дальнейшей работы
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:806:            DataRow[] adrComponent = Program.dsPipingDCF.Tables["EngineeringItems"].Select("[PnPID]=" + iComponentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:864:            // Получить PnPID номера линии для компонента
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:865:            DataRow[] adrLineGroupPartRelationships = Program.dsPipingDCF.Tables["P3dLineGroupPartRelationship"].Select("[Part]=" + iComponentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:866:            if (adrLineGroupPartRelationships.Length == 0)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:873:                //  iNozzle = Program.dsPipingDCF.Tables["Nozzle"].Select("PnPID=" + iComponentPnPId).Count();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:878:                //  iEquipment = Program.dsPipingDCF.Tables["Equipment"].Select("PnPID=" + iComponentPnPId).Count();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:883:                    iNozzle = Program.dsPipingDCF.Tables["Nozzle"].Select("PnPID=" + iComponentPnPId).Count();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:885:                    iEquipment = Program.dsPipingDCF.Tables["Equipment"].Select("PnPID=" + iComponentPnPId).Count();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:890:                    Program.liComponentsWOLineNumber.Add(iComponentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:894:            int iLineNumberId = Convert.ToInt32(adrLineGroupPartRelationships[0]["LineGroup"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:897:            LineNumber lnLineNumber = Glob.ldSelectedLineNumbers.Where(o => o.iPnPId == iLineNumberId).First();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:904:            //    if (lnCurrentLineNumber.iPnPId == iLineNumberId) {
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:943:                    + "\nКомпоненту с PnPId в проекте [" + iComponentPnPId + "], "
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:969:                Glob.TracedMessageBoxShow(iComponentPnPId.ToString());
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:1015:            if (!GetDrawingFileNameAndComponentHandle(iComponentPnPId, ref sDrawingFileName, ref lHandle))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:1021:            DataRow[] adrDataLinks = Program.dsPipingDCF.Tables["PnPDataLinks"].Select("[RowId]=" + iComponentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:1022:            string sComponentType = string.Format("{0}", adrDataLinks[0]["RowClassName"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:1129:                    DataRow[] aPipes = Program.dsPipingDCF.Tables["Pipe"].Select("PnPID=" + iComponentPnPId);//2018
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:1154:                        vpePipingElement.First().Add(mMaterial, ldPipeLengths[i], dWeight, iComponentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:1160:                        pePipingElement.Add(mMaterial, ldPipeLengths[i], dWeight, iComponentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:1172:                    //        pePipingElement.Add(mMaterial, ldPipeLengths[i], dWeight, iComponentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:1184:                    //            pePipingElement.Add(mMaterial, ldPipeLengths[i], dWeight, iComponentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:1226:                        + " PnPId[" + iComponentPnPId + "]"
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:1254:                    vpePipingElement.First().Add(mMaterial, dLength, dWeight, iComponentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:1260:                    pePipingElement.Add(mMaterial, dLength, dWeight, iComponentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:1273:                //        pePipingElement.Add(mMaterial, dLength, dWeight, iComponentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:1285:                //            pePipingElement.Add(mMaterial, dLength, dWeight, iComponentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:1319:                        DataRow[] aPipeBends = Program.dsPipingDCF.Tables["PipeBend"].Select("PnPID=" + iComponentPnPId);//2018
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:1331:                        + " PnPId[" + iComponentPnPId + "]"
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:1344:                    DataRow[] drPipeBend = Program.dsPipingDCF.Tables["PipeBend"].Select("[PnPID]=" + iComponentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:1355:                    dLength = GetElbowLength(iComponentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:1381:                    vpePipingElement.First().Add(mMaterial, dLength, dWeight, iComponentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:1387:                    pePipingElement.Add(mMaterial, dLength, dWeight, iComponentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:1399:                //        pePipingElement.Add(mMaterial, dLength, dWeight, iComponentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:1411:                //            pePipingElement.Add(mMaterial, dLength, dWeight, iComponentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:1419:        // Получить запись "PnPDataLinks" номера чертежа по БД 'Piping.dcf' с компонентом
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:1422:        public static bool GetDrawingFileNameAndComponentHandle(int iPnPId, ref string sDrawingFileName, ref long lHandle, bool bSkipError = false)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:1426:                // Получить запись "PnPDataLinks"
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:1427:                DataRow[] adrDataLinks = Program.dsPipingDCF.Tables["PnPDataLinks"].Select("[RowId]=" + iPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:1430:                if (adrDataLinks.Length == 0)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:1432:                    Program.IsErrorCodeNotOK(ErrorCode.ecPnPDataLinksNotSingleRow);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:1440:                    lHandle = Convert.ToInt64(adrDataLinks[0]["DwgHandleLow"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:1444:                    Program.IsErrorCodeNotOK(ErrorCode.ecPnPDataLinksCannotConvertToLongDwgHandleLow);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:1448:                // Получить PnPId чертежа с этим компонентом или выйти,
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:1453:                    iDwgId = Convert.ToInt32(adrDataLinks[0]["DwgId"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:1457:                    Program.IsErrorCodeNotOK(ErrorCode.ecPnPDataLinksCannotConvertToInt32DwgId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:1461:                // Получить наименование файла чертежа по его PnPId из Program.ldAllDrawings // support 492
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:1462:                var vDrawing = Glob.ldAllDrawings.Where(o => o.iPnPId == iDwgId); // support 492
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:1466:                    if (Glob.ldSelectedDrawings.Where(o => o.iPnPId == iDwgId).Count() == 0)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:1481:                  //// Получить наименование файла чертежа по его PnPId из Program.ldSelectedDrawings  // support 492
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:1482:                  //var vDrawing = Program.ldSelectedDrawings.Where(o => o.iPnPId == iDwgId);  // support 492
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:1496:                //    if (dDrawing.iPnPId == iDwgId) {
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:1545:        List<int> liPnPIds = new List<int>(); // список PnPId компонентов, которые образуют PipingElement
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:1630:        public void Add(Material mMaterial, double dLength, double dWeight, int iPnPId = -1, double tracingLength = 0.0, int tracingCount = 0)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:1634:            if (iPnPId != -1)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:1636:                liPnPIds.Add(iPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:1653:        // Вернуть список PnPId компонентов, которые образуют PipingElement
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:1654:        public List<int> PnPIds
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\PipingElements.cs:1658:                return liPnPIds;
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\SetMainTitle.cs:126:                if (!Program.dsProcessPowerDCF.Tables.Contains("PnPProject"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\SetMainTitle.cs:128:                    Glob.TracedMessageBoxShow("В базе данных 'ProcessPower.dcf' не найдена таблица 'PnPProject' "
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\SetMainTitle.cs:138:                    // Прочитать таблицу 'PnPProject' из базы данных 'ProcessPower.dcf'
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\SetMainTitle.cs:139:                    DataRow[] adrRows = Program.dsProcessPowerDCF.Tables["PnPProject"].Select();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\SetMainTitle.cs:165:                        Glob.TracedMessageBoxShow("В базе данных 'ProcessPower.dcf' в таблице 'PnPProject' более одной записи! "
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Settings.xml:393:    query: запрос к таблице EngineeringItems-->
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\SelectDrawingsAndLinenumbers.cs:39:                foreach (DataRow drRow in Program.dsPipingDCF.Tables["P3dLineGroup"].Rows)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\SelectDrawingsAndLinenumbers.cs:47:                foreach (DataRow drRow in Program.dsPipingDCF.Tables["PnPDrawings"].Rows)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\SelectDrawingsAndLinenumbers.cs:49:                    if (string.Format("{0}", drRow["PnPType"]) != "FOLDER")
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\SelectDrawingsAndLinenumbers.cs:330:        public int iPnPId; // PnPId чертежа по БД 'Piping.dcf'
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\SelectDrawingsAndLinenumbers.cs:339:            iPnPId = Convert.ToInt32(drSourceRow["PnPID"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\SelectDrawingsAndLinenumbers.cs:340:            sPath = Program.sProjectFolder + "\\" + drSourceRow["PnPRelativePath"];
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\SelectDrawingsAndLinenumbers.cs:343:            DataRow[] adrRows = Program.dsPipingDCF.Tables["P3dDrawingLineGroupRelationship"].Select("[Drawing]=" + iPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\SelectDrawingsAndLinenumbers.cs:349:                    if (lnLineNumber.iPnPId == Convert.ToInt32(drRow["LineGroup"]))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\SelectDrawingsAndLinenumbers.cs:351:                        DataRow[] adrRows2 = Program.dsPipingDCF.Tables["P3dLineGroupPartRelationship"].Select("[LineGroup]=" + lnLineNumber.iPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\SelectDrawingsAndLinenumbers.cs:370:        public int iPnPId; // PnPId номера линии по БД 'Piping.dcf'
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\SelectDrawingsAndLinenumbers.cs:380:            iPnPId = Convert.ToInt32(drSourceRow["PnPID"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\SelectDrawingsAndLinenumbers.cs:384:                sName = "(PnPId:" + iPnPId + ")";
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:26:            // Выбрать все записи из таблицы PnPDataLinks с арматурой и инструментами
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:27:            DataRow[] adrDataLinks = Program.dsPipingDCF.Tables["PnPDataLinks"].Select("[RowClassName]='Valve' OR [RowClassName]='InlineInstrument'");
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:29:            // Создать списки PnPId элементов арматуры и инструментов,
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:30:            // если PnPId повторяются от группы к группе,
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:32:            List<int> liAllPnPIdValvesOrInstruments = new List<int>();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:33:            List<int> liAddedPnPIdValvesOrInstruments = new List<int>();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:35:            // Заполнить список PnPId всех элементов арматуры и инструментов
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:36:            foreach (DataRow drValveOrInstrument in adrDataLinks)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:38:                liAllPnPIdValvesOrInstruments.Add(Convert.ToInt32(drValveOrInstrument["RowId"]));
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:63:                            // Получить PnPId компонента
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:64:                            int iPnPId = Convert.ToInt32(drValve["PnPID"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:68:                            if (liAllPnPIdValvesOrInstruments.IndexOf(iPnPId) == -1)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:76:                            if (!CheckExistingAndDrawingsAndLineNumbers(iPnPId))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:83:                            if (liAddedPnPIdValvesOrInstruments.IndexOf(iPnPId) == -1)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:85:                                liAddedPnPIdValvesOrInstruments.Add(iPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:93:                            double dNominalPressure = GetNominalPressure(iPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:96:                            int iNominalDiameter = GetNominalDiameter(iPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:98:                            // Получить запись таблицы EngineeringItems
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:99:                            DataRow drEngineeringItem = Program.dsPipingDCF.Tables["EngineeringItems"].Select("[PnPID]=" + iPnPId)[0];
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:108:                                DataRow drPipeRunComponent = Program.dsPipingDCF.Tables["PipeRunComponent"].Select("[PnPID]=" + iPnPId)[0];
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:113:                            AddOrCreateValveGroup(vfValveFilter, dNominalPressure, iNominalDiameter, sDescription, (vfValveFilter.OutputTag) ? sTag : "", iPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:116:                    // Eсли задан запрос по таблице EngineeringItems...
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:117:                    if (vfValveFilter.EngineeringItemsQuery != "")
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:120:                        DataRow[] adrValves = Program.dsPipingDCF.Tables["EngineeringItems"].Select(vfValveFilter.EngineeringItemsQuery);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:125:                            // Получить PnPId компонента
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:126:                            int iPnPId = Convert.ToInt32(drValve["PnPID"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:130:                            if (liAllPnPIdValvesOrInstruments.IndexOf(iPnPId) == -1)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:138:                            if (!CheckExistingAndDrawingsAndLineNumbers(iPnPId))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:145:                            if (liAddedPnPIdValvesOrInstruments.IndexOf(iPnPId) == -1)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:147:                                liAddedPnPIdValvesOrInstruments.Add(iPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:155:                            double dNominalPressure = GetNominalPressure(iPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:158:                            int iNominalDiameter = GetNominalDiameter(iPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:175:                                DataRow drPipeRunComponent = Program.dsPipingDCF.Tables["PipeRunComponent"].Select("[PnPID]=" + iPnPId)[0];
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:180:                            AddOrCreateValveGroup(vfValveFilter, dNominalPressure, iNominalDiameter, sDescription, (vfValveFilter.OutputTag) ? sTag : "", iPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:186:                        // Обработать каждый элемент liAllPnPIdValvesOrInstruments
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:187:                        foreach (int iMissedPnPId in liAllPnPIdValvesOrInstruments)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:190:                            if (liAddedPnPIdValvesOrInstruments.IndexOf(iMissedPnPId) == -1)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:195:                                if (!CheckExistingAndDrawingsAndLineNumbers(iMissedPnPId))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:205:                                  DataRow drValve = Program.dsPipingDCF.Tables["Valve"].Select("[PnPID]=" + iMissedPnPId)[0];
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:208:                                  double dNominalPressure = GetNominalPressure(iMissedPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:211:                                  int iNominalDiameter = GetNominalDiameter(iMissedPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:214:                                  string sDescription = string.Format("{0}", Program.dsPipingDCF.Tables["EngineeringItems"].Select("[PnPID]=" + iMissedPnPId)[0]["ComponentDescription"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:217:                                    sDescription = string.Format("{0}", Program.dsPipingDCF.Tables["EngineeringItems"].Select("[PnPID]=" + iMissedPnPId)[0]["PartSizeLongDesc"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:228:                                    DataRow drPipeRunComponent = Program.dsPipingDCF.Tables["PipeRunComponent"].Select("[PnPID]=" + iMissedPnPId)[0];
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:233:                                      sTag = "PnPId: " + iMissedPnPId;
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:238:                                  AddOrCreateValveGroup(vfValveFilter, dNominalPressure, iNominalDiameter, sDescription, sTag, iMissedPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:245:                                    DataRow drInlineInstrument = Program.dsPipingDCF.Tables["InlineInstrument"].Select("[PnPID]=" + iMissedPnPId)[0];
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:248:                                    double dNominalPressure = GetNominalPressure(iMissedPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:251:                                    int iNominalDiameter = GetNominalDiameter(iMissedPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:254:                                    string sDescription = string.Format("{0}", Program.dsPipingDCF.Tables["EngineeringItems"].Select("[PnPID]=" + iMissedPnPId)[0]["ComponentDescription"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:257:                                      sDescription = string.Format("{0}", Program.dsPipingDCF.Tables["EngineeringItems"].Select("[PnPID]=" + iMissedPnPId)[0]["PartSizeLongDesc"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:268:                                      DataRow drPipeRunComponent = Program.dsPipingDCF.Tables["PipeRunComponent"].Select("[PnPID]=" + iMissedPnPId)[0];
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:273:                                        sTag = "PnPId: " + +iMissedPnPId;
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:278:                                    AddOrCreateValveGroup(vfValveFilter, dNominalPressure, iNominalDiameter, sDescription, sTag, iMissedPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:294:                                    dataRowsComonents = Program.dsPipingDCF.Tables["Valve"].Select("[PnPID]=" + iMissedPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:302:                                    dataRowsComonents = Program.dsPipingDCF.Tables["InlineInstrument"].Select("[PnPID]=" + iMissedPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:311:                                double dNominalPressure = GetNominalPressure(iMissedPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:314:                                int iNominalDiameter = GetNominalDiameter(iMissedPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:317:                                string sDescription = string.Format("{0}", Program.dsPipingDCF.Tables["EngineeringItems"].Select(
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:318:                                    "[PnPID]=" + iMissedPnPId)[0]["ComponentDescription"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:321:                                    sDescription = string.Format("{0}", Program.dsPipingDCF.Tables["EngineeringItems"].Select(
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:322:                                        "[PnPID]=" + iMissedPnPId)[0]["PartSizeLongDesc"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:333:                                    DataRow drPipeRunComponent = Program.dsPipingDCF.Tables["PipeRunComponent"].Select("[PnPID]=" + iMissedPnPId)[0];
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:338:                                        sTag = "PnPId: " + +iMissedPnPId;
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:343:                                AddOrCreateValveGroup(vfValveFilter, dNominalPressure, iNominalDiameter, sDescription, sTag, iMissedPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:368:        void AddOrCreateValveGroup(ValveFilter vfValveFilter, double dNominalPressure, int iNominalDiameter, string sDescription, string sTag, int iComponentPnPId)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:376:            if (!PipingElements.GetDrawingFileNameAndComponentHandle(iComponentPnPId, ref sDrawingFileName, ref lHandle))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:390:                dWeight = Convert.ToDouble(Program.dsPipingDCF.Tables["EngineeringItems"].Select("[PnPID]=" + iComponentPnPId)[0]["Weight"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:433:        double GetNominalPressure(int iPnPId)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:436:            DataRow drEngineeringItem = Program.dsPipingDCF.Tables["EngineeringItems"].Select("[PnPID]=" + iPnPId)[0];
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:498:        public static int GetNominalDiameter(int iPnPId)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:501:            DataRow drEngineeringItem = Program.dsPipingDCF.Tables["EngineeringItems"].Select("[PnPID]=" + iPnPId)[0];
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:523:        public static bool CheckExistingAndDrawingsAndLineNumbers(int iPnPId)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:528:                // Получить запись таблицы EngineeringItems по iPnPId
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:529:                DataRow[] adrEngineeringItems = Program.dsPipingDCF.Tables["EngineeringItems"].Select("[PnPID]=" + iPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:533:                if (string.Format("{0}", adrEngineeringItems[0]["Status"]) != "New")
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:538:                // Узнать PnPID чертежа для компонента
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:539:                DataRow[] adrDataLinks = Program.dsPipingDCF.Tables["PnPDataLinks"].Select("[RowId]=" + iPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:540:                int iDwgId = Convert.ToInt32(adrDataLinks[0]["DwgId"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:548:                    if (dDrawing.iPnPId == iDwgId)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:559:                // Узнать PnPID номера линии для компонента
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:560:                DataRow[] adrLineGroupPartRelationships = Program.dsPipingDCF.Tables["P3dLineGroupPartRelationship"].Select("[Part]=" + iPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:561:                if (adrLineGroupPartRelationships.Length == 0)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:563:                    Program.liComponentsWOLineNumber.Add(iPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:566:                int iLineNumberId = Convert.ToInt32(adrLineGroupPartRelationships[0]["LineGroup"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:574:                    if (lnLineNumber.iPnPId == iLineNumberId)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:778:        string sEngineeringItemsQuery; // запрос к таблице EngeneerinItems (если не задано, то поиск в этой таблице игнорируется)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:799:        // Член для чтения sEngineeringItemsQuery
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:800:        public string EngineeringItemsQuery
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:804:                return sEngineeringItemsQuery;
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:818:        public ValveFilter(string sName, string sValveBodyType, string sEngineeringItemsQuery, bool bOutputTag)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Valves.cs:822:            this.sEngineeringItemsQuery = sEngineeringItemsQuery;
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\TestLineNumbers.cs:21:                // Выбрать все записи из таблицы EngineeringItems
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\TestLineNumbers.cs:22:                DataRow[] adrEngineeringItems = Program.dsPipingDCF.Tables["EngineeringItems"].Select();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\TestLineNumbers.cs:25:                foreach (DataRow drEngineeringItem in adrEngineeringItems)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\TestLineNumbers.cs:27:                    // Извлечь PnPID компонента
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\TestLineNumbers.cs:28:                    int iComponentPnPId = Convert.ToInt32(drEngineeringItem["PnPID"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\TestLineNumbers.cs:34:                    if (!CheckExistingAndDrawingsAndLineNumbers(iComponentPnPId))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\TestLineNumbers.cs:40:                    UpdateOrCreatePiping(iComponentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\TestLineNumbers.cs:53:        // компонента с iComponentPnPId
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\TestLineNumbers.cs:54:        void UpdateOrCreatePiping(int iComponentPnPId)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\TestLineNumbers.cs:56:            // Получить запись таблицы "EngineeringItems" для дальнейшей работы
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\TestLineNumbers.cs:57:            DataRow drEngineeringItem = Program.dsPipingDCF.Tables["EngineeringItems"].Select("[PnPID]=" + iComponentPnPId)[0];
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\TestLineNumbers.cs:72:            if (!PipingElements.GetDrawingFileNameAndComponentHandle(iComponentPnPId, ref sDrawingFileName, ref lHandle))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\TestLineNumbers.cs:78:            DataRow[] adrDataLinks = Program.dsPipingDCF.Tables["PnPDataLinks"].Select("[RowId]=" + iComponentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\TestLineNumbers.cs:79:            string sComponentType = string.Format("{0}", adrDataLinks[0]["RowClassName"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\TestLineNumbers.cs:109:                //    DataRow[] aPipes = Program.dsPipingDCF.Tables["Pipe"].Select("PnPID=" + iComponentPnPId);//2018
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\TestLineNumbers.cs:123:                    aPipes = Program.dsPipingDCF.Tables["Pipe"].Select("PnPID=" + iComponentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\TestLineNumbers.cs:128:                    aPipes = Program.dsPipingDCF.Tables["PipeBend"].Select("PnPID=" + iComponentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\TestLineNumbers.cs:154:                //dLength = Convert.ToDouble(Program.dsPipingDCF.Tables["Pipe"].Select("[PnPID]=" + iComponentPnPId)[0]["Length"]) / 1000; // support
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\TestLineNumbers.cs:155:                dLength = Convert.ToDouble(Program.dsPipingDCF.Tables["Pipe"].Select("[PnPID]=" + iComponentPnPId)[0]["CutLength"]) / 1000; // support
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\TestLineNumbers.cs:164:                dLength = PipingElements.GetElbowLength(iComponentPnPId) / 1000;
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\TestLineNumbers.cs:170:                dLength = Convert.ToDouble(Program.dsPipingDCF.Tables["PipeBend"].Select("[PnPID]=" + iComponentPnPId)[0]["CutLength"]) / 1000;
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\TestLineNumbers.cs:208:        public static bool CheckExistingAndDrawingsAndLineNumbers(int iPnPId)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\TestLineNumbers.cs:213:                // Получить запись таблицы EngineeringItems по iPnPId
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\TestLineNumbers.cs:214:                DataRow[] adrEngineeringItems = Program.dsPipingDCF.Tables["EngineeringItems"].Select("[PnPID]=" + iPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\TestLineNumbers.cs:218:                if (string.Format("{0}", adrEngineeringItems[0]["Status"]) != "New")
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\TestLineNumbers.cs:223:                // Узнать PnPID чертежа для компонента
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\TestLineNumbers.cs:224:                DataRow drDataLink = Program.dsPipingDCF.Tables["PnPDataLinks"].Select("[RowId]=" + iPnPId)[0];
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\TestLineNumbers.cs:230:                if (Glob.ldSelectedDrawings.Where(o => o.iPnPId == iDwgId).Count() == 0)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\TestLineNumbers.cs:235:                // Узнать PnPID номера линии для компонента
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\TestLineNumbers.cs:236:                DataRow[] adrLineGroupPartRelationships = Program.dsPipingDCF.Tables["P3dLineGroupPartRelationship"].Select("[Part]=" + iPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\TestLineNumbers.cs:237:                if (adrLineGroupPartRelationships.Length == 0)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\TestLineNumbers.cs:239:                    Program.liComponentsWOLineNumber.Add(iPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\TestLineNumbers.cs:242:                int iLineNumberId = Convert.ToInt32(adrLineGroupPartRelationships[0]["LineGroup"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\TestLineNumbers.cs:248:                if (Glob.ldSelectedLineNumbers.Where(o => (o.iPnPId == iLineNumberId) && (o.bTested)).Count() == 0)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:21:        public static string sNKRTitle; // значение поля Title таблицы EngineeringItems, по которому определяется, что опора является НКР
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:31:            // Выбрать все записи из таблицы PnPDataLinks с опорами
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:32:            DataRow[] adrDataLinks = Program.dsPipingDCF.Tables["PnPDataLinks"].Select("[RowClassName]='Support'");
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:34:            // Создать списки PnPId элементов опор,
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:35:            // если PnPId повторяются от группы к группе,
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:37:            List<int> liAllPnPIdSupports = new List<int>();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:38:            List<int> liAddedPnPIdSupports = new List<int>();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:40:            // Заполнить список PnPId всех элементов опор
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:41:            foreach (DataRow drSupport in adrDataLinks)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:43:                liAllPnPIdSupports.Add(Convert.ToInt32(drSupport["RowId"]));
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:51:                    // Если в sfSupportFilter задан запрос к таблице EngineeringItems...
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:52:                    if (sfSupportFilter.EngineeringItemsQuery != "")
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:54:                        // ...получить все записи таблицы EngineeringItems по этому фильтру
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:55:                        DataRow[] adrSupports = Program.dsPipingDCF.Tables["EngineeringItems"].Select(sfSupportFilter.EngineeringItemsQuery);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:60:                            // Получить PnPId компонента
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:61:                            int iPnPId = Convert.ToInt32(drSupport["PnPID"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:63:                            // Объявить или иницировать переменную PnPId трубы или отвода,
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:65:                            int iParentPipeOrElbowPnPId = -1;
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:67:                            // Определить PnPId трубы или отвода,
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:69:                            List<int> liCheckedPnPIds = new List<int>();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:70:                            iParentPipeOrElbowPnPId = GetParentPnPId(iPnPId, ref liCheckedPnPIds);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:75:                            if (!ValveGroups.CheckExistingAndDrawingsAndLineNumbers(iPnPId))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:82:                            if (liAddedPnPIdSupports.IndexOf(iPnPId) == -1)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:84:                                liAddedPnPIdSupports.Add(iPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:92:                            int iNominalDiameter = ValveGroups.GetNominalDiameter(iPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:102:                            AddOrCreateSupportGroup(sfSupportFilter, iNominalDiameter, sDescription, iPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:108:                        // Обработать каждый элемент liAllPnPIdSupports
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:109:                        foreach (int iMissedPnPId in liAllPnPIdSupports)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:112:                            if (liAddedPnPIdSupports.IndexOf(iMissedPnPId) == -1)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:114:                                // Объявить или иницировать переменную PnPId трубы или отвода,
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:116:                                int iParentPipeOrElbowPnPId = -1;
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:118:                                // Определить PnPId трубы или отвода,
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:120:                                List<int> liCheckedPnPIds = new List<int>();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:121:                                iParentPipeOrElbowPnPId = GetParentPnPId(iMissedPnPId, ref liCheckedPnPIds);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:126:                                //if (iParentPipeOrElbowPnPId != -1) {
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:127:                                //    if (!ValveGroups.CheckExistingAndDrawingsAndLineNumbers(iParentPipeOrElbowPnPId)) {
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:132:                                if (!ValveGroups.CheckExistingAndDrawingsAndLineNumbers(iMissedPnPId))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:139:                                int iNominalDiameter = ValveGroups.GetNominalDiameter(iMissedPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:141:                                // Получить запись таблицы EngineeringItems
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:142:                                DataRow drSupport = Program.dsPipingDCF.Tables["EngineeringItems"].Select("[PnPID]=" + iMissedPnPId)[0];
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:155:                                    AddOrCreateSupportGroup(sfSupportFilter, iNominalDiameter, sDescription, iMissedPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:162:                                    AddOrCreareNKRGroup(iNominalDiameter, sDescription, iMissedPnPId, sGroup);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:262:        void AddOrCreareNKRGroup(int iNominalDiameter, string sDescription, int iComponentPnPId, string sGroup)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:266:            int iParentSupportPnPId = 0;
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:270:            //  iParentSupportPnPId = Convert.ToInt32(Program.dsPipingDCF.Tables["P3dPartConnection"].Select("[Part1]=" + iComponentPnPId)[0]["Part2"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:276:            //    iParentSupportPnPId = Convert.ToInt32(Program.dsPipingDCF.Tables["P3dPartConnection"].Select("[Part2]=" + iComponentPnPId)[0]["Part1"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:280:            //    iParentSupportPnPId = iComponentPnPId;
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:295:                        dataRowsConnectionsPart = dataTablePartConnection.Select("[Part1]=" + iComponentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:300:                                iParentSupportPnPId = Convert.ToInt32(dataRowsConnectionsPart[0]["Part2"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:304:                        if (iParentSupportPnPId != 0)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:309:                        dataRowsConnectionsPart = dataTablePartConnection.Select("[Part2]=" + iComponentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:314:                                iParentSupportPnPId = Convert.ToInt32(dataRowsConnectionsPart[0]["Part1"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:318:                        if (iParentSupportPnPId != 0)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:325:                iParentSupportPnPId = iComponentPnPId;
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:328:            DataRow drParentSupport = Program.dsPipingDCF.Tables["EngineeringItems"].Select("[PnPID]=" + iParentSupportPnPId)[0];
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:358:            if (!PipingElements.GetDrawingFileNameAndComponentHandle(iComponentPnPId, ref sDrawingFileName, ref lHandle))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:388:                                    nkrNKRSubGroup.AddNKR(iComponentPnPId, nkrNKR, ref lkvpsdGeometryParameters, out dWeight);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:389:                                    //AddSupportToPipingElement(iComponentPnPId, iMinZ, iMaxZ, dWeight);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:393:                            nkrNKRSubGroup.AddNKR(iComponentPnPId, new NKR(sDescription), ref lkvpsdGeometryParameters, out dWeight);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:394:                            //AddSupportToPipingElement(iComponentPnPId, iMinZ, iMaxZ, dWeight);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:399:                    nkrNKRNewSubGroup.AddNKR(iComponentPnPId, new NKR(sDescription), ref lkvpsdGeometryParameters, out dWeight);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:400:                    //AddSupportToPipingElement(iComponentPnPId, iMinZ, iMaxZ, dWeight);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:407:            nkrNKRNewSubGroup2.AddNKR(iComponentPnPId, new NKR(sDescription), ref lkvpsdGeometryParameters, out dWeight);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:408:            //AddSupportToPipingElement(iComponentPnPId, iMinZ, iMaxZ, dWeight);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:413:        // Рекурсивно обработать опору или НКР с PnPId iCurrentPnPId.
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:414:        // вернуть PnPId трубы или отвода, к которому присоединен компонент
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:415:        int GetParentPnPId(int iCurrentPnPId, ref List<int> liCheckedPnPId)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:417:            DataRow[] adrParentPnPIds1 = Program.dsPipingDCF.Tables["P3dPartConnection"].Select("[Part1]=" + iCurrentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:418:            if (adrParentPnPIds1.Length != 0)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:420:                foreach (DataRow drParentPnPId in adrParentPnPIds1)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:422:                    int iPipeOrElbow1 = Convert.ToInt32(drParentPnPId["Part2"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:423:                    if (liCheckedPnPId.IndexOf(iPipeOrElbow1) == -1)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:425:                        liCheckedPnPId.Add(iPipeOrElbow1);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:426:                        DataRow drParentClassName1 = Program.dsPipingDCF.Tables["PnPDataLinks"].Select("[RowId]=" + iPipeOrElbow1).First();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:433:                        int iRecursion1 = GetParentPnPId(iPipeOrElbow1, ref liCheckedPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:441:            DataRow[] adrParentPnPIds2 = Program.dsPipingDCF.Tables["P3dPartConnection"].Select("[Part2]=" + iCurrentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:442:            if (adrParentPnPIds2.Length != 0)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:444:                foreach (DataRow drParentPnPId in adrParentPnPIds2)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:446:                    int iPipeOrElbow2 = Convert.ToInt32(drParentPnPId["Part1"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:447:                    if (liCheckedPnPId.IndexOf(iPipeOrElbow2) == -1)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:449:                        liCheckedPnPId.Add(iPipeOrElbow2);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:450:                        DataRow drParentClassName2 = Program.dsPipingDCF.Tables["PnPDataLinks"].Select("[RowId]=" + iPipeOrElbow2).First();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:457:                        int iRecursion2 = GetParentPnPId(iPipeOrElbow2, ref liCheckedPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:469:        void AddSupportToPipingElement(int iSupportPnPId, int iMinZ, int iMaxZ, double dWeight)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:471:            // Объявить или иницировать переменную PnPId трубы или отвода,
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:473:            int iParentPipeOrElbowPnPId = -1;
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:475:            // Определить PnPId трубы или отвода,
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:477:            List<int> liCheckedPnPIds = new List<int>();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:478:            iParentPipeOrElbowPnPId = GetParentPnPId(iSupportPnPId, ref liCheckedPnPIds);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:480:            // Если iParentPipeOrElbowPnPId определить не удалось, выйти
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:481:            if (iParentPipeOrElbowPnPId == -1)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:486:            // Получить спискок PipingElement, в состав которого входит iParentPipeOrElbowPnPId
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:487:            List<PipingElement> lpeParentPipingElements = PipingElements.lpePipingElements.Where(o => o.PnPIds.IndexOf(iParentPipeOrElbowPnPId) != -1).ToList();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:502:            // Определить PipingElement, в состав которого входит iParentPipeOrElbowPnPId,
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:514:        void AddOrCreateSupportGroup(SupportFilter sfSupportFilter, int iNominalDiameter, string sDescription, int iComponentPnPId)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:522:            if (!PipingElements.GetDrawingFileNameAndComponentHandle(iComponentPnPId, ref sDrawingFileName, ref lHandle))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:538:                dWeight = Convert.ToDouble(Program.dsPipingDCF.Tables["EngineeringItems"].Select("[PnPID]=" + iComponentPnPId)[0]["Weight"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:559:            AddSupportToPipingElement(iComponentPnPId, iMinZ, iMaxZ, dWeight);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:729:        string sEngineeringItemsQuery; // запрос к таблице EngeneerinItems
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:740:        // Член для чтения sEngineeringItemsQuery
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:741:        public string EngineeringItemsQuery
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:745:                return sEngineeringItemsQuery;
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:750:        public SupportFilter(string sName, string sEngineeringItemsQuery)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:753:            this.sEngineeringItemsQuery = sEngineeringItemsQuery;
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:942:        public void AddNKR(int iComponentPnPId, NKR nkrNKR, ref List<KeyValuePair<string, double>> lkvpsdGeometryParameters, out double dWeight)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:953:                        int iPnPId = iComponentPnPId;
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:954:                        if (Program.liErrorNKRs.IndexOf(iPnPId) == -1)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:956:                            Program.liErrorNKRs.Add(iPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:961:                            Program.lsErrorNKRs[Program.liErrorNKRs.IndexOf(iPnPId)] += "," + sParameter.Replace("{", "").Replace("}", "");
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:1196:                        lWeldedSupports.Add(new WeldedSupport(Convert.ToInt32(dSupport["PnPID"])));
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:1200:                lWeldedSupports = lWeldedSupports.Where(o => Glob.ldSelectedDrawings.Select(o1 => o1.iPnPId).ToList().IndexOf(o.DrawingId) != -1).
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:1203:                    Where(o => Glob.ldSelectedLineNumbers.Select(o1 => o1.iPnPId).ToList().IndexOf(o.LineGroupId) != -1).
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:1204:                    Where(o => Welds.lwlnLineNumbers.First(o1 => o1.PnPId == o.LineGroupId).IsHeatTreated).ToList();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:1226:        public int LineGroupId { get; private set; } // PnPID номера линии компонента, к которому присоединена опора
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:1227:        public int DrawingId { get; private set; } // PnPID чертежа компонента, к которому присоединена опора
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:1233:        public WeldedSupport(int PnPId)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:1236:            DataRow dEItem = Program.dsPipingDCF.Tables["EngineeringItems"].Select("PnPId=" + PnPId).First();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:1255:            DataRow[] aConnectionsAsPart1 = Program.dsPipingDCF.Tables["P3dPartConnection"].Select("Part1=" + PnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:1256:            DataRow[] aConnectionsAsPart2 = Program.dsPipingDCF.Tables["P3dPartConnection"].Select("Part2=" + PnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:1268:                DataRow dItem = Program.dsPipingDCF.Tables["EngineeringItems"].Select("PnPId=" + iConnectedPartId).First();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:1275:                    DataRow dLineGroup1 = Program.dsPipingDCF.Tables["P3dLineGroupPartRelationship"].Select("Part=" + iConnectedPartId).First();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:1276:                    LineGroupId = Convert.ToInt32(dLineGroup1["LineGroup"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:1278:                    DataRow dDataLink1 = Program.dsPipingDCF.Tables["PnPDataLinks"].Select("RowId=" + iConnectedPartId).First();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:1287:                //                LineGroupId = -1;
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:1289:                DataRow dLineGroup1 = Program.dsPipingDCF.Tables["P3dLineGroupPartRelationship"].Select("Part=" + PnPId).First();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:1290:                LineGroupId = Convert.ToInt32(dLineGroup1["LineGroup"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:1292:                DataRow dDataLink1 = Program.dsPipingDCF.Tables["PnPDataLinks"].Select("RowId=" + PnPId).First();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Supports.cs:1294:                NominalDiameter = ValveGroups.GetNominalDiameter(PnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:25:        static int iCurrentWeldPnPId; // PnPId текущего анализируемого шва
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:26:        static int iCurrentConnectorPnPId; // PnPId текущего анализируемого соединения
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:44:                    iCurrentWeldPnPId = Convert.ToInt32(string.Format("{0}", drWeld["PnPID"]));
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:46:                    DataRow[] adrEngineeringItems = Program.dsPipingDCF.Tables["EngineeringItems"].Select("[PnPID]=" + iCurrentWeldPnPId + " AND [Status]='New'");
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:47:                    if (adrEngineeringItems.Length == 0)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:51:                    DataRow[] adrPnPDataLinks = Program.dsPipingDCF.Tables["PnPDataLinks"].Select("[RowId]=" + iCurrentWeldPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:52:                    int iDwgId = Convert.ToInt32(string.Format("{0}", adrPnPDataLinks[0]["DwgId"]));
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:53:                    long lHandle = Convert.ToInt32(string.Format("{0}", adrPnPDataLinks[0]["DwgHandleLow"]));
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:54:                    adrPnPDataLinks = Program.dsPipingDCF.Tables["PnPDataLinks"].Select("[DwgId]=" + iDwgId + " AND [DwgHandleLow]=" + lHandle + " AND [DwgSubIndex]=0");
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:55:                    iCurrentConnectorPnPId = Convert.ToInt32(string.Format("{0}", adrPnPDataLinks[0]["RowId"]));
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:58:                    DataRow[] adrP3dPartConnections = Program.dsPipingDCF.Tables["P3dPartConnection"].Select("[Part1]=" + iCurrentConnectorPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:64:                    adrP3dPartConnections = Program.dsPipingDCF.Tables["P3dPartConnection"].Select("[Part2]=" + iCurrentConnectorPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:80:                        if ((Program.dsPipingDCF.Tables.Contains("Nozzle") && Program.dsPipingDCF.Tables["Nozzle"].Select("PnPId=" + liConnectedParts[0]).Length > 0) || (Program.dsPipingDCF.Tables.Contains("Equipment") && Program.dsPipingDCF.Tables["Equipment"].Select("PnPId=" + liConnectedParts[0]).Length > 0))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:113:                    iCurrentWeldPnPId = Convert.ToInt32(string.Format("{0}", drWeld["PnPID"]));
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:114:                    DataRow[] adrEngineeringItems = Program.dsPipingDCF.Tables["EngineeringItems"].Select("[PnPID]=" + iCurrentWeldPnPId + " AND [Status]='New'");
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:115:                    if (adrEngineeringItems.Length == 0)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:119:                    DataRow[] adrPnPDataLinks = Program.dsPipingDCF.Tables["PnPDataLinks"].Select("[RowId]=" + iCurrentWeldPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:120:                    int iDwgId = Convert.ToInt32(string.Format("{0}", adrPnPDataLinks[0]["DwgId"]));
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:121:                    long lHandle = Convert.ToInt32(string.Format("{0}", adrPnPDataLinks[0]["DwgHandleLow"]));
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:122:                    adrPnPDataLinks = Program.dsPipingDCF.Tables["PnPDataLinks"].Select("[DwgId]=" + iDwgId + " AND [DwgHandleLow]=" + lHandle + " AND [DwgSubIndex]=0");
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:123:                    iCurrentConnectorPnPId = Convert.ToInt32(string.Format("{0}", adrPnPDataLinks[0]["RowId"]));
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:126:                    DataRow[] adrP3dPartConnections = Program.dsPipingDCF.Tables["P3dPartConnection"].Select("[Part1]=" + iCurrentConnectorPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:132:                    adrP3dPartConnections = Program.dsPipingDCF.Tables["P3dPartConnection"].Select("[Part2]=" + iCurrentConnectorPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:148:                        if ((Program.dsPipingDCF.Tables.Contains("Nozzle") && Program.dsPipingDCF.Tables["Nozzle"].Select("PnPId=" + liConnectedParts[0]).Length > 0) || (Program.dsPipingDCF.Tables.Contains("Equipment") && Program.dsPipingDCF.Tables["Equipment"].Select("PnPId=" + liConnectedParts[0]).Length > 0))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:179:                    iCurrentWeldPnPId = Convert.ToInt32(string.Format("{0}", drWeld["PnPID"]));
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:180:                    DataRow[] adrEngineeringItems = Program.dsPipingDCF.Tables["EngineeringItems"].Select("[PnPID]=" + iCurrentWeldPnPId + " AND [Status]='New'");
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:181:                    if (adrEngineeringItems.Length == 0)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:185:                    DataRow[] adrPnPDataLinks = Program.dsPipingDCF.Tables["PnPDataLinks"].Select("[RowId]=" + iCurrentWeldPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:186:                    int iDwgId = Convert.ToInt32(string.Format("{0}", adrPnPDataLinks[0]["DwgId"]));
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:187:                    long lHandle = Convert.ToInt32(string.Format("{0}", adrPnPDataLinks[0]["DwgHandleLow"]));
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:188:                    adrPnPDataLinks = Program.dsPipingDCF.Tables["PnPDataLinks"].Select("[DwgId]=" + iDwgId + " AND [DwgHandleLow]=" + lHandle + " AND [DwgSubIndex]=0");
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:189:                    iCurrentConnectorPnPId = Convert.ToInt32(string.Format("{0}", adrPnPDataLinks[0]["RowId"]));
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:192:                    DataRow[] adrP3dPartConnections = Program.dsPipingDCF.Tables["P3dPartConnection"].Select("[Part1]=" + iCurrentConnectorPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:198:                    adrP3dPartConnections = Program.dsPipingDCF.Tables["P3dPartConnection"].Select("[Part2]=" + iCurrentConnectorPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:214:                        if ((Program.dsPipingDCF.Tables.Contains("Nozzle") && Program.dsPipingDCF.Tables["Nozzle"].Select("PnPId=" + liConnectedParts[0]).Length > 0) || (Program.dsPipingDCF.Tables.Contains("Equipment") && Program.dsPipingDCF.Tables["Equipment"].Select("PnPId=" + liConnectedParts[0]).Length > 0))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:244:                    int iPipePnPId = Convert.ToInt32(drPipe["PnPID"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:247:                        DataRow[] adrEngineeringItems = Program.dsPipingDCF.Tables["EngineeringItems"].Select("[PnPID]=" + iPipePnPId + " AND [Status]='New'");
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:248:                        if (adrEngineeringItems.Length == 0)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:252:                        string sSpec = Connection.GetSpecForComponent(iPipePnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:254:                        double dNominalDiameter = Connection.GetNominalDiameter(iPipePnPId, out bImperial);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:255:                        WeldLineNumber wlnLineNumber = Connection.GetLineNumberForComponent(iPipePnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:264:                        if (!PipingElements.GetDrawingFileNameAndComponentHandle(iPipePnPId, ref sDrawingFileName, ref lHandle, true))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:277:                            lwWelds.Add(new Weld(wpWeldPipe, wlnLineNumber, new List<string> { string.Format("{0}", adrEngineeringItems[0]["Material"]), string.Format("{0}", adrEngineeringItems[0]["Material"]) }, z));
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:291:                        iCurrentWeldPnPId = Convert.ToInt32(string.Format("{0}", drWeld["PnPID"]));
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:293:                        if (!Connection.OnLineNumbersAndDrawings(iCurrentWeldPnPId))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:298:                        DataRow[] adrEngineeringItems = Program.dsPipingDCF.Tables["EngineeringItems"].Select("[PnPID]=" + iCurrentWeldPnPId + " AND [Status]='New'");
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:299:                        if (adrEngineeringItems.Length == 0)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:303:                        DataRow[] adrPnPDataLinks = Program.dsPipingDCF.Tables["PnPDataLinks"].Select("[RowId]=" + iCurrentWeldPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:304:                        int iDwgId = Convert.ToInt32(string.Format("{0}", adrPnPDataLinks[0]["DwgId"]));
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:305:                        long lHandle = Convert.ToInt32(string.Format("{0}", adrPnPDataLinks[0]["DwgHandleLow"]));
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:306:                        adrPnPDataLinks = Program.dsPipingDCF.Tables["PnPDataLinks"].Select("[DwgId]=" + iDwgId + " AND [DwgHandleLow]=" + lHandle + " AND [DwgSubIndex]=0");
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:307:                        iCurrentConnectorPnPId = Convert.ToInt32(string.Format("{0}", adrPnPDataLinks[0]["RowId"]));
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:308:                        DataRow[] adrP3dPartConnections = Program.dsPipingDCF.Tables["P3dPartConnection"].Select("[Part1]=" + iCurrentConnectorPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:315:                        adrP3dPartConnections = Program.dsPipingDCF.Tables["P3dPartConnection"].Select("[Part2]=" + iCurrentConnectorPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:324:                        DataRow[] adrOlets1 = Program.dsPipingDCF.Tables["Olet"].Select("[PnPID]=" + iConnectedPart1);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:325:                        DataRow[] adrOlets2 = Program.dsPipingDCF.Tables["Olet"].Select("[PnPID]=" + iConnectedPart2);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:354:                            if (iConnectedPart1 != iCurrentConnectorPnPId)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:366:                                if (iConnectedPart2 != iCurrentConnectorPnPId)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:428:                        iCurrentWeldPnPId = Convert.ToInt32(string.Format("{0}", drWeld["PnPID"]));
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:430:                        if (!Connection.OnLineNumbersAndDrawings(iCurrentWeldPnPId))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:435:                        DataRow[] adrEngineeringItems = Program.dsPipingDCF.Tables["EngineeringItems"].Select("[PnPID]=" + iCurrentWeldPnPId + " AND [Status]='New'");
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:436:                        if (adrEngineeringItems.Length == 0)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:440:                        DataRow[] adrPnPDataLinks = Program.dsPipingDCF.Tables["PnPDataLinks"].Select("[RowId]=" + iCurrentWeldPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:441:                        int iDwgId = Convert.ToInt32(string.Format("{0}", adrPnPDataLinks[0]["DwgId"]));
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:442:                        long lHandle = Convert.ToInt32(string.Format("{0}", adrPnPDataLinks[0]["DwgHandleLow"]));
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:443:                        adrPnPDataLinks = Program.dsPipingDCF.Tables["PnPDataLinks"].Select("[DwgId]=" + iDwgId + " AND [DwgHandleLow]=" + lHandle + " AND [DwgSubIndex]=0");
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:444:                        iCurrentConnectorPnPId = Convert.ToInt32(string.Format("{0}", adrPnPDataLinks[0]["RowId"]));
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:445:                        DataRow[] adrP3dPartConnections = Program.dsPipingDCF.Tables["P3dPartConnection"].Select("[Part1]=" + iCurrentConnectorPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:452:                        adrP3dPartConnections = Program.dsPipingDCF.Tables["P3dPartConnection"].Select("[Part2]=" + iCurrentConnectorPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:461:                        DataRow[] adrCouplings1 = Program.dsPipingDCF.Tables["Coupling"].Select("[PnPID]=" + iConnectedPart1);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:462:                        DataRow[] adrCouplings2 = Program.dsPipingDCF.Tables["Coupling"].Select("[PnPID]=" + iConnectedPart2);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:491:                            if (iConnectedPart1 != iCurrentConnectorPnPId)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:503:                                if (iConnectedPart2 != iCurrentConnectorPnPId)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:917:            List<int> liConnectedParts; // список PnPId 2-х соединенных элементов
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:944:                DataRow[] adrEngineeringItems;
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:948:                    adrEngineeringItems = Program.dsPipingDCF.Tables["EngineeringItems"].Select("[PnPID]=" + liConnectedParts[i]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:950:                    if (adrEngineeringItems.Length > 0)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:954:                        // if (string.Format("{0}", adrEngineeringItems[0]["ComponentDesignation"]) == "Custom")
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:959:                        //if (string.Format("{0}", adrEngineeringItems[0]["Spec"]) == "")
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:964:                        if ((string.Format("{0}", adrEngineeringItems[0]["Spec"]) == "")
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:965:                                && (string.Format("{0}", adrEngineeringItems[0]["ComponentDesignation"]) != "Custom"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:972:                    adrEngineeringItems = Program.dsPipingDCF.Tables["EngineeringItems"].Select("[PnPID]=" + liConnectedParts[i] + " AND [Status]='New'");
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:973:                    lbExistingParts.Add(adrEngineeringItems.Length == 0);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:974:                    adrEngineeringItems = Program.dsPipingDCF.Tables["EngineeringItems"].Select("[PnPID]=" + liConnectedParts[i]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:975:                    if (adrEngineeringItems.Length > 0)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:977:                        lsNominalDiameters.Add(Convert.ToDouble(adrEngineeringItems[0]["NominalDiameter"]));
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:988:                    //DataRow[] adrEngineeringItems = Program.dsPipingDCF.Tables["EngineeringItems"].Select("[PnPID]=" + liConnectedParts[i]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:989:                    //if (adrEngineeringItems.Length == 1) {
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:990:                    //    lsMaterials.Add(string.Format("{0}", adrEngineeringItems[0]["Material"]));
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1154:            string GetPipeSpecMaterial(int iPnPId)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1156:                DataRow drEngineeringItem = Program.dsPipingDCF.Tables["EngineeringItems"].Select("[PnPID]=" + iPnPId)[0];
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1159:                DataRow drDataLinks = Program.dsPipingDCF.Tables["PnPDataLinks"].Select("[RowId]=" + iPnPId)[0];
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1160:                //switch (string.Format("{0}", drDataLinks["RowClassName"])) {
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1171:                double dNominalDiameter = GetNominalDiameter(iPnPId, out bImperial, true);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1190:            public static bool OnLineNumbersAndDrawings(int iPnPId)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1194:                    int iLineNumberPnPId = Convert.ToInt32(Program.dsPipingDCF.Tables["P3dLineGroupPartRelationship"].Select("[Part]=" + iPnPId)[0]["LineGroup"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1195:                    bool bOnLineNumbers = (lwlnLineNumbers.Where(o => o.PnPId == iLineNumberPnPId).Count() > 0);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1196:                    int iDrawingPnPId = Convert.ToInt32(Program.dsPipingDCF.Tables["PnPDataLinks"].Select("[RowId]=" + iPnPId)[0]["DwgId"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1197:                    bool bOnDrawings = (Glob.ldSelectedDrawings.Where(o => o.iPnPId == iDrawingPnPId).Count() > 0);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1206:            // Получить WeldLineNumber по PnPId компонента
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1209:            public static WeldLineNumber GetLineNumberForComponent(int iComponentPnPId)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1211:                DataRow[] adrP3dLineGroupPartRelationship = Program.dsPipingDCF.Tables["P3dLineGroupPartRelationship"].Select("[Part]=" + iComponentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1212:                if (adrP3dLineGroupPartRelationship.Length == 0)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1219:                    //    iNozzle = Program.dsPipingDCF.Tables["Nozzle"].Select("PnPID=" + iComponentPnPId).Count();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1224:                    //    iEquipment = Program.dsPipingDCF.Tables["Equipment"].Select("PnPID=" + iComponentPnPId).Count();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1229:                        iNozzle = Program.dsPipingDCF.Tables["Nozzle"].Select("PnPID=" + iComponentPnPId).Count();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1231:                        iEquipment = Program.dsPipingDCF.Tables["Equipment"].Select("PnPID=" + iComponentPnPId).Count();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1236:                        Program.liComponentsWOLineNumber.Add(iComponentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1242:                int iLineNumberPnPId = 0;
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1245:                    iLineNumberPnPId = Convert.ToInt32(adrP3dLineGroupPartRelationship[0]["LineGroup"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1250:                    if (wlnLineNumber.PnPId == iLineNumberPnPId)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1262:            public static double GetNominalDiameter(int iComponentPnPId, out bool bImperial, bool bAllwaysGetMetric = false)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1265:                DataRow[] adrEngineeringItems = Program.dsPipingDCF.Tables["EngineeringItems"].Select("[PnPID]=" + iComponentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1268:                    bImperial = (adrEngineeringItems[0]["NominalUnit"].ToString().ToUpper() == "IN");
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1269:                    double dNominalDiameter = Convert.ToDouble(adrEngineeringItems[0]["NominalDiameter"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1281:            // Получить наименование миникаталога по PnPId компонента
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1283:            public static string GetSpecForComponent(int iComponentPnPId)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1285:                DataRow[] adrEngineeringItems = Program.dsPipingDCF.Tables["EngineeringItems"].Select("[PnPID]=" + iComponentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1288:                    string sSpec = adrEngineeringItems[0]["Spec"].ToString();
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1316:            // Вернуть WeldPipe по PnPId компонента
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1318:            WeldPipe GetWeldPipeForComponent(int iComponentPnPId)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1320:                string sSpec = GetSpecForComponent(iComponentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1326:                double dNominalDiameter = GetNominalDiameter(iComponentPnPId, out bImperial);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1334:            // Вернуть список PnPId на номере линии wlnLineNumber, которые относятся к ctComponetType,
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1337:            List<int> GetListOfNotExistingComponetsPnPIdForWeldLineNumberAndComponentType(WeldLineNumber wlnLineNumber, ComponentType ctComponetType, double dNominalDiameter = -1.0)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1340:                DataRow[] adrP3dLineGroupPartRelationship = Program.dsPipingDCF.Tables["P3dLineGroupPartRelationship"].Select("[LineGroup]=" + wlnLineNumber.PnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1341:                foreach (DataRow drComponent in adrP3dLineGroupPartRelationship)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1343:                    int iCurrentPnPId = Convert.ToInt32(drComponent["Part"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1344:                    DataRow[] adrEngineeringItems = Program.dsPipingDCF.Tables["EngineeringItems"].Select("[PnPID]=" + iCurrentPnPId + " AND [Status]='New'");
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1349:                        if ((GetComponentType(iCurrentPnPId) == ctComponetType) &&
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1351:                            (adrEngineeringItems.Length > 0))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1353:                            liCurrentReturnValue.Add(iCurrentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1355:                        else if ((GetComponentType(iCurrentPnPId) == ctComponetType) &&
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1357:                            (adrEngineeringItems.Length > 0) &&
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1358:                            (dNominalDiameter == Convert.ToDouble(adrEngineeringItems[0]["NominalDiameter"])))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1360:                            liCurrentReturnValue.Add(iCurrentPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1448:                WeldLineNumber wlnLineNumber = GetLineNumberForComponent(iCurrentConnectorPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1492:                // Получить список PnPId труб или грутых отводов с указанных номера линии
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1494:                List<int> liPipeOrPipeBendWithSameDiameter = GetListOfNotExistingComponetsPnPIdForWeldLineNumberAndComponentType(wlnLineNumber, ComponentType.ctPipeOrPipeBend, dNominalDiameter);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1513:                // Получить список PnPId труб или грутых отводов с указанного номера линии
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1514:                List<int> liPipesOrPipeBendsWithAnyDiameter = GetListOfNotExistingComponetsPnPIdForWeldLineNumberAndComponentType(wlnLineNumber, ComponentType.ctPipeOrPipeBend);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1534:                // Получить список PnPId "не фланцев, инструментов, арматуры, труб или гнутых отводов" с указанного номера линии
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1535:                List<int> liNotFlangeOrInstrumentOrValveOrPipeOrPipeBend = GetListOfNotExistingComponetsPnPIdForWeldLineNumberAndComponentType(wlnLineNumber, ComponentType.ctNotFlangeOrInstrumentOrValveOrPipeOrPipeBend);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1561:                // Получить список PnPId "не фланцев, инструментов, арматуры, труб или гнутых отводов" с указанного номера линии
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1562:                List<int> liNotFlangeOrInstrumentOrValveOrPipeOrPipeBendOrSupportOrConnection = GetListOfNotExistingComponetsPnPIdForWeldLineNumberAndComponentType(wlnLineNumber, ComponentType.ctNotFlangeOrInstrumentOrValveOrPipeOrPipeBendOrSupportOrConnection);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1588:                // Получить список PnPId "фланцев, инструментов или арматуры" с указанного номера линии
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1589:                List<int> liFlangeOrInstrumentOrValve = GetListOfNotExistingComponetsPnPIdForWeldLineNumberAndComponentType(wlnLineNumber, ComponentType.ctFlangeOrInstrumentOrValve);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1623:                WeldLineNumber wlnLineNumber = GetLineNumberForComponent(iCurrentConnectorPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1625:                double dNominalDiameter = GetNominalDiameter(iCurrentWeldPnPId, out bImperial);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1671:                    double dNominalDiameter = GetNominalDiameter(iCurrentWeldPnPId, out bImperial);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1707:                double dNominalDiameter = GetNominalDiameter(iCurrentWeldPnPId, out bImperial);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1712:            ComponentType GetComponentType(int iPnPId)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1714:                DataRow[] adrPnPDataLinks = Program.dsPipingDCF.Tables["PnPDataLinks"].Select("[RowId]=" + iPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1715:                switch (string.Format("{0}", adrPnPDataLinks[0]["RowClassName"]))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:1873:                WeldLineNumber wlnNewLineNumber = new WeldLineNumber(lnLineNumber.iPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:2025:        int iPnPId; // PnPId номера линии
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:2049:        public WeldLineNumber(int iPnPId)
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:2051:            this.iPnPId = iPnPId;
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:2052:            DataRow[] adrLineNumber = Program.dsPipingDCF.Tables["P3dLineGroup"].Select("[PnPID]=" + iPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:2115:                    int iThread = Convert.ToInt32(drThread["PnPID"]);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:2116:                    DataRow[] adrDatalinks = Program.dsPipingDCF.Tables["PnPDataLinks"].Select("RowId=" + iThread);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:2122:                        adrDatalinks = Program.dsPipingDCF.Tables["PnPDataLinks"].Select("DwgId=" + iDwgId + " AND DwgHandleLow=" + lDwgHandleLow + " AND RowClassName='P3dConnector'");
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:2136:                                adrDatalinks = Program.dsPipingDCF.Tables["PnPDataLinks"].Select("RowId=" + iConnectedPart);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:2143:                                if (!Glob.ldSelectedDrawings.Any(o => o.iPnPId == iDwgId))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:2148:                                DataRow[] adrEngineeringItems = Program.dsPipingDCF.Tables["EngineeringItems"].Select("PnPID=" + iConnectedPart);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:2149:                                if ((adrEngineeringItems.Length == 0) || (string.Format("{0}", adrEngineeringItems[0]["Status"]).ToUpper() != "NEW"))
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:2154:                                DataRow[] adrRelations = Program.dsPipingDCF.Tables["P3dLineGroupPartRelationship"].Select("Part=" + iConnectedPart + " AND LineGroup=" + iPnPId);
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:2186:        // Вернуть iPnPId
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:2187:        public int PnPId
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\Welds.cs:2191:                return iPnPId;
\\phpsrv03\NBIM\code\CS\P_Rec_BOP\repo\P_Rec_BOP\XMLFile.cs:230:                // Прочитать значение поля Title таблицы EngineeringItems,
