unit UPRSObju;
{ Generated by MakeComp 1.03 from UPRSTYPE.PAS. Don't modify manually !!! }
interface
uses Classes, SysUtils, Graphics, UlanType, ULRecTyp, ULObju, 
  UPRGType,
  UPRSType;

type
  TUPRSObj = class(TULObj)
  protected
    function GetPrgsName: TULPrgsName;
    procedure SetPrgsName(APrgsName: TULPrgsName);
    function GetMinRecLen: TULRecLen; override;
  public
    constructor Create(AOwner:TULObj);
    function GetULRecDesc: PULRecDesc; override;
  published
    property PrgsName: TULPrgsName
      read GetPrgsName write SetPrgsName;
  end;

const
  UPRSChildRecIDs: array[0..0] of TULRecID = (
    UPRGID
  );
  UPRSFldDescs: array[0..0] of TULFldDesc = (
    (
     Caption: 'Programs pool name';
     Hint: '';
     EditWidth: 0;
     BrowseWidth: 0;
     Flags: 4097;
     UserCoef: 0.00;
     NumDec: 0;
     ValuesSourceRecID: 0;
     FieldColorCount : 0;
     FieldColors : nil;
     Filter: '';
     DefDir: '';
     StripPrefix: '';
     EditMask: '';
     MaxID: 0;
     FieldName: 'PrgsName';
     KeyFieldName: '';
     ListFieldName: '';
     Typ: '';
     VarSize: false;
     PasType: 'TULPrgsName';
    )
  );

  UPRSRecDesc: TULRecDesc = (
    Caption: 'Programs';
    ChildRecIDsStr: 'UPRGID';
    ChildRecIDs: @UPRSChildRecIDs;
    ChildRecIDCount: 1;
    FldCount: 1;
    Flds: @UPRSFldDescs;
    Flags: rfChildAllowed OR rfRootChild OR rfHasRecName OR rfAskForSave OR rfEnabled OR rfVisible;
    SortExp: '';
    EditFieldList: '';
    BrowseFieldList: '';
    MenuFieldList: '';
    BrowseChildRecIDs: '';
    NameProp: '';
    MainProp: '';
    DefDir: '';
    OpenFilter: '';
    SaveFilter: '';
    Table: '';
    Indexes: ''
   );

implementation

{TUPRSObj}
function TUPRSObj.GetMinRecLen: TULRecLen;
begin
  GetMinRecLen := sizeof(TUPRSRec);
end;

constructor TUPRSObj.Create(AOwner: TULObj);
begin
  inherited Create(TComponent(AOwner), UPRSID);
end;

function TUPRSObj.GetULRecDesc: PULRecDesc;
begin
  Result := @UPRSRecDesc;
end;

procedure TUPRSObj.SetPrgsName(APrgsName: TULPrgsName);
begin
  if PUPRSRec(Rec)^.PrgsName <> APrgsName then begin
    PUPRSRec(Rec)^.PrgsName := APrgsName;
    if UPRSFldDescs[0].VarSize then 
      ClearFieldsLen;
    DoChange;
  end;
end;

function TUPRSObj.GetPrgsName: TULPrgsName;
begin
  GetPrgsName := PUPRSRec(Rec)^.PrgsName;
end;

{/TUPRSObj}

end.
