/// <summary> /// 获取库别列表 /// </summary> /// <param name="clientid"></param> /// <returns></returns> public List <WareHouseType> GetWarehouseTypes(string clientid) { var dal = new WarehouseDAL(); DataTable dt = dal.GetWarehouseTypes(clientid); List <WareHouseType> list = new List <WareHouseType>(); foreach (DataRow item in dt.Rows) { WareHouseType model = new WareHouseType(); model.FillData(item); list.Add(model); } return(list); }