Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Quota



The questionnaire's quota object.

Parent class

Inherits from object

Constructors

  • (int id "Quota resource id") - Fetch exists quota
  • (string name "Quota's name", Questionnaire questionnaire "The questionnaire contains this quota") - Create and add new quota to questionnaire object

Methods

  • Empty Save() - Save quota
  • (From object) string ToString() - The string representation of the object.

Properties

  • int Current { get; } - Gets the number of completed resource project questionnaires in the quota
  • string Description { get; set; } - Quota description
  • bool Disabled { get; set; } - Quota disabled or not
  • string Expression { get; set; } - Quota expression
  • int Id { get; } - Quota resource id
  • string Name { get; set; } - Quota name
  • string ObjectTypeName { get; } - The name of the type of object.
  • int OnGoing { get; } - Gets the number of on going resource project questionnaires in the quota
  • int OutsideTarget { get; } - Gets the number of outside target resource project questionnaires in the quota
  • bool PreStratification { get; set; } - Quota pre-stratification
  • int QuestionnaireId { get; } - Resource id of questionnaire belong to
  • int QuotaFull { get; } - Gets the number of quota full resource project questionnaires in the quota
  • int Target { get; set; } - Quota target
  • bool TargetReached { get; } - Gets information about whether or not the target for this quota has been reached
  • (From object) TypeInformation TypeInformation { get; } - Get information about this class.

Examples

	
//create quota for qnaire
Questionnaire qnaire = new Questionnaire (17148177);
Quota quota = new Quota ("Male", qnaire);
quota.Target = 100;
quota.Expression = "Gender == 1";
quota.Description = "xxxxx";
quota.Save();