Ejemplo n.º 1
0
        public JsonResult LoadGoodsByGoodsNo(string strGoodsNo)
        {
            string   strErrText;
            DDSystem dd   = new DDSystem();
            Goods    data = dd.LoadGoodsByGoodsNo(strGoodsNo, LoginAccountId, LoginStaffName, out strErrText);

            if (data == null)
            {
                return(Json(null, JsonRequestBehavior.AllowGet));
            }
            else
            {
                var ret = new
                {
                    Id          = data.Id,
                    Name        = data.Name,
                    Brand       = data.Brand,
                    SpecModel   = data.SpecModel,
                    GWeight     = data.GWeight,
                    Grade       = data.Grade,
                    Packing     = data.Packing,
                    PieceWeight = data.PieceWeight
                };

                return(Json(ret, JsonRequestBehavior.AllowGet));
            }
        }