Update 20260319
This commit is contained in:
@@ -342,7 +342,7 @@ namespace API_NetFramework.Controllers
|
||||
apireturn.message = CheckResult;
|
||||
apireturn.traceid = "";
|
||||
apireturn.field = "";
|
||||
paket = null;
|
||||
//paket = null;
|
||||
try
|
||||
{
|
||||
//return BadRequest(Newtonsoft.Json.JsonConvert.SerializeObject(apireturn));
|
||||
@@ -360,6 +360,7 @@ namespace API_NetFramework.Controllers
|
||||
m0.Herkunftsapplikation = paket.Herkunftsapplikation;
|
||||
|
||||
Send_Confirmation(ref m0);
|
||||
paket = null;
|
||||
//Send_Confirmation(paket.ConfirmationMail, "", "OnDocAPI-Fehler: - CreateDoks - OnDoc-Err-Verify - GUID: " + guid, mailbody+"<br>Fehler: "+CheckResult, false);
|
||||
return Content(HttpStatusCode.BadRequest, apireturn);
|
||||
}
|
||||
@@ -378,6 +379,7 @@ namespace API_NetFramework.Controllers
|
||||
m1.forceadminmail = true;
|
||||
m1.Herkunftsapplikation = paket.Herkunftsapplikation;
|
||||
Send_Confirmation(ref m1);
|
||||
paket = null;
|
||||
return Content(HttpStatusCode.BadRequest, apireturn);
|
||||
}
|
||||
finally { apireturn = null; apiok = null; };
|
||||
@@ -934,13 +936,14 @@ namespace API_NetFramework.Controllers
|
||||
vp.send_onbase_doc = true;
|
||||
vp.verified = true;
|
||||
send_vs(ref vp, dokdata.Ersteller, doccreate.VersandDirekt == "true", OwnHost, key.ToString(), dokumentid, doccreate.PartnerNr, null, ref apireturn, doccreate);
|
||||
if (apireturn.status != "")
|
||||
if (apireturn.status != "200")
|
||||
{
|
||||
vp = null;
|
||||
vdoc = null;
|
||||
doccreate = null;
|
||||
dokdata = null;
|
||||
//return BadRequest(Newtonsoft.Json.JsonConvert.SerializeObject(apireturn));
|
||||
|
||||
return Content(HttpStatusCode.BadRequest, apireturn);
|
||||
}
|
||||
}
|
||||
@@ -965,6 +968,7 @@ namespace API_NetFramework.Controllers
|
||||
apireturn.message = "Dokument generiert";
|
||||
apireturn.traceid = "";
|
||||
apireturn.field = "GUID=" + guid;
|
||||
|
||||
|
||||
mailInhalt m = new mailInhalt();
|
||||
m.typ = 0;
|
||||
@@ -979,8 +983,12 @@ namespace API_NetFramework.Controllers
|
||||
m.forceadminmail = false;
|
||||
m.Herkunftsapplikation = doccreate.Herkunftsapplikation;
|
||||
Send_Confirmation(ref m);
|
||||
|
||||
return Ok((apireturn));
|
||||
apiok.code = "200";
|
||||
apiok.status = "200";
|
||||
apiok.message = "Dokumentpaket vorbereitet";
|
||||
apiok.documentid = "";
|
||||
apiok.file = "";
|
||||
return Ok((apiok));
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -2177,6 +2185,7 @@ namespace API_NetFramework.Controllers
|
||||
Logging.DocLog.Info("Versandpaket vorbereitet", "OnDoc-API", dokumentid, partnernr, "");
|
||||
if (!direktversenden)
|
||||
{
|
||||
apireturn.status = "200";
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -2215,7 +2224,7 @@ namespace API_NetFramework.Controllers
|
||||
}
|
||||
|
||||
Logging.DocLog.Info("Versandpaket versendet", "OnDoc-API", dokumentid, partnernr, "");
|
||||
|
||||
apireturn.status = "200";
|
||||
return;
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
@@ -10,8 +10,8 @@ namespace API_NetFramework.Controllers
|
||||
{
|
||||
public ActionResult Index()
|
||||
{
|
||||
ViewBag.Title = "Home Page";
|
||||
|
||||
ViewBag.Title = "OnDocAPI";
|
||||
return Redirect("/OnDocAPIHome.aspx");
|
||||
return View();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user