﻿<Root>
   <!--AddressBook-->
   <SQLString id="s001" statement="Select A.AID,A.ANAME,A.ASEX,A.ABIRTHDAY,A.AMOBILE,A.AMOBILEBACK,A.AHOEMTEL,A.ATYPE,A.AEMAIL,A.AQQ,A.MSN,A.ADDRESS,A.ANOTES,A.COMPANY,A.BUSINESS,A.DEPARTMENT,A.POSITION,A.BANK,A.ACCOUNT,A.CTEL,A.FAX,A.WEBSITE,A.CADDRESS,A.NOTES from TB_AddressBook A where A.USERID=?" keyword="ss" Description="ss"></SQLString>
   <SQLString id="s002" statement="Select A.AID,A.ANAME,A.ASEX,A.ABIRTHDAY,A.AMOBILE,A.AMOBILEBACK,A.AHOEMTEL,A.ATYPE,A.AEMAIL,A.AQQ,A.MSN,A.ADDRESS,A.ANOTES,A.COMPANY,A.BUSINESS,A.DEPARTMENT,A.POSITION,A.BANK,A.ACCOUNT,A.CTEL,A.FAX,A.WEBSITE,A.CADDRESS,A.NOTES from TB_AddressBook A where A.USERID=? and A.Aname=?" keyword="ss" Description="ss"></SQLString>
   <SQLString id="u001" statement="update TB_AddressBook set Aname=?,Asex=?,Abirthday=?,AMOBILE=?,aMOBILEBACK=?,AHOEMTEL=?,ATYPE=?,AEmail=?,AQQ=?,MSN=?,ADDRESS=?,Anotes=?,COMPANY=?,BUSINESS=?,DEPARTMENT=?,POSITION=?,BANK=?,ACCOUNT=?,CTEL=?,FAX=?,WEBSITE=?,CADDRESS=?,Notes=? where Aid=?" keyword="ss" Description="ss"></SQLString>
   <SQLString id="u004" statement="update TB_AddressBook set ATYPE=? where ATYPE=?" keyword="更新类型" Description="更新类型"></SQLString>
   <SQLString id="d001" statement="delete from TB_AddressBook where Aid=?" keyword="ss" Description="ss"></SQLString>
   <SQLString id="i001" statement="insert into TB_AddressBook(AID,ANAME,ASEX,ABIRTHDAY,AMOBILE,AMOBILEBACK,Ahoemtel,ATYPE,AEMAIL,AQQ,MSN,ADDRESS,ANOTES,COMPANY,BUSINESS,DEPARTMENT,POSITION,BANK,ACCOUNT,CTEL,FAX,WEBSITE,CADDRESS,NOTES,USERID) values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)" keyword="ss" Description="ss"></SQLString>
  <SQLString id="c001" statement="select Ftype, count(*) as QTCOUNT,sum(case when FURGENCY='一般' then 1 else 0 end) as General,sum(case when FURGENCY='中度' then 1 else 0 end) as Moderate,sum(case when FURGENCY='严重' then 1 else 0 end) as Serious,sum(case when FSTATE='未处理' then 1 else 0 end) as UNTREATED,sum(case when FSTATE='处理中' then 1 else 0 end) as Treatment,sum(case when FSTATE='已处理' then 1 else 0 end) as Processed,sum(case when FSTATE='关闭' then 1 else 0 end) as Closed from tb_feedback group by Ftype" keyword="数据统计" Description="ss"></SQLString>
  <!--FeedBack-->
   <SQLString id="s003" statement="Select F.FID,F.FSUBJECT,F.FTYPE,F.FNAME,F.FDATE,F.FUPDATE,F.FSDATE,F.FURGENCY,F.FCONTENT,F.FSTATE,F.FDEALNAME,F.FDEALDATE,F.FDEALNOTES,F.FSOLVETIME from TB_FeedBack F" keyword="�����ѯ" Description="��ѯȫ������"></SQLString>
   <SQLString id="s004" statement="Select F.FID,F.FSUBJECT,F.FTYPE,F.FNAME,F.FDATE,F.FUPDATE,F.FSDATE,F.FURGENCY,F.FCONTENT,F.FSTATE,F.FDEALNAME,F.FDEALDATE,F.FDEALNOTES,F.FSOLVETIME from TB_FeedBack F where F.FSUBJECT=?" keyword="�����ѯ" Description="��ѯ��������������"></SQLString>
   <SQLString id="u002" statement="update TB_FeedBack set Fsubject=?,FTYPE=?,Fname=?,Fdate=?,FUPDATE=?,FSDATE=?,FURGENCY=?,Fcontent=?,Fstate=?,Fdealname=?,Fdealdate=?,Fdealnotes=?,Fsolvetime=? where Fid=?" keyword="�������" Description="������������������"></SQLString>
   <SQLString id="u003" statement="update TB_FeedBack set FTYPE=? where FTYPE=?" keyword="更新类型" Description="更新类型"></SQLString>
   <SQLString id="d002" statement="delete from TB_FeedBack where Fid=?" keyword="ss" Description="ss"></SQLString>
   <SQLString id="i002" statement="insert into TB_FeedBack (FID,FSUBJECT,FTYPE,FNAME,FDATE,FUPDATE,FSDATE,Furgency,FCONTENT,FSTATE,FDEALNAME,FDEALDATE)values(?,?,?,?,?,?,?,?,?,?,?,?)" keyword="�����¼���" Description="���һ�������¼"></SQLString>	
	<SQLString id="c002" statement="select  FURGENCY, count(*) as QTCOUNT from tb_feedback group by FURGENCY" keyword="数据统计" Description="ss"></SQLString>
</Root>