|
@@ -70,7 +70,6 @@ type
|
|
|
lblSafeTitel: TLabel;
|
|
|
pnlSafeBar: TPanel;
|
|
|
lblUnlockPassword: TLabel;
|
|
|
- imgValid: TImageList;
|
|
|
pnlUnlockPassword: TPanel;
|
|
|
pnlOrgPW: TPanel;
|
|
|
leUnlockPassword: TLabeledEdit;
|
|
@@ -92,31 +91,11 @@ type
|
|
|
cbShowDesignQuantity: TCheckBox;
|
|
|
cbShowAlias: TCheckBox;
|
|
|
tobtnCalcParameters: TToolButton;
|
|
|
- pnlCalcParametersBar: TPanel;
|
|
|
- lblCalcParametersTitel: TLabel;
|
|
|
- leQuantityDigit: TLabeledEdit;
|
|
|
- lblDigit: TLabel;
|
|
|
- leTotalPriceDigit: TLabeledEdit;
|
|
|
- udQuantity: TUpDown;
|
|
|
- udTotalPrice: TUpDown;
|
|
|
- gbPM_Digit: TGroupBox;
|
|
|
- lePM_PriceDigit: TLabeledEdit;
|
|
|
- udPM_PriceDigit: TUpDown;
|
|
|
pnlReport: TPanel;
|
|
|
leReport: TLabel;
|
|
|
cbShowReportShading: TCheckBox;
|
|
|
edtReportShading: TEdit;
|
|
|
tobtnDateTime: TToolButton;
|
|
|
- lblDateTime: TLabel;
|
|
|
- pnlDateTime: TPanel;
|
|
|
- lblBaseline: TLabel;
|
|
|
- dtpBaseline: TDateTimePicker;
|
|
|
- lblDeadline: TLabel;
|
|
|
- dtpDeadline: TDateTimePicker;
|
|
|
- lblDateHint: TLabel;
|
|
|
- cbDealPayAloneDigiy: TCheckBox;
|
|
|
- leDealPayTotalPriceDigit: TLabeledEdit;
|
|
|
- udDealPayTotalPriceDigit: TUpDown;
|
|
|
pnlReportView: TPanel;
|
|
|
lblReportShowStateTitle: TLabel;
|
|
|
pnlReportViewBar: TPanel;
|
|
@@ -140,6 +119,30 @@ type
|
|
|
pnlViewPart2: TPanel;
|
|
|
pnlApprovalCode: TPanel;
|
|
|
cbShowApprovalCode: TCheckBox;
|
|
|
+ leSubsistStart: TLabeledEdit;
|
|
|
+ pnlDateTimeRela: TPanel;
|
|
|
+ pnlDateTime: TPanel;
|
|
|
+ lblDateTime: TLabel;
|
|
|
+ dtpBaseline: TDateTimePicker;
|
|
|
+ lblBaseline: TLabel;
|
|
|
+ dtpDeadline: TDateTimePicker;
|
|
|
+ lblDeadline: TLabel;
|
|
|
+ lblDateHint: TLabel;
|
|
|
+ pnlTechRela: TPanel;
|
|
|
+ lblCalcParametersTitel: TLabel;
|
|
|
+ lblDigit: TLabel;
|
|
|
+ leQuantityDigit: TLabeledEdit;
|
|
|
+ udQuantity: TUpDown;
|
|
|
+ leTotalPriceDigit: TLabeledEdit;
|
|
|
+ udTotalPrice: TUpDown;
|
|
|
+ cbDealPayAloneDigiy: TCheckBox;
|
|
|
+ leDealPayTotalPriceDigit: TLabeledEdit;
|
|
|
+ udDealPayTotalPriceDigit: TUpDown;
|
|
|
+ gbPM_Digit: TGroupBox;
|
|
|
+ lePM_PriceDigit: TLabeledEdit;
|
|
|
+ udPM_PriceDigit: TUpDown;
|
|
|
+ pnlCalcParametersBar: TPanel;
|
|
|
+ udSubsistStart: TUpDown;
|
|
|
procedure btnOkClick(Sender: TObject);
|
|
|
procedure leContractPriceClick(Sender: TObject);
|
|
|
procedure msbBaseMouseWheel(Sender: TObject; Shift: TShiftState;
|
|
@@ -301,17 +304,21 @@ begin
|
|
|
leMaterialSubsist.Text := FloatToStr(FProjProperties.MaterialSubsist);
|
|
|
leMaterialSubsist.ReadOnly := (FProjProperties.PhaseCount > 1) or ((FProjProperties.PhaseCount = 1) and (FProjProperties.AuditStatus <> 0));
|
|
|
SetWindowLong(leMaterialSubsist.Handle, GWL_STYLE, GetWindowLong(leMaterialSubsist.Handle, GWL_STYLE) or ES_RIGHT);
|
|
|
+
|
|
|
+ udSubsistStart.Position := FProjProperties.SubsistStart;
|
|
|
+ SetWindowLong(leSubsistStart.Handle, GWL_STYLE, GetWindowLong(leSubsistStart.Handle, GWL_STYLE) or ES_RIGHT);
|
|
|
end;
|
|
|
|
|
|
procedure TProjectPropertiesForm.SaveDealPay;
|
|
|
begin
|
|
|
+ FProjProperties.SubsistStart := udSubsistStart.Position;
|
|
|
if (FProjProperties.PhaseCount > 1) or ((FProjProperties.PhaseCount = 1) and (FProjProperties.AuditStatus <> 0)) then Exit;
|
|
|
FProjProperties.ContractPrice := StrToFloatDef(leContractPrice.Text, 0);
|
|
|
FProjProperties.StartedSubsisit := StrToFloatDef(leStartedSubsist.Text, 0);
|
|
|
FProjProperties.MaterialSubsist := StrToFloatDef(leMaterialSubsist.Text, 0);
|
|
|
FProjectData.DealPaymentData.CalcStarted_RangePrice;
|
|
|
if FProjectData.PhaseData.Active then
|
|
|
- FProjectData.PhaseData.PhasePayData.CalculateAll;
|
|
|
+ FProjectData.PhaseData.PhasePayData.CalculateAll;
|
|
|
end;
|
|
|
|
|
|
procedure TProjectPropertiesForm.leContractPriceClick(Sender: TObject);
|
|
@@ -356,15 +363,15 @@ end;
|
|
|
|
|
|
procedure TProjectPropertiesForm.ResetContentsCheck;
|
|
|
begin
|
|
|
- if msbBase.VertScrollBar.Position < 523 then
|
|
|
+ if msbBase.VertScrollBar.Position < 528 then
|
|
|
ResetContentsCheck(tobtnDealInfo.Tag)
|
|
|
- else if msbBase.VertScrollBar.Position < 683 then
|
|
|
+ else if msbBase.VertScrollBar.Position < 688 then
|
|
|
ResetContentsCheck(tobtnTechParameters.Tag)
|
|
|
- else if msbBase.VertScrollBar.Position < 796 then
|
|
|
+ else if msbBase.VertScrollBar.Position < 816 then
|
|
|
ResetContentsCheck(tobtnDealPayment.Tag)
|
|
|
- else if msbBase.VertScrollBar.Position < 926 then
|
|
|
+ else if msbBase.VertScrollBar.Position < 957 then
|
|
|
ResetContentsCheck(tobtnSafe.Tag)
|
|
|
- else if msbBase.VertScrollBar.Position < 1101 then
|
|
|
+ else if msbBase.VertScrollBar.Position < 1133 then
|
|
|
ResetContentsCheck(tobtnCalcParameters.Tag)
|
|
|
else
|
|
|
ResetContentsCheck(tobtnDateTime.Tag);
|
|
@@ -381,15 +388,15 @@ begin
|
|
|
if ATag = tobtnDealInfo.Tag then
|
|
|
msbBase.VertScrollBar.Position := 0
|
|
|
else if ATag = tobtnTechParameters.Tag then
|
|
|
- msbBase.VertScrollBar.Position := 523
|
|
|
+ msbBase.VertScrollBar.Position := 528
|
|
|
else if ATag = tobtnDealPayment.Tag then
|
|
|
- msbBase.VertScrollBar.Position := 683
|
|
|
+ msbBase.VertScrollBar.Position := 688
|
|
|
else if ATag = tobtnSafe.Tag then
|
|
|
- msbBase.VertScrollBar.Position := 796
|
|
|
+ msbBase.VertScrollBar.Position := 816
|
|
|
else if ATag = tobtnCalcParameters.Tag then
|
|
|
- msbBase.VertScrollBar.Position := 926
|
|
|
+ msbBase.VertScrollBar.Position := 957
|
|
|
else if ATag = tobtnDateTime.Tag then
|
|
|
- msbBase.VertScrollBar.Position := 1101;
|
|
|
+ msbBase.VertScrollBar.Position := 1133;
|
|
|
end;
|
|
|
|
|
|
procedure TProjectPropertiesForm.InitDealInfo;
|