SVN-Revision: r476
This commit is contained in:
wyf
2025-04-11 06:50:20 +00:00
parent 824e92921d
commit 4c83bfe0b2
13 changed files with 754 additions and 1 deletions
@@ -383,6 +383,7 @@ namespace Lskj.Control.Model
/// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns>
public bool ExecRightMenu(GridRightMenuModel model, DataRow[] rows)
{
StaticControl.RightMenuGridView = BaseGridView;
List<string> paramListEx = model.ParamList;
List<string> paramList = null;
@@ -1411,7 +1412,6 @@ namespace Lskj.Control.Model
paramList[2] = ReplaceHelper.ReplaceRowParam(rows, url) + "";
}
}
if (model.DllName.ToLower().Contains("p_PubPrint.lsp".ToLower()))
{
string paramsql1 = paramList[2];
@@ -1443,6 +1443,13 @@ namespace Lskj.Control.Model
paramList[3] = ReplaceHelper.ReplaceRowParam(rows, paramsql1, "'", "'");
}
}
else if (model.DllName.ToLower().Contains("Lskj.PubArgoxPrint.dll".ToLower()))
{
string mainsql = paramList[2];
paramList[2] = ReplaceHelper.ReplaceRowParam(rows, mainsql, "'", "'");
string aftersql = paramList[3];
paramList[3] = ReplaceHelper.ReplaceRowParam(rows, aftersql, "'", "'");
}
else if (model.ActionType == 5)//批量下载
{
string modelAction = model.Action;
@@ -0,0 +1,76 @@
using Lskj.Business;
using Lskj.Model;
using Lskj.Util;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Lskj.PubArgoxPrint
{
/// <summary>
/// c#库被调用统一接口类
/// </summary>
public sealed class DllBaseClass : IForm
{
public DllBaseClass()
{
}
public DllBaseClass(string[] obj)
{
try
{
DynamicArgoxPrintModel dynamicArgoxPrintModel = new DynamicArgoxPrintModel(obj);
FrmMain main = new FrmMain();
main.Model = dynamicArgoxPrintModel;
this.SubForm = main;
}
catch (Exception ex)
{
LogUtil.WriteError("Lskj.PubArgoxPrint.dll--参数错误-->" + obj.ToString(), ex);
}
}
/// <summary>
/// 窗口
/// </summary>
public Form SubForm { get; set; }
}
/// <summary>
/// 入口模型
/// </summary>
public class DynamicArgoxPrintModel : DynamicModel
{
/// <summary>
/// 列起始X坐标
/// </summary>
public string LocationX = "";
/// <summary>
/// 打印列参数
/// </summary>
public string PrintArgs = "";
/// <summary>
/// 打印数据sql
/// </summary>
public string MainPrintSql = "";
/// <summary>
/// 执行后的语句
/// </summary>
public string AfterSql = "";
/// <summary>
/// 初始化默认参数(1.标题、2、用户ID、3.用户名、4.权限、5.模块编号、6.菜单ID)
/// </summary>
/// <param name="args">The arguments.</param>
public DynamicArgoxPrintModel(string[] args) : base(args)
{
if (args.Length > 5 && !string.IsNullOrWhiteSpace(args[5]))
{
LocationX = args[5];
}
if (args.Length > 6 &
+18
View File
@@ -0,0 +1,18 @@
namespace Lskj.PubArgoxPrint
{
partial class FrmMain
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
+83
View File
@@ -0,0 +1,83 @@
using Lskj.Business.Impl;
using Lskj.Control;
using Lskj.Control.Model;
using Lskj.Util;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Lskj.PubArgoxPrint
{
public partial class FrmMain : BaseForm
{
public DynamicArgoxPrintModel Model;
public FrmMain()
{
InitializeComponent();
this.Opacity = 0;
this.Load += OnFrmMainLoad;
}
/// <summary>
/// 初始化
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void OnFrmMainLoad(object sender, EventArgs e)
{
WaitForm.ShowForm("正在打印中...");
try
{
string printSql = Model.MainPrintSql;
printSql = ReplaceHelper.ReplaceRowParam(Model.MaintabFocusedRow, Model.MainPrintSql);
DataTable printTable = BaseImpl.GetDataTableResult(printSql);
if (printTable == null || printTable.Rows.Count == 0)
{
MessageUtil.Show("没有打印数据");
return;
}
int nLen = PrintUtil.A_GetUSBBufferLen() + 1;
if (nLen <= 1)
{
MessageUtil.Show("打印机未连接");
return;
}
byte[] pbuf = new byte[128];
int len1 = 128;
int len2 = 128;
byte[] buf1 = new byte[len1];
byte[] buf2 = new byte[len2];
PrintUtil.A_EnumUSB(pbuf);
PrintUtil.A_GetUSBDeviceInfo(1, buf1, out len1, buf2, out len2);
int ret = PrintUtil.A_CreatePrn(12, Encoding.ASCII.GetString(buf2, 0, len2));//open usb.
if (ret != 0)
{
MessageBox.Show("打印启动失败");
return;
}
PrintUtil.A_Set_DebugDialog(0);
PrintUtil.A_Set_Unit('m');
PrintUtil.A_Set_Syssetting(1, 0, 0, 0, 0);
PrintUtil.A_Set_Darkness(13);
PrintUtil.A_Del_Graphic(1, "*");//delete all picture.
string[] locationxArray = Model.LocationX.Split(',');
string[] printArgsArray = Model.PrintArgs.Split(',');
int columnCount = locationxArray.Length;
for (int i = 0; i < printTable.Rows.Count; i++)
{
if (i % columnCount == 0)
{
PrintUtil.A_Clear_Memory();//clear memory.
}
DataRow printRow = printTable.Rows[i];
for (int j = 0; j < printTable.Columns.Count; j++)
{
int locationX = int.TryParse(locationxArray[i % columnCount], out locationX) ? locationX : 0;
PrintModel printModel = new PrintModel(printArgsArray[j % columnCount].Split('_'));
string printValue = printRow[j] + "";
if (printModel.PrintType == 0)
+120
View File
@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
@@ -0,0 +1,106 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{75F53E06-10E3-40AC-B989-B2FF3BF528A7}</ProjectGuid>
<OutputType>Library</OutputType>
<RootNamespace>Lskj.PubArgoxPrint</RootNamespace>
<AssemblyName>Lskj.PubArgoxPrint</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\..\Debug\Lib\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<StartupObject />
</PropertyGroup>
<ItemGroup>
<Reference Include="DevExpress.Utils.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
<Reference Include="Newtonsoft.Json, Version=13.0.1.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>D:\工作\lserp_cs_6.0\引用DLL\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="DllBaseClass.cs" />
<Compile Include="FrmMain.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmMain.Designer.cs">
<DependentUpon>FrmMain.cs</DependentUpon>
</Compile>
<Compile Include="PrintModel.cs" />
<Compile Include="PrintUtil.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="FrmMain.resx">
<DependentUpon>FrmMain.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Lskj.Business\Lskj.Business.csproj">
<Project>{7EAFCCC2-A18F-49E9-85C6-A984966CFD01}</Project>
<Name>Lskj.Business</Name>
</ProjectReference>
<ProjectReference Include="..\Lskj.Control\Lskj.Control.csproj">
<Project>{447CDC40-659F-4CCA-9ED6-8E818B4CF8BF}</Project>
<Name>Lskj.Control</Name>
</ProjectReference>
<ProjectReference Include="..\Lskj.Model\Lskj.Model.csproj">
<Project>{52BC40E0-C0C6-4F78-996B-CAE028D209CA}</Project>
<Name>Lskj.Model</Name>
</ProjectReference>
<ProjectReference Include="..\Lskj.Util\Lskj.Util.csproj">
<Project>{A51BF642-6543-4DE3-8948-83F558B72BD4}</Project>
<Name>Lskj.Util</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
Binary file not shown.
+169
View File
@@ -0,0 +1,169 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
namespace Lskj.PubArgoxPrint
{
public static class PrintUtil
{
[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)]
public static extern IntPtr LoadImage(IntPtr hinst, string lpszName, uint uType,
int cxDesired, int cyDesired, uint fuLoad);
[DllImport("Gdi32.dll", SetLastError = true, CharSet = CharSet.Auto)]
public static extern int DeleteObject(IntPtr ho);
[DllImport("Winppla.dll")]
public static extern int A_Bar2d_Maxi(int x, int y, int primary, int secondary,
int country, int service, char mode, int numeric, string data);
[DllImport("Winppla.dll")]
public static extern int A_Bar2d_Maxi_Ori(int x, int y, int ori, int primary,
int secondary, int country, int service, char mode, int numeric, string data);
[DllImport("Winppla.dll")]
public static extern int A_Bar2d_PDF417(int x, int y, int narrow, int width, char normal,
int security, int aspect, int row, int column, char mode, int numeric, string data);
[DllImport("Winppla.dll")]
public static extern int A_Bar2d_PDF417_Ori(int x, int y, int ori, int narrow, int width,
char normal, int security, int aspect, int row, int column, char mode, int numeric,
string data);
[DllImport("Winppla.dll")]
public static extern int A_Bar2d_DataMatrix(int x, int y, int rotation, int hor_mul,
int ver_mul, int ECC, int data_format, int num_rows, int num_col, char mode,
int numeric, string data);
[DllImport("Winppla.dll")]
public static extern void A_Clear_Memory();
[DllImport("Winppla.dll")]
public static extern void A_ClosePrn();
[DllImport("Winppla.dll")]
public static extern int A_CreatePrn(int selection, string filename);
[DllImport("Winppla.dll")]
public static extern int A_Del_Graphic(int mem_mode, string graphic);
[DllImport("Winppla.dll")]
public static extern int A_Draw_Box(char mode, int x, int y, int width, int height,
int top, int side);
[DllImport("Winppla.dll")]
public static extern int A_Draw_Line(char mode, int x, int y, int width, int height);
[DllImport("Winppla.dll")]
public static extern void A_Feed_Label();
[DllImport("Winppla.dll")]
public static extern IntPtr A_Get_DLL_Version(int nShowMessage);
[DllImport("Winppla.dll")]
public static extern int A_Get_DLL_VersionA(int nShowMessage);
[DllImport("Winppla.dll")]
public static extern int A_Get_Graphic(int x, int y, int mem_mode, char format,
string filename);
[DllImport("Winppla.dll")]
public static extern int A_Get_Graphic_ColorBMP(int x, int y, int mem_mode, char format,
string filename);
[DllImport("Winppla.dll")]
public static extern int A_Get_Graphic_ColorBMPEx(int x, int y, int nWidth, int nHeight,
int rotate, int mem_mode, char format, string id_name, string filename);
[DllImport("Winppla.dll")]
public static extern int A_Get_Graphic_ColorBMP_HBitmap(int x, int y, int nWidth, int nHeight,
int rotate, int mem_mode, char format, string id_name, IntPtr hbm);
[DllImport("Winppla.dll")]
public static extern int A_Initial_Setting(int Type, string Source);
[DllImport("Winppla.dll")]
public static extern int A_WriteData(int IsImmediate, byte[] pbuf, int length);
[DllImport("Winppla.dll")]
public static extern int A_ReadData(byte[] pbuf, int length, int dwTimeoutms);
[DllImport("Winppla.dll")]
public static extern int A_Load_Graphic(int x, int y, string graphic_name);
[DllImport("Winppla.dll")]
public static extern int A_Open_ChineseFont(string path);
[DllImport("Winppla.dll")]
public static extern int A_Print_Form(int width, int height, int copies, int amount,
string form_name);
[DllImport("Winppla.dll")]
public static extern int A_Print_Out(int width, int height, int copies, int amount);
[DllImport("Winppla.dll")]
public static extern int A_Prn_Barcode(int x, int y, int ori, char type, int narrow,
int width, int height, char mode, int numeric, string data);
[DllImport("Winppla.dll")]
public static extern int A_Prn_Text(int x, int y, int ori, int font, int type,
int hor_factor, int ver_factor, char mode, int numeric, string data);
[DllImport("Winppla.dll")]
public static extern int A_Prn_Text_Chinese(int x, int y, int fonttype, string id_name,
string data, int mem_mode);
[DllImport("Winppla.dll")]
public static extern int A_Prn_Text_TrueType(int x, int y, int FSize, string FType,
int Fspin, int FWeight, int FItalic, int FUnline, int FStrikeOut, string id_name,
string data, int mem_mode);
[DllImport("Winppla.dll")]
public static extern int A_Prn_Text_TrueType_W(int x, int y, int FHeight, int FWidth,
string FType, int Fspin, int FWeight, int FItalic, int FUnline, int FStrikeOut,
string id_name, string data, int mem_mode);
[DllImport("Winppla.dll")]
public static extern int A_Set_Backfeed(int back);
[DllImport("Winppla.dll")]
public static extern int A_Set_BMPSave(int nSave, string pstrBMPFName);
[DllImport("Winppla.dll")]
public static extern int A_Set_Cutting(int cutting);
[DllImport("Winppla.dll")]
public static extern int A_Set_Darkness(int heat);
[DllImport("Winppla.dll")]
public static extern int A_Set_DebugDialog(int nEnable);
[DllImport("Winppla.dll")]
public static extern int A_Set_Feed(char rate);
[DllImport("Winppla.dll")]
public static extern int A_Set_Form(string formfile, string form_name, int mem_mode);
[DllImport("Winppla.dll")]
public static extern int A_Set_Margin(int position, int margin);
[DllImport("Winppla.dll")]
public static extern int A_Set_Prncomport(int baud, int parity, int data, int stop);
[DllImport("Winppla.dll")]
public static extern int A_Set_Prncomport_PC(int nBaudRate, int nByteSize, int nParity,
int nStopBits, int nDsr, int nCts, int nXonXoff);
[DllImport("Winppla.dll")]
public static extern int A_Set_Sensor_Mode(char type, int continuous);
[DllImport("Winppla.dll")]
public static extern int A_Set_Speed(char speed);
[DllImport("Winppla.dll")]
public static extern int A_Set_Syssetting(int transfer, int cut_peel, int length,
int zero, int pause);
[DllImport("Winppla.dll")]
public static extern int A_Set_Unit(char unit);
[DllImport("Winppla.dll")]
public static extern int A_Set_Gap(int gap);
[DllImport("Winppla.dll")]
public static extern int A_Set_Logic(int logic);
[DllImport("Winppla.dll")]
public static extern int A_Set_ProcessDlg(int nShow);
[DllImport("Winppla.dll")]
public static extern int A_Set_ErrorDlg(int nShow);
[DllImport("Winppla.dll")]
public static extern int A_Set_LabelVer(int centiInch);
[DllImport("Winppla.dll")]
public static extern int A_GetUSBBufferLen();
[DllImport("Winppla.dll")]
public static extern int A_EnumUSB(byte[] buf);
[DllImport("Winppla.dll")]
public static extern int A_CreateUSBPort(int nPort);
[DllImport("Winppla.dll")]
public static extern int A_CreatePort(int nPortType, int nPort, string filename);
[DllImport("Winppla.dll")]
public static extern int A_Clear_MemoryEx(int nMode);
[DllImport("Winppla.dll")]
public static extern void A_Set_Mirror();
[DllImport("Winppla.dll")]
public static extern int A_Bar2d_RSS(int x, int y, int ori, int ratio, int height,
char rtype, int mult, int seg, string data1, string data2);
[DllImport("Winppla.dll")]
public static extern int A_Bar2d_QR_M(int x, int y, int ori, char mult, int value,
int model, char error, int mask, char dinput, char mode, int numeric, string data);
[DllImport("Winppla.dll")]
public static extern int A_Bar2d_QR_A(int x, int y, int ori, char mult, int value,
char mode, int numeric, string data);
[DllImport("Winppla.dll")]
public static extern int A_GetNetPrinterBufferLen();
[DllImport("Winppla.dll")]
public static extern int A_EnumNetPrinter(byte[] buf);
[DllImport("Winppla.dll")]
public static extern int A_CreateNetPort(int nPort);
[DllImport("Winppla.dll")]
public static extern int A_Prn_Text_TrueType_Uni(int x, int y, int FSize, string FType,
int Fspin, int FWeight, int FItalic, int FUnline, int FStrikeOut, string id_name,
byte[] data, int format, int mem_mode);
[DllImport("Winppla.dll")]
public static extern int A_Prn_Text_TrueType_UniB(int x, int y, int FSize, string FType,
int Fspin, int FWeight, int FItali
@@ -0,0 +1,9 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("Lskj.PubArgoxPrint")]
[assembly: AssemblyDes
@@ -0,0 +1,40 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本: 4.0.30319.42000
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Lskj.PubArgoxPrint.Properties
{
/// <summary>
/// 强类型资源类,用于查找本地化字符串等。
/// </summary>
// 此类是由 StronglyTypedResourceBuilder
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
// 若要添加或删除成员,请编辑 .ResX 文件,然后重新运行 ResGen
// (以 /str 作为命令选项),或重新生成 VS 项目。
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources
{
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources()
{
}
/// <summary>
/// 返回此类使用的缓存 ResourceManager 实例。
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManag
@@ -0,0 +1,117 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
@@ -0,0 +1 @@
//--------------------------------------------------------------------------
@@ -0,0 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>