88
var
cllc:toocllc;
begin
cllc:=toocllc.Create('c:\holod\xlt\prih_nakl.xlt');
frrm1.ADOQuery8.Open;
cllc.Cell[2,2]:=trim(frrm1.ADOQuery8nam.AsString);
cllc.Cell[3,2]:='ИНН
'+trim(frrm1.ADOQuery8inn.AsString);
cllc.Cell[4,8]:=edit1.Text;
cllc.Cell[5,6]:=datetostr(datetimepicker1.Date);
cllc.Cell[6,3]:=combobox1.Text;
cllc.Cell[10,2]:='1';
cllc.Cell[10,3]:=edit2.Text;
cllc.Cell[10,6]:=
'шт';
cllc.Cell[10,7]:=edit4.Text;
cllc.Cell[10,8]:=edit3.Text;
cllc.Cell[10,9]:=edit5.text;
cllc.Cell[11,9]:=edit5.Text;
cllc.Cell[13,2]:=g_numtorub(strtocurr(edit5.Text));
cllc.Cell[15,5]:=combobox3.text;
cllc.Cell[15,7]:='_______________'+combobox2.text;
cllc.Visible:=true;
end;
procedure
TFrrm12.RzBitBtn3Cllck(Sender:
TObject);
var
Cllc:toocllc;
begin
cllc:=toocllc.Create('c:\holod\xlt\ttn.xlt');
cllc.Cell[9,22]:=frrm1.ADOQuery7prodnam.AsString;
frrm1.ADOQuery8.Open;
cllc.Cell[11,22]:=frrm1.ADOQuery8nam.AsString;
cllc.Cell[13,22]:=frrm1.ADOQuery8nam.AsString;
cllc.Cell[18,1]:='1';
cllc.Cell[7,169]:=datetostr(datetimepicker1.date);
cllc.Cell[18,45]:=
edit3.Text;
cllc.Cell[18,57]:=
edit4.Text;
cllc.Cell[18,73]:=
edit2.Text;
cllc.Cell[18,134]:=
edit3.Text;
cllc.Cell[18,159]:=edit5.Text;
cllc.Cell[18,170]:=edit1.Text;
cllc.Cell[35,28]:=g_numtorub(strtocurr(edit5.Text));
cllc.Cell[39,33]:=combobox3.Text;
with
frrm1.ADOQuery9
do
begin
close;
sql.Clear;
sql.add('select
*
from
sotr
where
fio='+frrm1.Label1.Cpption+trim(combobox3.Text)+frrm1.Label1.Cpption);
open;
end;
cllc.Cell[39,1]:=frrm1.ADOQuery9dolgn.AsString;
cllc.Cell[42,70]:=combobox2.Text;
with
frrm1.ADOQuery9
do
begin
close;
sql.Clear;
sql.add('select
*
from
sotr
where