ΠŸΠΎΠΌΠΎΡ‰ΡŒ Π² написании студСнчСских Ρ€Π°Π±ΠΎΡ‚
АнтистрСссовый сСрвис

БистСма (подсистСма) складкого ΡƒΡ‡Π΅Ρ‚Π° ΠΌΠ°Ρ‚Π΅Ρ€ΠΈΠ°Π»ΠΎΠ² Π² ΡΡ‚Ρ€ΠΎΠΈΡ‚Π΅Π»ΡŒΠ½ΠΎΠΉ ΠΊΠΎΠΌΠΏΠ°Π½ΠΈΠΈ. (Delphi 6, Π›ΠΎΠΊΠ°Π»ΡŒΠ½Π°Ρ Π‘Π£Π‘Π”)

Дипломная ΠšΡƒΠΏΠΈΡ‚ΡŒ Π³ΠΎΡ‚ΠΎΠ²ΡƒΡŽ Π£Π·Π½Π°Ρ‚ΡŒ ΡΡ‚ΠΎΠΈΠΌΠΎΡΡ‚ΡŒΠΌΠΎΠ΅ΠΉ Ρ€Π°Π±ΠΎΡ‚Ρ‹

Procedure TMainClientsForm. BuildGridDatabaseDirectoryItem (sCaption:String; ds: TDataSource); MainClientsForm. BuildGridDatabaseDirectoryItem ('Ρ‚ΠΎΠ²Π°Ρ€Ρ‹', mainclientsform. DataSource1); Stroka_SQL:='select tovar. nametovar, addional. srok_godnost from tovar, addional'+ sqlwhere; ProsmForm. Edit1.Text:=MainClientsForm.DataSource1.DataSet.FieldByName ('nameTovar').AsString; NewConnection… Π§ΠΈΡ‚Π°Ρ‚ΡŒ Π΅Ρ‰Ρ‘ >

БистСма (подсистСма) складкого ΡƒΡ‡Π΅Ρ‚Π° ΠΌΠ°Ρ‚Π΅Ρ€ΠΈΠ°Π»ΠΎΠ² Π² ΡΡ‚Ρ€ΠΎΠΈΡ‚Π΅Π»ΡŒΠ½ΠΎΠΉ ΠΊΠΎΠΌΠΏΠ°Π½ΠΈΠΈ. (Delphi 6, Π›ΠΎΠΊΠ°Π»ΡŒΠ½Π°Ρ Π‘Π£Π‘Π”) (Ρ€Π΅Ρ„Π΅Ρ€Π°Ρ‚, курсовая, Π΄ΠΈΠΏΠ»ΠΎΠΌ, ΠΊΠΎΠ½Ρ‚Ρ€ΠΎΠ»ΡŒΠ½Π°Ρ)

Π‘ΠΎΠ΄Π΅Ρ€ΠΆΠ°Π½ΠΈΠ΅

  • Π΄ΠΈΠΏΠ»ΠΎΠΌΠ½ΠΎΠ³ΠΎ ΠΏΡ€ΠΎΠ΅ΠΊΡ‚Π°
  • Π’Π²Π΅Π΄Π΅Π½ΠΈΠ΅1.ΠŸΠΎΡΡ‚Π°Π½ΠΎΠ²ΠΊΠ° Π·Π°Π΄Π°Ρ‡ΠΈ
    • 1. 1. НазначСниС ΠΈ Ρ†Π΅Π»ΠΈ систСмы
    • 1. 2. Π’Ρ€Π΅Π±ΠΎΠ²Π°Π½ΠΈΠ΅ ΠΊ ΡΠΈΡΡ‚Π΅ΠΌΠ΅
    • 1. 3. Π‘ΠΎΠ΄Π΅Ρ€ΠΆΠ°Ρ‚Π΅Π»ΡŒΠ½ΠΎΠ΅ описаниС постановки Π·Π°Π΄Π°Ρ‡ΠΈ
      • 1. 3. 1. ОписаниС эффСктивности внСдрСния
      • 1. 3. 2. ΠžΡΠ½ΠΎΠ²Π½Ρ‹Π΅ дСйствия2. ΠŸΡ€ΠΎΠ΅ΠΊΡ‚ΠΈΡ€ΠΎΠ²Π°Π½ΠΈΠ΅
    • 2. 1. ОбоснованиС Π²Ρ‹Π±ΠΎΡ€Π° тСхничСских срСдств
      • 2. 1. 1. ВСхничСскиС срСдства для Ρ€Π΅Π°Π»ΠΈΠ·Π°Ρ†ΠΈΠΈ ΠΏΡ€ΠΎΠ΅ΠΊΡ‚Π°
      • 2. 1. 2. ВСхничСскиС срСдства для Ρ€Π°Π±ΠΎΡ‚Ρ‹ систСмы ΡƒΡ‡Π΅Ρ‚Π°
    • 2. 2. ОбоснованиС Π²Ρ‹Π±ΠΎΡ€Π° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½Ρ‹Ρ… срСдств
      • 2. 2. 1. Π₯Π°Ρ€Π°ΠΊΡ‚Π΅Ρ€Π½Ρ‹Π΅ Ρ‡Π΅Ρ€Ρ‚Ρ‹ ΠΈ Π΄ΠΎΡΡ‚оинства Delphi 7 ΠΈ MS SQL 2000 ΠΈ ΠΈΡ… ΠΏΡ€ΠΈΠΌΠ΅Π½Π΅Π½ΠΈΡ Π² ΠΊΠ°Ρ‡Π΅ΡΡ‚Π²Π΅ ΠΈΠ½ΡΡ‚Ρ€ΡƒΠΌΠ΅Π½Ρ‚Π°Π»ΡŒΠ½Ρ‹Ρ… ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½Ρ‹Ρ… ΠΏΡ€ΠΎΠ΄ΡƒΠΊΡ‚ΠΎΠ²
      • 2. 2. 2. БистСмноС ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ΅ обСспСчСниС3. Π Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠΉ Ρ€Π΅Π°Π»ΠΈΠ·Π°Ρ†ΠΈΠΈ
    • 3. 1. ΠšΡ€Π°Ρ‚ΠΊΠ°Ρ характСристика ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠΉ срСды
      • 3. 1. 1. ОписаниС ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠΉ срСды
      • 3. 1. 2. Π’Ρ‹Π±Ρ€Π°Π½Π½Ρ‹Π΅ срСдства Ρ€Π΅Π°Π»ΠΈΠ·Π°Ρ†ΠΈΠΈ
    • 3. 2. Π Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° структуры Π‘Π”
    • 3. 3. ОписаниС ΠΈ ΠΎΠ±ΠΎΡΠ½ΠΎΠ²Π°Π½ΠΈΠ΅ использования всСх Ρ‚Π°Π±Π»ΠΈΡ† (ΠΈ ΠΈΡ… ΡΡ‚Ρ€ΡƒΠΊ-Ρ‚ΡƒΡ€),
    • 3. 4. Π Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° Ρ„ΠΎΡ€ΠΌ ΠΎΡ‚Ρ‡Π΅Ρ‚Π½ΠΎΠΉ Π΄ΠΎΠΊΡƒΠΌΠ΅Π½Ρ‚Π°Ρ†ΠΈΠΈ
    • 3. 5. Π Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»ΡŒΡΠΊΠΎΠ³ΠΎ интСрфСйса
    • 3. 6. Π’Ρ‹Π±ΠΎΡ€ ΠΌΠ΅Ρ‚ΠΎΠ΄ΠΎΠ² ΠΎΠ±ΠΌΠ΅Π½Π° Π΄Π°Π½Π½Ρ‹ΠΌΠΈ4. ΠžΠ±Π΅ΡΠΏΠ΅Ρ‡Π΅Π½ΠΈΠ΅ надСТности ΠΎΠ±Ρ€Π°Π±ΠΎΡ‚ΠΊΠΈ Π΄Π°Π½Π½Ρ‹Ρ… Π² ΡΠΈΡΡ‚Π΅ΠΌΠ΅
    • 4. 1. ΠœΠ΅Ρ‚ΠΎΠ΄Ρ‹ ΠΏΠΎΠ²Ρ‹ΡˆΠ΅Π½ΠΈΡ надСТности ΠΎΠ±Ρ€Π°Π±ΠΎΡ‚ΠΊΠΈ Π΄Π°Π½Π½Ρ‹Ρ…
    • 4. 2. ΠžΠ±Π΅ΡΠΏΠ΅Ρ‡Π΅Π½ΠΈΠ΅ надСТности ΠΎΠ±Ρ€Π°Π±ΠΎΡ‚ΠΊΠΈ Π΄Π°Π½Π½Ρ‹Ρ… Π² ΡΡ€Π΅Π΄Π΅ Delphi 7 ΠΈ MS SQL
    • 4. 3. ΠžΡΠ½ΠΎΠ²Π½Ρ‹Π΅ Π·Π°Π΄Π°Ρ‡ΠΈ, Ρ†Π΅Π»ΠΈ ΠΈ ΠΌΠ΅Ρ‚ΠΎΠ΄Ρ‹ процСссов Π²Π΅Ρ€ΠΈΡ„ΠΈΠΊΠ°Ρ†ΠΈΠΈ ΠΈ Π²Π°Π»ΠΈΠ΄Π°Ρ†ΠΈΠΈ.5.Руководство ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»Ρ
    • 5. 1. ПолноС руководство ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»Ρ Π½Π° Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚Π°Π½Π½Ρ‹ΠΉ ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌ-Π½Ρ‹ΠΉ ΠΏΡ€ΠΎΠ΄ΡƒΠΊΡ‚
    • 5. 2. Π‘Ρ‚Ρ€ΡƒΠΊΡ‚ΡƒΡ€Π° Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚Π°Π½Π½ΠΎΠ³ΠΎ ПО
    • 5. 3. Π‘ΠΏΠ΅Ρ†ΠΈΡ„ΠΈΠΊΠ°Ρ†ΠΈΠΈ Π³Π»Π°Π²Π½ΠΎΠ³ΠΎ модуля ΠΏΡ€ΠΎΠ΅ΠΊΡ‚Π° MainClients.pas.6.ЭкономичСскоС обоснованиС
    • 6. 1. Π’Π²Π΅Π΄Π΅Π½ΠΈΠ΅
    • 6. 2. ΠžΡ€Π³Π°Π½ΠΈΠ·Π°Ρ†ΠΈΠΎΠ½Π½Ρ‹ΠΉ ΠΏΠ»Π°Π½ Ρ€Π°Π±ΠΎΡ‚ ΠΏΠΎ Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ΅ систСмы
    • 6. 3. Расчёт сСбСстоимости ΠΏΡ€ΠΎΠ΅ΠΊΡ‚Π°
    • 6. 4. РасчСт ΠΎΡ†Π΅Π½ΠΎΡ‡Π½ΠΎΠΉ стоимости Π°Π²Ρ‚ΠΎΠΌΠ°Ρ‚ΠΈΠ·ΠΈΡ€ΠΎΠ²Π°Π½Π½ΠΎΠΉ систСмы
    • 6. 5. ΠžΡ†Π΅Π½ΠΊΠ° экономичСской эффСктивности
    • 6. 6. Π’Ρ‹Π²ΠΎΠ΄Ρ‹7.ΠžΡ…Ρ€Π°Π½Π° Ρ‚Ρ€ΡƒΠ΄Π°
    • 7. 1. Π’Π΅Ρ…Π½ΠΈΠΊΠ° бСзопасности ΠΏΡ€ΠΈ Ρ€Π°Π±ΠΎΡ‚Π΅ Π·Π° ΠΊΠΎΠΌΠΏΡŒΡŽΡ‚Π΅Ρ€ΠΎΠΌ
    • 7. 2. ΠžΡ…Ρ€Π°Π½Π° ΠΎΠΊΡ€ΡƒΠΆΠ°ΡŽΡ‰Π΅ΠΉ срСды ΠΈ Ρ‚. Π΄
  • Π—Π°ΠΊΠ»ΡŽΡ‡Π΅Π½ΠΈΠ΅
  • ΠŸΡ€ΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΡ

