private void writePersonalData() { PersonalData s = SelectedData.getPersonalData(); wsTemplate.Cells[3, 3].Value2 = " " + s.getCompanyName(); //company name wsTemplate.Cells[4, 3].Value2 = " " + s.getCity() + " " + s.getStreet(); //city wsTemplate.Cells[5, 3].Value2 = " " + s.getPsc(); //psc wsTemplate.Cells[6, 3].Value2 = " " + s.getState(); //state wsTemplate.Cells[3, 5].Value2 = " Meno: " + s.getName() + " " + s.getLastName(); //seler name wsTemplate.Cells[4, 5].Value2 = " IČO: " + s.getIco(); //ico wsTemplate.Cells[5, 5].Value2 = " DIČ: " + s.getDic(); //dic wsTemplate.Cells[6, 5].Value2 = "IČ DPH: " + s.getIcDPH(); //ic dph wsTemplate.Cells[4, 8].Value2 = s.getPhoneNumber(); //phone number wsTemplate.Cells[5, 8].Value2 = s.getEmail(); //email adress wsTemplate.Cells[6, 8].Value2 = s.getEmail2();; //second email adress wsTemplate.Cells[8, 2].Value2 = "Dodací list č: " + s.getLastID() + "/" + s.getYearOFLastID(); //Dodaci list č: wsTemplate.Cells[54, 3].Value2 = " " + s.getCompanyName(); //company name wsTemplate.Cells[55, 3].Value2 = " " + s.getCity() + " " + s.getStreet(); //city wsTemplate.Cells[56, 3].Value2 = " " + s.getPsc(); //psc wsTemplate.Cells[57, 3].Value2 = " " + s.getState(); //state wsTemplate.Cells[54, 5].Value2 = " Meno: " + s.getName() + " " + s.getLastName(); //seler name wsTemplate.Cells[55, 5].Value2 = " IČO: " + s.getIco(); //ico wsTemplate.Cells[56, 5].Value2 = " DIČ: " + s.getDic(); //dic wsTemplate.Cells[57, 5].Value2 = "IČ DPH: " + s.getIcDPH(); //ic dph wsTemplate.Cells[55, 8].Value2 = s.getPhoneNumber(); //phone number wsTemplate.Cells[56, 8].Value2 = s.getEmail(); //email adress wsTemplate.Cells[57, 8].Value2 = s.getEmail2();; //second email adress }
private void selerComboBox_SelectedIndexChanged(object sender, EventArgs e) { PersonalData pd = ex.getPersonalDataList()[selerComboBox.SelectedIndex]; SelerIdtextBox.Text = (Convert.ToInt32(pd.getLastID()) + 1).ToString(); yeartextBox.Text = pd.getYearOFLastID().Substring(pd.getYearOFLastID().Length - 2); canPrint(); }