//var attrName = "A_Obj_Ref_Tbl"; //var table = tdmsObject.Attributes.FirstOrDefault(a => a.AttributeDefName.Equals(attrName)); //table.Rows.RemoveAll(); //var nppsGuids = tdmsCorrectionAction.Npps.ToList(); //foreach (var nppGuid in nppsGuids) { // var nppFromTdms = app.GetObjectByGUID(nppGuid); // if (nppFromTdms == null) continue; // var nppCode = nppFromTdms.Attributes["A_Object_Code"]; // var nppDescription = nppFromTdms.Attributes["A_Desc_ObjPJ"]; // var newRow = table.Rows.Create(); // newRow.Attributes["A_Object_Code"].Value = nppCode; // newRow.Attributes["A_Desc_ObjPJ"].Value = nppDescription; // newRow.Attributes["A_Object_Ref"].Value = nppFromTdms; //} //} private void FillTableWithAllNpps(TDMSAttribute table, ICa tca) { if (table == null) { return; } var npps = app.GetObjectsByGUIDs(tca.Npps.ToList()); table.Rows.RemoveAll(); AddRows(table, npps); }
internal CheckOut(HttpClient httpClient, DirectoryInfo folder, CachedActiveVersions cache, TDMSApplication app) { HttpClient = httpClient; Folder = folder; Cache = cache; App = app; PipelineSteps = input => input .Step(new StepCaToRequest()) .Step(new StepRequestToTaskResponse(HttpClient)) .Step(new StepTaskResponseToContent()) .Step(new StepContentToZipFile(Folder)) .Step(new StepZipFileToFiles(Folder)) .Step( new StepCheckInToTdmsLogged( App.GetObjectsByGUIDs(Cache, input.Id) ) ); }