소스 검색

合同支付,修改计提期限提示语句

MaiXinRong 9 년 전
부모
커밋
d7a7379319
1개의 변경된 파일6개의 추가작업 그리고 4개의 파일을 삭제
  1. 6 4
      Frames/DealPaymentFme.pas

+ 6 - 4
Frames/DealPaymentFme.pas

@@ -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;