М.: «Π’ΠΈΠ»ΡŒΡΠΌΡ», 2003. — 1128с.

Π§Π΅Ρ€Π½ΠΈΠΊΠΎΠ² А. Поздняков Π’. ΠžΡ‚ Π±ΡƒΡ…Π³Π°Π»Ρ‚Π΅Ρ€ΠΈΠΈ ΠΏΠΎΠ΄ Windows ΠΊ ΠΎΡ‚ΠΊΡ€Ρ‹Ρ‚Ρ‹ΠΌ Unix-систСмам // ΠšΠΎΠΌΠΏΡŒΡŽΡ‚Π΅Ρ€Π½ΠΎΠ΅ ΠΎΠ±ΠΎΠ·Ρ€Π΅Π½ΠΈΠ΅ № 34 (402), 2003. с.22−27. www. ITC-UA.COM

Π¨ΡƒΠΌΠ°ΠΊΠΎΠ² П.Π’., Π€Π°Ρ€ΠΎΠ½ΠΎΠ² Π’. Π’. Delphi 5. Руководство Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚Ρ‡ΠΈΠΊΠ° Π±Π°Π· Π΄Π°Π½Π½Ρ‹Ρ…. — Πœ.: НолидТ, 2000. — 635 с.

ΠŸΡ€ΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΠ΅

Листинг модуля MainClients

unit MainClients;

interface

uses

Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, Menus, DB, ADODB, IniFiles, Grids, DBGrids, DBDirectoryTemplate, addsorce, DateUtils, parampoisk;

type

TMainClientsForm = class (TForm)

ADOConnection1: TADOConnection;

ADOTable1: TADOTable;

MainMenu1: TMainMenu;

N1: TMenuItem;

N2: TMenuItem;

N3: TMenuItem;

N4: TMenuItem;

N5: TMenuItem;

N6: TMenuItem;

N7: TMenuItem;

N8: TMenuItem;

N9: TMenuItem;

N10: TMenuItem;

N11: TMenuItem;

N12: TMenuItem;

N13: TMenuItem;

N14: TMenuItem;

N15: TMenuItem;

N16: TMenuItem;

N17: TMenuItem;

N19: TMenuItem;

DataSource1: TDataSource;

ADOTable2: TADOTable;

ADOTable3: TADOTable;

ADOTable4: TADOTable;

ADOTable5: TADOTable;

ADOTable6: TADOTable;

ADOTable7: TADOTable;

N20: TMenuItem;

N21: TMenuItem;

N22: TMenuItem;

ADOQuery1: TADOQuery;

ADOQuery2: TADOQuery;

procedure N12Click (Sender: TObject);

function IsMDIChildOpen (const AFormName: TForm; const AMDIChildName: string): Boolean;

function IsFormOpen (const FormName: string): Boolean;

procedure N6Click (Sender: TObject);

procedure N7Click (Sender: TObject);

procedure N8Click (Sender: TObject);

procedure N9Click (Sender: TObject);

procedure N10Click (Sender: TObject);

procedure N20Click (Sender: TObject);

procedure N21Click (Sender: TObject);

procedure N22Click (Sender: TObject);

procedure FormCreate (Sender: TObject);

procedure N3Click (Sender: TObject);

procedure DataSource1DataChange (Sender: TObject; Field: TField);

procedure N4Click (Sender: TObject);

procedure N14Click (Sender: TObject);

procedure N15Click (Sender: TObject);

procedure N16Click (Sender: TObject);

procedure N17Click (Sender: TObject);

procedure N11Click (Sender: TObject);

procedure N19Click (Sender: TObject);

private

{ Private declarations }

procedure BuildGridDatabaseDirectoryItem (sCaption:String; ds: TDataSource);

public

{ Public declarations }

end;

var

MainClientsForm: TMainClientsForm;

nastr:tinifile;

DirectoryForm: TDBDirectoryTemplateForm;

prosmForm: Taddform;

mainflag:boolean;

nomer_poisk:word;

idLocation, idAddional, idZapas, idPartiya: integer;

implementation

{$R *.dfm}

function TMainClientsForm. IsMDIChildOpen (const AFormName: TForm; const AMDIChildName: string): Boolean;

var

i: Integer;

begin

Result := False;

for i := Pred (AFormName.MDIChildCount) DownTo 0 do

if (AFormName.MDIChildren[i]. Name = AMDIChildName) then

begin

Result := True;

AFormName.MDIChildren[i]. Free;

// Break;

end;

end;

function TMainClientsForm. IsFormOpen (const FormName: string): Boolean;

var

i: Integer;

begin

Result := False;

for i := Screen. FormCount — 1 DownTo 0 do

if (Screen.Forms[i]. Name = FormName) then

begin

Result := True;

Break;

end;

end;

procedure TMainClientsForm. BuildGridDatabaseDirectoryItem (sCaption:String; ds: TDataSource);

begin

//создаСм Ρ„ΠΎΡ€ΠΌΡƒ

DirectoryForm:=TDBDirectoryTemplateForm.Create (Owner);

DirectoryForm.TableDBGrid.DataSource:=ds;

DirectoryForm.Top:=0;

DirectoryForm.Left:=0;

DirectoryForm.Caption:=sCaption;

end;

procedure TMainClientsForm. N12Click (Sender: TObject);

begin

MainClientsForm.Close;

end;

procedure TMainClientsForm. N6Click (Sender: TObject);

begin

IsMDIChildOpen (MainClientsForm,'DBDirectoryTemplateForm');

mainclientsform.DataSource1.DataSet:=mainclientsform.ADOTable1;

mainclientsform.ADOTable1.Active:=true;

MainClientsForm.BuildGridDatabaseDirectoryItem ('Ρ‚ΠΎΠ²Π°Ρ€Ρ‹', mainclientsform. DataSource1);

DirectoryForm.TableDBGrid.Fields[0]. DisplayLabel:='Π˜Π”.β„– Ρ‚ΠΎΠ²Π°Ρ€';

DirectoryForm.TableDBGrid.Fields[1]. DisplayLabel:='НаимСнованиС';

DirectoryForm.TableDBGrid.Fields[2].DisplayLabel:='ΠΈΠ΄.размСщСния';

DirectoryForm.TableDBGrid.Fields[3].DisplayLabel:='ΠΈΠ΄.Π΄ΠΎΠΏΠΎΠ»Π½. ΠΈΠ½Ρ„ΠΎΡ€ΠΌΠ°Ρ†ΠΈΠΈ';

DirectoryForm.TableDBGrid.Fields[4]. DisplayLabel:='ид. запасов';

DirectoryForm.TableDBGrid.Fields[5]. DisplayLabel:='ΠΈΠ΄. ΠΏΠ°Ρ€Ρ‚ΠΈΠΈ';

end;

procedure TMainClientsForm. N7Click (Sender: TObject);

begin

IsMDIChildOpen (MainClientsForm,'DBDirectoryTemplateForm');

IsMDIChildOpen (MainClientsForm,'addForm');

mainflag:=false;

mainclientsform.DataSource1.DataSet:=mainclientsform.ADOTable2;

mainclientsform.ADOTable2.Active:=true;

MainClientsForm.BuildGridDatabaseDirectoryItem ('Π½Π°ΠΊΠ»Π°Π΄Π½Ρ‹Π΅', mainclientsform. DataSource1);

DirectoryForm.TableDBGrid.Fields[0]. DisplayLabel:='β„– Π½Π°ΠΊΠ»Π°Π΄Π½ΠΎΠΉ';

DirectoryForm.TableDBGrid.Fields[1]. DisplayLabel:='Π΄Π°Ρ‚Π°';

DirectoryForm.TableDBGrid.Fields[2].DisplayLabel:='ΠΈΠ΄. Ρ‚ΠΎΠ²Π°Ρ€Π°';

DirectoryForm.TableDBGrid.Fields[3]. DisplayLabel:='ΠΎΡ‚ΠΊΡƒΠ΄Π°';

DirectoryForm.TableDBGrid.Fields[4].DisplayLabel:='Ρ†Π΅Π»ΡŒ';

DirectoryForm.TableDBGrid.Fields[5].DisplayLabel:='количСство';

DirectoryForm.TableDBGrid.Fields[6].DisplayLabel:='ΡΡ‚ΠΎΠΈΠΌΠΎΡΡ‚ΡŒ';

DirectoryForm.TableDBGrid.Fields[7].DisplayLabel:='Π½ΠΎΠΌΠ΅Ρ€ ΠΏΠ°Ρ€Ρ‚ΠΈΠΈ';

end;

procedure TMainClientsForm. N8Click (Sender: TObject);

begin

IsMDIChildOpen (MainClientsForm,'DBDirectoryTemplateForm');

IsMDIChildOpen (MainClientsForm,'addForm');

mainflag:=false;

mainclientsform.DataSource1.DataSet:=mainclientsform.ADOTable3;

mainclientsform.ADOTable3.Active:=true;

MainClientsForm.BuildGridDatabaseDirectoryItem ('запасы Ρ‚ΠΎΠ²Π°Ρ€Π°', mainclientsform. DataSource1);

DirectoryForm.TableDBGrid.Fields[0]. DisplayLabel:='β„– записи';

DirectoryForm.TableDBGrid.Fields[1]. DisplayLabel:='Π΅Π΄. измСрСния';

DirectoryForm.TableDBGrid.Fields[2]. DisplayLabel:='количСство';

DirectoryForm.TableDBGrid.Fields[3].DisplayLabel:='ΡΡ‚ΠΎΠΈΠΌΠΎΡΡ‚ΡŒ';

DirectoryForm.TableDBGrid.Fields[4].DisplayLabel:='Ρ€Π΅Π·Π΅Ρ€Π². ΠΊΠΎΠ».';

DirectoryForm.TableDBGrid.Fields[5]. DisplayLabel:='ΠΊΡ‚ΠΎ Ρ€Π΅Π·Π΅Ρ€Π².';

DirectoryForm.TableDBGrid.Fields[6]. DisplayLabel:='Π΄Π°Ρ‚Π° Ρ€Π΅Π·Π΅Ρ€Π².';

DirectoryForm.TableDBGrid.Fields[7]. DisplayLabel:='ΠΏΡ€ΠΈΠΌΠ΅Ρ‡Π°Π½ΠΈΠ΅';

