Dim Cnn As New Data.OleDB.OleDbConnection(Connections("ns_sys").ConnectionString)
Cnn.Open()
Dim adoCmd As New Data.OleDB.OleDbCommand("proc_tabom_constrast", Cnn)
adoCmd.CommandType = System.Data.CommandType.StoredProcedure
adoCmd.Parameters.Add("@bomType", System.Data.SqlDbType.NVarchar)
adoCmd.Parameters("@bomType").Value = "bom"
adoCmd.Parameters.Add("@bomnum", System.Data.SqlDbType.Int)
adoCmd.Parameters("@bomnum").Value = 0
adoCmd.Parameters.Add("@pid", System.Data.SqlDbType.NVarchar, 50)
\'adoCmd.Parameters("@pid").Value ="returnPid"
adoCmd.Parameters("@pid").Direction = System.Data.ParameterDirection.Output
adoCmd.ExecuteNonQuery()
output.show(adoCmd.Parameters("@pid").Value.ToString())