|
@@ -91,6 +91,8 @@ type
|
|
procedure ResetAllowInsert(AAllow: Boolean);
|
|
procedure ResetAllowInsert(AAllow: Boolean);
|
|
|
|
|
|
function CheckExprsColumn: Boolean;
|
|
function CheckExprsColumn: Boolean;
|
|
|
|
+ function CheckMemoStrColumn: Boolean;
|
|
|
|
+
|
|
procedure SetShowDesignQuantity(const Value: Boolean);
|
|
procedure SetShowDesignQuantity(const Value: Boolean);
|
|
procedure SetShowAlias(const Value: Boolean);
|
|
procedure SetShowAlias(const Value: Boolean);
|
|
public
|
|
public
|
|
@@ -232,7 +234,6 @@ end;
|
|
|
|
|
|
destructor TBillsCompileFrame.Destroy;
|
|
destructor TBillsCompileFrame.Destroy;
|
|
begin
|
|
begin
|
|
-
|
|
|
|
inherited;
|
|
inherited;
|
|
end;
|
|
end;
|
|
|
|
|
|
@@ -243,7 +244,7 @@ begin
|
|
dxpmBillsCompile.PopupFromCursorPos
|
|
dxpmBillsCompile.PopupFromCursorPos
|
|
else
|
|
else
|
|
begin
|
|
begin
|
|
- if CheckExprsColumn then
|
|
|
|
|
|
+ if CheckExprsColumn or CheckMemoStrColumn then
|
|
laEdtExprs.Text := zgBillsCompile.CurCell.EditText
|
|
laEdtExprs.Text := zgBillsCompile.CurCell.EditText
|
|
else
|
|
else
|
|
laEdtExprs.Text := '';
|
|
laEdtExprs.Text := '';
|
|
@@ -292,7 +293,7 @@ end;
|
|
procedure TBillsCompileFrame.laEdtExprsExit(Sender: TObject);
|
|
procedure TBillsCompileFrame.laEdtExprsExit(Sender: TObject);
|
|
begin
|
|
begin
|
|
if not TLabeledEdit(Sender).ReadOnly then
|
|
if not TLabeledEdit(Sender).ReadOnly then
|
|
- if CheckExprsColumn then
|
|
|
|
|
|
+ if CheckExprsColumn or CheckMemoStrColumn then
|
|
zgBillsCompile.CurCell.Text := laEdtExprs.Text;
|
|
zgBillsCompile.CurCell.Text := laEdtExprs.Text;
|
|
end;
|
|
end;
|
|
|
|
|
|
@@ -313,7 +314,7 @@ begin
|
|
begin
|
|
begin
|
|
zgBillsCompile.SetFocus;
|
|
zgBillsCompile.SetFocus;
|
|
if not TLabeledEdit(Sender).ReadOnly then
|
|
if not TLabeledEdit(Sender).ReadOnly then
|
|
- if CheckExprsColumn then
|
|
|
|
|
|
+ if CheckExprsColumn or CheckMemoStrColumn then
|
|
zgBillsCompile.CurCell.Text := laEdtExprs.Text;
|
|
zgBillsCompile.CurCell.Text := laEdtExprs.Text;
|
|
end;
|
|
end;
|
|
end;
|
|
end;
|
|
@@ -681,7 +682,7 @@ end;
|
|
procedure TBillsCompileFrame.zgBillsCompileCellTextChanged(Sender: TObject;
|
|
procedure TBillsCompileFrame.zgBillsCompileCellTextChanged(Sender: TObject;
|
|
Col, Row: Integer);
|
|
Col, Row: Integer);
|
|
begin
|
|
begin
|
|
- if CheckExprsColumn then
|
|
|
|
|
|
+ if CheckExprsColumn or CheckMemoStrColumn then
|
|
laEdtExprs.Text := zgBillsCompile.CurCell.EditText
|
|
laEdtExprs.Text := zgBillsCompile.CurCell.EditText
|
|
else
|
|
else
|
|
laEdtExprs.Text := '';
|
|
laEdtExprs.Text := '';
|
|
@@ -690,4 +691,12 @@ begin
|
|
laEdtExprs.ReadOnly := Current.ValueByName('LockedInfo').AsBoolean;
|
|
laEdtExprs.ReadOnly := Current.ValueByName('LockedInfo').AsBoolean;
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
+function TBillsCompileFrame.CheckMemoStrColumn: Boolean;
|
|
|
|
+var
|
|
|
|
+ iCol: Integer;
|
|
|
|
+begin
|
|
|
|
+ iCol := zgBillsCompile.CurCol - zgBillsCompile.FixedColCount;
|
|
|
|
+ Result := (iCol = stdBillsCompile.VisibleCol('MemoStr'));
|
|
|
|
+end;
|
|
|
|
+
|
|
end.
|
|
end.
|