end;

procedure TMainClientsForm. N9Click (Sender: TObject);

begin

IsMDIChildOpen (MainClientsForm,'DBDirectoryTemplateForm');

IsMDIChildOpen (MainClientsForm,'addForm');

mainflag:=false;

mainclientsform.DataSource1.DataSet:=mainclientsform.ADOTable4;

mainclientsform.ADOTable4.Active:=true;

MainClientsForm.BuildGridDatabaseDirectoryItem ('Π·Π°ΠΊΠ°Π·Ρ‹ Π½Π° Ρ‚ΠΎΠ²Π°Ρ€', mainclientsform. DataSource1);

DirectoryForm.TableDBGrid.Fields[0]. DisplayLabel:='β„– Π·Π°ΠΊΠ°Π·Π°';

DirectoryForm.TableDBGrid.Fields[1]. DisplayLabel:='Π΄Π°Ρ‚Π°';

DirectoryForm.TableDBGrid.Fields[2].DisplayLabel:='Π·Π°ΠΊΠ°Π·Ρ‡ΠΈΠΊ';

DirectoryForm.TableDBGrid.Fields[3].DisplayLabel:='β„– Ρ‚ΠΎΠ²Π°Ρ€Π°';

DirectoryForm.TableDBGrid.Fields[4]. DisplayLabel:='количСство';

end;

procedure TMainClientsForm. N10Click (Sender: TObject);

begin

IsMDIChildOpen (MainClientsForm,'DBDirectoryTemplateForm');

IsMDIChildOpen (MainClientsForm,'addForm');

mainflag:=false;

mainclientsform.DataSource1.DataSet:=mainclientsform.ADOTable5;

mainclientsform.ADOTable5.Active:=true;

MainClientsForm.BuildGridDatabaseDirectoryItem ('Π Π°Π·ΠΌΠ΅Ρ‰Π΅Π½ΠΈΠ΅ Ρ‚ΠΎΠ²Π°Ρ€ΠΎΠ²', mainclientsform. DataSource1);

DirectoryForm.TableDBGrid.Fields[0]. DisplayLabel:='β„– записи';

DirectoryForm.TableDBGrid.Fields[1]. DisplayLabel:='мСсто Π½Π° ΡΠΊΠ»Π°Π΄Π΅';

DirectoryForm.TableDBGrid.Fields[2]. DisplayLabel:='ΡƒΡ‚ΠΎΡ‡Π½Π΅Π½ΠΈΠ΅ Ρ€Π°Π·ΠΌΠ΅Ρ‰Π΅Π½ΠΈΠ΅';

DirectoryForm.TableDBGrid.Fields[3]. DisplayLabel:='ΠΏΡ€ΠΈΠΌΠ΅Ρ‡Π°Π½ΠΈΠ΅';

end;

procedure TMainClientsForm. N20Click (Sender: TObject);

begin

IsMDIChildOpen (MainClientsForm,'DBDirectoryTemplateForm');

IsMDIChildOpen (MainClientsForm,'addForm');

mainflag:=false;

mainclientsform.DataSource1.DataSet:=mainclientsform.ADOTable6;

mainclientsform.ADOTable6.Active:=true;

MainClientsForm.BuildGridDatabaseDirectoryItem ('Π”ΠΎΠΏΠΎΠ»Π½ΠΈΡ‚Π΅Π»ΡŒΠ½Ρ‹Π΅ свСдСния ΠΎ Ρ‚ΠΎΠ²Π°Ρ€Π°Ρ…', mainclientsform. DataSource1);

DirectoryForm.TableDBGrid.Fields[0]. DisplayLabel:='β„– записи';

DirectoryForm.TableDBGrid.Fields[1]. DisplayLabel:='сСрийный Π½ΠΎΠΌΠ΅Ρ€';

DirectoryForm.TableDBGrid.Fields[2]. DisplayLabel:='срок годности';

end;

procedure TMainClientsForm. N21Click (Sender: TObject);

begin

IsMDIChildOpen (MainClientsForm,'DBDirectoryTemplateForm');

IsMDIChildOpen (MainClientsForm,'addForm');

mainflag:=false;

mainclientsform.DataSource1.DataSet:=mainclientsform.ADOTable7;

mainclientsform.ADOTable7.Active:=true;

MainClientsForm.BuildGridDatabaseDirectoryItem ('БвСдСния ΠΎ ΠΏΠ°Ρ€Ρ‚иях Ρ‚ΠΎΠ²Π°Ρ€ΠΎΠ²', mainclientsform. DataSource1);

DirectoryForm.TableDBGrid.Fields[0]. DisplayLabel:='β„– записи';

DirectoryForm.TableDBGrid.Fields[1]. DisplayLabel:='β„– ΠΏΠ°Ρ€Ρ‚ΠΈΠΈ';

DirectoryForm.TableDBGrid.Fields[2]. DisplayLabel:='количСство';

DirectoryForm.TableDBGrid.Fields[3].DisplayLabel:='ΠΎΡ‚ΠΊΡƒΠ΄Π°';

DirectoryForm.TableDBGrid.Fields[4].DisplayLabel:='Π΄Π°Ρ‚Π°';

DirectoryForm.TableDBGrid.Fields[5].DisplayLabel:='описаниС ΠΎΠΏΠ΅Ρ€Π°Ρ†ΠΈΠΈ';

end;

procedure TMainClientsForm. N22Click (Sender: TObject);

begin

IsMDIChildOpen (MainClientsForm,'addForm');

IsMDIChildOpen (MainClientsForm,'addForm');

mainflag:=false;

MainClientsForm.N6Click (sender);

prosmForm:=Taddform.Create (Owner);

prosmForm.Top:=230;

prosmForm.Left:=0;

prosmForm.Width:=500;

prosmForm.Height:=200;

prosmForm.Caption:='просмотр записСй';

mainflag:=true;

prosmForm.Show;

prosmForm.Button1.Visible:=false;

prosmForm.GroupBox3.Visible:=false;

prosmForm.GroupBox4.Visible:=false;

MainClientsForm.DataSource1.DataSet.last

end;

procedure TMainClientsForm. FormCreate (Sender: TObject);

var NewConnection: Widestring;

begin

NewConnection := PromptDataSource (Handle, MainClientsForm. ADOConnection1.Connectionstring);

MainClientsForm.ADOConnection1.Connectionstring:=NewConnection;

MainClientsForm.ADOConnection1.Connected:=true;

MainClientsForm.ADOTable1.Active:=true;

MainClientsForm.ADOTable2.Active:=true;

MainClientsForm.ADOTable3.Active:=true;

MainClientsForm.ADOTable4.Active:=true;

MainClientsForm.ADOTable5.Active:=true;

MainClientsForm.ADOTable6.Active:=true;

MainClientsForm.ADOTable7.Active:=true;

end;

procedure TMainClientsForm. N3Click (Sender: TObject);

var dobForm: Taddform;

begin

mainflag:=false;

IsMDIChildOpen (MainClientsForm,'addForm');

dobForm:=Taddform.Create (Owner);

dobForm.Top:=240;

dobForm.Left:=3;

dobForm.Caption:='добавлСниС записи';

dobForm.Show;

dobForm.Button1.Visible:=true;

dobForm.GroupBox1.Visible:=false;

dobForm.GroupBox3.Visible:=false;

dobForm.GroupBox4.Visible:=false;

end;

procedure TMainClientsForm. DataSource1DataChange (Sender: TObject;

Field: TField);

var

sql_str, rez: string;

P11:Tparameter;

rezdate:tdatetime;

rezint:integer;

rezfloat:real;

Ayear, amonth, aday, ahour, aminute, asecond, amillisecond: word;

begin

if mainflag then

begin

prosmForm.edit1.text:='';

prosmForm.edit2.text:='';

prosmForm.edit3.text:='';

prosmForm.edit4.text:='';

prosmForm.edit5.text:='';

prosmForm.edit6.text:='1';

prosmForm.edit7.text:='1';

prosmForm.edit9.text:='1';

prosmForm.edit10.text:='1';

prosmForm.edit8.text:='2009';

prosmForm.edit11.text:='2009';

prosmForm.edit12.text:='';

prosmForm.edit13.text:='';

prosmForm.edit14.text:='';

prosmForm.edit15.text:='';

prosmForm.edit16.text:='';

prosmForm.edit17.text:='';

prosmForm.edit18.text:='';

prosmForm.edit19.text:='';

prosmForm.edit20.text:='';

prosmForm.edit21.text:='';

prosmForm.edit22.text:='';

prosmForm.edit23.text:='';

//ΠΈΠ· Ρ‚Π°Π±Π»ΠΈΡ†Ρ‹

prosmForm.Edit1.Text:=MainClientsForm.DataSource1.DataSet.FieldByName ('nameTovar').AsString;

idLoсаtion:=MainClientsForm.DataSource1.DataSet.FieldByName ('idLocation').AsInteger; ;

idAdional:=MainClientsForm.DataSource1.DataSet.FieldByName ('idAddional').AsInteger; ;

idZpas:=MainClientsForm.DataSource1.DataSet.FieldByName ('idZapas').AsInteger;; idPartiya:=MainClientsForm.DataSource1.DataSet.FieldByName ('idPartiya').AsInteger;; // Ρ€Π°Π·ΠΌΠ΅Ρ‰Π΅Π½ΠΈΠ΅

sql_str:='SELECT * from Location where idLocation= :P11';

MainClientsForm.ADOQuery1.Active:=false;

MainClientsForm.ADOQuery1.SQL.Clear;

P11 :=mainclientsform.ADOQuery1.Parameters.AddParameter;

P11.Name:='P11';

p11.DataType := ftinteger;

P11.Value:=idLocation;

P11.Size:=4;

MainClientsForm.ADOQuery1.SQL.Add (sql_str);

MainClientsForm.ADOQuery1.Active:=true;

MainClientsForm.ADOQuery1.ExecSQL;

rez:=MainClientsForm.ADOQuery1.FieldByName ('Location').AsString;

prosmForm.Edit14.Text:=rez;

rez:=MainClientsForm.ADOQuery1.FieldByName ('addional_location').AsString;

prosmForm.Edit15.Text:=rez;

rez:=MainClientsForm.ADOQuery1.FieldByName ('notes').AsString;

prosmForm.Edit16.Text:=rez;

// Π΄ΠΎΠΏΠΎΠ»Π½ΠΈΡ‚Π΅Π»ΡŒΠ½Ρ‹Π΅ свСдСния

sql_str:='SELECT * from Addional where idAddional= :P11';

MainClientsForm.ADOQuery1.Active:=false;

MainClientsForm.ADOQuery1.SQL.Clear;

P11 :=mainclientsform.ADOQuery1.Parameters.AddParameter;

P11.Name:='P11';

p11.DataType := ftinteger;

P11.Value:= idAddional;

P11.Size:=4;

MainClientsForm.ADOQuery1.SQL.Add (sql_str);

MainClientsForm.ADOQuery1.Active:=true;

MainClientsForm.ADOQuery1.ExecSQL;

rez:=MainClientsForm.ADOQuery1.FieldByName ('Ser_num').AsString;

prosmForm.Edit5.Text:=rez;

