提交 237028d0 编写于 作者: C cz_012273

数据模块fdquery8的SQL中去除酒精消毒液按人员发放(改为按部门发,如一个部门人员多则使用周期缩短,用30/人数)。

上级 ef9f318b
......@@ -111,11 +111,11 @@ object DM1: TDM1
SQL.Strings = (
'SELECT '#24207#21495','#21697#21517','#25968#37327',Max('#20986#24211#26085#26399') as '#26368#36817#21457#25918',(case when julianday('#20986#24211#26085#26399') + '#25968 +
#37327'/if('#21697#21517'='#39#37202#31934#28040#27602#28082#39' or '#21697#21517'='#39#19968#27425#24615#21475#32617#39' ,(select count(*) from '#20154#21592#34920' where ' +
#25152#22312#37096#38376#65288#29677#32452#65289'= '#20986#24211#34920'.'#25152#22312#37096#38376#65288#29677#32452#65289'),1)*'#20351#29992#21608#26399#65288#22825#65289' <= julianday('#39'now'#39') then '#39#24050#21040#26399 +
#39' else '#39#26410#21040#26399#39' end ) as '#21040#26399#25552#31034','#39046#21462#20154','#25152#22312#37096#38376#65288#29677#32452#65289',(select count(*) from '#20154#21592 +
#34920' where '#25152#22312#37096#38376#65288#29677#32452#65289'= '#20986#24211#34920'.'#25152#22312#37096#38376#65288#29677#32452#65289') as '#20154#25968','#20351#29992#21608#26399#65288#22825#65289' FROM '#20986#24211#34920' GROUP BY ' +
#25152#22312#37096#38376#65288#29677#32452#65289','#21697#21517' order by '#25152#22312#37096#38376#65288#29677#32452#65289','#21697#21517)
#37327'/if('#21697#21517'='#39#19968#27425#24615#21475#32617#39' ,(select count(*) from '#20154#21592#34920' where '#25152#22312#37096#38376#65288#29677#32452#65289'= '#20986#24211#34920'.'#25152 +
#22312#37096#38376#65288#29677#32452#65289'),1)*'#20351#29992#21608#26399#65288#22825#65289' <= julianday('#39'now'#39') then '#39#24050#21040#26399#39' else '#39#26410#21040#26399#39' en' +
'd ) as '#21040#26399#25552#31034','#39046#21462#20154','#25152#22312#37096#38376#65288#29677#32452#65289',(select count(*) from '#20154#21592#34920' where '#25152#22312#37096#38376#65288#29677#32452 +
#65289'= '#20986#24211#34920'.'#25152#22312#37096#38376#65288#29677#32452#65289') as '#20154#25968','#20351#29992#21608#26399#65288#22825#65289' FROM '#20986#24211#34920' GROUP BY '#25152#22312#37096#38376#65288#29677#32452#65289','#21697#21517' ord' +
'er by '#25152#22312#37096#38376#65288#29677#32452#65289','#21697#21517)
Left = 152
Top = 296
end
......
......@@ -88,9 +88,9 @@
<VerInfo_IncludeVerInfo>true</VerInfo_IncludeVerInfo>
<VerInfo_Locale>1033</VerInfo_Locale>
<VerInfo_AutoIncVersion>true</VerInfo_AutoIncVersion>
<VerInfo_Keys>CompanyName=;FileDescription=$(MSBuildProjectName);FileVersion=1.0.7.7;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProgramID=com.embarcadero.$(MSBuildProjectName);ProductName=$(MSBuildProjectName);ProductVersion=1.0.0.0;Comments=</VerInfo_Keys>
<VerInfo_Keys>CompanyName=;FileDescription=$(MSBuildProjectName);FileVersion=1.0.7.8;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProgramID=com.embarcadero.$(MSBuildProjectName);ProductName=$(MSBuildProjectName);ProductVersion=1.0.0.0;Comments=</VerInfo_Keys>
<VerInfo_Release>7</VerInfo_Release>
<VerInfo_Build>7</VerInfo_Build>
<VerInfo_Build>8</VerInfo_Build>
</PropertyGroup>
<PropertyGroup Condition="'$(Cfg_2)'!=''">
<DCC_LocalDebugSymbols>false</DCC_LocalDebugSymbols>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册