예제 #1
0
파일: CestaCEN.cs 프로젝트: GsusBS/DSM
        public int New_()
        {
            CestaEN cestaEN = null;
            int     oid;

            //Initialized CestaEN
            cestaEN = new CestaEN();
            //Call to CestaCAD

            oid = _ICestaCAD.New_(cestaEN);
            return(oid);
        }
예제 #2
0
        public int New_(string p_usuario)
        {
            CestaEN cestaEN = null;
            int     oid;

            //Initialized CestaEN
            cestaEN = new CestaEN();

            if (p_usuario != null)
            {
                // El argumento p_usuario -> Property usuario es oid = false
                // Lista de oids id
                cestaEN.Usuario          = new CervezUAGenNHibernate.EN.CervezUA.UsuarioEN();
                cestaEN.Usuario.NUsuario = p_usuario;
            }

            //Call to CestaCAD

            oid = _ICestaCAD.New_(cestaEN);
            return(oid);
        }