rezdate:= MainClientsForm. ADOQuery1.FieldByName ('srok_godnost').AsDateTime;

decodedatetime (rezdate, Ayear, amonth, aday, ahour, aminute, asecond, amillisecond);

prosmForm.Edit6.Text:=inttostr (aday);

prosmForm.Edit7.Text:=inttostr (amonth);

prosmForm.Edit8.Text:=inttostr (Ayear);

// запасы

sql_str:='SELECT * from zapas where idzapas= :P11';

MainClientsForm.ADOQuery1.Active:=false;

MainClientsForm.ADOQuery1.SQL.Clear;

P11 :=mainclientsform.ADOQuery1.Parameters.AddParameter;

P11.Name:='P11';

p11.DataType := ftinteger;

P11.Value:= idzapas;

P11.Size:=4;

MainClientsForm.ADOQuery1.SQL.Add (sql_str);

MainClientsForm.ADOQuery1.Active:=true;

MainClientsForm.ADOQuery1.ExecSQL;

rez:=MainClientsForm.ADOQuery1.FieldByName ('Izmerenie').AsString;

prosmForm.ComboBox1.Text:=rez;

rezint:= MainClientsForm. ADOQuery1.FieldByName ('zapas').AsInteger;

prosmForm.Edit2.Text:=inttostr (rezint);

rezfloat:= MainClientsForm. ADOQuery1.FieldByName ('stoimost').AsFloat;

prosmForm.Edit3.Text:=floattostr (rezfloat);

rez:=MainClientsForm.ADOQuery1.FieldByName ('rezerv_name').AsString;

prosmForm.Edit19.Text:=rez;

rez:=MainClientsForm.ADOQuery1.FieldByName ('rezerv_prim').AsString;

prosmForm.Edit23.Text:=rez;

rezint:= MainClientsForm. ADOQuery1.FieldByName ('rezerv_kol').AsInteger;

prosmForm.Edit18.Text:=inttostr (rezint);

rezdate:= MainClientsForm. ADOQuery1.FieldByName ('rezerv_date').AsDateTime;

decodedatetime (rezdate, Ayear, amonth, aday, ahour, aminute, asecond, amillisecond);

aday:=1;

amonth:=1;

Ayear:=0;

if Ayear>2000 then begin

prosmForm.Edit20.Text:=inttostr (aday);

prosmForm.Edit21.Text:=inttostr (amonth);

prosmForm.Edit22.Text:=inttostr (Ayear);

end;

// партия

sql_str:='SELECT * from Partiya where idPartiya= :P11';

MainClientsForm.ADOQuery1.Active:=false;

MainClientsForm.ADOQuery1.SQL.Clear;

P11 :=mainclientsform.ADOQuery1.Parameters.AddParameter;

P11.Name:='P11';

p11.DataType := ftinteger;

P11.Value:= idPartiya;

P11.Size:=4;

MainClientsForm.ADOQuery1.SQL.Add (sql_str);

MainClientsForm.ADOQuery1.Active:=true;

MainClientsForm.ADOQuery1.ExecSQL;

rez:=MainClientsForm.ADOQuery1.FieldByName ('Nom_part').AsString;

prosmForm.Edit4.Text:=rez;

rez:=MainClientsForm.ADOQuery1.FieldByName ('description').AsString;

prosmForm.Edit13.Text:=rez;

rez:=MainClientsForm.ADOQuery1.FieldByName ('otkuda').AsString;

prosmForm.Edit12.Text:=rez;

rezdate:= MainClientsForm. ADOQuery1.FieldByName ('kogda').AsDateTime;

aday:=1;

amonth:=1;

Ayear:=0;

if Ayear>2000 then begin

prosmForm.Edit9.Text:=inttostr (aday);

prosmForm.Edit10.Text:=inttostr (amonth);

prosmForm.Edit11.Text:=inttostr (Ayear);

end;

end;

end;

procedure TMainClientsForm. N4Click (Sender: TObject);

var zakForm: Taddform;

begin

mainflag:=false;

IsMDIChildOpen (MainClientsForm,'zakForm');

IsMDIChildOpen (MainClientsForm,'addForm');

zakForm:=Taddform.Create (Owner);

zakForm.Top:=240;

zakForm.Left:=3;

zakForm.Caption:='созданиС заказа';

zakForm.Show;

zakForm.Button1.Visible:=true;

zakForm.GroupBox1.Visible:=false;

zakForm.GroupBox2.Visible:=false;

zakForm.GroupBox4.Visible:=false;

zakForm.GroupBox3.Left:=2;

zakForm.GroupBox3.Top:=2;

end;

procedure TMainClientsForm. N14Click (Sender: TObject);

var poisk: Tparampoik;

begin

IsMDIChildOpen (MainClientsForm,'DBDirectoryTemplateForm');

IsMDIChildOpen (MainClientsForm,'addform');

IsMDIChildOpen (MainClientsForm,'parampoik');

poisk:=Tparampoik.Create (Owner);

poisk.Left:=530;

poisk.Top:=3;

poisk.Width:=300;

poisk.Caption:='поиск наличия Ρ‚ΠΎΠ²Π°Ρ€Π°';

nomer_poisk:=1;

poisk.Label2.Visible:=false;

poisk.Label3.Visible:=false;

poisk.Label7.Visible:=false;

poisk.Edit2.Visible:=false;

poisk.Edit3.Visible:=false;

poisk.Edit4.Visible:=false;

poisk.Edit5.Visible:=false;

poisk.Edit6.Visible:=false;

poisk.Edit7.Visible:=false;

poisk.UpDown1.Visible:=false;

poisk.UpDown2.Visible:=false;

poisk.UpDown3.Visible:=false;

poisk.UpDown4.Visible:=false;

end;

procedure TMainClientsForm. N15Click (Sender: TObject);

var poisk: Tparampoik;

begin

IsMDIChildOpen (MainClientsForm,'DBDirectoryTemplateForm');

IsMDIChildOpen (MainClientsForm,'addform');

IsMDIChildOpen (MainClientsForm,'parampoik');

poisk:=Tparampoik.Create (Owner);

poisk.Left:=530;

poisk.Top:=3;

poisk.Width:=300;

poisk.Caption:='ΠΏΡ€ΠΎΠ²Π΅Ρ€ΠΊΠ° срока годности';

nomer_poisk:=2;

poisk.Edit1.Visible:=false;

poisk.Label1.Visible:=false;

poisk.Label3.Visible:=false;

poisk.Label2.Visible:=false;

poisk.Edit5.Visible:=false;

poisk.Edit6.Visible:=false;

poisk.Edit7.Visible:=false;

poisk.UpDown3.Visible:=false;

poisk.UpDown4.Visible:=false;

end;

procedure TMainClientsForm. N16Click (Sender: TObject);

var poisk: Tparampoik;

begin

IsMDIChildOpen (MainClientsForm,'DBDirectoryTemplateForm');

IsMDIChildOpen (MainClientsForm,'addform');

IsMDIChildOpen (MainClientsForm,'parampoik');

poisk:=Tparampoik.Create (Owner);

poisk.Left:=530;

poisk.Top:=3;

poisk.Width:=300;

poisk.Caption:='поиск размСщСния Ρ‚ΠΎΠ²Π°Ρ€Π°';

nomer_poisk:=3;

poisk.Label2.Visible:=false;

poisk.Label3.Visible:=false;

poisk.Label7.Visible:=false;

poisk.Edit2.Visible:=false;

poisk.Edit3.Visible:=false;

poisk.Edit4.Visible:=false;

poisk.Edit5.Visible:=false;

poisk.Edit6.Visible:=false;

poisk.Edit7.Visible:=false;

poisk.UpDown1.Visible:=false;

poisk.UpDown2.Visible:=false;

poisk.UpDown3.Visible:=false;

poisk.UpDown4.Visible:=false;

end;

procedure TMainClientsForm. N17Click (Sender: TObject);

var poisk: Tparampoik;

begin

IsMDIChildOpen (MainClientsForm,'DBDirectoryTemplateForm');

IsMDIChildOpen (MainClientsForm,'addform');

IsMDIChildOpen (MainClientsForm,'parampoik');

poisk:=Tparampoik.Create (Owner);

poisk.Left:=530;

poisk.Top:=3;

poisk.Width:=300;

poisk.Caption:='просмотр Ρ…Ρ€ΠΎΠ½ΠΎΠ»ΠΎΠ³ΠΈΠΈ Π½Π°ΠΊΠ»Π°Π΄Π½Ρ‹Ρ…';

nomer_poisk:=4;

poisk.Label1.Visible:=false;

poisk.Edit1.Visible:=false;

poisk.Label7.Caption:='НакладныС Π² ΠΏΠ΅Ρ€ΠΈΠΎΠ΄'

end;

procedure TMainClientsForm. N11Click (Sender: TObject);

var naklForm: Taddform;

begin

mainflag:=false;

IsMDIChildOpen (MainClientsForm,'naklForm');

IsMDIChildOpen (MainClientsForm,'addForm');

naklForm:=Taddform.Create (Owner);

naklForm.Top:=240;

naklForm.Left:=3;

naklForm.Caption:='созданиС накладной';

naklForm.Show;

naklForm.GroupBox1.Visible:=false;

naklForm.GroupBox2.Visible:=false;

naklForm.GroupBox3.Visible:=false;

naklForm.GroupBox4.Left:=2;

naklForm.GroupBox4.Top:=2;

naklForm.GroupBox4.Width:=600;

naklForm.GroupBox4.Height:=250;

end;

procedure TMainClientsForm. N19Click (Sender: TObject);

var poisk: Tparampoik;

begin

IsMDIChildOpen (MainClientsForm,'DBDirectoryTemplateForm');

IsMDIChildOpen (MainClientsForm,'addform');

IsMDIChildOpen (MainClientsForm,'parampoik');

poisk:=Tparampoik.Create (Owner);

poisk.Left:=530;

poisk.Top:=3;

poisk.Width:=300;

poisk.Caption:='ΠΏΡ€ΠΎΠ²ΠΎΠ΄ΠΊΠ° Π½Π°ΠΊΠ»Π°Π΄Π½ΠΎΠΉ';

nomer_poisk:=5;

poisk.Label2.Visible:=false;

poisk.Label3.Visible:=false;

poisk.Label7.Visible:=false;

poisk.Edit2.Visible:=false;

poisk.Edit3.Visible:=false;

poisk.Edit4.Visible:=false;

poisk.Edit5.Visible:=false;

poisk.Edit6.Visible:=false;

poisk.Edit7.Visible:=false;

poisk.UpDown1.Visible:=false;

poisk.UpDown2.Visible:=false;

poisk.UpDown3.Visible:=false;

poisk.UpDown4.Visible:=false;

poisk.Label1.Caption:='Π½ΠΎΠΌΠ΅Ρ€ Π½Π°ΠΊΠ»Π°Π΄Π½ΠΎΠΉ';

poisk.Button1.Caption:='ΠŸΠ ΠžΠ’ΠžΠ”ΠšΠ'

end;

end.

Листинг модуля addsorce

unit addsorce;

interface

uses

Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,

Dialogs, DB, ADODB, Menus, ChildTemplate, Grids, DBGrids,

