Skip to content
Snippets Groups Projects
process.js 14.7 KiB
Newer Older
/**
 * provides static functionality for a registry of keywords
 * The main reason for this is a convenient usage within jdito-code (autocomplete)
 * never use these registered keywords directly in an library - only within function definition that are called later
 * the reason behind this is that the registry is initalized at the position of the Keyword_lib-import;
 * That means, if a value of the registry is used before the import of the Keyword_lib the registry is not set
 * 
 * Not every KeywordContainer that exists has to be listed here (e.g. dynamic created keywords) but every keyword-container-name that is used within
 * JDito code should be listed here
 * 
 * This is a very special case of an object and should not be used as a refernece for own implementations since the requirements will be different
 * 
 * @class
 * 
 * @example
 * $KeywordRegistry.activityDirection()
 */
function $KeywordRegistry(){}
// this function can also be found as StringUtils.pad36() in Util_lib and is just here to avoid an import because this registry is heavily used.
$KeywordRegistry._autoPad = function(pKey){return (pKey + "                                    ").slice(0, 36)}; 
$KeywordRegistry.attributeType = function(){return "AttributeType";};
$KeywordRegistry.keywordAttributeType = function(){return "KeywordAttributeType";};
$KeywordRegistry.contractPayment = function(){return "ContractPayment";};
m.mansour's avatar
m.mansour committed

$KeywordRegistry.contractStatus = function(){return "ContractStatus";};
$KeywordRegistry.contractState$validLimited = function(){return $KeywordRegistry._autoPad("CONTRACTSTATVALIDLI");};
$KeywordRegistry.contractState$validUnlimited = function(){return $KeywordRegistry._autoPad("CONTRACTSTATVALIDUNLI");};
$KeywordRegistry.contractState$notSigned = function(){return $KeywordRegistry._autoPad("CONTRACTSTATSIGN");};
m.mansour's avatar
m.mansour committed

$KeywordRegistry.contractType = function(){return "ContractType";};
$KeywordRegistry.activityDirection = function(){return "ActivityDirection";};
$KeywordRegistry.activityDirection$incoming = function(){return $KeywordRegistry._autoPad("i");};
$KeywordRegistry.activityDirection$outgoing = function(){return $KeywordRegistry._autoPad("o");};
m.mansour's avatar
m.mansour committed
$KeywordRegistry.contactStatus = function(){return "ContactStatus";};
$KeywordRegistry.contactStatus$active = function(){return $KeywordRegistry._autoPad("CONTACTSTATACTIVE");};
m.mansour's avatar
m.mansour committed

$KeywordRegistry.currency = function(){return "Currency";};
$KeywordRegistry.currency$eur = function(){return $KeywordRegistry._autoPad("EUR");};
m.mansour's avatar
m.mansour committed

$KeywordRegistry.productGroupcode = function(){return "ProductGroupcode";};
m.mansour's avatar
m.mansour committed

$KeywordRegistry.offerStatus = function(){return "OfferStatus";};
$KeywordRegistry.offerStatus$open = function(){return $KeywordRegistry._autoPad("OFFERSTATOPEN");};
$KeywordRegistry.offerStatus$checked = function(){return $KeywordRegistry._autoPad("OFFERSTATCHECK");};
$KeywordRegistry.offerStatus$sent = function(){return $KeywordRegistry._autoPad("OFFERSTATSENT");};
$KeywordRegistry.offerStatus$won = function(){return $KeywordRegistry._autoPad("OFFERSTATWON");};
$KeywordRegistry.offerStatus$lost = function(){return $KeywordRegistry._autoPad("OFFERSTATLOST");};
$KeywordRegistry.organisationType = function(){return "OrganisationType";};
$KeywordRegistry.organisationType$manufacturer = function(){return $KeywordRegistry._autoPad("ORGMANUF");};
$KeywordRegistry.organisationType$competitor = function(){return $KeywordRegistry._autoPad("ORGCOMP");};
$KeywordRegistry.personGender = function(){return "PersonGender";};
$KeywordRegistry.taskStatus = function(){return "TaskStatus";};
$KeywordRegistry.taskStatus$new = function(){return $KeywordRegistry._autoPad("NEW");};
$KeywordRegistry.taskStatus$unassigned = function(){return $KeywordRegistry._autoPad("UNASSIGNED");};
$KeywordRegistry.taskStatus$assigned = function(){return $KeywordRegistry._autoPad("ASSIGNED");};
$KeywordRegistry.taskStatus$inProgress = function(){return $KeywordRegistry._autoPad("IN-PROGRESS");};
$KeywordRegistry.taskStatus$waiting = function(){return $KeywordRegistry._autoPad("WAITING");};
$KeywordRegistry.taskStatus$ended = function(){return $KeywordRegistry._autoPad("ENDED");};
$KeywordRegistry.taskStatus$customerChecks = function(){return $KeywordRegistry._autoPad("CUSTOMER-CHECKS");};
$KeywordRegistry.taskType = function(){return "TaskType";};
$KeywordRegistry.taskType$task = function(){return $KeywordRegistry._autoPad("TASK");};
$KeywordRegistry.taskType$ticket = function(){return $KeywordRegistry._autoPad("TICKET");};

