Exemplo n.º 1
0
 /// <summary></summary>
 public MultInputItem(string promptingText, FieldValueType valueType, ArrayList currentValues, EnumType enumerationType, DefCat defCategory, ReportFKType fKType)
 {
     PromptingText   = promptingText;
     ValueType       = valueType;
     CurrentValues   = currentValues;
     EnumerationType = enumerationType;
     DefCategory     = defCategory;
     FKType          = fKType;
 }
Exemplo n.º 2
0
 /// <summary></summary>
 public MultInputItem(string promptingText,FieldValueType valueType,ArrayList currentValues,EnumType enumerationType,DefCat defCategory,ReportFKType fKType)
 {
     PromptingText=promptingText;
     ValueType=valueType;
     CurrentValues=currentValues;
     EnumerationType=enumerationType;
     DefCategory=defCategory;
     FKType=fKType;
 }
Exemplo n.º 3
0
 private string[] GetFRows(ReportFKType fKType)
 {
     string[] retVal = new string[0];
     switch (fKType)
     {
     case ReportFKType.SchoolClass:
         return(SchoolClasses.GetDeepCopy().Select(x => SchoolClasses.GetDescript(x)).ToArray());
     }
     return(retVal);
 }
Exemplo n.º 4
0
 private long[] GetFKeys(ReportFKType fKType)
 {
     long[] retVal = new long[0];
     switch (fKType)
     {
     case ReportFKType.SchoolClass:
         return(SchoolClasses.GetDeepCopy().Select(x => x.SchoolClassNum).ToArray());
     }
     return(retVal);
 }
Exemplo n.º 5
0
 ///<summary>Overload for ValueKind ForeignKey.</summary>
 public ParameterField(string thisName, FieldValueType thisValueType, ArrayList theseDefaultValues, string thisPromptingText, string thisSnippet, ReportFKType thisReportFKType)
 {
     name            = thisName;
     valueType       = thisValueType;
     defaultValues   = theseDefaultValues;
     promptingText   = thisPromptingText;
     snippet         = thisSnippet;
     enumerationType = EnumType.ApptStatus;       //arbitrary
     defCategory     = DefCat.AccountColors;      //arbitrary
     fKeyType        = thisReportFKType;
 }
Exemplo n.º 6
0
 ///<summary>This is how parameters are generally added.  The currentValues and outputValue will be determined during the Report.SubmitQuery call.</summary>
 public ParameterField(string thisName, FieldValueType thisValueType, object thisDefaultValue, string thisPromptingText, string thisSnippet)
 {
     name          = thisName;
     valueType     = thisValueType;
     defaultValues = new ArrayList();
     defaultValues.Add(thisDefaultValue);
     promptingText   = thisPromptingText;
     snippet         = thisSnippet;
     enumerationType = EnumType.ApptStatus;       //arbitrary
     defCategory     = DefCat.AccountColors;      //arbitrary
     fKeyType        = ReportFKType.None;
 }
Exemplo n.º 7
0
 ///<summary>This is how parameters are generally added.  The currentValues and outputValue will be determined during the Report.SubmitQuery call.</summary>
 public ParameterField(string thisName,FieldValueType thisValueType,object thisDefaultValue,string thisPromptingText,string thisSnippet)
 {
     name=thisName;
     valueType=thisValueType;
     defaultValues=new ArrayList();
     defaultValues.Add(thisDefaultValue);
     promptingText=thisPromptingText;
     snippet=thisSnippet;
     enumerationType=EnumType.ApptStatus;//arbitrary
     defCategory=DefCat.AccountColors;//arbitrary
     fKeyType=ReportFKType.None;
 }
Exemplo n.º 8
0
 private string[] GetFRows(ReportFKType fKType)
 {
     string[] retVal = new string[0];
     switch (fKType)
     {
     case ReportFKType.SchoolClass:
         retVal = new string[SchoolClasses.List.Length];
         for (int i = 0; i < SchoolClasses.List.Length; i++)
         {
             retVal[i] = SchoolClasses.List[i].GradYear + " - " + SchoolClasses.List[i].Descript;
         }
         break;
     }
     return(retVal);
 }