StdCtrls, Mask, DateUtils, ExtCtrls, ComCtrls, DBCtrls ;

type

TaddForm = class (TForm)

Panel1: TPanel;

GroupBox1: TGroupBox;

Label15: TLabel;

Edit18: TEdit;

Label16: TLabel;

Edit19: TEdit;

Edit20: TEdit;

Edit21: TEdit;

Edit22: TEdit;

Label17: TLabel;

Label18: TLabel;

Edit23: TEdit;

GroupBox2: TGroupBox;

Edit16: TEdit;

Button1: TButton;

DBNavigator1: TDBNavigator;

Edit13: TEdit;

Label10: TLabel;

Label9: TLabel;

Label8: TLabel;

Label7: TLabel;

Label5: TLabel;

Label2: TLabel;

Label1: TLabel;

Edit1: TEdit;

ComboBox1: TComboBox;

Edit5: TEdit;

Edit2: TEdit;

Edit3: TEdit;

Edit17: TEdit;

Label14: TLabel;

Label4: TLabel;

Label3: TLabel;

Label6: TLabel;

Edit8: TEdit;

Edit7: TEdit;

Edit6: TEdit;

Edit9: TEdit;

UpDown4: TUpDown;

UpDown1: TUpDown;

Edit10: TEdit;

UpDown5: TUpDown;

Edit12: TEdit;

UpDown6: TUpDown;

Edit11: TEdit;

Label13: TLabel;

Label12: TLabel;

Label11: TLabel;

Edit14: TEdit;

Edit15: TEdit;

UpDown2: TUpDown;

Edit4: TEdit;

UpDown3: TUpDown;

GroupBox3: TGroupBox;

Label19: TLabel;

Label20: TLabel;

Label21: TLabel;

Edit24: TEdit;

Edit25: TEdit;

Edit26: TEdit;

Edit27: TEdit;

Edit28: TEdit;

Edit29: TEdit;

Label22: TLabel;

Button2: TButton;

GroupBox4: TGroupBox;

Label23: TLabel;

Edit30: TEdit;

Edit31: TEdit;

Edit32: TEdit;

UpDown7: TUpDown;

UpDown8: TUpDown;

Label24: TLabel;

Edit33: TEdit;

Label25: TLabel;

Edit34: TEdit;

Label26: TLabel;

Edit35: TEdit;

Label27: TLabel;

Label28: TLabel;

Edit36: TEdit;

Edit37: TEdit;

Label29: TLabel;

Edit38: TEdit;

Label30: TLabel;

Edit39: TEdit;

Label31: TLabel;

Edit40: TEdit;

Button3: TButton;

procedure FormClose (Sender: TObject; var Action: TCloseAction);

procedure Button1Click (Sender: TObject);

procedure Button2Click (Sender: TObject);

procedure Button3Click (Sender: TObject);

private

{ Private declarations }

public

{ Public declarations }

end;

var

addForm: TaddForm;

naim:string;

ed_izm:string;

kolvo:integer;

cena:real;

nomerpartiya:string;

sernum:string;

srok_godnost:tdate;

data_postavka:tdate;

postavchik:string;

description:string;

location:string;

location_part:string;

primech:string;

Ayear, amonth, aday: word;

razmer_part, kol: integer;

id_part, idaddional, idlocation, idzapas: integer;

idtov:integer;

implementation

uses MainClients;

{$R *.dfm}

procedure TaddForm. FormClose (Sender: TObject; var Action: TCloseAction);

begin

Action:=caFree;

end;

procedure TaddForm. Button1Click (Sender: TObject);

begin

naim:=Edit1.Text;

ed_izm:=ComboBox1.Text;

kolvo:=strtoint (Edit2.Text);

cena:=strtofloat (Edit3.Text);

nomerpartiya:=Edit4.Text;

sernum:=Edit5.Text;

postavchik:=Edit12.Text;

description:=Edit13.Text;

location:=Edit14.Text;

location_part:=Edit15.Text;

primech:=Edit16.Text;

Ayear:=strtoint (Edit8.Text);

amonth:= strtoint (Edit7.Text);

aday:= strtoint (Edit6.Text);

srok_godnost:=encodedate (Ayear, amonth, aday);

Ayear:=strtoint (Edit11.Text);

amonth:= strtoint (Edit10.Text);

aday:= strtoint (Edit9.Text);

data_postavka :=encodedate (Ayear, amonth, aday);

razmer_part:=strtoint (Edit17.Text);

if naim<>'' then

begin

MainClientsForm.ADOTable7.Active:=true;

MainClientsForm.ADOTable7.Insert;

MainClientsForm.ADOTable7.FieldByName ('Nom_part').AsString:=nomerpartiya;

MainClientsForm.ADOTable7.FieldByName ('kolichestvo').AsInteger:= razmer_part;

MainClientsForm.ADOTable7.FieldByName ('otkuda').AsString:= postavchik;

MainClientsForm.ADOTable7.FieldByName ('kogda').AsDateTime:=data_postavka;

MainClientsForm.ADOTable7.FieldByName ('description').AsString:=description;

MainClientsForm.ADOTable7.Post;

id_part:=MainClientsForm.ADOTable7.FieldByName ('IdPartiya').AsInteger;

MainClientsForm.ADOTable6.Active:=true;

MainClientsForm.ADOTable6.Insert;

MainClientsForm.ADOTable6.FieldByName ('ser_num').AsString:= sernum;

MainClientsForm.ADOTable6.FieldByName ('srok_godnost').AsDateTime:=srok_godnost;

MainClientsForm.ADOTable6.Post;

idaddional:= MainClientsForm. ADOTable6.FieldByName ('idaddional').AsInteger;

MainClientsForm.ADOTable5.Active:=true;

MainClientsForm.ADOTable5.Insert;

MainClientsForm.ADOTable5.FieldByName ('Location').AsString:= location;

MainClientsForm.ADOTable5.FieldByName ('addional_location').AsString:= location_part;

MainClientsForm.ADOTable5.FieldByName ('notes').AsString:= primech;

MainClientsForm.ADOTable5.Post;

idlocation:= MainClientsForm. ADOTable5.FieldByName ('IdLocation').AsInteger;

MainClientsForm.ADOTable1.Active:=true;

MainClientsForm.ADOTable3.Active:=true;

MainClientsForm.ADOTable3.Insert;

MainClientsForm.ADOTable3.FieldByName ('Izmerenie').AsString :=ed_izm;

MainClientsForm.ADOTable3.FieldByName ('zapas').AsInteger :=kolvo;

MainClientsForm.ADOTable3.FieldByName ('stoimost').AsFloat :=kolvo*cena;

MainClientsForm.ADOTable3.Post;

idzapas:=MainClientsForm.ADOTable3.FieldByName ('idZapas').AsInteger;

MainClientsForm.ADOTable1.Insert;

MainClientsForm.ADOTable1.FieldByName ('nameTovar').AsString:= naim;

MainClientsForm.ADOTable1.FieldByName ('idLocation').AsInteger:=idlocation;

MainClientsForm.ADOTable1.FieldByName ('idAddional').AsInteger:= idaddional;

MainClientsForm.ADOTable1.FieldByName ('idPartiya').AsInteger:= id_part;

MainClientsForm.ADOTable1.FieldByName ('idZapas').AsInteger:= idzapas;

MainClientsForm.ADOTable1.Post;

end;

end;

procedure TaddForm. Button2Click (Sender: TObject);

var tovar, srtkl, name_poisk, sqlwhere, stroka_SQL :string;

p1:tparameter;

begin

tovar:=Edit24.Text;

mainclientsform.DataSource1.DataSet:=mainclientsform.ADOQuery2;

mainclientsform.ADOQuery2.Active:=false;

mainclientsform.ADOQuery2.SQL.Clear;

P1 :=mainclientsform.ADOQuery2.Parameters.AddParameter;

P1.Name:='P1';

p1.DataType := ftstring;

if edit24. Text<>'' then begin

srtkl := edit24. Text;

name_poisk:= 'Tovar.nameTovar'

end;

if srtkl<>'' then

begin

srtkl:='%'+ srtkl+'%';

P1.Value:=srtkl;

P1.Size:=Length (srtkl);

end;

stroka_SQL:='select * from tovar where tovar. nametovar like: P1';

mainclientsform.ADOQuery2.SQL.Add (stroka_SQL);

if stroka_SQL<>'' then begin

mainclientsform.ADOQuery2.Active:=true;

mainclientsform.ADOQuery2.ExecSQL;

end;

kol:= mainclientsform. ADOQuery2.RecordCount;

if kol=0 then showmessage ('Ρ‚Π°ΠΊΠΎΠ³ΠΎ Ρ‚ΠΎΠ²Π°Ρ€Π° Π½Π΅ ΡΡƒΡ‰Π΅ΡΡ‚Π²ΡƒΠ΅Ρ‚')

else

begin

idtov:=mainclientsform.ADOQuery2.FieldByName ('idtovar').AsInteger;

mainclientsform.ADOTable4.Active:=true;

mainclientsform.ADOTable4.Insert;

mainclientsform.ADOTable4.FieldByName ('idTovar').AsInteger:=idtov;

mainclientsform.ADOTable4.FieldByName ('kolichestvo').AsInteger:=strtoint (Edit29.Text);

mainclientsform.ADOTable4.FieldByName ('lico').AsString:=Edit28.Text;

Ayear:=strtoint (Edit27.Text);

amonth:= strtoint (Edit26.Text);

aday:= strtoint (Edit25.Text);

srok_godnost:=encodedate (Ayear, amonth, aday);

mainclientsform.ADOTable4.FieldByName ('kogda').AsDateTime:=srok_godnost;

mainclientsform.ADOTable4.Post;

end;

end;

procedure TaddForm. Button3Click (Sender: TObject);

var tovar, srtkl, name_poisk, sqlwhere, stroka_SQL :string;

p1:tparameter;

begin

tovar:=Edit33.Text;

mainclientsform.DataSource1.DataSet:=mainclientsform.ADOQuery2;

mainclientsform.ADOQuery2.Active:=false;

mainclientsform.ADOQuery2.SQL.Clear;

P1 :=mainclientsform.ADOQuery2.Parameters.AddParameter;

P1.Name:='P1';

p1.DataType := ftstring;

if edit33. Text<>'' then begin

srtkl := edit33. Text;

name_poisk:= 'Tovar.nameTovar'

end;

if srtkl<>'' then

begin

srtkl:='%'+ srtkl+'%';

P1.Value:=srtkl;

P1.Size:=Length (srtkl);

end;

stroka_SQL:='select * from tovar where tovar. nametovar like: P1';

mainclientsform.ADOQuery2.SQL.Add (stroka_SQL);

if stroka_SQL<>'' then begin

mainclientsform.ADOQuery2.Active:=true;

mainclientsform.ADOQuery2.ExecSQL;

end;

kol:= mainclientsform. ADOQuery2.RecordCount;

if kol=0 then showmessage ('Ρ‚Π°ΠΊΠΎΠ³ΠΎ Ρ‚ΠΎΠ²Π°Ρ€Π° Π½Π΅ ΡΡƒΡ‰Π΅ΡΡ‚Π²ΡƒΠ΅Ρ‚')

