refactor(EnvelopeDocument): rename as Document
This commit is contained in:
@@ -100,7 +100,7 @@ Public MustInherit Class BaseController
|
||||
End Try
|
||||
End Function
|
||||
|
||||
Public Function DeleteDocument(pDocument As EnvelopeDocument, pTransaction As SqlTransaction) As Boolean
|
||||
Public Function DeleteDocument(pDocument As Document, pTransaction As SqlTransaction) As Boolean
|
||||
Try
|
||||
|
||||
If DocumentModel.Delete(pDocument.Id, pTransaction) = True Then
|
||||
@@ -137,7 +137,7 @@ Public MustInherit Class BaseController
|
||||
|
||||
End Function
|
||||
|
||||
Public Function DeleteDocumentFromDisk(pDocument As EnvelopeDocument) As Boolean
|
||||
Public Function DeleteDocumentFromDisk(pDocument As Document) As Boolean
|
||||
Try
|
||||
If IO.File.Exists(pDocument.Filepath) Then
|
||||
IO.File.Delete(pDocument.Filepath)
|
||||
|
||||
@@ -159,7 +159,7 @@ Public Class EnvelopeEditorController
|
||||
End Try
|
||||
End Function
|
||||
|
||||
Public Async Function CreateDocument(pDocumentFilePath As String) As Threading.Tasks.Task(Of EnvelopeDocument)
|
||||
Public Async Function CreateDocument(pDocumentFilePath As String) As Threading.Tasks.Task(Of Document)
|
||||
Try
|
||||
Dim oFixedPath = FixPageRotation.FixPageRotation(pDocumentFilePath)
|
||||
If oFixedPath <> pDocumentFilePath Then
|
||||
@@ -177,7 +177,7 @@ Public Class EnvelopeEditorController
|
||||
|
||||
Dim oFileInfoTemp = New FileInfo(oTempFilePath)
|
||||
|
||||
Dim oDocument = New EnvelopeDocument() With {
|
||||
Dim oDocument = New Document() With {
|
||||
.Filename = oFileInfoTemp.Name,
|
||||
.Filepath = oFileInfoTemp.FullName,
|
||||
.FileNameOriginal = oFileInfo.Name,
|
||||
@@ -230,7 +230,7 @@ Public Class EnvelopeEditorController
|
||||
End Try
|
||||
End Function
|
||||
|
||||
Public Overloads Function DeleteDocument(pDocument As EnvelopeDocument) As Boolean
|
||||
Public Overloads Function DeleteDocument(pDocument As Document) As Boolean
|
||||
Dim oConnection As SqlConnection = Database.GetConnection
|
||||
Dim oTransaction As SqlTransaction = oConnection.BeginTransaction
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ Imports EnvelopeGenerator.Domain.Entities
|
||||
Public Class FieldEditorController
|
||||
Inherits BaseController
|
||||
|
||||
Private ReadOnly Document As EnvelopeDocument
|
||||
Private ReadOnly Document As Document
|
||||
Public Property Elements As New List(Of DocumentReceiverElement)
|
||||
|
||||
Public Class ElementInfo
|
||||
@@ -16,7 +16,7 @@ Public Class FieldEditorController
|
||||
Public Guid As Integer
|
||||
End Class
|
||||
|
||||
Public Sub New(pState As State, pDocument As EnvelopeDocument)
|
||||
Public Sub New(pState As State, pDocument As Document)
|
||||
MyBase.New(pState)
|
||||
Document = pDocument
|
||||
|
||||
|
||||
Reference in New Issue
Block a user