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

📄 stokmalsay.pas

📁 Basic Marketing stock Program
💻 PAS
字号:
unit stokmalsay;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  Db, DBTables, Grids, DBGrids, Mask, ToolEdit, CurrEdit, StdCtrls,
  Buttons, ExtCtrls, ComCtrls, Qrctrls, QuickRpt, DBCtrls;

type
  Tstoksay = class(TForm)
    Panel1: TPanel;
    Label4: TLabel;
    Label5: TLabel;
    Label3: TLabel;
    BitBtn4: TBitBtn;
    Edit3: TEdit;
    Edit4: TEdit;
    Edit1: TEdit;
    Edit2: TEdit;
    BitBtn1: TBitBtn;
    BitBtn2: TBitBtn;
    BitBtn3: TBitBtn;
    toplame: TCurrencyEdit;
    DBGrid1: TDBGrid;
    Query1: TQuery;
    DataSource1: TDataSource;
    Query1SIRKOD: TStringField;
    Query1KODU: TStringField;
    Query1ADI: TStringField;
    Query1BIRIM: TStringField;
    Query1GRUPKODU: TFloatField;
    Query1KDV: TFloatField;
    Query1ISKONTO: TFloatField;
    Query1DOVKOD: TStringField;
    Query1ALISFIYAT: TFloatField;
    Query1SFIYAT1: TFloatField;
    Query1SFIYAT2: TFloatField;
    Query1SFIYAT3: TFloatField;
    Query1KRITIKSTOK: TFloatField;
    Query1GIRMIK: TFloatField;
    Query1CIKMIK: TFloatField;
    Query1MEVCUT: TFloatField;
    Query1TUTARI: TCurrencyField;
    QuickRep1: TQuickRep;
    QRBand1: TQRBand;
    QRLabel4: TQRLabel;
    QRSysData1: TQRSysData;
    QRLabel11: TQRLabel;
    QRBand2: TQRBand;
    QRLabel5: TQRLabel;
    QRLabel6: TQRLabel;
    QRLabel7: TQRLabel;
    QRLabel8: TQRLabel;
    QRLabel9: TQRLabel;
    QRShape1: TQRShape;
    QRBand3: TQRBand;
    QRDBText1: TQRDBText;
    QRDBText2: TQRDBText;
    QRDBText3: TQRDBText;
    QRDBText4: TQRDBText;
    QRDBText5: TQRDBText;
    QRDBText6: TQRDBText;
    QRBand4: TQRBand;
    QRLabel10: TQRLabel;
    QRExpr1: TQRExpr;
    StatusBar1: TStatusBar;
    QRLabel1: TQRLabel;
    Label2: TLabel;
    gsec: TDBLookupComboBox;
    procedure FormClose(Sender: TObject; var Action: TCloseAction);
    procedure BitBtn3Click(Sender: TObject);
    procedure Query1CalcFields(DataSet: TDataSet);
    procedure BitBtn1Click(Sender: TObject);
    procedure BitBtn4Click(Sender: TObject);
    procedure BitBtn2Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  stoksay: Tstoksay;

implementation

uses unit1,unitgenel, stoklistesi;

{$R *.DFM}

procedure Tstoksay.FormClose(Sender: TObject; var Action: TCloseAction);
begin
        action:=cafree;
end;

procedure Tstoksay.BitBtn3Click(Sender: TObject);
begin
        close;
end;

procedure Tstoksay.Query1CalcFields(DataSet: TDataSet);
Var
toplam:Currency;
begin
        toplam:=Query1MEVCUT.Value * Query1SFIYAT1.Value;
        Query1TUTARI.Value:=toplam;
end;

procedure Tstoksay.BitBtn1Click(Sender: TObject);
Var
toplam:Currency;
begin
     if Edit3.Text='' then
       Edit3.Text:='1';
     if Edit4.Text='' then
       Edit4.Text:='9999999999999';
     Query1.Close;
     Query1.ParamByName('XSIRKOD').Value:=sb.sirkod;
     Query1.ParamByName('XBKODU').Value:=Edit3.Text;
     Query1.ParamByName('XSKODU').Value:=Edit4.Text;
     if gsec.Text='' then
       Begin
          Query1.ParamByName('XBGRUP').Value:=0;
          Query1.ParamByName('XSGRUP').Value:=9999999;
       End;
     if gsec.Text <> '' then
       Begin
          Query1.ParamByName('XBGRUP').Value:=dtaksit.gruptkodu.Value;
          Query1.ParamByName('XSGRUP').Value:=dtaksit.gruptkodu.Value;
       End;

     Query1.Prepare;
     Query1.open;
     if Query1.IsEmpty then
       Begin
         ShowMessage('輘tenilen Kay齮lar Bulunamad

⌨️ 快捷键说明

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