1. Create extended data types.
例:BikeServiceOrderId
Of course, if to give extended data types that already exist to increase the serial number assigned, then it need not be increased.
2. Modify the referenced class method LoadModule
例:NumberSeqReference_SalesOrder
Of course, if other modules of the type to give increased coding rules, then they chose the name _ ** class.
LoadModule modification method, add the following code:
numRef.DataTypeId = typeId2ExtendedTypeId( typeid(BikeServiceOrderId));
numRef.ReferenceHelp = "Unique key for the service order table, "+ "used when identification of a service "+ "order is allocated automatically.";
numRef.WizardContinuous = false;
numRef.WizardManual = NoYes::No;
numRef.WizardAllowChangeDown = NoYes::No;
numRef.WizardAllowChangeUp = NoYes::No;
numRef.SortField = 100; this.create(numRef);
3. Modify the table method
Example: SalesParameter course, if other modules to modify ** parmameter table.
Add the following method:
static client server NumberSequenceReference numRefBikeServiceOrderId()
{
return NumberSeqReference::findReference(typeId2ExtendedTypeId(typeid(BikeServiceOrderId)));
}
OK, so that you can in accounts receivable -> Settings -> Preferences -> coding rules at just see an increase in the encoding rules.