Ejemplo n.º 1
0
        public List<AssetDetail> ChkAssetavailAbility(string Barcode)
        {
            List<AssetDetail> AssdetailList = new List<AssetDetail>();
            try
            {
                CycleCount objCycleCount = new CycleCount();
                objCycleCount.RFTags = Barcode;

                DataTable dtasset = objCycleCount.ChkAssetavailAbility();

                foreach (DataRow drass in dtasset.Rows)
                {
                    AssetDetail objassetdetail = new AssetDetail();
                    objassetdetail.Barcode = (drass["TagID"]).ToString();
                    objassetdetail.Description = drass["Description"].ToString();
                    AssdetailList.Add(objassetdetail);
                }

            }
            catch (Exception ex)
            {
                _log.Error("Error:ChkAssetavailAbility:: " + ex.Message + Environment.NewLine + ex.StackTrace);
                ThrowFaultError(ex.Message, 200);
            }
            return AssdetailList;
        }