Pular para o conteúdo principal

EquipmentCompanyTransfer

Structure

EquipmentCompanyTransfer(sDestinationCompany: String; bMerge: Boolean): String:

Type

Function

Description

This function works similar to the 'Equipment Company Transfer' functionality typically launched from the InSite main screen's Options menu. The function is called from an event custom rule, and the equipment transfered corresponds to the equipment selected in the 'Choose Equipment' grid for the event.

Parameters: 2

sDestinationCompany = the name of the company where the equipment should be transferred. Please insure this company exists before calling the procedure. If this is blank, the company is assumed to be the company selected in the drop down above the 'Choose Equipment' grid

bMerge = True/False, this corresponds to the 'Allow Merge With Existing Equip.' checkbox in the standard functionality. Note: when merging with existing equipment, all events and associated event information will be merged, but all existing information in the 'New Company' will remain unchanged. The only exception is Schedules. If a schedule type exists for both pieces of equipment, the schedule with the later due date will take precedence.

Return Value

Text. The text will be blank if no errors occured. If any errors occured, they will be logged one-error-per-line in the text results. |