unit ULURObju;
{ Generated by MakeComp 1.02 from ULURTYPE.PAS. Don't modify manually !!! }
interface
uses Classes, UlanType, ULRecTyp, ULObju, 
  ULURType;

type
  TULURObj = class(TULObj)
  protected
    function GetUserID: TUserID;
    procedure SetUserID(AUserID: TUserID);
    function GetUserName: TUserName;
    procedure SetUserName(AUserName: TUserName);
    function GetRealUserName: TRealUserName;
    procedure SetRealUserName(ARealUserName: TRealUserName);
    function GetPassword: TPassword;
    procedure SetPassword(APassword: TPassword);
    function GetMinRecLen: TULRecLen; override;
  public
    constructor Create(AOwner:TULObj);
    function GetULRecDesc: PULRecDesc; override;
  published
    property UserID: TUserID
      read GetUserID write SetUserID;
    property UserName: TUserName
      read GetUserName write SetUserName;
    property RealUserName: TRealUserName
      read GetRealUserName write SetRealUserName;
    property Password: TPassword
      read GetPassword write SetPassword;
  end;

const
  ULURFldDescs: array[0..3] of TULFldDesc = (
    (
     Caption: '';
     Hint: '';
     EditWidth: 0;
     BrowseWidth: 0;
     Flags: 0;
     UserCoef: 0.00;
     NumDec: 0;
     ValuesSourceRecID: 0
    ),
    (
     Caption: '';
     Hint: '';
     EditWidth: 0;
     BrowseWidth: 0;
     Flags: 1;
     UserCoef: 0.00;
     NumDec: 0;
     ValuesSourceRecID: 0
    ),
    (
     Caption: '';
     Hint: '';
     EditWidth: 0;
     BrowseWidth: 0;
     Flags: 1;
     UserCoef: 0.00;
     NumDec: 0;
     ValuesSourceRecID: 0
    ),
    (
     Caption: '';
     Hint: '';
     EditWidth: 0;
     BrowseWidth: 0;
     Flags: 1;
     UserCoef: 0.00;
     NumDec: 0;
     ValuesSourceRecID: 0
    )
  );
  ULURRecDesc: TULRecDesc = (
    Caption: 'User';
    ChildRecIDsStr: '';
    ChildRecIDs: nil;
    ChildRecIDCount: 0;
    FldCount: 4;
    Flds: @ULURFldDescs;
    Flags: rfEnabled + rfVisible;
    SortExp: '';
    EditFieldList: '';
    BrowseFieldList: ''
   );

implementation

{TULURObj}
function TULURObj.GetMinRecLen: TULRecLen;
begin
  GetMinRecLen := sizeof(TULURRec);
end;

constructor TULURObj.Create(AOwner: TULObj);
begin
  inherited Create(TComponent(AOwner), ULURID);
end;

function TULURObj.GetULRecDesc: PULRecDesc;
begin
  Result := @ULURRecDesc;
end;

procedure TULURObj.SetUserID(AUserID: TUserID);
begin
  if PULURRec(Rec)^.UserID <> AUserID then begin
    PULURRec(Rec)^.UserID := AUserID;
    DoChange;
  end;
end;

function TULURObj.GetUserID: TUserID;
begin
  GetUserID := PULURRec(Rec)^.UserID;
end;

procedure TULURObj.SetUserName(AUserName: TUserName);
begin
  if PULURRec(Rec)^.UserName <> AUserName then begin
    PULURRec(Rec)^.UserName := AUserName;
    DoChange;
  end;
end;

function TULURObj.GetUserName: TUserName;
begin
  GetUserName := PULURRec(Rec)^.UserName;
end;

procedure TULURObj.SetRealUserName(ARealUserName: TRealUserName);
begin
  if PULURRec(Rec)^.RealUserName <> ARealUserName then begin
    PULURRec(Rec)^.RealUserName := ARealUserName;
    DoChange;
  end;
end;

function TULURObj.GetRealUserName: TRealUserName;
begin
  GetRealUserName := PULURRec(Rec)^.RealUserName;
end;

procedure TULURObj.SetPassword(APassword: TPassword);
begin
  if PULURRec(Rec)^.Password <> APassword then begin
    PULURRec(Rec)^.Password := APassword;
    DoChange;
  end;
end;

function TULURObj.GetPassword: TPassword;
begin
  GetPassword := PULURRec(Rec)^.Password;
end;

{/TULURObj}

end.