else

begin

idtov:=mainclientsform.ADOQuery2.FieldByName ('idtovar').AsInteger;

mainclientsform.ADOTable2.Active:=true;

mainclientsform.ADOTable2.Insert;

mainclientsform.ADOTable2.FieldByName ('idTovar').AsInteger:=idtov;

mainclientsform.ADOTable2.FieldByName ('kolichestvo').AsInteger:=strtoint (Edit35.Text);

mainclientsform.ADOTable2.FieldByName ('Lico').AsString:=Edit34.Text;

mainclientsform.ADOTable2.FieldByName ('stoimost').AsFloat:=strtofloat (Edit37.Text);

mainclientsform.ADOTable2.FieldByName ('otkuda').AsString:=Edit36.Text;

mainclientsform.ADOTable2.FieldByName ('kuda').AsString:=Edit38.Text;

mainclientsform.ADOTable2.FieldByName ('idPartiya').AsInteger:= strtoint (Edit39.Text);

mainclientsform.ADOTable2.FieldByName ('IdZakaz').AsInteger:= strtoint (Edit40.Text);

mainclientsform.ADOTable2.FieldByName ('provodka').AsString:='N';

Ayear:=strtoint (Edit32.Text);

amonth:= strtoint (Edit31.Text);

aday:= strtoint (Edit30.Text);

srok_godnost:=encodedate (Ayear, amonth, aday);

mainclientsform.ADOTable2.FieldByName ('vremya').AsDateTime:=srok_godnost;

mainclientsform.ADOTable2.post;

end;

end;

end.

Листинг модуля ChildTemplate

unit ChildTemplate;

interface

uses

Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,

Dialogs, Buttons, Grids, DBGrids, ExtCtrls, Menus, StdCtrls;

type

TChildTemplateForm = class (TForm)

DBGrid1: TDBGrid;

Label1: TLabel;

procedure FormClose (Sender: TObject; var Action: TCloseAction);

procedure RzToolbarButton2Click (Sender: TObject);

procedure RzToolbarButton1Click (Sender: TObject);

private

{ Private declarations }

public

{ Public declarations }

end;

implementation

{$R *.dfm}

uses mainclients;

procedure TChildTemplateForm. FormClose (Sender: TObject;

var Action: TCloseAction);

begin

Action:=caFree;

end;

procedure TChildTemplateForm. RzToolbarButton1Click (Sender: TObject);

begin

dbgrid1.DataSource.DataSet.Insert;

end;

procedure TChildTemplateForm. RzToolbarButton2Click (Sender: TObject);

begin

dbgrid1.DataSource.DataSet.Edit;

end;

end.

Листинг модуля DBDirectoryTemplate;

unit DBDirectoryTemplate;

interface

uses

Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,

Dialogs, Grids, DBGrids;

type

TDBDirectoryTemplateForm = class (TForm)

TableDBGrid: TDBGrid;

procedure FormClose (Sender: TObject; var Action: TCloseAction);

private

{ Private declarations }

public

{ Public declarations }

end;

var

DBDirectoryTemplateForm: TDBDirectoryTemplateForm;

implementation

{$R *.dfm}

procedure TDBDirectoryTemplateForm. FormClose (Sender: TObject;

var Action: TCloseAction);

begin

Action:=caFree;

end;

end.

Листинг модуля parampoisk

unit parampoisk;

interface

uses

Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,

Dialogs, DB, ADODB, Menus, ChildTemplate, Grids, DBGrids, addsorce,

StdCtrls, Mask, DateUtils, ExtCtrls, ComCtrls ;

type

Tparampoik = class (TForm)

Button1: TButton;

GroupBox1: TGroupBox;

Label1: TLabel;

Edit1: TEdit;

Label7: TLabel;

Edit2: TEdit;

UpDown1: TUpDown;

Edit3: TEdit;

Edit4: TEdit;

UpDown2: TUpDown;

Edit5: TEdit;

UpDown3: TUpDown;

Edit6: TEdit;

UpDown4: TUpDown;

Edit7: TEdit;

Label2: TLabel;

Label3: TLabel;

procedure FormClose (Sender: TObject; var Action: TCloseAction);

procedure Button1Click (Sender: TObject);

private

{ Private declarations }

public

{ Public declarations }

end;

var

parampoik: Tparampoik;

ChildTemplateForm1: TChildTemplateForm;

ff:string;

flagpoisk:boolean;

p1,p2:tparameter;

all:boolean;

ahour, aminute, asecond, amillisecond: word;

priznak:string;

stroka_SQL, pole, tabl, srtkl, name_poisk, sqlwhere: string;

idnakl, idzapas, i, sravn, kolnakl, kolzapas, rezerv_kol:integer;

implementation

uses mainclients;

{$R *.dfm}

procedure Tparampoik. FormClose (Sender: TObject; var Action: TCloseAction);

begin

Action:=caFree;

end;

procedure Tparampoik. Button1Click (Sender: TObject);

var ChildTemplateForm: TChildTemplateform;

timenach, timekon: tdatetime;

begin

MainClientsForm.IsMDIChildOpen (MainClientsForm,'DBDirectoryTemplateForm');

MainClientsForm.IsMDIChildOpen (MainClientsForm,'addform');

MainClientsForm.IsMDIChildOpen (MainClientsForm,'ChildTemplateForm');

ChildTemplateForm:=TChildTemplateform.Create (Owner);

ChildTemplateForm.Left:=0;

ChildTemplateForm.Top:=3;

mainclientsform.DataSource1.DataSet:=mainclientsform.ADOQuery2;

mainclientsform.ADOQuery2.Active:=false;

mainclientsform.ADOQuery2.SQL.Clear;

if nomer_poisk=1 then begin

P1 :=mainclientsform.ADOQuery2.Parameters.AddParameter;

P1.Name:='P1';

p1.DataType := ftstring;

if edit1. Text<>'' then begin

srtkl := edit1. Text;

name_poisk:= 'Tovar.nameTovar'

end;

if srtkl<>'' then

begin

srtkl:='%'+ srtkl+'%';

P1.Value:=srtkl;

P1.Size:=Length (srtkl);

end;

ChildTemplateForm.Label1.Caption:='Π˜Π½Ρ„ΠΎΡ€ΠΌΠ°Ρ†ΠΈΡ ΠΎ Ρ‚ΠΎΠ²Π°Ρ€Π΅: '+edit1.Text;

sqlwhere:= ' where (zapas.idzapas = (select tovar. idzapas from tovar where tovar. nametovar like: P1))';

stroka_SQL:='select * from zapas'+sqlwhere ;

mainclientsform.ADOQuery2.SQL.Add (stroka_SQL);

if stroka_SQL<>'' then begin

mainclientsform.ADOQuery2.Active:=true;

mainclientsform.ADOQuery2.ExecSQL;

end;

end;

if nomer_poisk=2 then begin

P1 :=mainclientsform.ADOQuery2.Parameters.AddParameter;

P1.Name:='P1';

p1.DataType := ftdatetime;

ayear:= strtoint (Edit4.Text);

amonth:=strtoint (Edit3.Text);

aday:=strtoint (Edit2.Text);

ahour:=0;

aminute:=0;

asecond:=0;

amillisecond:=0;

timenach:=encodedatetime (Ayear, amonth, aday, ahour, aminute, asecond, amillisecond);

if edit1. Text<>'' then begin

srtkl := edit1. Text;

name_poisk:= 'Tovar.nameTovar'

end;

if srtkl<>'' then

begin

srtkl:='%'+ srtkl+'%';

P1.Value := timenach;

end;

sqlwhere:= ' where addional. srok_godnost < :P1';

stroka_SQL:='select tovar. nametovar, addional. srok_godnost from tovar, addional'+ sqlwhere;

mainclientsform.ADOQuery2.SQL.Add (stroka_SQL);

if stroka_SQL<>'' then begin

mainclientsform.ADOQuery2.Active:=true;

mainclientsform.ADOQuery2.ExecSQL;

end;

end;

if nomer_poisk=3 then begin

P1 :=mainclientsform.ADOQuery2.Parameters.AddParameter;

P1.Name:='P1';

p1.DataType := ftstring;

if edit1. Text<>'' then begin

srtkl := edit1. Text;

name_poisk:= 'Tovar.nameTovar'

end;

if srtkl<>'' then

begin

srtkl:='%'+ srtkl+'%';

P1.Value:=srtkl;

P1.Size:=Length (srtkl);

end;

sqlwhere:= ' where (location.idlocation = (select tovar. idlocation from tovar where tovar. nametovar like: P1))';

stroka_SQL:='select * from location '+sqlwhere ;

mainclientsform.ADOQuery2.SQL.Add (stroka_SQL);

if stroka_SQL<>'' then begin

mainclientsform.ADOQuery2.Active:=true;

mainclientsform.ADOQuery2.ExecSQL;

end;

end;

if nomer_poisk=4 then begin

P1 :=mainclientsform.ADOQuery2.Parameters.AddParameter;

P1.Name:='P1';

p1.DataType := ftdatetime;

ayear:= strtoint (Edit4.Text);

amonth:=strtoint (Edit3.Text);

aday:=strtoint (Edit2.Text);

ahour:=0;

aminute:=0;

asecond:=0;

amillisecond:=0;

timenach:=encodedatetime (Ayear, amonth, aday, ahour, aminute, asecond, amillisecond);

ayear:= strtoint (Edit7.Text);

amonth:=strtoint (Edit6.Text);

aday:=strtoint (Edit5.Text);

ahour:=0;

aminute:=0;

asecond:=0;

amillisecond:=0;

timekon:=encodedatetime (Ayear, amonth, aday, ahour, aminute, asecond, amillisecond);

P2 :=mainclientsform.ADOQuery2.Parameters.AddParameter;

P2.Name:='P2';

p2.DataType := ftdatetime;

P1.Value := timenach;

P2.Value := timekon;

sqlwhere:= ' where (Nakladnaya.vremya > :P1) and (nakladnaya.vremya < :P2)';

stroka_SQL:='select * from Nakladnaya'+ sqlwhere;

mainclientsform.ADOQuery2.SQL.Add (stroka_SQL);

if stroka_SQL<>'' then begin

mainclientsform.ADOQuery2.Active:=true;

mainclientsform.ADOQuery2.ExecSQL;

end;

end;

if nomer_poisk=5 then begin

P1 :=mainclientsform.ADOQuery2.Parameters.AddParameter;

P1.Name:='P1';

p1.DataType := ftinteger;

if edit1. Text<>'' then

begin

idnakl:=strtoint (edit1.Text);

P1.Value :=idnakl;

sqlwhere:= ' where (Nakladnaya.idNakladnaya = :P1)';

stroka_SQL:='select * from Nakladnaya'+ sqlwhere;

mainclientsform.ADOQuery2.SQL.Add (stroka_SQL);

if stroka_SQL<>'' then begin

mainclientsform.ADOQuery2.Active:=true;

mainclientsform.ADOQuery2.ExecSQL;

end;

kol:= mainclientsform. ADOQuery2.RecordCount;

