public JsonResult DelEOContents(List <EO> _param)
        {
            int resultOid = 0;

            try
            {
                DaoFactory.BeginTransaction();
                if (_param != null && _param.Count > 0)
                {
                    _param.ForEach(obj =>
                    {
                        if (obj != null)
                        {
                            EORepository.delEOContents(obj);
                        }
                    });
                }
                DaoFactory.Commit();
            }
            catch (Exception ex)
            {
                DaoFactory.Rollback();
                return(Json(new ResultJsonModel {
                    isError = true, resultMessage = ex.Message, resultDescription = ex.ToString()
                }));
            }
            return(Json(resultOid));
        }
        public JsonResult InsECOContents(List <EO> _param, EO delData)
        {
            int resultOid = 0;

            try
            {
                DaoFactory.BeginTransaction();
                if (delData != null && delData.Type != null && delData.RootOID != null)
                {
                    EORepository.delEOContents(delData);
                }
                //dobj.TdmxOID = DObjectRepository.SelTdmxOID(new DObject { Type = DocumentContant.TYPE_DOCUMENT });
                if (_param != null && _param.Count > 0)
                {
                    _param.ForEach(obj =>
                    {
                        if (obj != null)
                        {
                            EORepository.InsEOContents(obj);
                        }
                    });
                }

                //_param.DocType = _param.DocType;
                //_param.Title = _param.Title;
                //_param.Eo_No = _param.Eo_No;


                DaoFactory.Commit();
            }
            catch (Exception ex)
            {
                DaoFactory.Rollback();
                return(Json(new ResultJsonModel {
                    isError = true, resultMessage = ex.Message, resultDescription = ex.ToString()
                }));
            }
            return(Json(resultOid));
        }