|
@@ -142,7 +142,9 @@ procedure TDealPaymentFrame.laEdtExprsKeyDown(Sender: TObject;
|
|
|
var Key: Word; Shift: TShiftState);
|
|
|
begin
|
|
|
if Key = VK_Return then
|
|
|
- zgDealPayment.SetFocus;
|
|
|
+ zgDealPayment.SetFocus
|
|
|
+ else if (ssCtrl in Shift) and (Key in [67, 99]) then
|
|
|
+ laEdtExprs.CopyToClipboard;
|
|
|
end;
|
|
|
|
|
|
function TDealPaymentFrame.CheckColHasFormula(ACol: Integer): Boolean;
|
|
@@ -235,12 +237,12 @@ procedure TDealPaymentFrame.laEdtExprsKeyPress(Sender: TObject;
|
|
|
begin
|
|
|
if CheckCurTotalPriceCol(zgDealPayment.CurCol) then
|
|
|
begin
|
|
|
- if not((Key in ArithmeticCharSet) or (Key in ExprsBaseCharSet) or (Key = #8)) then
|
|
|
+ if not((Key in ArithmeticCharSet) or (Key in ExprsBaseCharSet) or (Key in [#8, #17])) then
|
|
|
Key := #0;
|
|
|
end
|
|
|
else if CheckLimitPriceCol(zgDealPayment.CurCol) then
|
|
|
begin
|
|
|
- if not((Key in ArithmeticCharSet) or (Key in ExprsExceptCharSet) or (Key = #8)) then
|
|
|
+ if not((Key in ArithmeticCharSet) or (Key in ExprsExceptCharSet) or (Key in [#8, #17])) then
|
|
|
Key := #0;
|
|
|
end
|
|
|
else
|
|
@@ -359,7 +361,7 @@ begin
|
|
|
if FDealPaymentData.CheckReachPlan(Rec) then
|
|
|
begin
|
|
|
CanShow := True;
|
|
|
- HintStr := '已达到计提期限,当期金额须一次性计提至限额' + #13#10 +
|
|
|
+ HintStr := '已达到计提期限,使用公式计算的当期金额须一次性计提至限额' + #13#10 +
|
|
|
Format('计提期限为(%s)', [FDealPaymentData.PlanStr(Rec)]);
|
|
|
end;
|
|
|
end;
|