D7myYunxiang/A00标签打印/U_LabelPrintFun.pas

41 lines
1.0 KiB
ObjectPascal
Raw Normal View History

2025-08-07 12:49:00 +08:00
unit U_LabelPrintFun;
interface
uses
Forms, U_LabelPrint, U_ClientPrintRmf;
function FormPrint(App: Tapplication; JsonArgs: PChar): PChar;
function FunPrint(App: Tapplication; JsonArgs: PChar): PChar;
implementation
//'{ "LMType": "LMType","PreviewPrint": true,"DConString": "'+DConString+'","DCode": "'+DCode+'","DName": "'+DName+'", "PrtArgs": [ { "IsSql": true, "Filtration": "Filtration1" }] }';
function FormPrint(App: Tapplication; JsonArgs: PChar): PChar;
begin
with TfrmLabelPrint.Create(App, PChar(JsonArgs)) do
begin
2025-08-08 10:52:04 +08:00
2025-08-07 12:49:00 +08:00
if ShowModal = 1 then
Result := FJsonOut
else
Result := FJsonOut;
end;
end;
2025-08-30 13:46:21 +08:00
// '{ "LBName": "<22><><EFBFBD><EFBFBD>","QrCodeField": "ssid","DConString": "'+DConString+'","DCode": "'+DCode+'","DName": "'+DName+'","IsPreview": true,"printerIndex": 0,"ExportFileType": "", "PrtArgs": [ {"SqlStr": "EXEC p_test ''22'' " }] }';
2025-08-07 12:49:00 +08:00
function FunPrint(App: Tapplication; JsonArgs: PChar): PChar;
begin
with TfrmClientPrintRmf.Create(App, JsonArgs) do
begin
Show;
Result := FJsonOut;
end;
end;
end.