@@ -4,7 +4,7 @@ interface
uses
SysUtils, Classes, sdDB, sdProvider, BillsTree, mDataRecord,
- GclBillsGatherModel;
+ GclBillsGatherModel, DB;
type
TPriceMarginBillsData = class(TDataModule)
@@ -142,7 +142,7 @@ object DealPayPlanForm: TDealPayPlanForm
Ctl3D = False
EditLabel.Width = 66
EditLabel.Height = 12
- EditLabel.Caption = #38480#21046#37329#39069#65306' '
+ EditLabel.Caption = #38480#21046#26399#25968#65306' '
LabelPosition = lpLeft
ParentCtl3D = False
TabOrder = 0
@@ -330,6 +330,7 @@ object DealPaymentFrame: TDealPaymentFrame
Caption = #35774#32622#35745#25552#26399#38480
Hint = #36798#21040#26465#20214#26102#65292#21363#21051#35745#37327#33267#20184'('#25187')'#27454#38480#39069
OnExecute = actnSetDealPayPlanExecute
+ OnUpdate = actnSetDealPayPlanUpdate
end
@@ -45,6 +45,7 @@ type
procedure actnSetDealPayPlanExecute(Sender: TObject);
procedure zgDealPaymentShowHint(var HintStr: String;
var CanShow: Boolean; var HintInfo: THintInfo; const ACoord: TPoint);
+ procedure actnSetDealPayPlanUpdate(Sender: TObject);
private
FDealPaymentData: TDealPaymentData;
@@ -372,4 +373,9 @@ begin
end;
+procedure TDealPaymentFrame.actnSetDealPayPlanUpdate(Sender: TObject);
+begin
+ TAction(Sender).Enabled := Assigned(sdDealPayment.DataView.Current);
+end;
+
end.