$KeywordRegistry.ticketType = function(){return "TicketType";};
$KeywordRegistry.ticketType$supportTicket = function(){return $KeywordRegistry._autoPad("SUPPORTTICKET");};
$KeywordRegistry.productPricelist = function(){return "ProductPricelist";};
$KeywordRegistry.productPricelist$standardList = function(){return $KeywordRegistry._autoPad("PRICELISTDEFAULT");};
$KeywordRegistry.quantityUnit = function(){return "QuantityUnit";};
$KeywordRegistry.quantityUnit$pieces = function(){return $KeywordRegistry._autoPad("QUANTITYPIECES");};
m.mansour's avatar
m.mansour committed

$KeywordRegistry.MemberRole = function(){return "MemberRole";};
$KeywordRegistry.salesprojectSource = function(){return "SalesprojectSource";};
$KeywordRegistry.salesorderState = function(){return "SalesorderState";};
Tobias Feldmann's avatar
Tobias Feldmann committed
$KeywordRegistry.salesorderState$checked = function(){return $KeywordRegistry._autoPad("SALORDERSTATCHECK");};
$KeywordRegistry.salesorderState$sent = function(){return $KeywordRegistry._autoPad("SALORDERSTATSENT");};
$KeywordRegistry.salesorderState$won = function(){return $KeywordRegistry._autoPad("SALORDERSTATWON");};
$KeywordRegistry.salesorderState$lost = function(){return $KeywordRegistry._autoPad("SALORDERSTATLOST");};

$KeywordRegistry.salesprojectWonLost = function(){return "SalesprojectWonLost";};
$KeywordRegistry.stockWarehouse = function(){return "StockWarehouse";};
$KeywordRegistry.salesprojectProbability = function(){return "SalesprojectProbability";};
m.mansour's avatar
m.mansour committed

$KeywordRegistry.activityCategory = function(){return "ActivityCategory";};
$KeywordRegistry.activityCategory$mail = function(){return $KeywordRegistry._autoPad("MAIL");};
$KeywordRegistry.addressType = function(){return "AddressType";};
$KeywordRegistry.addressType$private = function(){return $KeywordRegistry._autoPad("HOMEADDR");};
$KeywordRegistry.addressType$office = function(){return $KeywordRegistry._autoPad("OFFICEADDR");};
$KeywordRegistry.offerProbability = function(){return "OfferProbability";};
$KeywordRegistry.communicationMedium = function(){return "CommunicationMedium";};
$KeywordRegistry.communicationMedium$mail = function(){return $KeywordRegistry._autoPad("COMMEMAIL");};

$KeywordRegistry.salesprojectPricePolitics = function(){return "SalesprojectPricePolitics";};
$KeywordRegistry.salesprojectWeakness = function(){return "SalesprojectWeakness";};
$KeywordRegistry.salesprojectStrenght = function(){return "SalesprojectStrenght";};
m.mansour's avatar
m.mansour committed

$KeywordRegistry.salesprojectState = function(){return "SalesprojectState";};
$KeywordRegistry.salesprojectState$open = function(){return $KeywordRegistry._autoPad("SALPROJSTATOPEN");};
$KeywordRegistry.salesprojectState$postponed = function(){return $KeywordRegistry._autoPad("SALPROJSTATPOSTPONED");};
$KeywordRegistry.salesprojectState$aborted = function(){return $KeywordRegistry._autoPad("SALPROJSTATABORT");};
$KeywordRegistry.salesprojectState$partialOrder = function(){return $KeywordRegistry._autoPad("SALPROJSTATPARTIAL");};
$KeywordRegistry.salesprojectState$order = function(){return $KeywordRegistry._autoPad("SALPROJSTATORDER");};
$KeywordRegistry.salesprojectState$lost = function(){return $KeywordRegistry._autoPad("SALPROJSTATLOST");};
m.mansour's avatar
m.mansour committed

$KeywordRegistry.salesprojectPhase = function(){return "SalesprojectPhase";};
$KeywordRegistry.salesprojectPhase$nqc = function(){return $KeywordRegistry._autoPad("SALPROJPHASENQC");};
m.mansour's avatar
m.mansour committed

