public JsonResult SelEOContents(EO _param)
        {
            List <EO>    lEO    = EORepository.SelEOContentsOID(_param);
            List <EPart> lEPart = new List <EPart>();

            if (_param.Type == Common.Constant.EoConstant.TYPE_EBOM_LIST || _param.Type == Common.Constant.EoConstant.TYPE_MBOM_LIST)
            {
                lEO.ForEach(obj =>
                {
                    if (obj != null)
                    {
                        EPart eobj = EPartRepository.SelEPartObject(new EPart {
                            OID = obj.ToOID
                        });
                        eobj.RootOID = _param.RootOID;
                        eobj.Type    = _param.Type;
                        eobj.ToOID   = eobj.OID;
                        lEPart.Add(eobj);
                    }
                });
                return(Json(lEPart));
            }
            else
            {
                return(Json(lEO));
            }
        }
Beispiel #2
0
        public JsonResult SelEOContents(EO _param)
        {
            List <EO> lEO = EORepository.SelEOContentsOID(_param);

            return(Json(lEO));
        }