⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ctjkprint.pas

📁 集成酒店桑拿食管管理的完整程序
💻 PAS
字号:
unit ctjkprint;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  QuickRpt, Qrctrls, ExtCtrls, DBTables, Db;

type
  Tctjkbptform = class(TForm)
    qr1: TQuickRep;
    QRBand1: TQRBand;
    QRLabel1: TQRLabel;
    QRLabel23: TQRLabel;
    QRSubDetail2: TQRSubDetail;
    QRLabel2: TQRLabel;
    QRShape1: TQRShape;
    QRShape2: TQRShape;
    QRShape3: TQRShape;
    QRShape4: TQRShape;
    QRShape5: TQRShape;
    QRShape6: TQRShape;
    QRShape7: TQRShape;
    QRShape13: TQRShape;
    QRLabel3: TQRLabel;
    QRLabel4: TQRLabel;
    QRLabel5: TQRLabel;
    QRLabel6: TQRLabel;
    QRLabel7: TQRLabel;
    QRLabel8: TQRLabel;
    QRLabel9: TQRLabel;
    QRLabel10: TQRLabel;
    QRSubDetail3: TQRSubDetail;
    QRDBText27: TQRDBText;
    QRDBText30: TQRDBText;
    QRDBText31: TQRDBText;
    QRDBText32: TQRDBText;
    QRDBText33: TQRDBText;
    QRDBText34: TQRDBText;
    QRDBText35: TQRDBText;
    QRDBText36: TQRDBText;
    QRShape18: TQRShape;
    QRShape20: TQRShape;
    QRShape21: TQRShape;
    QRShape22: TQRShape;
    QRShape23: TQRShape;
    QRShape24: TQRShape;
    QRShape25: TQRShape;
    QRShape26: TQRShape;
    QRSubDetail1: TQRSubDetail;
    g00: TQRLabel;
    QRShape8: TQRShape;
    QRShape9: TQRShape;
    QRShape10: TQRShape;
    QRShape11: TQRShape;
    QRShape12: TQRShape;
    QRShape14: TQRShape;
    QRShape15: TQRShape;
    QRShape16: TQRShape;
    g10: TQRLabel;
    g20: TQRLabel;
    g30: TQRLabel;
    g40: TQRLabel;
    g50: TQRLabel;
    g60: TQRLabel;
    g70: TQRLabel;
    g80: TQRLabel;
    QRSubDetail4: TQRSubDetail;
    g01: TQRLabel;
    QRShape17: TQRShape;
    QRShape19: TQRShape;
    QRShape27: TQRShape;
    QRShape28: TQRShape;
    QRShape29: TQRShape;
    QRShape30: TQRShape;
    QRShape31: TQRShape;
    QRShape32: TQRShape;
    g11: TQRLabel;
    g21: TQRLabel;
    g31: TQRLabel;
    g41: TQRLabel;
    g51: TQRLabel;
    g61: TQRLabel;
    g71: TQRLabel;
    g81: TQRLabel;
    QRSubDetail5: TQRSubDetail;
    g02: TQRLabel;
    QRShape33: TQRShape;
    QRShape34: TQRShape;
    QRShape35: TQRShape;
    QRShape36: TQRShape;
    QRShape37: TQRShape;
    QRShape38: TQRShape;
    QRShape39: TQRShape;
    QRShape40: TQRShape;
    g12: TQRLabel;
    g22: TQRLabel;
    g32: TQRLabel;
    g42: TQRLabel;
    g52: TQRLabel;
    g62: TQRLabel;
    g72: TQRLabel;
    g82: TQRLabel;
    QRSubDetail6: TQRSubDetail;
    g03: TQRLabel;
    QRShape41: TQRShape;
    QRShape42: TQRShape;
    QRShape43: TQRShape;
    QRShape44: TQRShape;
    QRShape45: TQRShape;
    QRShape46: TQRShape;
    QRShape47: TQRShape;
    QRShape48: TQRShape;
    g13: TQRLabel;
    g23: TQRLabel;
    g33: TQRLabel;
    g43: TQRLabel;
    g53: TQRLabel;
    g63: TQRLabel;
    g73: TQRLabel;
    g83: TQRLabel;
    Panel1: TPanel;
    QRBand2: TQRBand;
    QRSubDetail7: TQRSubDetail;
    QRLabel11: TQRLabel;
    QRLabel12: TQRLabel;
    QRDBText28: TQRDBText;
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  ctjkbptform: Tctjkbptform;

