![]() |
#6 |
Участник
|
Цитата:
Таким образом, есть версия, что вы передаете не все поля ключа замены для таблицы AgreementClassification.
Код класса AgreementClassificationKey X++: #AifTableNaturalKeyDataContainerTypes [AifDataContainerTypeAttribute(#TableNaturalKey_AgreementClassification)] class AgreementClassificationKey extends AfStronglyTypedDataContainer { #define.Name('Name') #define.AgreementRelationType('AgreementRelationType') } public boolean existsAgreementRelationType() { return this.exists(#AgreementRelationType); } public boolean existsName() { return this.exists(#Name); } public RelationType parmAgreementRelationType(RelationType _value = 0) { if (!prmisdefault(_value)) { this.set_Attribute(#AgreementRelationType, _value); } return this.get_Attribute(#AgreementRelationType); } public Name parmName(Name _value = '') { if (!prmisdefault(_value)) { this.set_Attribute(#Name, _value); } return this.get_Attribute(#Name); } X++: public RelationType parmAgreementRelationType(RelationType _value = tableNum(SalesAgreementHeader)) { if (!prmisdefault(_value)) { this.set_Attribute(#AgreementRelationType, _value); } return this.get_Attribute(#AgreementRelationType); } Последний раз редактировалось syl; 18.08.2015 в 12:00. |
|