$KeywordRegistry.taskPriority = function(){return "TaskPriority";};
$KeywordRegistry.taskPriority$none = function(){return $KeywordRegistry._autoPad("TASKPRIONONE");};
$KeywordRegistry.taskPriority$low = function(){return $KeywordRegistry._autoPad("TASKPRIOLOW");};
$KeywordRegistry.taskPriority$medium = function(){return $KeywordRegistry._autoPad("TASKPRIOMEDIUM");};
$KeywordRegistry.taskPriority$high = function(){return $KeywordRegistry._autoPad("TASKPRIOHIGH");};
m.mansour's avatar
m.mansour committed

$KeywordRegistry.taskProgress = function(){return "TaskProgress";};
$KeywordRegistry.taskProgress$0 = function(){return $KeywordRegistry._autoPad("TASKPROG0");};
m.mansour's avatar
m.mansour committed

$KeywordRegistry.competitionState = function(){return "CompetitionState";};
$KeywordRegistry.competitionState$lost = function(){return $KeywordRegistry._autoPad("COMPSTATELOST");};
$KeywordRegistry.objectRelationType = function(){return "ObjectRelationType";};
$KeywordRegistry.deliveryTerm = function(){return "DeliveryTerm";};
$KeywordRegistry.paymentTerm = function(){return "PaymentTerm";};
$KeywordRegistry.contactDepartment = function(){return "ContactDepartment";};
$KeywordRegistry.contactPosition = function(){return "ContactPosition";};
$KeywordRegistry.contactContactrole = function(){return "ContactContactrole";};
m.mansour's avatar
m.mansour committed

$KeywordRegistry.campaignState = function(){return "CampaignManagementStates";};
$KeywordRegistry.campaignState$planning = function(){return $KeywordRegistry._autoPad("PLANNING");};
$KeywordRegistry.campaignState$approved = function(){return $KeywordRegistry._autoPad("APPROVED");};
m.mansour's avatar
m.mansour committed

$KeywordRegistry.campaignStepState = function(){return "CampaignManagementStepStates";};
$KeywordRegistry.campaignStepState$open = function(){return $KeywordRegistry._autoPad("OPEN");};
m.mansour's avatar
m.mansour committed

Johannes Hörmann's avatar
Johannes Hörmann committed
$KeywordRegistry.campaignStepCostCategory = function(){return "CampaignManagementCostCategory";};
m.mansour's avatar
m.mansour committed

Dominik Lechner's avatar
Dominik Lechner committed
$KeywordRegistry.documentTemplateType = function(){return "DocumentTemplateType";};
$KeywordRegistry.documentTemplateType$letter = function(){return $KeywordRegistry._autoPad("LET");};
$KeywordRegistry.documentTemplateType$textModular = function(){return $KeywordRegistry._autoPad("TEX");};
$KeywordRegistry.documentTemplateType$mail = function(){return $KeywordRegistry._autoPad("MAI");};
$KeywordRegistry.documentTemplateType$attachment = function(){return $KeywordRegistry._autoPad("ATT");};
m.mansour's avatar
m.mansour committed

S.Listl's avatar
S.Listl committed
$KeywordRegistry.documentTemplateTypeCategory = function(){return "DocumentTemplateTypeCategory";};
$KeywordRegistry.documentTemplateTypeCategory$single = function(){return $KeywordRegistry._autoPad("1");};
$KeywordRegistry.documentTemplateTypeCategory$serial = function(){return $KeywordRegistry._autoPad("2");};
$KeywordRegistry.documentTemplateTypeCategory$htmlTemplate = function(){return $KeywordRegistry._autoPad("7");};
m.mansour's avatar
m.mansour committed

$KeywordRegistry.classificationType = function(){return "ClassificationType";};
$KeywordRegistry.classificationType$salesproject = function(){return $KeywordRegistry._autoPad("SALESPROJ");};
m.mansour's avatar
m.mansour committed

$KeywordRegistry.personGender = function(){return "PersonGender";};
$KeywordRegistry.personGender$other = function(){return $KeywordRegistry._autoPad("o");};
m.mansour's avatar
m.mansour committed

$KeywordRegistry.permissionCondType = function(){return "PermissionCondType";};
$KeywordRegistry.permissionAccessType = function(){return "PermissionAccessType";};
$KeywordRegistry.dsgvoPurpose = function(){return "DSGVOPurpose";};
$KeywordRegistry.dsgvoStatuoritysource = function(){return "DSGVOStatuoritysource";};

$KeywordRegistry.dsgvoType = function() {return "DSGVOType";};
$KeywordRegistry.dsgvoType$birth = function(){return $KeywordRegistry._autoPad("TYPE_BIRTH");};

