Initial Comit
This commit is contained in:
38
DOCGEN/clsDocGet.cs
Normal file
38
DOCGEN/clsDocGet.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
using EDOKA_Database;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DOCGEN
|
||||
{
|
||||
public class clsGetDoc
|
||||
{
|
||||
private string connectionstring = "";
|
||||
public clsGetDoc(string Connectionstring)
|
||||
{
|
||||
this.connectionstring = Connectionstring;
|
||||
}
|
||||
public string GetDocAsPDF(string Docid)
|
||||
{
|
||||
string doc = GetDoc(Docid);
|
||||
return "";
|
||||
}
|
||||
public string GetDoc(string Docid)
|
||||
{
|
||||
EDOKA_DB db = new EDOKA_DB(connectionstring);
|
||||
db.GetDocumentAsBase64(Docid);
|
||||
if (Docid != "")
|
||||
{
|
||||
return "";
|
||||
}
|
||||
else
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user