ProjectProperty.pas 19 KB

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