$KeywordRegistry.dsgvoTransmission = function() {return "DSGVOTransmission";};
$KeywordRegistry.dsgvoTransmission$none = function(){return $KeywordRegistry._autoPad("DSGVONONE");};
$KeywordRegistry.dsgvoTransmission$inland = function(){return $KeywordRegistry._autoPad("DSGVOINLAND");};
$KeywordRegistry.dsgvoTransmission$foreign = function(){return $KeywordRegistry._autoPad("DSGVOFOREIGN");};

$KeywordRegistry.dsgvoDeadline = function() {return "DSGVODeadline";};
$KeywordRegistry.dsgvoDeadline$onTime = function(){return $KeywordRegistry._autoPad("DSGVOONTIME");};
$KeywordRegistry.dsgvoDeadline$complex = function(){return $KeywordRegistry._autoPad("DSGVODEADLINECOMPLEX");};
$KeywordRegistry.dsgvoDeadline$count = function(){return $KeywordRegistry._autoPad("DSGVODEADLINECOUNT");};
$KeywordRegistry.dsgvoGuarantee = function() {return "DSGVOGuarantee";};
m.mansour's avatar
m.mansour committed

$KeywordRegistry.textPlaceholder = function(){return "textPlaceholder";};
$KeywordRegistry.communicationMediumCampaign = function(){return "CommunicationMediumCampaign";};
$KeywordRegistry.communicationMediumCampaign$mail = function(){return $KeywordRegistry._autoPad("CAMPAIGNEMAIL");};
$KeywordRegistry.communicationMediumCampaign$letter = function(){return $KeywordRegistry._autoPad("CAMPAIGNLETTER");};
S.Listl's avatar
S.Listl committed
$KeywordRegistry.bulkMailRecipientStatus = function(){return "BulkMailRecipientStatus";};
$KeywordRegistry.bulkMailRecipientStatus$pending = function(){return $KeywordRegistry._autoPad("EMAILPENDING");};
$KeywordRegistry.bulkMailRecipientStatus$sent = function(){return $KeywordRegistry._autoPad("EMAILSENT");};
$KeywordRegistry.bulkMailRecipientStatus$failed = function(){return $KeywordRegistry._autoPad("EMAILFAILED");};
S.Listl's avatar
S.Listl committed

$KeywordRegistry.bulkMailStatus = function(){return "BulkMailStatus";};
$KeywordRegistry.bulkMailStatus$notSent = function(){return $KeywordRegistry._autoPad("BULKMAILNOTSENT");};
$KeywordRegistry.bulkMailStatus$beingSent = function(){return $KeywordRegistry._autoPad("BULKMAILBEINGSENT");};
$KeywordRegistry.bulkMailStatus$sent = function(){return $KeywordRegistry._autoPad("BULKMAILSENT");};
S.Listl's avatar
S.Listl committed
$KeywordRegistry.serialLetterStatus = function(){return "SerialLetterStatus";};
$KeywordRegistry.serialLetterStatus$notSent = function(){return $KeywordRegistry._autoPad("SERIALLETTERNOTSENT");};
$KeywordRegistry.serialLetterStatus$sent = function(){return $KeywordRegistry._autoPad("SERIALLETTERSENT");};

$KeywordRegistry.callDirection = function(){return "CallDirection";};
$KeywordRegistry.callDirection$incoming = function(){return $KeywordRegistry._autoPad("INC");};
$KeywordRegistry.callDirection$outgoing = function(){return $KeywordRegistry._autoPad("OUT");};

$KeywordRegistry.callAnswerMode = function(){return "CallAnswerMode";};
$KeywordRegistry.callAnswerMode$accepted = function(){return $KeywordRegistry._autoPad("ACCEPTED");};
$KeywordRegistry.callAnswerMode$missed = function(){return $KeywordRegistry._autoPad("MISSED");};
m.mansour's avatar
m.mansour committed

$KeywordRegistry.orderType = function(){return "OrderType";};
$KeywordRegistry.orderType$confirmation = function(){return $KeywordRegistry._autoPad("ORDTYPECONF");};
$KeywordRegistry.orderType$deliverynote = function(){return $KeywordRegistry._autoPad("ORDTYPENOTE");};
$KeywordRegistry.orderType$invoice = function(){return $KeywordRegistry._autoPad("ORDTYPEINVO");};
$KeywordRegistry.orderType$credit = function(){return $KeywordRegistry._autoPad("ORDTYPECRED");};
$KeywordRegistry.orderType$cancellation = function(){return $KeywordRegistry._autoPad("ORDTYPECANC");};
$KeywordRegistry.dunningLevel = function(){return "DunningLevel";};

$KeywordRegistry.bulkMailProblem = function(){return "BulkMailProblem";};