update 20240826
This commit is contained in:
@@ -21,6 +21,7 @@ namespace OnDoc.UIControls
|
||||
public partial class Serienbrief : SfForm
|
||||
{
|
||||
private int dokumenttypnr = 0;
|
||||
private int officevorlagenr = 0;
|
||||
private int profilnr = 0;
|
||||
public Serienbrief()
|
||||
{
|
||||
@@ -35,7 +36,6 @@ namespace OnDoc.UIControls
|
||||
this.Style.TitleBar.BackColor = Theaming.Titelbar();
|
||||
this.Style.TitleBar.ForeColor = Theaming.TitelFontColor();
|
||||
this.profilnr = profilnr;
|
||||
|
||||
}
|
||||
|
||||
private void Serienbrief_Load(object sender, EventArgs e)
|
||||
@@ -67,7 +67,8 @@ namespace OnDoc.UIControls
|
||||
cbboxverantwortlich.DataSource = db.dsdaten.Tables[0];
|
||||
cbboxverantwortlich.DisplayMember = "name";
|
||||
cbboxverantwortlich.ValueMember = "mitarbeiternr";
|
||||
cbboxverantwortlich.SelectedValue = AppParams.CurrentMitarbieter;}
|
||||
cbboxverantwortlich.SelectedValue = AppParams.CurrentMitarbieter;
|
||||
}
|
||||
|
||||
private void Refresh_Team()
|
||||
{
|
||||
@@ -128,12 +129,29 @@ namespace OnDoc.UIControls
|
||||
private void RibbonButtonNew_Click(object sender, EventArgs e)
|
||||
{
|
||||
OnDoc.DocMgmt.DokTypSelect DokTypSelect = new OnDoc.DocMgmt.DokTypSelect();
|
||||
DokTypSelect.vorlagentype = 1;
|
||||
DokTypSelect.ShowDialog(this);
|
||||
if (DokTypSelect.DialogResult == DialogResult.OK)
|
||||
{
|
||||
dokumenttypnr = DokTypSelect.dokumenttypnr;
|
||||
GrpDokumentInhalt.Enabled=true;
|
||||
update_serienbrief_details(true, dokumenttypnr, 0);
|
||||
}
|
||||
else { return; }
|
||||
else {
|
||||
this.GrpDokumentInhalt.Enabled = false;
|
||||
return; }
|
||||
}
|
||||
|
||||
private void update_serienbrief_details(bool newsb = false, int dokumenttypnr = 0, int sbnummer = 0)
|
||||
{
|
||||
DB db = new DB(AppParams.connectionstring);
|
||||
if (newsb)
|
||||
{
|
||||
db.Get_Tabledata("Select bezeichnung,office_vorlagenr from dokumenttyp where dokumenttypnr=" + dokumenttypnr.ToString(),false,true);
|
||||
this.txtbezeichnung.Text = db.dsdaten.Tables[0].Rows[0][0].ToString();
|
||||
officevorlagenr = Convert.ToInt32(db.dsdaten.Tables[0].Rows[0][1]);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user