ProjectProperty.pas 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716
  1. unit ProjectProperty;
  2. interface
  3. uses
  4. Classes, SysUtils, Variants, DB, ADODB, ZhAPI, CalcDecimal;
  5. type
  6. TPropertyInquiry = class
  7. private
  8. FInquriyQuery: TADOQuery;
  9. FConnection: TADOConnection;
  10. FTableName: string;
  11. FSql: string;
  12. function GetValue(const AName: string): Variant;
  13. procedure SetValue(const AName: string; const Value: Variant);
  14. function GetNewID: Integer;
  15. procedure ExecuteSql(AIsSelect: Boolean = True);
  16. function CheckPropertyExist(const AName: string): Boolean;
  17. public
  18. constructor Create(AConnection: TADOConnection);
  19. destructor Destroy; override;
  20. property TableName: string read FTableName write FTableName;
  21. property Value[const AName: string]: Variant read GetValue write SetValue; default;
  22. end;
  23. TProjProperties = class
  24. private
  25. FProjectData: TObject;
  26. FPropertyInqurity: TPropertyInquiry;
  27. FShowPriceChange: Boolean;
  28. FPhaseCount: Integer;
  29. FLockedLedgerData: Boolean;
  30. FStartedSubsist: Double;
  31. FContractPrice: Double;
  32. FMaterialSubsist: Double;
  33. FBLegal: string;
  34. FDealName: string;
  35. FDealIndex: string;
  36. FCLegal: string;
  37. FCDate: string;
  38. FBName: string;
  39. FProjectName: string;
  40. FBDate: string;
  41. FCName: string;
  42. FSDate: string;
  43. FSName: string;
  44. FSLegal: string;
  45. FLoadLength: Double;
  46. FLaneCount: Integer;
  47. FLoadLevel: Integer;
  48. FEndPeg: string;
  49. FStartPeg: string;
  50. FShowBGLCode: Boolean;
  51. FZJJLPreText: string;
  52. FUnlockInfoPassword: string;
  53. FPhaseIndex: Integer;
  54. FShowDesignQuantity: Boolean;
  55. FDealType: string;
  56. FShowAlias: Boolean;
  57. FDecimalManager: TDecimalManager;
  58. FTotalPriceDigit: Integer;
  59. FTotalPriceFormat: string;
  60. FQuantityDigit: Integer;
  61. FQuantityFormat: string;
  62. FPriceDigit: Integer;
  63. FPriceFormat: string;
  64. FUpdateFlag: Integer;
  65. FPriceMarginStartPhaseID: Integer;
  66. FShowReportShading: Boolean;
  67. FReportShading: string;
  68. FBaseline: string;
  69. FDeadline: string;
  70. FLeafXmjGlFilterType: Integer;
  71. function GetBoolPropertyDef(const AName: string; ADef: Boolean): Boolean;
  72. function GetIntPropertyDef(const AName: string; ADef: Integer): Integer;
  73. function GetStrPropertyDef(const AName, ADef: string): string;
  74. function GetFloatPropertyDef(const AName: string; ADef: Double): Double;
  75. function GetDisplayFormat(ADigit: Integer): string;
  76. procedure LoadBaseProperties;
  77. procedure LoadViewProperties;
  78. procedure LoadDealInfo;
  79. procedure LoadTechParameters;
  80. procedure LoadCalcParameters;
  81. procedure LoadDateTime;
  82. procedure SaveDealInfo;
  83. procedure SaveTechParameters;
  84. procedure SaveCalcParameters;
  85. procedure SetShowPriceChange(const Value: Boolean);
  86. procedure SetPhaseCount(const Value: Integer);
  87. procedure SetLockedLedgerData(const Value: Boolean);
  88. function GetFinalAuditCount: Integer;
  89. procedure SetFinalAuditCount(const Value: Integer);
  90. function GetAuditStatus: Integer;
  91. procedure SetAuditStatus(const Value: Integer);
  92. function GetAuditStatusStr: string;
  93. procedure SetContractPrice(const Value: Double);
  94. procedure SetMaterialSubsist(const Value: Double);
  95. procedure SetStartedSubsist(const Value: Double);
  96. function GetAuditCompany: string;
  97. procedure SetAuditCompany(const Value: string);
  98. procedure SetShowBGLCode(const Value: Boolean);
  99. procedure SetZJJLPreText(const Value: string);
  100. procedure SetUnlockInfoPassword(const Value: string);
  101. procedure SetPhaseIndex(const Value: Integer);
  102. procedure SetShowDesignQuantity(const Value: Boolean);
  103. procedure SetShowAlias(const Value: Boolean);
  104. procedure SetQuantityDigit(const Value: Integer);
  105. procedure SetTotalPriceDigit(const Value: Integer);
  106. procedure SetUpdateFlag(const Value: Integer);
  107. procedure SetReportShading(const Value: string);
  108. procedure SetShowReportShading(const Value: Boolean);
  109. procedure SetBaseline(const Value: string);
  110. procedure SetDeadline(const Value: string);
  111. procedure SetleafXmjGlFilterType(const Value: Integer);
  112. public
  113. constructor Create(AProjectData: TObject);
  114. destructor Destroy; override;
  115. procedure Open(AConnection: TADOConnection);
  116. procedure Save;
  117. procedure Reload;
  118. {Submit-Audit-Reply}
  119. // 共计终审计量期数
  120. property FinalAuditCount: Integer read GetFinalAuditCount write SetFinalAuditCount;
  121. // 当前审核状态
  122. property AuditStatus: Integer read GetAuditStatus write SetAuditStatus;
  123. property AuditStatusStr: string read GetAuditStatusStr;
  124. property AuditCompany: string read GetAuditCompany write SetAuditCompany;
  125. {合同信息}
  126. // 建设项目名称
  127. property ProjectName: string read FProjectName write FProjectName;
  128. // 合同名称
  129. property DealName: string read FDealName write FDealName;
  130. // 合同编号
  131. property DealIndex: string read FDealIndex write FDealIndex;
  132. // 合同类别
  133. property DealType: string read FDealType write FDealType;
  134. // 建设单位
  135. // 名称
  136. property BName: string read FBName write FBName;
  137. // 法人代表
  138. property BLegal: string read FBLegal write FBLegal;
  139. // 签订日期
  140. property BDate: string read FBDate write FBDate;
  141. // 施工单位
  142. // 名称
  143. property CName: string read FCName write FCName;
  144. // 法人代表
  145. property CLegal: string read FCLegal write FCLegal;
  146. // 签订日期
  147. property CDate: string read FCDate write FCDate;
  148. // 监理单位
  149. // 名称
  150. property SName: string read FSName write FSName;
  151. // 法人代表
  152. property SLegal: string read FSLegal write FSLegal;
  153. // 签订日期
  154. property SDate: string read FSDate write FSDate;
  155. {技术参数}
  156. // 公路等级
  157. property LoadLevel: Integer read FLoadLevel write FLoadLevel;
  158. // 起点桩号
  159. property StartPeg: string read FStartPeg write FStartPeg;
  160. // 终点桩号
  161. property EndPeg: string read FEndPeg write FEndPeg;
  162. // 长度
  163. property LoadLength: Double read FLoadLength write FLoadLength;
  164. // 车道数
  165. property LaneCount: Integer read FLaneCount write FLaneCount;
  166. {合同支付}
  167. property ContractPrice: Double read FContractPrice write SetContractPrice;
  168. property MaterialSubsist: Double read FMaterialSubsist write SetMaterialSubsist;
  169. property StartedSubsisit: Double read FStartedSubsist write SetStartedSubsist;
  170. {密码}
  171. // 解锁台账编辑节点密码
  172. property UnlockInfoPassword: string read FUnlockInfoPassword write SetUnlockInfoPassword;
  173. {小数位数}
  174. property DecimalManager: TDecimalManager read FDecimalManager;
  175. // 数量
  176. property QuantityDigit: Integer read FQuantityDigit write SetQuantityDigit;
  177. property QuantityFormat: string read FQuantityFormat;
  178. // 金额
  179. property TotalPriceDigit: Integer read FTotalPriceDigit write SetTotalPriceDigit;
  180. property TotalPriceFormat: string read FTotalPriceFormat;
  181. // 单价
  182. property PriceDigit: Integer read FPriceDigit;
  183. property PriceFormat: string read FPriceFormat;
  184. {时间}
  185. // 起始时间
  186. property Baseline: string read FBaseline write SetBaseline;
  187. // 结束时间
  188. property Deadline: string read FDeadline write SetDeadline;
  189. {升级标记}
  190. property UpdateFlag: Integer read FUpdateFlag write SetUpdateFlag;
  191. {Base}
  192. // 计量期数
  193. property PhaseIndex: Integer read FPhaseIndex write SetPhaseIndex;
  194. property PhaseCount: Integer read FPhaseCount write SetPhaseCount;
  195. property ZJJLPreText: string read FZJJLPreText write SetZJJLPreText;
  196. {View}
  197. // Can Modify In ProjectPropertiesFrm
  198. property ShowPriceChange: Boolean read FShowPriceChange write SetShowPriceChange;
  199. property ShowBGLCode: Boolean read FShowBGLCode write SetShowBGLCode;
  200. property ShowDesignQuantity: Boolean read FShowDesignQuantity write SetShowDesignQuantity;
  201. property ShowAlias: Boolean read FShowAlias write SetShowAlias;
  202. // 0: 是否存在工料 1: 本期 2: 截至本期
  203. property LeafXmjGlFilterType: Integer read FLeafXmjGlFilterType write SetleafXmjGlFilterType;
  204. property ShowReportShading: Boolean read FShowReportShading write SetShowReportShading;
  205. property ReportShading: string read FReportShading write SetReportShading;
  206. end;
  207. implementation
  208. { TPropertyInquiry }
  209. function TPropertyInquiry.CheckPropertyExist(const AName: string): Boolean;
  210. begin
  211. Result := False;
  212. FSql := Format('Select * From %s Where Name = ''%s''', [TableName, UpperCase(AName)]);
  213. ExecuteSql;
  214. Result := FInquriyQuery.RecordCount > 0;
  215. FInquriyQuery.Close;
  216. end;
  217. constructor TPropertyInquiry.Create(AConnection: TADOConnection);
  218. begin
  219. FConnection := AConnection;
  220. FInquriyQuery := TADOQuery.Create(nil);
  221. FInquriyQuery.Connection := FConnection;
  222. end;
  223. destructor TPropertyInquiry.Destroy;
  224. begin
  225. FInquriyQuery.Free;
  226. inherited;
  227. end;
  228. procedure TPropertyInquiry.ExecuteSql(AIsSelect: Boolean);
  229. begin
  230. FInquriyQuery.Close;
  231. FInquriyQuery.SQL.Clear;
  232. FInquriyQuery.SQL.Add(FSql);
  233. if AIsSelect then
  234. FInquriyQuery.Open
  235. else
  236. FInquriyQuery.ExecSQL;
  237. end;
  238. function TPropertyInquiry.GetNewID: Integer;
  239. begin
  240. FSql := Format('Select Max(ID) As MaxID From %s', [TableName]);
  241. ExecuteSql;
  242. if FInquriyQuery.RecordCount > 0 then
  243. Result := FInquriyQuery.FieldByName('MaxID').AsInteger + 1
  244. else
  245. Result := 0;
  246. FInquriyQuery.Close;
  247. end;
  248. function TPropertyInquiry.GetValue(const AName: string): Variant;
  249. begin
  250. FSql := Format('Select * From %s Where Name = ''%s''', [TableName, UpperCase(AName)]);
  251. ExecuteSql;
  252. if FInquriyQuery.RecordCount > 0 then
  253. Result := FInquriyQuery.FieldByName('PropValue').AsVariant
  254. else
  255. Result := Null;
  256. FInquriyQuery.Close;
  257. end;
  258. procedure TPropertyInquiry.SetValue(const AName: string;
  259. const Value: Variant);
  260. function GetUpdateSql: string;
  261. begin
  262. if VarIsNull(Value) then
  263. Result := Format('Delete From %s Where Name = ''%s''', [TableName, UpperCase(AName)])
  264. else
  265. begin
  266. if CheckPropertyExist(AName) then
  267. Result := Format('Update %s Set PropValue = ''%s'' Where Name = ''%s''',
  268. [TableName, VarToStr(Value), UpperCase(AName)])
  269. else
  270. Result := Format('Insert Into %s (ID, Name, PropValue) Values (%d, ''%s'', ''%s'')',
  271. [TableName, GetNewID, UpperCase(AName), VarToStr(Value)]);
  272. end;
  273. end;
  274. begin
  275. FSql := GetUpdateSql;
  276. ExecuteSql(False);
  277. FInquriyQuery.Close;
  278. end;
  279. { TProjProperties }
  280. constructor TProjProperties.Create(AProjectData: TObject);
  281. begin
  282. FProjectData := AProjectData;
  283. FDecimalManager := TDecimalManager.Create(AProjectData);
  284. end;
  285. destructor TProjProperties.Destroy;
  286. begin
  287. FPropertyInqurity.Free;
  288. FDecimalManager.Free;
  289. inherited;
  290. end;
  291. function TProjProperties.GetAuditCompany: string;
  292. begin
  293. Result := GetStrPropertyDef('AuditCompany', '');
  294. end;
  295. function TProjProperties.GetAuditStatus: Integer;
  296. begin
  297. Result := GetIntPropertyDef('AuditStatus', -1);
  298. end;
  299. function TProjProperties.GetAuditStatusStr: string;
  300. begin
  301. case AuditStatus of
  302. -1:
  303. if PhaseCount = 0 then
  304. Result := '原报'
  305. else
  306. Result := '批复';
  307. 0:
  308. Result := '原报';
  309. else
  310. Result := Format('%d 审', [AuditStatus]);
  311. end;
  312. end;
  313. function TProjProperties.GetBoolPropertyDef(const AName: string;
  314. ADef: Boolean): Boolean;
  315. var
  316. vProperty: Variant;
  317. begin
  318. vProperty := FPropertyInqurity.Value[AName];
  319. if VarIsNull(vProperty) then
  320. Result := ADef
  321. else
  322. Result := Boolean(vProperty);
  323. end;
  324. function TProjProperties.GetDisplayFormat(ADigit: Integer): string;
  325. begin
  326. case ADigit of
  327. 0: Result := '0';
  328. 1: Result := '0.#';
  329. 2: Result := '0.##';
  330. 3: Result := '0.###';
  331. 4: Result := '0.####';
  332. 5: Result := '0.#####';
  333. 6: Result := '0.######';
  334. 7: Result := '0.#######';
  335. 8: Result := '0.########';
  336. 9: Result := '0.#########';
  337. else
  338. Result := '0.##########';
  339. end;
  340. end;
  341. function TProjProperties.GetFinalAuditCount: Integer;
  342. begin
  343. Result := GetIntPropertyDef('FinalAuditCount', 0);
  344. end;
  345. function TProjProperties.GetFloatPropertyDef(const AName: string;
  346. ADef: Double): Double;
  347. var
  348. sValue: Variant;
  349. begin
  350. sValue := GetStrPropertyDef(AName, FloatToStr(ADef));
  351. Result := StrToFloatDef(sValue, ADef);
  352. end;
  353. function TProjProperties.GetIntPropertyDef(const AName: string;
  354. ADef: Integer): Integer;
  355. var
  356. sValue: Variant;
  357. begin
  358. sValue := GetStrPropertyDef(AName, IntToStr(ADef));
  359. Result := StrToIntDef(sValue, ADef);
  360. end;
  361. function TProjProperties.GetStrPropertyDef(const AName,
  362. ADef: string): string;
  363. var
  364. vProperty: Variant;
  365. begin
  366. vProperty := FPropertyInqurity.Value[AName];
  367. Result := VarToStrDef(vProperty, ADef);
  368. end;
  369. procedure TProjProperties.LoadBaseProperties;
  370. begin
  371. FPhaseCount := GetIntPropertyDef('PhaseCount', 0);
  372. FLockedLedgerData := GetBoolPropertyDef('LockedLedgerData', False);
  373. FContractPrice := GetFloatPropertyDef('ContractPrice', 0);
  374. FStartedSubsist := GetFloatPropertyDef('StartedSubsist', 0);
  375. FMaterialSubsist := GetFloatPropertyDef('MaterialSubsist', 0);
  376. FZJJLPreText := GetStrPropertyDef('ZJJLPreText', '');
  377. end;
  378. procedure TProjProperties.LoadCalcParameters;
  379. begin
  380. FQuantityDigit := GetIntPropertyDef('QuantityDigit', 3);
  381. FQuantityFormat := GetDisplayFormat(FQuantityDigit);
  382. FTotalPriceDigit := GetIntPropertyDef('TotalPriceDigit', 0);
  383. FTotalPriceFormat := GetDisplayFormat(FTotalPriceDigit);
  384. FPriceDigit := 2;
  385. FPriceFormat := GetDisplayFormat(FPriceDigit);
  386. with FDecimalManager.Common do
  387. begin
  388. Quantity.Digit := GetIntPropertyDef('QuantityDigit', 3);
  389. TotalPrice.Digit := GetIntPropertyDef('TotalPriceDigit', 0);
  390. Price.Digit := 2;
  391. end;
  392. with FDecimalManager do
  393. begin
  394. Compile.Quantity.Digit := GetIntPropertyDef('QuantityDigit1', Common.Quantity.Digit);
  395. Compile.TotalPrice.Digit := GetIntPropertyDef('TotalPriceDigit1', Common.TotalPrice.Digit);
  396. Compile.Price.Digit := 2;
  397. end;
  398. with FDecimalManager do
  399. begin
  400. PriceMargin.Quantity.Digit := Common.Quantity.Digit;
  401. PriceMargin.TotalPrice.Digit := Common.TotalPrice.Digit;
  402. PriceMargin.Price.Digit := 3;//GetIntPropertyDef('PM_PriceDigit', Common.Price.Digit);
  403. end;
  404. end;
  405. procedure TProjProperties.LoadDateTime;
  406. begin
  407. FBaseline := GetStrPropertyDef('Baseline', '');
  408. FDeadline := GetStrPropertyDef('Deadline', '');
  409. end;
  410. procedure TProjProperties.LoadDealInfo;
  411. begin
  412. FProjectName := GetStrPropertyDef('ProjectName', '');
  413. FDealName := GetStrPropertyDef('DealName', '');
  414. FDealIndex := GetStrPropertyDef('DealIndex', '');
  415. FDealType := GetStrPropertyDef('DealType', '');
  416. FBName := GetStrPropertyDef('BName', '');
  417. FBLegal := GetStrPropertyDef('BLegal', '');
  418. FBDate := GetStrPropertyDef('BDate', '');
  419. FCName := GetStrPropertyDef('CName', '');
  420. FCLegal := GetStrPropertyDef('CLegal', '');
  421. FCDate := GetStrPropertyDef('CDate', '');
  422. FSName := GetStrPropertyDef('SName', '');
  423. FSLegal := GetStrPropertyDef('SLegal', '');
  424. FSDate := GetStrPropertyDef('SDate', '');
  425. end;
  426. procedure TProjProperties.LoadTechParameters;
  427. begin
  428. FLoadLevel := GetIntPropertyDef('LoadLevel', 0);
  429. FStartPeg := GetStrPropertyDef('StartPeg', '');
  430. FEndPeg := GetStrPropertyDef('EndPeg', '');
  431. FLoadLength := GetFloatPropertyDef('LoadLength', 0);
  432. FLaneCount := GetIntPropertyDef('LaneCount', 0);
  433. end;
  434. procedure TProjProperties.LoadViewProperties;
  435. begin
  436. FShowPriceChange := GetBoolPropertyDef('ShowPriceChange', False);
  437. FShowBGLCode := GetBoolPropertyDef('ShowBGLCode', True);
  438. FShowDesignQuantity := GetBoolPropertyDef('ShowDesignQuantity', False);
  439. FShowAlias := GetBoolPropertyDef('ShowAlias', False);
  440. FLeafXmjGlFilterType := GetIntPropertyDef('LeafXmjGlFilterType', 0);
  441. FShowReportShading := GetBoolPropertyDef('ShowReportShading', False);
  442. FReportShading := GetStrPropertyDef('ReportShading', '');
  443. end;
  444. procedure TProjProperties.Open(AConnection: TADOConnection);
  445. begin
  446. FPropertyInqurity := TPropertyInquiry.Create(AConnection);
  447. FPropertyInqurity.TableName := 'ProjProperties';
  448. LoadBaseProperties;
  449. LoadViewProperties;
  450. LoadDealInfo;
  451. LoadTechParameters;
  452. LoadCalcParameters;
  453. LoadDateTime;
  454. FUnlockInfoPassword := GetStrPropertyDef('UnlockInfoPassword', '');
  455. FUpdateFlag := GetIntPropertyDef('UpdateFlag', 0);
  456. end;
  457. procedure TProjProperties.Reload;
  458. begin
  459. LoadBaseProperties;
  460. LoadViewProperties;
  461. LoadDealInfo;
  462. LoadTechParameters;
  463. LoadCalcParameters;
  464. FUnlockInfoPassword := GetStrPropertyDef('UnlockInfoPassword', '');
  465. end;
  466. procedure TProjProperties.Save;
  467. begin
  468. SaveDealInfo;
  469. SaveTechParameters;
  470. SaveCalcParameters;
  471. end;
  472. procedure TProjProperties.SaveCalcParameters;
  473. begin
  474. with FDecimalManager do
  475. begin
  476. {FPropertyInqurity.Value['QuantityDigit'] := Common.Quantity.Digit;
  477. FPropertyInqurity.Value['TotalPriceDigit'] := Common.TotalPrice.Digit;
  478. FPropertyInqurity.Value['QuantityDigit1'] := Compile.Quantity.Digit;
  479. FPropertyInqurity.Value['TotalPriceDigit1'] := Compile.TotalPrice.Digit;}
  480. //FPropertyInqurity.Value['PM_PriceDigit'] := PriceMargin.Price.Digit;
  481. end;
  482. end;
  483. procedure TProjProperties.SaveDealInfo;
  484. begin
  485. FPropertyInqurity.Value['ProjectName'] := FProjectName;
  486. FPropertyInqurity.Value['DealName'] := FDealName;
  487. FPropertyInqurity.Value['DealIndex'] := FDealIndex;
  488. FPropertyInqurity.Value['DealType'] := FDealType;
  489. FPropertyInqurity.Value['BName'] := FBName;
  490. FPropertyInqurity.Value['BLegal'] := FBLegal;
  491. FPropertyInqurity.Value['BDate'] := FBDate;
  492. FPropertyInqurity.Value['CName'] := FCName;
  493. FPropertyInqurity.Value['CLegal'] := FCLegal;
  494. FPropertyInqurity.Value['CDate'] := FCDate;
  495. FPropertyInqurity.Value['SName'] := FSName;
  496. FPropertyInqurity.Value['SLegal'] := FSLegal;
  497. FPropertyInqurity.Value['SDate'] := FSDate;
  498. end;
  499. procedure TProjProperties.SaveTechParameters;
  500. begin
  501. FPropertyInqurity.Value['LoadLevel'] := FLoadLevel;
  502. FPropertyInqurity.Value['StartPeg'] := FStartPeg;
  503. FPropertyInqurity.Value['EndPeg'] := FEndPeg;
  504. FPropertyInqurity.Value['LoadLength'] := FLoadLength;
  505. FPropertyInqurity.Value['LaneCount'] := FLaneCount;
  506. end;
  507. procedure TProjProperties.SetAuditCompany(const Value: string);
  508. begin
  509. FPropertyInqurity.Value['AuditCompany'] := Value;
  510. end;
  511. procedure TProjProperties.SetAuditStatus(const Value: Integer);
  512. begin
  513. FPropertyInqurity.Value['AuditStatus'] := Value;
  514. end;
  515. procedure TProjProperties.SetBaseline(const Value: string);
  516. begin
  517. FBaseline := Value;
  518. FPropertyInqurity.Value['Baseline'] := Value;
  519. end;
  520. procedure TProjProperties.SetContractPrice(const Value: Double);
  521. begin
  522. FContractPrice := Value;
  523. FPropertyInqurity.Value['ContractPrice'] := Value;
  524. end;
  525. procedure TProjProperties.SetDeadline(const Value: string);
  526. begin
  527. FDeadline := Value;
  528. FPropertyInqurity.Value['Deadline'] := Value;
  529. end;
  530. procedure TProjProperties.SetFinalAuditCount(const Value: Integer);
  531. begin
  532. FPropertyInqurity.Value['FinalAuditCount'] := Value;
  533. end;
  534. procedure TProjProperties.SetleafXmjGlFilterType(const Value: Integer);
  535. begin
  536. FLeafXmjGlFilterType := Value;
  537. FPropertyInqurity.Value['LeafXmjGlFilterType'] := Value;
  538. end;
  539. procedure TProjProperties.SetLockedLedgerData(const Value: Boolean);
  540. begin
  541. FLockedLedgerData := Value;
  542. FPropertyInqurity.Value['LockedLedgerData'] := Value;
  543. end;
  544. procedure TProjProperties.SetMaterialSubsist(const Value: Double);
  545. begin
  546. FMaterialSubsist := Value;
  547. FPropertyInqurity.Value['MaterialSubsist'] := Value;
  548. end;
  549. procedure TProjProperties.SetPhaseCount(const Value: Integer);
  550. begin
  551. FPhaseCount := Value;
  552. FPropertyInqurity.Value['PhaseCount'] := Value;
  553. end;
  554. procedure TProjProperties.SetPhaseIndex(const Value: Integer);
  555. begin
  556. FPhaseIndex := Value;
  557. FPropertyInqurity.Value['PhaseIndex'] := Value;
  558. end;
  559. procedure TProjProperties.SetQuantityDigit(const Value: Integer);
  560. begin
  561. FQuantityDigit := Value;
  562. FPropertyInqurity.Value['QuantityDigit'] := Value;
  563. FQuantityFormat := GetDisplayFormat(FQuantityDigit);
  564. end;
  565. procedure TProjProperties.SetReportShading(const Value: string);
  566. begin
  567. FReportShading := Value;
  568. FPropertyInqurity.Value['ReportShading'] := Value;
  569. end;
  570. procedure TProjProperties.SetShowAlias(const Value: Boolean);
  571. begin
  572. FShowAlias := Value;
  573. FPropertyInqurity.Value['ShowAlias'] := Value;
  574. end;
  575. procedure TProjProperties.SetShowBGLCode(const Value: Boolean);
  576. begin
  577. FShowBGLCode := Value;
  578. FPropertyInqurity.Value['ShowBGLCode'] := Value;
  579. end;
  580. procedure TProjProperties.SetShowDesignQuantity(const Value: Boolean);
  581. begin
  582. FShowDesignQuantity := Value;
  583. FPropertyInqurity.Value['ShowDesignQuantity'] := Value;
  584. end;
  585. procedure TProjProperties.SetShowPriceChange(const Value: Boolean);
  586. begin
  587. FShowPriceChange := Value;
  588. FPropertyInqurity.Value['ShowPriceChange'] := Value;
  589. end;
  590. procedure TProjProperties.SetShowReportShading(const Value: Boolean);
  591. begin
  592. FShowReportShading := Value;
  593. FPropertyInqurity.Value['ShowReportShading'] := Value;
  594. end;
  595. procedure TProjProperties.SetStartedSubsist(const Value: Double);
  596. begin
  597. FStartedSubsist := Value;
  598. FPropertyInqurity.Value['StartedSubsist'] := Value;
  599. end;
  600. procedure TProjProperties.SetTotalPriceDigit(const Value: Integer);
  601. begin
  602. FTotalPriceDigit := Value;
  603. FPropertyInqurity.Value['TotalPriceDigit'] := Value;
  604. FTotalPriceFormat := GetDisplayFormat(FTotalPriceDigit);
  605. end;
  606. procedure TProjProperties.SetUnlockInfoPassword(const Value: string);
  607. begin
  608. FUnlockInfoPassword := Value;
  609. FPropertyInqurity.Value['UnlockInfoPassword'] := Value;
  610. end;
  611. procedure TProjProperties.SetUpdateFlag(const Value: Integer);
  612. begin
  613. FUpdateFlag := Value;
  614. FPropertyInqurity.Value['UpdateFlag'] := Value;
  615. end;
  616. procedure TProjProperties.SetZJJLPreText(const Value: string);
  617. begin
  618. FZJJLPreText := Value;
  619. FPropertyInqurity.Value['ZJJLPreText'] := Value;
  620. end;
  621. end.