public GUI_SUPLIER() { InitializeComponent(); BUS_Suplier bus_suplier = new BUS_Suplier(); String nextID = bus_suplier.nextID(); tbId.Text = nextID.ToString(); }
public void LoadComboBoxSuplier() { BUS_Suplier bus_suplier = new BUS_Suplier(); List <DTO_Suplier> listSuplier = bus_suplier.SelectAll(); cbSuplier.DataSource = listSuplier; cbSuplier.DisplayMember = "DISPLAYNAME"; cbSuplier.ValueMember = "ID"; }
private void btReset_Click_1(object sender, EventArgs e) { BUS_Suplier bus_suplier = new BUS_Suplier(); String id = bus_suplier.nextID(); tbId.Text = id.ToString(); tbName.Text = String.Empty; tbAddress.Text = String.Empty; tbPhoneNumber.Text = String.Empty; dtContract.Value = DateTime.Now; }
private void GUI_SUPLIER_Load(object sender, EventArgs e) { BUS_Suplier bus_suplier = new BUS_Suplier(); List <DTO_Suplier> listSuplier = bus_suplier.SelectAll(); dataGridSuplier.AutoGenerateColumns = false; dataGridSuplier.AllowUserToAddRows = false; dataGridSuplier.DataSource = listSuplier; ID.DataPropertyName = "ID"; DISPLAYNAME.DataPropertyName = "DISPLAYNAME"; ADDRESS.DataPropertyName = "ADDRESS"; PHONENUMBER.DataPropertyName = "PHONENUMBER"; CONTRACTDATE.DataPropertyName = "CONTRACTDATE"; }