コード例 #1
0
        public ExecutionResult GetProductSerial(string sn)
        {
            var exeResult = RouteDAO.GetProductSerialInfo(sn);

            if (exeResult.Status)
            {
                var ds = (DataSet)exeResult.Anything;

                if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0)
                {
                    string productSerial = ds.Tables[0].Rows[0]["PRODUCT_SERIAL"].ToString();
                    exeResult.Anything = productSerial;
                }
            }
            return(exeResult);
        }