LotusScript Object-Oriented Programming

Source: Internet
Author: User

Class domobj_person
Gdoc_person as notesdocument

'**
Adequacy
Property get document
Set document = gdoc_person
End
Property
Property set document
Set gdoc_person = Document
End
Property

Property get notesid
Notesid =
Gdoc_person.getitemvalue ("notesid") (0)
End Property

Property get
No
No = gdoc_person.getitemvalue ("empno") (0)
End
Property

Property get cname
Cname =
Gdoc_person.getitemvalue ("empcname") (0)
End Property

Property get
Ename
Ename = gdoc_person.getitemvalue ("empname") (0)
End
Property

Property get deptno
Deptno =
Gdoc_person.getitemvalue ("deptno") (0)
End Property

Property get
Deptname
Deptname = gdoc_person.getitemvalue ("deptcname") (0)
End
Property

Property get deptlayer
Deptlayer =
Gdoc_person.getitemvalue ("deptlayer") (0)
End Property

'**
Proxy Information
Property get agentstatus
Agentstatus =
Gdoc_person.getitemvalue ("agentstart") (0)
End Property
'** Structure sub-
Sub
New (pstr_searchtype as string, pstr_searchkey as string)
Set gdoc_person =
Domf_docgetpersonal (pstr_searchtype, pstr_searchkey)
End sub

'**
method
function getperson (pstr_searchtype as string, pstr_searchkey as
string)
set gdoc_person =
domf_docgetpersonal (pstr_searchtype, pstr_searchkey)
end function
'--- get
first item value
function getfirstitemvalue (pstr_item as string) as
variant
getfirstitemvalue =
me. gdoc_person.getfirstitemvalue (pstr_item)
end function
'--- get default
Deputy
function getdefadedeputy () as domobj_person
set
getdefadedeputy = nothing
If (Me. agentstatus) Then
If
gdoc_person.getitemvalue ("deputyempno") (0) <> "then
set
getdefadedeputy = new domobj_person (" no ",
gdoc_person.getitemvalue ("deputyempno") (0 ))
end if
end
function
'--- get class Deputy
function getdeputybyclass (pstr_class as
string)
end function
end class

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.