private void btnOpslaan_Click(object sender, EventArgs e) { tblJg.jgRecord jgr = new tblJg.jgRecord(); jgr.Jgeg_Id = actueelJaarGegevensId; jgr.Jgeg_StatusId = 180002; tblSt st = new tblSt(); st.zoekStatusRecord("Status_Code = 180002"); jgr.Jgeg_DispStatus = st.lstStatusRecord[0].Status_Lang; jgr.Jgeg_Omschrijving = msktxtbxOmschrijving.Text; jgr.Jgeg_Begindatum = DateTime.Parse(msktxtbxBegindatum.Text); jgr.Jgeg_Einddatum = DateTime.Parse(msktxtbxEinddatum.Text); jgr.Jgeg_Mutatiedatum = DateTime.Now; jgr.Jgeg_Opmerking = msktxtbxOpmerking.Text; // Record saven tblJg jg = new tblJg(); jg.saveRecord(actueelJaarGegevensId, jgr); bDeleteRecord = true; this.jaargegevensTableAdapter.Fill(this._Cmbap_dataDataSet.Jaargegevens); bDeleteRecord = false; bNewRecord = false; bValuesChanges = false; setSaveButton(); }
private void btnOpslaan_Click(object sender, EventArgs e) { tblPd.pdRecord pdr = new tblPd.pdRecord(); pdr.Prod_Id = actueelProductId; pdr.Prod_StatusId = 170002; tblSt st = new tblSt(); st.zoekStatusRecord("Status_Code = 170002"); pdr.Prod_DispStatus = st.lstStatusRecord[0].Status_Lang; pdr.Prod_Naamkort = txtbxKorteNaam.Text; pdr.Prod_Naamlang = txtbxLangeNaam.Text; pdr.Prod_Kleur = txtbxKleur.Text; pdr.Prod_Code = txtbxCode.Text; pdr.Prod_Soort = cmbbxSoort.SelectedItem.ToString().Substring(0, 1); pdr.Prod_ActiefJN = (cmbbxActief.SelectedItem.ToString().ToString().Substring(0, 1) == "J" ? 1 : 0); pdr.Prod_Dispactief = cmbbxActief.SelectedItem.ToString(); pdr.Prod_Waarde = txtNaarDecimal(txtbxWaarde.Text); pdr.Prod_Aantaleenhedenperproduct = byte.Parse(txtbxEenhedenPerProduct.Text); pdr.Prod_Verzamelnaam = txtbxVerzamelnaam.Text; pdr.Prod_Waardepereenheid = txtNaarDecimal(txtbxWaardePerEenheid.Text); pdr.Prod_Mutatiedatum = DateTime.Now; pdr.Prod_Opmerking = txtbxOpmerking.Text; // Record saven tblPd pd = new tblPd(); pd.saveRecord(actueelProductId, pdr); bDeleteRecord = true; this.productTableAdapter.Fill(this._Cmbap_dataDataSet.Product); bDeleteRecord = false; bNewRecord = false; bValuesChanges = false; setSaveButton(); }