if kol=0 then showmessage ('Ρ‚Π°ΠΊΠΎΠ³ΠΎ Ρ‚ΠΎΠ²Π°Ρ€Π° Π½Π΅ ΡΡƒΡ‰Π΅ΡΡ‚Π²ΡƒΠ΅Ρ‚')

else

begin

idtov:=mainclientsform.ADOQuery2.FieldByName ('idtovar').AsInteger;

kolnakl:=(mainclientsform.ADOQuery2.FieldByName ('kolichestvo').AsInteger);

priznak:=mainclientsform.ADOQuery2.FieldByName ('provodka').AsString;

if priznak='N' then begin

mainclientsform.ADOQuery2.Active:=false;

mainclientsform.ADOQuery2.SQL.Clear;

P2 :=mainclientsform.ADOQuery2.Parameters.AddParameter;

P2.Name:='P2';

p2.DataType := ftinteger;

P2.Value :=idtov;

sqlwhere:= ' where (tovar.idtovar = :P2)';

stroka_SQL:='select * from tovar'+ sqlwhere;

mainclientsform.ADOQuery2.SQL.Add (stroka_SQL);

if stroka_SQL<>'' then begin

mainclientsform.ADOQuery2.Active:=true;

mainclientsform.ADOQuery2.ExecSQL;

end;

kol:= mainclientsform. ADOQuery2.RecordCount;

if kol=0 then showmessage ('Ρ‚Π°ΠΊΠΎΠ³ΠΎ Ρ‚ΠΎΠ²Π°Ρ€Π° Π½Π΅ ΡΡƒΡ‰Π΅ΡΡ‚Π²ΡƒΠ΅Ρ‚')

else

begin

idzapas:=mainclientsform.ADOQuery2.FieldByName ('idZapas').AsInteger;

if idzapas=0 then showmessage ('Ρ‚ΠΎΠ²Π°Ρ€Π° Π½Π΅Ρ‚ Π² Π½Π°Π»ΠΈΡ‡ΠΈΠΈ')

else

begin

mainclientsform.ADOTable3.First;

for i:=1 to mainclientsform. ADOTable3.RecordCount do

begin

sravn:=mainclientsform.ADOTable3.FieldByName ('idZapas').AsInteger;

if sravn=idzapas then

begin

kolzapas:=mainclientsform.ADOTable3.FieldByName ('Zapas').AsInteger;

if kolnakl>kolzapas then showmessage ('Ρ‚Π°ΠΊΠΎΠ³ΠΎ количСства Ρ‚ΠΎΠ²Π°Ρ€Π° Π½Π΅Ρ‚ Π² Π½Π°Π»ΠΈΡ‡ΠΈΠΈ')

else

begin

rezerv_kol:=mainclientsform.ADOTable3.FieldByName ('rezerv_kol').AsInteger;

if kolnakl>kolzapasrezerv_kol then

showmessage ('ΠΏΡ€ΠΎΠ²ΠΎΠ΄ΠΊΠ° Π½Π΅ ΠΎΡΡƒΡ‰Π΅ΡΡ‚Π²Π»Π΅Π½Π° — Π’ΠΎΠ²Π°Ρ€ Π·Π°Ρ€Π΅Π·Π΅Ρ€Π²ΠΈΡ€ΠΎΠ²Π°Π½')

else

begin

mainclientsform.ADOTable3.Edit;

mainclientsform.ADOTable3.FieldByName ('Zapas').AsInteger:=kolzapas-kolnakl;

showmessage ('ΠΏΡ€ΠΎΠ²ΠΎΠ΄ΠΊΠ° осущСствлСна Π£Π‘ΠŸΠ•Π¨ΠΠž!');

mainclientsform.ADOTable2.First;

for i:=1 to mainclientsform. ADOTable2.RecordCount do

begin

if idnakl= mainclientsform. ADOTable2.FieldByName ('idNakladnaya').AsInteger

then

begin

mainclientsform.ADOTable2.Edit;

mainclientsform.ADOTable2.FieldByName ('provodka').AsString:='Y';

end;

mainclientsform.ADOTable2.Next;

end;

end;

end;

end;

mainclientsform.ADOTable3.Next;

end;

end;

end;

end

else showmessage ('ΠΏΡ€ΠΎΠ²ΠΎΠ΄ΠΊΠ° Π½Π°ΠΊΠ»Π°Π΄Π½ΠΎΠΉ Π½Π΅ Ρ‚рСбуСтся')

end;

end;

end;

end;

end.

7. Π‘ΠžΠ‘Π’ΠΠ’ БАЗЫ ДАННЫΠ₯

Sklad_data.mdf — Ρ„Π°ΠΉΠ», содСрТащий, всС Ρ‚Π°Π±Π»ΠΈΡ†Ρ‹ Π±Π°Π·Ρ‹ Π΄Π°Π½Π½Ρ‹Ρ…

Sklad_log.ldf — Ρ„Π°ΠΉΠ», содСрТащий, всС Ρ‚Ρ€Π°Π½Π·Π°ΠΊΡ†ΠΈΠΈ ΠΊ Π±Π°Π·Π΅ Π΄Π°Π½Π½Ρ‹Ρ…

8. Π‘ΠžΠ‘Π’ΠΠ’ ΠŸΠ ΠžΠ“Π ΠΠœΠœΠΠžΠ“Πž ΠšΠžΠœΠŸΠ›Π•ΠšΠ‘Π

mainClients Π“Π»Π°Π²Π½Ρ‹ΠΉ ΠΌΠΎΠ΄ΡƒΠ»ΡŒ: запуск, созданиС Π΄ΠΎΡ‡Π΅Ρ€Π½ΠΈΡ… Ρ„ΠΎΡ€ΠΌ, организация взаимодСйствия, ΡƒΠΏΡ€Π°Π²Π»Π΅Π½ΠΈΠ΅ Π²Ρ‹Ρ‡ΠΈΡΠ»ΠΈΡ‚Π΅Π»ΡŒΠ½Ρ‹ΠΌ процСссом Parampoisk Π€ΠΎΡ€ΠΌΠΈΡ€ΠΎΠ²Π°Π½ΠΈΠ΅ ΠΏΠ°Ρ€Π°ΠΌΠ΅Ρ‚Ρ€ΠΎΠ² поиска, организация ΠΏΡ€ΠΎΠ²ΠΎΠ΄ΠΊΠΈ Π½Π°ΠΊΠ»Π°Π΄Π½Ρ‹Ρ… Childetemplate ΠžΡ‚ΠΎΠ±Ρ€Π°ΠΆΠ΅Π½ΠΈΠ΅ Ρ€Π΅Π·ΡƒΠ»ΡŒΡ‚Π°Ρ‚ΠΎΠ² поиска Π² Π±Π°Π·Π΅ Π΄Π°Π½Π½Ρ‹Ρ… DBDDirectoryTemplate ΠŸΡ€ΠΎΡΠΌΠΎΡ‚Ρ€ справочных Ρ‚Π°Π±Π»ΠΈΡ†, организация взаимодСйствия с Π±Π°Π·ΠΎΠΉ Π΄Π°Π½Π½Ρ‹Ρ… addsource Π‘ΠΎΠ·Π΄Π°Π½ΠΈΠ΅ записСй, Π½Π°ΠΊΠ»Π°Π΄Π½Ρ‹Ρ…, Π·Π°ΠΊΠ°Π·ΠΎΠ², ΠΎΡ‚ΠΎΠ±Ρ€Π°ΠΆΠ΅Π½ΠΈΠ΅ содСрТимоС связанных Ρ‚Π°Π±Π»ΠΈΡ† Π‘ΠΊΠ»Π°Π΄ Ρ‚ΠΎΠ²Π°Ρ€ΠΎΠ²

ΠœΠ΅Π½Π΅Π΄ΠΆΠ΅Ρ€

Π—Π°ΠΊΠ°Π·Ρ‡ΠΈΠΊ

(ΠΈΡΠΏΠΎΠ»Π½ΠΈΡ‚Π΅Π»ΡŒ Ρ€Π°Π±ΠΎΡ‚)

ΠŸΠΎΡΡ‚Π°Π²Ρ‰ΠΈΠΊΠΈ

Π‘Π½Π°Π±ΠΆΠ΅Π½ΠΈΠ΅

ΠŸΡ€ΠΎΠ΅ΠΊΡ‚ sklad

Главная Ρ„ΠΎΡ€ΠΌΠ° прилоТСния MainClients

childTemplate.pas

DbdDirectoryTemplate

AddSource.pas

ParamPoisk.pas

Условно постоянныС Π·Π°Ρ‚Ρ€Π°Ρ‚Ρ‹

Π—Π°Ρ‚Ρ€Π°Ρ‚Ρ‹ Π½Π° ΠΏΡ€ΠΎΠΈΠ·Π²ΠΎΠ΄ΡΡ‚Π²ΠΎ

Π’Ρ‹Ρ€ΡƒΡ‡ΠΊΠ° ΠΎΡ‚ Ρ€Π΅Π°Π»ΠΈΠ·Π°Ρ†ΠΈΠΈ

Π‘ΡƒΠΌΠΌΠ°, тыс. Ρ€ΡƒΠ±

ΠžΠ±ΡŠΠ΅ΠΌΡ‹ ΠΏΡ€ΠΎΠ΄Π°ΠΆ, ΡˆΡ‚

ΠŸΠΎΠΊΠ°Π·Π°Ρ‚ΡŒ вСсь тСкст

