clean up
This commit is contained in:
parent
d6e3ff3875
commit
36e441106a
@ -41,34 +41,35 @@ namespace EnvelopeGenerator.Web.Controllers
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpPost]
|
|
||||||
[Route("api/document/{envelopeKey}")]
|
|
||||||
public async Task<IActionResult> Update(string envelopeKey)
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
logger.Info("DocumentController/Update");
|
|
||||||
|
|
||||||
// Validate Envelope Key and load envelope
|
//[HttpPost]
|
||||||
envelopeService.EnsureValidEnvelopeKey(envelopeKey);
|
//[Route("api/document/{envelopeKey}")]
|
||||||
EnvelopeResponse response = envelopeService.LoadEnvelope(envelopeKey);
|
//public async Task<IActionResult> Update(string envelopeKey)
|
||||||
|
//{
|
||||||
|
// try
|
||||||
|
// {
|
||||||
|
// logger.Info("DocumentController/Update");
|
||||||
|
|
||||||
// Load Document info
|
// // Validate Envelope Key and load envelope
|
||||||
var Request = ControllerContext.HttpContext.Request;
|
// envelopeService.EnsureValidEnvelopeKey(envelopeKey);
|
||||||
var document = envelopeService.GetDocument(Request, envelopeKey);
|
// EnvelopeResponse response = envelopeService.LoadEnvelope(envelopeKey);
|
||||||
|
|
||||||
// Update the document with new data
|
// // Load Document info
|
||||||
await envelopeService.UpdateDocument(Request.Body, document.Filepath);
|
// var Request = ControllerContext.HttpContext.Request;
|
||||||
|
// var document = envelopeService.GetDocument(Request, envelopeKey);
|
||||||
|
|
||||||
// Add history entry
|
// // Update the document with new data
|
||||||
envelopeService.InsertHistoryEntrySigned(response);
|
// await envelopeService.UpdateDocument(Request.Body, document.Filepath);
|
||||||
|
|
||||||
return Ok();
|
// // Add history entry
|
||||||
}
|
// envelopeService.InsertHistoryEntrySigned(response);
|
||||||
catch (Exception e)
|
|
||||||
{
|
// return Ok();
|
||||||
return ErrorResponse(e);
|
// }
|
||||||
}
|
// catch (Exception e)
|
||||||
}
|
// {
|
||||||
|
// return ErrorResponse(e);
|
||||||
|
// }
|
||||||
|
//}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -85,19 +85,8 @@ class App {
|
|||||||
const isFormField = !!annotation.formFieldName;
|
const isFormField = !!annotation.formFieldName;
|
||||||
const isSignature = !!annotation.isSignature;
|
const isSignature = !!annotation.isSignature;
|
||||||
|
|
||||||
console.log("form field", isFormField, "signature", isSignature)
|
|
||||||
|
|
||||||
//if (!isSignature) {
|
|
||||||
// return;
|
|
||||||
//}
|
|
||||||
|
|
||||||
//if (!(isFormField && isSignature)) {
|
|
||||||
// return;
|
|
||||||
//}
|
|
||||||
|
|
||||||
if (isFormField === false && isSignature === true) {
|
if (isFormField === false && isSignature === true) {
|
||||||
|
|
||||||
|
|
||||||
const left = annotation.boundingBox.left - 25;
|
const left = annotation.boundingBox.left - 25;
|
||||||
const top = annotation.boundingBox.top - 25;
|
const top = annotation.boundingBox.top - 25;
|
||||||
const width = 150;
|
const width = 150;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user