protected override List <object> GetDataSource()
        {
            WareHouseBLL     bll = new WareHouseBLL(AppSettings.Current.ConnStr);
            List <WareHouse> ret = null;

            if (SearchCondition == null)
            {
                ret = bll.GetItems(null).QueryObjects.ToList();
            }
            else
            {
                ret = bll.GetItems(SearchCondition).QueryObjects.ToList();
            }
            List <object> source = new List <object>();

            foreach (object o in ret)
            {
                source.Add(o);
            }
            return(source);
        }
Ejemplo n.º 2
0
        protected override CommandResult UpdateItem(object item)
        {
            WareHouseBLL bll = new WareHouseBLL(AppSettings.Current.ConnStr);

            return(bll.Update(item as WareHouse));
        }