Skip to content

Commit

Permalink
Исправлена совместимость ревизий с АС27 иАС28
Browse files Browse the repository at this point in the history
  • Loading branch information
kuvbur committed Oct 9, 2024
1 parent 72505d3 commit 69c5f84
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions Sources/AddOn/Revision.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ void GetAllChangesMarker (GS::HashTable< GS::UniString, API_Guid>& layout_note_g
if (isteamwork) {
short userId;
#if defined(AC_27) || defined(AC_28)
err = ACAPI_Teamwork_GetTWOwner (&revision.layoutInfo.dbId, &userId)
err = ACAPI_Teamwork_GetTWOwner (&revision.layoutInfo.dbId, &userId);
#else
err = ACAPI_Database (APIDb_GetTWOwnerID, &revision.layoutInfo.dbId, &userId);
#endif
Expand Down Expand Up @@ -290,7 +290,7 @@ void GetAllChangesMarker (GS::HashTable< GS::UniString, API_Guid>& layout_note_g
#endif
std::string s = id.ToCStr (0, MaxUSize, GChCode).Get ();
abc_changes[s] = id;
}
}
for (std::map<std::string, GS::UniString, doj::alphanum_less<std::string> >::iterator k = abc_changes.begin (); k != abc_changes.end (); ++k) {
GS::UniString s = k->second;
if (str.IsEmpty ()) {
Expand All @@ -305,7 +305,7 @@ void GetAllChangesMarker (GS::HashTable< GS::UniString, API_Guid>& layout_note_g
} else {
layoutInfo.customData->Put (prop_guid, str);
}
} else {
} else {
msg_rep ("ChangeLayoutProperty err", "not found " + prop_name, err, APINULLGuid, false);
}
prop_name = GS::UniString::Printf ("somestuff_izm_%d_column_3", n_row);
Expand Down Expand Up @@ -335,7 +335,7 @@ void GetAllChangesMarker (GS::HashTable< GS::UniString, API_Guid>& layout_note_g
if (note.code > 0) msg_rep ("ChangeLayoutProperty err", "not found " + prop_name, err, APINULLGuid, false);
}
n_row += 1;
}
}
if (flag_write) {
DBprnt ("GetAllChangesMarker::APIEnv_ChangeLayoutSetsID", "start");
#if defined(AC_27) || defined(AC_28)
Expand All @@ -347,7 +347,7 @@ void GetAllChangesMarker (GS::HashTable< GS::UniString, API_Guid>& layout_note_g
if (err != NoError) msg_rep ("GetAllChangesMarker", "APIEnv_ChangeLayoutSetsID", err, APINULLGuid);
}
delete layoutInfo.customData;
}
}
}

bool ChangeLayoutProperty (ChangeMarkerDict& changes, GS::HashTable<GS::UniString, API_Guid>& layout_note_guid, API_DatabaseUnId& databaseUnId, GS::UniString& layoutId, LayoutRevisionDict& layoutRVI, NoteByChangeDict& allchanges)
Expand Down Expand Up @@ -388,7 +388,7 @@ bool ChangeLayoutProperty (ChangeMarkerDict& changes, GS::HashTable<GS::UniStrin
#endif
std::string s = change.changeId.ToCStr (0, MaxUSize, GChCode).Get ();
abc_changes[s] = id;
}
}
UInt32 n_prop = layout_note_guid.GetSize ();
// Очистка полей
for (UInt32 i = 0; i < n_prop; i++) {
Expand Down Expand Up @@ -570,7 +570,7 @@ bool ChangeLayoutProperty (ChangeMarkerDict& changes, GS::HashTable<GS::UniStrin
}
delete layoutInfo.customData;
return true;
}
}

void CheckChanges (ChangeMarkerDict& changes, GS::UniString& subsetName, GS::UniString& layoutid)
{
Expand Down Expand Up @@ -638,7 +638,7 @@ void CheckChanges (ChangeMarkerDict& changes, GS::UniString& subsetName, GS::Uni
if (change.code == 0 && change.arr[i].code > 0) change.code = change.arr[i].code;
}
change.note = StringUnic (note, ";@");
}
}
}

void GetChangesLayout (GS::Array<API_RVMChange>& layoutchange, ChangeMarkerDict& changes, GS::HashTable<GS::UniString, API_Guid>& layout_note_guid)
Expand Down Expand Up @@ -842,10 +842,10 @@ void ChangeMarkerTextOnLayout (ChangeMarkerDict& changes)
}
ChangeMarkerText (change.arr[i].markerguid, change.arr[i].nuch, change.arr[i].nizm);
}
}
}
return NoError;
});
}
});
}

void ChangeMarkerText (API_Guid& markerguid, GS::UniString& nuch, GS::UniString& nizm)
{
Expand Down Expand Up @@ -922,5 +922,5 @@ void ChangeMarkerText (API_Guid& markerguid, GS::UniString& nuch, GS::UniString&
}
ACAPI_DisposeElemMemoHdls (&memo);
return;
}
}
}
}

0 comments on commit 69c5f84

Please sign in to comment.