Ejemplo n.º 1
0
        public List <TC_OA_SmallGoodsDetailModel> GetTC_OA_SmallGoodsDetailListOne(int Code)
        {
            List <TC_OA_SmallGoodsDetailModel> list = new List <TC_OA_SmallGoodsDetailModel>();

            using (SqlConnection connection = new SqlConnection(FunctionRule.GetConnectionString()))
            {
                try
                {
                    connection.Open();
                    TC_OA_SmallGoodsDetailBLL lbll = new TC_OA_SmallGoodsDetailBLL();
                    list.Add(lbll.GetModel(Code, connection));
                    connection.Close();
                }
                catch (SqlException exception)
                {
                    throw exception;
                }
            }
            return(list);
        }