Exemple #1
0
        /// <summary>
        /// 药品类型
        /// </summary>
        /// <param name="comboBox"></param>
        public static void BindDrugTypeCmbBox3(ComboBox comboBox)
        {
            DrugShop.Entities.DrugType code     = new DrugShop.Entities.DrugType();
            IList <DrugType>           codeList = EAS.Services.ServiceContainer.GetService <IDrugTypeService>().GetDrugTypeList();

            comboBox.DataSource    = codeList;
            comboBox.ValueMember   = "Code";
            comboBox.DisplayMember = "Name";

            comboBox.Tag = codeList;
        }
Exemple #2
0
        public static IList <DrugType> GetDrugTypeList()
        {
            IList <DrugType> codeList = EAS.Services.ServiceContainer.GetService <IDrugTypeService>().GetDrugTypeList();

            DrugShop.Entities.DrugType item = new DrugShop.Entities.DrugType();
            item.Code = 0;
            item.Name = "全部";

            codeList.Insert(0, item);

            return(codeList);
        }