Class SY_CompanyCopy_bus

Properties

LOCAL cReportType$="R"  

Constant for Report Manager type of Report

LOCAL cIsSysDB  
LOCAL cMainTable$="SY_Activation"  
LOCAL cNewDB=0  

Methods

FUNCTION CopyAESEncryptionKey(srcCompanycode$, dstCompanyCode$)  

Allows copy of the AESEncryptionKey when copying companies.

ParameterDescription
[string] srcCompanyCode$ The source company code.
[string] dstCompanyCode$ The destination company code.
Returns [boolean] Success if the key was copied, otherwise failure if returned.
FUNCTION CopyCompanyVersion(srcCompanyCode$, dstCompanyCode$)  

Copies CompanyVersion value from one company to another.

ParameterDescription
[string] srcCompanyCode$ The source company code.
[string] dstCompanyCode$ The destination company code.
Returns [boolean]
ValueDescription
retSUCCESS(1) If value was copied.
retFAILURE(0) If copy failed.
FUNCTION CopyCreditCardData(srcCompanyCode$, dstCompanyCode$)  

Sets SY_Company credit card options and clears account id and key in payment types.

ParameterDescription
srcCompanyCode$ [input, string] The source company code.
dstCompanyCode$ [input, string] The destination company code.
Returns [boolean] Success
FUNCTION GetActivatedModule(ARG_1$, ARG_2$, ModuleCode$, removeOK$)  
FUNCTION GetCompanyKey(cSRCCompanyCode$, cDSTCompanyCode$, companykey$)  
FUNCTION GetCompanyName$(tmpCompanyCode$)  
FUNCTION ModuleHasForms(ModuleCode$, SRCCompanyCode$)  
FUNCTION ModuleHasFrameWorkForms(modCode$, CompKey$)  

Checks module of company for framework forms

ParameterDescription
modCode$ [input, string] The module to check for forms
compKey$ [input, string] The company key to check for forms
Returns [boolean] Success if forms exist for this module and company, Failure if no forms exist for module and company
FUNCTION ModuleHasFrameWorkReports(modCode$, CompKey$)  

Checks module company for framework reports

ParameterDescription
modCode$ [input, string] The module to check for reports
compKey$ [input, string] The company key to check for reports
Returns [boolean] Success if reports exist for this module and company, Failure if no reports exist for module and company
FUNCTION SourceActivation(SRCcompanyKey$)  
FUNCTION TransferAll()  
FUNCTION TransferCrystal(forms$, reports$)  

Copies crystal forms/reports for current module and company to destination company

ParameterDescription
forms$ [input, string] checkmark value to indicate to copy forms
reports$ [input, string] checkmark value to indicate to copy reports
Returns [boolean] Always returns success
FUNCTION TransferForms()  
FUNCTION TransferReportSettings(forms$, reports$)  

Transfer form/report settings for current module and company to destination company

ParameterDescription
forms$ [input, string] checkmark value to indicate to copy forms
reports$ [input, string] checkmark value to indicate to copy reports
Returns [boolean] Success if the data was copied, otherwise failure
FUNCTION UpdateCompanyLevel(CompanyCode$)  
FUNCTION ValidateGroupIsSubscription()  

Group Validation logic for is subscription

Returns [boolean] True if subscription

Properties inherited from: CI_CommonPII

AllowSensitiveAccess

Properties inherited from: SY_Maint

cActionWrite, cActionDelete, cActivityLogFilePrefix$, DocDateWarnDisplayed, DocDateWarnStatus, EditState, RecordChanged, FirstFailure$, DocumentTotal, ReadOnlyReason$, UDTValidation$, ViewOnly, CurrentPrecision, DocDateWarnForceOff, DocDateWarnObject, ScriptObject, ImportTest, SkipNullCheck$, AFSRequiredFields$

Properties inherited from: SY_MaintSet

FileChanged

Methods inherited from: CI_CommonPII

GetDecryptedCols(), CheckEncryptedCols(), ClearEncryptedCols(), DecryptRec(), EncryptRec(), GetEncryptedCols(), InitEncryptInfo(), MaskColumnValue$(), ResetEncryptedCols()

Methods inherited from: SY_Maint

ChangedRecordCompare(), ChangedRecordInfo(), Clear(), ClearRecord(), ConfirmDelete(), CopyFrom(), ExportToCSV(), GetColumnInfo(), GetColumnProperties$(), GetDefaults(), GetOrigRecord$(), GetPropertyValue(), GetValidationGroups$(), ResetDocDateWarnState(), SetCopyKeyValue(), SetDocDateWarnDisplayed(), SetDocDateWarnOff(), SetKey(), SetKeyValue(), SetPartialRecord(), SetRecord(), SetToReadOnly(), SetValue(), SetValues(), Write(), ActivityLogCreateFile(), ActivityLogPrepare(), ActivityLogSetMessage$(), ActivityLogWrite(), CallScript(), CheckForAdvancedFieldSettings(), CheckForScripts(), CheckNullRequiredField(), PERFORM ChildValidate(), ClassValidateDate(), ClassValidateTelephoneNo(), ClearSetFiles(), ColInfoInitAll(), ColInfoInitDefaults(), CommitRow(), GetPropertyCommon(), InitColInfo(), InitScriptEngine(), InitSearchForUpdate(), InitWorkTable(), IsColInIOList(), IsValid(), LoadColInfo(), OpenMainTable(), ParseExtField(), PreWriteScripts(), RemoveColToSkip(), ResetRow(), RetrieveColInfo(), SetDefaults(), SetFilter(), SetMode(), SetParentHandle(), SetValueNoValidate(), StoreColToSkip(), ValidateAll(), ValidateAllRecord(), ValidateColInfo(), ValidateRule()

Methods inherited from: SY_MaintSet

ClearSetFiles(), CommitRow(), QuickRowLoad(), ResetRow(), SeedDetailRow(), SetFilter(), SetMode()