private void cmbMjetId_SelectedIndexChanged(object Sender, VisionInfoSolutionLibrary.SelectedIndexChangedEventArgs e) { try { txtEmriIdentifikimi.Text = cmbMjetId.Kolone1.Text; } catch (SqlException ex) { VisionInfoSolutionLibrary.MessageBox.Show(this, ex); return; } catch (Exception ex) { VisionInfoSolutionLibrary.MessageBox.Show(this, ex); } }
private void cmbKategorite_SelectedIndexChanged_1(object Sender, VisionInfoSolutionLibrary.SelectedIndexChangedEventArgs e) { try { this.txtEmriKategoria.Text = this.cmbKategorite.Kolone1.Text; } catch (SqlException ex) { VisionInfoSolutionLibrary.MessageBox.Show(this, ex); return; } catch (Exception ex) { VisionInfoSolutionLibrary.MessageBox.Show(this, ex); } }
private void cmbPagesa_SelectedIndexChanged(object Sender, VisionInfoSolutionLibrary.SelectedIndexChangedEventArgs e) { try { int idFormaPagesa = Convert.ToInt32(this.cmbPagesa.Kolone2Vlere); InputController data = new InputController(); DataSet dsPagesa = data.KerkesaRead("ShfaqTeDhenaFormaPagesa", idFormaPagesa); this.txtEmriMod.Text = dsPagesa.Tables[0].Rows[0]["EMRI"].ToString(); string perqindja = Convert.ToDouble(dsPagesa.Tables[0].Rows[0]["PERQINDJA"]).ToString(); this.numPerqindjaMod.Text = perqindja; } catch (SqlException ex) { VisionInfoSolutionLibrary.MessageBox.Show(this, ex); return; } catch (Exception ex) { VisionInfoSolutionLibrary.MessageBox.Show(this, ex); } }
private void cmbDetyrime_SelectedIndexChanged_2(object Sender, VisionInfoSolutionLibrary.SelectedIndexChangedEventArgs e) { try { DataSet ds = null; int idLlojDetyrimi = Convert.ToInt32(this.cmbDetyrime.Kolone2Vlere); // vlera merret nga kombo e detyrimeve InputController data = new InputController(); ds = data.KerkesaRead("ShfaqLlojDetyriminEzgjedhur", idLlojDetyrimi); //mbushja e kontrolleve me vlerat e duhura this.txtEmriModifiko.Text = Convert.ToString(ds.Tables[0].Rows[0][0]); this.numCmimiModifiko.Text = Convert.ToString(ds.Tables[0].Rows[0][1]); } catch (SqlException ex) { VisionInfoSolutionLibrary.MessageBox.Show(this, ex); return; } catch (Exception ex) { VisionInfoSolutionLibrary.MessageBox.Show(this, ex); } }