Exemplo n.º 9
0
 private int[] GetFKeys(ReportFKType fKType)
 {
     int[] retVal = new int[0];
     switch (fKType)
     {
     case ReportFKType.SchoolClass:
         retVal = new int[SchoolClasses.List.Length];
         for (int i = 0; i < SchoolClasses.List.Length; i++)
         {
             retVal[i] = SchoolClasses.List[i].SchoolClassNum;
         }
         break;
     }
     return(retVal);
 }
Exemplo n.º 10
0
 /// <summary>Overload for ValueKind defCat.</summary>
 public void AddParameter(string myName, FieldValueType myValueType
                          , ArrayList myDefaultValues, string myPromptingText, string mySnippet, ReportFKType myReportFKType)
 {
     parameterFields.Add(new ParameterField(myName, myValueType, myDefaultValues, myPromptingText, mySnippet, myReportFKType));
 }
Exemplo n.º 11
0
		///<summary></summary>
		public void AddInputItem(string myPromptingText,FieldValueType myValueType,ArrayList myCurrentValues,EnumType myEnumerationType,DefCat myDefCategory,ReportFKType myFKType){
			MultInput2.AddInputItem(myPromptingText,myValueType,myCurrentValues,myEnumerationType,myDefCategory,myFKType);
		}
Exemplo n.º 12
0
		/// <summary></summary>
		public void AddInputItem(string promptingText,FieldValueType valueType,ArrayList currentValues,EnumType enumerationType,DefCat defCategory,ReportFKType fKType){
			multInputItems.Add(new MultInputItem(promptingText,valueType,currentValues,enumerationType,defCategory,fKType));
		}
Exemplo n.º 13
0
		private long[] GetFKeys(ReportFKType fKType) {
			long[] retVal=new long[0];
			switch(fKType){
				case ReportFKType.SchoolClass:
					retVal=new long[SchoolClasses.List.Length];
					for(int i=0;i<SchoolClasses.List.Length;i++){
						retVal[i]=SchoolClasses.List[i].SchoolClassNum;
					}
					break;
			}
			return retVal;
		}
Exemplo n.º 14
0
		private string[] GetFRows(ReportFKType fKType){
			string[] retVal=new string[0];
			switch(fKType){
				case ReportFKType.SchoolClass:
					retVal=new string[SchoolClasses.List.Length];
					for(int i=0;i<SchoolClasses.List.Length;i++){
						retVal[i]=SchoolClasses.List[i].GradYear+" - "+SchoolClasses.List[i].Descript;
					}
					break;
			}
			return retVal;
		}
Exemplo n.º 15
0
		///<summary>Overload for ValueKind ForeignKey.</summary>
		public ParameterField(string thisName,FieldValueType thisValueType,ArrayList theseDefaultValues,string thisPromptingText,string thisSnippet,ReportFKType thisReportFKType){
			name=thisName;
			valueType=thisValueType;
			defaultValues=theseDefaultValues;
			promptingText=thisPromptingText;
			snippet=thisSnippet;
			enumerationType=EnumType.ApptStatus;//arbitrary
			defCategory=DefCat.AccountColors;//arbitrary
			fKeyType=thisReportFKType;
		}
Exemplo n.º 16
0
 ///<summary></summary>
 public void AddInputItem(string myPromptingText, FieldValueType myValueType, ArrayList myCurrentValues, EnumType myEnumerationType, DefCat myDefCategory, ReportFKType myFKType)
 {
     MultInput2.AddInputItem(myPromptingText, myValueType, myCurrentValues, myEnumerationType, myDefCategory, myFKType);
 }
Exemplo n.º 17
0
        /// <summary>Overload for ValueKind defCat.</summary>
        public void AddParameter(string myName,FieldValueType myValueType
			,ArrayList myDefaultValues,string myPromptingText,string mySnippet,ReportFKType myReportFKType)
        {
            parameterFields.Add(new ParameterField(myName,myValueType,myDefaultValues,myPromptingText,mySnippet,myReportFKType));
        }
Exemplo n.º 18
0
 /// <summary></summary>
 public void AddInputItem(string promptingText, FieldValueType valueType, ArrayList currentValues, EnumType enumerationType, DefCat defCategory, ReportFKType fKType)
 {
     multInputItems.Add(new MultInputItem(promptingText, valueType, currentValues, enumerationType, defCategory, fKType));
 }