DataBase.dfm 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936
  1. object DMDataBase: TDMDataBase
  2. OldCreateOrder = False
  3. OnCreate = DataModuleCreate
  4. OnDestroy = DataModuleDestroy
  5. Left = 942
  6. Top = 89
  7. Height = 625
  8. Width = 498
  9. object atBills: TADOTable
  10. CursorType = ctStatic
  11. TableName = 'Bills'
  12. Left = 34
  13. Top = 42
  14. end
  15. object atDrawingQuantity: TADOTable
  16. CursorType = ctStatic
  17. TableName = 'DrawingQuantity'
  18. Left = 172
  19. Top = 39
  20. end
  21. object dspBills: TDataSetProvider
  22. DataSet = atBills
  23. UpdateMode = upWhereKeyOnly
  24. Left = 34
  25. Top = 114
  26. end
  27. object dspDrawingQuantity: TDataSetProvider
  28. DataSet = atDrawingQuantity
  29. UpdateMode = upWhereKeyOnly
  30. Left = 172
  31. Top = 111
  32. end
  33. object cdsBills: TClientDataSet
  34. Aggregates = <>
  35. Params = <>
  36. ProviderName = 'dspBills'
  37. AfterOpen = cdsBillsAfterOpen
  38. AfterInsert = cdsBillsAfterInsert
  39. AfterPost = cdsBillsAfterPost
  40. Left = 33
  41. Top = 193
  42. object cdsBillsID: TIntegerField
  43. FieldName = 'ID'
  44. end
  45. object cdsBillsParentID: TIntegerField
  46. FieldName = 'ParentID'
  47. end
  48. object cdsBillsNextSiblingID: TIntegerField
  49. FieldName = 'NextSiblingID'
  50. end
  51. object cdsBillsCode: TWideStringField
  52. FieldName = 'Code'
  53. OnChange = cdsOrgBillsCodeChange
  54. Size = 50
  55. end
  56. object cdsBillsName: TWideStringField
  57. FieldName = 'Name'
  58. OnChange = cdsOrgBillsCodeChange
  59. Size = 128
  60. end
  61. object cdsBillsUnits: TWideStringField
  62. FieldName = 'Units'
  63. Size = 50
  64. end
  65. object cdsBillsQuantity: TFloatField
  66. FieldName = 'Quantity'
  67. end
  68. object cdsBillsUnitPrice: TBCDField
  69. FieldName = 'UnitPrice'
  70. Precision = 19
  71. end
  72. object cdsBillsTotalPrice: TBCDField
  73. FieldName = 'TotalPrice'
  74. Precision = 19
  75. end
  76. object cdsBillsB_Code: TWideStringField
  77. FieldName = 'B_Code'
  78. OnChange = cdsOrgBillsCodeChange
  79. Size = 255
  80. end
  81. object cdsBillsDesignQuantity: TFloatField
  82. FieldName = 'DesignQuantity'
  83. end
  84. object cdsBillsDesignQuantity2: TFloatField
  85. FieldName = 'DesignQuantity2'
  86. end
  87. object cdsBillsDesignPrice: TFloatField
  88. FieldName = 'DesignPrice'
  89. end
  90. object cdsBillsMemoStr: TMemoField
  91. FieldName = 'MemoStr'
  92. BlobType = ftMemo
  93. end
  94. object cdsBillsIsPreDefine: TBooleanField
  95. FieldName = 'IsPreDefine'
  96. end
  97. object cdsBillsSelected: TBooleanField
  98. FieldName = 'Selected'
  99. end
  100. object cdsBillsCustomValue: TFloatField
  101. FieldName = 'CustomValue'
  102. end
  103. object cdsBillsSerialNo: TIntegerField
  104. FieldName = 'SerialNo'
  105. end
  106. object cdsBillsLostNextSiblingCount: TIntegerField
  107. FieldName = 'LostNextSiblingCount'
  108. OnChange = cdsBillsLostNextSiblingCountChange
  109. end
  110. object cdsBillsLostChildrenCount: TIntegerField
  111. FieldName = 'LostChildrenCount'
  112. OnChange = cdsBillsLostNextSiblingCountChange
  113. end
  114. object cdsBillsLostPreSiblingCount: TIntegerField
  115. FieldName = 'LostPreSiblingCount'
  116. OnChange = cdsBillsLostNextSiblingCountChange
  117. end
  118. object cdsBillsUserModified: TBooleanField
  119. FieldName = 'UserModified'
  120. OnChange = cdsBillsLostNextSiblingCountChange
  121. end
  122. object cdsBillsIsIgNore: TBooleanField
  123. FieldName = 'IsIgNore'
  124. OnChange = cdsBillsLostNextSiblingCountChange
  125. end
  126. object cdsBillsDeductGrade: TFloatField
  127. FieldName = 'DeductGrade'
  128. OnChange = cdsBillsLostNextSiblingCountChange
  129. end
  130. object cdsBillsStandardGrade: TFloatField
  131. FieldName = 'StandardGrade'
  132. OnChange = cdsBillsLostNextSiblingCountChange
  133. end
  134. object cdsBillsIsSuperscale: TBooleanField
  135. FieldName = 'IsSuperscale'
  136. OnChange = cdsBillsLostNextSiblingCountChange
  137. end
  138. object cdsBillsErrorHint: TWideStringField
  139. FieldName = 'ErrorHint'
  140. OnChange = cdsBillsLostNextSiblingCountChange
  141. Size = 255
  142. end
  143. object cdsBillsNameErrorFlag: TIntegerField
  144. FieldName = 'NameErrorFlag'
  145. OnChange = cdsBillsLostNextSiblingCountChange
  146. end
  147. object cdsBillsUnitsErrorFlag: TIntegerField
  148. FieldName = 'UnitsErrorFlag'
  149. OnChange = cdsBillsLostNextSiblingCountChange
  150. end
  151. object cdsBillsChapterID: TIntegerField
  152. FieldName = 'ChapterID'
  153. end
  154. object cdsBillsFullCode: TWideStringField
  155. FieldName = 'FullCode'
  156. Size = 128
  157. end
  158. object cdsBillsRightName: TWideStringField
  159. FieldName = 'RightName'
  160. Size = 255
  161. end
  162. object cdsBillsRightUnits: TWideStringField
  163. FieldName = 'RightUnits'
  164. Size = 255
  165. end
  166. object cdsBillsIsLeaf: TBooleanField
  167. FieldName = 'IsLeaf'
  168. end
  169. object cdsBillsIsCreatePriceAnalysis: TBooleanField
  170. FieldName = 'IsCreatePriceAnalysis'
  171. end
  172. object cdsBillsB_CodeAlpha: TWideStringField
  173. FieldName = 'B_CodeAlpha'
  174. Size = 255
  175. end
  176. object cdsBillsIsAccQuantity: TBooleanField
  177. FieldName = 'IsAccQuantity'
  178. end
  179. object cdsBillsDrawingCode: TWideStringField
  180. FieldName = 'DrawingCode'
  181. Size = 50
  182. end
  183. end
  184. object cdsDrawingQuantity: TClientDataSet
  185. Aggregates = <>
  186. Params = <>
  187. ProviderName = 'dspDrawingQuantity'
  188. AfterOpen = cdsDrawingQuantityAfterOpen
  189. AfterInsert = cdsDrawingQuantityAfterInsert
  190. Left = 172
  191. Top = 190
  192. object cdsDrawingQuantityID: TIntegerField
  193. FieldName = 'ID'
  194. end
  195. object cdsDrawingQuantityName: TWideStringField
  196. FieldName = 'Name'
  197. Size = 200
  198. end
  199. object cdsDrawingQuantityUnits: TWideStringField
  200. FieldName = 'Units'
  201. Size = 50
  202. end
  203. object cdsDrawingQuantityBillsID: TIntegerField
  204. FieldName = 'BillsID'
  205. end
  206. object cdsDrawingQuantityDQuantity1: TFloatField
  207. FieldName = 'DQuantity1'
  208. end
  209. object cdsDrawingQuantityDQuantity2: TFloatField
  210. FieldName = 'DQuantity2'
  211. end
  212. object cdsDrawingQuantityMemoContext: TWideStringField
  213. FieldName = 'MemoContext'
  214. Size = 200
  215. end
  216. object cdsDrawingQuantitySerinalNo: TIntegerField
  217. FieldName = 'SerinalNo'
  218. end
  219. object cdsDrawingQuantityIsGatherQ: TBooleanField
  220. FieldName = 'IsGatherQ'
  221. end
  222. end
  223. object dsBillsDrawing: TDataSource
  224. DataSet = cdsOrgBills
  225. Left = 154
  226. Top = 314
  227. end
  228. object cdsOrgBills: TClientDataSet
  229. Aggregates = <>
  230. Params = <>
  231. AfterInsert = cdsOrgBillsAfterInsert
  232. BeforeEdit = cdsOrgBillsBeforeEdit
  233. BeforePost = cdsOrgBillsBeforePost
  234. AfterPost = cdsOrgBillsAfterPost
  235. AfterScroll = cdsOrgBillsAfterScroll
  236. Left = 42
  237. Top = 312
  238. object cdsOrgBillsChapterID: TIntegerField
  239. FieldName = 'ChapterID'
  240. end
  241. object cdsOrgBillsID: TIntegerField
  242. FieldName = 'ID'
  243. end
  244. object cdsOrgBillsParentID: TIntegerField
  245. FieldName = 'ParentID'
  246. OnChange = cdsOrgBillsCodeChange
  247. end
  248. object cdsOrgBillsIsPreDefine: TBooleanField
  249. FieldName = 'IsPreDefine'
  250. end
  251. object cdsOrgBillsNextSiblingID: TIntegerField
  252. FieldName = 'NextSiblingID'
  253. OnChange = cdsOrgBillsCodeChange
  254. end
  255. object cdsOrgBillsCode: TWideStringField
  256. FieldName = 'Code'
  257. OnChange = cdsOrgBillsCodeChange
  258. Size = 50
  259. end
  260. object cdsOrgBillsName: TWideStringField
  261. FieldName = 'Name'
  262. OnChange = cdsOrgBillsCodeChange
  263. Size = 128
  264. end
  265. object cdsOrgBillsUnits: TWideStringField
  266. FieldName = 'Units'
  267. OnChange = cdsOrgBillsCodeChange
  268. Size = 50
  269. end
  270. object cdsOrgBillsQuantity: TFloatField
  271. FieldName = 'Quantity'
  272. OnChange = cdsOrgBillsCodeChange
  273. OnGetText = cdsOrgBillsQuantityGetText
  274. OnSetText = cdsOrgBillsQuantitySetText
  275. end
  276. object cdsOrgBillsUnitPrice: TBCDField
  277. FieldName = 'UnitPrice'
  278. OnChange = cdsOrgBillsCodeChange
  279. OnGetText = cdsOrgBillsUnitPriceGetText
  280. Precision = 19
  281. end
  282. object cdsOrgBillsTotalPrice: TBCDField
  283. FieldName = 'TotalPrice'
  284. OnChange = cdsOrgBillsCodeChange
  285. OnGetText = cdsOrgBillsUnitPriceGetText
  286. Precision = 19
  287. end
  288. object cdsOrgBillsB_Code: TWideStringField
  289. FieldName = 'B_Code'
  290. OnChange = cdsOrgBillsCodeChange
  291. Size = 255
  292. end
  293. object cdsOrgBillsDesignQuantity: TFloatField
  294. FieldName = 'DesignQuantity'
  295. OnChange = cdsOrgBillsCodeChange
  296. OnGetText = cdsOrgBillsQuantityGetText
  297. OnSetText = cdsOrgBillsQuantitySetText
  298. end
  299. object cdsOrgBillsDesignQuantity2: TFloatField
  300. FieldName = 'DesignQuantity2'
  301. OnChange = cdsOrgBillsCodeChange
  302. OnGetText = cdsOrgBillsQuantityGetText
  303. OnSetText = cdsOrgBillsQuantitySetText
  304. end
  305. object cdsOrgBillsDesignPrice: TFloatField
  306. FieldName = 'DesignPrice'
  307. OnChange = cdsOrgBillsCodeChange
  308. OnGetText = cdsOrgBillsUnitPriceGetText
  309. end
  310. object cdsOrgBillsMemoStr: TMemoField
  311. FieldName = 'MemoStr'
  312. BlobType = ftMemo
  313. end
  314. object cdsOrgBillsSelected: TBooleanField
  315. FieldName = 'Selected'
  316. end
  317. object cdsOrgBillsOwnerName: TWideStringField
  318. FieldName = 'OwnerName'
  319. Size = 50
  320. end
  321. object cdsOrgBillsCustomValue: TFloatField
  322. FieldName = 'CustomValue'
  323. end
  324. object cdsOrgBillsSerialNo: TIntegerField
  325. FieldName = 'SerialNo'
  326. end
  327. object cdsOrgBillsLostNextSiblingCount: TIntegerField
  328. FieldName = 'LostNextSiblingCount'
  329. OnChange = cdsOrgBillsLostNextSiblingCountChange
  330. end
  331. object cdsOrgBillsLostChildrenCount: TIntegerField
  332. FieldName = 'LostChildrenCount'
  333. OnChange = cdsOrgBillsLostNextSiblingCountChange
  334. end
  335. object cdsOrgBillsLostPreSiblingCount: TIntegerField
  336. FieldName = 'LostPreSiblingCount'
  337. OnChange = cdsOrgBillsLostNextSiblingCountChange
  338. end
  339. object cdsOrgBillsUserModified: TBooleanField
  340. FieldName = 'UserModified'
  341. OnChange = cdsOrgBillsLostNextSiblingCountChange
  342. end
  343. object cdsOrgBillsIsIgNore: TBooleanField
  344. FieldName = 'IsIgNore'
  345. OnChange = cdsOrgBillsLostNextSiblingCountChange
  346. end
  347. object cdsOrgBillsDeductGrade: TFloatField
  348. FieldName = 'DeductGrade'
  349. OnChange = cdsOrgBillsLostNextSiblingCountChange
  350. OnGetText = cdsOrgBillsDeductGradeGetText
  351. end
  352. object cdsOrgBillsStandardGrade: TFloatField
  353. FieldName = 'StandardGrade'
  354. OnChange = cdsOrgBillsLostNextSiblingCountChange
  355. end
  356. object cdsOrgBillsIsSuperscale: TBooleanField
  357. FieldName = 'IsSuperscale'
  358. OnChange = cdsOrgBillsLostNextSiblingCountChange
  359. end
  360. object cdsOrgBillsErrorHint: TWideStringField
  361. FieldName = 'ErrorHint'
  362. OnChange = cdsOrgBillsLostNextSiblingCountChange
  363. Size = 255
  364. end
  365. object cdsOrgBillsNameErrorFlag: TIntegerField
  366. FieldName = 'NameErrorFlag'
  367. OnChange = cdsOrgBillsLostNextSiblingCountChange
  368. end
  369. object cdsOrgBillsUnitsErrorFlag: TIntegerField
  370. FieldName = 'UnitsErrorFlag'
  371. OnChange = cdsOrgBillsLostNextSiblingCountChange
  372. end
  373. object cdsOrgBillsRightUnits: TWideStringField
  374. FieldName = 'RightUnits'
  375. Size = 255
  376. end
  377. object cdsOrgBillsIsLeaf: TBooleanField
  378. FieldName = 'IsLeaf'
  379. end
  380. object cdsOrgBillsRightName: TWideStringField
  381. FieldName = 'RightName'
  382. Size = 255
  383. end
  384. object cdsOrgBillsIsCreatePriceAnalysis: TBooleanField
  385. FieldName = 'IsCreatePriceAnalysis'
  386. end
  387. object cdsOrgBillsDrawingCode: TWideStringField
  388. FieldName = 'DrawingCode'
  389. Size = 50
  390. end
  391. object cdsOrgBillsIsAccQuantity: TBooleanField
  392. FieldName = 'IsAccQuantity'
  393. OnChange = cdsOrgBillsIsAccQuantityChange
  394. end
  395. end
  396. object cdsOrgDrawingQuantity: TClientDataSet
  397. Aggregates = <>
  398. MasterSource = dsBillsDrawing
  399. PacketRecords = 0
  400. Params = <>
  401. AfterInsert = cdsOrgDrawingQuantityAfterInsert
  402. BeforeEdit = cdsOrgDrawingQuantityBeforeEdit
  403. BeforePost = cdsOrgDrawingQuantityBeforePost
  404. AfterPost = cdsOrgDrawingQuantityAfterPost
  405. BeforeDelete = cdsOrgDrawingQuantityBeforeDelete
  406. AfterDelete = cdsOrgDrawingQuantityAfterDelete
  407. Left = 284
  408. Top = 312
  409. object cdsOrgDrawingQuantityID: TIntegerField
  410. FieldName = 'ID'
  411. end
  412. object cdsOrgDrawingQuantityName: TWideStringField
  413. FieldName = 'Name'
  414. Size = 200
  415. end
  416. object cdsOrgDrawingQuantityUnits: TWideStringField
  417. FieldName = 'Units'
  418. Size = 50
  419. end
  420. object cdsOrgDrawingQuantityBillsID: TIntegerField
  421. FieldName = 'BillsID'
  422. end
  423. object cdsOrgDrawingQuantityDQuantity1: TFloatField
  424. FieldName = 'DQuantity1'
  425. OnChange = cdsOrgBillsCodeChange
  426. OnGetText = cdsOrgDrawingQuantityDQuantity1GetText
  427. OnSetText = cdsOrgDrawingQuantityDQuantity1SetText
  428. end
  429. object cdsOrgDrawingQuantityMemoContext: TWideStringField
  430. FieldName = 'MemoContext'
  431. Size = 200
  432. end
  433. object cdsOrgDrawingQuantitySerinalNo: TIntegerField
  434. FieldName = 'SerinalNo'
  435. end
  436. object cdsOrgDrawingQuantityIsGatherQ: TBooleanField
  437. FieldName = 'IsGatherQ'
  438. OnChange = cdsOrgBillsCodeChange
  439. end
  440. end
  441. object cdsDQForLocate: TClientDataSet
  442. Aggregates = <>
  443. Params = <>
  444. Left = 282
  445. Top = 190
  446. object cdsDQForLocateID: TIntegerField
  447. FieldName = 'ID'
  448. end
  449. object cdsDQForLocateBillsID: TIntegerField
  450. FieldName = 'BillsID'
  451. end
  452. object cdsDQForLocateName: TWideStringField
  453. FieldName = 'Name'
  454. Size = 200
  455. end
  456. object cdsDQForLocateUnits: TWideStringField
  457. FieldName = 'Units'
  458. Size = 50
  459. end
  460. object cdsDQForLocateMemoContext: TWideStringField
  461. FieldName = 'MemoContext'
  462. Size = 200
  463. end
  464. object cdsDQForLocateDQuantity1: TFloatField
  465. FieldName = 'DQuantity1'
  466. end
  467. object cdsDQForLocateDQuantity2: TFloatField
  468. FieldName = 'DQuantity2'
  469. end
  470. object cdsDQForLocateSerinalNo: TIntegerField
  471. FieldName = 'SerinalNo'
  472. end
  473. object cdsDQForLocateIsGatherQ: TBooleanField
  474. FieldName = 'IsGatherQ'
  475. end
  476. end
  477. object cdsXMJBills: TClientDataSet
  478. Aggregates = <>
  479. Params = <>
  480. AfterScroll = cdsXMJBillsAfterScroll
  481. Left = 40
  482. Top = 386
  483. object cdsXMJBillsQuantity: TFloatField
  484. FieldName = 'Quantity'
  485. OnGetText = cdsXMJBillsQuantityGetText
  486. end
  487. object cdsXMJBillsUnitPrice: TBCDField
  488. FieldName = 'UnitPrice'
  489. OnGetText = cdsXMJBillsQuantityGetText
  490. Precision = 19
  491. end
  492. object cdsXMJBillsID: TIntegerField
  493. FieldName = 'ID'
  494. end
  495. object cdsXMJBillsParentID: TIntegerField
  496. FieldName = 'ParentID'
  497. end
  498. object cdsXMJBillsNextSiblingID: TIntegerField
  499. FieldName = 'NextSiblingID'
  500. end
  501. object cdsXMJBillsCode: TWideStringField
  502. FieldName = 'Code'
  503. Size = 50
  504. end
  505. object cdsXMJBillsName: TWideStringField
  506. FieldName = 'Name'
  507. Size = 128
  508. end
  509. object cdsXMJBillsUnits: TWideStringField
  510. FieldName = 'Units'
  511. Size = 50
  512. end
  513. object cdsXMJBillsB_Code: TWideStringField
  514. FieldName = 'B_Code'
  515. Size = 255
  516. end
  517. object cdsXMJBillsMemoStr: TMemoField
  518. FieldName = 'MemoStr'
  519. BlobType = ftMemo
  520. end
  521. object cdsXMJBillsTotalPrice: TBCDField
  522. FieldName = 'TotalPrice'
  523. OnGetText = cdsXMJBillsQuantityGetText
  524. Precision = 19
  525. end
  526. object cdsXMJBillsDesignQuantity: TFloatField
  527. FieldName = 'DesignQuantity'
  528. OnGetText = cdsXMJBillsQuantityGetText
  529. end
  530. object cdsXMJBillsDesignQuantity2: TFloatField
  531. FieldName = 'DesignQuantity2'
  532. OnGetText = cdsXMJBillsQuantityGetText
  533. end
  534. object cdsXMJBillsDesignPrice: TFloatField
  535. FieldName = 'DesignPrice'
  536. OnGetText = cdsXMJBillsQuantityGetText
  537. end
  538. object cdsXMJBillsSelected: TBooleanField
  539. FieldName = 'Selected'
  540. end
  541. object cdsXMJBillsChapterID: TIntegerField
  542. FieldName = 'ChapterID'
  543. end
  544. object cdsXMJBillsIsPreDefine: TBooleanField
  545. FieldName = 'IsPreDefine'
  546. end
  547. object cdsXMJBillsUnitsErrorFlag: TIntegerField
  548. FieldName = 'UnitsErrorFlag'
  549. OnChange = cdsOrgBillsLostNextSiblingCountChange
  550. end
  551. object cdsXMJBillsNameErrorFlag: TIntegerField
  552. FieldName = 'NameErrorFlag'
  553. OnChange = cdsOrgBillsLostNextSiblingCountChange
  554. end
  555. object cdsXMJBillsErrorHint: TWideStringField
  556. FieldName = 'ErrorHint'
  557. OnChange = cdsOrgBillsLostNextSiblingCountChange
  558. Size = 255
  559. end
  560. object cdsXMJBillsIsSuperscale: TBooleanField
  561. FieldName = 'IsSuperscale'
  562. OnChange = cdsOrgBillsLostNextSiblingCountChange
  563. end
  564. object cdsXMJBillsStandardGrade: TFloatField
  565. FieldName = 'StandardGrade'
  566. OnChange = cdsOrgBillsLostNextSiblingCountChange
  567. end
  568. object cdsXMJBillsDeductGrade: TFloatField
  569. FieldName = 'DeductGrade'
  570. OnChange = cdsOrgBillsLostNextSiblingCountChange
  571. OnGetText = cdsOrgBillsDeductGradeGetText
  572. end
  573. object cdsXMJBillsIsIgNore: TBooleanField
  574. FieldName = 'IsIgNore'
  575. OnChange = cdsOrgBillsLostNextSiblingCountChange
  576. end
  577. object cdsXMJBillsUserModified: TBooleanField
  578. FieldName = 'UserModified'
  579. OnChange = cdsOrgBillsLostNextSiblingCountChange
  580. end
  581. object cdsXMJBillsLostPreSiblingCount: TIntegerField
  582. FieldName = 'LostPreSiblingCount'
  583. OnChange = cdsOrgBillsLostNextSiblingCountChange
  584. end
  585. object cdsXMJBillsLostChildrenCount: TIntegerField
  586. FieldName = 'LostChildrenCount'
  587. OnChange = cdsOrgBillsLostNextSiblingCountChange
  588. end
  589. object cdsXMJBillsLostNextSiblingCount: TIntegerField
  590. FieldName = 'LostNextSiblingCount'
  591. OnChange = cdsOrgBillsLostNextSiblingCountChange
  592. end
  593. object cdsXMJBillsRightName: TWideStringField
  594. FieldName = 'RightName'
  595. Size = 255
  596. end
  597. object cdsXMJBillsRightUnits: TWideStringField
  598. FieldName = 'RightUnits'
  599. Size = 255
  600. end
  601. object blnfldXMJBillsIsAccQuantity: TBooleanField
  602. FieldName = 'IsAccQuantity'
  603. end
  604. end
  605. object cdsBillsLookup: TClientDataSet
  606. Aggregates = <>
  607. Params = <>
  608. ProviderName = 'dspBills'
  609. Left = 33
  610. Top = 256
  611. object cdsBillsLookupID: TIntegerField
  612. FieldName = 'ID'
  613. end
  614. object cdsBillsLookupParentID: TIntegerField
  615. FieldName = 'ParentID'
  616. end
  617. object cdsBillsLookupNextSiblingID: TIntegerField
  618. FieldName = 'NextSiblingID'
  619. end
  620. object cdsBillsLookupCode: TWideStringField
  621. FieldName = 'Code'
  622. Size = 50
  623. end
  624. object cdsBillsLookupName: TWideStringField
  625. FieldName = 'Name'
  626. Size = 128
  627. end
  628. object cdsBillsLookupUnits: TWideStringField
  629. FieldName = 'Units'
  630. Size = 50
  631. end
  632. object cdsBillsLookupQuantity: TFloatField
  633. FieldName = 'Quantity'
  634. end
  635. object cdsBillsLookupUnitPrice: TBCDField
  636. FieldName = 'UnitPrice'
  637. Precision = 19
  638. end
  639. object cdsBillsLookupTotalPrice: TBCDField
  640. FieldName = 'TotalPrice'
  641. Precision = 19
  642. end
  643. object cdsBillsLookupB_Code: TWideStringField
  644. FieldName = 'B_Code'
  645. Size = 255
  646. end
  647. object cdsBillsLookupDesignQuantity: TFloatField
  648. FieldName = 'DesignQuantity'
  649. end
  650. object cdsBillsLookupDesignQuantity2: TFloatField
  651. FieldName = 'DesignQuantity2'
  652. end
  653. object cdsBillsLookupDesignPrice: TFloatField
  654. FieldName = 'DesignPrice'
  655. end
  656. object cdsBillsLookupMemoStr: TMemoField
  657. FieldName = 'MemoStr'
  658. BlobType = ftMemo
  659. end
  660. object cdsBillsLookupIsPreDefine: TBooleanField
  661. FieldName = 'IsPreDefine'
  662. end
  663. object cdsBillsLookupSelected: TBooleanField
  664. FieldName = 'Selected'
  665. end
  666. object cdsBillsLookupCustomValue: TFloatField
  667. FieldName = 'CustomValue'
  668. end
  669. object cdsBillsLookupSerialNo: TIntegerField
  670. FieldName = 'SerialNo'
  671. end
  672. object cdsBillsLookupLostNextSiblingCount: TIntegerField
  673. FieldName = 'LostNextSiblingCount'
  674. end
  675. object cdsBillsLookupLostChildrenCount: TIntegerField
  676. FieldName = 'LostChildrenCount'
  677. end
  678. object cdsBillsLookupLostPreSiblingCount: TIntegerField
  679. FieldName = 'LostPreSiblingCount'
  680. end
  681. object cdsBillsLookupUserModified: TBooleanField
  682. FieldName = 'UserModified'
  683. end
  684. object cdsBillsLookupIsIgNore: TBooleanField
  685. FieldName = 'IsIgNore'
  686. end
  687. object cdsBillsLookupDeductGrade: TFloatField
  688. FieldName = 'DeductGrade'
  689. end
  690. object cdsBillsLookupStandardGrade: TFloatField
  691. FieldName = 'StandardGrade'
  692. end
  693. object cdsBillsLookupIsSuperscale: TBooleanField
  694. FieldName = 'IsSuperscale'
  695. end
  696. object cdsBillsLookupErrorHint: TWideStringField
  697. FieldName = 'ErrorHint'
  698. Size = 255
  699. end
  700. object cdsBillsLookupNameErrorFlag: TIntegerField
  701. FieldName = 'NameErrorFlag'
  702. end
  703. object cdsBillsLookupUnitsErrorFlag: TIntegerField
  704. FieldName = 'UnitsErrorFlag'
  705. end
  706. object cdsBillsLookupDrawingCode: TWideStringField
  707. FieldName = 'DrawingCode'
  708. Size = 50
  709. end
  710. object cdsBillsLookupIsAccQuantity: TBooleanField
  711. FieldName = 'IsAccQuantity'
  712. end
  713. end
  714. object aqStat: TADOQuery
  715. OnCalcFields = aqStatCalcFields
  716. Parameters = <>
  717. SQL.Strings = (
  718. 'Select T3.*, T4.YsCount, T4.QdCount from'
  719. '(Select T1.*, T2.StandardGrade, T2.DeductGrade from'
  720. '(Select ChapterID, Code, Name from Bills where (Len(Code) <= 4) ' +
  721. 'and (Left(Code, 2) = '#39'1-'#39')) as T1,'
  722. '(Select ChapterID, Sum(StandardGrade) as StandardGrade, Sum(Dedu' +
  723. 'ctGrade) as DeductGrade from Bills '
  724. 'where'
  725. 'IsIgnore <> True Group by ChapterID) as T2'
  726. 'where T1.ChapterID = T2.ChapterID) as T3'
  727. 'left join'
  728. '(Select ChapterID, Count(Code) as YsCount, Count(B_Code) as QdCo' +
  729. 'unt from Bills where IsIgnore <> True and'
  730. 'IsSuperscale = True Group by ChapterID) as T4'
  731. 'on T3.ChapterID = T4.ChapterID'
  732. 'order by T3.ChapterID')
  733. Left = 408
  734. Top = 520
  735. object aqStatChapterID: TIntegerField
  736. FieldName = 'ChapterID'
  737. end
  738. object aqStatCode: TWideStringField
  739. FieldName = 'Code'
  740. Size = 50
  741. end
  742. object aqStatName: TWideStringField
  743. FieldName = 'Name'
  744. Size = 128
  745. end
  746. object aqStatStandardGrade: TFloatField
  747. FieldName = 'StandardGrade'
  748. end
  749. object aqStatDeductGrade: TFloatField
  750. FieldName = 'DeductGrade'
  751. end
  752. object aqStatActureMark: TCurrencyField
  753. FieldKind = fkCalculated
  754. FieldName = 'ActureMark'
  755. currency = False
  756. Calculated = True
  757. end
  758. object aqStatTotalMark: TCurrencyField
  759. FieldKind = fkCalculated
  760. FieldName = 'TotalMark'
  761. currency = False
  762. Calculated = True
  763. end
  764. object aqStatResultMark: TCurrencyField
  765. FieldKind = fkCalculated
  766. FieldName = 'ResultMark'
  767. currency = False
  768. Calculated = True
  769. end
  770. object aqStatStdMarkPercent: TBCDField
  771. FieldKind = fkCalculated
  772. FieldName = 'StdMarkPercent'
  773. Calculated = True
  774. end
  775. object aqStatYsCount: TIntegerField
  776. FieldName = 'YsCount'
  777. end
  778. object aqStatQdCount: TIntegerField
  779. FieldName = 'QdCount'
  780. end
  781. end
  782. object cdsStat: TClientDataSet
  783. Aggregates = <>
  784. IndexFieldNames = 'Code'
  785. Params = <>
  786. ProviderName = 'dspStat'
  787. Left = 220
  788. Top = 520
  789. object cdsStatChapterID: TIntegerField
  790. FieldName = 'ChapterID'
  791. end
  792. object cdsStatCode: TWideStringField
  793. FieldName = 'Code'
  794. Size = 50
  795. end
  796. object cdsStatName: TWideStringField
  797. FieldName = 'Name'
  798. Size = 128
  799. end
  800. object cdsStatStandardGrade: TBCDField
  801. FieldName = 'StandardGrade'
  802. end
  803. object cdsStatDeductGrade: TBCDField
  804. FieldName = 'DeductGrade'
  805. end
  806. object cdsStatActureMark: TBCDField
  807. FieldName = 'ActureMark'
  808. end
  809. object cdsStatTotalMark: TBCDField
  810. FieldName = 'TotalMark'
  811. end
  812. object cdsStatResultMark: TBCDField
  813. FieldName = 'ResultMark'
  814. end
  815. object cdsStatStdMarkPercent: TBCDField
  816. FieldName = 'StdMarkPercent'
  817. end
  818. object cdsStatYsCount: TIntegerField
  819. FieldName = 'YsCount'
  820. end
  821. object cdsStatQdCount: TIntegerField
  822. FieldName = 'QdCount'
  823. end
  824. end
  825. object dsStat: TDataSource
  826. DataSet = cdsStat
  827. Left = 314
  828. Top = 520
  829. end
  830. object atStat: TADOTable
  831. TableName = 'GradeStat'
  832. Left = 32
  833. Top = 520
  834. end
  835. object dspStat: TDataSetProvider
  836. DataSet = atStat
  837. UpdateMode = upWhereKeyOnly
  838. Left = 126
  839. Top = 520
  840. end
  841. object acProject: TADOConnection
  842. Left = 288
  843. Top = 56
  844. end
  845. object cdsStatTotal: TClientDataSet
  846. Aggregates = <>
  847. Params = <>
  848. ProviderName = 'dspStatTotal'
  849. Left = 220
  850. Top = 464
  851. object cdsStatTotalID: TIntegerField
  852. FieldName = 'ID'
  853. end
  854. object cdsStatTotalStandardGradeTotal: TBCDField
  855. FieldName = 'StandardGradeTotal'
  856. end
  857. object cdsStatTotalDeductGradeTotal: TBCDField
  858. FieldName = 'DeductGradeTotal'
  859. end
  860. object cdsStatTotalResultMarkTotal: TBCDField
  861. FieldName = 'ResultMarkTotal'
  862. end
  863. object cdsStatTotalAdditionalMark: TBCDField
  864. FieldName = 'AdditionalMark'
  865. end
  866. object cdsStatTotalQualityMark: TBCDField
  867. FieldName = 'QualityMark'
  868. end
  869. object cdsStatTotalYsCountTotal: TIntegerField
  870. FieldName = 'YsCountTotal'
  871. end
  872. object cdsStatTotalQdCountTotal: TIntegerField
  873. FieldName = 'QdCountTotal'
  874. end
  875. end
  876. object atStatTotal: TADOTable
  877. TableName = 'GradeStatTotal'
  878. Left = 32
  879. Top = 464
  880. end
  881. object dspStatTotal: TDataSetProvider
  882. DataSet = atStatTotal
  883. UpdateMode = upWhereKeyOnly
  884. Left = 126
  885. Top = 464
  886. end
  887. object aqStatTotal: TADOQuery
  888. OnCalcFields = aqStatTotalCalcFields
  889. Parameters = <>
  890. SQL.Strings = (
  891. 'Select T1.*, T2.* from'
  892. '(Select 1 as ID, Sum(StandardGrade) as StandardGradeTotal, Sum(D' +
  893. 'eductGrade) as DeductGradeTotal from Bills where IsIgnore <> Tru' +
  894. 'e) as T1,'
  895. '(Select Count(Code) as YsCountTotal, Count(B_Code) as QdCountTot' +
  896. 'al from Bills'
  897. 'where IsIgnore <> True and IsSuperscale = True) as T2')
  898. Left = 312
  899. Top = 464
  900. object aqStatTotalID: TIntegerField
  901. FieldName = 'ID'
  902. end
  903. object aqStatTotalStandardGradeTotal: TBCDField
  904. FieldName = 'StandardGradeTotal'
  905. end
  906. object aqStatTotalDeductGradeTotal: TBCDField
  907. FieldName = 'DeductGradeTotal'
  908. end
  909. object aqStatTotalYsCountTotal: TIntegerField
  910. FieldName = 'YsCountTotal'
  911. end
  912. object aqStatTotalQdCountTotal: TIntegerField
  913. FieldName = 'QdCountTotal'
  914. end
  915. object aqStatTotalResultMarkTotal: TBCDField
  916. FieldKind = fkCalculated
  917. FieldName = 'ResultMarkTotal'
  918. Calculated = True
  919. end
  920. object aqStatTotalAdditionalMark: TBCDField
  921. FieldKind = fkCalculated
  922. FieldName = 'AdditionalMark'
  923. Calculated = True
  924. end
  925. object aqStatTotalQualityMark: TBCDField
  926. FieldKind = fkCalculated
  927. FieldName = 'QualityMark'
  928. Calculated = True
  929. end
  930. end
  931. end