ScProjGLJGatherDM.dfm 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. object ScProjGLJGather: TScProjGLJGather
  2. OldCreateOrder = False
  3. OnCreate = DataModuleCreate
  4. OnDestroy = DataModuleDestroy
  5. Left = 532
  6. Top = 338
  7. Height = 358
  8. Width = 415
  9. object cdsGLJGather: TClientDataSet
  10. Active = True
  11. Aggregates = <
  12. item
  13. Active = True
  14. GroupingLevel = 1
  15. IndexName = 'cdsGLJGatherIdxSort'
  16. Visible = False
  17. end
  18. item
  19. Active = True
  20. GroupingLevel = 2
  21. IndexName = 'cdsGLJGatherIdxSort'
  22. Visible = False
  23. end
  24. item
  25. Active = True
  26. GroupingLevel = 3
  27. IndexName = 'cdsGLJGatherIdxSort'
  28. Visible = False
  29. end>
  30. AggregatesActive = True
  31. FieldDefs = <
  32. item
  33. Name = 'Code'
  34. DataType = ftInteger
  35. end
  36. item
  37. Name = 'Name'
  38. DataType = ftString
  39. Size = 50
  40. end
  41. item
  42. Name = 'Unit'
  43. DataType = ftString
  44. Size = 12
  45. end
  46. item
  47. Name = 'ProjectName'
  48. DataType = ftString
  49. Size = 50
  50. end
  51. item
  52. Name = 'Price'
  53. DataType = ftCurrency
  54. end
  55. item
  56. Name = 'Amount'
  57. DataType = ftFloat
  58. end
  59. item
  60. Name = 'SumAmount'
  61. DataType = ftFloat
  62. end
  63. item
  64. Name = 'ProjectID'
  65. DataType = ftInteger
  66. end
  67. item
  68. Name = 'LibID'
  69. DataType = ftInteger
  70. end
  71. item
  72. Name = 'Type'
  73. DataType = ftInteger
  74. end>
  75. IndexDefs = <
  76. item
  77. Name = 'cdsGLJGatherIdxSort'
  78. Fields = 'Type;ProjectID;Code'
  79. end
  80. item
  81. Name = 'cdsGLJGatherIdxCalc'
  82. Fields = 'Code'
  83. end
  84. item
  85. Name = 'cdsGLJGatherBasePrice'
  86. end>
  87. IndexName = 'cdsGLJGatherIdxSort'
  88. Params = <>
  89. StoreDefs = True
  90. Left = 40
  91. Top = 40
  92. Data = {
  93. E90000009619E0BD01000000180000000A000000000003000000E90004436F64
  94. 650400010000000000044E616D65010049000000010005574944544802000200
  95. 320004556E69740100490000000100055749445448020002000C000B50726F6A
  96. 6563744E616D6501004900000001000557494454480200020032000550726963
  97. 65080004000000010007535542545950450200490006004D6F6E65790006416D
  98. 6F756E7408000400000000000953756D416D6F756E7408000400000000000950
  99. 726F6A65637449440400010000000000054C6962494404000100000000000454
  100. 79706504000100000000000000}
  101. object cdsGLJGatherCode: TIntegerField
  102. DisplayWidth = 10
  103. FieldName = 'Code'
  104. end
  105. object cdsGLJGatherName: TStringField
  106. DisplayWidth = 15
  107. FieldName = 'Name'
  108. Size = 50
  109. end
  110. object cdsGLJGatherUnit: TStringField
  111. DisplayWidth = 12
  112. FieldName = 'Unit'
  113. Size = 12
  114. end
  115. object cdsGLJGatherProjectName: TStringField
  116. DisplayWidth = 22
  117. FieldName = 'ProjectName'
  118. Size = 50
  119. end
  120. object cdsGLJGatherPrice: TCurrencyField
  121. FieldName = 'Price'
  122. end
  123. object cdsGLJGatherAmount: TFloatField
  124. DisplayWidth = 10
  125. FieldName = 'Amount'
  126. DisplayFormat = '0.000'
  127. end
  128. object cdsGLJGatherSumAmount: TFloatField
  129. FieldName = 'SumAmount'
  130. end
  131. object cdsGLJGatherProjectID: TIntegerField
  132. DisplayWidth = 10
  133. FieldName = 'ProjectID'
  134. end
  135. object cdsGLJGatherLibID: TIntegerField
  136. DisplayWidth = 10
  137. FieldName = 'LibID'
  138. end
  139. object cdsGLJGatherType: TIntegerField
  140. DisplayWidth = 10
  141. FieldName = 'Type'
  142. end
  143. end
  144. object aqProjGLJ: TADOQuery
  145. Parameters = <>
  146. SQL.Strings = (
  147. 'SELECT Code As ACode, Name As AName, Unit As AUnit,'
  148. ' Amount AS UAmount, Type As AType, BudgetPrice As Price,'
  149. ' TenderAmount AS UTenderAmount, TenderPrice As TenderPrice' +
  150. ' '
  151. 'FROM ProjectGLJ')
  152. Left = 128
  153. Top = 40
  154. object aqProjGLJACode: TIntegerField
  155. FieldName = 'ACode'
  156. end
  157. object aqProjGLJAName: TWideStringField
  158. FieldName = 'AName'
  159. Size = 100
  160. end
  161. object aqProjGLJAUnit: TWideStringField
  162. FieldName = 'AUnit'
  163. Size = 16
  164. end
  165. object aqProjGLJPrice: TCurrencyField
  166. FieldName = 'Price'
  167. end
  168. object aqProjGLJUAmount: TFloatField
  169. FieldName = 'UAmount'
  170. DisplayFormat = '0.000'
  171. end
  172. object aqProjGLJAType: TIntegerField
  173. FieldName = 'AType'
  174. end
  175. object aqProjGLJUTenderAmount: TFloatField
  176. FieldName = 'UTenderAmount'
  177. end
  178. object aqProjGLJTenderPrice: TCurrencyField
  179. FieldName = 'TenderPrice'
  180. end
  181. end
  182. object cdsProjData: TClientDataSet
  183. Active = True
  184. Aggregates = <>
  185. FieldDefs = <
  186. item
  187. Name = 'BuildProjName'
  188. DataType = ftWideString
  189. Size = 50
  190. end
  191. item
  192. Name = 'Author'
  193. DataType = ftWideString
  194. Size = 50
  195. end
  196. item
  197. Name = 'Auditor'
  198. DataType = ftWideString
  199. Size = 50
  200. end>
  201. IndexDefs = <>
  202. Params = <>
  203. StoreDefs = True
  204. Left = 40
  205. Top = 128
  206. Data = {
  207. 730000009619E0BD01000000180000000300000000000300000073000D427569
  208. 6C6450726F6A4E616D6501004A00000001000557494454480200020064000641
  209. 7574686F7201004A00000001000557494454480200020064000741756469746F
  210. 7201004A00000001000557494454480200020064000000}
  211. object cdsProjDataBuildProjName: TWideStringField
  212. FieldName = 'BuildProjName'
  213. Size = 50
  214. end
  215. object cdsProjDataAuthor: TWideStringField
  216. FieldName = 'Author'
  217. Size = 50
  218. end
  219. object cdsProjDataAuditor: TWideStringField
  220. FieldName = 'Auditor'
  221. Size = 50
  222. end
  223. end
  224. object cdsGLJGatherD: TClientDataSet
  225. Aggregates = <>
  226. FieldDefs = <>
  227. IndexDefs = <>
  228. Params = <>
  229. StoreDefs = True
  230. Left = 40
  231. Top = 200
  232. end
  233. object aqMateBuildFee: TADOQuery
  234. Parameters = <>
  235. SQL.Strings = (
  236. 'SELECT SUM(R.MaterialFee) AS MateFee, B.TotalPrice AS BuildFee, ' +
  237. 'P.BudgetProjectName AS FileName,'
  238. ' SUM(R.TenderMaterialFee) AS TenderMateFee, B.TenderTotalP' +
  239. 'rice AS TenderBuildFee '
  240. 'FROM Bills AS B, RationCalcList AS R, ProjData AS P'
  241. 'WHERE B.ID = 1'
  242. 'GROUP BY B.TotalPrice, P.BudgetProjectName,B.TenderTotalPrice')
  243. Left = 136
  244. Top = 200
  245. object aqMateBuildFeeMateFee: TBCDField
  246. FieldName = 'MateFee'
  247. end
  248. object aqMateBuildFeeBuildFee: TFloatField
  249. FieldName = 'BuildFee'
  250. end
  251. object aqMateBuildFeeFileName: TStringField
  252. FieldName = 'FileName'
  253. end
  254. object aqMateBuildFeeTenderMateFee: TBCDField
  255. FieldName = 'TenderMateFee'
  256. end
  257. object aqMateBuildFeeTenderBuildFee: TFloatField
  258. FieldName = 'TenderBuildFee'
  259. end
  260. end
  261. object cdsGLJForReport: TClientDataSet
  262. Aggregates = <>
  263. FieldDefs = <>
  264. IndexDefs = <>
  265. Params = <>
  266. StoreDefs = True
  267. Left = 232
  268. Top = 200
  269. end
  270. end