예제 #1
0
        public ENDistributorsOrder Read(int id)
        {
            try
            {
                ENDistributorsOrder ret = new ENDistributorsOrder();

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

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

                Lines = ret.Lines;

                return(ret);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
예제 #2
0
        public List <ENDistributorsOrder> Filter(string where)
        {
            List <ENDistributorsOrder> ret = new List <ENDistributorsOrder>();
            DataTable table = cad.SelectWhere(where);

            try
            {
                foreach (DataRow row in table.Rows)
                {
                    ENDistributorsOrder course = new ENDistributorsOrder();
                    course.FromRow(row);
                    course.Lines = course.Lines;
                    ret.Add(course);
                }
                return(ret);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
예제 #3
0
        public List<ENDistributorsOrder> ReadAll()
        {
            List<ENDistributorsOrder> ret = new List<ENDistributorsOrder>();
            DataTable table = cad.SelectAll();

            try
            {

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

                }
                return ret;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
예제 #4
0
        public ENDistributorsOrder Read(int id)
        {
            try
            {
                ENDistributorsOrder ret = new ENDistributorsOrder();

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

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

                Lines = ret.Lines;

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