Update 20241118
This commit is contained in:
@@ -45,6 +45,16 @@ namespace OnDoc.UIControls
|
||||
|
||||
public string genertated_dokumentid { get; set; }
|
||||
|
||||
public bool ErstellungInOffice = false;
|
||||
public int vorlagenr = 0;
|
||||
public bool kopfzeile_generieren = false;
|
||||
public string barcode_zusatz = "";
|
||||
public int barcode_top = 0;
|
||||
public int barcode_left = 0;
|
||||
public int barcode_width = 0;
|
||||
public int barcode_height = 0;
|
||||
public int barcode_horizontal = 0;
|
||||
|
||||
public UCAllgemeineDokumentParam()
|
||||
{
|
||||
InitializeComponent();
|
||||
@@ -105,6 +115,17 @@ namespace OnDoc.UIControls
|
||||
this.cbfaksimile.Enabled = Convert.ToBoolean(dr["unterschrift_faksimile"]) == true;
|
||||
this.cbfaksimile.Checked = false;
|
||||
this.cbformularohneunterschrfit.Checked = false;
|
||||
try {
|
||||
if (Convert.ToBoolean(dr["ErstellungInOffice"]) == true){
|
||||
this.ErstellungInOffice = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
ErstellungInOffice = false;
|
||||
}
|
||||
}
|
||||
catch { ErstellungInOffice=false; }
|
||||
|
||||
if (dr["Versandstrasse_moeglich"].ToString() == "") { docgendata.versandstrasse_moeglich = false; }
|
||||
else
|
||||
{
|
||||
@@ -123,6 +144,28 @@ namespace OnDoc.UIControls
|
||||
catch { interop = false; }
|
||||
barcode = Convert.ToBoolean(dr["Vertrag"])== true;
|
||||
|
||||
try
|
||||
{
|
||||
if (dr["physichses_archiv"].ToString() == "1") { this.barcode_zusatz = " U"; }
|
||||
if (dr["physichses_archiv"].ToString() == "2") { this.barcode_zusatz = " F"; }
|
||||
}
|
||||
catch { }
|
||||
|
||||
|
||||
db.Get_Tabledata("Select office_vorlagenr,kopfzeile_generieren, bcpt,bcpl, bcw, bch, bchorizontal from office_vorlage where office_vorlagenr="+dr["office_vorlagenr"].ToString(),false,true);
|
||||
this.vorlagenr = Convert.ToInt32(dr["office_vorlagenr"]);
|
||||
this.kopfzeile_generieren = false;
|
||||
this.barcode_left = Convert.ToInt32(dr["bcpl"]);
|
||||
this.barcode_top = Convert.ToInt32(dr["bcpt"]);
|
||||
this.barcode_width = Convert.ToInt32(dr["bcw"]);
|
||||
this.barcode_height = Convert.ToInt32(dr["bch"]);
|
||||
this.barcode_horizontal = Convert.ToInt32(dr["bchorizontal"]);
|
||||
try
|
||||
{
|
||||
if (Convert.ToBoolean(db.dsdaten.Tables[0].Rows[0][1]) == true) { this.kopfzeile_generieren = true; }
|
||||
}
|
||||
catch { }
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -173,7 +216,7 @@ namespace OnDoc.UIControls
|
||||
gridDokwertlist.QueryImageCellStyle += gridDokwertlist_QueryImageCellStyle;
|
||||
gridDokwertlist.Columns["userinterface"].FilterPredicates.Add(new Syncfusion.Data.FilterPredicate() { FilterType=Syncfusion.Data.FilterType.Equals,FilterValue=true });
|
||||
|
||||
db = null;
|
||||
db = null;
|
||||
Refresh_Team();
|
||||
this.cbboxteam.SelectedIndex = 0;
|
||||
}
|
||||
@@ -365,6 +408,7 @@ namespace OnDoc.UIControls
|
||||
docgendata.dokumentdatum = DateDokumentDatum.DateTimeText.ToString();
|
||||
docgendata.bezeichnung = txtbezeichnung.Text;
|
||||
docgendata.erstellungsart = Erstellungsart.DokumentPreview;
|
||||
if (ErstellungInOffice == true) { docgendata.erstellungsart = Erstellungsart.ErstellungInOffice; }
|
||||
if (rbDokumentbearbeiten.Checked) { docgendata.erstellungsart = Erstellungsart.DokumentBearbeiten; }
|
||||
if (rbEditlater.Checked) { docgendata.erstellungsart = Erstellungsart.DokumentSpäterBearbeiten; }
|
||||
if (rbasPDF.Checked) { docgendata.erstellungsart = Erstellungsart.DokumentAlsPDF; }
|
||||
@@ -392,6 +436,15 @@ namespace OnDoc.UIControls
|
||||
if (docgendata.digitaleunterschrift == true) { dokdata.As_Faksimile = "True"; } else { dokdata.As_Faksimile = "False"; }
|
||||
dokdata.dokumentwerte = docgendata.dokumentwerte;
|
||||
dokdata.Barcode = barcode;
|
||||
dokdata.VorlageNr = this.vorlagenr.ToString();
|
||||
dokdata.Kopfzeile_generieren = this.kopfzeile_generieren;
|
||||
dokdata.barcode_zusatz = barcode_zusatz;
|
||||
dokdata.barcode_left = barcode_left;
|
||||
dokdata.barcode_width = barcode_width;
|
||||
dokdata.barcode_top = barcode_top;
|
||||
dokdata.barcode_height = barcode_height;
|
||||
dokdata.barcode_zusatz = barcode_zusatz;
|
||||
|
||||
|
||||
}
|
||||
private void sfButton1_Click(object sender, EventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user