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

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