51 lines
1.9 KiB
C#
51 lines
1.9 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using VEPROMS.CSLA.Library;
|
|
|
|
namespace VEPROMS
|
|
{
|
|
//C2025-024 Electronic Procedures - Phase 2 (PROMS XML output)
|
|
//class inherits from normal import/export form
|
|
//then adds additional functionality
|
|
public partial class dlgExportImportEP : dlgExportImport
|
|
{
|
|
private readonly AnnotationTypeInfo _AnnotationType;
|
|
|
|
public dlgExportImportEP(string mode, FolderInfo folderInfo, frmVEPROMS myFrmVEPROMS, int annotationTypeId) : base(mode, folderInfo, myFrmVEPROMS, (E_UCFImportOptions) 0)
|
|
{
|
|
_AnnotationType = AnnotationTypeInfo.Get(annotationTypeId);
|
|
_ExportBothConvertedandNot = true;
|
|
DocReplace = new Dictionary<int, byte[]>();
|
|
FormClosed += OnClose;
|
|
Text = $"{mode} Electronic Procedure ({_AnnotationType.Name}) Dialog for {folderInfo.Name}";
|
|
}
|
|
|
|
public dlgExportImportEP(string mode, DocVersionInfo docVersionInfo, frmVEPROMS myFrmVEPROMS, int annotationTypeId) : base(mode, docVersionInfo, myFrmVEPROMS, (E_UCFImportOptions)0)
|
|
{
|
|
_AnnotationType = AnnotationTypeInfo.Get(annotationTypeId);
|
|
_ExportBothConvertedandNot = true;
|
|
DocReplace = new Dictionary<int, byte[]>();
|
|
FormClosed += OnClose;
|
|
Text = $"{mode} Electronic Procedure ({_AnnotationType.Name}) Dialog for {docVersionInfo.Name} of {docVersionInfo.MyFolder.Name}";
|
|
}
|
|
public dlgExportImportEP(string mode, ProcedureInfo procedureInfo, frmVEPROMS myFrmVEPROMS, int annotationTypeId) : base(mode, procedureInfo, myFrmVEPROMS, (E_UCFImportOptions)0)
|
|
{
|
|
_AnnotationType = AnnotationTypeInfo.Get(annotationTypeId);
|
|
_ExportBothConvertedandNot = true;
|
|
DocReplace = new Dictionary<int, byte[]>();
|
|
FormClosed += OnClose;
|
|
Text = $"{mode} Electronic Procedure ({_AnnotationType.Name}) Dialog for {procedureInfo.DisplayNumber}";
|
|
}
|
|
private void OnClose(object sender, EventArgs e)
|
|
{
|
|
DocReplace.Clear();
|
|
DocReplace = null;
|
|
}
|
|
|
|
|
|
}
|
|
}
|