예제 #1
0
        private bool prmInmueble()
        {
            if (!ObjCnx.parametros(ParameterDirection.Input, "@id_emp", SqlDbType.Int, intCodEmp))
            {
                strError = ObjCnx.Error;
                return(false);
            }
            if (!ObjCnx.parametros(ParameterDirection.Input, "@cod", SqlDbType.Int, intCodInm))
            {
                strError = ObjCnx.Error;
                return(false);
            }
            if (!ObjCnx.parametros(ParameterDirection.Input, "@cod_inmueble", SqlDbType.NVarChar, strRefInm))
            {
                strError = ObjCnx.Error;
                return(false);
            }
            if (!ObjCnx.parametros(ParameterDirection.Input, "@id_tipo", SqlDbType.Int, intCodTInm))
            {
                strError = ObjCnx.Error;
                return(false);
            }
            if (!ObjCnx.parametros(ParameterDirection.Input, "@id_ubic", SqlDbType.Int, intCodLt))
            {
                strError = ObjCnx.Error;
                return(false);
            }
            if (!ObjCnx.parametros(ParameterDirection.Input, "@matricula", SqlDbType.NVarChar, strMatInm))
            {
                strError = ObjCnx.Error;
                return(false);
            }
            if (!ObjCnx.parametros(ParameterDirection.Input, "@id_asociado", SqlDbType.Int, intCodCnf))
            {
                strError = ObjCnx.Error;
                return(false);
            }
            if (!ObjCnx.parametros(ParameterDirection.Input, "@dir", SqlDbType.NVarChar, strDirInm))
            {
                strError = ObjCnx.Error;
                return(false);
            }
            if (!ObjCnx.parametros(ParameterDirection.Input, "@tel", SqlDbType.NVarChar, strTelInm))
            {
                strError = ObjCnx.Error;
                return(false);
            }
            if (!ObjCnx.parametros(ParameterDirection.Input, "@estrato", SqlDbType.NVarChar, strEstratoInm))
            {
                strError = ObjCnx.Error;
                return(false);
            }
            if (!ObjCnx.parametros(ParameterDirection.Input, "@ciclo", SqlDbType.NVarChar, strCicloInm))
            {
                strError = ObjCnx.Error;
                return(false);
            }
            if (!ObjCnx.parametros(ParameterDirection.Input, "@estado", SqlDbType.Int, intEstadoInm))
            {
                strError = ObjCnx.Error;
                return(false);
            }
            if (!ObjCnx.parametros(ParameterDirection.Input, "@id_emdc", SqlDbType.Int, intIDEmdC))
            {
                strError = ObjCnx.Error;
                return(false);
            }
            if (!ObjCnx.parametros(ParameterDirection.Input, "@id_emdu", SqlDbType.Int, intIDEmdU))
            {
                strError = ObjCnx.Error;
                return(false);
            }

            return(true);
        }