update 20250727
This commit is contained in:
@@ -25,7 +25,7 @@ using System.Text;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
|
||||
namespace API_NetFramework.Controllers
|
||||
namespace API_NetFramework.Controllers
|
||||
{
|
||||
public class TestParam
|
||||
{
|
||||
@@ -46,7 +46,7 @@ namespace API_NetFramework.Controllers
|
||||
}
|
||||
try
|
||||
{
|
||||
APILogging.Log((HttpRequestMessage)Request, "Start GetDocument DokumentID:"+dokid, LogLevelType.Debug);
|
||||
APILogging.Log((HttpRequestMessage)Request, "Start GetDocument DokumentID:" + dokid, LogLevelType.Debug);
|
||||
|
||||
DOCGEN.DocGet gd = new DocGet(connectionstring);
|
||||
clsdok dok = new clsdok("", "", "", "");
|
||||
@@ -60,7 +60,7 @@ namespace API_NetFramework.Controllers
|
||||
APILogging.Log((HttpRequestMessage)Request, e.Message, LogLevelType.Error);
|
||||
return Content(HttpStatusCode.InternalServerError, e.Message);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
//public object pageCollection { get; set; }
|
||||
@@ -87,7 +87,7 @@ namespace API_NetFramework.Controllers
|
||||
APILogging.Log((HttpRequestMessage)Request, "Start GetDocumentPDF DokumentID:" + dokid, LogLevelType.Debug);
|
||||
|
||||
DOCGEN.DocGet gd = new DocGet(connectionstring);
|
||||
clsdok dok = new clsdok("", "", "", "");
|
||||
clsdok dok = new clsdok("", "", "", "");
|
||||
dok = gd.GetDocAsPDF(dokid);
|
||||
dok.extension = "pdf";
|
||||
dok.doktype = "P";
|
||||
@@ -100,7 +100,7 @@ namespace API_NetFramework.Controllers
|
||||
APILogging.Log((HttpRequestMessage)Request, e.Message, LogLevelType.Error);
|
||||
return Content(HttpStatusCode.InternalServerError, e.Message);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
@@ -118,21 +118,22 @@ namespace API_NetFramework.Controllers
|
||||
|
||||
var key = rmsg.Headers.Authorization.Parameter.ToString();
|
||||
string result = Request.Content.ReadAsStringAsync().Result;
|
||||
DocCreate doccreate=new DocCreate();
|
||||
DocCreate doccreate = new DocCreate();
|
||||
doccreate = JsonConvert.DeserializeObject<DocCreate>(result);
|
||||
clsDocData dokdata = new clsDocData();
|
||||
string dokumentid = "";
|
||||
|
||||
string CheckResult = "";
|
||||
CheckResult = CreateDoc_Verify(ref doccreate);
|
||||
if (CheckResult != "")
|
||||
{
|
||||
return BadRequest(CheckResult);
|
||||
if (CheckResult != "")
|
||||
{
|
||||
return BadRequest(CheckResult);
|
||||
}
|
||||
|
||||
Database.DB db = new DB(connectionstring);
|
||||
db.Get_Tabledata("Select * from dokumenttyp where dokumenttypnr=" + doccreate.VorlagenTypID, false, true);
|
||||
System.Data.DataRow dr = db.dsdaten.Tables[0].Rows[0];
|
||||
dokdata.Barcode = Convert.ToBoolean(dr["Vertrag"]) == true;
|
||||
db.Get_Tabledata("Select beschreibung from physischesarchiv where physischesarchivnr = " + dr["physisches_archiv"].ToString(), false, true);
|
||||
dokdata.barcode_zusatz = db.dsdaten.Tables[0].Rows[0][0].ToString();
|
||||
if (dokdata.barcode_zusatz != "") { dokdata.barcode_zusatz = " " + dokdata.barcode_zusatz; }
|
||||
@@ -146,17 +147,71 @@ namespace API_NetFramework.Controllers
|
||||
}
|
||||
catch { }
|
||||
|
||||
dokdata.barcode_left = Convert.ToInt32(db.dsdaten.Tables[0].Rows[0]["bcpl"]);
|
||||
dokdata.barcode_top = Convert.ToInt32(db.dsdaten.Tables[0].Rows[0]["bcpt"]);
|
||||
dokdata.barcode_width = Convert.ToInt32(db.dsdaten.Tables[0].Rows[0]["bcw"]);
|
||||
dokdata.barcode_height = Convert.ToInt32(db.dsdaten.Tables[0].Rows[0]["bch"]);
|
||||
dokdata.barcode_horizontal = Convert.ToInt32(db.dsdaten.Tables[0].Rows[0]["bchorizontal"]);
|
||||
dokdata.barcode_type = db.dsdaten.Tables[0].Rows[0]["BarcodeType"].ToString();
|
||||
dokdata.barcode_content = db.dsdaten.Tables[0].Rows[0]["DatamatrixContent"].ToString();
|
||||
if (dokdata.Barcode)
|
||||
{
|
||||
dokdata.barcode_left = Convert.ToInt32(db.dsdaten.Tables[0].Rows[0]["bcpl"]);
|
||||
dokdata.barcode_top = Convert.ToInt32(db.dsdaten.Tables[0].Rows[0]["bcpt"]);
|
||||
dokdata.barcode_width = Convert.ToInt32(db.dsdaten.Tables[0].Rows[0]["bcw"]);
|
||||
dokdata.barcode_height = Convert.ToInt32(db.dsdaten.Tables[0].Rows[0]["bch"]);
|
||||
dokdata.barcode_horizontal = Convert.ToInt32(db.dsdaten.Tables[0].Rows[0]["bchorizontal"]);
|
||||
dokdata.barcode_type = db.dsdaten.Tables[0].Rows[0]["BarcodeType"].ToString();
|
||||
dokdata.barcode_content = db.dsdaten.Tables[0].Rows[0]["DatamatrixContent"].ToString();
|
||||
string sql = "";
|
||||
sql = "select bcpt, bcpl, bcw, bch, bchorizontal from OnDocBarcodeMpping ";
|
||||
sql = sql + "where orig_bcpt = " + dokdata.barcode_top.ToString() + " and orig_bcpl=" + dokdata.barcode_left.ToString() + " ";
|
||||
sql = sql + "and orig_bcw=" + dokdata.barcode_width.ToString() + " and orig_bch=" + dokdata.barcode_height.ToString();
|
||||
db.Get_Tabledata(sql, false, true);
|
||||
if (db.dsdaten.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
dokdata.barcode_left = Convert.ToInt32(db.dsdaten.Tables[0].Rows[0]["bcpl"]);
|
||||
dokdata.barcode_top = Convert.ToInt32(db.dsdaten.Tables[0].Rows[0]["bcpt"]);
|
||||
dokdata.barcode_width = Convert.ToInt32(db.dsdaten.Tables[0].Rows[0]["bcw"]);
|
||||
dokdata.barcode_height = Convert.ToInt32(db.dsdaten.Tables[0].Rows[0]["bch"]);
|
||||
}
|
||||
if (dokdata.barcode_type == "1")
|
||||
{
|
||||
DB dB = new DB(connectionstring);
|
||||
dB.clear_parameter();
|
||||
dB.add_parameter("@dokumentid", dokumentid);
|
||||
dB.add_parameter("@DokumentidBR", "");
|
||||
dB.add_parameter("@BARCODEFONTNAME", "");
|
||||
dB.add_parameter("@BARCODEFONTSIZE", "");
|
||||
dB.add_parameter("@BarcodeKantenlaenge", "");
|
||||
dB.Get_Tabledata("sp_get_OnDoc_barcodetype_and_value", true, false);
|
||||
dokdata.barcode_content = dB.dsdaten.Tables[0].Rows[0][1].ToString();
|
||||
dokdata.barcode_formatn = dB.dsdaten.Tables[0].Rows[0][3].ToString();
|
||||
dokdata.barcode_text = dB.dsdaten.Tables[0].Rows[0][4].ToString();
|
||||
dokdata.barcode_kantenlaenge = dB.dsdaten.Tables[0].Rows[0][5].ToString();
|
||||
dokdata.Zusatz_Font = dB.dsdaten.Tables[0].Rows[0][6].ToString();
|
||||
dokdata.Zusatz_FontSize = Convert.ToInt32(dB.dsdaten.Tables[0].Rows[0][7]);
|
||||
dokdata.barcode_width = Convert.ToInt32(dB.dsdaten.Tables[0].Rows[0][8]);
|
||||
dokdata.barcode_height = Convert.ToInt32(dB.dsdaten.Tables[0].Rows[0][9]);
|
||||
|
||||
//dokdata.barcode_type= dB.dsdaten.Tables[0].Rows[0][3].ToString();
|
||||
|
||||
sql = "select bcpt, bcpl, bcw, bch, bchorizontal from OnDocBarcodeMpping ";
|
||||
sql = sql + "where orig_bcpt = " + dokdata.barcode_top.ToString() + " and orig_bcpl=" + dokdata.barcode_left.ToString() + " ";
|
||||
sql = sql + "and orig_bcw=" + dokdata.barcode_width.ToString() + " and orig_bch=" + dokdata.barcode_height.ToString();
|
||||
dB.Get_Tabledata(sql, false, true);
|
||||
if (dB.dsdaten.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
Logging.Logging.Debug("Barcode-Übersteuerung" + dokdata.DokumenttypNr.ToString(), "Dokumenterstellung", "");
|
||||
dokdata.barcode_left = Convert.ToInt32(dB.dsdaten.Tables[0].Rows[0]["bcpl"]);
|
||||
dokdata.barcode_top = Convert.ToInt32(dB.dsdaten.Tables[0].Rows[0]["bcpt"]);
|
||||
dokdata.barcode_width = Convert.ToInt32(dB.dsdaten.Tables[0].Rows[0]["bcw"]);
|
||||
dokdata.barcode_height = Convert.ToInt32(dB.dsdaten.Tables[0].Rows[0]["bch"]);
|
||||
}
|
||||
}
|
||||
db.Get_Tabledata("Select * from ondoc_appparams", false, true);
|
||||
dokdata.barcode_font = db.dsdaten.Tables[0].Rows[0]["barcodefont"].ToString();
|
||||
dokdata.barcode_fontsize = Convert.ToInt32(db.dsdaten.Tables[0].Rows[0]["barcodefontsize"].ToString());
|
||||
dokdata.Zusatz_Font = db.dsdaten.Tables[0].Rows[0]["Zusatzfont"].ToString();
|
||||
dokdata.Zusatz_FontSize = Convert.ToInt32(db.dsdaten.Tables[0].Rows[0]["ZusatzfontSize"].ToString());
|
||||
dokdata.barcode_textposition = db.dsdaten.Tables[0].Rows[0]["barcodetextposition"].ToString(); ;
|
||||
}
|
||||
Model.clsdocgendata docgendata = new Model.clsdocgendata();
|
||||
DataTable dokwertlist = new DataTable();
|
||||
dokwertlist = db.Get_DokumentWertList("", Convert.ToInt32(doccreate.VorlagenTypID),1);
|
||||
dokwertlist = db.Get_DokumentWertList("", Convert.ToInt32(doccreate.VorlagenTypID), 1);
|
||||
|
||||
docgendata.dokumentwerte = dokwertlist;
|
||||
docgendata.partnernr = doccreate.Partnernr;
|
||||
@@ -169,7 +224,7 @@ namespace API_NetFramework.Controllers
|
||||
docgendata.ersteller = db.Get_Mitarbeiternr(doccreate.TGNrErsteller).ToString();
|
||||
docgendata.team = db.Get_Teamnr(docgendata.ersteller).ToString();
|
||||
docgendata.digitaleunterschrift = false;
|
||||
docgendata.frormularOhneUnterschrift = doccreate.OhneUnterschrift=="Yes";
|
||||
docgendata.frormularOhneUnterschrift = doccreate.OhneUnterschrift == "Yes";
|
||||
docgendata.zustaendigkube = db.Get_Mitarbeiternr(doccreate.TGNrVerantwortlich).ToString();
|
||||
docgendata.status = "-1";
|
||||
docgendata.dokumentdatum = DateTime.Now.ToString("dd.MM.yyyy");
|
||||
@@ -179,7 +234,7 @@ namespace API_NetFramework.Controllers
|
||||
if (doccreate.Result_FileType == "WORD") { docgendata.erstellungsart = Erstellungsart.DokumentBearbeiten; } else { docgendata.erstellungsart = Erstellungsart.DokumentAlsPDF; }
|
||||
if (docgendata.verantwortlich == "0") { docgendata.verantwortlich = docgendata.ersteller; }
|
||||
|
||||
|
||||
|
||||
dokdata.PartnerNr = docgendata.partnernr;
|
||||
dokdata.UseEDOKA_Values = "True";
|
||||
dokdata.DokumenttypNr = docgendata.dokumenttypnr;
|
||||
@@ -208,26 +263,29 @@ namespace API_NetFramework.Controllers
|
||||
dokdata.Unterschrift_Links = "-1";
|
||||
dokdata.Unterschrift_Rechts = "-1";
|
||||
}
|
||||
if (doccreate.FaksimileUnterschrift == "Yes")
|
||||
if (doccreate.FaksimileUnterschrift == "Yes")
|
||||
{
|
||||
dokdata.As_Faksimile = "True"; dokdata.sign = true; docgendata.digitaleunterschrift = true;
|
||||
dokdata.As_Faksimile = "True"; dokdata.sign = true; docgendata.digitaleunterschrift = true;
|
||||
if (dokdata.Unterschrift_Links != "-1") { dokdata.approval1 = 1; }
|
||||
if (dokdata.Unterschrift_Rechts != "-1") { dokdata.approval2 = 1; }
|
||||
if (dokdata.Unterschrift_Links!="-1" && dokdata.Unterschrift_Rechts == "-1")
|
||||
if (dokdata.Unterschrift_Links != "-1" && dokdata.Unterschrift_Rechts == "-1")
|
||||
{
|
||||
if (dokdata.Ersteller == dokdata.Unterschrift_Links)
|
||||
{
|
||||
dokdata.approved = 1;
|
||||
} else {
|
||||
dokdata.sign = false;
|
||||
if (dokdata.Ersteller == dokdata.Unterschrift_Links)
|
||||
{
|
||||
dokdata.approved = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
dokdata.sign = false;
|
||||
dokdata.toapprove = 1;
|
||||
dokdata.approved = 0;
|
||||
dokdata.approval1 = 0;
|
||||
dokdata.approval2 = 1;
|
||||
docgendata.erstellungsart = Erstellungsart.DokumentBearbeiten;
|
||||
}
|
||||
|
||||
} else
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
docgendata.erstellungsart = Erstellungsart.DokumentBearbeiten;
|
||||
dokdata.toapprove = 1;
|
||||
@@ -235,19 +293,19 @@ namespace API_NetFramework.Controllers
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
dokdata.APIValues = doccreate.APIValues;
|
||||
|
||||
|
||||
if (doccreate.PrintLogo == "Yes") { dokdata.PrintLogo = true; } else { dokdata.PrintLogo = false; }
|
||||
if (docgendata.erstellungsart == Erstellungsart.DokumentAlsPDF) { dokdata.Result_as_PDF = "True"; } else { dokdata.Result_as_PDF = "False"; }
|
||||
if (docgendata.digitaleunterschrift == true) { dokdata.As_Faksimile = "True"; } else { dokdata.As_Faksimile = "False"; }
|
||||
|
||||
|
||||
dokumentid = db.Create_EDOKA_Doc(dokdata, false, "");
|
||||
dokdata.Dokumentid=dokumentid;
|
||||
|
||||
dokdata.Dokumentid = dokumentid;
|
||||
|
||||
DOCGEN.Generator.DocGenerator_from_EDOKA Generator = new DOCGEN.Generator.DocGenerator_from_EDOKA(this.connectionstring, OwnHost, key.ToString());
|
||||
clsdok dok = new clsdok("", "", "", "");
|
||||
dok = Generator.Generate_Doc_EDOKA(dokumentid, ref dokdata,false,0,false,false);
|
||||
dok = Generator.Generate_Doc_EDOKA(dokumentid, ref dokdata, false, 0, false, false);
|
||||
db.Save_To_DB(dokumentid, "", dok.dokument);
|
||||
APILogging.Log((HttpRequestMessage)Request, "Ende GenDoc DokumentID:" + dokumentid, LogLevelType.Debug);
|
||||
APILogging.DocLog((HttpRequestMessage)Request, doccreate.Partnernr, "Dokument über API erstellt", dokumentid, LogLevelType.Info);
|
||||
@@ -259,10 +317,11 @@ namespace API_NetFramework.Controllers
|
||||
clsVersandstrasse vs = new clsVersandstrasse();
|
||||
string vsdoc = "";
|
||||
vsdoc = vs.Prepare_PDF(dokumentid, "", connectionstring, OwnHost, key.ToString(), imagepath);
|
||||
|
||||
|
||||
Versandpaket vp = new Versandpaket();
|
||||
vp.partnernr = Convert.ToInt32(docgendata.partnernr);
|
||||
vp.GASAdresse = doccreate.GAS_Adresse;
|
||||
if (vp.GASAdresse.ToString().Trim() == "") { vp.GAS="";} else { vp.GAS="true";}
|
||||
vp.Versandoption = doccreate.Versand_Option; ;
|
||||
List<Versanddokument> vdoc = new List<Versanddokument>();
|
||||
Versanddokument vd = new Versanddokument(dokumentid, doccreate.Partnernr + " - " + dokdata.Bezeichnung, doccreate.Partnernr);
|
||||
@@ -272,14 +331,14 @@ namespace API_NetFramework.Controllers
|
||||
vp.finaldoc = vsdoc;
|
||||
vp.send_onbase_doc = true;
|
||||
vp.verified = true;
|
||||
send_vs(ref vp, dokdata.Ersteller,doccreate.Versand_Direkt=="Yes",OwnHost,key.ToString(),dokumentid,doccreate.Partnernr);
|
||||
send_vs(ref vp, dokdata.Ersteller, doccreate.Versand_Direkt == "Yes", OwnHost, key.ToString(), dokumentid, doccreate.Partnernr);
|
||||
|
||||
|
||||
}
|
||||
if (doccreate.ConfirmationMail == "Yes")
|
||||
{
|
||||
|
||||
string message = "Dokument '" + doccreate.Bezeichnung + "' für Partner " + doccreate.Partnernr + " erstellt."+Environment.NewLine;
|
||||
|
||||
string message = "Dokument '" + doccreate.Bezeichnung + "' für Partner " + doccreate.Partnernr + " erstellt." + Environment.NewLine;
|
||||
if (doccreate.Result_Versandstrasse == "Yes")
|
||||
{
|
||||
if (doccreate.Versand_Direkt == "Yes")
|
||||
@@ -296,7 +355,7 @@ namespace API_NetFramework.Controllers
|
||||
return Ok(dokumentid);
|
||||
|
||||
}
|
||||
private void send_vs(ref Versandpaket vp, string mitarbeiternr,bool direktversenden, string url, string key, string dokumentid, string partnernr)
|
||||
private void send_vs(ref Versandpaket vp, string mitarbeiternr, bool direktversenden, string url, string key, string dokumentid, string partnernr)
|
||||
{
|
||||
string jsonstring = JsonConvert.SerializeObject(vp);
|
||||
|
||||
@@ -335,7 +394,7 @@ namespace API_NetFramework.Controllers
|
||||
}
|
||||
|
||||
string URL = url + "api/Send_Versandstrasse?paketid=" + paketid.ToString();
|
||||
|
||||
|
||||
|
||||
|
||||
WebRequest request;
|
||||
@@ -362,7 +421,7 @@ namespace API_NetFramework.Controllers
|
||||
}
|
||||
if (response.ToString().Contains("*archiviert"))
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -374,7 +433,7 @@ namespace API_NetFramework.Controllers
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Logging.DocLog.Info("Direktversand nicht möglich: "+ex.Message, "OnDoc-API", dokumentid, partnernr, "");
|
||||
Logging.DocLog.Info("Direktversand nicht möglich: " + ex.Message, "OnDoc-API", dokumentid, partnernr, "");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -402,8 +461,8 @@ namespace API_NetFramework.Controllers
|
||||
if (!(ParamCheck("yesno", doccreate.ConfirmationMail))) { return "Parameter ConfirmationMail " + doccreate.ConfirmationMail + " ist ungültig"; }
|
||||
if (!(ParamCheck("versandoption", doccreate.Versand_Option))) { return "Versandoption " + doccreate.Versand_Option + " ist ungültig"; }
|
||||
if (doccreate.ConfirmationMail.ToUpper() == "YES" && doccreate.ConfirmationMailAddress.ToString() != "") { return "E-Mailadresse für Confirmation fehlt"; }
|
||||
if (doccreate.TGNrUnterschriftLinks.ToString()=="") { doccreate.TGNrUnterschriftLinks = "-1"; }
|
||||
if (doccreate.TGNrUnterschriftRechts.ToString() == "") { doccreate.TGNrUnterschriftRechts= "-1"; }
|
||||
if (doccreate.TGNrUnterschriftLinks.ToString() == "") { doccreate.TGNrUnterschriftLinks = "-1"; }
|
||||
if (doccreate.TGNrUnterschriftRechts.ToString() == "") { doccreate.TGNrUnterschriftRechts = "-1"; }
|
||||
if (doccreate.FaksimileUnterschrift.ToUpper() == "YES")
|
||||
{
|
||||
if (doccreate.TGNrUnterschriftLinks.ToString() == "-1") { return "Faksimile Unterschrift benötigt mit den Parameter TGUnterschriftLinks"; }
|
||||
@@ -421,20 +480,20 @@ namespace API_NetFramework.Controllers
|
||||
if (doccreate.Result_Versandstrasse == "Yes")
|
||||
{
|
||||
if (ParamCheck("doktypversandstrasse", doccreate.VorlagenTypID) == false) { return "Vorlagentyp " + doccreate.VorlagenTypID + " ist nicht für die Versandstrasse konfiguriert"; }
|
||||
if (doccreate.TGNrUnterschriftLinks.ToLower()!="-1" && doccreate.TGNrUnterschriftRechts.ToString() != "-1") { return "Versandstrasse mit zwei Unterschriften kann nicht automatisch angesteuert werden"; }
|
||||
if (doccreate.Versand_Option=="") { return "Versandoption fehlt (A_Post, B1_Post, B2_Post"; }
|
||||
}
|
||||
if (doccreate.TGNrUnterschriftLinks.ToLower() != "-1" && doccreate.TGNrUnterschriftRechts.ToString() != "-1") { return "Versandstrasse mit zwei Unterschriften kann nicht automatisch angesteuert werden"; }
|
||||
if (doccreate.Versand_Option == "") { return "Versandoption fehlt (A_Post, B1_Post, B2_Post"; }
|
||||
}
|
||||
return "";
|
||||
}
|
||||
catch (Exception ex) { return ex.Message; }
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
[HttpPost]
|
||||
[Route("API/GenDoc")]
|
||||
public IHttpActionResult GenDoc(string Partnernr, String Dokumenttypnr, string TGCreator="", string TGResp="", string TGUL="", string TGUR="", string Faksimile="", string FoU="", string PrintLogo="")
|
||||
public IHttpActionResult GenDoc(string Partnernr, String Dokumenttypnr, string TGCreator = "", string TGResp = "", string TGUL = "", string TGUR = "", string Faksimile = "", string FoU = "", string PrintLogo = "")
|
||||
{
|
||||
if (SecuringWebApiUsingApiKey.Middleware.ApiKeyMiddleware.Authorized((HttpRequestMessage)Request, tokenfunction) == false)
|
||||
{
|
||||
@@ -442,7 +501,7 @@ namespace API_NetFramework.Controllers
|
||||
}
|
||||
try
|
||||
{
|
||||
APILogging.Log((HttpRequestMessage)Request, "Start GenDoc " , LogLevelType.Debug);
|
||||
APILogging.Log((HttpRequestMessage)Request, "Start GenDoc ", LogLevelType.Debug);
|
||||
|
||||
if (!(ParamCheck("partnernr", Partnernr))) { return BadRequest("Partnernr " + Partnernr + " ist ungültig"); }
|
||||
if (!(ParamCheck("dokumenttyp", Dokumenttypnr))) { return BadRequest("Dokumenttyp " + Dokumenttypnr + " ist ungültig"); }
|
||||
@@ -453,7 +512,7 @@ namespace API_NetFramework.Controllers
|
||||
if (!(ParamCheck("faksimile", Faksimile))) { return BadRequest("Parameter Faxsimile " + Faksimile + " ist ungültig"); }
|
||||
if (!(ParamCheck("formohneunterschrift", FoU))) { return BadRequest("Parameter Form ohne Unterschrift " + FoU + " ist ungültig"); }
|
||||
if (!(ParamCheck("printlogo", PrintLogo))) { return BadRequest("Parameter PrintLogo " + PrintLogo + " ist ungültig"); }
|
||||
|
||||
|
||||
|
||||
|
||||
Database.DB db = new DB(connectionstring);
|
||||
@@ -480,6 +539,8 @@ namespace API_NetFramework.Controllers
|
||||
if (docgendata.verantwortlich == "0") { docgendata.verantwortlich = docgendata.ersteller; }
|
||||
|
||||
clsDocData dokdata = new clsDocData();
|
||||
|
||||
//Barcode-Parameter von Dokumenttyp
|
||||
dokdata.PartnerNr = docgendata.partnernr;
|
||||
dokdata.UseEDOKA_Values = "True";
|
||||
dokdata.DokumenttypNr = docgendata.dokumenttypnr;
|
||||
@@ -499,12 +560,12 @@ namespace API_NetFramework.Controllers
|
||||
|
||||
string dokumentid = "";
|
||||
dokumentid = db.Create_EDOKA_Doc(dokdata, false, "");
|
||||
|
||||
dokdata.Dokumentid = dokumentid;
|
||||
DOCGEN.Generator.DocGenerator_from_EDOKA Generator = new DOCGEN.Generator.DocGenerator_from_EDOKA(this.connectionstring);
|
||||
clsdok dok = new clsdok("", "", "", "");
|
||||
dok = Generator.Generate_Doc_EDOKA(dokumentid, ref dokdata);
|
||||
db.Save_To_DB(dokumentid, "", dok.dokument);
|
||||
APILogging.Log((HttpRequestMessage)Request, "Ende GenDoc DokumentID:"+dokumentid, LogLevelType.Debug);
|
||||
APILogging.Log((HttpRequestMessage)Request, "Ende GenDoc DokumentID:" + dokumentid, LogLevelType.Debug);
|
||||
|
||||
return Ok(dokumentid);
|
||||
}
|
||||
@@ -514,14 +575,14 @@ namespace API_NetFramework.Controllers
|
||||
return Content(HttpStatusCode.InternalServerError, e.Message);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
private bool ParamCheck(string ParamType, string ParamValue)
|
||||
{
|
||||
DB db = new DB(connectionstring);
|
||||
try
|
||||
{
|
||||
|
||||
|
||||
switch (ParamType)
|
||||
{
|
||||
case "partnernr":
|
||||
@@ -573,6 +634,6 @@ namespace API_NetFramework.Controllers
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -111,10 +111,13 @@ namespace API_NetFramework.Controllers
|
||||
byte[] imageBytes = m.ToArray();
|
||||
imgnew.Dispose();
|
||||
m.Dispose();
|
||||
//yte[] imageArray = System.IO.File.ReadAllBytes(newfilename);
|
||||
// string base64ImageRepresentation = Convert.ToBase64String(imageArray);
|
||||
System.IO.File.Delete(newfilename);
|
||||
iimg.Dispose();
|
||||
iimg = null;
|
||||
imgnew = null;
|
||||
//return Ok(base64ImageRepresentation);
|
||||
return Ok(Convert.ToBase64String(imageBytes));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@ using System.Configuration;
|
||||
using SecuringWebApiUsingApiKey.Middleware;
|
||||
using System.Text;
|
||||
using System.Net.Mail;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace OnDocAPI_NetFramework.Controllers
|
||||
{
|
||||
@@ -58,7 +59,7 @@ namespace OnDocAPI_NetFramework.Controllers
|
||||
if (Convert.ToInt32(db.dsdaten.Tables[0].Rows[0][3]) == 0)
|
||||
{
|
||||
db = null;
|
||||
return Content(HttpStatusCode.OK, empfaenger + ": Mail gem. MA-Einstelung nicht zugestellt");
|
||||
return Content(HttpStatusCode.OK, empfaenger + ": Mail gem. MA-Einstellung nicht zugestellt");
|
||||
}
|
||||
empfaenger = db.dsdaten.Tables[0].Rows[0][0].ToString();
|
||||
|
||||
@@ -186,6 +187,63 @@ namespace OnDocAPI_NetFramework.Controllers
|
||||
return Content(HttpStatusCode.InternalServerError, e.Message);
|
||||
}
|
||||
}
|
||||
[HttpPost]
|
||||
[Route("API/SendHTMLMail")]
|
||||
public IHttpActionResult SendMailManual()
|
||||
{
|
||||
string result = Request.Content.ReadAsStringAsync().Result;
|
||||
Model.EMail email = new Model.EMail();
|
||||
email = JsonConvert.DeserializeObject<Model.EMail>(result);
|
||||
if (Regex.IsMatch(email.empfaenger, @"^\d+$") == false && !email.empfaenger.ToUpper().Contains("@TKB.CH"))
|
||||
{
|
||||
return Content(HttpStatusCode.Forbidden, email.empfaenger + ": Email nicht bei der TKB - Mail nicht versandt");
|
||||
}
|
||||
APILogging.Log((HttpRequestMessage)Request, "Mailversand: " + email.empfaenger + "" + email.betreff, LogLevelType.Debug);
|
||||
if (SecuringWebApiUsingApiKey.Middleware.ApiKeyMiddleware.Authorized((HttpRequestMessage)Request, tokenfunction) == false)
|
||||
{
|
||||
return Content(HttpStatusCode.Unauthorized, "Invalid Token or API-Key");
|
||||
}
|
||||
email = JsonConvert.DeserializeObject<Model.EMail>(result);
|
||||
if (Regex.IsMatch(email.empfaenger, @"^\d+$") == false && !email.empfaenger.ToUpper().Contains("@TKB.CH"))
|
||||
{
|
||||
return Content(HttpStatusCode.Forbidden, email.empfaenger + ": Email nicht bei der TKB - Mail nicht versandt");
|
||||
}
|
||||
string s = "";
|
||||
|
||||
try
|
||||
{
|
||||
MailMessage mail = new MailMessage();
|
||||
SmtpClient SmtpServer = new SmtpClient();
|
||||
mail.To.Add(email.empfaenger);
|
||||
mail.From = new MailAddress("OnDoc@tkb.ch");
|
||||
mail.Subject = email.betreff;
|
||||
mail.IsBodyHtml = true;
|
||||
mail.Body = email.message;
|
||||
SmtpServer.Host = "smtp.tgcorp.ch";
|
||||
SmtpServer.Port = 25;
|
||||
SmtpServer.DeliveryMethod = System.Net.Mail.SmtpDeliveryMethod.Network;
|
||||
try
|
||||
{
|
||||
SmtpServer.Send(mail);
|
||||
APILogging.Log((HttpRequestMessage)Request, "SMTPMail Versand: " + email.empfaenger, LogLevelType.Debug);
|
||||
return Content(HttpStatusCode.OK, email.empfaenger + ": Mail versandt");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
APILogging.Log((HttpRequestMessage)Request, "Mail Versand NOK: " + ex.Message + " " + email.empfaenger, LogLevelType.Debug);
|
||||
if (ex.InnerException != null)
|
||||
{
|
||||
APILogging.Log((HttpRequestMessage)Request, "Mail Versand NOK - Exception Inner: " + ex.InnerException, LogLevelType.Debug);
|
||||
}
|
||||
return Content(HttpStatusCode.InternalServerError, ex.Message);
|
||||
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
APILogging.Log((HttpRequestMessage)Request, "Mail Versand NOK: " + e.Message + " " + s, LogLevelType.Debug);
|
||||
return Content(HttpStatusCode.InternalServerError, e.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
<Project>
|
||||
<PropertyGroup>
|
||||
<_PublishTargetUrl>E:\Software-Projekte\OnDoc\PubServices\OnDoc</_PublishTargetUrl>
|
||||
<History>True|2025-07-21T13:11:25.9501591Z||;True|2025-07-21T13:01:29.5444866+02:00||;True|2025-07-21T10:19:00.3579413+02:00||;True|2025-07-21T08:53:15.8022664+02:00||;True|2025-07-21T08:52:13.5024447+02:00||;True|2025-07-20T22:02:07.7503979+02:00||;True|2025-06-18T21:46:07.0469838+02:00||;True|2025-06-18T12:17:09.8417440+02:00||;True|2025-06-18T11:06:43.5839212+02:00||;True|2025-05-06T12:58:55.8720511+02:00||;True|2025-05-05T10:30:22.0524225+02:00||;True|2025-05-05T09:37:27.1162038+02:00||;True|2025-05-04T13:37:01.8401491+02:00||;True|2025-04-14T15:32:13.3923265+02:00||;True|2025-03-27T09:55:34.9678501+01:00||;True|2025-03-27T07:47:45.1288274+01:00||;True|2025-03-26T19:03:04.7550972+01:00||;True|2025-02-27T19:20:43.3755758+01:00||;True|2025-02-27T18:15:21.2843332+01:00||;True|2025-02-25T19:05:51.2823294+01:00||;True|2025-02-25T19:04:29.0810473+01:00||;True|2025-02-21T10:28:09.2279895+01:00||;True|2025-02-21T09:59:33.3258979+01:00||;True|2025-02-12T12:49:01.5618262+01:00||;True|2025-02-09T14:47:25.8660147+01:00||;True|2025-02-09T12:40:23.8730229+01:00||;True|2025-02-05T14:41:27.6196364+01:00||;True|2025-02-04T22:19:44.0470841+01:00||;True|2025-02-04T21:33:03.4165210+01:00||;True|2025-02-02T20:06:51.6815543+01:00||;True|2025-01-20T10:17:24.5425008+01:00||;True|2025-01-19T16:20:16.1036874+01:00||;True|2025-01-19T16:19:11.5720999+01:00||;True|2025-01-12T14:24:46.2550852+01:00||;True|2025-01-12T14:00:23.9205001+01:00||;True|2025-01-07T15:08:24.2722613+01:00||;True|2025-01-06T09:25:16.5522864+01:00||;True|2024-12-22T16:49:54.0855447+01:00||;True|2024-12-08T09:59:39.7127943+01:00||;True|2024-12-08T09:26:52.1924006+01:00||;True|2024-12-02T09:50:13.5426444+01:00||;True|2024-12-01T18:53:55.8128003+01:00||;True|2024-11-26T19:32:44.7379810+01:00||;True|2024-11-25T16:02:25.7013060+01:00||;True|2024-11-24T18:56:32.4321643+01:00||;True|2024-11-24T18:48:11.3494435+01:00||;True|2024-11-24T17:50:10.7679996+01:00||;True|2024-11-22T08:35:58.1296657+01:00||;True|2024-11-13T17:47:13.0183160+01:00||;True|2024-11-13T17:46:36.5183689+01:00||;True|2024-11-11T13:42:23.6578245+01:00||;True|2024-11-09T12:11:00.0777236+01:00||;True|2024-11-09T11:54:51.8503924+01:00||;</History>
|
||||
<History>True|2025-07-27T10:13:11.7201345Z||;True|2025-07-23T12:31:01.1003759+02:00||;True|2025-07-23T11:05:44.2579070+02:00||;True|2025-07-23T10:23:34.5089684+02:00||;True|2025-07-23T09:24:38.1420693+02:00||;True|2025-07-23T07:42:17.0908668+02:00||;True|2025-07-21T15:11:25.9501591+02:00||;True|2025-07-21T13:01:29.5444866+02:00||;True|2025-07-21T10:19:00.3579413+02:00||;True|2025-07-21T08:53:15.8022664+02:00||;True|2025-07-21T08:52:13.5024447+02:00||;True|2025-07-20T22:02:07.7503979+02:00||;True|2025-06-18T21:46:07.0469838+02:00||;True|2025-06-18T12:17:09.8417440+02:00||;True|2025-06-18T11:06:43.5839212+02:00||;True|2025-05-06T12:58:55.8720511+02:00||;True|2025-05-05T10:30:22.0524225+02:00||;True|2025-05-05T09:37:27.1162038+02:00||;True|2025-05-04T13:37:01.8401491+02:00||;True|2025-04-14T15:32:13.3923265+02:00||;True|2025-03-27T09:55:34.9678501+01:00||;True|2025-03-27T07:47:45.1288274+01:00||;True|2025-03-26T19:03:04.7550972+01:00||;True|2025-02-27T19:20:43.3755758+01:00||;True|2025-02-27T18:15:21.2843332+01:00||;True|2025-02-25T19:05:51.2823294+01:00||;True|2025-02-25T19:04:29.0810473+01:00||;True|2025-02-21T10:28:09.2279895+01:00||;True|2025-02-21T09:59:33.3258979+01:00||;True|2025-02-12T12:49:01.5618262+01:00||;True|2025-02-09T14:47:25.8660147+01:00||;True|2025-02-09T12:40:23.8730229+01:00||;True|2025-02-05T14:41:27.6196364+01:00||;True|2025-02-04T22:19:44.0470841+01:00||;True|2025-02-04T21:33:03.4165210+01:00||;True|2025-02-02T20:06:51.6815543+01:00||;True|2025-01-20T10:17:24.5425008+01:00||;True|2025-01-19T16:20:16.1036874+01:00||;True|2025-01-19T16:19:11.5720999+01:00||;True|2025-01-12T14:24:46.2550852+01:00||;True|2025-01-12T14:00:23.9205001+01:00||;True|2025-01-07T15:08:24.2722613+01:00||;True|2025-01-06T09:25:16.5522864+01:00||;True|2024-12-22T16:49:54.0855447+01:00||;True|2024-12-08T09:59:39.7127943+01:00||;True|2024-12-08T09:26:52.1924006+01:00||;True|2024-12-02T09:50:13.5426444+01:00||;True|2024-12-01T18:53:55.8128003+01:00||;True|2024-11-26T19:32:44.7379810+01:00||;True|2024-11-25T16:02:25.7013060+01:00||;True|2024-11-24T18:56:32.4321643+01:00||;True|2024-11-24T18:48:11.3494435+01:00||;True|2024-11-24T17:50:10.7679996+01:00||;True|2024-11-22T08:35:58.1296657+01:00||;True|2024-11-13T17:47:13.0183160+01:00||;True|2024-11-13T17:46:36.5183689+01:00||;True|2024-11-11T13:42:23.6578245+01:00||;True|2024-11-09T12:11:00.0777236+01:00||;True|2024-11-09T11:54:51.8503924+01:00||;</History>
|
||||
<LastFailureDetails />
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
@@ -82,10 +82,10 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
<publishTime>04/09/2024 19:25:14</publishTime>
|
||||
</File>
|
||||
<File Include="bin/BarcodeLib.dll">
|
||||
<publishTime>07/21/2025 10:04:07</publishTime>
|
||||
<publishTime>07/27/2025 11:44:11</publishTime>
|
||||
</File>
|
||||
<File Include="bin/BarcodeLib.pdb">
|
||||
<publishTime>07/21/2025 10:04:07</publishTime>
|
||||
<publishTime>07/27/2025 11:44:11</publishTime>
|
||||
</File>
|
||||
<File Include="bin/CSVNET.dll">
|
||||
<publishTime>02/28/2025 10:40:17</publishTime>
|
||||
@@ -94,10 +94,10 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
<publishTime>02/28/2025 10:40:17</publishTime>
|
||||
</File>
|
||||
<File Include="bin/Database.dll">
|
||||
<publishTime>07/21/2025 08:53:09</publishTime>
|
||||
<publishTime>07/27/2025 11:37:16</publishTime>
|
||||
</File>
|
||||
<File Include="bin/Database.pdb">
|
||||
<publishTime>07/21/2025 08:53:09</publishTime>
|
||||
<publishTime>07/27/2025 11:37:16</publishTime>
|
||||
</File>
|
||||
<File Include="bin/de/System.Net.Http.Formatting.resources.dll">
|
||||
<publishTime>10/20/2023 22:35:02</publishTime>
|
||||
@@ -130,13 +130,13 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
<publishTime>10/20/2023 22:35:04</publishTime>
|
||||
</File>
|
||||
<File Include="bin/DOCGEN.dll">
|
||||
<publishTime>07/21/2025 15:11:24</publishTime>
|
||||
<publishTime>07/27/2025 12:13:10</publishTime>
|
||||
</File>
|
||||
<File Include="bin/DOCGEN.dll.config">
|
||||
<publishTime>12/23/2024 22:17:43</publishTime>
|
||||
</File>
|
||||
<File Include="bin/DOCGEN.pdb">
|
||||
<publishTime>07/21/2025 15:11:24</publishTime>
|
||||
<publishTime>07/27/2025 12:13:10</publishTime>
|
||||
</File>
|
||||
<File Include="bin/FastReport.Bars.dll">
|
||||
<publishTime>11/27/2023 09:49:58</publishTime>
|
||||
@@ -214,10 +214,10 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
<publishTime>04/11/2022 19:09:46</publishTime>
|
||||
</File>
|
||||
<File Include="bin/Model.dll">
|
||||
<publishTime>07/21/2025 08:53:03</publishTime>
|
||||
<publishTime>07/27/2025 11:29:37</publishTime>
|
||||
</File>
|
||||
<File Include="bin/Model.pdb">
|
||||
<publishTime>07/21/2025 08:53:03</publishTime>
|
||||
<publishTime>07/27/2025 11:29:37</publishTime>
|
||||
</File>
|
||||
<File Include="bin/MW6.SDK.dll">
|
||||
<publishTime>08/19/2014 21:33:57</publishTime>
|
||||
@@ -250,16 +250,16 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
<publishTime>02/28/2025 10:40:16</publishTime>
|
||||
</File>
|
||||
<File Include="bin/OnDocOffice.dll">
|
||||
<publishTime>07/21/2025 15:11:24</publishTime>
|
||||
<publishTime>07/27/2025 12:13:10</publishTime>
|
||||
</File>
|
||||
<File Include="bin/OnDocOffice.pdb">
|
||||
<publishTime>07/21/2025 15:11:24</publishTime>
|
||||
<publishTime>07/27/2025 12:13:10</publishTime>
|
||||
</File>
|
||||
<File Include="bin/OnDoc_NetFramework.dll">
|
||||
<publishTime>07/21/2025 15:11:25</publishTime>
|
||||
<publishTime>07/27/2025 12:13:10</publishTime>
|
||||
</File>
|
||||
<File Include="bin/OnDoc_NetFramework.pdb">
|
||||
<publishTime>07/21/2025 15:11:25</publishTime>
|
||||
<publishTime>07/27/2025 12:13:10</publishTime>
|
||||
</File>
|
||||
<File Include="bin/Owin.dll">
|
||||
<publishTime>11/13/2012 13:19:34</publishTime>
|
||||
@@ -454,10 +454,10 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
<publishTime>10/20/2023 22:33:58</publishTime>
|
||||
</File>
|
||||
<File Include="bin/vbBarcodes.dll">
|
||||
<publishTime>07/18/2025 15:47:10</publishTime>
|
||||
<publishTime>07/22/2025 10:15:24</publishTime>
|
||||
</File>
|
||||
<File Include="bin/vbBarcodes.pdb">
|
||||
<publishTime>07/18/2025 15:47:10</publishTime>
|
||||
<publishTime>07/22/2025 10:15:24</publishTime>
|
||||
</File>
|
||||
<File Include="bin/VBFileManagement.dll">
|
||||
<publishTime>03/28/2025 14:01:17</publishTime>
|
||||
@@ -466,16 +466,16 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
<publishTime>03/28/2025 14:01:17</publishTime>
|
||||
</File>
|
||||
<File Include="bin/VBOffice.dll">
|
||||
<publishTime>07/18/2025 15:47:10</publishTime>
|
||||
<publishTime>07/22/2025 10:15:24</publishTime>
|
||||
</File>
|
||||
<File Include="bin/VBOffice.pdb">
|
||||
<publishTime>07/18/2025 15:47:10</publishTime>
|
||||
<publishTime>07/22/2025 10:15:24</publishTime>
|
||||
</File>
|
||||
<File Include="bin/Versandstrasse.dll">
|
||||
<publishTime>07/18/2025 15:47:09</publishTime>
|
||||
<publishTime>07/22/2025 10:15:24</publishTime>
|
||||
</File>
|
||||
<File Include="bin/Versandstrasse.pdb">
|
||||
<publishTime>07/18/2025 15:47:09</publishTime>
|
||||
<publishTime>07/22/2025 10:15:24</publishTime>
|
||||
</File>
|
||||
<File Include="bin/WebActivatorEx.dll">
|
||||
<publishTime>10/05/2016 15:11:52</publishTime>
|
||||
@@ -670,7 +670,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
<publishTime>06/03/2024 08:11:55</publishTime>
|
||||
</File>
|
||||
<File Include="Web.config">
|
||||
<publishTime>07/20/2025 22:02:06</publishTime>
|
||||
<publishTime>07/23/2025 07:42:15</publishTime>
|
||||
</File>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -35,7 +35,7 @@
|
||||
<add key="URI" value="http://" />
|
||||
<add key="ArchivierungAktiv" value="True"></add>
|
||||
<add key="ArchivierungNoAktivMessage" value="Aufgrund von technischen Umstellung ist die Archivierung aktuell nicht aktiv." />
|
||||
<add key ="OwnHost" value="https://localhost:44303/"/>
|
||||
<add key ="OwnHost" value="https://localhost:44334/"/>
|
||||
<add key="VSImagePath" value="E:\Software-Projekte\OnDoc\" />
|
||||
</appSettings>
|
||||
<connectionStrings>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -35,7 +35,7 @@
|
||||
<add key="URI" value="http://" />
|
||||
<add key="ArchivierungAktiv" value="True"></add>
|
||||
<add key="ArchivierungNoAktivMessage" value="Aufgrund von technischen Umstellung ist die Archivierung aktuell nicht aktiv." />
|
||||
<add key ="OwnHost" value="https://localhost:44303/"/>
|
||||
<add key ="OwnHost" value="https://localhost:44334/"/>
|
||||
<add key="VSImagePath" value="E:\Software-Projekte\OnDoc\" />
|
||||
</appSettings>
|
||||
<connectionStrings>
|
||||
|
||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@@ -297,7 +297,6 @@ E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\obj\Debug\API_NetF.7D617477.Up
|
||||
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\obj\Debug\OnDoc_NetFramework.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\obj\Debug\OnDoc_NetFramework.pdb
|
||||
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\OnDocOffice.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\OfficePrinter.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\BarcodeLib.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\VBOffice.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\vbBarcodes.dll
|
||||
@@ -308,11 +307,8 @@ E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\FastReport.Compat.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\FastReport.Bars.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\FastReport.DataVisualization.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\FastReport.Editor.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\DOCGEN.pdb
|
||||
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\DOCGEN.xml
|
||||
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\DOCGEN.dll.config
|
||||
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\OnDocOffice.pdb
|
||||
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\OfficePrinter.pdb
|
||||
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\BarcodeLib.pdb
|
||||
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\VBOffice.pdb
|
||||
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\VBOffice.xml
|
||||
@@ -321,3 +317,7 @@ E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\vbBarcodes.xml
|
||||
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\FastReport.xml
|
||||
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\Versandstrasse.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\Versandstrasse.pdb
|
||||
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\OfficePrinter.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\DOCGEN.pdb
|
||||
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\DOCGEN.dll.config
|
||||
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\OfficePrinter.pdb
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -35,7 +35,7 @@
|
||||
<add key="URI" value="http://" />
|
||||
<add key="ArchivierungAktiv" value="True"></add>
|
||||
<add key="ArchivierungNoAktivMessage" value="Aufgrund von technischen Umstellung ist die Archivierung aktuell nicht aktiv." />
|
||||
<add key="OwnHost" value="https://localhost:44303/" />
|
||||
<add key="OwnHost" value="https://localhost:44334/" />
|
||||
<add key="VSImagePath" value="E:\Software-Projekte\OnDoc\" />
|
||||
</appSettings>
|
||||
<connectionStrings>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -35,7 +35,7 @@
|
||||
<add key="URI" value="http://" />
|
||||
<add key="ArchivierungAktiv" value="True"></add>
|
||||
<add key="ArchivierungNoAktivMessage" value="Aufgrund von technischen Umstellung ist die Archivierung aktuell nicht aktiv." />
|
||||
<add key ="OwnHost" value="https://localhost:44303/"/>
|
||||
<add key ="OwnHost" value="https://localhost:44334/"/>
|
||||
<add key="VSImagePath" value="E:\Software-Projekte\OnDoc\" />
|
||||
</appSettings>
|
||||
<connectionStrings>
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
<add key="URI" value="http://" />
|
||||
<add key="ArchivierungAktiv" value="True"></add>
|
||||
<add key="ArchivierungNoAktivMessage" value="Aufgrund von technischen Umstellung ist die Archivierung aktuell nicht aktiv." />
|
||||
<add key="OwnHost" value="https://localhost:44303/" />
|
||||
<add key="OwnHost" value="https://localhost:44334/" />
|
||||
<add key="VSImagePath" value="E:\Software-Projekte\OnDoc\" />
|
||||
</appSettings>
|
||||
<connectionStrings>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -76,6 +76,8 @@
|
||||
</PropertyGroup>
|
||||
<PropertyGroup />
|
||||
<ItemGroup>
|
||||
<Reference Include="Alternet.Common.v9, Version=9.5.0.0, Culture=neutral, PublicKeyToken=8032721e70924a63" />
|
||||
<Reference Include="Alternet.Syntax.v9, Version=9.5.0.0, Culture=neutral, PublicKeyToken=8032721e70924a63, processorArchitecture=MSIL" />
|
||||
<Reference Include="BarcodeLib, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\BarcodeLib\bin\Debug\BarcodeLib.dll</HintPath>
|
||||
@@ -88,6 +90,9 @@
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\ExcelNet\bin\Debug\ExcelNet.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="MiniHTMLTextBox">
|
||||
<HintPath>..\..\..\_Demos\minihtmltextbox-master\MiniHTMLTextBox\bin\Debug\net40\MiniHTMLTextBox.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="OnDocOffice">
|
||||
<HintPath>..\OnDocOffice\bin\Debug\OnDocOffice.dll</HintPath>
|
||||
</Reference>
|
||||
@@ -459,6 +464,12 @@
|
||||
<Compile Include="Diverses\frmLogin.Designer.cs">
|
||||
<DependentUpon>frmLogin.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Diverses\frmMail.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Diverses\frmMail.Designer.cs">
|
||||
<DependentUpon>frmMail.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Diverses\InputDialog.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
@@ -769,6 +780,9 @@
|
||||
<EmbeddedResource Include="Diverses\frmLogin.resx">
|
||||
<DependentUpon>frmLogin.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Diverses\frmMail.resx">
|
||||
<DependentUpon>frmMail.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Diverses\InputDialog.resx">
|
||||
<DependentUpon>InputDialog.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
|
||||
<StartArguments>
|
||||
</StartArguments>
|
||||
<StartArguments>funktion=showdoc&id=OFFEDK0082025002528113</StartArguments>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<PublishUrlHistory>publish\</PublishUrlHistory>
|
||||
|
||||
2
Client/Diverses/SplashScreen.Designer.cs
generated
2
Client/Diverses/SplashScreen.Designer.cs
generated
@@ -64,7 +64,7 @@
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(135, 26);
|
||||
this.label2.TabIndex = 2;
|
||||
this.label2.Text = "17. Juli 2025";
|
||||
this.label2.Text = "27. Juli 2025";
|
||||
this.label2.Click += new System.EventHandler(this.label2_Click);
|
||||
//
|
||||
// SplashScreen
|
||||
|
||||
183
Client/Diverses/frmMail.Designer.cs
generated
Normal file
183
Client/Diverses/frmMail.Designer.cs
generated
Normal file
@@ -0,0 +1,183 @@
|
||||
namespace OnDoc.Diverses
|
||||
{
|
||||
partial class frmMail
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.txtbetreff = new System.Windows.Forms.TextBox();
|
||||
this.cbboxEmpfaenger = new Syncfusion.WinForms.ListView.SfComboBox();
|
||||
this.btncancel = new System.Windows.Forms.Button();
|
||||
this.btnsend = new System.Windows.Forms.Button();
|
||||
this.miniHTMLTextBox1 = new DG.MiniHTMLTextBox.MiniHTMLTextBox();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.txtemail = new System.Windows.Forms.TextBox();
|
||||
((System.ComponentModel.ISupportInitialize)(this.cbboxEmpfaenger)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(16, 33);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(58, 13);
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.Text = "Empfänger";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(16, 72);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(38, 13);
|
||||
this.label2.TabIndex = 1;
|
||||
this.label2.Text = "Betreff";
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(16, 111);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(33, 13);
|
||||
this.label3.TabIndex = 2;
|
||||
this.label3.Text = "Inhalt";
|
||||
//
|
||||
// txtbetreff
|
||||
//
|
||||
this.txtbetreff.Location = new System.Drawing.Point(97, 72);
|
||||
this.txtbetreff.Name = "txtbetreff";
|
||||
this.txtbetreff.Size = new System.Drawing.Size(806, 20);
|
||||
this.txtbetreff.TabIndex = 3;
|
||||
//
|
||||
// cbboxEmpfaenger
|
||||
//
|
||||
this.cbboxEmpfaenger.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
|
||||
this.cbboxEmpfaenger.DropDownPosition = Syncfusion.WinForms.Core.Enums.PopupRelativeAlignment.Center;
|
||||
this.cbboxEmpfaenger.Location = new System.Drawing.Point(97, 33);
|
||||
this.cbboxEmpfaenger.Name = "cbboxEmpfaenger";
|
||||
this.cbboxEmpfaenger.Size = new System.Drawing.Size(287, 19);
|
||||
this.cbboxEmpfaenger.Style.DropDownStyle.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100)))));
|
||||
this.cbboxEmpfaenger.Style.TokenStyle.CloseButtonBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
|
||||
this.cbboxEmpfaenger.TabIndex = 12;
|
||||
this.cbboxEmpfaenger.TabStop = false;
|
||||
this.cbboxEmpfaenger.SelectedIndexChanged += new System.EventHandler(this.cbboxEmpfaenger_SelectedIndexChanged);
|
||||
//
|
||||
// btncancel
|
||||
//
|
||||
this.btncancel.Location = new System.Drawing.Point(12, 378);
|
||||
this.btncancel.Name = "btncancel";
|
||||
this.btncancel.Size = new System.Drawing.Size(171, 23);
|
||||
this.btncancel.TabIndex = 21;
|
||||
this.btncancel.Text = "Abbrechen";
|
||||
this.btncancel.UseVisualStyleBackColor = true;
|
||||
this.btncancel.Click += new System.EventHandler(this.btncancel_Click);
|
||||
//
|
||||
// btnsend
|
||||
//
|
||||
this.btnsend.Enabled = false;
|
||||
this.btnsend.Location = new System.Drawing.Point(732, 378);
|
||||
this.btnsend.Name = "btnsend";
|
||||
this.btnsend.Size = new System.Drawing.Size(171, 23);
|
||||
this.btnsend.TabIndex = 20;
|
||||
this.btnsend.Text = "Senden";
|
||||
this.btnsend.UseVisualStyleBackColor = true;
|
||||
this.btnsend.Click += new System.EventHandler(this.btntoapproval_Click);
|
||||
//
|
||||
// miniHTMLTextBox1
|
||||
//
|
||||
this.miniHTMLTextBox1.IllegalPatterns = new string[] {
|
||||
"<script.*?>",
|
||||
"<\\w+\\s+.*?(j|java|vb|ecma)script:.*?>",
|
||||
"<\\w+(\\s+|\\s+.*?\\s+)on\\w+\\s*=.+?>",
|
||||
"</?input.*?>"};
|
||||
this.miniHTMLTextBox1.Location = new System.Drawing.Point(97, 122);
|
||||
this.miniHTMLTextBox1.Name = "miniHTMLTextBox1";
|
||||
this.miniHTMLTextBox1.Padding = new System.Windows.Forms.Padding(1);
|
||||
this.miniHTMLTextBox1.ShowToolbar = true;
|
||||
this.miniHTMLTextBox1.Size = new System.Drawing.Size(806, 226);
|
||||
this.miniHTMLTextBox1.TabIndex = 22;
|
||||
this.miniHTMLTextBox1.Text = "miniHTMLTextBox1";
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(407, 35);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(39, 13);
|
||||
this.label4.TabIndex = 23;
|
||||
this.label4.Text = "E-Mail:";
|
||||
//
|
||||
// txtemail
|
||||
//
|
||||
this.txtemail.Location = new System.Drawing.Point(452, 33);
|
||||
this.txtemail.Name = "txtemail";
|
||||
this.txtemail.Size = new System.Drawing.Size(451, 20);
|
||||
this.txtemail.TabIndex = 24;
|
||||
this.txtemail.Leave += new System.EventHandler(this.txtemail_Leave);
|
||||
//
|
||||
// frmMail
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(931, 416);
|
||||
this.Controls.Add(this.txtemail);
|
||||
this.Controls.Add(this.label4);
|
||||
this.Controls.Add(this.miniHTMLTextBox1);
|
||||
this.Controls.Add(this.btncancel);
|
||||
this.Controls.Add(this.btnsend);
|
||||
this.Controls.Add(this.cbboxEmpfaenger);
|
||||
this.Controls.Add(this.txtbetreff);
|
||||
this.Controls.Add(this.label3);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Name = "frmMail";
|
||||
this.Style.MdiChild.IconHorizontalAlignment = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
this.Style.MdiChild.IconVerticalAlignment = System.Windows.Forms.VisualStyles.VerticalAlignment.Center;
|
||||
this.Text = "Mail-Versand";
|
||||
this.Load += new System.EventHandler(this.frmMail_Load);
|
||||
((System.ComponentModel.ISupportInitialize)(this.cbboxEmpfaenger)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.TextBox txtbetreff;
|
||||
private Syncfusion.WinForms.ListView.SfComboBox cbboxEmpfaenger;
|
||||
private System.Windows.Forms.Button btncancel;
|
||||
private System.Windows.Forms.Button btnsend;
|
||||
private DG.MiniHTMLTextBox.MiniHTMLTextBox miniHTMLTextBox1;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.TextBox txtemail;
|
||||
}
|
||||
}
|
||||
174
Client/Diverses/frmMail.cs
Normal file
174
Client/Diverses/frmMail.cs
Normal file
@@ -0,0 +1,174 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Security.RightsManagement;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using Database;
|
||||
using Microsoft.Office.Interop.Excel;
|
||||
using Microsoft.Office.Interop.Word;
|
||||
using Model;
|
||||
using OnDoc.Klassen;
|
||||
using OnDoc.UICintrols;
|
||||
using Syncfusion.DocIO.DLS;
|
||||
using Syncfusion.Windows.Forms;
|
||||
using Syncfusion.Windows.Forms.Tools;
|
||||
using Syncfusion.WinForms.Controls;
|
||||
|
||||
namespace OnDoc.Diverses
|
||||
{
|
||||
public partial class frmMail : SfForm
|
||||
{
|
||||
public string doclist { get; set; }
|
||||
public frmMail()
|
||||
{
|
||||
InitializeComponent();
|
||||
if (multipledocuments()) { this.txtbetreff.Text = "Link auf OnDoc-Dokumente"; } else { this.txtbetreff.Text = "Link auf OnDoc-Dokument"; }
|
||||
}
|
||||
|
||||
public frmMail(string doclist)
|
||||
{
|
||||
InitializeComponent();
|
||||
this.doclist=doclist;
|
||||
if (multipledocuments()) { this.txtbetreff.Text = "Links auf OnDoc-Dokumente"; } else { this.txtbetreff.Text = "Link auf OnDoc-Dokument"; }
|
||||
update_html();
|
||||
}
|
||||
|
||||
private void frmMail_Load(object sender, EventArgs e)
|
||||
{
|
||||
DB db = new DB(AppParams.connectionstring);
|
||||
db.clear_parameter();
|
||||
db.Get_Tabledata("SP_Dokumentbearbeitung_Mitarbeiter", true, false);
|
||||
|
||||
cbboxEmpfaenger.DataSource = db.dsdaten.Tables[0];
|
||||
cbboxEmpfaenger.DataSource = db.dsdaten.Tables[0];
|
||||
|
||||
cbboxEmpfaenger.DisplayMember = "name";
|
||||
cbboxEmpfaenger.ValueMember = "mitarbeiternr";
|
||||
db = null;
|
||||
}
|
||||
|
||||
public void update_fields(string mailtext)
|
||||
{
|
||||
|
||||
miniHTMLTextBox1.Text = mailtext;
|
||||
miniHTMLTextBox1.ShowToolbar = false;
|
||||
|
||||
}
|
||||
|
||||
public void update_html()
|
||||
{
|
||||
DB db = new DB(AppParams.connectionstring);
|
||||
db.Get_Tabledata("Select name,vorname,tgnummer, email from mitarbeiter where mitarbeiternr=" + AppParams.CurrentMitarbeiter.ToString(), false, true);
|
||||
string absender = "";
|
||||
try
|
||||
{
|
||||
absender = db.dsdaten.Tables[0].Rows[0]["Name"].ToString() + " " + db.dsdaten.Tables[0].Rows[0]["Vorname"].ToString() + ", " + db.dsdaten.Tables[0].Rows[0]["tgnummer"].ToString();
|
||||
}
|
||||
catch
|
||||
{
|
||||
absender = "";
|
||||
}
|
||||
string endabsatz = "<br><br>--------------------------------------------------------------------------<br>OnDoc / " + absender;
|
||||
//endabsatz = "";
|
||||
|
||||
string empfaenger = "";
|
||||
try
|
||||
{
|
||||
db.Get_Tabledata("Select vorname,email from mitarbeiter where mitarbeiternr=" + cbboxEmpfaenger.SelectedValue.ToString(), false, true);
|
||||
empfaenger = db.dsdaten.Tables[0].Rows[0][0].ToString();
|
||||
txtemail.Text = db.dsdaten.Tables[0].Rows[0][1].ToString();
|
||||
if (!checkemail())
|
||||
{
|
||||
MessageBox.Show("E-Mail-Adresse ist ungültig!","E-Mail",MessageBoxButtons.OK,MessageBoxIcon.Error);
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
empfaenger = "";
|
||||
}
|
||||
string text = "";
|
||||
string starthtml = "<html>";
|
||||
string endhtml = "</html>";
|
||||
string startabsatz = "Guten Tag "+empfaenger+"<br>" + "<br>";
|
||||
if (!multipledocuments()) { startabsatz = startabsatz + "<br>" + "Link zum Dokument:<br>"; } else { startabsatz = startabsatz + "<br>" + "Links zum Dokumenten:<br>"; }
|
||||
text = text + starthtml;
|
||||
text = text + startabsatz;
|
||||
text = text + this.doclist;
|
||||
text = text + endabsatz;
|
||||
text = text + endhtml;
|
||||
miniHTMLTextBox1.Text = text;
|
||||
miniHTMLTextBox1.ShowToolbar = false;
|
||||
db = null;
|
||||
}
|
||||
|
||||
private bool checkemail()
|
||||
{
|
||||
if (Regex.IsMatch(txtemail.Text, @"^\d+$") == false && !txtemail.Text.ToUpper().Contains("@TKB.CH")) { this.btnsend.Enabled = false; return false; } else { this.btnsend.Enabled = true; return true; }
|
||||
}
|
||||
|
||||
private bool multipledocuments()
|
||||
{
|
||||
if (doclist.Contains("ul"))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{ return false; }
|
||||
}
|
||||
|
||||
private void cbboxEmpfaenger_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
update_html();
|
||||
}
|
||||
|
||||
private void btntoapproval_Click(object sender, EventArgs e)
|
||||
{
|
||||
Model.EMail email = new Model.EMail();
|
||||
email.empfaenger = this.txtemail.Text;
|
||||
email.betreff = txtbetreff.Text;
|
||||
email.message = miniHTMLTextBox1.Text;
|
||||
|
||||
|
||||
|
||||
|
||||
clsMailer mailer = new clsMailer();
|
||||
if (mailer.SendHTMLMail(email))
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show("Mail konnte nicht versendet werden", "E-Mail", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
}
|
||||
;
|
||||
mailer = null;
|
||||
email = null;
|
||||
|
||||
}
|
||||
|
||||
private void txtemail_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void txtemail_Leave(object sender, EventArgs e)
|
||||
{
|
||||
if (!checkemail())
|
||||
{
|
||||
MessageBox.Show("E-Mail-Adresse ist ungültig!", "E-Mail", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
txtemail.Focus();
|
||||
}
|
||||
}
|
||||
|
||||
private void btncancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
120
Client/Diverses/frmMail.resx
Normal file
120
Client/Diverses/frmMail.resx
Normal file
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
@@ -366,11 +366,19 @@ namespace OnDoc.DocMgmt
|
||||
{
|
||||
DocFunction = 2;
|
||||
this.Close();
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void button3_Click(object sender, EventArgs e)
|
||||
{
|
||||
DB db = new DB(AppParams.connectionstring);
|
||||
db.Exec_SQL("Update dokument set aktiv=0, mutiertam=getdate(), mutierer=" + AppParams.CurrentMitarbeiter.ToString() + " where dokumentid='" + dokumentid + "'");
|
||||
|
||||
db = null;
|
||||
Logging.DocLog.Info("Dokument gelöscht", "Doklist.Dokument_loeschen", dokumentid, "", "Dokument gelöscht");
|
||||
DocFunction = 3;
|
||||
dokumentid = "";
|
||||
|
||||
PnlPreview.Visible = false;
|
||||
|
||||
}
|
||||
|
||||
@@ -252,7 +252,7 @@ namespace OnDoc.Klassen
|
||||
break;
|
||||
case "funktion":
|
||||
function = value;
|
||||
if (value.ToLower() != "createdoc" && value.ToLower() != "createpac" && value.ToLower() != "ucheck" && value.ToLower() != "openclient" && value.ToLower()!="createsb")
|
||||
if (value.ToLower() != "createdoc" && value.ToLower() != "createpac" && value.ToLower() != "ucheck" && value.ToLower() != "openclient" && value.ToLower()!="createsb" && value.ToLower() != "showdoc")
|
||||
{
|
||||
MessageBox.Show("Funktion ist ungültig: " + value, "Parameterfehler", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
return false;
|
||||
|
||||
@@ -42,5 +42,51 @@ namespace OnDoc.Klassen
|
||||
return false;
|
||||
}
|
||||
}
|
||||
public bool SendHTMLMail(Model.EMail mail)
|
||||
{
|
||||
string URL = AppParams.RESTURI + "API/SendHTMLMail";
|
||||
Logging.Logging.Debug("Start Save Image", "OnDoc", "");
|
||||
|
||||
string response;
|
||||
string jsonstring = Newtonsoft.Json.JsonConvert.SerializeObject(mail);
|
||||
|
||||
WebRequest request;
|
||||
|
||||
var data = Encoding.UTF8.GetBytes(jsonstring);
|
||||
request = WebRequest.Create(URL);
|
||||
request.ContentLength = data.Length;
|
||||
request.ContentType = "application/json";
|
||||
request.Method = "POST";
|
||||
request.Headers["Authorization"] = "Bearer " + AppParams.apikey;
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
using (Stream requestStream = request.GetRequestStream())
|
||||
{
|
||||
requestStream.Write(data, 0, data.Length);
|
||||
requestStream.Close();
|
||||
|
||||
using (Stream responseStream = request.GetResponse().GetResponseStream())
|
||||
{
|
||||
using (var reader = new StreamReader(responseStream))
|
||||
{
|
||||
response = reader.ReadToEnd();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Logging.Logging.Debug("HTML-Mailversand Fehler:" + ex.Message, "OnDoc", "");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace OnDoc
|
||||
else
|
||||
{
|
||||
|
||||
if (args[0].ToString().ToUpper().IndexOf("PARTNERNR") > 0 || args[0].ToString().ToUpper().IndexOf("UCHECK") > 0 || args[0].ToString().ToUpper().IndexOf("OPENCLIENT") > 0 || args[0].ToString().ToUpper().IndexOf("CREATESB") > 0|| args[0].ToString().ToUpper().IndexOf("CREATEPAC") > 0 || args[0].ToString().ToUpper().IndexOf("CREATEDOC") > 0)
|
||||
if (args[0].ToString().ToUpper().IndexOf("PARTNERNR") > 0 || args[0].ToString().ToUpper().IndexOf("UCHECK") > 0 || args[0].ToString().ToUpper().IndexOf("OPENCLIENT") > 0 || args[0].ToString().ToUpper().IndexOf("CREATESB") > 0|| args[0].ToString().ToUpper().IndexOf("CREATEPAC") > 0 || args[0].ToString().ToUpper().IndexOf("CREATEDOC") > 0 || args[0].ToString().ToUpper().IndexOf("SHOWDOC") > 0)
|
||||
{
|
||||
AppParams.init();
|
||||
//MessageBox.Show(AppParams.tempdir);
|
||||
|
||||
@@ -281,6 +281,10 @@ namespace OnDoc
|
||||
dokList1.StartPruefung();
|
||||
return;
|
||||
}
|
||||
if (ExternalCall.function.ToLower() == "showdoc")
|
||||
{
|
||||
dokList1.ShowDoc(ExternalCall.dokumentid);
|
||||
}
|
||||
if (ExternalCall.function.ToLower() == "createdoc")
|
||||
{
|
||||
|
||||
@@ -398,6 +402,7 @@ namespace OnDoc
|
||||
dokList1.upruefung();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
12
Client/UIControls/DokList.Designer.cs
generated
12
Client/UIControls/DokList.Designer.cs
generated
@@ -46,6 +46,7 @@ namespace OnDoc.UICintrols
|
||||
this.dokumentFürPartnerErstellenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.dokumentKopierenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.dokumentLinkPerMailVersendenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.barcodeDemoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.vertragPDFDEMOToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.zellenwertInZwischenablageKopierenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
@@ -212,6 +213,7 @@ namespace OnDoc.UICintrols
|
||||
this.dokumentFürPartnerErstellenToolStripMenuItem,
|
||||
this.dokumentKopierenToolStripMenuItem,
|
||||
this.toolStripMenuItem1,
|
||||
this.dokumentLinkPerMailVersendenToolStripMenuItem,
|
||||
this.barcodeDemoToolStripMenuItem,
|
||||
this.vertragPDFDEMOToolStripMenuItem,
|
||||
this.zellenwertInZwischenablageKopierenToolStripMenuItem,
|
||||
@@ -224,7 +226,7 @@ namespace OnDoc.UICintrols
|
||||
this.gruppenSchliessenToolStripMenuItem,
|
||||
this.zumVersandpaketHinzufügenToolStripMenuItem});
|
||||
this.ctxMenuDokList.Name = "ctxMenuDokList";
|
||||
this.ctxMenuDokList.Size = new System.Drawing.Size(284, 548);
|
||||
this.ctxMenuDokList.Size = new System.Drawing.Size(284, 574);
|
||||
this.ctxMenuDokList.Opening += new System.ComponentModel.CancelEventHandler(this.ctxMenuDokList_Opening);
|
||||
//
|
||||
// dokumentAnzeigenToolStripMenuItem
|
||||
@@ -324,6 +326,13 @@ namespace OnDoc.UICintrols
|
||||
this.toolStripMenuItem1.Name = "toolStripMenuItem1";
|
||||
this.toolStripMenuItem1.Size = new System.Drawing.Size(280, 6);
|
||||
//
|
||||
// dokumentLinkPerMailVersendenToolStripMenuItem
|
||||
//
|
||||
this.dokumentLinkPerMailVersendenToolStripMenuItem.Name = "dokumentLinkPerMailVersendenToolStripMenuItem";
|
||||
this.dokumentLinkPerMailVersendenToolStripMenuItem.Size = new System.Drawing.Size(283, 26);
|
||||
this.dokumentLinkPerMailVersendenToolStripMenuItem.Text = "Dokument-Link per Mail versenden";
|
||||
this.dokumentLinkPerMailVersendenToolStripMenuItem.Click += new System.EventHandler(this.dokumentLinkPerMailVersendenToolStripMenuItem_Click);
|
||||
//
|
||||
// barcodeDemoToolStripMenuItem
|
||||
//
|
||||
this.barcodeDemoToolStripMenuItem.Name = "barcodeDemoToolStripMenuItem";
|
||||
@@ -1758,5 +1767,6 @@ namespace OnDoc.UICintrols
|
||||
private System.Windows.Forms.ToolStripMenuItem zumVersandpaketHinzufügenToolStripMenuItem;
|
||||
private System.Windows.Forms.RibbonPanel RibbonPrinter;
|
||||
private System.Windows.Forms.RibbonButton ribbonbuttonPrinterSettings;
|
||||
private System.Windows.Forms.ToolStripMenuItem dokumentLinkPerMailVersendenToolStripMenuItem;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -57,6 +57,7 @@ using System.Xml.Linq;
|
||||
using Syncfusion.Windows.Forms.Chart;
|
||||
using Syncfusion.Grouping;
|
||||
using Syncfusion.Olap.MDXQueryParser;
|
||||
using Windows.UI.Xaml.Input;
|
||||
|
||||
|
||||
|
||||
@@ -1033,6 +1034,16 @@ namespace OnDoc.UICintrols
|
||||
ribbonButtonApproval_Click(null, null);
|
||||
}
|
||||
|
||||
public void ShowDoc(string dokumentid)
|
||||
{
|
||||
Filter_Loeschen();
|
||||
Search_Docid = dokumentid;
|
||||
RibbonFilterLabel.Text = dokumentid;
|
||||
RibbonFilterLabel.Visible = true;
|
||||
RibbonFilterDelete.Visible = true;
|
||||
refresh_dokumente();
|
||||
}
|
||||
|
||||
public void createdocumentpaket(int partnernr, int dokumentpaketnr)
|
||||
{
|
||||
Dokumentpaket dp = new Dokumentpaket(dokumentpaketnr, partnernr, this.profilnr);
|
||||
@@ -3192,6 +3203,42 @@ namespace OnDoc.UICintrols
|
||||
{
|
||||
Process.Start(Properties.Settings.Default.PrinterSettings);
|
||||
}
|
||||
|
||||
private void dokumentLinkPerMailVersendenToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
string ul = "<ul>";
|
||||
string endul = "</ul>";
|
||||
string li = "<li>";
|
||||
string endli = "</li>";
|
||||
|
||||
var records = sfDataGrid1.View.GetSelectedRecords();
|
||||
if (records.Count < 1) { return; }
|
||||
if (records.Count == 1)
|
||||
{
|
||||
ul = "";
|
||||
endul = "";
|
||||
li = "";
|
||||
endli = "";
|
||||
}
|
||||
|
||||
Cursor = Cursors.WaitCursor;
|
||||
|
||||
string doklist = "";
|
||||
doklist = ul;
|
||||
foreach (var record in records)
|
||||
{
|
||||
var datarow = record as DataRowView;
|
||||
string documentid = datarow["dokumentid"].ToString();
|
||||
string partnernr= datarow["Partner-Nr"].ToString();
|
||||
string bezeichnung = datarow["DokBez"].ToString();
|
||||
doklist = doklist + li + "<a href=ondoc::?funktion=showdoc&id=" + documentid + ">" + documentid + "</a> Partner:" + partnernr + " Dokument: " + bezeichnung + endli;
|
||||
}
|
||||
doklist = doklist + endul;
|
||||
|
||||
frmMail fmail = new frmMail(doklist);
|
||||
fmail.ShowDialog();
|
||||
Cursor = Cursors.Default;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
BIN
Client/bin/Debug/Alternet.Common.v9.dll
Normal file
BIN
Client/bin/Debug/Alternet.Common.v9.dll
Normal file
Binary file not shown.
6858
Client/bin/Debug/Alternet.Common.v9.xml
Normal file
6858
Client/bin/Debug/Alternet.Common.v9.xml
Normal file
File diff suppressed because it is too large
Load Diff
BIN
Client/bin/Debug/Alternet.Syntax.v9.dll
Normal file
BIN
Client/bin/Debug/Alternet.Syntax.v9.dll
Normal file
Binary file not shown.
11042
Client/bin/Debug/Alternet.Syntax.v9.xml
Normal file
11042
Client/bin/Debug/Alternet.Syntax.v9.xml
Normal file
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
BIN
Client/bin/Debug/MiniHTMLTextBox.dll
Normal file
BIN
Client/bin/Debug/MiniHTMLTextBox.dll
Normal file
Binary file not shown.
BIN
Client/bin/Debug/MiniHTMLTextBox.pdb
Normal file
BIN
Client/bin/Debug/MiniHTMLTextBox.pdb
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,5 +1,5 @@
|
||||
delete EDKB02DMS.zip
|
||||
"C:\Program Files\7-Zip\7z.exe" -pshu*tkb98125 a OnDocClient.zip OnDoc.exe OnDocOffice.dll Docgen.dll database.dll barcodelib.dll Helper.dll Logging.dll Model.dll OfficePrinter.dll VBFileManagement.dll vbbarcodes.dll WinSign.dll vboffice.dll versandstrasse.dll hyph_de_CH.dic
|
||||
"C:\Program Files\7-Zip\7z.exe" -pshu*tkb98125 a OnDocClient.zip OnDoc.exe OnDocOffice.dll Docgen.dll database.dll barcodelib.dll Helper.dll Logging.dll Model.dll OfficePrinter.dll VBFileManagement.dll vbbarcodes.dll WinSign.dll vboffice.dll versandstrasse.dll hyph_de_CH.dic MiniHTMLTextBox.dll
|
||||
|
||||
copy OnDocClient.zip H:\NextCloud\ZZDownload
|
||||
pause
|
||||
Binary file not shown.
BIN
Client/bin/Debug/de/Alternet.Common.v9.resources.dll
Normal file
BIN
Client/bin/Debug/de/Alternet.Common.v9.resources.dll
Normal file
Binary file not shown.
BIN
Client/bin/Debug/en/Alternet.Common.v9.resources.dll
Normal file
BIN
Client/bin/Debug/en/Alternet.Common.v9.resources.dll
Normal file
Binary file not shown.
BIN
Client/bin/Debug/es/Alternet.Common.v9.resources.dll
Normal file
BIN
Client/bin/Debug/es/Alternet.Common.v9.resources.dll
Normal file
Binary file not shown.
BIN
Client/bin/Debug/fr/Alternet.Common.v9.resources.dll
Normal file
BIN
Client/bin/Debug/fr/Alternet.Common.v9.resources.dll
Normal file
Binary file not shown.
BIN
Client/bin/Debug/ru/Alternet.Common.v9.resources.dll
Normal file
BIN
Client/bin/Debug/ru/Alternet.Common.v9.resources.dll
Normal file
Binary file not shown.
BIN
Client/bin/Debug/uk/Alternet.Common.v9.resources.dll
Normal file
BIN
Client/bin/Debug/uk/Alternet.Common.v9.resources.dll
Normal file
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
|
||||
5bdb5c25c09853ca6cfbd988d4db7b2a4c87987533acdf99613244a7267c3aab
|
||||
4c586517a50a46a07c0703e6e2a0ba574ad3b69fd42363b416cfcdceca050f8b
|
||||
|
||||
@@ -379,3 +379,16 @@ E:\Software-Projekte\OnDoc\OnDoc\Client\obj\Debug\OnDoc.pdb
|
||||
E:\Software-Projekte\OnDoc\OnDoc\Client\obj\Debug\OnDoc.DocMgmt.FrmDokumentwerte.resources
|
||||
E:\Software-Projekte\OnDoc\OnDoc\Client\obj\Debug\OnDoc.Diverses.FrmExternalDocEdit.resources
|
||||
E:\Software-Projekte\OnDoc\OnDoc\Client\bin\Debug\Versandstrasse.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\Client\obj\Debug\OnDoc.Diverses.frmMail.resources
|
||||
E:\Software-Projekte\OnDoc\OnDoc\Client\bin\Debug\Alternet.Common.v9.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\Client\bin\Debug\Alternet.Syntax.v9.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\Client\bin\Debug\Alternet.Common.v9.xml
|
||||
E:\Software-Projekte\OnDoc\OnDoc\Client\bin\Debug\Alternet.Syntax.v9.xml
|
||||
E:\Software-Projekte\OnDoc\OnDoc\Client\bin\Debug\de\Alternet.Common.v9.resources.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\Client\bin\Debug\en\Alternet.Common.v9.resources.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\Client\bin\Debug\es\Alternet.Common.v9.resources.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\Client\bin\Debug\fr\Alternet.Common.v9.resources.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\Client\bin\Debug\ru\Alternet.Common.v9.resources.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\Client\bin\Debug\uk\Alternet.Common.v9.resources.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\Client\bin\Debug\MiniHTMLTextBox.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\Client\bin\Debug\MiniHTMLTextBox.pdb
|
||||
|
||||
Binary file not shown.
Binary file not shown.
BIN
Client/obj/Debug/OnDoc.Diverses.frmMail.resources
Normal file
BIN
Client/obj/Debug/OnDoc.Diverses.frmMail.resources
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -10,6 +10,7 @@ using Model;
|
||||
using Syncfusion.DocIO.DLS;
|
||||
using Syncfusion.XlsIO;
|
||||
using Syncfusion.XlsIO.Implementation.XmlSerialization;
|
||||
using System.Globalization;
|
||||
|
||||
namespace DOCGEN.Klassen
|
||||
{
|
||||
|
||||
@@ -504,10 +504,14 @@ namespace DOCGEN.Klassen
|
||||
{
|
||||
foreach (attribute apivalue in docdata.APIValues)
|
||||
{
|
||||
BookmarksNavigator bookmarkNavigator = new BookmarksNavigator(document);
|
||||
bookmarkNavigator.MoveToBookmark(apivalue.Tag);
|
||||
//bookmarkNavigator.InsertText(dv.Value.ToString());
|
||||
bookmarkNavigator.ReplaceBookmarkContent(apivalue.Value, true);
|
||||
try
|
||||
{
|
||||
BookmarksNavigator bookmarkNavigator = new BookmarksNavigator(document);
|
||||
bookmarkNavigator.MoveToBookmark(apivalue.Tag);
|
||||
//bookmarkNavigator.InsertText(dv.Value.ToString());
|
||||
bookmarkNavigator.ReplaceBookmarkContent(apivalue.Value, true);
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
}
|
||||
catch { }
|
||||
@@ -1225,8 +1229,10 @@ namespace DOCGEN.Klassen
|
||||
{
|
||||
IWSection section = document.Sections[0];
|
||||
IWParagraph paragraph = section.HeadersFooters.Header.AddParagraph();
|
||||
|
||||
byte[] imageBytes = Convert.FromBase64String(get_image(4,-1,-1));
|
||||
|
||||
string b64 = Newtonsoft.Json.JsonConvert.DeserializeObject<string>(get_image(4, -1, 0));
|
||||
|
||||
byte[] imageBytes = Convert.FromBase64String(b64);
|
||||
using (var ms = new MemoryStream(imageBytes, 0, imageBytes.Length))
|
||||
{
|
||||
System.Drawing.Image image = System.Drawing.Image.FromStream(ms);
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -28,6 +28,8 @@ using Syncfusion.XlsIO.Parser.Biff_Records;
|
||||
using System.Buffers.Text;
|
||||
using Syncfusion.ExcelToPdfConverter;
|
||||
using OnDocOffice;
|
||||
using System.Globalization;
|
||||
using System.Threading;
|
||||
|
||||
|
||||
namespace DOCGEN
|
||||
@@ -349,6 +351,7 @@ namespace DOCGEN
|
||||
var streamword = new MemoryStream(Convert.FromBase64String(document));
|
||||
WordDocument wordDocument = new WordDocument(streamword, Syncfusion.DocIO.FormatType.Automatic);
|
||||
wordDocument.Properties.Hyphenation.AutoHyphenation = true;
|
||||
wordDocument.UpdateDocumentFields();
|
||||
//FileStream dictornyrystream = new FileStream(@"E:\Software-Projekte\OnDoc\OnDoc\Client\bin\Debug\hyph_de_CH.dic", FileMode.Open);
|
||||
//Hyphenator.Dictionaries.Add("de-CH", dictornyrystream);
|
||||
|
||||
@@ -361,7 +364,7 @@ namespace DOCGEN
|
||||
converter.Settings.EmbedFonts = true;
|
||||
if (useseettings)
|
||||
{
|
||||
converter.Settings.UpdateDocumentFields = false;
|
||||
converter.Settings.UpdateDocumentFields = true;
|
||||
converter.Settings.EnableAlternateChunks = true;
|
||||
converter.Settings.AutoDetectComplexScript = true;
|
||||
converter.Settings.ImageResolution = 640;
|
||||
@@ -369,7 +372,7 @@ namespace DOCGEN
|
||||
}
|
||||
else
|
||||
{
|
||||
converter.Settings.UpdateDocumentFields = false;
|
||||
converter.Settings.UpdateDocumentFields = true;
|
||||
converter.Settings.EnableAlternateChunks = true;
|
||||
converter.Settings.AutoDetectComplexScript = true;
|
||||
converter.Settings.ImageResolution = 96;
|
||||
@@ -532,10 +535,10 @@ namespace DOCGEN
|
||||
//Initialize ExcelToPdfConverter
|
||||
ExcelToPdfConverter converter = new ExcelToPdfConverter(workbook);
|
||||
ExcelToPdfConverterSettings settings = new ExcelToPdfConverterSettings();
|
||||
Thread.CurrentThread.CurrentCulture = new CultureInfo("de-CH");
|
||||
settings.EmbedFonts = true;
|
||||
|
||||
|
||||
|
||||
//Initialize PDF document
|
||||
PdfDocument pdfDocument = new PdfDocument();
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
20
HtmlTextBox/Backup/HtmlTextBox.sln
Normal file
20
HtmlTextBox/Backup/HtmlTextBox.sln
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 9.00
|
||||
# Visual Basic Express 2005
|
||||
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "HtmlTextBox", "HtmlTextBox\HtmlTextBox.vbproj", "{0E1165D8-17A4-48A8-9045-8196F00CCAB0}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{0E1165D8-17A4-48A8-9045-8196F00CCAB0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{0E1165D8-17A4-48A8-9045-8196F00CCAB0}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{0E1165D8-17A4-48A8-9045-8196F00CCAB0}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{0E1165D8-17A4-48A8-9045-8196F00CCAB0}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
232
HtmlTextBox/Backup/HtmlTextBox/HtmlTextBox.vb
Normal file
232
HtmlTextBox/Backup/HtmlTextBox/HtmlTextBox.vb
Normal file
@@ -0,0 +1,232 @@
|
||||
Public Class HtmlTextBox
|
||||
Inherits RichTextBox
|
||||
|
||||
Private strText As String
|
||||
|
||||
Private clrBack As Color = Me.BackColor
|
||||
Private clrFore As Color = Me.ForeColor
|
||||
|
||||
Private boolSpan As Boolean = True
|
||||
Private boolStyle As Boolean = False
|
||||
Private boolFont As Boolean = False
|
||||
|
||||
Public Sub New()
|
||||
|
||||
UseSpanTag = True
|
||||
|
||||
End Sub
|
||||
|
||||
''' <summary>
|
||||
''' Property to say if the GenerateHTML method will use the Span html tag. Note that only one tag can be used, Span or Style.
|
||||
''' </summary>
|
||||
''' <value>Set to true if Span tags are to be used.</value>
|
||||
''' <returns>Returns boolen value of if GenerateHTML method uses Span tags</returns>
|
||||
''' <remarks></remarks>
|
||||
Public Property UseSpanTag() As Boolean
|
||||
|
||||
Get
|
||||
|
||||
Return boolSpan
|
||||
|
||||
End Get
|
||||
|
||||
Set(ByVal value As Boolean)
|
||||
|
||||
If value Then
|
||||
|
||||
boolSpan = True
|
||||
boolFont = False
|
||||
boolStyle = False
|
||||
|
||||
Else
|
||||
|
||||
boolStyle = True
|
||||
boolSpan = False
|
||||
boolFont = False
|
||||
|
||||
End If
|
||||
|
||||
End Set
|
||||
|
||||
End Property
|
||||
|
||||
''' <summary>
|
||||
''' Property to say if the GenerateHTML method will use the Style html tag. Note that only one tag can be used at a time.
|
||||
''' </summary>
|
||||
''' <value>Set to true if Style tags are to be used.</value>
|
||||
''' <returns>Returns boolen value of if GenerateHTML method uses Style tags</returns>
|
||||
''' <remarks></remarks>
|
||||
'''
|
||||
Public Property UseStyleTags() As Boolean
|
||||
|
||||
Get
|
||||
|
||||
Return boolStyle
|
||||
|
||||
End Get
|
||||
|
||||
Set(ByVal value As Boolean)
|
||||
|
||||
If value = False Then
|
||||
|
||||
boolSpan = True
|
||||
boolStyle = False
|
||||
boolFont = False
|
||||
|
||||
Else
|
||||
|
||||
boolStyle = True
|
||||
boolStyle = False
|
||||
boolFont = False
|
||||
|
||||
End If
|
||||
|
||||
End Set
|
||||
|
||||
End Property
|
||||
|
||||
''' <summary>
|
||||
''' Property to say if the GenerateHTML method will use the Font html tag. Note that only one tag may be used at a time.
|
||||
''' </summary>
|
||||
''' <value>Set to true if Font tags are to be used.</value>
|
||||
''' <returns>Returns boolen value of if GenerateHTML method uses Span tags</returns>
|
||||
''' <remarks></remarks>
|
||||
Public Property UseFontTags() As Boolean
|
||||
|
||||
Get
|
||||
|
||||
Return boolFont
|
||||
|
||||
End Get
|
||||
|
||||
Set(ByVal value As Boolean)
|
||||
|
||||
If value Then
|
||||
|
||||
boolFont = True
|
||||
boolStyle = False
|
||||
boolSpan = False
|
||||
|
||||
Else
|
||||
|
||||
boolStyle = True
|
||||
boolSpan = False
|
||||
boolFont = False
|
||||
|
||||
End If
|
||||
|
||||
End Set
|
||||
|
||||
End Property
|
||||
|
||||
''' <summary>
|
||||
''' Property to get HTML Formatting. NOTE: GenerateHTML() method is called when property is accessed. This is to get the most up-to-date formatting.
|
||||
''' </summary>
|
||||
''' <returns>Returns HTML formatting as a String object</returns>
|
||||
''' <remarks></remarks>
|
||||
ReadOnly Property HTML() As String
|
||||
|
||||
Get
|
||||
|
||||
Return GenerateHTML()
|
||||
|
||||
End Get
|
||||
|
||||
End Property
|
||||
|
||||
Private Sub Class1_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.TextChanged
|
||||
|
||||
''when text changes, update variable
|
||||
strText = Me.Text
|
||||
|
||||
End Sub
|
||||
|
||||
''' <summary>
|
||||
''' Use this to generate HTML code with back color, fore color, and font formatting.
|
||||
''' </summary>
|
||||
''' <returns>Returns a String Object of the HTML formatting. This includes the colors, font styles, and text.</returns>
|
||||
''' <remarks></remarks>
|
||||
Public Function GenerateHTML() As String
|
||||
|
||||
'get var thats shorter to type
|
||||
Dim ft As Font = Me.Font
|
||||
|
||||
With ft
|
||||
|
||||
''if bold, add formatting
|
||||
If .Bold Then
|
||||
|
||||
strText = strText.Insert(0, "<b>")
|
||||
strText = strText.Insert(strText.Length, "</b>")
|
||||
|
||||
End If
|
||||
|
||||
''if italic, add formatting
|
||||
If .Italic Then
|
||||
|
||||
strText = strText.Insert(0, "<i>")
|
||||
strText = strText.Insert(strText.Length, "</i>")
|
||||
|
||||
End If
|
||||
|
||||
''if underline, add formatting
|
||||
If .Underline Then
|
||||
|
||||
strText = strText.Insert(0, "<u>")
|
||||
strText = strText.Insert(strText.Length, "</u>")
|
||||
|
||||
End If
|
||||
|
||||
''if strikeout, add formatting
|
||||
If .Strikeout Then
|
||||
|
||||
strText = strText.Insert(0, "<s>")
|
||||
strText = strText.Insert(strText.Length, "</s>")
|
||||
|
||||
End If
|
||||
|
||||
''if use span tags, then use <span style> tags to format font
|
||||
If boolSpan Then
|
||||
|
||||
strText = strText.Insert(0, "<span style = ""Color: " & ColorTranslator.ToHtml(Me.ForeColor) & "; Background-Color: " & ColorTranslator.ToHtml(Me.BackColor) & "; font-size: " & ft.Size & "pt; font-family: " & ft.Name & """>")
|
||||
strText = strText.Insert(strText.Length, "</span>")
|
||||
|
||||
''else use <Style type> tags to format font
|
||||
ElseIf boolStyle Then
|
||||
|
||||
strText = "<head><style type=""text/css""> h1 {color: " & ColorTranslator.ToHtml(Me.ForeColor) & "; font-size: " & ft.Size & "pt; font-family: " & ft.Name & "; Background-color: " & ColorTranslator.ToHtml(Me.BackColor) & "} </style></head><body>"
|
||||
strText = strText.Insert(strText.IndexOf("<body>") + 6, "<h1>" & Me.Text & "</h1></body>")
|
||||
|
||||
''else, use <font> tags
|
||||
Else
|
||||
|
||||
strText = strText.Insert(0, "<body bgcolor = " & ColorTranslator.ToHtml(Me.BackColor) & "><font color = " & ColorTranslator.ToHtml(Me.ForeColor) & " POINT-SIZE = " & Me.Font.SizeInPoints & " face = " & Me.Font.Name & ">")
|
||||
strText = strText.Insert(strText.Length, "</font></body>")
|
||||
|
||||
End If
|
||||
|
||||
''convert str to char array, for loop for each char
|
||||
For Each cr As Char In strText.ToCharArray
|
||||
|
||||
''if the Char is a control char (aka new line character)
|
||||
If Char.IsControl(cr) Then
|
||||
|
||||
''while loop to find all instances
|
||||
While strText.Contains(cr)
|
||||
|
||||
''replace the newline character with "<br>" html tag
|
||||
strText = strText.Replace(cr, "<br>")
|
||||
|
||||
End While
|
||||
|
||||
End If
|
||||
|
||||
Next
|
||||
|
||||
Return strText
|
||||
|
||||
End With
|
||||
|
||||
End Function
|
||||
|
||||
End Class
|
||||
93
HtmlTextBox/Backup/HtmlTextBox/HtmlTextBox.vbproj
Normal file
93
HtmlTextBox/Backup/HtmlTextBox/HtmlTextBox.vbproj
Normal file
@@ -0,0 +1,93 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>8.0.50727</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{0E1165D8-17A4-48A8-9045-8196F00CCAB0}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<RootNamespace>HtmlTextBox</RootNamespace>
|
||||
<AssemblyName>HtmlTextBox</AssemblyName>
|
||||
<MyType>Windows</MyType>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<DefineDebug>true</DefineDebug>
|
||||
<DefineTrace>true</DefineTrace>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DocumentationFile>HtmlTextBox.xml</DocumentationFile>
|
||||
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<DefineDebug>false</DefineDebug>
|
||||
<DefineTrace>true</DefineTrace>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DocumentationFile>HtmlTextBox.xml</DocumentationFile>
|
||||
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Import Include="Microsoft.VisualBasic" />
|
||||
<Import Include="System" />
|
||||
<Import Include="System.Collections" />
|
||||
<Import Include="System.Collections.Generic" />
|
||||
<Import Include="System.Diagnostics" />
|
||||
<Import Include="System.Drawing" />
|
||||
<Import Include="System.Windows.Forms" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="HtmlTextBox.vb">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="My Project\AssemblyInfo.vb" />
|
||||
<Compile Include="My Project\Application.Designer.vb">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Application.myapp</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="My Project\Resources.Designer.vb">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="My Project\Settings.Designer.vb">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="My Project\Resources.resx">
|
||||
<Generator>VbMyResourcesResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.vb</LastGenOutput>
|
||||
<CustomToolNamespace>My.Resources</CustomToolNamespace>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="My Project\Application.myapp">
|
||||
<Generator>MyApplicationCodeGenerator</Generator>
|
||||
<LastGenOutput>Application.Designer.vb</LastGenOutput>
|
||||
</None>
|
||||
<None Include="My Project\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<CustomToolNamespace>My</CustomToolNamespace>
|
||||
<LastGenOutput>Settings.Designer.vb</LastGenOutput>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.VisualBasic.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
13
HtmlTextBox/Backup/HtmlTextBox/My Project/Application.Designer.vb
generated
Normal file
13
HtmlTextBox/Backup/HtmlTextBox/My Project/Application.Designer.vb
generated
Normal file
@@ -0,0 +1,13 @@
|
||||
'------------------------------------------------------------------------------
|
||||
' <auto-generated>
|
||||
' This code was generated by a tool.
|
||||
' Runtime Version:2.0.50727.42
|
||||
'
|
||||
' Changes to this file may cause incorrect behavior and will be lost if
|
||||
' the code is regenerated.
|
||||
' </auto-generated>
|
||||
'------------------------------------------------------------------------------
|
||||
|
||||
Option Strict On
|
||||
Option Explicit On
|
||||
|
||||
10
HtmlTextBox/Backup/HtmlTextBox/My Project/Application.myapp
Normal file
10
HtmlTextBox/Backup/HtmlTextBox/My Project/Application.myapp
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<MyApplicationData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<MySubMain>false</MySubMain>
|
||||
<SingleInstance>false</SingleInstance>
|
||||
<ShutdownMode>0</ShutdownMode>
|
||||
<EnableVisualStyles>true</EnableVisualStyles>
|
||||
<AuthenticationMode>0</AuthenticationMode>
|
||||
<ApplicationType>1</ApplicationType>
|
||||
<SaveMySettingsOnExit>true</SaveMySettingsOnExit>
|
||||
</MyApplicationData>
|
||||
35
HtmlTextBox/Backup/HtmlTextBox/My Project/AssemblyInfo.vb
Normal file
35
HtmlTextBox/Backup/HtmlTextBox/My Project/AssemblyInfo.vb
Normal file
@@ -0,0 +1,35 @@
|
||||
Imports System
|
||||
Imports System.Reflection
|
||||
Imports System.Runtime.InteropServices
|
||||
|
||||
' General Information about an assembly is controlled through the following
|
||||
' set of attributes. Change these attribute values to modify the information
|
||||
' associated with an assembly.
|
||||
|
||||
' Review the values of the assembly attributes
|
||||
|
||||
<Assembly: AssemblyTitle("HtmlTextBox")>
|
||||
<Assembly: AssemblyDescription("")>
|
||||
<Assembly: AssemblyCompany("")>
|
||||
<Assembly: AssemblyProduct("HtmlTextBox")>
|
||||
<Assembly: AssemblyCopyright("Copyright © 2006")>
|
||||
<Assembly: AssemblyTrademark("")>
|
||||
|
||||
<Assembly: ComVisible(False)>
|
||||
|
||||
'The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
<Assembly: Guid("7032f1ae-8838-49fd-a694-51f2c7369b21")>
|
||||
|
||||
' Version information for an assembly consists of the following four values:
|
||||
'
|
||||
' Major Version
|
||||
' Minor Version
|
||||
' Build Number
|
||||
' Revision
|
||||
'
|
||||
' You can specify all the values or you can default the Build and Revision Numbers
|
||||
' by using the '*' as shown below:
|
||||
' <Assembly: AssemblyVersion("1.0.*")>
|
||||
|
||||
<Assembly: AssemblyVersion("1.0.0.0")>
|
||||
<Assembly: AssemblyFileVersion("1.0.0.0")>
|
||||
62
HtmlTextBox/Backup/HtmlTextBox/My Project/Resources.Designer.vb
generated
Normal file
62
HtmlTextBox/Backup/HtmlTextBox/My Project/Resources.Designer.vb
generated
Normal file
@@ -0,0 +1,62 @@
|
||||
'------------------------------------------------------------------------------
|
||||
' <auto-generated>
|
||||
' This code was generated by a tool.
|
||||
' Runtime Version:2.0.50727.42
|
||||
'
|
||||
' Changes to this file may cause incorrect behavior and will be lost if
|
||||
' the code is regenerated.
|
||||
' </auto-generated>
|
||||
'------------------------------------------------------------------------------
|
||||
|
||||
Option Strict On
|
||||
Option Explicit On
|
||||
|
||||
|
||||
Namespace My.Resources
|
||||
|
||||
'This class was auto-generated by the StronglyTypedResourceBuilder
|
||||
'class via a tool like ResGen or Visual Studio.
|
||||
'To add or remove a member, edit your .ResX file then rerun ResGen
|
||||
'with the /str option, or rebuild your VS project.
|
||||
'<summary>
|
||||
' A strongly-typed resource class, for looking up localized strings, etc.
|
||||
'</summary>
|
||||
<Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0"), _
|
||||
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
||||
Global.Microsoft.VisualBasic.HideModuleNameAttribute()> _
|
||||
Friend Module Resources
|
||||
|
||||
Private resourceMan As Global.System.Resources.ResourceManager
|
||||
|
||||
Private resourceCulture As Global.System.Globalization.CultureInfo
|
||||
|
||||
'<summary>
|
||||
' Returns the cached ResourceManager instance used by this class.
|
||||
'</summary>
|
||||
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||
Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
|
||||
Get
|
||||
If Object.ReferenceEquals(resourceMan, Nothing) Then
|
||||
Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("HtmlTextBox.Resources", GetType(Resources).Assembly)
|
||||
resourceMan = temp
|
||||
End If
|
||||
Return resourceMan
|
||||
End Get
|
||||
End Property
|
||||
|
||||
'<summary>
|
||||
' Overrides the current thread's CurrentUICulture property for all
|
||||
' resource lookups using this strongly typed resource class.
|
||||
'</summary>
|
||||
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||
Friend Property Culture() As Global.System.Globalization.CultureInfo
|
||||
Get
|
||||
Return resourceCulture
|
||||
End Get
|
||||
Set(ByVal value As Global.System.Globalization.CultureInfo)
|
||||
resourceCulture = value
|
||||
End Set
|
||||
End Property
|
||||
End Module
|
||||
End Namespace
|
||||
117
HtmlTextBox/Backup/HtmlTextBox/My Project/Resources.resx
Normal file
117
HtmlTextBox/Backup/HtmlTextBox/My Project/Resources.resx
Normal file
@@ -0,0 +1,117 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
73
HtmlTextBox/Backup/HtmlTextBox/My Project/Settings.Designer.vb
generated
Normal file
73
HtmlTextBox/Backup/HtmlTextBox/My Project/Settings.Designer.vb
generated
Normal file
@@ -0,0 +1,73 @@
|
||||
'------------------------------------------------------------------------------
|
||||
' <auto-generated>
|
||||
' This code was generated by a tool.
|
||||
' Runtime Version:2.0.50727.42
|
||||
'
|
||||
' Changes to this file may cause incorrect behavior and will be lost if
|
||||
' the code is regenerated.
|
||||
' </auto-generated>
|
||||
'------------------------------------------------------------------------------
|
||||
|
||||
Option Strict On
|
||||
Option Explicit On
|
||||
|
||||
|
||||
Namespace My
|
||||
|
||||
<Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
||||
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "8.0.0.0"), _
|
||||
Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||
Partial Friend NotInheritable Class MySettings
|
||||
Inherits Global.System.Configuration.ApplicationSettingsBase
|
||||
|
||||
Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings), MySettings)
|
||||
|
||||
#Region "My.Settings Auto-Save Functionality"
|
||||
#If _MyType = "WindowsForms" Then
|
||||
Private Shared addedHandler As Boolean
|
||||
|
||||
Private Shared addedHandlerLockObject As New Object
|
||||
|
||||
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||
Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs)
|
||||
If My.Application.SaveMySettingsOnExit Then
|
||||
My.Settings.Save()
|
||||
End If
|
||||
End Sub
|
||||
#End If
|
||||
#End Region
|
||||
|
||||
Public Shared ReadOnly Property [Default]() As MySettings
|
||||
Get
|
||||
|
||||
#If _MyType = "WindowsForms" Then
|
||||
If Not addedHandler Then
|
||||
SyncLock addedHandlerLockObject
|
||||
If Not addedHandler Then
|
||||
AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
|
||||
addedHandler = True
|
||||
End If
|
||||
End SyncLock
|
||||
End If
|
||||
#End If
|
||||
Return defaultInstance
|
||||
End Get
|
||||
End Property
|
||||
End Class
|
||||
End Namespace
|
||||
|
||||
Namespace My
|
||||
|
||||
<Global.Microsoft.VisualBasic.HideModuleNameAttribute(), _
|
||||
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()> _
|
||||
Friend Module MySettingsProperty
|
||||
|
||||
<Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")> _
|
||||
Friend ReadOnly Property Settings() As Global.HtmlTextBox.My.MySettings
|
||||
Get
|
||||
Return Global.HtmlTextBox.My.MySettings.Default
|
||||
End Get
|
||||
End Property
|
||||
End Module
|
||||
End Namespace
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user