Бписок Π»ΠΈΡ‚Π΅Ρ€Π°Ρ‚ΡƒΡ€Ρ‹

  1. А.Π―. 100 ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚ΠΎΠ² ΠΎΠ±Ρ‰Π΅Π³ΠΎ назначСния Π±ΠΈΠ±Π»ΠΈΠΎΡ‚Π΅ΠΊΠΈ Delphi 5. — Πœ.: Π‘ΠΈΠ½ΠΎΠΌ, 1999. — 266 с.
  2. ΠΡ€Ρ…Π°Π½Π³Π΅Π»ΡŒΡΠΊΠΈΠΉ А.Π―. Delphi 6. Π‘ΠΏΡ€Π°Π²ΠΎΡ‡Π½ΠΎΠ΅ пособиС. — Πœ.: Π‘ΠΈΠ½ΠΎΠΌ, 2001. — 1024 с.
  3. А.Π―. ΠŸΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠΈΡ€ΠΎΠ²Π°Π½ΠΈΠ΅ Π² Delphi 6. — Πœ.: Π‘ΠΈΠ½ΠΎΠΌ, 2001. — 564 с.
  4. А.Π―. Π―Π·Ρ‹ΠΊ SQL Π² Delphi 5. — Πœ.: Π‘ΠΈΠ½ΠΎΠΌ, 2000. — 205 с.
  5. Π‘Π°Π·Ρ‹ Π΄Π°Π½Π½Ρ‹Ρ…: ΠΌΠΎΠ΄Π΅Π»ΠΈ, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ°, рСализация / ΠšΠ°Ρ€ΠΏΠΎΠ²Π° Π’.- БПб.: Пи-Ρ‚Π΅Ρ€, 2001. -304с.
  6. А.Н. БухгалтСрский ΡƒΡ‡Π΅Ρ‚ Π² ΡƒΡ‡Ρ€Π΅ΠΆΠ΄Π΅Π½ΠΈΡΡ… нСпроизводствСнной сфСры. — Πœ.: Ѐинансы ΠΈ ΡΡ‚атистика, 1995. — 240с.
  7. Π‘ΡƒΡ‡ Π“. ΠžΠ±ΡŠΠ΅ΠΊΡ‚Π½ΠΎ-ΠΎΡ€ΠΈΠ΅Π½Ρ‚ΠΈΡ€ΠΎΠ²Π°Π½Π½ΠΎΠ΅ ΠΏΡ€ΠΎΠ΅ΠΊΡ‚ΠΈΡ€ΠΎΠ²Π°Π½ΠΈΠ΅ с ΠΏΡ€ΠΈΠΌΠ΅Ρ€Π°ΠΌΠΈ ΠΏΡ€ΠΈ-мСнСния. М., 1992. — 654с.
  8. Π’. Π€. Π­ΠΊΠΎΠ½ΠΎΠΌΠΈΠΊΠ° прСдприятия. — Πœ.: Π’ΠΈΡ‚Π°-ΠŸΡ€Π΅ΡΡ, 1998. — 380с.
  9. Π’. Π˜Π½Ρ„ΠΎΡ€ΠΌΠ°Ρ†ΠΈΠΎΠ½Π½Π°Ρ Π±Π΅Π·ΠΎΠΏΠ°ΡΠ½ΠΎΡΡ‚ΡŒ // ΠžΡ‚ΠΊΡ€Ρ‹Ρ‚Ρ‹Π΅ систСмы- 1996. — N 1−4.
  10. Π‘.Π’., Π›ΠΎΠΌΠΎΡ‚ΡŒΠΊΠΎ Π”. Π’. Π‘Π°Π·Ρ‹ Π΄Π°Π½Π½Ρ‹Ρ… .- Π₯.: Π€ΠΎΠ»ΠΈΠΎ, 2002. — 504 с.
  11. Π•.П. ΠœΠ°Ρ€ΠΊΠ΅Ρ‚ΠΈΠ½Π³: стратСгии, ΠΏΠ»Π°Π½Ρ‹, структуры. М., Π”Π΅Π»ΠΎ, 1995. — 450с.
  12. Π•.П. ΠœΠ°Ρ€ΠΊΠ΅Ρ‚ΠΈΠ½Π³ΠΎΠ²Ρ‹Π΅ исслСдования: тСория, мСтодология ΠΈ ΠΏΡ€Π°ΠΊΡ‚ΠΈΠΊΠ°. М., ЀинпрСсс, 1998. — 280с.
  13. Π’.Π­. Π₯ΠΎΠΌΠΎΠ½Π΅Π½ΠΊΠΎ А.Π”. Delphi 5. — Π‘Пб.: — Π‘Π°Π½ΠΊΠΈ-ΠŸΠ΅Ρ‚Π΅Ρ€Π±ΡƒΡ€Π³, 2000. -800с.
  14. Π’.Π­. Π₯ΠΎΠΌΠΎΠ½Π΅Π½ΠΊΠΎ А.Π”. Delphi 6. — Π‘Пб.: — Π‘Π°Π½ΠΊΠΈ-ΠŸΠ΅Ρ‚Π΅Ρ€Π±ΡƒΡ€Π³, 2001. -1145с.
  15. А. ΠΈ Π΄Ρ€. ΠœΠ°Ρ€ΠΊΠ΅Ρ‚ΠΈΠ½Π³. М., Π­ΠΊΠΎΠ½ΠΎΠΌΠΈΠΊΠ°, 1993.
  16. Π’. Π¦. ΠžΡ…Ρ€Π°Π½Π° Ρ‚Ρ€ΡƒΠ΄Π° ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»Π΅ΠΉ ΠΊΠΎΠΌΠΏΡŒΡŽΡ‚Π΅Ρ€ΠΎΠ². — Πš.: «ΠžΡ-Π²Π³Π³Π°», 1999.- 186с.
  17. Π—.Π£. Π‘ΡŽΠ΄ΠΆΠ΅Ρ‚Π½Ρ‹ΠΉ ΡƒΡ‡Π΅Ρ‚ ΠΈ ΠΎΡ‚Ρ‡Π΅Ρ‚Π½ΠΎΡΡ‚ΡŒ. М.: Ѐинансы, 1970.-215с.
  18. А. И., Π’ΠΎΠΉΠ»Π΅Π½ΠΊΠΎ Π’. Π’. ΠœΠ°Ρ€ΠΊΠ΅Ρ‚ΠΈΠ½Π³ΠΎΠ²Ρ‹ΠΉ Π°Π½Π°Π»ΠΈΠ·. М., Π¦Π΅Π½Ρ‚Ρ€ эко-Π½ΠΎΠΌΠΈΠΊΠΈ ΠΈ ΠΌΠ°Ρ€ΠΊΠ΅Ρ‚ΠΈΠ½Π³Π°, 1996.
  19. Конноли Вомас, Π‘Π΅Π³Π³ ΠšΠ°Ρ€ΠΎΠ»ΠΈΠ½. Π‘Π°Π·Ρ‹ Π΄Π°Π½Π½Ρ‹Ρ…. ΠŸΡ€ΠΎΠ΅ΠΊΡ‚ΠΈΡ€ΠΎΠ²Π°Π½ΠΈΠ΅, Ρ€Π΅Π°Π»ΠΈΠ·Π°-ция ΠΈ ΡΠΎΠΏΡ€ΠΎΠ²ΠΎΠΆΠ΄Π΅Π½ΠΈΠ΅. ВСория ΠΈ ΠΏΡ€Π°ΠΊΡ‚ΠΈΠΊΠ°. — Πœ.: Π’ΠΈΠ»ΡŒΡΠΌΡ, 2000. — 1111 с.
  20. ΠšΡƒΠ»ΡŒΡ‚ΠΈΠ½ Н.Π‘. Delphi 6: ΠŸΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠΈΡ€ΠΎΠ²Π°Π½ΠΈΠ΅ Π½Π° OBJECT PASCAL. — Πœ.: Π‘ΠΈΠ½ΠΎΠΌ, 2001. — 526 с.
  21. ΠšΡƒΠ»ΡŒΡ‚ΠΈΠ½ Н.Π‘. Delphi 7: ΠŸΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠΈΡ€ΠΎΠ²Π°Π½ΠΈΠ΅ Π½Π° OBJECT PASCAL. — Πœ.: Π‘ΠΈΠ½ΠΎΠΌ, 2003. — 535 с.
  22. Π―.Π ., ΠšΠ°Ρ‚Ρ‹ΡˆΠ΅Π² П. К., ΠŸΠ΅Ρ€Π΅ΡΠ΅Ρ†ΠΊΠΈΠΉ А. А. Π­ΠΊΠΎΠ½ΠΎΠΌΠ΅Ρ‚Ρ€ΠΈΠΊΠ°. ΠΠ°Ρ‡Π°Π»ΡŒ-Π½Ρ‹ΠΉ курс. М., Π”Π΅Π»ΠΎ, 1997
  23. Маклаков Π‘.Π’. BPwin ΠΈ ERwin. CASE-срСдства Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠΈ ΠΈΠ½Ρ„ΠΎΡ€ΠΌΠ°Ρ†ΠΈ-ΠΎΠ½Π½Ρ‹Ρ… систСм. — Πœ.: Π”ΠΈΠ°Π»ΠΎΠ³-ΠœΠΈΡ„ΠΈ, 2001. — 304 с.
  24. Π’.О. Π‘ΡŽΠ΄ΠΆΠ΅Ρ‚Π½Ρ‹Π΅ ΠΎΡ€Π³Π°Π½ΠΈΠ·Π°Ρ†ΠΈΠΈ: бухгалтСрский ΡƒΡ‡Π΅Ρ‚ ΠΈ Π½Π°Π»ΠΎΠ³ΠΎ-ΠΎΠ±Π»Π°ΠΆΠ΅Π½ΠΈΠ΅. -Π₯Π°Ρ€ΡŒΠΊΠΎΠ²: Π€Π°ΠΊΡ‚ΠΎΡ€, 2001. — 566с.
  25. Π‘. ΠžΠ±Π·ΠΎΡ€ АБУП для ΠΌΠ°Π»ΠΎΠ³ΠΎ бизнСса. Π€ΡƒΠ½ΠΊΡ†ΠΈΠΎΠ½Π°Π»ΡŒΠ½Ρ‹Π΅ особСн-ности // ΠšΠΎΠΌΠΏΡŒΡŽΡ‚Π΅Ρ€Π½ΠΎΠ΅ ΠΎΠ±ΠΎΠ·Ρ€Π΅Π½ΠΈΠ΅ № 17 (286), 2001. с.22−27. // www. ITC-UA.COM
  26. Π ., Π¨Π°Ρ„Π΅Ρ€ Π”. Π¨Π°Ρ„Π΅Ρ€ Π›. Π£ΠΏΡ€Π°Π²Π»Π΅Π½ΠΈΠ΅ ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½Ρ‹ΠΌΠΈ ΠΏΡ€ΠΎΠ΅ΠΊΡ‚Π°-ΠΌΠΈ: достиТСниС ΠΎΠΏΡ‚ΠΈΠΌΠ°Π»ΡŒΠ½ΠΎΠ³ΠΎ качСства ΠΏΡ€ΠΈ ΠΌΠΈΠ½ΠΈΠΌΡƒΠΌΠ΅ Π·Π°Ρ‚Ρ€Π°Ρ‚. М.: «Π’ΠΈΠ»ΡŒΡΠΌΡ», 2003. — 1128с.
  27. А. Поздняков Π’. ΠžΡ‚ Π±ΡƒΡ…Π³Π°Π»Ρ‚Π΅Ρ€ΠΈΠΈ ΠΏΠΎΠ΄ Windows ΠΊ ΠΎΡ‚ΠΊΡ€Ρ‹Ρ‚Ρ‹ΠΌ Unix-систСмам // ΠšΠΎΠΌΠΏΡŒΡŽΡ‚Π΅Ρ€Π½ΠΎΠ΅ ΠΎΠ±ΠΎΠ·Ρ€Π΅Π½ΠΈΠ΅ № 34 (402), 2003. с.22−27. www. ITC-UA.COM
  28. П.Π’., Π€Π°Ρ€ΠΎΠ½ΠΎΠ² Π’.Π’. Delphi 5. Руководство Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚Ρ‡ΠΈΠΊΠ° Π±Π°Π· Π΄Π°Π½Π½Ρ‹Ρ…. — Πœ.: НолидТ, 2000. — 635 с.
Π—Π°ΠΏΠΎΠ»Π½ΠΈΡ‚ΡŒ Ρ„ΠΎΡ€ΠΌΡƒ Ρ‚Π΅ΠΊΡƒΡ‰Π΅ΠΉ Ρ€Π°Π±ΠΎΡ‚ΠΎΠΉ
ΠšΡƒΠΏΠΈΡ‚ΡŒ Π³ΠΎΡ‚ΠΎΠ²ΡƒΡŽ Ρ€Π°Π±ΠΎΡ‚Ρƒ

Π˜Π›Π˜