Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- evaluationEvaluator_Name = "Evaluator"
- evaluationEvaluator_Evaluation = "Evaluation"
- evaluationEvaluator_EvaluationBR = "Evaluators"
- evaluationEvaluator_Evaluator = "Evaluator"
- evaluationEvaluator_EvaluatorBR = "Evaluators"
- evaluationEvaluator_Link = "Link"
- evaluationEvaluator_EvaluationState = "Evaluation State"
- evaluationEvaluator_DefaultDisplay = "Default Display"
- ############## EvaluationEvaluator ################
- if model.Entities.Contains("EvaluationEvaluator") == False:
- entity = ModelEntity({"Name": "EvaluationEvaluator", "InvariantFriendlyName": evaluationEvaluator_Name, "Ownership": Ownership.ApplicationSpecific, "DefaultListName": "DefaultListEvaluationEvaluator", "DefaultFormName": "DefaultFormEvaluationEvaluator"})
- entity.ElementGuid = Guid("82F39315-54A9-4BE0-949E-B041442C82DD")
- entity.Relations.Add(Relation({"Name":"Evaluation", "InvariantFriendlyName": evaluationEvaluator_Evaluation, "Target": model.Evaluation, "BackReferenceName": "EvaluationEvaluators", "BackReferenceInvariantFriendlyName": evaluationEvaluator_EvaluationBR,"Ownership": Ownership.ApplicationSpecific}))
- entity.Relations.Add(Relation({"Name":"Evaluator", "InvariantFriendlyName": evaluationEvaluator_Evaluator, "Target": model.UserDetail, "BackReferenceName": "EvaluationEvaluators", "BackReferenceInvariantFriendlyName":evaluationEvaluator_EvaluatorBR, "Ownership": Ownership.ApplicationSpecific}))
- entity.Properties.Add(TextProperty({"Name": "Link", "InvariantFriendlyName": evaluationEvaluator_Link, "MaxStorageSize": 99, "IsNullable": True, "Ownership": Ownership.ApplicationSpecific}))
- entity.Properties.Add(BooleanProperty({"Name": "EvaluationState", "InvariantFriendlyName": evaluationEvaluator_EvaluationState, "DefaultValueExpression": "False", "IsNullable": False, "Ownership": Ownership.ApplicationSpecific }))
- ############# check here
- entity.Properties.Add(CalculatedProperty({"Name": "DefaultDisplay", "InvariantFriendlyName":evaluationEvaluator_DefaultDisplay, "Formula":"Current.Evaluation + '/' + Current.Evaluator", "IsDefaultDisplayProperty": True, "Ownership": Ownership.ApplicationSpecific}))
- model.Entities.Add(entity)
- print "EvaluationEvaluator added"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement