You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
2.0 KiB
69 lines
2.0 KiB
using DOCGEN.Klassen;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using edoka_dms;
|
|
using Syncfusion.XlsIO.Parser.Biff_Records;
|
|
using Syncfusion.DocIO.DLS;
|
|
using System.Data.SqlClient;
|
|
using System.Data;
|
|
using System.Runtime.CompilerServices;
|
|
using Model;
|
|
using Database;
|
|
|
|
namespace DOCGEN
|
|
{
|
|
|
|
public class DocGen
|
|
{
|
|
public edoka_dms.clsConnectionProvider conn_edoka = new edoka_dms.clsConnectionProvider();
|
|
private static readonly NLog.Logger Logger = NLog.LogManager.GetCurrentClassLogger();
|
|
public string DokumentID = "";
|
|
public string connectionstring = "";
|
|
public clsDocData DocData = new clsDocData();
|
|
DB db = new DB();
|
|
|
|
|
|
public void Lic()
|
|
{
|
|
// 25. string lickey = "Ngo9BigBOggjHTQxAR8/V1NCaF5cXmZCf1FpRmJGdld5fUVHYVZUTXxaS00DNHVRdkdnWXdecXRdQ2heUU13XUI="
|
|
//string lickey = "Ngo9BigBOggjHTQxAR8/V1NCaF5cXmZCf1FpRmJGdld5fUVHYVZUTXxaS00DNHVRdkdnWXZeeXRQR2NZUEZ2WkE=";
|
|
string lickey = "Ngo9BigBOggjHTQxAR8/V1NCaF1cXGJCf1FpRmJGdld5fUVHYVZUTXxaS00DNHVRdkdnWXZeeXRQR2ZfVEV2VkA=";
|
|
Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense(lickey);
|
|
}
|
|
public DocGen() {
|
|
Lic();
|
|
}
|
|
public DocGen(string Connectionstring)
|
|
{
|
|
this.connectionstring = Connectionstring;
|
|
this.DocData = DocData;
|
|
db.connectionstring = this.connectionstring;
|
|
Lic();
|
|
}
|
|
|
|
public string GenDocID(clsDocData docdata)
|
|
{
|
|
this.DocData = docdata;
|
|
if (DocData.UseEDOKA_Values.ToUpper() == "TRUE")
|
|
{
|
|
DokumentID=db.Create_EDOKA_Doc(this.DocData);
|
|
}
|
|
else { DokumentID = ""; };
|
|
return DokumentID;
|
|
}
|
|
|
|
public string Barcodetest(string dokumentid)
|
|
{
|
|
return "";
|
|
}
|
|
|
|
public string generate_pdf(string dokumentid)
|
|
{
|
|
return "";
|
|
}
|
|
}
|
|
}
|