├── src
└── PrintThemp
│ ├── PrintThemp.suo
│ ├── ActiveX
│ ├── Debug
│ │ └── ActiveX.CAB
│ └── ActiveX.vdproj
│ ├── Print
│ ├── bin
│ │ └── Debug
│ │ │ ├── Print.exe
│ │ │ ├── Print.pdb
│ │ │ ├── PrintThemp.dll
│ │ │ ├── PrintThemp.pdb
│ │ │ ├── DockPanel.config
│ │ │ ├── Print.vshost.exe
│ │ │ ├── Themplate
│ │ │ ├── 发票.bmp
│ │ │ ├── 合同.bmp
│ │ │ ├── 唛头.bmp
│ │ │ ├── 报检委托书.bmp
│ │ │ ├── 装箱单.bmp
│ │ │ ├── 产品符合性声明.bmp
│ │ │ ├── 产品型式试验报告.bmp
│ │ │ ├── 加工贸易业务批准证.bmp
│ │ │ ├── 报检委托书(国家).bmp
│ │ │ ├── 唛头.xml
│ │ │ ├── 产品型式试验报告.xml
│ │ │ ├── 报检委托书(国家).xml
│ │ │ ├── 发票.xml
│ │ │ ├── 装箱单.xml
│ │ │ └── 产品符合性声明.xml
│ │ │ ├── WeifenLuo.WinFormsUI.Docking.dll
│ │ │ └── Print.vshost.exe.manifest
│ ├── obj
│ │ └── Debug
│ │ │ ├── Print.exe
│ │ │ ├── Print.pdb
│ │ │ └── ResolveAssemblyReference.cache
│ ├── Print.csproj.user
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── Print.csproj
│ └── Program.cs
│ ├── PrintThemp
│ ├── PrintThemp_Key.snk
│ ├── ToolImage
│ │ ├── Thumbs.db
│ │ ├── copy.bmp
│ │ ├── cut.bmp
│ │ ├── paste.bmp
│ │ ├── 中间对齐.bmp
│ │ ├── 使大小相同.bmp
│ │ ├── 使宽度相同.bmp
│ │ ├── 使高度相同.bmp
│ │ ├── 右对齐.bmp
│ │ ├── 垂直居中.bmp
│ │ ├── 对齐到网格.bmp
│ │ ├── 居中对齐.bmp
│ │ ├── 左对齐.bmp
│ │ ├── 底部对齐.bmp
│ │ ├── 水平居中.bmp
│ │ ├── 置于底层.bmp
│ │ ├── 置于顶层.bmp
│ │ ├── 顶部对齐.bmp
│ │ ├── delete.bmp
│ │ ├── zoomin.bmp
│ │ ├── zoomout.bmp
│ │ ├── 使垂直间距相等.bmp
│ │ ├── 使水平间距相等.bmp
│ │ ├── 减少垂直间距.bmp
│ │ ├── 减少水平间距.bmp
│ │ ├── 增加垂直间距.bmp
│ │ ├── 增加水平间距.bmp
│ │ ├── 移除垂直间距.bmp
│ │ ├── 移除水平间距.bmp
│ │ ├── clearzoom.bmp
│ │ └── dragmove.bmp
│ ├── bin
│ │ └── Debug
│ │ │ ├── PrintThemp.dll
│ │ │ ├── PrintThemp.pdb
│ │ │ └── WeifenLuo.WinFormsUI.Docking.dll
│ ├── obj
│ │ └── Debug
│ │ │ ├── PrintThemp.dll
│ │ │ ├── PrintThemp.pdb
│ │ │ ├── Refactor
│ │ │ └── PrintThemp.dll
│ │ │ ├── PrintThemp.FrmEditAdd.resources
│ │ │ ├── ResolveAssemblyReference.cache
│ │ │ ├── PrintThemp.FrmEagleLook.resources
│ │ │ ├── PrintThemp.FrmEditfrom.resources
│ │ │ ├── PrintThemp.CustomEditList.resources
│ │ │ ├── PrintThemp.FrmEditInfoBox.resources
│ │ │ ├── PrintThemp.FrmEditLeftList.resources
│ │ │ ├── PrintThemp.FrmEditControlList.resources
│ │ │ ├── PrintThemp.FrmEditMainPanel.resources
│ │ │ ├── PrintThemp.Properties.Resources.resources
│ │ │ ├── PrintThemp.csproj.GenerateResource.Cache
│ │ │ └── TempPE
│ │ │ └── Properties.Resources.Designer.cs.dll
│ ├── PrintThemp.csproj.user
│ ├── EditPrintEventArgs.cs
│ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ └── Resources.resx
│ ├── EditTemplateDataSource.cs
│ ├── FrmEditLeftList.cs
│ ├── FrmEagleLook.cs
│ ├── CustomEditList.cs
│ ├── FrmEditAdd.cs
│ ├── EditTemplateDSCollection.cs
│ ├── FrmEditInfoBox.cs
│ ├── CustomEditList.Designer.cs
│ ├── FrmEagleLook.Designer.cs
│ ├── FrmEditLeftList.Designer.cs
│ ├── EditEumnCollectionInfo.cs
│ ├── EditTemplateAddControlArgs.cs
│ ├── EditTemplateInfo.cs
│ ├── EditMainToolEventReferences.cs
│ ├── EditTemplatePrint.cs
│ ├── CustomEditList.resx
│ ├── FrmEagleLook.resx
│ └── FrmEditInfoBox.resx
│ ├── UsingDll
│ └── WeifenLuo.WinFormsUI.Docking.dll
│ ├── PrintThempActiveX
│ ├── PrintThempActiveX_Key.snk
│ ├── bin
│ │ └── Debug
│ │ │ ├── Themplate
│ │ │ ├── 发票.bmp
│ │ │ ├── 合同.bmp
│ │ │ ├── 唛头.bmp
│ │ │ ├── 装箱单.bmp
│ │ │ ├── 报检委托书.bmp
│ │ │ ├── 产品型式试验报告.bmp
│ │ │ ├── 产品符合性声明.bmp
│ │ │ ├── 加工贸易业务批准证.bmp
│ │ │ ├── 报检委托书(国家).bmp
│ │ │ ├── 唛头.xml
│ │ │ ├── 产品型式试验报告.xml
│ │ │ ├── 报检委托书(国家).xml
│ │ │ ├── 发票.xml
│ │ │ ├── 装箱单.xml
│ │ │ └── 产品符合性声明.xml
│ │ │ ├── PrintThempActiveX.dll
│ │ │ ├── PrintThempActiveX.pdb
│ │ │ ├── PrintThempActiveX.tlb
│ │ │ └── index.html
│ ├── obj
│ │ ├── Debug
│ │ │ ├── PrintThempActiveX.dll
│ │ │ ├── PrintThempActiveX.pdb
│ │ │ ├── PrintThempActiveX.FrmEditFrm.resources
│ │ │ ├── PrintThempActiveX.FrmEditInfoBox.resources
│ │ │ ├── PrintThempActiveX.FrmEditMainPanel.resources
│ │ │ ├── PrintThempActiveX.FrmEditThempZoom.resources
│ │ │ ├── TempPE
│ │ │ │ └── Properties.Resources.Designer.cs.dll
│ │ │ ├── PrintThempActiveX.FrmEditControlList.resources
│ │ │ ├── PrintThempActiveX.csproj.GenerateResource.Cache
│ │ │ ├── PrintThempActiveX.Properties.Resources.resources
│ │ │ └── PrintThempActiveX.csproj.FileListAbsolute.txt
│ │ └── PrintThempActiveX.csproj.UnmanagedRegistration.cache
│ ├── EditPrintEventArgs.cs
│ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ └── Resources.Designer.cs
│ ├── EditTemplateDataSource.cs
│ ├── FrmEditThempZoom.cs
│ ├── EditTemplateDSCollection.cs
│ ├── FrmEditThempZoom.Designer.cs
│ ├── FrmEditInfoBox.cs
│ ├── EditEumnCollectionInfo.cs
│ ├── EditTemplateAddControlArgs.cs
│ ├── EditTemplateInfo.cs
│ ├── EditMainToolEventReferences.cs
│ ├── EditTemplatePrint.cs
│ ├── PrintThempActiveX.csproj
│ ├── FrmEditInfoBox.resx
│ └── FrmEditThempZoom.resx
│ └── PrintThemp.sln
└── README.md
/src/PrintThemp/PrintThemp.suo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp.suo
--------------------------------------------------------------------------------
/src/PrintThemp/ActiveX/Debug/ActiveX.CAB:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/ActiveX/Debug/ActiveX.CAB
--------------------------------------------------------------------------------
/src/PrintThemp/Print/bin/Debug/Print.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/Print/bin/Debug/Print.exe
--------------------------------------------------------------------------------
/src/PrintThemp/Print/bin/Debug/Print.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/Print/bin/Debug/Print.pdb
--------------------------------------------------------------------------------
/src/PrintThemp/Print/obj/Debug/Print.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/Print/obj/Debug/Print.exe
--------------------------------------------------------------------------------
/src/PrintThemp/Print/obj/Debug/Print.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/Print/obj/Debug/Print.pdb
--------------------------------------------------------------------------------
/src/PrintThemp/Print/bin/Debug/PrintThemp.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/Print/bin/Debug/PrintThemp.dll
--------------------------------------------------------------------------------
/src/PrintThemp/Print/bin/Debug/PrintThemp.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/Print/bin/Debug/PrintThemp.pdb
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/PrintThemp_Key.snk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/PrintThemp_Key.snk
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/ToolImage/Thumbs.db:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/ToolImage/Thumbs.db
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/ToolImage/copy.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/ToolImage/copy.bmp
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/ToolImage/cut.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/ToolImage/cut.bmp
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/ToolImage/paste.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/ToolImage/paste.bmp
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/ToolImage/中间对齐.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/ToolImage/中间对齐.bmp
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/ToolImage/使大小相同.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/ToolImage/使大小相同.bmp
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/ToolImage/使宽度相同.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/ToolImage/使宽度相同.bmp
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/ToolImage/使高度相同.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/ToolImage/使高度相同.bmp
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/ToolImage/右对齐.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/ToolImage/右对齐.bmp
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/ToolImage/垂直居中.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/ToolImage/垂直居中.bmp
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/ToolImage/对齐到网格.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/ToolImage/对齐到网格.bmp
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/ToolImage/居中对齐.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/ToolImage/居中对齐.bmp
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/ToolImage/左对齐.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/ToolImage/左对齐.bmp
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/ToolImage/底部对齐.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/ToolImage/底部对齐.bmp
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/ToolImage/水平居中.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/ToolImage/水平居中.bmp
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/ToolImage/置于底层.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/ToolImage/置于底层.bmp
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/ToolImage/置于顶层.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/ToolImage/置于顶层.bmp
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/ToolImage/顶部对齐.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/ToolImage/顶部对齐.bmp
--------------------------------------------------------------------------------
/src/PrintThemp/Print/bin/Debug/DockPanel.config:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/Print/bin/Debug/DockPanel.config
--------------------------------------------------------------------------------
/src/PrintThemp/Print/bin/Debug/Print.vshost.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/Print/bin/Debug/Print.vshost.exe
--------------------------------------------------------------------------------
/src/PrintThemp/Print/bin/Debug/Themplate/发票.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/Print/bin/Debug/Themplate/发票.bmp
--------------------------------------------------------------------------------
/src/PrintThemp/Print/bin/Debug/Themplate/合同.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/Print/bin/Debug/Themplate/合同.bmp
--------------------------------------------------------------------------------
/src/PrintThemp/Print/bin/Debug/Themplate/唛头.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/Print/bin/Debug/Themplate/唛头.bmp
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/ToolImage/delete.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/ToolImage/delete.bmp
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/ToolImage/zoomin.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/ToolImage/zoomin.bmp
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/ToolImage/zoomout.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/ToolImage/zoomout.bmp
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/ToolImage/使垂直间距相等.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/ToolImage/使垂直间距相等.bmp
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/ToolImage/使水平间距相等.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/ToolImage/使水平间距相等.bmp
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/ToolImage/减少垂直间距.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/ToolImage/减少垂直间距.bmp
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/ToolImage/减少水平间距.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/ToolImage/减少水平间距.bmp
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/ToolImage/增加垂直间距.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/ToolImage/增加垂直间距.bmp
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/ToolImage/增加水平间距.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/ToolImage/增加水平间距.bmp
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/ToolImage/移除垂直间距.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/ToolImage/移除垂直间距.bmp
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/ToolImage/移除水平间距.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/ToolImage/移除水平间距.bmp
--------------------------------------------------------------------------------
/src/PrintThemp/Print/bin/Debug/Themplate/报检委托书.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/Print/bin/Debug/Themplate/报检委托书.bmp
--------------------------------------------------------------------------------
/src/PrintThemp/Print/bin/Debug/Themplate/装箱单.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/Print/bin/Debug/Themplate/装箱单.bmp
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/ToolImage/clearzoom.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/ToolImage/clearzoom.bmp
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/ToolImage/dragmove.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/ToolImage/dragmove.bmp
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/bin/Debug/PrintThemp.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/bin/Debug/PrintThemp.dll
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/bin/Debug/PrintThemp.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/bin/Debug/PrintThemp.pdb
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/obj/Debug/PrintThemp.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/obj/Debug/PrintThemp.dll
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/obj/Debug/PrintThemp.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/obj/Debug/PrintThemp.pdb
--------------------------------------------------------------------------------
/src/PrintThemp/Print/bin/Debug/Themplate/产品符合性声明.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/Print/bin/Debug/Themplate/产品符合性声明.bmp
--------------------------------------------------------------------------------
/src/PrintThemp/Print/bin/Debug/Themplate/产品型式试验报告.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/Print/bin/Debug/Themplate/产品型式试验报告.bmp
--------------------------------------------------------------------------------
/src/PrintThemp/Print/bin/Debug/Themplate/加工贸易业务批准证.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/Print/bin/Debug/Themplate/加工贸易业务批准证.bmp
--------------------------------------------------------------------------------
/src/PrintThemp/Print/bin/Debug/Themplate/报检委托书(国家).bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/Print/bin/Debug/Themplate/报检委托书(国家).bmp
--------------------------------------------------------------------------------
/src/PrintThemp/UsingDll/WeifenLuo.WinFormsUI.Docking.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/UsingDll/WeifenLuo.WinFormsUI.Docking.dll
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/obj/Debug/Refactor/PrintThemp.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/obj/Debug/Refactor/PrintThemp.dll
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/PrintThempActiveX_Key.snk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThempActiveX/PrintThempActiveX_Key.snk
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/bin/Debug/Themplate/发票.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThempActiveX/bin/Debug/Themplate/发票.bmp
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/bin/Debug/Themplate/合同.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThempActiveX/bin/Debug/Themplate/合同.bmp
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/bin/Debug/Themplate/唛头.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThempActiveX/bin/Debug/Themplate/唛头.bmp
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/bin/Debug/Themplate/装箱单.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThempActiveX/bin/Debug/Themplate/装箱单.bmp
--------------------------------------------------------------------------------
/src/PrintThemp/Print/obj/Debug/ResolveAssemblyReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/Print/obj/Debug/ResolveAssemblyReference.cache
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/bin/Debug/Themplate/报检委托书.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThempActiveX/bin/Debug/Themplate/报检委托书.bmp
--------------------------------------------------------------------------------
/src/PrintThemp/Print/bin/Debug/WeifenLuo.WinFormsUI.Docking.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/Print/bin/Debug/WeifenLuo.WinFormsUI.Docking.dll
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/bin/Debug/PrintThempActiveX.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThempActiveX/bin/Debug/PrintThempActiveX.dll
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/bin/Debug/PrintThempActiveX.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThempActiveX/bin/Debug/PrintThempActiveX.pdb
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/bin/Debug/PrintThempActiveX.tlb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThempActiveX/bin/Debug/PrintThempActiveX.tlb
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/bin/Debug/Themplate/产品型式试验报告.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThempActiveX/bin/Debug/Themplate/产品型式试验报告.bmp
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/bin/Debug/Themplate/产品符合性声明.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThempActiveX/bin/Debug/Themplate/产品符合性声明.bmp
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/obj/Debug/PrintThempActiveX.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThempActiveX/obj/Debug/PrintThempActiveX.dll
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/obj/Debug/PrintThempActiveX.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThempActiveX/obj/Debug/PrintThempActiveX.pdb
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/obj/Debug/PrintThemp.FrmEditAdd.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/obj/Debug/PrintThemp.FrmEditAdd.resources
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/obj/Debug/ResolveAssemblyReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/obj/Debug/ResolveAssemblyReference.cache
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/bin/Debug/Themplate/加工贸易业务批准证.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThempActiveX/bin/Debug/Themplate/加工贸易业务批准证.bmp
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/bin/Debug/Themplate/报检委托书(国家).bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThempActiveX/bin/Debug/Themplate/报检委托书(国家).bmp
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/bin/Debug/WeifenLuo.WinFormsUI.Docking.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/bin/Debug/WeifenLuo.WinFormsUI.Docking.dll
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/obj/Debug/PrintThemp.FrmEagleLook.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/obj/Debug/PrintThemp.FrmEagleLook.resources
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/obj/Debug/PrintThemp.FrmEditfrom.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/obj/Debug/PrintThemp.FrmEditfrom.resources
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/obj/Debug/PrintThemp.CustomEditList.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/obj/Debug/PrintThemp.CustomEditList.resources
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/obj/Debug/PrintThemp.FrmEditInfoBox.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/obj/Debug/PrintThemp.FrmEditInfoBox.resources
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/obj/Debug/PrintThemp.FrmEditLeftList.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/obj/Debug/PrintThemp.FrmEditLeftList.resources
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/obj/Debug/PrintThemp.FrmEditControlList.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/obj/Debug/PrintThemp.FrmEditControlList.resources
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/obj/Debug/PrintThemp.FrmEditMainPanel.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/obj/Debug/PrintThemp.FrmEditMainPanel.resources
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/obj/Debug/PrintThemp.Properties.Resources.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/obj/Debug/PrintThemp.Properties.Resources.resources
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/obj/Debug/PrintThemp.csproj.GenerateResource.Cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/obj/Debug/PrintThemp.csproj.GenerateResource.Cache
--------------------------------------------------------------------------------
/src/PrintThemp/Print/Print.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 | ProjectFiles
4 |
5 |
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThemp/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/obj/Debug/PrintThempActiveX.FrmEditFrm.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThempActiveX/obj/Debug/PrintThempActiveX.FrmEditFrm.resources
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/PrintThemp.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 | ProjectFiles
4 |
5 |
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/obj/Debug/PrintThempActiveX.FrmEditInfoBox.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThempActiveX/obj/Debug/PrintThempActiveX.FrmEditInfoBox.resources
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/obj/Debug/PrintThempActiveX.FrmEditMainPanel.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThempActiveX/obj/Debug/PrintThempActiveX.FrmEditMainPanel.resources
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/obj/Debug/PrintThempActiveX.FrmEditThempZoom.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThempActiveX/obj/Debug/PrintThempActiveX.FrmEditThempZoom.resources
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThempActiveX/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/obj/Debug/PrintThempActiveX.FrmEditControlList.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThempActiveX/obj/Debug/PrintThempActiveX.FrmEditControlList.resources
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/obj/Debug/PrintThempActiveX.csproj.GenerateResource.Cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThempActiveX/obj/Debug/PrintThempActiveX.csproj.GenerateResource.Cache
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/obj/PrintThempActiveX.csproj.UnmanagedRegistration.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThempActiveX/obj/PrintThempActiveX.csproj.UnmanagedRegistration.cache
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/obj/Debug/PrintThempActiveX.Properties.Resources.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Plen-wang/templetPrint/HEAD/src/PrintThemp/PrintThempActiveX/obj/Debug/PrintThempActiveX.Properties.Resources.resources
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/bin/Debug/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/src/PrintThemp/Print/bin/Debug/Print.vshost.exe.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/EditPrintEventArgs.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 | using System.Windows.Forms;
5 | using System.Drawing;
6 |
7 | namespace PrintThemp
8 | {
9 | ///
10 | /// 模板打印委托传送的信息
11 | ///
12 | public class EditPrintEventArgs
13 | {
14 | ///
15 | /// 模板集合
16 | ///
17 | public List editbitmap = new List();
18 | ///
19 | /// 控件集合
20 | ///
21 | public List> editcontrol = new List>();
22 |
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/EditPrintEventArgs.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 | using System.Windows.Forms;
5 | using System.Drawing;
6 |
7 | namespace PrintThempActiveX
8 | {
9 | ///
10 | /// 模板打印委托传送的信息
11 | ///
12 | public class EditPrintEventArgs
13 | {
14 | ///
15 | /// 模板集合
16 | ///
17 | public List editbitmap = new List();
18 | ///
19 | /// 控件集合
20 | ///
21 | public List> editcontrol = new List>();
22 |
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/src/PrintThemp/Print/bin/Debug/Themplate/唛头.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 006
4 | 006.bmp
5 | 唛头
6 | SHIPPINGMARK
7 |
8 | -
9 | 1
10 | 重命名2010-7-10 14:15:28
11 | 重命名2010-7-10 14:15:28
12 | 200
13 | 200
14 | 224
15 | 139
16 | 1
17 | 1
18 | PictureBox
19 |
20 | -
21 | 1
22 | 重命名2010-7-10 14:16:16
23 | 重命名2010-7-10 14:16:16
24 | 200
25 | 21
26 | 224
27 | 371
28 | 1
29 | 1
30 | TextBoxText
31 |
32 |
33 |
--------------------------------------------------------------------------------
/src/PrintThemp/Print/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // 有关程序集的常规信息通过下列属性集
6 | // 控制。更改这些属性值可修改
7 | // 与程序集关联的信息。
8 | [assembly: AssemblyTitle("Print")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("王清培")]
12 | [assembly: AssemblyProduct("Print")]
13 | [assembly: AssemblyCopyright("Copyright © 王清培 2010")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // 将 ComVisible 设置为 false 使此程序集中的类型
18 | // 对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型,
19 | // 则将该类型上的 ComVisible 属性设置为 true。
20 | [assembly: ComVisible(false)]
21 |
22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
23 | [assembly: Guid("21d164e1-98ef-4ba8-8911-5d56e7ab56ab")]
24 |
25 | // 程序集的版本信息由下面四个值组成:
26 | //
27 | // 主版本
28 | // 次版本
29 | // 内部版本号
30 | // 修订号
31 | //
32 | // 可以指定所有这些值,也可以使用“内部版本号”和“修订号”的默认值,
33 | // 方法是按如下所示使用“*”:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/bin/Debug/Themplate/唛头.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 006
4 | 006.bmp
5 | 唛头
6 | SHIPPINGMARK
7 |
8 | -
9 | 1
10 | 重命名2010-7-10 14:15:28
11 | 重命名2010-7-10 14:15:28
12 | 200
13 | 200
14 | 224
15 | 139
16 | 1
17 | 1
18 | PictureBox
19 |
20 | -
21 | 1
22 | 重命名2010-7-10 14:16:16
23 | 重命名2010-7-10 14:16:16
24 | 200
25 | 21
26 | 224
27 | 371
28 | 1
29 | 1
30 | TextBoxText
31 |
32 |
33 |
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // 有关程序集的常规信息通过下列属性集
6 | // 控制。更改这些属性值可修改
7 | // 与程序集关联的信息。
8 | [assembly: AssemblyTitle("模板打印")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("王清培")]
12 | [assembly: AssemblyProduct("PrintThemp")]
13 | [assembly: AssemblyCopyright("Copyright © 王清培 2010")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // 将 ComVisible 设置为 false 使此程序集中的类型
18 | // 对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型,
19 | // 则将该类型上的 ComVisible 属性设置为 true。
20 | [assembly: ComVisible(false)]
21 |
22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
23 | [assembly: Guid("ec8db0d1-5ed3-45f4-bd54-db21c0915444")]
24 |
25 | // 程序集的版本信息由下面四个值组成:
26 | //
27 | // 主版本
28 | // 次版本
29 | // 内部版本号
30 | // 修订号
31 | //
32 | // 可以指定所有这些值,也可以使用“内部版本号”和“修订号”的默认值,
33 | // 方法是按如下所示使用“*”:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.1")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // 有关程序集的常规信息通过下列属性集
6 | // 控制。更改这些属性值可修改
7 | // 与程序集关联的信息。
8 | [assembly: AssemblyTitle("ActiveX")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("王清培")]
12 | [assembly: AssemblyProduct("PrintThempActiveX")]
13 | [assembly: AssemblyCopyright("Copyright © 王清培 2010")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // 将 ComVisible 设置为 false 使此程序集中的类型
18 | // 对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型,
19 | // 则将该类型上的 ComVisible 属性设置为 true。
20 | [assembly: ComVisible(false)]
21 |
22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
23 | [assembly: Guid("c9d692b8-e5ac-47ec-9cbe-554ecfb86974")]
24 |
25 | // 程序集的版本信息由下面四个值组成:
26 | //
27 | // 主版本
28 | // 次版本
29 | // 内部版本号
30 | // 修订号
31 | //
32 | // 可以指定所有这些值,也可以使用“内部版本号”和“修订号”的默认值,
33 | // 方法是按如下所示使用“*”:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/EditTemplateDataSource.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * 作者:王清培
3 | * 时间:2010-7-4
4 | * 备注:该类用来存放全局模板的数据源
5 | *
6 | *
7 | */
8 | using System;
9 | using System.Collections.Generic;
10 | using System.Text;
11 | using System.Data;
12 |
13 | namespace PrintThemp
14 | {
15 | ///
16 | /// 全局模板数据源|用户需要打印哪张页面时需给出数据源
17 | /// (注:该类是实例对象类,支持多份打印)
18 | ///
19 | public class EditTemplateDataSource
20 | {
21 | ///
22 | /// 模板全局数据源|存放所有模板
23 | ///
24 | private DataSet _EditGlobalDataSource;
25 | ///
26 | /// 模板全局数据源
27 | ///
28 | public DataSet EditGlobalDataSource
29 | {
30 | get { return _EditGlobalDataSource; }
31 | }
32 | ///
33 | /// 默认构造函数
34 | ///
35 | public EditTemplateDataSource()
36 | {
37 |
38 | }
39 | ///
40 | /// 重载构造函数|实例化模板数据源
41 | ///
42 | /// 数据源(DataSet)
43 | public EditTemplateDataSource(DataSet editds)
44 | {
45 | _EditGlobalDataSource = editds;
46 | }
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/FrmEditLeftList.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Data;
5 | using System.Drawing;
6 | using System.Text;
7 | using System.Windows.Forms;
8 | using System.Collections;
9 |
10 | namespace PrintThemp
11 | {
12 | ///
13 | /// 模板左列表显示每份模板的样式
14 | ///
15 | public partial class FrmEditLeftList : WeifenLuo.WinFormsUI.Docking.DockContent
16 | {
17 | public FrmEditLeftList()
18 | {
19 | InitializeComponent();
20 | }
21 | ///
22 | /// 初始化模板列表
23 | ///
24 | private void FrmEditLeftList_Load(object sender, EventArgs e)
25 | {
26 | //获取模板名称集合
27 | foreach (object i in EditTemplateInfo.ReturnEditItemName())
28 | {
29 | //实例化模板集合中的子列表对象
30 | CustomEditList editlistchild = new CustomEditList(EditTemplateInfo.GetEditImg((i as string)));
31 | editlistchild.Tag = (i as string);//存储当前子对象所对应的模板名称
32 | editlistchild.Dock = DockStyle.Top;
33 | P_editlist.Controls.Add(editlistchild);
34 | }
35 | }
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/FrmEagleLook.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Data;
5 | using System.Drawing;
6 | using System.Text;
7 | using System.Windows.Forms;
8 |
9 | namespace PrintThemp
10 | {
11 | ///
12 | /// 激活编辑模板的鹰眼面板
13 | ///
14 | public partial class FrmEagleLook :Form
15 | {
16 | public FrmEagleLook()
17 | {
18 | InitializeComponent();
19 | }
20 | ///
21 | /// 重载构造函数|实现鹰眼的地图效果
22 | ///
23 | /// 当前面板的底图名称
24 | public FrmEagleLook(string name)
25 | {
26 | InitializeComponent();
27 | Image imgzoom = EditTemplateInfo.GetEditImg(name);
28 | int imgwidth = imgzoom.Width / 4;
29 | int imgheight = imgzoom.Height / 4;
30 | Bitmap bmp = new Bitmap(imgzoom, imgwidth, imgheight);
31 | PB_img.Width = imgwidth;
32 | PB_img.Height = imgheight;
33 | PB_img.Image = bmp;
34 |
35 | }
36 | protected override void WndProc(ref Message m)
37 | {
38 | base.WndProc(ref m);
39 | }
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/EditTemplateDataSource.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * 作者:王清培
3 | * 时间:2010-7-4
4 | * 备注:该类用来存放全局模板的数据源
5 | *
6 | *
7 | */
8 | using System;
9 | using System.Collections.Generic;
10 | using System.Text;
11 | using System.Data;
12 |
13 | namespace PrintThempActiveX
14 | {
15 | ///
16 | /// 全局模板数据源|用户需要打印哪张页面时需给出数据源
17 | /// (注:该类是实例对象类,支持多份打印)
18 | ///
19 | public class EditTemplateDataSource
20 | {
21 | ///
22 | /// 模板全局数据源|存放所有模板
23 | ///
24 | private DataSet _EditGlobalDataSource;
25 | ///
26 | /// 模板全局数据源
27 | ///
28 | public DataSet EditGlobalDataSource
29 | {
30 | get { return _EditGlobalDataSource; }
31 | }
32 | ///
33 | /// 默认构造函数
34 | ///
35 | public EditTemplateDataSource()
36 | {
37 |
38 | }
39 | ///
40 | /// 重载构造函数|实例化模板数据源
41 | ///
42 | /// 数据源(DataSet)
43 | public EditTemplateDataSource(DataSet editds)
44 | {
45 | _EditGlobalDataSource = editds;
46 | }
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/obj/Debug/PrintThempActiveX.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | E:\F\框架设计系列\ReportCatena\PrintThemp\PrintThempActiveX\bin\Debug\PrintThempActiveX.dll
2 | E:\F\框架设计系列\ReportCatena\PrintThemp\PrintThempActiveX\bin\Debug\PrintThempActiveX.pdb
3 | E:\F\框架设计系列\ReportCatena\PrintThemp\PrintThempActiveX\bin\Debug\PrintThempActiveX.tlb
4 | E:\F\框架设计系列\ReportCatena\PrintThemp\PrintThempActiveX\obj\Debug\ResolveAssemblyReference.cache
5 | E:\F\框架设计系列\ReportCatena\PrintThemp\PrintThempActiveX\obj\Debug\PrintThempActiveX.FrmEditControlList.resources
6 | E:\F\框架设计系列\ReportCatena\PrintThemp\PrintThempActiveX\obj\Debug\PrintThempActiveX.FrmEditFrm.resources
7 | E:\F\框架设计系列\ReportCatena\PrintThemp\PrintThempActiveX\obj\Debug\PrintThempActiveX.FrmEditMainPanel.resources
8 | E:\F\框架设计系列\ReportCatena\PrintThemp\PrintThempActiveX\obj\Debug\PrintThempActiveX.FrmEditThempZoom.resources
9 | E:\F\框架设计系列\ReportCatena\PrintThemp\PrintThempActiveX\obj\Debug\PrintThempActiveX.Properties.Resources.resources
10 | E:\F\框架设计系列\ReportCatena\PrintThemp\PrintThempActiveX\obj\Debug\PrintThempActiveX.csproj.GenerateResource.Cache
11 | E:\F\框架设计系列\ReportCatena\PrintThemp\PrintThempActiveX\obj\Debug\PrintThempActiveX.dll
12 | E:\F\框架设计系列\ReportCatena\PrintThemp\PrintThempActiveX\obj\Debug\PrintThempActiveX.pdb
13 | E:\F\框架设计系列\ReportCatena\PrintThemp\PrintThempActiveX\obj\Debug\PrintThempActiveX.FrmEditInfoBox.resources
14 |
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/CustomEditList.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Drawing;
5 | using System.Data;
6 | using System.Text;
7 | using System.Windows.Forms;
8 |
9 | namespace PrintThemp
10 | {
11 | ///
12 | /// 模板左列表中的子对象
13 | ///
14 | public partial class CustomEditList : UserControl
15 | {
16 | public CustomEditList(System.Drawing.Image bgimg)
17 | {
18 | InitializeComponent();
19 | Pb_editbg.Image = bgimg;
20 | }
21 |
22 | private void Pb_editbg_MouseLeave(object sender, EventArgs e)
23 | {
24 | this.BorderStyle = BorderStyle.FixedSingle;
25 | }
26 |
27 | private void Pb_editbg_MouseEnter(object sender, EventArgs e)
28 | {
29 | this.BorderStyle = BorderStyle.Fixed3D;
30 | }
31 |
32 | private void Pb_editbg_MouseDown(object sender, MouseEventArgs e)
33 | {
34 | if (e.Button == MouseButtons.Right)
35 | {
36 | FrmEditInfoBox infobox = new FrmEditInfoBox(this.Tag.ToString());
37 | infobox.SetDesktopLocation(Control.MousePosition.X, Control.MousePosition.Y);
38 | infobox.Show();
39 | }
40 | }
41 |
42 | private void Pb_editbg_Click(object sender, EventArgs e)
43 | {
44 | EditEventReferences.ActiveFacilityEditEvent(this.Tag.ToString());
45 | }
46 |
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/FrmEditThempZoom.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Drawing;
5 | using System.Data;
6 | using System.Text;
7 | using System.Windows.Forms;
8 |
9 | namespace PrintThempActiveX
10 | {
11 | public partial class FrmEditThempZoom : UserControl
12 | {
13 | public FrmEditThempZoom(Image bgimg)
14 | {
15 | InitializeComponent();
16 | Pb_editbg.Image = bgimg;
17 | InitFontStyle();
18 | }
19 | private void Pb_editbg_MouseLeave(object sender, EventArgs e)
20 | {
21 | this.BorderStyle = BorderStyle.FixedSingle;
22 | }
23 |
24 | private void Pb_editbg_MouseEnter(object sender, EventArgs e)
25 | {
26 | this.BorderStyle = BorderStyle.Fixed3D;
27 | }
28 |
29 | private void Pb_editbg_MouseDown(object sender, MouseEventArgs e)
30 | {
31 | if (e.Button == MouseButtons.Right)
32 | {
33 | FrmEditInfoBox infobox = new FrmEditInfoBox(this.Tag.ToString());
34 | infobox.SetDesktopLocation(Control.MousePosition.X, Control.MousePosition.Y);
35 | infobox.Show();
36 | }
37 | }
38 |
39 | private void Pb_editbg_Click(object sender, EventArgs e)
40 | {
41 | EditEventReferences.ActiveFacilityEditEvent(this.Tag.ToString());
42 | }
43 | ///
44 | /// ActiveX插件会丢失样式,必须自己手动创建样式对象
45 | ///
46 | private void InitFontStyle()
47 | {
48 | foreach (Control child in Controls)
49 | {
50 | child.Font = new Font("宋体", 10);
51 | }
52 | }
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # templetPrint 套打组件
2 | ## 1.背景
3 |
4 | 纯手工打造精简开源免费套打组件.
5 |
6 | ## 2.特点
7 | * 精简、用起来非常简单
8 | * 灵活的设计器功能、拖动、保存位置坐标、自动载入
9 | * 丰富的数据控件、文本、日期、图片
10 | * 控件的位置完全基于XMLDOM思想,扩展性极强
11 | * 无损的打印、预览、批量打印
12 | * 无缝集成到任何一个C/S项目中,只需要一个.dll
13 |
14 | ## 3.使用
15 | 下面介绍下这个组件大概怎么使用:
16 | 首先这个套打组件完全是基于Microsoft.net 平台的,C#编写,组件是用.dll动态链接库进行打包的。组件本身可以很好的进行C/S winform模式的程序集成,对于WEB形式的打印是基于ActiveX模式的。WEB形式的打印用起来会比较重。
17 |
18 | 
19 | 蓝色部分主要是控件、数量的移动坐标。左边是模板列表、主窗口是设计区域。可以通过移动控件来调整数据打印的位置。当你移动控件的时候下面的坐标可以看到窗口的打印相对位置,最后点击应用保存当前模板。
20 |
21 | 
22 | 当你添加好控件之后就可以调整控件的数据类型,不同的数据类型的控件具有不同的正则验证能力。
23 |
24 | 
25 | 这是一个非常人性化的透明的悬浮窗口,帮助你查看当前这个模板的一些基本信息。
26 |
27 | 
28 | 当鼠标悬停在某个控件上的时候就会得到focus的影响,此时你可以拖动也可以删除控件。
29 |
30 | 
31 | 可以很方便的删除控件。
32 | 
33 | 内嵌了系统打印功能,可以调整打印参数。
34 |
35 | 
36 | 批量套打预览。
37 | 控件背后的位置信息和模板的底图都在成对保存在目录里的。
38 |
39 | 
40 | 
41 | 
42 |
43 | 数据源也是很方便绑定的。
44 |
45 |
46 |
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 10.00
3 | # Visual Studio 2008
4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PrintThemp", "PrintThemp\PrintThemp.csproj", "{CDC59DBE-62DB-4B98-B1FA-2916ED5033B4}"
5 | EndProject
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Print", "Print\Print.csproj", "{216680E2-A4FE-42E8-B1F8-B09239875A18}"
7 | EndProject
8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PrintThempActiveX", "PrintThempActiveX\PrintThempActiveX.csproj", "{08EFEADC-146C-46C7-AAD9-0367A318587E}"
9 | EndProject
10 | Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "ActiveX", "ActiveX\ActiveX.vdproj", "{8D7856BD-B819-447A-BFB3-0ED29619097B}"
11 | EndProject
12 | Global
13 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
14 | Debug|Any CPU = Debug|Any CPU
15 | Release|Any CPU = Release|Any CPU
16 | EndGlobalSection
17 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
18 | {CDC59DBE-62DB-4B98-B1FA-2916ED5033B4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
19 | {CDC59DBE-62DB-4B98-B1FA-2916ED5033B4}.Debug|Any CPU.Build.0 = Debug|Any CPU
20 | {CDC59DBE-62DB-4B98-B1FA-2916ED5033B4}.Release|Any CPU.ActiveCfg = Release|Any CPU
21 | {CDC59DBE-62DB-4B98-B1FA-2916ED5033B4}.Release|Any CPU.Build.0 = Release|Any CPU
22 | {216680E2-A4FE-42E8-B1F8-B09239875A18}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
23 | {216680E2-A4FE-42E8-B1F8-B09239875A18}.Debug|Any CPU.Build.0 = Debug|Any CPU
24 | {216680E2-A4FE-42E8-B1F8-B09239875A18}.Release|Any CPU.ActiveCfg = Release|Any CPU
25 | {216680E2-A4FE-42E8-B1F8-B09239875A18}.Release|Any CPU.Build.0 = Release|Any CPU
26 | {08EFEADC-146C-46C7-AAD9-0367A318587E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27 | {08EFEADC-146C-46C7-AAD9-0367A318587E}.Debug|Any CPU.Build.0 = Debug|Any CPU
28 | {08EFEADC-146C-46C7-AAD9-0367A318587E}.Release|Any CPU.ActiveCfg = Release|Any CPU
29 | {08EFEADC-146C-46C7-AAD9-0367A318587E}.Release|Any CPU.Build.0 = Release|Any CPU
30 | {8D7856BD-B819-447A-BFB3-0ED29619097B}.Debug|Any CPU.ActiveCfg = Debug
31 | {8D7856BD-B819-447A-BFB3-0ED29619097B}.Debug|Any CPU.Build.0 = Debug
32 | {8D7856BD-B819-447A-BFB3-0ED29619097B}.Release|Any CPU.ActiveCfg = Release
33 | {8D7856BD-B819-447A-BFB3-0ED29619097B}.Release|Any CPU.Build.0 = Release
34 | EndGlobalSection
35 | GlobalSection(SolutionProperties) = preSolution
36 | HideSolutionNode = FALSE
37 | EndGlobalSection
38 | EndGlobal
39 |
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/FrmEditAdd.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Data;
5 | using System.Drawing;
6 | using System.Text;
7 | using System.Windows.Forms;
8 | using System.IO;
9 | using System.Xml;
10 |
11 | namespace PrintThemp
12 | {
13 | ///
14 | /// 添加模板
15 | ///
16 | public partial class FrmEditAdd : Form
17 | {
18 | public FrmEditAdd()
19 | {
20 | InitializeComponent();
21 | }
22 |
23 | private void Bt_browser_Click(object sender, EventArgs e)
24 | {
25 | if (openFileDialog1.ShowDialog() == DialogResult.OK)
26 | {
27 | Tb_bmppath.Text = openFileDialog1.FileName;
28 | }
29 | }
30 |
31 | private void Bt_enter_Click(object sender, EventArgs e)
32 | {
33 | try
34 | {
35 |
36 | if (Tb_ename.Text.Length > 0 && Tb_cname.Text.Length > 0 && Tb_bmppath.Text.Length > 0)
37 | {
38 | //拷贝底图
39 | File.Copy(Tb_bmppath.Text, Application.StartupPath + "\\Themplate\\" + Tb_cname.Text + ".bmp");
40 | //建立DOM文档
41 | XmlDocument document = new XmlDocument();
42 | XmlDeclaration decl = document.CreateXmlDeclaration("1.0", "UTF-8", null);//XML申明
43 | document.AppendChild(decl);
44 | XmlElement Custom_Root = document.CreateElement("Custom_Root");//根节点
45 | EditTemplateMethod.AppendChildElement(document, Custom_Root, "CODE", Tb_code.Text);//模板代码
46 | EditTemplateMethod.AppendChildElement(document, Custom_Root, "BACK_IMG", Tb_ename.Text);//模板底图
47 | EditTemplateMethod.AppendChildElement(document, Custom_Root, "CNAME", Tb_code.Text);//模板中文名称
48 | EditTemplateMethod.AppendChildElement(document, Custom_Root, "ENAME", Tb_ename.Text);//模板英文名称
49 | EditTemplateMethod.AppendChildElement(document, Custom_Root, "ITEMS", "");//模板控件列表|默认为空
50 | document.AppendChild(Custom_Root);
51 | document.Save(Application.StartupPath + "\\Themplate\\" + Tb_cname.Text + ".xml");//保存模板
52 | MessageBox.Show("添加成功!", "信息提示");
53 | }
54 | }
55 | catch(Exception err) { MessageBox.Show("不能指定同名模板", "信息提示", MessageBoxButtons.OK, MessageBoxIcon.Information); }
56 | }
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/src/PrintThemp/Print/Print.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Debug
5 | AnyCPU
6 | 9.0.30729
7 | 2.0
8 | {216680E2-A4FE-42E8-B1F8-B09239875A18}
9 | WinExe
10 | Properties
11 | Print
12 | Print
13 | v2.0
14 | 512
15 |
16 |
17 | true
18 | full
19 | false
20 | bin\Debug\
21 | DEBUG;TRACE
22 | prompt
23 | 4
24 |
25 |
26 | pdbonly
27 | true
28 | bin\Release\
29 | TRACE
30 | prompt
31 | 4
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 | {CDC59DBE-62DB-4B98-B1FA-2916ED5033B4}
48 | PrintThemp
49 |
50 |
51 |
52 |
59 |
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/EditTemplateDSCollection.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * 作者:王清培
3 | * 时间:2010-7-4
4 | * 备注:该实例用来存放所有模板数据源的集合|DataSet的集合|实现多份打印
5 | * */
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Text;
9 | using System.Collections;
10 |
11 | namespace PrintThemp
12 | {
13 | ///
14 | /// 存放全局数据源集合
15 | ///
16 | public class EditTemplateDSCollection : IEnumerator, IEnumerable
17 | {
18 | private int index = -1;
19 | ///
20 | /// 模板数据源集合
21 | ///
22 | private List _EditDSColl = new List();
23 | ///
24 | /// 获取模板数据
25 | ///
26 | public List EidtDSColl
27 | {
28 | get { return _EditDSColl; }
29 | }
30 | ///
31 | /// 添加模板数据源
32 | ///
33 | public EditTemplateDataSource SetEditDSColl
34 | {
35 | set { _EditDSColl.Add(value); }
36 | }
37 | ///
38 | /// 默认构造函数
39 | ///
40 | public EditTemplateDSCollection()
41 | {
42 |
43 | }
44 | ///
45 | /// 重载构造函数|
46 | ///
47 | /// 模板数据源
48 | public EditTemplateDSCollection(EditTemplateDataSource editds)
49 | {
50 | _EditDSColl.Add(editds);
51 | }
52 | ///
53 | /// 根据索引返回数据源集合中的项
54 | ///
55 | /// 索引
56 | /// 单套数据源
57 | public EditTemplateDataSource this[int index]
58 | {
59 | get { return _EditDSColl[index]; }
60 | }
61 | ///
62 | /// foreacth集合方法
63 | ///
64 | /// IEnumerator对象
65 | public IEnumerator GetEnumerator()
66 | {
67 | return this;
68 | }
69 | ///
70 | /// 移动到下一个
71 | ///
72 | /// bool
73 | public bool MoveNext()
74 | {
75 | return index++ < _EditDSColl.Count ? true : false;
76 | }
77 | ///
78 | /// 返回集合中的当前元素
79 | ///
80 | public object Current
81 | {
82 | get { return _EditDSColl[index]; }
83 | }
84 | ///
85 | /// 返回到集合的开始
86 | ///
87 | public void Reset()
88 | {
89 | index = -1;
90 | }
91 | }
92 | }
93 |
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/EditTemplateDSCollection.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * 作者:王清培
3 | * 时间:2010-7-4
4 | * 备注:该实例用来存放所有模板数据源的集合|DataSet的集合|实现多份打印
5 | * */
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Text;
9 | using System.Collections;
10 |
11 | namespace PrintThempActiveX
12 | {
13 | ///
14 | /// 存放全局数据源集合
15 | ///
16 | public class EditTemplateDSCollection : IEnumerator, IEnumerable
17 | {
18 | private int index = -1;
19 | ///
20 | /// 模板数据源集合
21 | ///
22 | private List _EditDSColl = new List();
23 | ///
24 | /// 获取模板数据
25 | ///
26 | public List EidtDSColl
27 | {
28 | get { return _EditDSColl; }
29 | }
30 | ///
31 | /// 添加模板数据源
32 | ///
33 | public EditTemplateDataSource SetEditDSColl
34 | {
35 | set { _EditDSColl.Add(value); }
36 | }
37 | ///
38 | /// 默认构造函数
39 | ///
40 | public EditTemplateDSCollection()
41 | {
42 |
43 | }
44 | ///
45 | /// 重载构造函数|
46 | ///
47 | /// 模板数据源
48 | public EditTemplateDSCollection(EditTemplateDataSource editds)
49 | {
50 | _EditDSColl.Add(editds);
51 | }
52 | ///
53 | /// 根据索引返回数据源集合中的项
54 | ///
55 | /// 索引
56 | /// 单套数据源
57 | public EditTemplateDataSource this[int index]
58 | {
59 | get { return _EditDSColl[index]; }
60 | }
61 | ///
62 | /// foreacth集合方法
63 | ///
64 | /// IEnumerator对象
65 | public IEnumerator GetEnumerator()
66 | {
67 | return this;
68 | }
69 | ///
70 | /// 移动到下一个
71 | ///
72 | /// bool
73 | public bool MoveNext()
74 | {
75 | return index++ < _EditDSColl.Count ? true : false;
76 | }
77 | ///
78 | /// 返回集合中的当前元素
79 | ///
80 | public object Current
81 | {
82 | get { return _EditDSColl[index]; }
83 | }
84 | ///
85 | /// 返回到集合的开始
86 | ///
87 | public void Reset()
88 | {
89 | index = -1;
90 | }
91 | }
92 | }
93 |
--------------------------------------------------------------------------------
/src/PrintThemp/Print/bin/Debug/Themplate/产品型式试验报告.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 007
4 | 007.bmp
5 | 产品型式试验报告
6 | ProductModelTestRecord
7 |
8 | -
9 | 1
10 | 样品名称
11 | modeName
12 | 200
13 | 21
14 | 210
15 | 320
16 | 1
17 | 1
18 | TextBoxText
19 |
20 | -
21 | 2
22 | 型号
23 | modeNum
24 | 200
25 | 21
26 | 210
27 | 365
28 | 1
29 | 1
30 | TextBoxText
31 |
32 | -
33 | 3
34 | 试验日期
35 | testDateStr
36 | 200
37 | 21
38 | 211
39 | 410
40 | 1
41 | 1
42 | DateTimePicker
43 |
44 | -
45 | 4
46 | 制造商
47 | manufacturer
48 | 200
49 | 21
50 | 210
51 | 450
52 | 1
53 | 1
54 | TextBoxText
55 |
56 | -
57 | 5
58 | 试验单位
59 | testUnit
60 | 200
61 | 21
62 | 210
63 | 490
64 | 1
65 | 1
66 | TextBoxText
67 |
68 | -
69 | 0
70 | 报告编号
71 | productReportN111um
72 | 200
73 | 21
74 | 210
75 | 281
76 | 1
77 | 1
78 | TextBoxText
79 |
80 |
81 |
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/bin/Debug/Themplate/产品型式试验报告.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 007
4 | 007.bmp
5 | 产品型式试验报告
6 | ProductModelTestRecord
7 |
8 | -
9 | 1
10 | 样品名称
11 | modeName
12 | 200
13 | 21
14 | 210
15 | 320
16 | 1
17 | 1
18 | TextBoxText
19 |
20 | -
21 | 2
22 | 型号
23 | modeNum
24 | 200
25 | 21
26 | 210
27 | 365
28 | 1
29 | 1
30 | TextBoxText
31 |
32 | -
33 | 3
34 | 试验日期
35 | testDateStr
36 | 200
37 | 21
38 | 211
39 | 410
40 | 1
41 | 1
42 | DateTimePicker
43 |
44 | -
45 | 4
46 | 制造商
47 | manufacturer
48 | 200
49 | 21
50 | 210
51 | 450
52 | 1
53 | 1
54 | TextBoxText
55 |
56 | -
57 | 5
58 | 试验单位
59 | testUnit
60 | 200
61 | 21
62 | 210
63 | 490
64 | 1
65 | 1
66 | TextBoxText
67 |
68 | -
69 | 0
70 | 报告编号
71 | productReportN111um
72 | 200
73 | 21
74 | 210
75 | 281
76 | 1
77 | 1
78 | TextBoxText
79 |
80 |
81 |
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // 此代码由工具生成。
4 | // 运行时版本:2.0.50727.3615
5 | //
6 | // 对此文件的更改可能会导致不正确的行为,并且如果
7 | // 重新生成代码,这些更改将会丢失。
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace PrintThemp.Properties {
12 | using System;
13 |
14 |
15 | ///
16 | /// 强类型资源类,用于查找本地化字符串等。
17 | ///
18 | // 此类是由 StronglyTypedResourceBuilder
19 | // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
20 | // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
21 | // (以 /str 作为命令选项),或重新生成 VS 项目。
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources {
26 |
27 | private static global::System.Resources.ResourceManager resourceMan;
28 |
29 | private static global::System.Globalization.CultureInfo resourceCulture;
30 |
31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32 | internal Resources() {
33 | }
34 |
35 | ///
36 | /// 返回此类使用的缓存 ResourceManager 实例。
37 | ///
38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39 | internal static global::System.Resources.ResourceManager ResourceManager {
40 | get {
41 | if (object.ReferenceEquals(resourceMan, null)) {
42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("PrintThemp.Properties.Resources", typeof(Resources).Assembly);
43 | resourceMan = temp;
44 | }
45 | return resourceMan;
46 | }
47 | }
48 |
49 | ///
50 | /// 为使用此强类型资源类的所有资源查找
51 | /// 重写当前线程的 CurrentUICulture 属性。
52 | ///
53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54 | internal static global::System.Globalization.CultureInfo Culture {
55 | get {
56 | return resourceCulture;
57 | }
58 | set {
59 | resourceCulture = value;
60 | }
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // 此代码由工具生成。
4 | // 运行时版本:2.0.50727.3615
5 | //
6 | // 对此文件的更改可能会导致不正确的行为,并且如果
7 | // 重新生成代码,这些更改将会丢失。
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace PrintThempActiveX.Properties {
12 | using System;
13 |
14 |
15 | ///
16 | /// 强类型资源类,用于查找本地化字符串等。
17 | ///
18 | // 此类是由 StronglyTypedResourceBuilder
19 | // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
20 | // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
21 | // (以 /str 作为命令选项),或重新生成 VS 项目。
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources {
26 |
27 | private static global::System.Resources.ResourceManager resourceMan;
28 |
29 | private static global::System.Globalization.CultureInfo resourceCulture;
30 |
31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32 | internal Resources() {
33 | }
34 |
35 | ///
36 | /// 返回此类使用的缓存 ResourceManager 实例。
37 | ///
38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39 | internal static global::System.Resources.ResourceManager ResourceManager {
40 | get {
41 | if (object.ReferenceEquals(resourceMan, null)) {
42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("PrintThempActiveX.Properties.Resources", typeof(Resources).Assembly);
43 | resourceMan = temp;
44 | }
45 | return resourceMan;
46 | }
47 | }
48 |
49 | ///
50 | /// 为使用此强类型资源类的所有资源查找
51 | /// 重写当前线程的 CurrentUICulture 属性。
52 | ///
53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54 | internal static global::System.Globalization.CultureInfo Culture {
55 | get {
56 | return resourceCulture;
57 | }
58 | set {
59 | resourceCulture = value;
60 | }
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/FrmEditThempZoom.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace PrintThempActiveX
2 | {
3 | partial class FrmEditThempZoom
4 | {
5 | ///
6 | /// 必需的设计器变量。
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// 清理所有正在使用的资源。
12 | ///
13 | /// 如果应释放托管资源,为 true;否则为 false。
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region 组件设计器生成的代码
24 |
25 | ///
26 | /// 设计器支持所需的方法 - 不要
27 | /// 使用代码编辑器修改此方法的内容。
28 | ///
29 | private void InitializeComponent()
30 | {
31 | this.Pb_editbg = new System.Windows.Forms.PictureBox();
32 | ((System.ComponentModel.ISupportInitialize)(this.Pb_editbg)).BeginInit();
33 | this.SuspendLayout();
34 | //
35 | // Pb_editbg
36 | //
37 | this.Pb_editbg.Cursor = System.Windows.Forms.Cursors.Hand;
38 | this.Pb_editbg.Dock = System.Windows.Forms.DockStyle.Fill;
39 | this.Pb_editbg.Location = new System.Drawing.Point(0, 0);
40 | this.Pb_editbg.Name = "Pb_editbg";
41 | this.Pb_editbg.Size = new System.Drawing.Size(166, 228);
42 | this.Pb_editbg.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
43 | this.Pb_editbg.TabIndex = 1;
44 | this.Pb_editbg.TabStop = false;
45 | this.Pb_editbg.MouseLeave += new System.EventHandler(this.Pb_editbg_MouseLeave);
46 | this.Pb_editbg.Click += new System.EventHandler(this.Pb_editbg_Click);
47 | this.Pb_editbg.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Pb_editbg_MouseDown);
48 | this.Pb_editbg.MouseEnter += new System.EventHandler(this.Pb_editbg_MouseEnter);
49 | //
50 | // FrmEditThempZoom
51 | //
52 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
53 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
54 | this.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
55 | this.Controls.Add(this.Pb_editbg);
56 | this.Name = "FrmEditThempZoom";
57 | this.Size = new System.Drawing.Size(166, 228);
58 | ((System.ComponentModel.ISupportInitialize)(this.Pb_editbg)).EndInit();
59 | this.ResumeLayout(false);
60 |
61 | }
62 |
63 | #endregion
64 |
65 | private System.Windows.Forms.PictureBox Pb_editbg;
66 | }
67 | }
68 |
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/FrmEditInfoBox.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Data;
5 | using System.Drawing;
6 | using System.Text;
7 | using System.Windows.Forms;
8 | using System.IO;
9 | using System.Xml;
10 |
11 | namespace PrintThemp
12 | {
13 | ///
14 | /// 显示模板的详细信息
15 | ///
16 | public partial class FrmEditInfoBox : Form
17 | {
18 | #region 窗体变量及构造函数
19 | ///
20 | /// 确定是否移动控件
21 | ///
22 | bool ismove = false;
23 | ///
24 | /// 记录按下的鼠标位置
25 | ///
26 | Point p;
27 | ///
28 | /// 模板名称
29 | ///
30 | string EditPath;
31 |
32 | public FrmEditInfoBox(string editpaht)
33 | {
34 | InitializeComponent();
35 | EditPath = editpaht;
36 | }
37 | #endregion
38 |
39 | #region 移动窗体
40 | private void P_menu_MouseDown(object sender, MouseEventArgs e)
41 | {
42 | ismove = true;
43 | p = new Point(-e.X, -e.Y);
44 | this.Opacity = (float)80 / 100;
45 | }
46 |
47 | private void P_menu_MouseMove(object sender, MouseEventArgs e)
48 | {
49 | if (ismove)
50 | {
51 | Point move = Control.MousePosition;
52 | move.Offset(p.X, p.Y);
53 | this.Location = move;
54 |
55 | }
56 | }
57 |
58 | private void P_menu_MouseUp(object sender, MouseEventArgs e)
59 | {
60 | ismove = false;
61 | this.Opacity = (float)100 / 100;
62 | }
63 | #endregion
64 | private void FrmEditInfoBox_Deactivate(object sender, EventArgs e)
65 | {
66 | this.Close();
67 | this.Dispose();
68 | }
69 |
70 | private void FrmEditInfoBox_Load(object sender, EventArgs e)
71 | {
72 | try
73 | {
74 |
75 | string filepath = EditTemplateInfo.GetEditXmlPathName((EditPath.Substring(0, EditPath.IndexOf(".")) + ".xml"));
76 | Lb_editname.Text = EditTemplateInfo.GetEditXmlDocument((EditPath.Substring(0, EditPath.IndexOf(".")) + ".xml")).DocumentElement.ChildNodes[2].InnerText;
77 | Lb_createtime.Text = File.GetCreationTime(filepath).ToString();
78 | Lb_lastwritetime.Text = File.GetLastAccessTime(filepath).ToString();
79 | Lb_lastaccesstime.Text = File.GetLastWriteTime(filepath).ToString();
80 | }
81 | catch { }
82 | }
83 |
84 | private void Bt_edit_Click(object sender, EventArgs e)
85 | {
86 | EditEventReferences.ActiveFacilityEditEvent(EditPath);
87 | }
88 | }
89 | }
90 |
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/CustomEditList.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace PrintThemp
2 | {
3 | partial class CustomEditList
4 | {
5 | ///
6 | /// 必需的设计器变量。
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// 清理所有正在使用的资源。
12 | ///
13 | /// 如果应释放托管资源,为 true;否则为 false。
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region 组件设计器生成的代码
24 |
25 | ///
26 | /// 设计器支持所需的方法 - 不要
27 | /// 使用代码编辑器修改此方法的内容。
28 | ///
29 | private void InitializeComponent()
30 | {
31 | this.Pb_editbg = new System.Windows.Forms.PictureBox();
32 | ((System.ComponentModel.ISupportInitialize)(this.Pb_editbg)).BeginInit();
33 | this.SuspendLayout();
34 | //
35 | // Pb_editbg
36 | //
37 | this.Pb_editbg.Dock = System.Windows.Forms.DockStyle.Fill;
38 | this.Pb_editbg.Location = new System.Drawing.Point(0, 0);
39 | this.Pb_editbg.Name = "Pb_editbg";
40 | this.Pb_editbg.Size = new System.Drawing.Size(166, 228);
41 | this.Pb_editbg.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
42 | this.Pb_editbg.TabIndex = 0;
43 | this.Pb_editbg.TabStop = false;
44 | this.Pb_editbg.MouseLeave += new System.EventHandler(this.Pb_editbg_MouseLeave);
45 | this.Pb_editbg.Click += new System.EventHandler(this.Pb_editbg_Click);
46 | this.Pb_editbg.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Pb_editbg_MouseDown);
47 | this.Pb_editbg.MouseEnter += new System.EventHandler(this.Pb_editbg_MouseEnter);
48 | //
49 | // CustomEditList
50 | //
51 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
52 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
53 | this.BackColor = System.Drawing.Color.Transparent;
54 | this.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
55 | this.Controls.Add(this.Pb_editbg);
56 | this.Cursor = System.Windows.Forms.Cursors.Hand;
57 | this.Name = "CustomEditList";
58 | this.Size = new System.Drawing.Size(166, 228);
59 | ((System.ComponentModel.ISupportInitialize)(this.Pb_editbg)).EndInit();
60 | this.ResumeLayout(false);
61 |
62 | }
63 |
64 | #endregion
65 |
66 | private System.Windows.Forms.PictureBox Pb_editbg;
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/FrmEagleLook.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace PrintThemp
2 | {
3 | partial class FrmEagleLook
4 | {
5 | ///
6 | /// Required designer variable.
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// Clean up any resources being used.
12 | ///
13 | /// true if managed resources should be disposed; otherwise, false.
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region Windows Form Designer generated code
24 |
25 | ///
26 | /// Required method for Designer support - do not modify
27 | /// the contents of this method with the code editor.
28 | ///
29 | private void InitializeComponent()
30 | {
31 | this.PB_img = new System.Windows.Forms.PictureBox();
32 | ((System.ComponentModel.ISupportInitialize)(this.PB_img)).BeginInit();
33 | this.SuspendLayout();
34 | //
35 | // PB_img
36 | //
37 | this.PB_img.Dock = System.Windows.Forms.DockStyle.Fill;
38 | this.PB_img.Location = new System.Drawing.Point(0, 0);
39 | this.PB_img.Name = "PB_img";
40 | this.PB_img.Size = new System.Drawing.Size(122, 124);
41 | this.PB_img.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
42 | this.PB_img.TabIndex = 0;
43 | this.PB_img.TabStop = false;
44 | //
45 | // FrmEagleLook
46 | //
47 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
48 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
49 | this.BackColor = System.Drawing.Color.White;
50 | this.ClientSize = new System.Drawing.Size(122, 124);
51 | this.Controls.Add(this.PB_img);
52 | this.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
53 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
54 | this.MaximizeBox = false;
55 | this.MinimizeBox = false;
56 | this.Name = "FrmEagleLook";
57 | this.ShowIcon = false;
58 | this.ShowInTaskbar = false;
59 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
60 | this.Text = "小地图";
61 | this.TopMost = true;
62 | ((System.ComponentModel.ISupportInitialize)(this.PB_img)).EndInit();
63 | this.ResumeLayout(false);
64 |
65 | }
66 |
67 | #endregion
68 |
69 | private System.Windows.Forms.PictureBox PB_img;
70 |
71 | }
72 | }
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/FrmEditInfoBox.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Data;
5 | using System.Drawing;
6 | using System.Text;
7 | using System.Windows.Forms;
8 | using System.IO;
9 | using System.Xml;
10 |
11 | namespace PrintThempActiveX
12 | {
13 | ///
14 | /// 显示模板的详细信息
15 | ///
16 | public partial class FrmEditInfoBox : Form
17 | {
18 | #region 窗体变量及构造函数
19 | ///
20 | /// 确定是否移动控件
21 | ///
22 | bool ismove = false;
23 | ///
24 | /// 记录按下的鼠标位置
25 | ///
26 | Point p;
27 | ///
28 | /// 模板名称
29 | ///
30 | string EditPath;
31 |
32 | public FrmEditInfoBox(string editpaht)
33 | {
34 | InitializeComponent();
35 | EditPath = editpaht;
36 | InitFontStyle();
37 | }
38 | #endregion
39 |
40 | #region 移动窗体
41 | private void P_menu_MouseDown(object sender, MouseEventArgs e)
42 | {
43 | ismove = true;
44 | p = new Point(-e.X, -e.Y);
45 | this.Opacity = (float)80 / 100;
46 | }
47 |
48 | private void P_menu_MouseMove(object sender, MouseEventArgs e)
49 | {
50 | if (ismove)
51 | {
52 | Point move = Control.MousePosition;
53 | move.Offset(p.X, p.Y);
54 | this.Location = move;
55 |
56 | }
57 | }
58 |
59 | private void P_menu_MouseUp(object sender, MouseEventArgs e)
60 | {
61 | ismove = false;
62 | this.Opacity = (float)100 / 100;
63 | }
64 | #endregion
65 | private void FrmEditInfoBox_Deactivate(object sender, EventArgs e)
66 | {
67 | this.Close();
68 | this.Dispose();
69 | }
70 |
71 | private void FrmEditInfoBox_Load(object sender, EventArgs e)
72 | {
73 | try
74 | {
75 |
76 | string filepath = EditTemplateInfo.GetEditXmlPathName((EditPath.Substring(0, EditPath.IndexOf(".")) + ".xml"));
77 | Lb_editname.Text = EditTemplateInfo.GetEditXmlDocument((EditPath.Substring(0, EditPath.IndexOf(".")) + ".xml")).DocumentElement.ChildNodes[2].InnerText;
78 | Lb_createtime.Text = File.GetCreationTime(filepath).ToString();
79 | Lb_lastwritetime.Text = File.GetLastAccessTime(filepath).ToString();
80 | Lb_lastaccesstime.Text = File.GetLastWriteTime(filepath).ToString();
81 | }
82 | catch { }
83 | }
84 |
85 | private void Bt_edit_Click(object sender, EventArgs e)
86 | {
87 |
88 | }
89 | ///
90 | /// ActiveX插件会丢失样式,必须自己手动创建样式对象
91 | ///
92 | private void InitFontStyle()
93 | {
94 | foreach (Control child in Controls)
95 | {
96 | child.Font = new Font("宋体", 10);
97 | }
98 | }
99 | }
100 | }
101 |
--------------------------------------------------------------------------------
/src/PrintThemp/ActiveX/ActiveX.vdproj:
--------------------------------------------------------------------------------
1 | "DeployProject"
2 | {
3 | "VSVersion" = "3:800"
4 | "ProjectType" = "8:{3EA9E505-35AC-4774-B492-AD1749C4943A}"
5 | "IsWebType" = "8:FALSE"
6 | "ProjectName" = "8:ActiveX"
7 | "LanguageId" = "3:2052"
8 | "CodePage" = "3:936"
9 | "UILanguageId" = "3:2052"
10 | "SccProjectName" = "8:"
11 | "SccLocalPath" = "8:"
12 | "SccAuxPath" = "8:"
13 | "SccProvider" = "8:"
14 | "Hierarchy"
15 | {
16 | }
17 | "Configurations"
18 | {
19 | "Debug"
20 | {
21 | "DisplayName" = "8:Debug"
22 | "IsDebugOnly" = "11:TRUE"
23 | "IsReleaseOnly" = "11:FALSE"
24 | "OutputFilename" = "8:Debug\\ActiveX.cab"
25 | "PackageFilesAs" = "3:2"
26 | "PackageFileSize" = "3:-2147483648"
27 | "CabType" = "3:1"
28 | "Compression" = "3:2"
29 | "SignOutput" = "11:FALSE"
30 | "CertificateFile" = "8:"
31 | "PrivateKeyFile" = "8:"
32 | "TimeStampServer" = "8:"
33 | "InstallerBootstrapper" = "3:1"
34 | }
35 | "Release"
36 | {
37 | "DisplayName" = "8:Release"
38 | "IsDebugOnly" = "11:FALSE"
39 | "IsReleaseOnly" = "11:TRUE"
40 | "OutputFilename" = "8:Release\\ActiveX.cab"
41 | "PackageFilesAs" = "3:2"
42 | "PackageFileSize" = "3:-2147483648"
43 | "CabType" = "3:1"
44 | "Compression" = "3:2"
45 | "SignOutput" = "11:FALSE"
46 | "CertificateFile" = "8:"
47 | "PrivateKeyFile" = "8:"
48 | "TimeStampServer" = "8:"
49 | "InstallerBootstrapper" = "3:1"
50 | }
51 | }
52 | "Deployable"
53 | {
54 | "OSD"
55 | {
56 | "FriendlyName" = "8:ActiveX"
57 | "Version" = "8:1.0.0.0"
58 | "PreBuildEvent" = "8:"
59 | "PostBuildEvent" = "8:"
60 | "RunPostBuildEvent" = "3:0"
61 | "Dependencies"
62 | {
63 | }
64 | }
65 | "SimpleFile"
66 | {
67 | }
68 | "SimpleProjectOutput"
69 | {
70 | "{3169EF16-0292-4576-A031-DDE5527F1848}:_BBCA575328154131937A9E0DFE1DE37D"
71 | {
72 | "SourcePath" = "8:"
73 | "TargetName" = "8:"
74 | "Tag" = "8:"
75 | "Folder" = "8:"
76 | "Condition" = "8:"
77 | "Transitive" = "11:FALSE"
78 | "Vital" = "11:TRUE"
79 | "ReadOnly" = "11:FALSE"
80 | "Hidden" = "11:FALSE"
81 | "System" = "11:FALSE"
82 | "Permanent" = "11:FALSE"
83 | "SharedLegacy" = "11:FALSE"
84 | "PackageAs" = "3:1"
85 | "Register" = "3:1"
86 | "Exclude" = "11:FALSE"
87 | "IsDependency" = "11:FALSE"
88 | "IsolateTo" = "8:"
89 | "OutputConfiguration" = "8:"
90 | "OutputGroupCanonicalName" = "8:Built"
91 | "OutputProjectCanonicalName" = "8:PrintThempActiveX\\PrintThempActiveX.csproj"
92 | "OutputProjectGuid" = "8:{08EFEADC-146C-46C7-AAD9-0367A318587E}"
93 | "ExcludeFilters"
94 | {
95 | }
96 | }
97 | }
98 | }
99 | }
100 |
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/FrmEditLeftList.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace PrintThemp
2 | {
3 | partial class FrmEditLeftList
4 | {
5 | ///
6 | /// Required designer variable.
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// Clean up any resources being used.
12 | ///
13 | /// true if managed resources should be disposed; otherwise, false.
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region Windows Form Designer generated code
24 |
25 | ///
26 | /// Required method for Designer support - do not modify
27 | /// the contents of this method with the code editor.
28 | ///
29 | private void InitializeComponent()
30 | {
31 | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmEditLeftList));
32 | this.P_editlist = new System.Windows.Forms.Panel();
33 | this.SuspendLayout();
34 | //
35 | // P_editlist
36 | //
37 | this.P_editlist.AutoScroll = true;
38 | this.P_editlist.BackColor = System.Drawing.Color.White;
39 | this.P_editlist.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
40 | this.P_editlist.Dock = System.Windows.Forms.DockStyle.Fill;
41 | this.P_editlist.Location = new System.Drawing.Point(0, 0);
42 | this.P_editlist.Name = "P_editlist";
43 | this.P_editlist.Size = new System.Drawing.Size(170, 518);
44 | this.P_editlist.TabIndex = 0;
45 | //
46 | // FrmEditLeftList
47 | //
48 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
49 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
50 | this.ClientSize = new System.Drawing.Size(170, 518);
51 | this.Controls.Add(this.P_editlist);
52 | this.DockAreas = ((WeifenLuo.WinFormsUI.Docking.DockAreas)(((((WeifenLuo.WinFormsUI.Docking.DockAreas.DockLeft | WeifenLuo.WinFormsUI.Docking.DockAreas.DockRight)
53 | | WeifenLuo.WinFormsUI.Docking.DockAreas.DockTop)
54 | | WeifenLuo.WinFormsUI.Docking.DockAreas.DockBottom)
55 | | WeifenLuo.WinFormsUI.Docking.DockAreas.Document)));
56 | this.DoubleBuffered = true;
57 | this.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
58 | this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
59 | this.Name = "FrmEditLeftList";
60 | this.ShowInTaskbar = false;
61 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
62 | this.Text = "模板列表";
63 | this.Load += new System.EventHandler(this.FrmEditLeftList_Load);
64 | this.ResumeLayout(false);
65 |
66 | }
67 |
68 | #endregion
69 |
70 | private System.Windows.Forms.Panel P_editlist;
71 | }
72 | }
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/EditEumnCollectionInfo.cs:
--------------------------------------------------------------------------------
1 | /*----------------------------------------------------------------
2 | * 作者:王清培
3 | * 时间:2010-6-27
4 | *
5 | * ----------------------------------------------------------------*/
6 |
7 | using System;
8 | using System.Collections.Generic;
9 | using System.Text;
10 |
11 | namespace PrintThemp
12 | {
13 | ///
14 | /// 该枚举表示所有能在模板中体现的控件类型|对应于托管C#类型
15 | ///
16 | public enum EditControlTypeInfo
17 | {
18 | ///
19 | /// TextBox(文本框)|只能输入常用文本
20 | ///
21 | TextBoxText,
22 | ///
23 | /// TextBox(文本框)|只能数据数值
24 | ///
25 | TextBoxNumber,
26 | ///
27 | /// DateTimePicker(时间类型)|只能输入时间格式包括格式化后的类型
28 | ///
29 | DateTimePicker,
30 | ///
31 | /// RichTextBox(富文本)|允许输入任何格式的文本包括特殊字符&*……
32 | ///
33 | RichTextBox,
34 | ///
35 | /// PictureBox(图片)|只能保存Image类型
36 | ///
37 | PictureBox,
38 | ///
39 | /// CheckBox(复选框)|提供状态的保存,如:一些多选项目
40 | ///
41 | CheckBox,
42 | ///
43 | ///TextBox(文本框)|长文本类型格式不限制长度
44 | ///
45 | TextBoxLong
46 | }
47 | ///
48 | /// 该类跟EditControlTypeInfo配套出现用于检索所有控件类型枚举
49 | ///
50 | public static class EditControlTypeInfoClass
51 | {
52 | private static List list = new List();
53 | public static IList GetEditControlTypeInfo()
54 | {
55 | if (list.Count <= 0)
56 | {
57 |
58 | list.Add(EditControlTypeInfo.CheckBox);
59 | list.Add(EditControlTypeInfo.DateTimePicker);
60 | list.Add(EditControlTypeInfo.PictureBox);
61 | list.Add(EditControlTypeInfo.RichTextBox);
62 | list.Add(EditControlTypeInfo.TextBoxLong);
63 | list.Add(EditControlTypeInfo.TextBoxNumber);
64 | list.Add(EditControlTypeInfo.TextBoxText);
65 | return list;
66 | }
67 | return list;
68 | }
69 | }
70 | ///
71 | /// 该枚举表示模板的状态|当前只有激活、新建两种状态
72 | ///
73 | public enum EditActiveTypeInfo
74 | {
75 | ///
76 | /// 新建模板窗体
77 | ///
78 | NewEditFrom,
79 | ///
80 | /// 激活模板窗体
81 | ///
82 | ActiveEditFrom
83 | }
84 | ///
85 | /// 该枚举表示模板中的控件类型为文本型|是否支持多行数据
86 | ///
87 | public enum EditControlIsOrMultiline
88 | {
89 | ///
90 | /// 允许多行文本
91 | ///
92 | TrueMultiline,
93 | ///
94 | /// 不允许多行文本
95 | ///
96 | FalseMultiline
97 | }
98 | ///
99 | /// 该枚举表示模板中的控件类型为文本型|是否支持换行数据
100 | ///
101 | public enum EditControlIsOrWrap
102 | {
103 | ///
104 | /// 允许换行文本
105 | ///
106 | TrueWrap,
107 | ///
108 | /// 不允许换行文本
109 | ///
110 | FalseWrap
111 | }
112 |
113 | }
114 |
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/EditEumnCollectionInfo.cs:
--------------------------------------------------------------------------------
1 | /*----------------------------------------------------------------
2 | * 作者:王清培
3 | * 时间:2010-10-24
4 | *
5 | * ----------------------------------------------------------------*/
6 |
7 | using System;
8 | using System.Collections.Generic;
9 | using System.Text;
10 |
11 | namespace PrintThempActiveX
12 | {
13 | ///
14 | /// 该枚举表示所有能在模板中体现的控件类型|对应于托管C#类型
15 | ///
16 | public enum EditControlTypeInfo
17 | {
18 | ///
19 | /// TextBox(文本框)|只能输入常用文本
20 | ///
21 | TextBoxText,
22 | ///
23 | /// TextBox(文本框)|只能数据数值
24 | ///
25 | TextBoxNumber,
26 | ///
27 | /// DateTimePicker(时间类型)|只能输入时间格式包括格式化后的类型
28 | ///
29 | DateTimePicker,
30 | ///
31 | /// RichTextBox(富文本)|允许输入任何格式的文本包括特殊字符&*……
32 | ///
33 | RichTextBox,
34 | ///
35 | /// PictureBox(图片)|只能保存Image类型
36 | ///
37 | PictureBox,
38 | ///
39 | /// CheckBox(复选框)|提供状态的保存,如:一些多选项目
40 | ///
41 | CheckBox,
42 | ///
43 | ///TextBox(文本框)|长文本类型格式不限制长度
44 | ///
45 | TextBoxLong
46 | }
47 | ///
48 | /// 该类跟EditControlTypeInfo配套出现用于检索所有控件类型枚举
49 | ///
50 | public static class EditControlTypeInfoClass
51 | {
52 | private static List list = new List();
53 | public static IList GetEditControlTypeInfo()
54 | {
55 | if (list.Count <= 0)
56 | {
57 |
58 | list.Add(EditControlTypeInfo.CheckBox);
59 | list.Add(EditControlTypeInfo.DateTimePicker);
60 | list.Add(EditControlTypeInfo.PictureBox);
61 | list.Add(EditControlTypeInfo.RichTextBox);
62 | list.Add(EditControlTypeInfo.TextBoxLong);
63 | list.Add(EditControlTypeInfo.TextBoxNumber);
64 | list.Add(EditControlTypeInfo.TextBoxText);
65 | return list;
66 | }
67 | return list;
68 | }
69 | }
70 | ///
71 | /// 该枚举表示模板的状态|当前只有激活、新建两种状态
72 | ///
73 | public enum EditActiveTypeInfo
74 | {
75 | ///
76 | /// 新建模板窗体
77 | ///
78 | NewEditFrom,
79 | ///
80 | /// 激活模板窗体
81 | ///
82 | ActiveEditFrom
83 | }
84 | ///
85 | /// 该枚举表示模板中的控件类型为文本型|是否支持多行数据
86 | ///
87 | public enum EditControlIsOrMultiline
88 | {
89 | ///
90 | /// 允许多行文本
91 | ///
92 | TrueMultiline,
93 | ///
94 | /// 不允许多行文本
95 | ///
96 | FalseMultiline
97 | }
98 | ///
99 | /// 该枚举表示模板中的控件类型为文本型|是否支持换行数据
100 | ///
101 | public enum EditControlIsOrWrap
102 | {
103 | ///
104 | /// 允许换行文本
105 | ///
106 | TrueWrap,
107 | ///
108 | /// 不允许换行文本
109 | ///
110 | FalseWrap
111 | }
112 |
113 | }
114 |
--------------------------------------------------------------------------------
/src/PrintThemp/Print/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Windows.Forms;
4 | using System.Data;
5 |
6 | namespace Print
7 | {
8 | static class Program
9 | {
10 | ///
11 | /// 应用程序的主入口点。
12 | ///
13 | [STAThread]
14 | static void Main()
15 | {
16 |
17 | //使用模板前必须开启模板功能|让模板初始化
18 | PrintThemp.EditTemplateInfo.LoadEdit = true;
19 | //单套打印
20 | PrintThemp.EditTemplateInfo.IsMuch = false;
21 |
22 | //给模板数据源|EditTemplateDataSource:单套或EditTemplateDSCollection:多套
23 |
24 | #region DataTable
25 | DataTable contract = new DataTable("Contract");
26 | contract.Columns.Add("buyEnterpriseZh", typeof(string));
27 | contract.Columns.Add("buyEnterpriseEn", typeof(string));
28 | contract.Columns.Add("contractNumEn", typeof(string));
29 | contract.Columns.Add("contractNum", typeof(string));
30 | contract.Columns.Add("sellEnterpriseZh", typeof(string));
31 | contract.Columns.Add("sellEnterpriseEn", typeof(string));
32 | contract.Columns.Add("originArea", typeof(string));
33 | contract.Columns.Add("originAreaEn", typeof(string));
34 | contract.Columns.Add("packEn", typeof(string));
35 | contract.Columns.Add("pack", typeof(string));
36 | contract.Columns.Add("shipDate", typeof(string));
37 | contract.Columns.Add("shipArea", typeof(string));
38 | contract.Columns.Add("destination", typeof(string));
39 | contract.Columns.Add("tradeLanguage", typeof(string));
40 | contract.Columns.Add("payment", typeof(string));
41 | contract.Columns.Add("contractDate", typeof(string));
42 | contract.Columns.Add("massRequrie", typeof(string));
43 | contract.Columns.Add("buyer", typeof(string));
44 | contract.Columns.Add("sheller", typeof(string));
45 | DataRow row = contract.NewRow();
46 | row["buyEnterpriseZh"] = "江苏南京红心集团";
47 | row["buyEnterpriseEn"] = "JianSuNanJingHongXinJiTuan";
48 | row["contractNumEn"] = "HTH29384848408504890";
49 | row["contractNum"] = "HTH29384848408504890";
50 | row["sellEnterpriseZh"] = "上海黄浦高科";
51 | row["sellEnterpriseEn"] = "ShangHaiHuangPuGaoKe";
52 | row["originArea"] = "江苏南京";
53 | row["originAreaEn"] = "JiangSuNanJing";
54 | row["packEn"] = "JingBao";
55 | row["pack"] = "精包";
56 | row["shipDate"] = "2010-7-1 10:55:50";
57 | row["shipArea"] = "南京路口机场";
58 | row["destination"] = "上海虹桥机场";
59 | row["tradeLanguage"] = "工厂交货";
60 | row["payment"] = "支票";
61 | row["contractDate"] = "2010-7-1 10:55:50";
62 | row["massRequrie"] = "GB/T23434345";
63 | row["buyer"] = "江苏南京红心集团";
64 | row["sheller"] = "上海黄浦高科";
65 | contract.Rows.Add(row);
66 | #endregion
67 |
68 | DataSet ds = new DataSet();
69 | ds.Tables.Add(contract);
70 | PrintThemp.EditTemplateDataSource odds = new PrintThemp.EditTemplateDataSource(ds);
71 |
72 | PrintThemp.EditTemplateInfo.EditDataSource = odds;
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 | Application.EnableVisualStyles();
85 | Application.SetCompatibleTextRenderingDefault(false);
86 | Application.Run(new PrintThemp.FrmEditMainPanel());
87 | }
88 | }
89 | }
90 |
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/EditTemplateAddControlArgs.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace PrintThemp
6 | {
7 | ///
8 | /// 模板添加控件委托信息
9 | ///
10 | public class EditTemplateAddControlArgs
11 | {
12 | #region 变量
13 | ///
14 | /// TAB索引
15 | ///
16 | private string _TAB_INDEX;
17 | ///
18 | /// 中文名称
19 | ///
20 | private string _ITEM_CNAME;
21 | ///
22 | /// 英文名称
23 | ///
24 | private string _ITEM_ENAME;
25 | ///
26 | /// 宽度
27 | ///
28 | private int _ITEM_WIDTH;
29 | ///
30 | /// 高度
31 | ///
32 | private int _ITEM_HEIGHT;
33 | ///
34 | /// X坐标
35 | ///
36 | private int _POS_X;
37 | ///
38 | /// Y坐标
39 | ///
40 | private int _POS_Y;
41 | ///
42 | /// 是否多行
43 | ///
44 | private string _MULTILINE;
45 | ///
46 | /// 是否换行
47 | ///
48 | private string _WORD_WRAP;
49 | ///
50 | /// 控件类型
51 | ///
52 | private string _ITEM_TYPE;
53 | #endregion
54 |
55 | #region 属性
56 | ///
57 | /// 控件TAB索引
58 | ///
59 | public string TAB_INDEX
60 | {
61 | get { return _TAB_INDEX; }
62 | set { _TAB_INDEX = value; }
63 | }
64 | ///
65 | /// 控件中文名称
66 | ///
67 | public string ITEM_CNAME
68 | {
69 | get { return _ITEM_CNAME; }
70 | set { _ITEM_CNAME = value; }
71 | }
72 | ///
73 | /// 控件的英文名称
74 | ///
75 | public string ITEM_ENAME
76 | {
77 | get { return _ITEM_ENAME; }
78 | set { _ITEM_ENAME = value; }
79 | }
80 | ///
81 | /// 控件的宽度
82 | ///
83 | public int ITEM_WIDTH
84 | {
85 | get { return _ITEM_WIDTH; }
86 | set { _ITEM_WIDTH = value; }
87 | }
88 | ///
89 | /// 控件高度
90 | ///
91 | public int ITEM_HEIGHT
92 | {
93 | get { return _ITEM_HEIGHT; }
94 | set { _ITEM_HEIGHT = value; }
95 | }
96 | ///
97 | /// X坐标
98 | ///
99 | public int POS_X
100 | {
101 | get { return _POS_X; }
102 | set { _POS_X = value; }
103 | }
104 | ///
105 | /// Y坐标
106 | ///
107 | public int POS_Y
108 | {
109 | get { return _POS_Y; }
110 | set { _POS_Y = value; }
111 | }
112 | ///
113 | /// 是否多行
114 | ///
115 | public string MULTILINE
116 | {
117 | get { return _MULTILINE; }
118 | set { _MULTILINE = value; }
119 | }
120 | ///
121 | /// 是否换行
122 | ///
123 | public string WORD_WRAP
124 | {
125 | get { return _WORD_WRAP; }
126 | set { _WORD_WRAP = value; }
127 | }
128 | ///
129 | /// 控件类型
130 | ///
131 | public string ITEM_TYPE
132 | {
133 | get { return _ITEM_TYPE; }
134 | set { _ITEM_TYPE = value; }
135 | }
136 | #endregion
137 | }
138 | }
139 |
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/EditTemplateAddControlArgs.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace PrintThempActiveX
6 | {
7 | ///
8 | /// 模板添加控件委托信息
9 | ///
10 | public class EditTemplateAddControlArgs
11 | {
12 | #region 变量
13 | ///
14 | /// TAB索引
15 | ///
16 | private string _TAB_INDEX;
17 | ///
18 | /// 中文名称
19 | ///
20 | private string _ITEM_CNAME;
21 | ///
22 | /// 英文名称
23 | ///
24 | private string _ITEM_ENAME;
25 | ///
26 | /// 宽度
27 | ///
28 | private int _ITEM_WIDTH;
29 | ///
30 | /// 高度
31 | ///
32 | private int _ITEM_HEIGHT;
33 | ///
34 | /// X坐标
35 | ///
36 | private int _POS_X;
37 | ///
38 | /// Y坐标
39 | ///
40 | private int _POS_Y;
41 | ///
42 | /// 是否多行
43 | ///
44 | private string _MULTILINE;
45 | ///
46 | /// 是否换行
47 | ///
48 | private string _WORD_WRAP;
49 | ///
50 | /// 控件类型
51 | ///
52 | private string _ITEM_TYPE;
53 | #endregion
54 |
55 | #region 属性
56 | ///
57 | /// 控件TAB索引
58 | ///
59 | public string TAB_INDEX
60 | {
61 | get { return _TAB_INDEX; }
62 | set { _TAB_INDEX = value; }
63 | }
64 | ///
65 | /// 控件中文名称
66 | ///
67 | public string ITEM_CNAME
68 | {
69 | get { return _ITEM_CNAME; }
70 | set { _ITEM_CNAME = value; }
71 | }
72 | ///
73 | /// 控件的英文名称
74 | ///
75 | public string ITEM_ENAME
76 | {
77 | get { return _ITEM_ENAME; }
78 | set { _ITEM_ENAME = value; }
79 | }
80 | ///
81 | /// 控件的宽度
82 | ///
83 | public int ITEM_WIDTH
84 | {
85 | get { return _ITEM_WIDTH; }
86 | set { _ITEM_WIDTH = value; }
87 | }
88 | ///
89 | /// 控件高度
90 | ///
91 | public int ITEM_HEIGHT
92 | {
93 | get { return _ITEM_HEIGHT; }
94 | set { _ITEM_HEIGHT = value; }
95 | }
96 | ///
97 | /// X坐标
98 | ///
99 | public int POS_X
100 | {
101 | get { return _POS_X; }
102 | set { _POS_X = value; }
103 | }
104 | ///
105 | /// Y坐标
106 | ///
107 | public int POS_Y
108 | {
109 | get { return _POS_Y; }
110 | set { _POS_Y = value; }
111 | }
112 | ///
113 | /// 是否多行
114 | ///
115 | public string MULTILINE
116 | {
117 | get { return _MULTILINE; }
118 | set { _MULTILINE = value; }
119 | }
120 | ///
121 | /// 是否换行
122 | ///
123 | public string WORD_WRAP
124 | {
125 | get { return _WORD_WRAP; }
126 | set { _WORD_WRAP = value; }
127 | }
128 | ///
129 | /// 控件类型
130 | ///
131 | public string ITEM_TYPE
132 | {
133 | get { return _ITEM_TYPE; }
134 | set { _ITEM_TYPE = value; }
135 | }
136 | #endregion
137 | }
138 | }
139 |
--------------------------------------------------------------------------------
/src/PrintThemp/Print/bin/Debug/Themplate/报检委托书(国家).xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 009
4 | Consign(State)
5 | 009
6 | Consign(State)
7 |
8 | -
9 | 1
10 | 重命名2010-7-11 14:19:41
11 | 重命名2010-7-11 14:19:41
12 | 140
13 | 21
14 | 226
15 | 333
16 | 0
17 | 0
18 | DateTimePicker
19 |
20 | -
21 | 1
22 | 重命名2010-7-11 14:20:41
23 | 重命名2010-7-11 14:20:41
24 | 580
25 | 120
26 | 120
27 | 413
28 | 1
29 | 1
30 | TextBoxText
31 |
32 | -
33 | 1
34 | 重命名2010-7-13 8:08:40
35 | 重命名2010-7-13 8:08:40
36 | 200
37 | 21
38 | 170
39 | 578
40 | 0
41 | 1
42 | TextBoxText
43 |
44 | -
45 | 1
46 | 重命名2010-7-27 11:50:16
47 | 重命名2010-7-27 11:50:16
48 | 200
49 | 21
50 | 93
51 | 222
52 | 1
53 | 1
54 | TextBoxText
55 |
56 | -
57 | 1
58 | 重命名2010-7-27 11:54:15
59 | 重命名2010-7-27 11:54:15
60 | 200
61 | 21
62 | 230
63 | 553
64 | 1
65 | 1
66 | TextBoxText
67 |
68 | -
69 | 1
70 | 重命名2010-7-27 11:55:39
71 | 重命名2010-7-27 11:55:39
72 | 200
73 | 21
74 | 414
75 | 861
76 | 1
77 | 1
78 | TextBoxText
79 |
80 | -
81 | 1
82 | 重命名2010-7-27 11:55:46
83 | 重命名2010-7-27 11:55:46
84 | 200
85 | 21
86 | 120
87 | 863
88 | 1
89 | 1
90 | TextBoxText
91 |
92 | -
93 | 1
94 | 重命名2010-7-27 11:55:52
95 | 重命名2010-7-27 11:55:52
96 | 200
97 | 21
98 | 123
99 | 970
100 | 1
101 | 1
102 | TextBoxText
103 |
104 | -
105 | 1
106 | 重命名2010-8-1 16:29:54
107 | 重命名2010-8-1 16:29:54
108 | 200
109 | 21
110 | 372
111 | 578
112 | 1
113 | 1
114 | TextBoxText
115 |
116 |
117 |
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/bin/Debug/Themplate/报检委托书(国家).xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 009
4 | Consign(State)
5 | 009
6 | Consign(State)
7 |
8 | -
9 | 1
10 | 重命名2010-7-11 14:19:41
11 | 重命名2010-7-11 14:19:41
12 | 140
13 | 21
14 | 226
15 | 333
16 | 0
17 | 0
18 | DateTimePicker
19 |
20 | -
21 | 1
22 | 重命名2010-7-11 14:20:41
23 | 重命名2010-7-11 14:20:41
24 | 580
25 | 120
26 | 120
27 | 413
28 | 1
29 | 1
30 | TextBoxText
31 |
32 | -
33 | 1
34 | 重命名2010-7-13 8:08:40
35 | 重命名2010-7-13 8:08:40
36 | 200
37 | 15
38 | 170
39 | 579
40 | 0
41 | 1
42 | TextBoxText
43 |
44 | -
45 | 1
46 | 重命名2010-7-27 11:50:16
47 | 重命名2010-7-27 11:50:16
48 | 200
49 | 21
50 | 93
51 | 222
52 | 1
53 | 1
54 | TextBoxText
55 |
56 | -
57 | 1
58 | 重命名2010-7-27 11:54:15
59 | 重命名2010-7-27 11:54:15
60 | 200
61 | 21
62 | 230
63 | 553
64 | 1
65 | 1
66 | TextBoxText
67 |
68 | -
69 | 1
70 | 重命名2010-7-27 11:55:39
71 | 重命名2010-7-27 11:55:39
72 | 200
73 | 21
74 | 414
75 | 861
76 | 1
77 | 1
78 | TextBoxText
79 |
80 | -
81 | 1
82 | 重命名2010-7-27 11:55:46
83 | 重命名2010-7-27 11:55:46
84 | 200
85 | 21
86 | 120
87 | 863
88 | 1
89 | 1
90 | TextBoxText
91 |
92 | -
93 | 1
94 | 重命名2010-7-27 11:55:52
95 | 重命名2010-7-27 11:55:52
96 | 200
97 | 21
98 | 123
99 | 970
100 | 1
101 | 1
102 | TextBoxText
103 |
104 | -
105 | 1
106 | 重命名2010-8-1 16:29:54
107 | 重命名2010-8-1 16:29:54
108 | 200
109 | 21
110 | 371
111 | 580
112 | 1
113 | 1
114 | TextBoxText
115 |
116 |
117 |
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/EditTemplateInfo.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Collections;
4 | using System.Text;
5 | using System.IO;
6 | using System.Drawing;
7 | using System.Windows;
8 | using System.Windows.Forms;
9 | using System.Xml;
10 |
11 | namespace PrintThemp
12 | {
13 | ///
14 | /// 该类中包含所有可编辑模板的信息集合
15 | /// 主要步骤:使用该类之前必须启动模板属性LoadEdit=true;
16 | ///
17 | public static class EditTemplateInfo
18 | {
19 | #region 字段
20 | ///
21 | /// 当前是否处于编辑模式下
22 | ///
23 | private static bool _EditBool;
24 | ///
25 | /// 是否是多套打印
26 | ///
27 | private static bool _IsMuch;
28 | ///
29 | /// 单套打印或多套打印的数据源
30 | ///
31 | private static object _EditDataSource;
32 | ///
33 | /// 待编辑项的模板底图集合
34 | ///
35 | private static Dictionary bitmap = new Dictionary();
36 | ///
37 | /// 模板编辑项的XML集合
38 | ///
39 | private static Dictionary editxml = new Dictionary();
40 | ///
41 | /// 待编辑项的名称集合
42 | ///
43 | private static System.Collections.ArrayList list = new ArrayList();
44 | #endregion
45 |
46 | #region 属性
47 | ///
48 | /// 启动编辑模板|静态类初始化用
49 | ///
50 | public static bool LoadEdit
51 | {
52 | set { _EditBool = value; }
53 | get { return _EditBool; }
54 | }
55 | ///
56 | /// 是否是多套打印
57 | ///
58 | public static bool IsMuch
59 | {
60 | set { _IsMuch = value; }
61 | get { return _IsMuch; }
62 | }
63 | ///
64 | /// 单套打印或多套打印的数据源
65 | ///
66 | public static object EditDataSource
67 | {
68 | get { return _EditDataSource; }
69 | set { _EditDataSource = value; }
70 | }
71 | #endregion
72 | ///
73 | /// 默认静态构造函数|加载应用程序路径下的可编辑模板;
74 | /// 注意:当前只支持BMP图片格式
75 | ///
76 | static EditTemplateInfo()
77 | {
78 | string appstarpath = Application.StartupPath + "\\Themplate";//模板路径
79 | string[] filepaths = Directory.GetFiles(appstarpath, "*.BMP");
80 | foreach (string file in filepaths)
81 | {
82 | bitmap.Add(file.Substring(file.LastIndexOf("\\") + 1), file);//添加模板名称及路径
83 | list.Add(file.Substring(file.LastIndexOf("\\") + 1));//添加模板名称集合
84 | }
85 | filepaths = Directory.GetFiles(appstarpath, "*.XML");
86 | foreach (string xmlfile in filepaths)
87 | {
88 | editxml.Add(xmlfile.Substring(xmlfile.LastIndexOf("\\") + 1), xmlfile);//添加模板XML
89 | }
90 | }
91 | ///
92 | /// 获取编辑模板的底图
93 | ///
94 | /// 待编辑项的名称
95 | /// Bitmap
96 | public static Image GetEditImg(string editname)
97 | {
98 | if (editname.Length > 2)
99 | {
100 | return Image.FromFile(bitmap[editname]);
101 | }
102 | return null;
103 | }
104 | ///
105 | /// 获取编辑模板的XML
106 | ///
107 | /// 待编辑项的名称
108 | /// XmlDocument
109 | public static XmlDocument GetEditXmlDocument(string editname)
110 | {
111 | if (editname.Length > 2)
112 | {
113 | XmlDocument document = new XmlDocument();
114 | document.Load(editxml[editname]);
115 | return document;
116 | }
117 | return null;
118 | }
119 | ///
120 | /// 返回可编辑模板名称的集合
121 | ///
122 | /// ArrayList
123 | public static ArrayList ReturnEditItemName()
124 | {
125 | return list;
126 | }
127 | ///
128 | /// 获取指定模板的完全路径名
129 | ///
130 | /// 模板名称
131 | /// string(DirectoryPath)
132 | public static string GetEditXmlPathName(string editname)
133 | {
134 | return editxml[editname];
135 | }
136 |
137 | }
138 | }
139 |
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/EditTemplateInfo.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Collections;
4 | using System.Text;
5 | using System.IO;
6 | using System.Drawing;
7 | using System.Windows;
8 | using System.Windows.Forms;
9 | using System.Xml;
10 |
11 | namespace PrintThempActiveX
12 | {
13 | ///
14 | /// 该类中包含所有可编辑模板的信息集合
15 | /// 主要步骤:使用该类之前必须启动模板属性LoadEdit=true;
16 | ///
17 | public static class EditTemplateInfo
18 | {
19 | #region 字段
20 | ///
21 | /// 当前是否处于编辑模式下
22 | ///
23 | private static bool _EditBool = true;//启用模板ActiveX
24 | ///
25 | /// 是否是多套打印
26 | ///
27 | private static bool _IsMuch;
28 | ///
29 | /// 单套打印或多套打印的数据源
30 | ///
31 | private static object _EditDataSource;
32 | ///
33 | /// 待编辑项的模板底图集合
34 | ///
35 | private static Dictionary bitmap = new Dictionary();
36 | ///
37 | /// 模板编辑项的XML集合
38 | ///
39 | private static Dictionary editxml = new Dictionary();
40 | ///
41 | /// 待编辑项的名称集合
42 | ///
43 | private static System.Collections.ArrayList list = new ArrayList();
44 | #endregion
45 |
46 | #region 属性
47 | ///
48 | /// 启动编辑模板|静态类初始化用
49 | ///
50 | public static bool LoadEdit
51 | {
52 | set { _EditBool = value; }
53 | get { return _EditBool; }
54 | }
55 | ///
56 | /// 是否是多套打印
57 | ///
58 | public static bool IsMuch
59 | {
60 | set { _IsMuch = value; }
61 | get { return _IsMuch; }
62 | }
63 | ///
64 | /// 单套打印或多套打印的数据源
65 | ///
66 | public static object EditDataSource
67 | {
68 | get { return _EditDataSource; }
69 | set { _EditDataSource = value; }
70 | }
71 | #endregion
72 | ///
73 | /// 默认静态构造函数|加载应用程序路径下的可编辑模板;
74 | /// 注意:当前只支持BMP图片格式
75 | ///
76 | static EditTemplateInfo()
77 | {
78 | string appstarpath = @"C:\Program Files\Themplate";//模板路径
79 | string[] filepaths = Directory.GetFiles(appstarpath, "*.BMP");
80 | foreach (string file in filepaths)
81 | {
82 | bitmap.Add(file.Substring(file.LastIndexOf("\\") + 1), file);//添加模板名称及路径
83 | list.Add(file.Substring(file.LastIndexOf("\\") + 1));//添加模板名称集合
84 | }
85 | filepaths = Directory.GetFiles(appstarpath, "*.XML");
86 | foreach (string xmlfile in filepaths)
87 | {
88 | editxml.Add(xmlfile.Substring(xmlfile.LastIndexOf("\\") + 1), xmlfile);//添加模板XML
89 | }
90 | }
91 | ///
92 | /// 获取编辑模板的底图
93 | ///
94 | /// 待编辑项的名称
95 | /// Bitmap
96 | public static Image GetEditImg(string editname)
97 | {
98 | if (editname.Length > 2)
99 | {
100 | return Image.FromFile(bitmap[editname]);
101 | }
102 | return null;
103 | }
104 | ///
105 | /// 获取编辑模板的XML
106 | ///
107 | /// 待编辑项的名称
108 | /// XmlDocument
109 | public static XmlDocument GetEditXmlDocument(string editname)
110 | {
111 | if (editname.Length > 2)
112 | {
113 | XmlDocument document = new XmlDocument();
114 | document.Load(editxml[editname]);
115 | return document;
116 | }
117 | return null;
118 | }
119 | ///
120 | /// 返回可编辑模板名称的集合
121 | ///
122 | /// ArrayList
123 | public static ArrayList ReturnEditItemName()
124 | {
125 | return list;
126 | }
127 | ///
128 | /// 获取指定模板的完全路径名
129 | ///
130 | /// 模板名称
131 | /// string(DirectoryPath)
132 | public static string GetEditXmlPathName(string editname)
133 | {
134 | return editxml[editname];
135 | }
136 |
137 | }
138 | }
139 |
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/EditMainToolEventReferences.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace PrintThemp
6 | {
7 | ///
8 | ///该类关联主窗体FrmEditMainPanel与编辑模板之间的工具按钮关系
9 | ///
10 | public static class EditMainToolEventReferences
11 | {
12 | #region 委托
13 | ///
14 | /// 该委托用来关联复制控件的工具按钮
15 | ///
16 | public delegate void MainCopyControlDelegate();
17 | ///
18 | /// 该委托用来关联粘贴控件的工具按钮
19 | ///
20 | public delegate void MainParsetControlDelegate();
21 | ///
22 | /// 该委托用来关联属性面板粘贴控件后的添加操作
23 | ///
24 | /// 粘贴的控件
25 | /// 控件的类型
26 | public delegate void MainParsetControlRFrmEditControlListDelegate(System.Windows.Forms.Control copycontrol,string controltype);
27 | ///
28 | /// 该委托用来关联剪切控件的工具按钮
29 | ///
30 | public delegate void MainCutControlDelegate();
31 | ///
32 | /// 回调委托|用来响应主窗体中的剪切按钮事件
33 | ///
34 | public delegate void MainCutControlCallBackDelegate();
35 | ///
36 | ///该委托用来关联放大控件
37 | ///
38 | public delegate void MainZoomMaxControl();
39 | ///
40 | /// 该委托用来关联缩小控件
41 | ///
42 | public delegate void MainZoomMinControl();
43 | #endregion
44 |
45 | #region 事件
46 | ///
47 | ///点击主窗体上的复制控件工具按钮
48 | ///
49 | public static event MainCopyControlDelegate MainCopyControlEvent;
50 | ///
51 | /// 点击主窗体上的粘贴控件工具按钮
52 | ///
53 | public static event MainParsetControlDelegate MainParsetControlEvent;
54 | ///
55 | ///点击主窗体上的粘贴控件工具按钮触发(只有属性面板订阅该事件)
56 | ///
57 | public static event MainParsetControlRFrmEditControlListDelegate MainParsetControlRFrmEditControlListEvent;
58 | ///
59 | /// 点击主窗体上的剪切按钮工具按钮触发(只有主窗体)
60 | ///
61 | public static event MainCutControlDelegate MainCutControlEvent;
62 | ///
63 | /// 回调事件|当剪切控件成功复制时发生
64 | ///
65 | public static event MainCutControlCallBackDelegate MainCutControlCallBackEvent;
66 | ///
67 | /// 点击主窗体上的放大控件工具按钮
68 | ///
69 | public static event MainZoomMaxControl MainZoomMaxControlEvent;
70 | ///
71 | /// 点击主窗体上的缩小控件工具按钮
72 | ///
73 | public static event MainZoomMinControl MainZoomMinControlEvent;
74 | #endregion
75 |
76 | #region 触发事件方法
77 | ///
78 | /// 触发"点击窗体上的复制控件工具按钮"
79 | ///
80 | public static void ActionMainCopyControlEvent()
81 | {
82 | MainCopyControlEvent();
83 | }
84 | ///
85 | /// 触发"点击窗体上的粘贴按钮工具按钮"
86 | ///
87 | public static void ActionMainParsteControlEvent()
88 | {
89 | MainParsetControlEvent();
90 | }
91 | ///
92 | /// 触发"点击窗体上的粘贴按钮工具按钮"|该事件只被控件属性窗体订阅
93 | ///
94 | /// 待复制的控件
95 | /// 控件的类型
96 | public static void ActionMainParsetControlRFrmEditControlListEvent(System.Windows.Forms.Control copycontrol,string controltype)
97 | {
98 | MainParsetControlRFrmEditControlListEvent(copycontrol,controltype);
99 | }
100 | ///
101 | /// 触发"点击主窗体上的剪切按钮工具按钮"|该事件只被主窗体订阅
102 | ///
103 | public static void ActionMainCutControlEvent()
104 | {
105 | MainCutControlEvent();
106 | }
107 | ///
108 | /// 触发主窗体的剪切按钮的回调事件|移除待剪切控件
109 | ///
110 | public static void ActionMainCutControlCallBackEvent()
111 | {
112 | MainCutControlCallBackEvent();
113 | }
114 | ///
115 | /// 触发主窗体的放大按钮事件
116 | ///
117 | public static void ActionMainZoomMaxControlEvent()
118 | {
119 | MainZoomMaxControlEvent();
120 | }
121 | ///
122 | /// 触发主窗体的缩小按钮事件
123 | ///
124 | public static void ActionMainZoomMinControlEvent()
125 | {
126 | MainZoomMinControlEvent();
127 | }
128 | #endregion
129 | }
130 | }
131 |
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/EditMainToolEventReferences.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace PrintThempActiveX
6 | {
7 | ///
8 | ///该类关联主窗体FrmEditMainPanel与编辑模板之间的工具按钮关系
9 | ///
10 | public static class EditMainToolEventReferences
11 | {
12 | #region 委托
13 | ///
14 | /// 该委托用来关联复制控件的工具按钮
15 | ///
16 | public delegate void MainCopyControlDelegate();
17 | ///
18 | /// 该委托用来关联粘贴控件的工具按钮
19 | ///
20 | public delegate void MainParsetControlDelegate();
21 | ///
22 | /// 该委托用来关联属性面板粘贴控件后的添加操作
23 | ///
24 | /// 粘贴的控件
25 | /// 控件的类型
26 | public delegate void MainParsetControlRFrmEditControlListDelegate(System.Windows.Forms.Control copycontrol,string controltype);
27 | ///
28 | /// 该委托用来关联剪切控件的工具按钮
29 | ///
30 | public delegate void MainCutControlDelegate();
31 | ///
32 | /// 回调委托|用来响应主窗体中的剪切按钮事件
33 | ///
34 | public delegate void MainCutControlCallBackDelegate();
35 | ///
36 | ///该委托用来关联放大控件
37 | ///
38 | public delegate void MainZoomMaxControl();
39 | ///
40 | /// 该委托用来关联缩小控件
41 | ///
42 | public delegate void MainZoomMinControl();
43 | #endregion
44 |
45 | #region 事件
46 | ///
47 | ///点击主窗体上的复制控件工具按钮
48 | ///
49 | public static event MainCopyControlDelegate MainCopyControlEvent;
50 | ///
51 | /// 点击主窗体上的粘贴控件工具按钮
52 | ///
53 | public static event MainParsetControlDelegate MainParsetControlEvent;
54 | ///
55 | ///点击主窗体上的粘贴控件工具按钮触发(只有属性面板订阅该事件)
56 | ///
57 | public static event MainParsetControlRFrmEditControlListDelegate MainParsetControlRFrmEditControlListEvent;
58 | ///
59 | /// 点击主窗体上的剪切按钮工具按钮触发(只有主窗体)
60 | ///
61 | public static event MainCutControlDelegate MainCutControlEvent;
62 | ///
63 | /// 回调事件|当剪切控件成功复制时发生
64 | ///
65 | public static event MainCutControlCallBackDelegate MainCutControlCallBackEvent;
66 | ///
67 | /// 点击主窗体上的放大控件工具按钮
68 | ///
69 | public static event MainZoomMaxControl MainZoomMaxControlEvent;
70 | ///
71 | /// 点击主窗体上的缩小控件工具按钮
72 | ///
73 | public static event MainZoomMinControl MainZoomMinControlEvent;
74 | #endregion
75 |
76 | #region 触发事件方法
77 | ///
78 | /// 触发"点击窗体上的复制控件工具按钮"
79 | ///
80 | public static void ActionMainCopyControlEvent()
81 | {
82 | MainCopyControlEvent();
83 | }
84 | ///
85 | /// 触发"点击窗体上的粘贴按钮工具按钮"
86 | ///
87 | public static void ActionMainParsteControlEvent()
88 | {
89 | MainParsetControlEvent();
90 | }
91 | ///
92 | /// 触发"点击窗体上的粘贴按钮工具按钮"|该事件只被控件属性窗体订阅
93 | ///
94 | /// 待复制的控件
95 | /// 控件的类型
96 | public static void ActionMainParsetControlRFrmEditControlListEvent(System.Windows.Forms.Control copycontrol,string controltype)
97 | {
98 | MainParsetControlRFrmEditControlListEvent(copycontrol,controltype);
99 | }
100 | ///
101 | /// 触发"点击主窗体上的剪切按钮工具按钮"|该事件只被主窗体订阅
102 | ///
103 | public static void ActionMainCutControlEvent()
104 | {
105 | MainCutControlEvent();
106 | }
107 | ///
108 | /// 触发主窗体的剪切按钮的回调事件|移除待剪切控件
109 | ///
110 | public static void ActionMainCutControlCallBackEvent()
111 | {
112 | MainCutControlCallBackEvent();
113 | }
114 | ///
115 | /// 触发主窗体的放大按钮事件
116 | ///
117 | public static void ActionMainZoomMaxControlEvent()
118 | {
119 | MainZoomMaxControlEvent();
120 | }
121 | ///
122 | /// 触发主窗体的缩小按钮事件
123 | ///
124 | public static void ActionMainZoomMinControlEvent()
125 | {
126 | MainZoomMinControlEvent();
127 | }
128 | #endregion
129 | }
130 | }
131 |
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/EditTemplatePrint.cs:
--------------------------------------------------------------------------------
1 | /*----------------------------------------------------
2 | * 作者:王清培
3 | * 时间:2010-9-3
4 | * 新建:该类用来实现编辑模板中的所有模板的集中打印
5 | *
6 | *
7 | *
8 | --------------------------------------------------------*/
9 | using System;
10 | using System.Collections.Generic;
11 | using System.Text;
12 | using System.Drawing.Printing;
13 | using System.Windows.Forms;
14 | using System.Drawing;
15 |
16 | namespace PrintThemp
17 | {
18 | ///
19 | /// 该类封装了模板的打印
20 | ///
21 | public static class EditTemplatePrint
22 | {
23 | ///
24 | /// 可重用的打印对象
25 | ///
26 | private static PrintDocument editprintdocumet = new PrintDocument();
27 | ///
28 | /// 打印预览窗口
29 | ///
30 | private static PrintPreviewDialog editprintdialog = new PrintPreviewDialog();
31 | ///
32 | /// 打印设置对话框
33 | ///
34 | private static PrintDialog editdialog = new PrintDialog();
35 | ///
36 | /// 打印页面设置
37 | ///
38 | private static PageSetupDialog pagesetting = new PageSetupDialog();
39 | ///
40 | /// 模板底图
41 | ///
42 | private static List editbitmap = new List();
43 | ///
44 | /// 模板控件
45 | ///
46 | private static List> editcontrol = new List>();
47 | ///
48 | /// 打印设置存放
49 | ///
50 | private static PageSettings pagesettingcol = new PageSettings();
51 | ///
52 | /// 记录当前打印到第几页
53 | ///
54 | private static int printcurrent = 0;
55 | ///
56 | /// 初始化打印对象
57 | ///
58 | static EditTemplatePrint()
59 | {
60 | //打印预览对话框相关选项
61 | editprintdocumet.PrintPage += new PrintPageEventHandler(editprintdocumet_PrintPage);
62 | editprintdialog.Document = editprintdocumet;//初始化打印预览空间的打印文档
63 | editprintdialog.ShowIcon = false;
64 | //打印机相关选项
65 | editdialog.Document = editprintdocumet;//初始化打印设置窗口
66 | editdialog.AllowCurrentPage = true;//显示当前页
67 | editdialog.AllowPrintToFile = true;//显示打印到文件复选框
68 | editdialog.AllowSelection = true;//显示选择按钮
69 | editdialog.AllowSomePages = true;//启用页选择
70 | //打印页面相关选项
71 | pagesetting.PageSettings = pagesettingcol;//页面设置保存对象
72 |
73 | }
74 | ///
75 | /// 预览模板
76 | ///
77 | /// 模板底图集合
78 | /// 模板控件集合
79 | public static void PrintView(List map, List> control)
80 | {
81 | editbitmap = map;
82 | editcontrol = control;
83 |
84 | editdialog.ShowDialog();
85 | pagesetting.ShowDialog();
86 | editprintdocumet.DefaultPageSettings = pagesettingcol;
87 | editprintdialog.ShowDialog();
88 | }
89 | ///
90 | /// 直接打印
91 | ///
92 | /// 模板底图
93 | /// 模板控件集合
94 | public static void PrintDialogSetting(List map, List> control)
95 | {
96 | editbitmap = map;
97 | editcontrol = control;
98 | editdialog.ShowDialog();
99 |
100 | pagesetting.ShowDialog();
101 | editprintdocumet.DefaultPageSettings = pagesettingcol;//页面相关设置选项
102 | editprintdocumet.Print();
103 | }
104 | ///
105 | /// 打印每页时发生
106 | ///
107 | static void editprintdocumet_PrintPage(object sender, PrintPageEventArgs e)
108 | {
109 | e.Graphics.PageUnit = GraphicsUnit.Display;//选择打印机的打印度量单位
110 |
111 | e.Graphics.DrawImage(editbitmap[printcurrent], 0, 0, editbitmap[printcurrent].Width, editbitmap[printcurrent].Height);//绘制底图
112 |
113 | foreach (Control child in editcontrol[printcurrent])
114 | {
115 | e.Graphics.DrawString(child.Text, new Font("宋体", 12), Brushes.Black, child.Location.X, child.Location.Y);//绘制控件的文本
116 | }
117 | e.HasMorePages = printcurrent < editbitmap.Count - 1 ? true : false;
118 | if (e.HasMorePages)
119 | {
120 | printcurrent++;
121 | }
122 | else
123 | {
124 | printcurrent = 0;
125 | }
126 | }
127 | }
128 | }
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/EditTemplatePrint.cs:
--------------------------------------------------------------------------------
1 | /*----------------------------------------------------
2 | * 作者:王清培
3 | * 时间:2010-9-3
4 | * 新建:该类用来实现编辑模板中的所有模板的集中打印
5 | *
6 | *
7 | *
8 | --------------------------------------------------------*/
9 | using System;
10 | using System.Collections.Generic;
11 | using System.Text;
12 | using System.Drawing.Printing;
13 | using System.Windows.Forms;
14 | using System.Drawing;
15 |
16 | namespace PrintThempActiveX
17 | {
18 | ///
19 | /// 该类封装了模板的打印
20 | ///
21 | public static class EditTemplatePrint
22 | {
23 | ///
24 | /// 可重用的打印对象
25 | ///
26 | private static PrintDocument editprintdocumet = new PrintDocument();
27 | ///
28 | /// 打印预览窗口
29 | ///
30 | private static PrintPreviewDialog editprintdialog = new PrintPreviewDialog();
31 | ///
32 | /// 打印设置对话框
33 | ///
34 | private static PrintDialog editdialog = new PrintDialog();
35 | ///
36 | /// 打印页面设置
37 | ///
38 | private static PageSetupDialog pagesetting = new PageSetupDialog();
39 | ///
40 | /// 模板底图
41 | ///
42 | private static List editbitmap = new List();
43 | ///
44 | /// 模板控件
45 | ///
46 | private static List> editcontrol = new List>();
47 | ///
48 | /// 打印设置存放
49 | ///
50 | private static PageSettings pagesettingcol = new PageSettings();
51 | ///
52 | /// 记录当前打印到第几页
53 | ///
54 | private static int printcurrent = 0;
55 | ///
56 | /// 初始化打印对象
57 | ///
58 | static EditTemplatePrint()
59 | {
60 | //打印预览对话框相关选项
61 | editprintdocumet.PrintPage += new PrintPageEventHandler(editprintdocumet_PrintPage);
62 | editprintdialog.Document = editprintdocumet;//初始化打印预览空间的打印文档
63 | editprintdialog.ShowIcon = false;
64 | //打印机相关选项
65 | editdialog.Document = editprintdocumet;//初始化打印设置窗口
66 | editdialog.AllowCurrentPage = true;//显示当前页
67 | editdialog.AllowPrintToFile = true;//显示打印到文件复选框
68 | editdialog.AllowSelection = true;//显示选择按钮
69 | editdialog.AllowSomePages = true;//启用页选择
70 | //打印页面相关选项
71 | pagesetting.PageSettings = pagesettingcol;//页面设置保存对象
72 |
73 | }
74 | ///
75 | /// 预览模板
76 | ///
77 | /// 模板底图集合
78 | /// 模板控件集合
79 | public static void PrintView(List map, List> control)
80 | {
81 | editbitmap = map;
82 | editcontrol = control;
83 |
84 | editdialog.ShowDialog();
85 | pagesetting.ShowDialog();
86 | editprintdocumet.DefaultPageSettings = pagesettingcol;
87 | editprintdialog.ShowDialog();
88 | }
89 | ///
90 | /// 直接打印
91 | ///
92 | /// 模板底图
93 | /// 模板控件集合
94 | public static void PrintDialogSetting(List map, List> control)
95 | {
96 | editbitmap = map;
97 | editcontrol = control;
98 | editdialog.ShowDialog();
99 |
100 | pagesetting.ShowDialog();
101 | editprintdocumet.DefaultPageSettings = pagesettingcol;//页面相关设置选项
102 | editprintdocumet.Print();
103 | }
104 | ///
105 | /// 打印每页时发生
106 | ///
107 | static void editprintdocumet_PrintPage(object sender, PrintPageEventArgs e)
108 | {
109 | e.Graphics.PageUnit = GraphicsUnit.Display;//选择打印机的打印度量单位
110 |
111 | e.Graphics.DrawImage(editbitmap[printcurrent], 0, 0, editbitmap[printcurrent].Width, editbitmap[printcurrent].Height);//绘制底图
112 |
113 | foreach (Control child in editcontrol[printcurrent])
114 | {
115 | e.Graphics.DrawString(child.Text, new Font("宋体", 12), Brushes.Black, child.Location.X, child.Location.Y);//绘制控件的文本
116 | }
117 | e.HasMorePages = printcurrent < editbitmap.Count - 1 ? true : false;
118 | if (e.HasMorePages)
119 | {
120 | printcurrent++;
121 | }
122 | else
123 | {
124 | printcurrent = 0;
125 | }
126 | }
127 | }
128 | }
--------------------------------------------------------------------------------
/src/PrintThemp/Print/bin/Debug/Themplate/发票.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 002
4 | 002.bmp
5 | 发票
6 | Invoices
7 |
8 | -
9 | 0
10 | 企业名称(英文)
11 | enterpriseEn
12 | 400
13 | 25
14 | 155
15 | 250
16 | 1
17 | 1
18 | TextBoxLong
19 |
20 | -
21 | 1
22 | 企业名称(中文)
23 | enterpriseZh
24 | 400
25 | 21
26 | 155
27 | 205
28 | 1
29 | 1
30 | TextBoxLong
31 |
32 | -
33 | 2
34 | 发票日期
35 | invoiceDate
36 | 120
37 | 21
38 | 672
39 | 266
40 | 1
41 | 1
42 | DateTimePicker
43 |
44 | -
45 | 3
46 | 发票编号
47 | invoiceNum
48 | 100
49 | 21
50 | 698
51 | 288
52 | 1
53 | 1
54 | TextBoxText
55 |
56 | -
57 | 4
58 | 销售编号
59 | sellNum
60 | 100
61 | 21
62 | 710
63 | 310
64 | 1
65 | 1
66 | TextBoxText
67 |
68 | -
69 | 5
70 | 出发地
71 | startPlace
72 | 500
73 | 21
74 | 92
75 | 328
76 | 1
77 | 1
78 | RichTextBox
79 |
80 | -
81 | 6
82 | 目的地
83 | destination
84 | 500
85 | 21
86 | 85
87 | 372
88 | 1
89 | 1
90 | RichTextBox
91 |
92 | -
93 | 7
94 | 开证银行
95 | proveBank
96 | 500
97 | 21
98 | 155
99 | 415
100 | 1
101 | 1
102 | RichTextBox
103 |
104 | -
105 | 8
106 | 信用证号
107 | creditNum
108 | 550
109 | 21
110 | 140
111 | 458
112 | 1
113 | 1
114 | TextBoxText
115 |
116 | -
117 | 9
118 | 货物列表
119 | pertainInvoices
120 | 700
121 | 208
122 | 58
123 | 529
124 | 1
125 | 1
126 | TextBoxText
127 |
128 | -
129 | 10
130 | 备注1
131 | remark1
132 | 360
133 | 150
134 | 55
135 | 786
136 | 1
137 | 1
138 | RichTextBox
139 |
140 | -
141 | 11
142 | 备注2
143 | remark2
144 | 338
145 | 150
146 | 418
147 | 787
148 | 1
149 | 1
150 | RichTextBox
151 |
152 |
153 |
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/bin/Debug/Themplate/发票.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 002
4 | 002.bmp
5 | 发票
6 | Invoices
7 |
8 | -
9 | 0
10 | 企业名称(英文)
11 | enterpriseEn
12 | 400
13 | 25
14 | 155
15 | 250
16 | 1
17 | 1
18 | TextBoxLong
19 |
20 | -
21 | 1
22 | 企业名称(中文)
23 | enterpriseZh
24 | 400
25 | 21
26 | 155
27 | 205
28 | 1
29 | 1
30 | TextBoxLong
31 |
32 | -
33 | 2
34 | 发票日期
35 | invoiceDate
36 | 120
37 | 21
38 | 672
39 | 266
40 | 1
41 | 1
42 | DateTimePicker
43 |
44 | -
45 | 3
46 | 发票编号
47 | invoiceNum
48 | 100
49 | 21
50 | 698
51 | 288
52 | 1
53 | 1
54 | TextBoxText
55 |
56 | -
57 | 4
58 | 销售编号
59 | sellNum
60 | 100
61 | 21
62 | 710
63 | 310
64 | 1
65 | 1
66 | TextBoxText
67 |
68 | -
69 | 5
70 | 出发地
71 | startPlace
72 | 500
73 | 21
74 | 92
75 | 328
76 | 1
77 | 1
78 | RichTextBox
79 |
80 | -
81 | 6
82 | 目的地
83 | destination
84 | 500
85 | 21
86 | 85
87 | 372
88 | 1
89 | 1
90 | RichTextBox
91 |
92 | -
93 | 7
94 | 开证银行
95 | proveBank
96 | 500
97 | 21
98 | 155
99 | 415
100 | 1
101 | 1
102 | RichTextBox
103 |
104 | -
105 | 8
106 | 信用证号
107 | creditNum
108 | 550
109 | 21
110 | 140
111 | 458
112 | 1
113 | 1
114 | TextBoxText
115 |
116 | -
117 | 9
118 | 货物列表
119 | pertainInvoices
120 | 700
121 | 208
122 | 58
123 | 529
124 | 1
125 | 1
126 | TextBoxText
127 |
128 | -
129 | 10
130 | 备注1
131 | remark1
132 | 360
133 | 150
134 | 55
135 | 786
136 | 1
137 | 1
138 | RichTextBox
139 |
140 | -
141 | 11
142 | 备注2
143 | remark2
144 | 338
145 | 150
146 | 418
147 | 787
148 | 1
149 | 1
150 | RichTextBox
151 |
152 |
153 |
--------------------------------------------------------------------------------
/src/PrintThemp/Print/bin/Debug/Themplate/装箱单.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 003
4 | 003.bmp
5 | 装箱单
6 | PackList
7 |
8 | -
9 | 0
10 | 企业名称(中文)
11 | enterpriseZh
12 | 300
13 | 21
14 | 215
15 | 180
16 | 1
17 | 1
18 | RichTextBox
19 |
20 | -
21 | 1
22 | 企业名称(英文)
23 | enterpriseEn
24 | 300
25 | 21
26 | 215
27 | 210
28 | 1
29 | 1
30 | TextBoxText
31 |
32 | -
33 | 2
34 | 装箱单日期
35 | packDate
36 | 100
37 | 21
38 | 600
39 | 225
40 | 1
41 | 1
42 | DateTimePicker
43 |
44 | -
45 | 3
46 | 编号
47 | packListNo
48 | 100
49 | 21
50 | 600
51 | 245
52 | 1
53 | 1
54 | TextBoxText
55 |
56 | -
57 | 4
58 | 装箱明细
59 | pertainPackLists
60 | 580
61 | 150
62 | 117
63 | 305
64 | 1
65 | 1
66 | TextBoxText
67 |
68 | -
69 | 5
70 | 净重
71 | nw
72 | 100
73 | 21
74 | 190
75 | 475
76 | 1
77 | 0
78 | TextBoxNumber
79 |
80 | -
81 | 6
82 | 净重单位
83 | nwUnit
84 | 100
85 | 21
86 | 380
87 | 503
88 | 1
89 | 1
90 | RichTextBox
91 |
92 | -
93 | 7
94 | 毛重
95 | gw
96 | 100
97 | 21
98 | 190
99 | 498
100 | 1
101 | 1
102 | TextBoxNumber
103 |
104 | -
105 | 8
106 | 毛重单位
107 | gwUnit
108 | 100
109 | 21
110 | 380
111 | 480
112 | 1
113 | 0
114 | RichTextBox
115 |
116 | -
117 | 9
118 | 箱子的尺码
119 | meas
120 | 65
121 | 21
122 | 240
123 | 520
124 | 1
125 | 1
126 | TextBoxNumber
127 |
128 | -
129 | 10
130 | 箱子的尺码单位
131 | measUnit
132 | 100
133 | 21
134 | 420
135 | 525
136 | 1
137 | 1
138 | RichTextBox
139 |
140 | -
141 | 11
142 | 总箱数
143 | ttlBox
144 | 100
145 | 21
146 | 240
147 | 565
148 | 1
149 | 1
150 | TextBoxNumber
151 |
152 | -
153 | 12
154 | 总数量
155 | ttlQuantity
156 | 100
157 | 21
158 | 240
159 | 589
160 | 1
161 | 1
162 | TextBoxNumber
163 |
164 |
165 |
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/bin/Debug/Themplate/装箱单.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 003
4 | 003.bmp
5 | 装箱单
6 | PackList
7 |
8 | -
9 | 0
10 | 企业名称(中文)
11 | enterpriseZh
12 | 300
13 | 21
14 | 215
15 | 180
16 | 1
17 | 1
18 | RichTextBox
19 |
20 | -
21 | 1
22 | 企业名称(英文)
23 | enterpriseEn
24 | 300
25 | 21
26 | 215
27 | 210
28 | 1
29 | 1
30 | TextBoxText
31 |
32 | -
33 | 2
34 | 装箱单日期
35 | packDate
36 | 100
37 | 21
38 | 600
39 | 225
40 | 1
41 | 1
42 | DateTimePicker
43 |
44 | -
45 | 3
46 | 编号
47 | packListNo
48 | 100
49 | 21
50 | 600
51 | 245
52 | 1
53 | 1
54 | TextBoxText
55 |
56 | -
57 | 4
58 | 装箱明细
59 | pertainPackLists
60 | 580
61 | 150
62 | 117
63 | 305
64 | 1
65 | 1
66 | TextBoxText
67 |
68 | -
69 | 5
70 | 净重
71 | nw
72 | 100
73 | 21
74 | 190
75 | 475
76 | 1
77 | 0
78 | TextBoxNumber
79 |
80 | -
81 | 6
82 | 净重单位
83 | nwUnit
84 | 100
85 | 21
86 | 380
87 | 503
88 | 1
89 | 1
90 | RichTextBox
91 |
92 | -
93 | 7
94 | 毛重
95 | gw
96 | 100
97 | 21
98 | 190
99 | 498
100 | 1
101 | 1
102 | TextBoxNumber
103 |
104 | -
105 | 8
106 | 毛重单位
107 | gwUnit
108 | 100
109 | 21
110 | 380
111 | 480
112 | 1
113 | 0
114 | RichTextBox
115 |
116 | -
117 | 9
118 | 箱子的尺码
119 | meas
120 | 65
121 | 21
122 | 240
123 | 520
124 | 1
125 | 1
126 | TextBoxNumber
127 |
128 | -
129 | 10
130 | 箱子的尺码单位
131 | measUnit
132 | 100
133 | 21
134 | 420
135 | 525
136 | 1
137 | 1
138 | RichTextBox
139 |
140 | -
141 | 11
142 | 总箱数
143 | ttlBox
144 | 100
145 | 21
146 | 240
147 | 565
148 | 1
149 | 1
150 | TextBoxNumber
151 |
152 | -
153 | 12
154 | 总数量
155 | ttlQuantity
156 | 100
157 | 21
158 | 240
159 | 589
160 | 1
161 | 1
162 | TextBoxNumber
163 |
164 |
165 |
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/PrintThempActiveX.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Debug
5 | AnyCPU
6 | 9.0.30729
7 | 2.0
8 | {08EFEADC-146C-46C7-AAD9-0367A318587E}
9 | Library
10 | Properties
11 | PrintThempActiveX
12 | PrintThempActiveX
13 | v2.0
14 | 512
15 | true
16 | PrintThempActiveX_Key.snk
17 |
18 |
19 | true
20 | full
21 | false
22 | bin\Debug\
23 | DEBUG;TRACE
24 | prompt
25 | 4
26 | true
27 |
28 |
29 | pdbonly
30 | true
31 | bin\Release\
32 | TRACE
33 | prompt
34 | 4
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 | UserControl
56 |
57 |
58 | FrmEditControlList.cs
59 |
60 |
61 | UserControl
62 |
63 |
64 | FrmEditFrm.cs
65 |
66 |
67 | Form
68 |
69 |
70 | FrmEditInfoBox.cs
71 |
72 |
73 | UserControl
74 |
75 |
76 | FrmEditMainPanel.cs
77 |
78 |
79 | UserControl
80 |
81 |
82 | FrmEditThempZoom.cs
83 |
84 |
85 |
86 | True
87 | True
88 | Resources.resx
89 |
90 |
91 |
92 |
93 |
94 | FrmEditControlList.cs
95 |
96 |
97 | FrmEditFrm.cs
98 |
99 |
100 | FrmEditInfoBox.cs
101 |
102 |
103 | FrmEditMainPanel.cs
104 |
105 |
106 | FrmEditThempZoom.cs
107 |
108 |
109 | ResXFileCodeGenerator
110 | Resources.Designer.cs
111 |
112 |
113 |
114 |
115 |
116 |
117 |
124 |
--------------------------------------------------------------------------------
/src/PrintThemp/Print/bin/Debug/Themplate/产品符合性声明.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 004
4 | 004.bmp
5 | 产品符合性声明
6 | product
7 |
8 | -
9 | 1
10 | 企业名称(英文)
11 | enterpriseEn
12 | 300
13 | 21
14 | 270
15 | 192
16 | 1
17 | 1
18 | TextBoxText
19 |
20 | -
21 | 2
22 | 品名
23 | productName
24 | 300
25 | 21
26 | 215
27 | 279
28 | 1
29 | 1
30 | RichTextBox
31 |
32 | -
33 | 3
34 | 规格
35 | productSpec
36 | 300
37 | 21
38 | 218
39 | 321
40 | 1
41 | 1
42 | RichTextBox
43 |
44 | -
45 | 4
46 | 数量
47 | productNum
48 | 300
49 | 21
50 | 219
51 | 365
52 | 1
53 | 1
54 | TextBoxNumber
55 |
56 | -
57 | 5
58 | 数量单位
59 | productNumUnit
60 | 200
61 | 21
62 | 219
63 | 404
64 | 1
65 | 1
66 | TextBoxNumber
67 |
68 | -
69 | 6
70 | 出口批号
71 | exportNum
72 | 300
73 | 21
74 | 221
75 | 535
76 | 1
77 | 1
78 | RichTextBox
79 |
80 | -
81 | 7
82 | 企业标准
83 | enterpriseStandard
84 | 300
85 | 21
86 | 269
87 | 620
88 | 1
89 | 1
90 | RichTextBox
91 |
92 | -
93 | 8
94 | 其它协议
95 | otherProtocol
96 | 300
97 | 21
98 | 272
99 | 663
100 | 1
101 | 1
102 | RichTextBox
103 |
104 | -
105 | 9
106 | 出口合同号
107 | exportContractNum
108 | 300
109 | 21
110 | 290
111 | 705
112 | 1
113 | 1
114 | TextBoxText
115 |
116 | -
117 | 10
118 | 公司主管
119 | companyDirector
120 | 250
121 | 21
122 | 332
123 | 953
124 | 1
125 | 1
126 | RichTextBox
127 |
128 | -
129 | 11
130 | 符合性声明日期
131 | productDate
132 | 150
133 | 21
134 | 432
135 | 978
136 | 1
137 | 1
138 | DateTimePicker
139 |
140 | -
141 | 1
142 | 重命名2010-9-11 22:11:20
143 | 重命名2010-9-11 22:11:20
144 | 200
145 | 21
146 | 218
147 | 490
148 | 1
149 | 1
150 | TextBoxText
151 |
152 | -
153 | 1
154 | 重命名2010-9-11 22:11:32
155 | 重命名2010-9-11 22:11:32
156 | 200
157 | 21
158 | 220
159 | 448
160 | 1
161 | 1
162 | TextBoxText
163 |
164 | -
165 | 1
166 | 重命名2010-9-11 22:11:46
167 | 重命名2010-9-11 22:11:46
168 | 200
169 | 21
170 | 273
171 | 148
172 | 1
173 | 1
174 | TextBoxText
175 |
176 |
177 |
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/bin/Debug/Themplate/产品符合性声明.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 004
4 | 004.bmp
5 | 产品符合性声明
6 | product
7 |
8 | -
9 | 1
10 | 企业名称(英文)
11 | enterpriseEn
12 | 300
13 | 21
14 | 270
15 | 192
16 | 1
17 | 1
18 | TextBoxText
19 |
20 | -
21 | 2
22 | 品名
23 | productName
24 | 300
25 | 21
26 | 215
27 | 279
28 | 1
29 | 1
30 | RichTextBox
31 |
32 | -
33 | 3
34 | 规格
35 | productSpec
36 | 300
37 | 21
38 | 218
39 | 321
40 | 1
41 | 1
42 | RichTextBox
43 |
44 | -
45 | 4
46 | 数量
47 | productNum
48 | 300
49 | 21
50 | 219
51 | 365
52 | 1
53 | 1
54 | TextBoxNumber
55 |
56 | -
57 | 5
58 | 数量单位
59 | productNumUnit
60 | 200
61 | 21
62 | 219
63 | 404
64 | 1
65 | 1
66 | TextBoxNumber
67 |
68 | -
69 | 6
70 | 出口批号
71 | exportNum
72 | 300
73 | 21
74 | 221
75 | 535
76 | 1
77 | 1
78 | RichTextBox
79 |
80 | -
81 | 7
82 | 企业标准
83 | enterpriseStandard
84 | 300
85 | 21
86 | 269
87 | 620
88 | 1
89 | 1
90 | RichTextBox
91 |
92 | -
93 | 8
94 | 其它协议
95 | otherProtocol
96 | 300
97 | 21
98 | 272
99 | 663
100 | 1
101 | 1
102 | RichTextBox
103 |
104 | -
105 | 9
106 | 出口合同号
107 | exportContractNum
108 | 300
109 | 21
110 | 290
111 | 705
112 | 1
113 | 1
114 | TextBoxText
115 |
116 | -
117 | 10
118 | 公司主管
119 | companyDirector
120 | 250
121 | 21
122 | 332
123 | 953
124 | 1
125 | 1
126 | RichTextBox
127 |
128 | -
129 | 11
130 | 符合性声明日期
131 | productDate
132 | 150
133 | 21
134 | 432
135 | 978
136 | 1
137 | 1
138 | DateTimePicker
139 |
140 | -
141 | 1
142 | 重命名2010-9-11 22:11:20
143 | 重命名2010-9-11 22:11:20
144 | 200
145 | 21
146 | 218
147 | 490
148 | 1
149 | 1
150 | TextBoxText
151 |
152 | -
153 | 1
154 | 重命名2010-9-11 22:11:32
155 | 重命名2010-9-11 22:11:32
156 | 200
157 | 21
158 | 220
159 | 448
160 | 1
161 | 1
162 | TextBoxText
163 |
164 | -
165 | 1
166 | 重命名2010-9-11 22:11:46
167 | 重命名2010-9-11 22:11:46
168 | 200
169 | 21
170 | 273
171 | 148
172 | 1
173 | 1
174 | TextBoxText
175 |
176 |
177 |
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/CustomEditList.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | text/microsoft-resx
110 |
111 |
112 | 2.0
113 |
114 |
115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
119 |
120 |
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/FrmEagleLook.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | text/microsoft-resx
110 |
111 |
112 | 2.0
113 |
114 |
115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
119 |
120 |
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/FrmEditInfoBox.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | text/microsoft-resx
110 |
111 |
112 | 2.0
113 |
114 |
115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
119 |
120 |
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThemp/Properties/Resources.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | text/microsoft-resx
110 |
111 |
112 | 2.0
113 |
114 |
115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
119 |
120 |
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/FrmEditInfoBox.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | text/microsoft-resx
110 |
111 |
112 | 2.0
113 |
114 |
115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
119 |
120 |
--------------------------------------------------------------------------------
/src/PrintThemp/PrintThempActiveX/FrmEditThempZoom.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | text/microsoft-resx
110 |
111 |
112 | 2.0
113 |
114 |
115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
119 |
120 |
--------------------------------------------------------------------------------