N
nicholas1
Unregistered / Unconfirmed
GUEST, unregistred user!
DataModule1.ADODataSet1.CommandText:='select (select CNNAME fromdo
CTORUSER where WORKID=PATIENTSELF.ASKDR) AS 医生,ASKDR,COUNT(*) as 人数 from PATIENTSELF WHERE CHECKTIME>='''+startday+''' and CHECKTIME < '''+endday+''' GROUP by ASKDR';
//showmessage(DataModule1.ADODataSet1.CommandText);
DataModule1.ADODataSet1.Open;
DataModule1.ADODataSet1.Active:=true;
form3.QRDBText1.DataField:='医生' ;
form3.QRDBText2.DataField:='ASKDR' ;
Form3.QRDBText3.DataField:='人数' ;
Form3.QuickRep1.Preview;
CTORUSER where WORKID=PATIENTSELF.ASKDR) AS 医生,ASKDR,COUNT(*) as 人数 from PATIENTSELF WHERE CHECKTIME>='''+startday+''' and CHECKTIME < '''+endday+''' GROUP by ASKDR';
//showmessage(DataModule1.ADODataSet1.CommandText);
DataModule1.ADODataSet1.Open;
DataModule1.ADODataSet1.Active:=true;
form3.QRDBText1.DataField:='医生' ;
form3.QRDBText2.DataField:='ASKDR' ;
Form3.QRDBText3.DataField:='人数' ;
Form3.QuickRep1.Preview;