Advertisement
Advertisement
| 12.05.2007 at 04:36AM PST, ID: 23002762 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
|
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: |
function TfrmMain.PrintStillageLabel(const ABarCode :String): Boolean;
begin
Try
//Print the stillage labels if AutoPrintSL is flagged on
qStillages.SQL.Text := 'SELECT S.BarCode, S.POrderNumber, S.Sequence, S.TheirDateTime, S.ItemDescription, '+
'S.PartTypeNumber, P.StillageQty, P.PrintBOMSL ' +
'FROM tblStillages S LEFT OUTER JOIN tblPartTypes P ON S.PartTypeNumber = P.PartTypeNumber '+
'WHERE (BarCode = :BarCode) AND (S.SLPrinted = 0) AND (P.AutoPrintSL = 1) '+
'ORDER BY TheirDateTime, Sequence';
qStillages.Parameters.ParamByName('BarCode').Value := ABarCode;
qStillages.Open; qStillages.Last; qStillages.First;
If qStillages.IsEmpty then Exit;
rvSystem.DefaultDest := rdPrinter;
rvSystem.SystemSetups := rvSystem.SystemSetups - [ssAllowSetup];
rvProject.Open;
rvProject.SelectReport('repStillageLabel', False);
rvProject.SetParam('Date', DateToStr(Date));
rvProject.SetParam('Time', TimeToStr(Time));
rvProject.SetParam('PartType', qStillages.FieldByName('PartTypeNumber').AsString);
rvProject.SetParam('StillageQty', qStillages.FieldByName('StillageQty').AsString);
rvProject.SetParam('BarCode', qStillages.FieldByName('BarCode').AsString);
rvProject.Execute;
//Mark this SL as printed.
qUpdate.SQL.Text := 'UPDATE tblStillages SET SLPrinted = 1 WHERE BarCode = :BarCode';
qUpdate.Parameters.ParamByName('BarCode').Value := ABarCode;
qUpdate.ExecSQL;
WriteToLog(logAttention, 'Stillage Label Printed: ' + ABarCode);
Except
On E:Exception do
begin
Result := False;
WriteToLog(logError, E.Message);
end;
end;
end;
|