Beispiel #1
0
        public void Start()
        {
            ProductAdapter pa        = new ProductAdapter(new SqlDb(QT.Entities.Server.ConnectionString));
            long           companyID = eventGetCompanyCheck();

            if (companyID > 0)
            {
                DataTable tblProduct = pa.GetTopLastChangeProduct(companyID, 3);
                foreach (DataRow rowProduct in tblProduct.Rows)
                {
                    string productName  = rowProduct["Name"].ToString();
                    long   productPrice = Convert.ToInt64(rowProduct["Price"]);
                }
            }
        }