Code backup
This commit is contained in:
2026-05-10 16:59:01 +02:00
commit 368d6fafea
796 changed files with 315310 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
//ProdTable
msh = MultiSelectionHelper::construct();
msh.parmDatasource(formDs);
ttsBegin;
prodTable = msh.getFirst();
while(prodTable){
//recIds += strFmt("%1", prodTable.RecId) + ",";
select forUpdate prodTableToUpdate where prodTableToUpdate.RecId == prodTable.RecId;
prodTableToUpdate.BFPrinted = true;
prodTableToUpdate.update();
// NEW PRINT SERVER - START
usePortal = true;
recIds += strFmt("%1,", PALDC_OfficePrinterClient::AddToQueue( prodTable.RecId,
PALDC_OPC_PrintTypes::find(PALDC_OPC_PrintType::ProdTable).RecId,
printerPath, // printerName
prodTable.ProdId, // printId
directPrint, // directPrint
directPrintOutput, // directPrintOutput
drawingsDownload, // drawingsDownload
isProforma, // isProforma
false, // printDiscounts
printPrices, // printPrices
optionalParms, // optionalString1
"", // optionalString2
false, // optionalBoolean1
false)); // optionalBoolean2
// NEW PRINT SERVER - END
prodTable = msh.getNext();
}
ttsCommit;
if(recIds)
recIds = subStr(recIds, 0, strLen(recIds) -1);
break;
@@ -0,0 +1,72 @@
//ProdTableBadge
msh = MultiSelectionHelper::construct();
msh.parmDatasource(formDs);
record = msh.getFirst();
switch(record.TableId)
{
case tableNum(ProdTable):
//TODO Manca da gestire il progetto ed il bottone per lanceiare la stampa
prodTable = record;
/*while(prodTable){
recIds += strFmt("%1", prodTable.RecId) + ",";
prodTable = msh.getNext();
}
listOfRecIdsToPrint = strSplit(recIds, ",");
liRecIdsToPrint = new ListIterator(listOfRecIdsToPrint);
while(liRecIdsToPrint.more())*/
while(prodTable){
prodTable.clear();
select prodTable
where prodTable.RecId == liRecIdsToPrint.value();
/*
recordToPrintRecId = prodTable.RecId;
printType = PALDC_OPC_PrintTypes::find(PALDC_OPC_PrintType::ProdTableBadge).RecId;
printDescription = strFmt("Bindello %1", prodTable.ProdId);
optionalStr1 = optionalParms;
PALDC_OfficePrinterClient::AddToQueue( recordToPrintRecId,
printType,
"", // printerName
printDescription, // printId
directPrint, // directPrint
directPrintOutput, // directPrintOutput
drawingsDownload, // drawingsDownload
isProforma, // isProforma
printDiscounts, // printDiscounts
printPrices, // printPrices
optionalStr1, // optionalString1
optionalStr2, // optionalString1
optionalBoolean1, // optionalBoolean1
optionalBoolean1); // optionalBoolean2
*/
// NEW PRINT SERVER - START
usePortal = true;
recIds += strFmt("%1,", PALDC_OfficePrinterClient::AddToQueue( prodTable.RecId,
PALDC_OPC_PrintTypes::find(PALDC_OPC_PrintType::ProdTableBadge).RecId,
printerPath, // printerName
prodTable.ProdId, // printId
directPrint, // directPrint
directPrintOutput, // directPrintOutput
drawingsDownload, // drawingsDownload
isProforma, // isProforma
false, // printDiscounts
printPrices, // printPrices
optionalParms, // optionalString1
"", // optionalString1
false, // optionalBoolean1
false)); // optionalBoolean2
// NEW PRINT SERVER - END
liRecIdsToPrint.next();
}
if(recIds)
recIds = subStr(recIds, 0, strLen(recIds) -1);
break;
File diff suppressed because it is too large Load Diff