~
This commit is contained in:
parent
4810ce867b
commit
f93b579eef
|
@ -174,7 +174,7 @@ begin
|
||||||
ADOQueryMain.DisableControls;
|
ADOQueryMain.DisableControls;
|
||||||
with ADOQueryMain do
|
with ADOQueryMain do
|
||||||
begin
|
begin
|
||||||
Close;
|
Close;
|
||||||
sql.Clear;
|
sql.Clear;
|
||||||
Filtered := False;
|
Filtered := False;
|
||||||
sql.Add('select convert(char(10),A.CKtime,120) as CRTime,A.MJType as CPType,A.MainId,A.MJTypeother as QtyUnit,C.OrderNo,C.ConNO,D.PRTCodeName,D.PrtColor,D.PrtHX,D.SOrddefstr4,A.CKDH, ');
|
sql.Add('select convert(char(10),A.CKtime,120) as CRTime,A.MJType as CPType,A.MainId,A.MJTypeother as QtyUnit,C.OrderNo,C.ConNO,D.PRTCodeName,D.PrtColor,D.PrtHX,D.SOrddefstr4,A.CKDH, ');
|
||||||
|
@ -194,14 +194,15 @@ begin
|
||||||
if cxTabControl1.TabIndex = 0 then
|
if cxTabControl1.TabIndex = 0 then
|
||||||
begin
|
begin
|
||||||
sql.add('and SHflag=''0'' ');
|
sql.add('and SHflag=''0'' ');
|
||||||
end;
|
end;
|
||||||
if cxTabControl1.TabIndex = 1 then
|
if cxTabControl1.TabIndex = 1 then
|
||||||
begin
|
begin
|
||||||
sql.add('and SHflag=''1'' ');
|
sql.add('and SHflag=''1'' ');
|
||||||
end;
|
end;
|
||||||
|
|
||||||
Sql.add('group by A.CKDH,convert(char(10),A.CKtime,120),A.SubId,A.MJType,A.MainId,A.MJTypeother,C.OrderNo,C.ConNO,D.PRTCodeName,D.PrtColor,D.PrtHX,D.SOrddefstr4,dj,PM,KH,YS');
|
Sql.add('group by A.CKDH,convert(char(10),A.CKtime,120),A.SubId,A.MJType,A.MainId,A.MJTypeother,C.OrderNo,C.ConNO,D.PRTCodeName,D.PrtColor,D.PrtHX,D.SOrddefstr4,dj,PM,KH,YS');
|
||||||
// ShowMessage(SQL.Text);
|
sql.Add('order by A.CKDH,convert(char(10),A.CKtime,120)');
|
||||||
|
// ShowMessage(SQL.Text);
|
||||||
Open;
|
Open;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -416,7 +417,7 @@ begin
|
||||||
begin
|
begin
|
||||||
Close;
|
Close;
|
||||||
sql.Clear;
|
sql.Clear;
|
||||||
sql.add('exec P_Print_CKMDYDL_HZ29 ');
|
sql.add('exec P_Print_CKMDYDL_HZ29 ');
|
||||||
sql.add('@DName=' + quotedstr(Trim(CDS_Main.fieldbyname('CKDH').AsString)));
|
sql.add('@DName=' + quotedstr(Trim(CDS_Main.fieldbyname('CKDH').AsString)));
|
||||||
Open;
|
Open;
|
||||||
end;
|
end;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user