ProjectProperty.pas 19 KB

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