예제 #1
0
        public void EnvioSMS(string phone, string message, int tipo)
        {
            var objCommand = GetSqlCommand("pNLI_RegistrarEnvioSms");

            InputParameterAdd.Char(objCommand, "numero", phone);
            InputParameterAdd.Varchar(objCommand, "mensaje", message);
            InputParameterAdd.Int(objCommand, "tipoUsuario", tipo);
            ExecuteNonQuery(objCommand);
        }
예제 #2
0
        public string RecepcionarValidarCodigoMuestra(string muestraCodificacion, int idestablecimiento, int idUsuario, string metodoKit)
        {
            string result     = string.Empty;
            var    objCommand = GetSqlCommand("pNLU_OrdenMuestraRecepcionyValidacionMasivo");

            InputParameterAdd.Varchar(objCommand, "codificacion", muestraCodificacion);
            InputParameterAdd.Int(objCommand, "idEstablecimiento", idestablecimiento);
            InputParameterAdd.Int(objCommand, "idUsuario", idUsuario);
            InputParameterAdd.Char(objCommand, "metodoKit", metodoKit);
            OutputParameterAdd.Varchar(objCommand, "Resultado", 250);
            ExecuteNonQuery(objCommand);
            return((string)objCommand.Parameters["@Resultado"].Value);
        }