mDataRecord.pas 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558
  1. unit mDataRecord;
  2. interface
  3. uses
  4. Classes, sdDB;
  5. type
  6. TBillsRecord = class(TsdDataRecord)
  7. private
  8. // 树结构
  9. FID: TsdValue;
  10. FParentID: TsdValue;
  11. FNextSiblingID: TsdValue;
  12. // 报表专用
  13. FSerialNo: TsdValue;
  14. FIsLeaf: TsdValue;
  15. FLeafXmjID: TsdValue;
  16. FXiangCode: TsdValue;
  17. FMuCode: TsdValue;
  18. FJieCode: TsdValue;
  19. FXimuCode: TsdValue;
  20. FIndexCode: TsdValue;
  21. // 基础数据
  22. FCode: TsdValue;
  23. FB_Code: TsdValue;
  24. FName: TsdValue;
  25. FUnits: TsdValue;
  26. FAlias: TsdValue;
  27. // 单价
  28. FPrice: TsdValue;
  29. FNewPrice: TsdValue;
  30. // 0号台账计算相关
  31. FOrgQuantity: TsdValue;
  32. FOrgTotalPrice: TsdValue;
  33. FMisQuantity: TsdValue;
  34. FMisTotalPrice: TsdValue;
  35. FOthQuantity: TsdValue;
  36. FOthTotalPrice: TsdValue;
  37. FQuantity: TsdValue;
  38. FTotalPrice: TsdValue;
  39. // 累计
  40. FAddDealQuantity: TsdValue;
  41. FAddDealTotalPrice: TsdValue;
  42. FAddQcQuantity: TsdValue;
  43. FAddQcTotalPrice: TsdValue;
  44. FAddQcBGLCode: TsdValue;
  45. FAddQcBGLNum: TsdValue;
  46. FAddPcQuantity: TsdValue;
  47. FAddPcTotalPrice: TsdValue;
  48. FAddPcBGLCode: TsdValue;
  49. FAddPcBGLNum: TsdValue;
  50. FAddGatherQuantity: TsdValue;
  51. FAddGatherTotalPrice: TsdValue;
  52. FLockLevel: TsdValue;
  53. FLockInfo: TsdValue;
  54. FLockNewPrice: TsdValue;
  55. FCreatePhaseID: TsdValue;
  56. FIsMeasureAdd: TsdValue;
  57. FPeg: TsdValue;
  58. FDrawingCode: TsdValue;
  59. FMemoStr: TsdValue;
  60. FDgnQuantity1: TsdValue;
  61. FDgnQuantity2: TsdValue;
  62. FDgnPrice: TsdValue;
  63. FDealDgnQuantity1: TsdValue;
  64. FDealDgnQuantity2: TsdValue;
  65. FCDgnQuantity1: TsdValue;
  66. FCDgnQuantity2: TsdValue;
  67. FAddDgnPrice: TsdValue;
  68. FHasBookMark: TsdValue;
  69. FMarkMemo: TsdValue;
  70. FDealCode: TsdValue;
  71. FDealCompany: TsdValue;
  72. FDealType: TsdValue;
  73. FAddCutTotalPrice: TsdValue;
  74. FAddPayTotalPrice: TsdValue;
  75. FAddCompleteRate: TsdValue;
  76. FPM_AddTotalPrice: TsdValue;
  77. protected
  78. procedure DoAfterAddFields; override;
  79. public
  80. property ID: TsdValue read FID;
  81. property ParentID: TsdValue read FParentID;
  82. property NextSiblingID: TsdValue read FNextSiblingID;
  83. property SerialNo: TsdValue read FSerialNo;
  84. property IsLeaf: TsdValue read FIsLeaf;
  85. property LeafXmjID: TsdValue read FLeafXmjID;
  86. property XiangCode: TsdValue read FXiangCode;
  87. property MuCode: TsdValue read FMuCode;
  88. property JieCode: TsdValue read FJieCode;
  89. property XimuCode: TsdValue read FXimuCode;
  90. property IndexCode: TsdValue read FIndexCode;
  91. property Code: TsdValue read FCode;
  92. property B_Code: TsdValue read FB_Code;
  93. property Name: TsdValue read FName;
  94. property Units: TsdValue read FUnits;
  95. property Alias: TsdValue read FAlias;
  96. property Price: TsdValue read FPrice;
  97. property NewPrice: TsdValue read FNewPrice;
  98. property OrgQuantity: TsdValue read FOrgQuantity;
  99. property OrgTotalPrice: TsdValue read FOrgTotalPrice;
  100. property MisQuantity: TsdValue read FMisQuantity;
  101. property MisTotalPrice: TsdValue read FMisTotalPrice;
  102. property OthQuantity: TsdValue read FOthQuantity;
  103. property OthTotalPrice: TsdValue read FOthTotalPrice;
  104. property Quantity: TsdValue read FQuantity;
  105. property TotalPrice: TsdValue read FTotalPrice;
  106. property AddDealQuantity: TsdValue read FAddDealQuantity;
  107. property AddDealTotalPrice: TsdValue read FAddDealTotalPrice;
  108. property AddQcQuantity: TsdValue read FAddQcQuantity;
  109. property AddQcTotalPrice: TsdValue read FAddQcTotalPrice;
  110. property AddQcBGLCode: TsdValue read FAddQcBGLCode;
  111. property AddQcBGLNum: TsdValue read FAddQcBGLNum;
  112. property AddPcQuantity: TsdValue read FAddPcQuantity;
  113. property AddPcTotalPrice: TsdValue read FAddPcTotalPrice;
  114. property AddPcBGLCode: TsdValue read FAddPcBGLCode;
  115. property AddPcBGLNum: TsdValue read FAddPcBGLNum;
  116. property AddGatherQuantity: TsdValue read FAddGatherQuantity;
  117. property AddGatherTotalPrice: TsdValue read FAddGatherTotalPrice;
  118. property LockLevel: TsdValue read FLockLevel;
  119. property LockInfo: TsdValue read FLockInfo;
  120. property LockNewPrice: TsdValue read FLockNewPrice;
  121. property CreatePhaseID: TsdValue read FCreatePhaseID;
  122. property IsMeasureAdd: TsdValue read FIsMeasureAdd;
  123. property Peg: TsdValue read FPeg;
  124. property DrawingCode: TsdValue read FDrawingCode;
  125. property MemoStr: TsdValue read FMemoStr;
  126. property DgnQuantity1: TsdValue read FDgnQuantity1;
  127. property DgnQuantity2: TsdValue read FDgnQuantity2;
  128. property DgnPrice: TsdValue read FDgnPrice;
  129. property DealDgnQuantity1: TsdValue read FDealDgnQuantity1;
  130. property DealDgnQuantity2: TsdValue read FDealDgnQuantity2;
  131. property CDgnQuantity1: TsdValue read FCDgnQuantity1;
  132. property CDgnQuantity2: TsdValue read FCDgnQuantity2;
  133. property AddDgnPrice: TsdValue read FAddDgnPrice;
  134. property HasBookMark: TsdValue read FHasBookMark;
  135. property MarkMemo: TsdValue read FMarkMemo;
  136. property DealCode: TsdValue read FDealCode;
  137. property DealCompany: TsdValue read FDealCompany;
  138. property DealType: TsdValue read FDealType;
  139. property AddCutTotalPrice: TsdValue read FAddCutTotalPrice;
  140. property AddPayTotalPrice: TsdValue read FAddPayTotalPrice;
  141. property AddCompleteRate: TsdValue read FAddCompleteRate;
  142. property PM_AddTotalPrice: TsdValue read FPM_AddTotalPrice;
  143. end;
  144. TStageRecord = class(TsdDataRecord)
  145. private
  146. FBillsID: TsdValue;
  147. FDealQuantity: TsdValue;
  148. FDealTotalPrice: TsdValue;
  149. FDealFlag: TsdValue;
  150. FDealFormula: TsdValue;
  151. FQcQuantity: TsdValue;
  152. FQcTotalPrice: TsdValue;
  153. FQcFlag: TsdValue;
  154. FQcFormula: TsdValue;
  155. FQcBGLCode: TsdValue;
  156. FQcBGLNum: TsdValue;
  157. FPcQuantity: TsdValue;
  158. FPcTotalPrice: TsdValue;
  159. FPcFlag: TsdValue;
  160. FPcFormula: TsdValue;
  161. FPcBGLCode: TsdValue;
  162. FPcBGLNum: TsdValue;
  163. FGatherQuantity: TsdValue;
  164. FGatherTotalPrice: TsdValue;
  165. FEndDealQuantity: TsdValue;
  166. FEndDealTotalPrice: TsdValue;
  167. FEndQcQuantity: TsdValue;
  168. FEndQcTotalPrice: TsdValue;
  169. FEndQcBGLCode: TsdValue;
  170. FEndQcBGLNum: TsdValue;
  171. FEndPcQuantity: TsdValue;
  172. FEndPcTotalPrice: TsdValue;
  173. FEndPcBGLCode: TsdValue;
  174. FEndPcBGLNum: TsdValue;
  175. FEndGatherQuantity: TsdValue;
  176. FEndGatherTotalPrice: TsdValue;
  177. FPreDealQuantity: TsdValue;
  178. FPreDealTotalPrice: TsdValue;
  179. FPreQcQuantity: TsdValue;
  180. FPreQcTotalPrice: TsdValue;
  181. FPreQcBGLCode: TsdValue;
  182. FPreQcBGLNum: TsdValue;
  183. FPrePcQuantity: TsdValue;
  184. FPrePcTotalPrice: TsdValue;
  185. FPrePcBGLCode: TsdValue;
  186. FPrePcBGLNum: TsdValue;
  187. FPreGatherQuantity: TsdValue;
  188. FPreGatherTotalPrice: TsdValue;
  189. FHasBookMark: TsdValue;
  190. FMarkMemo: TsdValue;
  191. FPM_PreTotalPrice: TsdValue;
  192. FPM_TotalPrice: TsdValue;
  193. protected
  194. procedure DoAfterAddFields; override;
  195. public
  196. property BillsID: TsdValue read FBillsID;
  197. property DealQuantity: TsdValue read FDealQuantity;
  198. property DealTotalPrice: TsdValue read FDealTotalPrice;
  199. property DealFlag: TsdValue read FDealFlag;
  200. property DealFormula: TsdValue read FDealFormula;
  201. property QcQuantity: TsdValue read FQcQuantity;
  202. property QcTotalPrice: TsdValue read FQcTotalPrice;
  203. property QcFlag: TsdValue read FQcFlag;
  204. property QcFormula: TsdValue read FQcFormula;
  205. property QcBGLCode: TsdValue read FQcBGLCode;
  206. property QcBGLNum: TsdValue read FQcBGLNum;
  207. property PcQuantity: TsdValue read FPcQuantity;
  208. property PcTotalPrice: TsdValue read FPcTotalPrice;
  209. property PcFlag: TsdValue read FPcFlag;
  210. property PcFormula: TsdValue read FPcFormula;
  211. property PcBGLCode: TsdValue read FPcBGLCode;
  212. property PcBGLNum: TsdValue read FPcBGLNum;
  213. property GatherQuantity: TsdValue read FGatherQuantity;
  214. property GatherTotalPrice: TsdValue read FGatherTotalPrice;
  215. property EndDealQuantity: TsdValue read FEndDealQuantity;
  216. property EndDealTotalPrice: TsdValue read FEndDealTotalPrice;
  217. property EndQcQuantity: TsdValue read FEndQcQuantity;
  218. property EndQcTotalPrice: TsdValue read FEndQcTotalPrice;
  219. property EndQcBGLCode: TsdValue read FEndQcBGLCode;
  220. property EndQcBGLNum: TsdValue read FEndQcBGLNum;
  221. property EndPcQuantity: TsdValue read FEndPcQuantity;
  222. property EndPcTotalPrice: TsdValue read FEndPcTotalPrice;
  223. property EndPcBGLCode: TsdValue read FEndPcBGLCode;
  224. property EndPcBGLNum: TsdValue read FEndPcBGLNum;
  225. property EndGatherQuantity: TsdValue read FEndGatherQuantity;
  226. property EndGatherTotalPrice: TsdValue read FEndGatherTotalPrice;
  227. property PreDealQuantity: TsdValue read FPreDealQuantity;
  228. property PreDealTotalPrice: TsdValue read FPreDealTotalPrice;
  229. property PreQcQuantity: TsdValue read FPreQcQuantity;
  230. property PreQcTotalPrice: TsdValue read FPreQcTotalPrice;
  231. property PreQcBGLCode: TsdValue read FPreQcBGLCode;
  232. property PreQcBGLNum: TsdValue read FPreQcBGLNum;
  233. property PrePcQuantity: TsdValue read FPrePcQuantity;
  234. property PrePcTotalPrice: TsdValue read FPrePcTotalPrice;
  235. property PrePcBGLCode: TsdValue read FPrePcBGLCode;
  236. property PrePcBGLNum: TsdValue read FPrePcBGLNum;
  237. property PreGatherQuantity: TsdValue read FPreGatherQuantity;
  238. property PreGatherTotalPrice: TsdValue read FPreGatherTotalPrice;
  239. property HasBookMark: TsdValue read FHasBookMark;
  240. property MarkMemo: TsdValue read FMarkMemo;
  241. property PM_PreTotalPrice: TsdValue read FPM_PreTotalPrice;
  242. property PM_TotalPrice: TsdValue read FPM_TotalPrice;
  243. end;
  244. TProjectGLRecord = class(TsdDataRecord)
  245. private
  246. FID: TsdValue;
  247. FCode: TsdValue;
  248. FName: TsdValue;
  249. FUnits: TsdValue;
  250. FSpecs: TsdValue;
  251. FBasePrice: TsdValue;
  252. FRiskRange: TsdValue;
  253. FLockedPhaseID: TsdValue;
  254. FLockedStageID: TsdValue;
  255. FCreatePhaseID: TsdValue;
  256. FInfoPrice: TsdValue;
  257. FInfoDate: TsdValue;
  258. FDeltaPrice: TsdValue;
  259. FValidDeltaPrice: TsdValue;
  260. FPM_PreQuantity: TsdValue;
  261. FPM_PreTotalPrice: TsdValue;
  262. FPM_Quantity: TsdValue;
  263. FPM_TotalPrice: TsdValue;
  264. protected
  265. procedure DoAfterAddFields; override;
  266. public
  267. property ID: TsdValue read FID;
  268. property Code: TsdValue read FCode;
  269. property Name: TsdValue read FName;
  270. property Units: TsdValue read FUnits;
  271. property Specs: TsdValue read FSpecs;
  272. property BasePrice: TsdValue read FBasePrice;
  273. property RiskRange: TsdValue read FRiskRange;
  274. property LockedPhaseID: TsdValue read FLockedPhaseID;
  275. property LockedStageID: TsdValue read FLockedStageID;
  276. property CreatePhaseID: TsdValue read FCreatePhaseID;
  277. property InfoPrice: TsdValue read FInfoPrice;
  278. property InfoDate: TsdValue read FInfoDate;
  279. property DeltaPrice: TsdValue read FDeltaPrice;
  280. property ValidDeltaPrice: TsdValue read FValidDeltaPrice;
  281. property PM_PreQuantity: TsdValue read FPM_PreQuantity;
  282. property PM_PreTotalPrice: TsdValue read FPM_PreTotalPrice;
  283. property PM_Quantity: TsdValue read FPM_Quantity;
  284. property PM_TotalPrice: TsdValue read FPM_TotalPrice;
  285. end;
  286. TDetailGLRecord = class(TsdDataRecord)
  287. private
  288. FID: TsdValue;
  289. FBillsID: TsdValue;
  290. FGLID: TsdValue;
  291. FCode: TsdValue;
  292. FQuantity: TsdValue;
  293. FCreatePhaseID: TsdValue;
  294. FRelaProjectGL: TProjectGLRecord;
  295. protected
  296. procedure DoAfterAddFields; override;
  297. public
  298. property ID: TsdValue read FID;
  299. property BillsID: TsdValue read FBillsID;
  300. property GLID: TsdValue read FGLID;
  301. property Code: TsdValue read FCode;
  302. property Quantity: TsdValue read FQuantity;
  303. property CreatePhaseID: TsdValue read FCreatePhaseID;
  304. property RelaProjectGL: TProjectGLRecord read FRelaProjectGL write FRelaProjectGL;
  305. end;
  306. implementation
  307. { TBillsRecord }
  308. procedure TBillsRecord.DoAfterAddFields;
  309. begin
  310. inherited;
  311. FID := ValueByName('ID');
  312. FParentID := ValueByName('ParentID');
  313. FNextSiblingID := ValueByName('NextSiblingID');
  314. FSerialNo := ValueByName('SerialNo');
  315. FIsLeaf := ValueByName('IsLeaf');
  316. FLeafXmjID := ValueByName('LeafXmjID');
  317. FXiangCode := ValueByName('XiangCode');
  318. FMuCode := ValueByName('MuCode');
  319. FJieCode := ValueByName('JieCode');
  320. FXimuCode := ValueByName('XimuCode');
  321. FIndexCode := ValueByName('IndexCode');
  322. FCode := ValueByName('Code');
  323. FB_Code := ValueByName('B_Code');
  324. FName := ValueByName('Name');
  325. FUnits := ValueByName('Units');
  326. FAlias := ValueByName('Alias');
  327. FPrice := ValueByName('Price');
  328. FNewPrice := ValueByName('NewPrice');
  329. FOrgQuantity := ValueByName('OrgQuantity');
  330. FOrgTotalPrice := ValueByName('OrgTotalPrice');
  331. FMisQuantity := ValueByName('MisQuantity');
  332. FMisTotalPrice := ValueByName('MisTotalPrice');
  333. FOthQuantity := ValueByName('OthQuantity');
  334. FOthTotalPrice := ValueByName('OthTotalPrice');
  335. FQuantity := ValueByName('Quantity');
  336. FTotalPrice := ValueByName('TotalPrice');
  337. FAddDealQuantity := ValueByName('AddDealQuantity');
  338. FAddDealTotalPrice := ValueByName('AddDealTotalPrice');
  339. FAddQcQuantity := ValueByName('AddQcQuantity');
  340. FAddQcTotalPrice := ValueByName('AddQcTotalPrice');
  341. FAddQcBGLCode := ValueByName('AddQcBGLCode');
  342. FAddQcBGLNum := ValueByName('AddQcBGLNum');
  343. FAddPcQuantity := ValueByName('AddPcQuantity');
  344. FAddPcTotalPrice := ValueByName('AddPcTotalPrice');
  345. FAddPcBGLCode := ValueByName('AddPcBGLCode');
  346. FAddPcBGLNum := ValueByName('AddPcBGLNum');
  347. FAddGatherQuantity := ValueByName('AddGatherQuantity');
  348. FAddGatherTotalPrice := ValueByName('AddGatherTotalPrice');
  349. FLockLevel := ValueByName('LockLevel');
  350. FLockInfo := ValueByName('LockInfo');
  351. FLockNewPrice := ValueByName('LockNewPrice');
  352. FCreatePhaseID := ValueByName('CreatePhaseID');
  353. FIsMeasureAdd := ValueByName('IsMeasureAdd');
  354. FPeg := ValueByName('Peg');
  355. FDrawingCode := ValueByName('DrawingCode');
  356. FMemoStr := ValueByName('MemoStr');
  357. FDgnQuantity1 := ValueByName('DgnQuantity1');
  358. FDgnQuantity2 := ValueByName('DgnQuantity2');
  359. FDgnPrice := ValueByName('DgnPrice');
  360. FDealDgnQuantity1 := ValueByName('DealDgnQuantity1');
  361. FDealDgnQuantity2 := ValueByName('DealDgnQuantity2');
  362. FCDgnQuantity1 := ValueByName('CDgnQuantity1');
  363. FCDgnQuantity2 := ValueByName('CDgnQuantity2');
  364. FAddDgnPrice := ValueByName('AddDgnPrice');
  365. FHasBookMark := ValueByName('HasBookMark');
  366. FMarkMemo := ValueByName('MarkMemo');
  367. FDealCode := ValueByName('DealCode');
  368. FDealCompany := ValueByName('DealCompany');
  369. FDealType := ValueByName('DealType');
  370. FAddCutTotalPrice := ValueByName('AddCutTotalPrice');
  371. FAddPayTotalPrice := ValueByName('AddPayTotalPrice');
  372. FAddCompleteRate := ValueByName('AddCompleteRate');
  373. FPM_AddTotalPrice := ValueByName('PM_AddTotalPrice');
  374. end;
  375. { TStageRecord }
  376. procedure TStageRecord.DoAfterAddFields;
  377. begin
  378. inherited;
  379. FBillsID := ValueByName('BillsID');
  380. FDealQuantity := ValueByName('DealQuantity');
  381. FDealTotalPrice := ValueByName('DealTotalPrice');
  382. FDealFlag := ValueByName('DealFlag');
  383. FDealFormula := ValueByName('DealFormula');
  384. FQcQuantity := ValueByName('QcQuantity');
  385. FQcTotalPrice := ValueByName('QcTotalPrice');
  386. FQcFlag := ValueByName('QcFlag');
  387. FQcFormula := ValueByName('QcFormula');
  388. FQcBGLCode := ValueByName('QcBGLCode');
  389. FQcBGLNum := ValueByName('QcBGLNum');
  390. FPcQuantity := ValueByName('PcQuantity');
  391. FPcTotalPrice := ValueByName('PcTotalPrice');
  392. FPcFlag := ValueByName('PcFlag');
  393. FPcFormula := ValueByName('PcFormula');
  394. FPcBGLCode := ValueByName('PcBGLCode');
  395. FPcBGLNum := ValueByName('PcBGLNum');
  396. FGatherQuantity := ValueByName('GatherQuantity');
  397. FGatherTotalPrice := ValueByName('GatherTotalPrice');
  398. FEndDealQuantity := ValueByName('EndDealQuantity');
  399. FEndDealTotalPrice := ValueByName('EndDealTotalPrice');
  400. FEndQcQuantity := ValueByName('EndQcQuantity');
  401. FEndQcTotalPrice := ValueByName('EndQcTotalPrice');
  402. FEndQcBGLCode := ValueByName('EndQcBGLCode');
  403. FEndQcBGLNum := ValueByName('EndQcBGLNum');
  404. FEndPcQuantity := ValueByName('EndPcQuantity');
  405. FEndPcTotalPrice := ValueByName('EndPcTotalPrice');
  406. FEndPcBGLCode := ValueByName('EndPcBGLCode');
  407. FEndPcBGLNum := ValueByName('EndPcBGLNum');
  408. FEndGatherQuantity := ValueByName('EndGatherQuantity');
  409. FEndGatherTotalPrice := ValueByName('EndGatherTotalPrice');
  410. FPreDealQuantity := ValueByName('PreDealQuantity');
  411. FPreDealTotalPrice := ValueByName('PreDealTotalPrice');
  412. FPreQcQuantity := ValueByName('PreQcQuantity');
  413. FPreQcTotalPrice := ValueByName('PreQcTotalPrice');
  414. FPreQcBGLCode := ValueByName('PreQcBGLCode');
  415. FPreQcBGLNum := ValueByName('PreQcBGLNum');
  416. FPrePcQuantity := ValueByName('PrePcQuantity');
  417. FPrePcTotalPrice := ValueByName('PrePcTotalPrice');
  418. FPrePcBGLCode := ValueByName('PrePcBGLCode');
  419. FPrePcBGLNum := ValueByName('PrePcBGLNum');
  420. FPreGatherQuantity := ValueByName('PreGatherQuantity');
  421. FPreGatherTotalPrice := ValueByName('PreGatherTotalPrice');
  422. FHasBookMark := ValueByName('HasBookMark');
  423. FMarkMemo := ValueByName('MarkMemo');
  424. FPM_PreTotalPrice := ValueByName('PM_PreTotalPrice');
  425. FPM_TotalPrice := ValueByName('PM_TotalPrice');
  426. end;
  427. { TProjectGLRecord }
  428. procedure TProjectGLRecord.DoAfterAddFields;
  429. begin
  430. inherited;
  431. FID := ValueByName('ID');
  432. FCode := ValueByName('Code');
  433. FName := ValueByName('Name');
  434. FUnits := ValueByName('Units');
  435. FSpecs := ValueByName('Specs');
  436. FBasePrice := ValueByName('BasePrice');
  437. FRiskRange := ValueByName('RiskRange');
  438. FLockedPhaseID := ValueByName('LockedPhaseID');
  439. FLockedStageID := ValueByName('LockedStageID');
  440. FCreatePhaseID := ValueByName('CreatePhaseID');
  441. FInfoPrice := ValueByName('InfoPrice');
  442. FInfoDate := ValueByName('InfoDate');
  443. FDeltaPrice := ValueByName('DeltaPrice');
  444. FValidDeltaPrice := ValueByName('ValidDeltaPrice');
  445. FPM_PreQuantity := ValueByName('PM_PreQuantity');
  446. FPM_PreTotalPrice := ValueByName('PM_PreTotalPrice');
  447. FPM_Quantity := ValueByName('PM_Quantity');
  448. FPM_TotalPrice := ValueByName('PM_TotalPrice');
  449. end;
  450. { TDetailGLRecord }
  451. procedure TDetailGLRecord.DoAfterAddFields;
  452. begin
  453. inherited;
  454. FID := ValueByName('ID');
  455. FBillsID := ValueByName('BillsID');
  456. FGLID := ValueByName('GLID');
  457. FCode := ValueByName('Code');
  458. FQuantity := ValueByName('Quantity');
  459. FCreatePhaseID := ValueByName('CreatePhaseID');
  460. end;
  461. end.