Exemplo n.º 1
0
        public ENLineDistributorsOrder Read(int id)
        {
            try
            {
                ENLineDistributorsOrder ret = new ENLineDistributorsOrder();

                List <object> param = new List <object>();
                param.Add((object)id);

                ret.FromRow(cad.Select(param));

                return(ret);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Exemplo n.º 2
0
        public List <ENLineDistributorsOrder> Filter(string where)
        {
            List <ENLineDistributorsOrder> ret = new List <ENLineDistributorsOrder>();
            DataTable table = cad.SelectWhere(where);

            try
            {
                foreach (DataRow row in table.Rows)
                {
                    ENLineDistributorsOrder course = new ENLineDistributorsOrder();
                    course.FromRow(row);
                    ret.Add(course);
                }
                return(ret);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Exemplo n.º 3
0
        public List<ENLineDistributorsOrder> ReadAll()
        {
            List<ENLineDistributorsOrder> ret = new List<ENLineDistributorsOrder>();
            DataTable table = cad.SelectAll();

            try
            {

                foreach (DataRow row in table.Rows)
                {
                    ENLineDistributorsOrder course = new ENLineDistributorsOrder();
                    course.FromRow(row);
                    ret.Add(course);

                }
                return ret;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Exemplo n.º 4
0
        public ENLineDistributorsOrder Read(int id)
        {
            try
            {
                ENLineDistributorsOrder ret = new ENLineDistributorsOrder();

                List<object> param = new List<object>();
                param.Add((object)id);

                ret.FromRow(cad.Select(param));

                return ret;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }