상속: LexImportField, ILexImportCustomField
예제 #1
0
        public ClsFieldDescription ClsFieldDescriptionWith(ClsFieldDescription fieldIn)
        {
            if (this is ILexImportCustomField && fieldIn != null)
            {
                LexImportCustomField licf = this as LexImportCustomField;
                // custom field case
                ClsCustomFieldDescription rvalc = new ClsCustomFieldDescription(
                    licf.Class,
                    licf.UIClass,
                    //licf.CustomFieldID,
                    licf.FLID,
                    licf.Big,
                    licf.WsSelector,

                    fieldIn.SFM,
                    licf.UIName,
                    licf.Signature,                     // NOT SURE !!!! ????  DataType,
                    fieldIn.Language,                   //"LANG IS STILL REQUIRED",//licf.Language,
                    false,
                    fieldIn.MeaningID                   // "MEANING ID STILL REQUIRED"	// licf.MeaningID
                    );
                return(rvalc);
            }
            else
            {
                // regular field case
                return(null);
            }
        }
예제 #2
0
        public ILexImportCustomField GetCustomField(LexImportCustomField cfIn)
        {
            if (m_customFields.ContainsKey(cfIn.CustomKey))
            {
//				if (m_customFieldsByGUID.ContainsKey(cfIn.CustomFieldID.ToString()))
                return(m_customFields[cfIn.CustomKey]);
//				throw new Exception("not sure here .... ???? ");
            }
            // if we find a match on the key, return that one,
            //  if we find a match on the guid, return that one,
            //   return null
            return(null);
        }
예제 #3
0
		public ILexImportCustomField GetCustomField(LexImportCustomField cfIn)
		{
			if (m_customFields.ContainsKey(cfIn.CustomKey))
			{
//				if (m_customFieldsByGUID.ContainsKey(cfIn.CustomFieldID.ToString()))
					return m_customFields[cfIn.CustomKey];
//				throw new Exception("not sure here .... ???? ");
			}
			// if we find a match on the key, return that one,
			//  if we find a match on the guid, return that one,
			//   return null
			return null;
		}