Initial Comit
This commit is contained in:
56
DOCGEN/clsDocGen.cs
Normal file
56
DOCGEN/clsDocGen.cs
Normal file
@@ -0,0 +1,56 @@
|
||||
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 EDOKA_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();
|
||||
EDOKA_DB db = new EDOKA_DB();
|
||||
|
||||
|
||||
public void Lic()
|
||||
{
|
||||
Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("Ngo9BigBOggjHTQxAR8/V1NBaF5cXmZCf1FpRmJGdld5fUVHYVZUTXxaS00DNHVRdkdnWXxccXVWR2VdUUZ3VkM=");
|
||||
}
|
||||
public DocGen() {
|
||||
Lic();
|
||||
}
|
||||
public DocGen(string Connectionstring)
|
||||
{
|
||||
this.connectionstring = Connectionstring;
|
||||
this.DocData = DocData;
|
||||
db.connectionstring = this.connectionstring;
|
||||
Lic();
|
||||
}
|
||||
|
||||
public void GenDoc(clsDocData docdata)
|
||||
{
|
||||
this.DocData = docdata;
|
||||
if (DocData.UseEDOKA_Values.ToUpper() == "TRUE")
|
||||
{
|
||||
DokumentID=db.Create_EDOKA_Doc(this.DocData);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user