Browse Source

详细工料--本期实耗数量,批复状态应不可编辑。

MaiXinRong 10 years ago
parent
commit
4163bdcf0f
2 changed files with 13 additions and 0 deletions
  1. 2 0
      DataModules/LeafXmjGlDm.pas
  2. 11 0
      Frames/LeafXmjGlFme.pas

+ 2 - 0
DataModules/LeafXmjGlDm.pas

@@ -46,6 +46,8 @@ type
 
     function AddLeafXmjGl(AXmjID, AGLID: Integer): TLeafXmjGlRecord;
     procedure DeleteLeafXmjGl(AXmjID, AGLID: Integer);
+
+    property ProjectData: TObject read FProjectData;
   end;
 
 implementation

+ 11 - 0
Frames/LeafXmjGlFme.pas

@@ -23,10 +23,15 @@ type
   public
     constructor Create(ALeafXmjGlData: TLeafXmjGlData);
     destructor Destroy; override;
+
+    procedure ResetViewControl;
   end;
 
 implementation
 
+uses
+  ProjectData;
+
 {$R *.dfm}
 
 { TLeafXmjGlFrame }
@@ -44,4 +49,10 @@ begin
   inherited;
 end;
 
+procedure TLeafXmjGlFrame.ResetViewControl;
+begin
+  with TProjectData(FLeafXmjGlData.ProjectData) do
+    saLeafXmjGL.Columns.ColumnByName('UsedQuantity').ReadOnly := StageDataReadOnly;
+end;
+
 end.