- AMD Ryzen 9 / 7 / 5 9***(X) "Zen 5" (AM5)
- Samsung Galaxy Tab S10 Ultra - más dimenzió
- NVIDIA GeForce RTX 5080 / 5090 (GB203 / 202)
- Canon EOS DSLR topic
- Intel Core i5 / i7 / i9 "Alder Lake-Raptor Lake/Refresh" (LGA1700)
- Forrmell.enn
- Vélemény: nem úgy tűnik, de Lip-Bu Tan most menti meg az Intelt
- AMD Navi Radeon™ RX 5xxx sorozat
- HiFi műszaki szemmel - sztereó hangrendszerek
- Hobby elektronika
Új hozzászólás Aktív témák
-
Cool Face
aktív tag
válasz
h1ght3chzor #6963 üzenetére
Szia.
A 4 db radioButton közül a kijelöltet tartalmazó text-et az adatbázisba.
RadioButton-ok:
Level 1 - radioButton_lvl1
Level 2 - radioButton_lvl2
Level 3 - radioButton_lvl3
Level 4 - radioButton_lvl4
Level 5 - radioButton_lvl5Ha a fentiek közül kijelölök egyet akkor azt a text-et menti el(Level 1, Level2 etc).
A lenti kódig jutottam el. Fölösleges dolgokat kitöröltem.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.OleDb;
namespace Honeywell_SDE_Application
{
public partial class PPAP_Create : Form
{
private OleDbConnection connection = new OleDbConnection();
public PPAP_Create()
{
InitializeComponent();
connection.ConnectionString = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\h109536\Documents\PPAPdatabase_excel.accdb;
Persist Security Info = False; ";
}
private void HWapp_Load(object sender, EventArgs e)
{
try
{
connection.Open();
check_connection.Text = "Database Connection Succesful!";
connection.Close();
}
catch (Exception ex)
{
MessageBox.Show("Error " + ex);
}
}
private void button3_Click(object sender, EventArgs e)
{
this.Hide();
new PPAP_Selection().Show();
}
private void button_submit_Click(object sender, EventArgs e)
{
try
{
connection.Open();
OleDbCommand command = new OleDbCommand();
command.Connection = connection;
command.CommandText = "Insert into PPAPdatabase ([PSW ID],[Part Name],[Part Number],[Part rev Level],[Drawing Number],[Drawing rev Level],[Comment (or Enovia No#)],[Supplier Name],[Date Created],[Owner],[Production Line],[Status],[Reason]) values('"+
txt_PSW_ID.Text +"','"+ txt_partname.Text +"','"+ txt_partnumber.Text +"', '"+ txt_partrevlvl.Text +"', '"+ txt_dwgnumber.Text +"', '"+ txt_dwgrev.Text +"', '"+ txt_comment.Text +"', '"+
txt_suppliername.Text +"','"+ dateTimePicker_datecreated.Text +"','"+ checkedListBox_owner.Text +"','"+ checkedListBox_prodline.Text +"', '"+ txt_status.Text + "', '"+ comboBox_PPAP.Text + "')";
command.ExecuteNonQuery();
MessageBox.Show("PPAP has been submitted");
connection.Close();
}
catch (Exception ex)
{
MessageBox.Show("Error " + ex);
}
}
private void radioButton_lvl1_CheckedChanged(object sender, EventArgs e)
{
}
private void radioButton_lvl2_CheckedChanged(object sender, EventArgs e)
{
}
private void radioButton_lvl3_CheckedChanged(object sender, EventArgs e)
{
}
private void radioButton_lvl4_CheckedChanged(object sender, EventArgs e)
{
}
private void radioButton_lvl5_CheckedChanged(object sender, EventArgs e)
{
}
}
}
Új hozzászólás Aktív témák
● ha kódot szúrsz be, használd a PROGRAMKÓD formázási funkciót!
- SZÉP Lenovo ThinkPad P15 G2 Tervező Laptop -75% 15,6" i9-11950H 64/2TB RTX A4000 8GB UHD OLED
- Szép! Lenovo Thinkpad T14s G2 Üzleti "Golyóálló" Laptop 14" -50% i7-1185G7 4Mag 16GB/512GB FHD IPS
- Eladó Apple MacBook Pro 13" A1706 (Late 2017, Silver - EMC 3163)
- Amazfit GTR 2 Classic okosóra dobozában töltőkábellel
- Mac mini M1 chip 8 magos CPU-val, 8 magos GPU-val
- 122 - Lenovo Legion Pro 5 (16ARX8) - AMD Ryzen 7 7745HX, RTX 4070 (48 hónap garancia!)
- HGST HUH721010AL5200 10TB 7.2k SAS HDD, DELL branded, nettó 38000Ft + ÁFA, 1 év garancia
- Nintendo Switch Pro Controller (19000 Ft / db)
- Lenovo Thinkpad L14 Gen 4 -14"FHD IPS - i5-1335U - 8GB - 256GB - Win11 - 2 év garancia - MAGYAR
- AKCIÓ! ASRock H310CM i3 9100F 8GB DDR4 240GB SSD 1TB HDD GTX 1060 3GB AeroCool Strike-X 500W
Állásajánlatok
Cég: Promenade Publishing House Kft.
Város: Budapest
Cég: PCMENTOR SZERVIZ KFT.
Város: Budapest