Esempio n. 1
0
 public UIElementDataListColumnDataRuleAbstract GetParameter()
 {
     FormElementDataListColumnDataRulesDev.RelationDataEntityDev dataRule = new FormElementDataListColumnDataRulesDev.RelationDataEntityDev();
     dataRule.DataEntityId  = this.SelectedDataEntityId;
     dataRule.DisplayItemId = this.TextDataItemId;
     dataRule.ValueItemId   = this.ValueDataItemId;
     return(dataRule);
 }
Esempio n. 2
0
 public void SetParameter(UIElementDataListColumnDataRuleAbstract dataRule)
 {
     FormElementDataListColumnDataRulesDev.RelationDataEntityDev rule = dataRule as FormElementDataListColumnDataRulesDev.RelationDataEntityDev;
     if (rule == null)
     {
         Debug.Assert(false, "FormElementDataColumnDataRuleAbstract 参数不正确");
         throw new ArgumentException();
     }
     this.SelectedDataEntityId = rule.DataEntityId;
     this.TextDataItemId       = rule.DisplayItemId;
     this.ValueDataItemId      = rule.ValueItemId;
 }