/// <summary> /// 初始化数据盒子 /// </summary> private void InitBoxOfComboBox() { this.cboxType.SelectedValuePath = "DictMark"; this.cboxType.DisplayMemberPath = "DictName"; this.cboxType.DataContext = PfmDictionaryBLL.ISelect("dict_type=1"); this.cboxYear.SelectedValuePath = "Value"; this.cboxYear.DisplayMemberPath = "Key"; this.cboxYear.DataContext = BuildPeriodicOfYear(ConfigTsit.YearOrigin); this.cboxReriod.SelectedValuePath = "Value"; this.cboxReriod.DisplayMemberPath = "Key"; this.cboxReriod.DataContext = DictionaryTsit.DefSelect; }
/// <summary> /// 获取所有数据 /// <remarks> /// 排序:字典类型、字典标识 /// </remarks> /// </summary> /// <returns></returns> public static IList <PfmDictionaryMDL> ISelect() { return(PfmDictionaryBLL.ISelect(null, "dict_type,dict_mark")); }