|
@@ -39,6 +39,7 @@ type
|
|
|
alBatchInsertBills: TActionList;
|
|
|
actnInsertCol: TAction;
|
|
|
dxpmBills: TdxBarPopupMenu;
|
|
|
+ actnDeleteRow: TAction;
|
|
|
procedure zgPositionCustomPaste(Sender: TObject; ABounds: TRect;
|
|
|
ASourSheet: TZjSheet);
|
|
|
procedure zgBillsCustomPaste(Sender: TObject; ABounds: TRect;
|
|
@@ -58,6 +59,8 @@ type
|
|
|
Shift: TShiftState; X, Y: Integer);
|
|
|
procedure actnInsertColUpdate(Sender: TObject);
|
|
|
procedure FormResize(Sender: TObject);
|
|
|
+ procedure actnDeleteRowExecute(Sender: TObject);
|
|
|
+ procedure actnDeleteRowUpdate(Sender: TObject);
|
|
|
private
|
|
|
FInsertType: TInsertType;
|
|
|
FBillsCompileData: TBillsCompileData;
|
|
@@ -456,8 +459,9 @@ end;
|
|
|
|
|
|
procedure TBatchInsertBillsForm.dxpmInsertBillsPopup(Sender: TObject);
|
|
|
begin
|
|
|
- dxpmInsertBills.ItemLinks[5].Visible := (dxpmInsertBills.Tag = 1);
|
|
|
+ dxpmInsertBills.ItemLinks[6].Visible := (dxpmInsertBills.Tag = 1);
|
|
|
SetDxBtnAction(actnInsertCol, MainForm.dxbtnInsertCol);
|
|
|
+ SetDxBtnAction(actnDeleteRow, MainForm.dxbtnDeleteRow);
|
|
|
end;
|
|
|
|
|
|
procedure TBatchInsertBillsForm.actnInsertColExecute(Sender: TObject);
|
|
@@ -495,4 +499,14 @@ begin
|
|
|
pnlBills.Height := Trunc((pnlPositon_Bills.Height - pnlOther.Height)/22*9);
|
|
|
end;
|
|
|
|
|
|
+procedure TBatchInsertBillsForm.actnDeleteRowExecute(Sender: TObject);
|
|
|
+begin
|
|
|
+ zgPosition.DeleteRow(zgPosition.CurRow);
|
|
|
+end;
|
|
|
+
|
|
|
+procedure TBatchInsertBillsForm.actnDeleteRowUpdate(Sender: TObject);
|
|
|
+begin
|
|
|
+ TAction(Sender).Visible := dxpmInsertBills.Tag = 0;
|
|
|
+end;
|
|
|
+
|
|
|
end.
|