소스 검색

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

MaiXinRong 10 년 전
부모
커밋
4163bdcf0f
2개의 변경된 파일과 13개의 추가작업 그리고 0개의 파일을 삭제
  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.