implementation

uses dataproc, ctjk;

{$R *.DFM}

procedure Tctjkbptform.FormCreate(Sender: TObject);
begin
   fm.query1.close;
   fm.query1.sql.clear;
   fm.query1.sql.add('Select UnitName from syssetup');
   fm.query1.open;
   QRLabel1.Caption:=trim(unpassname(fm.query1.Fields[0].asstring))+'餐厅交款明细表';
   fm.query1.close;
   fm.Query1.UnPrepare;
   fm.query1.RequestLive:=true;
  QRLabel1.Font:=Panel1.Font;
  QRLabel1.Left:=strtoint(floattostr(int((QRBand1.Width-QRLabel1.Width)/2)));
  QRLabel23.Caption:=formatdatetime('yyyy',now)+'年'+formatdatetime('mm',now)+'月'+formatdatetime('dd',now)+'日';
  g00.Caption:=trim(ctjkform.StringGrid1.cells[0,0]);
  g01.Caption:=trim(ctjkform.StringGrid1.cells[0,1]);
  g02.Caption:=trim(ctjkform.StringGrid1.cells[0,2]);
  g03.Caption:=trim(ctjkform.StringGrid1.cells[0,3]);
  g10.Caption:=trim(ctjkform.StringGrid1.cells[1,0]);
  g11.Caption:=trim(ctjkform.StringGrid1.cells[1,1]);
  g12.Caption:=trim(ctjkform.StringGrid1.cells[1,2]);
  g13.Caption:=trim(ctjkform.StringGrid1.cells[1,3]);
  g20.Caption:=trim(ctjkform.StringGrid1.cells[2,0]);
  g21.Caption:=trim(ctjkform.StringGrid1.cells[2,1]);
  g22.Caption:=trim(ctjkform.StringGrid1.cells[2,2]);
  g23.Caption:=trim(ctjkform.StringGrid1.cells[2,3]);
  g30.Caption:=trim(ctjkform.StringGrid1.cells[3,0]);
  g31.Caption:=trim(ctjkform.StringGrid1.cells[3,1]);
  g32.Caption:=trim(ctjkform.StringGrid1.cells[3,2]);
  g33.Caption:=trim(ctjkform.StringGrid1.cells[3,3]);
  g40.Caption:=trim(ctjkform.StringGrid1.cells[4,0]);
  g41.Caption:=trim(ctjkform.StringGrid1.cells[4,1]);
  g42.Caption:=trim(ctjkform.StringGrid1.cells[4,2]);
  g43.Caption:=trim(ctjkform.StringGrid1.cells[4,3]);
  g50.Caption:=trim(ctjkform.StringGrid1.cells[5,0]);
  g51.Caption:=trim(ctjkform.StringGrid1.cells[5,1]);
  g52.Caption:=trim(ctjkform.StringGrid1.cells[5,2]);
  g53.Caption:=trim(ctjkform.StringGrid1.cells[5,3]);
  g60.Caption:=trim(ctjkform.StringGrid1.cells[6,0]);
  g61.Caption:=trim(ctjkform.StringGrid1.cells[6,1]);
  g62.Caption:=trim(ctjkform.StringGrid1.cells[6,2]);
  g63.Caption:=trim(ctjkform.StringGrid1.cells[6,3]);
  g70.Caption:=trim(ctjkform.StringGrid1.cells[7,0]);
  g71.Caption:=trim(ctjkform.StringGrid1.cells[7,1]);
  g72.Caption:=trim(ctjkform.StringGrid1.cells[7,2]);
  g73.Caption:=trim(ctjkform.StringGrid1.cells[7,3]);
  g80.Caption:=trim(ctjkform.StringGrid1.cells[8,0]);
  g81.Caption:=trim(ctjkform.StringGrid1.cells[8,1]);
  g82.Caption:=trim(ctjkform.StringGrid1.cells[8,2]);
  g83.Caption:=trim(ctjkform.StringGrid1.cells[8,3]);
  //  QRSubDetail1.Print;
  //QuickRep1.
//  qr1.preview;
  //srrbForm.Query1
end;

end.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -