1. 主表上添加方法renamePrimaryKey
[SysClientCacheDataMethodAttribute(true)]
public void renamePrimaryKey()
{
Common originalRecord = this.orig();
public void renamePrimaryKey()
{
Common originalRecord = this.orig();
super();
DimensionStorage::syncRenamedValue(this, originalRecord);
}
}
2. 主表上添加方法exist方法
public static boolean exist(PurchContractId _purchContractId)
{
boolean exist;
{
boolean exist;
exist = (select firstonly RecId from PurchContractTable
where PurchContractTable.PurchContractId == _purchContractId).RecId != 0;
where PurchContractTable.PurchContractId == _purchContractId).RecId != 0;
return exist;
}
}
3. 主表上添加方法delete方法
public void delete()
{
if (!DimensionValidation::canDeleteEntityValue(this))
{
throw error(strfmt("@SYS134392", this.PurchContractId));
}
ttsbegin;
// Update the associated dimension attribute value.
DimensionAttributeValue::updateForEntityValueDelete(this);
{
if (!DimensionValidation::canDeleteEntityValue(this))
{
throw error(strfmt("@SYS134392", this.PurchContractId));
}
ttsbegin;
// Update the associated dimension attribute value.
DimensionAttributeValue::updateForEntityValueDelete(this);
super();
ttscommit;
}
}