[oform] Add users to FieldGroup

Also implement first variant of adding role to oform and updating list of roles
This commit is contained in:
KirillovIlya
2022-11-24 14:59:52 +03:00
parent 6d21c5ab0b
commit bee49e0d83
7 changed files with 244 additions and 29 deletions

View File

@ -366,6 +366,18 @@
return this.FieldMasters[index];
};
CDocument.prototype.getMaxWeight = function()
{
let max = -1;
for (let index = 0, count = this.FieldGroups.length; index < count; ++index)
{
let curWeight = this.FieldGroups[index].getWeight();
if (max > curWeight)
max = curWeight;
}
return max;
};
CDocument.prototype.onChangeFieldGroups = function()
{
if (!this.OForm)