-,1~}l!miwjidocs.neu.edu.tr/library/6017892964.pdf · update(any patient autobiog. record) 1:nte~...
Post on 22-Jan-2021
1 Views
Preview:
TRANSCRIPT
NEAR EAST UNIVERSITY
FACULTY OF ECONOMICS ANDADMINISTRATIVE SCIENCE
DEPARTMENT OF COMPUTERINFORMAİION SYSTEMS
200212.UOJ.SUMMER-TERMCIS 400
(Gra~uation Project)
Submitted To : Dr. YalçırlAkçalıMiss.Nadire Çavuş
Submitted By "': V~dat Gözügüzelli (950499)
Lefkoşa2001-
-,1~}l!MIWJINEU
! I j i /.
CONTENTS
'.eAGE
I.AKNOWLEDGMENTS.......... .. .. .. .. 1II.ABS TACT --·······------·· , _ ·-··------ ---· -·-·-··· ··-·---- ,. . . . . . . . ~
III.INTRODUCTION..................................................................................................... 3 IV.EXPLANATION OF SYSTEMS.................................................................................. ,..
-Data Flow Diagram , ,1S
- System.Block. Diagram.. ..•..... , ..•............ ·-····-·····--..,.-········-·--------·-········---·····,.............. \ O- Database Design , 1"\
V.US.ER MANUAL .........................•..... , _. ,. .,. \3VI.LIST Of SUBPROGRAMS , .
- Program.Flow Chart, ···········--·············---····-············-------·····-····-.. .. .. .. .. \ "b
r Source Program \......................................................... .5 2..
- Screen Output. _. ,. '\5 VII ..R.EFERANCES ..............................................................•.......... _ - \ 00
AKNOWLEDGMENT
I would like to thank my teachers Dr.Yalçın Akçalı and Miss.Nadire
Çavuş for their valuable quidance in the course off this work.
I
'
I
r
r
l iI I
ABSTRACT
This project is about managing a middle sized medical office data processing. Thepatient datas ~ stored and managed as files and kept as medical record of certainindividual patients.
This program makes data processing and managment in medical office an easy jobstoreing data and keeping records off patients manually is a time consuming process.In this program step by step ,approach simplifies run time data enty and medicalreport keeping so this program allows user data entry deleteing record,upgradingsearching and getting a print out printer Of screen.
1 -
III. INTRODUCTION
This program helps managment of data and medical records maintained in asmall tomedium sized medical office surroundings while using.the program the user canenter patients records,delete or edit records maintain and upgrade while geting adetailed print out of a certain record monitor or printer.The user can also view thepatients payment information on the screen furthermore the user can enter and haveaccess to information regarding medical expenditures of the office such asinjectors,surgical materials,pills etc.
This program has been programmed with Visual Basic6.0. The database ofteprogram is the ACCESS database.
To install clinick system into computer needs about minimum 2 mb harddiscspace. You can find the information about installation in USER MANUAL part of thedocuments.
I will prepare a Clinick information system project that includes theautomation of all manual processes which are made during the execution of aClinick data processing system . In my project we have 4 main processes to beused.
1 - Record Process2 - Account Process1 - Search Process4 ~ Report Process5 = Exit
Explanation of Main Processes
I-Record process:This project includes 4 sub processes.1.1-New Record Process1.2-Patient medical autobiography process "1.3-Patient phsycal cure process1.4-Study and analysis process
Details of the subs processes of the record processes:
1.1-NewRecord Process:This process allows new data input,update,search,delete and patient identification informationprint-out1.2.Patient medical autobiography process:This process allows data entry,update,search,medical autobiography of the patient and print-out1.3-Patient phsycal cure process:This process allows the general physical information about the patient.update.search andprint-out.
1.4-Study and analysis process:The.resıılt.of.lah findings and the doctors opininon, recomm.endation,.entry~update,.s.earch,print-out
2- Account Process:This process allows patients receivable payment, information,.remaining.am.ount,and the otherrelated transactions.
3-Search Process:
This process allows. us.er to find the. file numb.er.and.the.idenıification of the. patient. Thissearch is done either by file number or the last and the first name of the patient.
4-Report Process:Th.is process is divided into two sub-processes.4.1-Lls.t of all patients:Th.is process allows wieving of th.e. list of the total. number of patients.4.2-Patient authentic information:This process allows. detailed.and. spesific, information. regarding..p_atientS.: medical records andthe treatment procedure.
5-Exit:This process allows. quitting. the program.
MINIMUM SYSTEM REOIBREMENTS TO EXECUTE PROGRAM
Any windows s.ys.temvergion.e.noughNeed Minimum 2 or more Gb harddisc space4Mb.VGAProcessors 333mhz or moresor t-nQ.te..:Mlı-Ram800 x 600 Screen Resolution22 x Cd Rom or a Flopy
· nh" "bltoPatient M.edıcal _ı\utobıogta:r -s
~fo about patient medical Autobiog,aphy •• ı~Study And Analysis Info Any Patient ~ı
·Patientauthentic report ııı,,f
·PatientPhysical Cure Info ...,
'Info Any Debtor Patient
l?f)dn 1q;}a w;}rrua.
.ı{qrıt[ Jq;,([ fü;;,!Jl?&
~ OJrq Jq;,p JCl;}fJl?J·
. ll --.•..,$"'(1)g. .=ı·;;. i:l-~~ ~.El P'<
- Request patient id knoledge
"'<il(I)(.) o•....c,'Eo(.) (I)
p:::
~u8
Study And Analyze Info AnY -Patient
o~.£~o~M~. c:ı
~ ~~ .I~ t;l
p..
Medical Autobiography info; .
(1)-·-·µ;o; I
c;:l· ·-;;>-.ıt,j~·
q
: 1(/)-<•Cl)-ım
. i:·.,a,·r-0(")ı~
·•C- .;;:
Ci);tJ:-1>·:;:-n
.10~
··or-··-
DATABASEOESJGN
KAYİT2 ELE
FLLL.t} \ i\f t·cc•rr·r 'Vvnu,···rrr nc:t:AD rsxr: 10 oSOYAD TEXT· 15 oDOGUMTAR DATE 8 oADRES TEXT 50 oKAYTAR DATE 8 oSAYAc· LONG 4 oKANGUR· TEXT 6 o -MEDDUR TEXT- 6 oCİNSİYETİ,- TEXT 7 oTELNO · TEX-T so· oKiMLiK TEXT 50- o ..
KA.YİTBLE
FIELD NAME TYPE WIDTH DEC SAYAC LONG 4 o ·,-·-SİKAYETt · TEXT 250·· oHİKAYESİ ·TEXT 250 oGECHAS .TEXT 25ff o ·-'
TRAFİK TEXT 250· o '
AİLEHAS TEXT 250 o '
ALERJ-i TEXT 250 oALİSKANLİK TEXT 250. o ''
KULİLAC TEXT"
250 -oZİYTAR DATE a. o ·-'GELSAY LONG. 4 o '
FİZİKMU'SLE
FIELD NAME TYPE WIOTH. DECBATAR·.. DATE 8 o '
NABİZ· TEXT tOU o '
KANBASİNOf TEXT 100 o '
ATES TEXT 100 o '
SAYl1 'LONG 4 o '' '
SAYAC LONG 4 oBOY TEXT 6 o '
KILO TEXT 8\ o
SFMBULGU MEMO ..Q
IHTlMAU-- -MEN-O- o -..
TEDAV~-- MEMO o -
' FIELD NAME TYPE WIDTH. DEC
LABARATUAR '. TEXT 250 Q
IDRARTET- TEXT 25Cl. o. EKG· FB<r- 25&· (}-
RADYOLOJi· TEXT \ 25(T ()"
BUT AR DATE 8 o SAYAC- ' . LONG ... 4,. a SAYiCJK LONG-- 4- (}
MUHASEBE FILE
FIELD NAME TYPE WIDTH DEC I
SAYAC LONG 4 o -
BATAR DATE.. &,. oALINAN· LONG 4· E) ...
VERECEK LONG. 4· I(J
V - USER MANUAL
How To Install This Program;
1- Put the CD into the CD ROM. Then click the.~~
"my computer'' icon mımımıı.f --ı-... -· -
2- Click CD ROM icon to open CD. Then Click the icon.
~e=
.
Vedo
3 N I . k h :kur:- OW CIC t e , , icon. Now you will see the setup icon.tiöHUJ#lliP;Md;!iııfü -- _- - ~- "__ __ . -ıı±ıJ2$JI
Welcome to the GOZUGUZELLI !KLİNİK PROGRAMI Setup Wizard .
This wiR install VERSION 1.0 on your computer.
It is recommended that you close aH other apphcations beforecontinuing.
Click Next to continue. or Cancel to exit Setup.
4- This is setup page. Click next button to start installation.
5- Then you chose the programs directory
~5etııp\.¥,GÔ2ÜGÜ2Ellİ KLİNİKPROGRAMI ..-,,,.l'Jl2:~!1Select Deatinalion Diıectı:,ıy ~,
\ı/here should GOZüGüZELLi KLİNİK PROGRAM I be installed? ~ i...... ~ ··,,···,--,····-·.,-.,.·-- .. ·-----··--·--·-··-·-·.·-,·.-···-•---··'-.··.,.•.•··-~
Select the folder where you would like GOZüGüZELLi KLiNiK PROGRAM! to beinstalled. then click Next
1,.=) adreste!..:"') Copy of edb.;:::ı Copy of NOKİA
c: veda
The program reqı,ıires at least 22.7 MB of disk space.
< Back J . Next> _J Cancel
6. when chose directory then chose the where should place the setupprogram's shortcut._ -~- .
~ S~tııp'\'/fıG!-J?ÜÇ\.İZELL
Select Staıt Menu Folder\ı,/here should Setup place the program's shortcuts?
--------,---~-------· ------·--- ... -· -----Select the Start Menu folder in which you. would like Setup lo create the program'sshortcuts. then c~c;kNekt.
1BmfiifA:ı•ffliiılOif:ı;mQlTı-: AccessoriesAdministrative ToolsAdobe Acrobat 4.0Easy Applet BuilderGamesIDAutomation.com. Inc. Applicationslnno Setup 3Java Stuff 2Microsoft O ffüı:eToolsMicrosoft SQL Server 6.5
:ı Mir.rn~nft Vİ5:IJAI Slurlin h n
< Back [ Next> Cancel
7. When chose the setup place the programs shortcut place then show selectadditional task form.
rIrI'
Se!e::t.iie ;,,:!d~o,-ı.al~.ası..~ )".l<i w,:>'Jl::i likeSEtl,'!) to p.wı:ır.m ,1hJ, imt,11.1'.gti1'.ıZOuüB::llİ KUMı::. PitDG Ri'•ML Ihm obi<. H6'•.t
i~d:fı:•)ffil ;'c,;m')'~ O•eate a ds,i:Kt,1p ~-Cl'\.
8.Then click next program installer redy to install program.
R<ead:v to, ln;ıa11~i"et~t..p r.:r hö~.ı ,ıe..,JJ.' h,i b::~ ı'ı i·~t.&'l:n9 GDZ06L't2E ıu Kii.İt·llı< P~~o.ncomcuıe-ı.
,ô,d,i!i;:mlta::\t:ıo~t~ a ds"tfl:..ttPtroı-.;-
9.When click to install button start setup and show completing setup wizard form.
Completing the GÔZÜGÜZELLİK(,İNİK PROGRAMI Setup Wizard
Setup has finished installing GtlZÜGÜZELLİ KLİNİKPROGRAM! on your computer. The application may belaunched by selecting the installed icons.
Click Finish to ewit Setup.
P Launch GOZUGUZELLi KLİNİK PROGRAMi
Finish
Click finish button and program locat~ your system.. Now you can find the program your desktop. If you click Gözügüzelli Klinik
programı. shortkcut then you will see the Main Menu .Program has 5 type process Menus and one about program info button,..
Arama Raporlar
Yeni kayıt ,Kayıt Muhasebe Arama Raporlar Hekkmde Çıbş
r
Hastanın Tıbbi ÖzgeçmişiMuayene Bulguları ve TedaviTetkik ve Tahliller
1. RECORD
1.1 YENİ KAYIT (NEW RECORD): add new record. see figure 1'
1.2 HASTANIN TIBBİ ÖZ GEÇMİŞİ(MEDICAL AUTOBIOGRAPHY): This is usedfor adding the patient autobigraphic information.
(KIRTASİYE ALIŞ ESKİ KAYITA EKLEME) see figure .21.3 MUAYENE BULGULARl(PATIENT PHYSICAL CURE): This is used for addingthe patient physical cure nformation. see figure .3
1.4 STUDY AND ANALYSIS : This is used for to adding study nad analyse resultssee figure.5
2-ACCOUNT
Kayıt f M~hasebe Arama Raporlar
Alacaklar }
2-ACCOUNT
2.1 ALACAKLAR(PATIENT DEBT) : This is the adding debtor patient record.(PERSONEL KAYiT) see picture 6
3-SEARCH
Kayıt Muhasebe J A~a,.;;a-, Raporlar Hakkında Çıkış
I ~oy isme,isme veı dosyan~y!2ör;_~ j
3~SEARCH
3.1 SOYİSME,İSME VE DOSYA NOYA GÖRE ARAMA(SEARCH BY SPECIFICORDER) :Seach Patients record by id information. See figure. 7
4-REPORT
4-REPORT
4. 1 HASTALARIN LİSTESİ(LIST OF ALL PATIENT): Show all patients charactheristicknowledge. See figure. 84.2 HAST AYA ÖZGÜN KAYITLAR( PATIENT AUTHENTIC REPORT): Show authenticreport pany patient. See figure. 9
5-ABOUT 5-1 HAKKINDA(ABOUT):Give information about program.See figure. 106-EXIT 6-1 ÇIKIŞ(EXIT): Exit program
VI. List of Subprograms USER FLOW CHARTS
START
1- RECORD2-ACCOUNT3-SEARCH4..;REPORT5-E~IT
0, ,<
YES
YES
""·
1 - NEW RECORD2 - MEDİCAL AUTOBIOGRAPHY3- PATIENT PHYSICAL CURE4 - STUDY ANO ANALYSIS .
NO
L
YES ·G~ ,
1 - SAVE.2- SEARCH3- UPDATE4-DELEtEq- PRINT OUT
. i
r:ıC)
NEW RECORD
C
~ ~8. /,
NTERING PATIENTINfORMATION
Y.!:iS
r/ ,-.'-
___ j"oRETURN TO·MAİN MENU
SEARCH( ANY PATl~NT ID RECORD)
ENTERPATIENTDOSSIERNUMBER
A(.L ID INFORMATIOM·\)·ABOUT PATIENT
. DISPL,AYED .
'---~---·"
YES
NÇ)T FOUND
.'J, NO RETURN to·MAİN MENU-~---..·~
UPDATE.( ANY PATIENT ID RECORD)
r
~NTER DOSSIERNUMBeR
,' ".·
f\lOTfOUND
~
YES
., •• ,, 1' NO
INFO. OFSEARCH Pf,..TIE:NT
RETURN TOMAİN MENU
_ ____,_(',r
DATAST(}REil
ENTER PATIENT DOSSIER. NUMijER .
TO SEARCH
INFO. OFSE4.RCHPATIENT
.~·'JıDELETED ·PATIENT INFO
. .'?,.
NO
RETURN TOMA!NMENU
PRINT fPATIENT ID KNOWLEDGE PRRINT OUT). . ' .. ' . . . ; . ' ';.'. . ...
ENTER MTlENT DdSSIERNUMBER ..
TO SEARÇH
INFO. OFSEARCHPATIENT
YES
~NOTfOUND ) ( _;~..~
ıNO I PRlNTED
IPCLIC~ YES I •• YESEXIT
NO
RETURN TG 11 NO· MAİN MENU ,. RETURN ro'
MAİN MENU
¥f:DICAL AUTOBIOGRAPHY
1 -SAVE~- S~ARCH3-UADATEA- P~INT OUT
0 '.
.
D
·-'\YES ı,.( 1.1.4)
,./'
SAVE (AUTOB10GRAPHICAL INFO}
ENTER DOSSIERl'jUMBER .Ô:
NO
NOT FQ\JND
· "· ·r- NO
INFO. Of IDSEARCHPATIENT
ENTERING PATIENTAUTOBIOG. INFO
·RETURN TOMAİN MENU
YES
NO
--,·DATA (
STQRED, \
SEARCH (ANY PATIENT AUTOBIOG. RECORD)' ' . ' . .
YES
NO
AUTOBIOG. INFORMATION. ABOUT PArl$NT .
DISPLAYED
NOTFOUND
NO
ENTER PATIENT
VISITNLJM~FR
NO
YES
oro
UPDATE( ANY PATIENT AUTOBIOG. RECORD)
1:NTE~ DOSSIERNUMBER.
YES
NO
NOT FOUND
YES
RETURN TOMAİN MENU
INFO. OF IDSEARCHPATIENT
NTER PATIENT VİSİT NOAUTOBIOG.INFO
YES
FO. OF AUTOBIOG.SEARCHPATll=.NTNO
UPDATE PATIENTAUTOBIOG.INFO
YES
PRINT (PATIENT AUTOBIG. KNOWLEDGE PRRtNT OUT). ' \. ' . ': .. ' . . '
YES
YES
ALL AUTQSIOG. INFORMATIONABOUT PATIENT
DISPLAYEiDNO
PATIENT ID. INFORMAl'ION[)1$P~YEP. . . .
NOTFPVND
ENTERP,A.Tl!;NT
VISITNU~Si;R
YES
NO
-ı..
PATIENT PHYSYCAL CURE
1.,.. SAVF2- SEARCt, ·3-4PDATf:4-, PRINT our
E
C'" YES lit 1.1 A \/__ ,..
SAVE (PHYSICAL CURE INFO). . . ; . . . .
NO
NOT FOUND
NO
INFO. OF ID.SEARCHPATIENT
ENTERING PATIENTPHY::\ICAL. INFO
"''
YES
NO
RETIJRN ·TO,''MAİN MENU
DATASTORED ,ı
SEARCH (ANY PATIENT PHYSICAL CURE .. RECORD)
,;;ı,ı·>4>1 ••• ,~~-~·-------------•
-- .•-----------
ENTER PATIENTDOSSIERNUMBER
YES
PH'(;~c60~~~:rıoNDISPL.AYEC>NO
NOTFOI.JND
ENTER P,4tıENT
VIŞITNUMBER
}~
NO
NO
_______.___ ....,._. •\,.•......• ...• ,,,,
PHUSICALCURE INFOR~kfl(l~l \ABOUT PAlHpNif t
DISPLAYED l,i
--""
V)CV)
YES
UPDATE (ANY :PATIENT :PHYSICAL CURE. RECORD)
....,.. ..,,..,.,.
YES
NO
NOT FOLJNq
YE$
RETURN TOMAİN MENU
INFO. Of IDSEARCHPATIENT
NTER PATIENT ViqİT NOAUTOB!Qq. INFO
YES
NO
NFO. OF PHYSIGAL CURE .. , SEARCH
PATIENT
NO·
UPDATE PATIENTpHısıcAL CURl;.ıt,ıı,o
--1···-DATA
STORED ....
YES
PRINT( PATIENT PHYSICAL CURE KNC>WLEDGE PRRINT OUT)
ENTERPATIENTDQSSIERNUMBER
YES
NO
NOTFOUND
YES
NO
PATIENT IP. INFORW\TIQNPISPLAYl:D
ENTERPATIENT. VISITt-JUM6i;R
YES
NO
PHYSICAL CURE INFORMI\T!ON. . ABOUT PATIENT .
'DISPLAYED ..
STUDY AND ANAL YSE
1 -, S.AV~2- SijA~CH3 .., U !PD,\TE;4- PRINT QUT
Q.'l~J '
F
SAVE (STUDY AND ANAL YSE INFO). . ' ' . : ' . '. ·' ,ı .· .
NO
NOT FOUND
YES
INFO. OF ID SEARCHPATIENT
~NTERING PATIENTSTO. AND ANALYSE. !NF
ıı
YES
NO
RETURNTÜMAİN MENU
DATAST:0RED
SEARCH (ANY STUDY AND ANAL YSE .. RECORD). . ' . ', . . . ' ..
........,...,..~"""~~,.,.....,~·-- ..•.....•. ~.-,,.~~~~~-----~-- .•..
ıı ~~~..,.'I,
TUDY AND ANALYSE INFORMATION \, ABOUT PATl~NT . )·
DISPL.fı.YED ·
YEq
NO'STUDYAND ANALYSE INFORMATION
, . '. . ABO\JT PATIENT .. . 'DISPLAYED
o !('
YES
NOTF<~UND
NO
NO
-------------------------~
UPDATE (ANY PATIENT STUDY AND ANALYSE, ~CORD)
. 'Et-:JTER DOSSIER
NUMl;l~R
NO
YES INFO. OF IDSEARCHPATIENT
NOT FOUND
NO
YES
NO
FO. ABOUT STD&ANAL YSESEARCHPATIENT
RETlJl&TOMA,İNMENU
UPDATE PATIENTSTD&ANALVS~İNFO
DAT:-(-_.STO:R.El)
----------~~~
YES
PRINTOUT(PATIENT STUDY AND ANAL YSE KNOWLEDGE)
I
. ENTERPATIENTDOSSIERNUMBER
NOPATIENT ID. INFORMATION
. DISPLAYED
ENTERPATIENT
visıtNl./MBER
ı~
V.,N9
NO
STUDY AND ANAL YSEINFORMATION
A$OUT PATIENTQISPLAYED
YES
1 - PATIENT DEBT
oYES
ACCO!ltl.
.,.,.,,'04.,.~~ .•--------------ı•
NO
NOT FOUND
YES
INFO. OFSEARCHED
PAT\ENT.
ENTERING PATIENT. DEBTOR. INFOı . . . . .
YES
NO
RERJRNTOMAİN MENU
PATASTORED
1 - SEARCH BY NAME,SURNAMEOR DOSSIER NO.
YES
o
SEARCH(PROCE$S...~ni
SEARCH( ANY STUDY AND ANAL YSE. RECORD)
,r,ıı.·, •... ı~ •••.• ,,..~ •••--··----------------·
cNTERSEARCH BY NAME.SURNAMEOR DOSSIER NO.
YES
NOABOUT PATIENT ID INFORMATION
DISPLAYED
NOTFOUND
NO RETURN TOMAİN MENU
1 - LIST ALL PATIENTS2- PATIENT AUTHENTIC REPORT
(?\YES ı, 4.·1 ,J
" /
YES ·G:ı.ı'" .,,,
RETURN TOMAİN MENU
LIST AL.L PATIENTS
LİST OF ALLPATlf:NT ID
INFORMATION
DO YOUWANTTOGOMAINMENU
NORETURN TOMAİN MENU
PATIENT AUTHENTIC REPQ.IJ'.
1 - SEARCH2- PRINT OUT
ıı
SEARCH(ANY PATIE.NT ID .. RECORD)
AUTHENTIC INFORMArtONABOUT PATIENT
DISPLAYED
YES
NOABOUT PATIENT ID
INFORMATIONPISPL.AYEO
NOTFOl,JND
ENTERPATIENT
VİSITNUMBER
YES
NO~.. ~--,---- ,.
RETURN TOMAİN MENU
NO
PRINTOUT( PATIENT AUTHENTIC KNOWLEDGE)
YES
NOPATIENT ID. INFORMATION
DISPLAYED
NOTFOUND
ENTERPATIENT
VISITNUMBER
YES
NO
NO
YES
PATIENT AUTHENTICINFORMATION
DISPLAY!:P -
~~ ıNO
- I PRINTED
MODULE .Declare Function Flash Window Lib "User32" (By Val hWnd As_
Long, ByVal blııvert As Long) As LongSub Flash(hFlash As Long, iTiınes As Im.egcr~sJntcn,ııiAs..Şingle)
Dim iAslnteger
For i = -O To iTimesCall FlaslıWindow(hFlash, True)Dim Start J\.ı, SingleStart= TimerDo While Timer <Start+ slnterval
DoEventsLoop
.Next iCall Flash Window(hFlash, False)
End Sub
CLASS MODULE .
Option ExplicitPrivate Type RECT
left As Longtüp As LongRight As LongBottom As Long
End TypePrivate Declare Function EillR.ect Lib. IIU:seı:3.2.''. (J3¥YalhD.C..As.lııng,..lplli:.ct.As.RE.C.tB.y.V al hRmsb AsJ.;011g).~ LongPrivate Declate Function CreateSolidBrush Lib "gdi32" (ByVai crCoior As Long) As Long \ ·Private.Declare Function TextOut Lib "gdi32" Alias "TextOutA" (ByVal hOC As Loag.Byval x As Long.Byval y AsLong, ByVal lpString As String, ByVal nCountAs Long) As LongPrivate Declare Function.Get.DeviceCaps.Lilı-''.~.(B¥-VaUıD.C.. ..~sJ.oug, ByVal nlndex As Long) I\$ LongPrivate Const LOGPIXELSX = 88 ' Logical pixels/inch in X JPrivate Const LOGPIXELSY = 90 ' Logical pixels.finch in YPrivate Declare Function Mt:ılDi.v Lib "kernel32" (ByVal nNuınber As Long, ByVal nNuınemtor As Long, ByValnDenominator J\.s Long) As LongPrivate ConstLF FACESIZE = 32Private Type LOGFONT
ltHeight As LongliWidth A-s LonglfEscapementAs LongltDrientatioo As LongltweightAs LongHltalu: As BytelflJnderline As BytelfStrikeüut As Bytelft',Jıar.set As BytelfOutPrecision J\.s Bytelft::lipPrecision As ByteHQuality As BytelfPitchAndFaınily As BytelfFareName(LF _FJ\.CESIZE) J\.s Byte
End TypePrivate Declare Function CreateFoo.tlndirect Lib "gdi32" Alias "CreateFontindiı;ectA" (lpL,ogF_,ont As LOGFONT)_As LongPrivate Declare Function SeleclOtajectLih "gdi32"{RyVal hf)C As Long, RyVal hOtajectAs Long) As LongPrivate Declare Function Dcleteübject Lih,"gdi32.". (B.y\lalh0bj:c.ct.As. I .-ong) A5ı Long.Private ConstFW NORMAL= 400Private Const FW _BOLD= 700Private Const FF_ DONTC.t\RE = OPrivate-Const DEFAULT_ QUALITY = -OPrivate ConstDEFAlJLT PITCH= OPrivate Const DEF J\.ULT CHARSET = IPrivate Declare Function OleTran.slateColor Lib "OLEPR032.DLL" (ByVal OLE_Ç_OLOR As Long.Byval HPALETtE AsLong, pccolorref J\.s Long) J\.-s LongPrivate Const CLR,_INVALID = -1
Private m_picTiıis As Picturelsox
Private m_sCaption As StringPrivate m_hRGBS-tart(l To 3) As IntegerPrivate m oStartC-olor As OLE COLOR- -Private ırı-_bRGBEntl(l Tu.1) As IntegerPrivate,m_oEndColor As OLE_CO,LOR
Public Property T .et Caption(ByVal sCaption As String)m_sCapti:on = s<i::aption
End PropertyPublic Property Get CaptionQ As String
Caption = m~sCaptim:ıEnd Property
Puhlic Property Let DrawingObject(ByRef pieThis As Picturelsox)Set mpic'Ihis = picThis
End PropertyPublic Property Get StartC-olorO As OLE"'COLOR
StartColor =m oStartColor \End PropertyPublic Property Let StartColor(ByVal oColor As OLE_Ç':_OLOR)Dim !Color As Long
If (m_oStartColor <> oColor) Thenm_oStartCokır = oCokırOlcTranslatcColor oColor, -0, lColorm_bRGBStart(l) = lColor And &HFF&m_bRGBStart(2) = ((!Color And &HFFOO&) \ &HlOO)m_bRGBStart(3)'= ((lCokır And &HFFOOOO) \&Hl-0000)IfNot (m_picThis Is Nothing) Then
Draw 1
EndlfEooif
End PropertyPublic Property Get EndColor() As 0~°1LOR
EndColor = m_oErldColorEnd PropertyPublic Property Let EndColor(RyVal oColor As OLE_çOLOR)Dim lC-olor As Long
If~m_oEndColor <> oColor) Thenm -0EndColot= -OColorüleTrnnslateColor oColor, -0, lColorm_b;RGBEnd(l) = lC-oloı; And &HFF &m_hRGB.End(2) = (qColor And &HFFOO&) \ &HJOO)m_bRGBEoo(3) =((lCol{)f And&HFFOOOO) \&HlOOOO)lfNot (m_picThis Is Nothing) Then
DrawEnd If
End IfEnd PropertyPublic Sub Draw()Dim !Height As Long, !Width As LongDim lYStep As LongDim IY A's LongDim bR-GB( l To 3) As IntegerDim tLF As LOGFONTDim hFnt As LongDim hFntOld As LongDim lR As LongDimrctAsRECTDim hBr·As LongDim hOC As I .ongDim dR( l To 3) As DoubleOn Error G-oTo DrawError
hDC =m_picThis.hDCIl-leight= m_pieThis Height\ ScreenTwipsPerPixelYret.Right = myi:cThis.Width \ Screen.TwipsPeı:PixclY
51
' Set .a gnınuation of 255 pixels:JYStep =1Height\ 255If{lYStep = -0) Then
lYStep = 1End IfrctBottom= !Height
bRGB(l) = m_bRGBStart(l)bRGB(2) = m_hRGBStart(2)bRGB(3}= -tn_-bROBStart(3)dR(l) = m_bRGBEnd(l )-m_bRGBStart(l)dR(2) = m_bRGBEnd(2)- m_bRGBStart(2)dR(3) = m_bRGBEnd(3)- m_hRGBStart(3)
For lY = !Height fo -O Step -lYStep'Draw bar:r-cttOp = rctBottom- lYSt-ephRr = CreateSolid~msh((bRGR(J) * &Hl 0000 + hRGR(2) * &Hl 00& + hRGB(l )))FillRcct hDC, ret, hBrDeleteObject hBrr-ctBottonı = rcttüp' Adjust colour:bRGB{ l ) = m~bRGBStart( 1) +dR(l)-_'" (lliı::i:glıt_= lY)-Llfl_eightbRGB(2) = m_bRGBStart(2) + dR(2) '"(lHeight- lY) I IHeightbRGB(3) = m_bRGBStaft(3) +dR(3) * (ll-Ieight- IY)L !Height'Debug.Print bRGB(l ), (!Height - lY) / lHeight
NextlY
pOLEFontToLogFont m_picT\ıis.Font, hDC, tLFtLF.liEscapement =; 900hFnt = CreateFontlndirect(tLF)If{hFnt-<>O) Then
hFntOld = SelectObJect(hDC,hFnt)lR = T-extOut{hDC, -0, lJ-I-eight- lf;, m_sCaption, L-en(m_sCiıption))SelectOlajecthDC, hFntOldDel:eteObject hFnt
Endlf
m_pi.cThis.R-efr-eshExit Sub
DrawEırnr:Debug.Print "Problem: " & Err.Description
End SubPrivate Sub pOLEFontToLogFont(futThis AJ, StdFont, hDC AJ, Long,ttF As LOGFONT)Dim -sFont As StringDim iCbar As Integer
'Convertan OLE StdFont to a LOGFONT structure:WithtLF
sFont = fnt'Ihis.Name'There is a quicker way involving StrCqnv and Copylvlemory,but' this is simpler!F-0r iChaı- = 1 To Len(sForıt)
.lfFace-N.ıme(iChar - l ) = -OByt-e{~sEont,~, l )))NextiCbar )' Based on the W~l32SDK documentation:_l-fHeight = -MuU1iv{{fntThisSi:ze),(GetnevıceCaps(hOC, T,OGPTXRT~~Y)), 72).lüıaıic = üıı'Ilus.Iıaliclf (fntThis.Bold) Then
.ltwei,ght= FW_BOLDElse
.lfWeight -= FW_NORMı\LEnd If.HUnderline = fntThis Und~line.ltstrikeOut ;= futThis.Strikethrough
End WiUı
End Sub
I.FORMOption ExplicitDim iAs IntegerDim ikoıı(8) As StringDim ilkharf, yazi As StringDim cL As New cLogoPrivate Sub Fonn_Load()
cL.Drawi.ngObject= picLogocL.Caption = "Dr.Celalletdin Dedeoglµ"
End Sub
Private Sub Forrn_Resize()On Error Resume NextpicLogo.Height = Me.ScaleHeightOn Error GoTo OcL.DrawForml.Enabled = True
i = 1ikon(l) =App.Path+ "\ınoonOl.ico"ikon(2) =App.Path+ "\ınoon02.ico"ikon(3) =App.Path+ "\moilllÜ.?.ico"ikon(4) =App.Path+ "\ınoonOfl.ico"ikon(5) =App.Path+ "\ınoon05.ico"ik.on(6)=App.Path+ "\ınoon06.ico"ik.on(7)=App.Path+ "\ınoon07.ico"ik.on(8)=App.Path+ "\ınoon08.ico"
End Sub ·
Private Sub Labell _Click()Flash Me.liWnd, 20, 0.5End Sub
Private Sub ınfızkay_Click()Fonn4.ShowEnd Sub
Private Sub mkay_Click()Forrn2.ShowEnd Sub
Private Sub ınnual_'Click()Formô.ShowEnd Sub
Private Sub mnubl_Click()DataReportJShowEnd Sub
Private Sub mnucikis_Click()EndEnclSub
Private Sub mnuhaslis_Click()DataReport 1. ShowEnd Sub
Private Sub Illl\uprog_ClickOForml I.ShowEnd Sub
Private Sub mnusa __Click()FonnlO.ShowEnd Sub
Private Sub mnusi_Click()
Form9.ŞhowEnd Sub
Private Sub ımıusoy _Click()Form7.ShowEnd Sub
Private Submnutet_Clıck()Form5.ShowEnd Sub
Private Sub mtanted _Click()Form3.ShowEnd Sub
Private Sub Timerl_Timer()ilkharf= left(Labell.Caption, 1)
yazi = Righul.abell.Caption, Len(LabelL~)- 1)Label I.Caption= yazi + ilkharfForml.Icon = LoadPicture(ikon(i))i = iMod 8+ I
End Sub
Private Sub Timer2_Timer()Dim Timer2ilkharf = left(Labell.Caption, 1)
yazi = Right(Labell.Caption, Len(Labell.Caption)- 1)Label I.Caption= yazi + ilkharfDim sString As String
sString = "Bu program Vedat Gözügüzelli tarafıntan y_aratıldı"IfTimer2.Tag = O Then
Me.Caption= sStringTimerz.Tag = 1
ElselfTimer2.Tag < Len(sString) ThenMe.Caption= Right(sString, Len(sString) - Timerz.Tag)Tiıner2.Tag = Timerz.Tag + 1
ElselfTimer2.Tag = Len(sString) ThenMe.Caption= sStringTiıner2.Tag = O
End IfEnd Sub
2.FORM
Option ExplicitPrivate Declare Function ShellExecute Lib "slı.ell32.dll"·Alias "ShellExecuteA" (ByVal hWnd As Long, ByVal lpüperationAs String, ByVal lpFile As String, ByVal lpParametersAs String, Byval lpDirectory As String, ByVal nShowCmd As Long)As LongPrivate verilerim As ADODB,ComıectionPrivate depo As ADODB.RecordsetPrivate depol As ADODB.RecordsetPrivatedepo2 As ADODB.RecordsetPrivate depo3 As ADODB.RecordsetPrivate depo4 As ADODB.RecordsetPrivate dat3 As DataRepoıtlPrivate baglanti As StringPrivate Sub Commandl Dlickf)bulTextl .text= ""Text2.text = ""Text3.text = ""Combo1.text= "Kan gurubun'}seçiniz"Combo2.text = "Medeni durumu seç"Combo3.text = "ciniyeti seç"DTPickerl = Date
DTPicker2 = DateTextS.text = ""Text6.text = ""Textl.SetFocusCommand4.Enabled = FalseComınand3.Enabled = FalseCommand6.Enabled = TrueEnd Sub
Private Sub Command6 _Click()Dim sor, sqlsor= MsgBox("Kayıt yapılsın nu?", vblnformation + vbYesNo, "Kaydet")If sor = vbYes Then )
IfTextl.text <>""And Text2.text <>""And Text3.text <>""And Textô.text <>""And Text6.text <>""And Combol.text<> "Kan gurubunu seçiniz" And Combo2.text <> "Medeni durumu seç" And Combo3.text <> "ciniyeti seç" Thensql = "insert into kayit2(ad, soyad, adres,Jrangur~meddur.,_ciıısİ¥etİ,.dogumtar,kaytar, sayac, telno, kimlik) v~lues("sql = sq! & "'" & Textl.text & "'," 'sql = sql & 11111 & Text2.text & 111,11
sql = sql & 11111 & Text3.text & 111,11
sql = sql & ""' & ComboI.text & "',"sql = sq! & 11111 & Combo2.text & 111,11
sql = sq! & 11111 & Combo3.text & "',"sql = sql & 11111 & DTPickerl.Value & 111,11
sql = sql & 11111 & DTPicker2.Value & "',"sql = sq! & 1"11 & Labell3.Caption & 111,11
sql = sq! & ""' & TextS.text & 111,11
sql = sql & 11111 & Text6.text & 111)11
verilerim.Execute (sql)verilerim.CloseData 1. RefreshMsgBox ("Bilgiler Kaydedildi")kasıElseMsgBox ("Hasta ile ilgili bütün alaıılan doldurun")Textl .SetFocusEnd IfEnd If
End Sub
Private Sub Datal_Reposition()Dim kayitno, kaysayikayitno = Datal.Recordset.AbsolntePositionkaysayi = Datal.Recordset.RecordCountDatal.Caption = Str(kayitno + 1) + "/" + Str(kaysayi) ~End Sub
Private Sub Form_Load()Form2.left = (Screen.Width - Form2.Width) / 2Form2.t0p = (Screen.Height- Fomı2.Height) / 2
Datal.RecordSource ="select* from kayit2 order by ad asc"WithCombol.Addltem "Orh+".Addlteın "Orh-".Addltem "Arlı+".Addltem "Arh-".Addlteın "Brh+".Addltem "Brh-".Addlteın "ABrh+".Addltem "ABrh-"End With
WithCombo2.Additem "Evli".Addltem "Bekar"End WithWithCombo3.Addltem "Erkek".Addltem "Bayan"End WithbulCommaııd4.Enabled = FalseCommand3.Enabled = FalseEnd SubPublic Sub bul()Dim sorgu, sorgulSet verilerim= New ADODB.Coıınection
verilerim.CursorLocation = adUseClientbaglanti = "Provider=Microsoft.jet.oledb.4.0; Data Source=C:\Documents and Settings\Vedat\My
Documents\GRdproject\kayitl .mdb"verilerim. Open baglanti
Set depo= New ADODB.Recordsetsorgu= "Select* from kayit2"Set depo = verilerim.Execute( sorgu)If depo.EOF ThenLabel13.Caption = 1Elsesorgul = "selectınax(sayac) as saydir.from.kayitz''Set depo 1 = verilerim.Execute( sorgu 1) )Label13.Caption= depol![saydir] + 1End Ifdepo.CloseEnd SubPrivate Sub Commandô, Click()Dim ara As IntegerDim addi As StringSet verilerim= New ADODB.Coımection
verilerim.CursorLocation = adUseClientbaglanti = "Provider=Microsoft.jet.oledb.4.0; Data Source=C:\Docmnents and Setting_s\Vedat\My
Documents\GRdproject\kayitl . mdb"verilerim.Open baglanti
ara= Val(InputBox("Dosya nuınarasııu giriniz?"))addl ="select* from kayit2 where sayac=" & ara & ""Set depo3 = verilerim.Execute(addl)If depo3.EOF ThenMsgBox ("aradıgııuz dosya numarası bulunamadı")Else
Textl .text= depo3!(ad]Text2.text= depo3![soyad]TexG.text = depo3![adres]Coınbol.text = depo3![kangıır]Combo2.text = depo3![meddur]Combo3.text = depo3![cinsiyeti]DTPickerl = depo3![dogumtar]DTPicker2 = depo3![kaytar]Text5.text= depo3![telno]Textô.text = depo3!(kimlik]Labell3.Caption.= depo3![sayac]Textl .SetFocusdepo3.CloseDatal .RefreshConıınand3.Enabled = TrueCoınınand4.Enabled = TrueCommand6.Enabled = False
End IfEnd SubPrivate Sub Comınand3_Click()Dim sorgu, cevap As Stringcevap= MsgBox("Hasta Bilg~e~~ ,~tffllçınek istiyormııımz ?", vWon~ti.<ln+ vbVesNo)
If cevap = vbYes ThenSet verilerim = New AOODB.Connection
verilerim.Cursorl.ocation = adUseCHentbaglanti = "Provider=Microsoft.jet.oledb.4.0; Data Source=C:\Docuınents and Settings\Vedat\My
Documents\GRdproject\kayitl .mdb"verilerim.Open baglanti
sorgu= "update kayit2 set ad=" & Textl .text & '", soyad=" & Text2.text & "', adres=" & Text3.text & "', kangur=" &Combol.text & "', meddur=" & Combo2.text & "', cinsiyeti=" & Combo3.text & "', dogumtar=" & DTPickerl.Value & '",kaytar="' & D1Picker2.Value & "', telno=" & Text5.text & "',kimlik="' & Text6.text & "' where sayac=" &Label13.Caption & " "verilerim.Execute (sorgu)kaslEnd IfEnd SubPrivate Sub Coınmand4_Click()Dim cevap! As String
60
- -cevap1 =MsgBox("Hasta Bilgilerini silmek istiyonnunuz 'r ; voınrormauou -r- vu ı '"''" ,v;
If cevap1 = vbYes ThenSet verilerim= New AOODB.Connection
,verilerim.Cursorf.ocation.=. ad.UseClientbaglanti = "Provideı:==Microsoft.jeLoledbAQ;_Data.Souı:ce=Cillocuments..and.SettingsWeıjat\My
Documents\GRdproject\kayitl .mdb"verilerim.Openbaglanti
sorgu2 = "delete from kayit2 where sayac=" & Labell3.Caption & ""sorgu3 = "delete from kayit where sayaca" &LabelU.Caption_& ""sorgu4 ="delete from fizikmu where sayac=" & Label13.Caption & ""sorgu5 = "delete from muhasebe where sayac=" & Label13.Caption & ""sorgu6 == "delete from tetkik where sayac=" & Label13.Caption & ""verilerim.Execute(sorgu2)verilerim.Execute(sorgu3)verilerim.Execute(sorgu4)verilerim.Execute(sorgu5)verilerim.Execute(sorgu6)Command1 Clickbul -kaslEnd IfEnd SubPrivate Sub Command2 Click()Unload Me -End Sub
Private Sub Cmdprint_Click()Dim soru As IntegerOn Error ResumeNextsoru= MsgBox("PrinterdenÇıktı almak istediğinizdenemin roisiniz'Z'.',.v~esNo)If soru = vbYes Then kayityazdirCommonDialogl Action = SEnd Sub
Sub kayityazdir()Dim x As PrinterDim y, xl, x2, artimOn Error GoTo son'Setup PrinterPrinter.ScaleMode= 6Printer.FontName= "TimesNew Roman Tur"Printer.FontSize"' 14y = 10: xl = 5: x2 = xL+ 50: artim = 7'headPrinter.CurrentX = 1Printer.CurrentY = 2 .,Printer.Print "HASTA- KAYIT KABUL''.&."Printer.Line (O, 9)-(Printer.ScaleWidth,9)'start
" &.Fonnat(Date,.~Loug.l?ate")I
y=y+artimPrinter.CurrentX = xlPrinter.CurrentY =yPrinter.Print "Dr Celal Dedeoğlu"
'IIf Not IsNııll(Textl .text)Then
y=y+artimPrinter.CurrentX =xlPrinter.CurrentY = yPrinter.Print "Adı :"Printer.CurrentX = x2Printer.CurrentY = yPrinter.Print Textl .text
End IfIf Not IsNull(Text2.text) Then
y=y+artimPrinter.CurrentX = xlPrinter.CurrentY = yPrinter.Print "Soyadı:"Printer.CurrentX = x2Printer.CurrentY = yPrinter.Print Text2.text
End IfIf Not IsNull(Text3.text) Then
y=y+artimPrinter.CurrentX =xlPrinter.CurrentY = yPrinter.Print "Adresi :"Printer.CurrentX = x2Printer.CurrentY = yPrinter.Print Text3.textEnd If
'Factory'y = y + artim'Printer.CurrentX = Xl'Printer.CurrentY = y'Printer.Print "FactoryProcess :"
IfNot IsNull(Combol.text) Theny =y +artimPrinter.CurrentX = xlPrinter.CurrentY = yPrinter.Print "Kan gurubu:"Printer.CurrentX = x2Printer.CurrentY = yPrinter.Print Combol .text
EndlfIf Not IsNull(Cotnbo2.text) Then
y = v+ artinıPrinter.CurrentX = xlPrinter.CurrentY = yPrinter.Print "Medeni durumu:"Printer.CurrentX = x2Printer.CurrentY = yPrinter.Print Combo2.text
End IfIf Not IsNull(Combo3.text)Then
y == y + artımPrinter.CurrentX = xlPrinter.CurrentY = yPrinter.Print "Cinsiyeti :"Printer.CurrentX = x2Printer.CurrentY = yPrinter.Print Combo3.text
End IfIf Not IsNull(DTPicker1 .Value) Then
y = y + artinı
'Printer.Print "Emp~yee:"
If Not IsNull(Text5.text) Tiıeny=y+artimPrinter.CurrentX = xlPrinter.CurrentY = yPrinter.Print "Telefon numarası:"Printer.CurrentX = x2Printer.CurrentY = yPrinter.Print Te45.text
End IfIf Not IsNull(Text6.text~Then
y=y+artimPrinter.CurrentX = xlPrinter.CurrentY = yPrinter.Print "Kimlik numarası :"Printer.CurrentX = x2Printer.CurrentY = yPrinter.Print Text6.text
End If
Printer.Line (O, 140)-(Printer.ScaleWidth, 140)Printer.EndDocExit Subson:MsgBox "Error:" & Err.Description, HÇ'Goziigüzelli"End Sub
Private Sub Text5_KeyPress(KeyAscii As Integer)IfKeyAscii = 13 Then
KeyAscii = OSendKeys "{Tab}"
ElseifinStr(("1234567890" & vbBack & ""), Chr(KeyAscii))_= O ThenKeyAscii = O
End IfEnd SubPrivate Sub Text6_KeyPress(KeyAscii As Integer)IfKeyAscii = 13 Then
KeyAscii = OSendKeys "{Tab}"
ElseiflnStr(("l234567890" & vbBack & ""), Chr(KeyAscii)) = O ThenKeyAscii = O
End IfEnd Sub
Public Sub kasl()DataReport I .Refresh
Printer.CurrentX = xlPrinter.CurrentY = yPrinter.Print "Doğumtarihi :"Printer.CurreııtX = x2Printer.CurrentY = yPrinter.Print DTPickerl.Value
End IfIf Not IsNull(DTPicker2.Value) Theıı
y=y+artim (Printer.CurrentX = xlPrinter.CurrentY = yPrinter.Print "Kayıt tatihi :"Printer.CurrentX = x2,Printer.CurrentY = yPrinter.Print DTPicker2.Value
End If'y=y+artim'Printer.CurrentX = XI
End SubPrivate Sub Fonn_Unload(Cancel As Integer)
Unload MeFonnl .Enabled= TrueForm I.Show
End SubPrivate Sub Forrn_Activate()Forml.Enabled = FalseEnd Sub
3.FORM
Option ExplicitPrivate verilerim As ADODB.ConnftionPrivate depo As ADODB.RecordsetPrivate depot As ADODB.RecordsetPrivate depo2 As ADODB.RecordsetPrivate depo3 As ADODB.RecordsetPrivate depo4 As ADODB.RecordsetPrivate baglanti As StringPrivate arama
Private Sub Command I_ Click()DTPicker l = DateTextl.text = ""Text2.text = ""Text3.text = ""Text4.text = ""Text5.text = '"'Text6.text = ""Text7.text = ""Text8.text = ""Text9.text = ""TextlO.text = '"'Textl l.text = '"'Textl2.text = "11
Frame4.Visible =TrueFrame2.Visible = TrueFraıne3.Visible = TrueTextl .SetFocusCommand2.Enabled = TrueCommand3.Enabled = True
End SubPrivate Sub Command2_Click() ~Dim sor, sql, sasor= MsgBox("Hastanın Şikayet kayıtlı y_al)llsın mı?", vblnformation + vbYesNo, 11Kardet")
If sor = vbYes ThenIfTextl.text <>""And Text2.text <>""And Textl I.text<>"" And Textl2.text <> 1111 And Text3.text <> "" And Text4.text<> "" And Text5.text <> "" And Text6.text <> "" And Text7.text <>""And Text:8.text<>""And Text9.text <>""AndTextlO.text <>""And Text5.text <> "" AndTextô.texts> "" Thensa= Labell6.Caption + lsql = "insert into kayiusayac, sikayeti, hikayesi, gechas, trafik, ailehas, alerji, aliskaıılik, kulilac, ziytar,gelsay) values("sql = sql & "" & Textl.text & 11,"
sql = sql & "'" & Text! I .text & "',"sql = sql & "'" & Textl2.text & "',"sql = sql & "'" & Text5.text & "',"sql = sql & "'" & Text6.text & "',"sql = sql & '"" & Text7.text & "',"sql = sql & ""' & Text8.text & "',"sql = sql & ""' & Text9.text & "',"sql = sql & "'" & TextlO.text & 11',"
sql = sql & ""' & DTPickerl.Value & 111,11
sql = sql & "" & sa&")"
verilerim.Execute (sql)MsgBox ("Bilgiler Kaydedildi")Comınand2.Enabled = TrueDTPickerl = Date
Frame4.Visible = TrueFrame2. Visible = TrueFrame3.Visible = TrueCommand2.Enabled = FalsekayitsayData I.RefreshElseMsgBox ("Hasta ile ilgili bütün alanlan doldurun")Text! l.SetFocusEnd IfEnd IfDatal.RefreshEnd SubPrivate Sub Fonn_Load()Command4.Enabled = FalseFrame4.Visible = TrueFrame2.Visible = TrueFrame3.Visible = True
Fonn2.left = (Screen.Width - Fonn2.Width) I 2Fonn2.t0p = (Screen.Height- Fonn2.Heig!ıt) I 2
End Sub 1
Private Sub Command3_Click()Dim sorgu, cevap2
IfTextl.text =""ThenMsgBox "Dosya noyu giriniz!"Textl .SetFocusElsearama= Val(InputBox("Ziyaret sayisini gjpniz"))Set verilerim= New AOODB.Coıuıection
verilerim.CursorLocation = adUseClientbaglanti = "Provider=Microsoft.jet.oledb.d.O;Data Source=C:\Documents and Settingş\Vedat\MyDocuments\GRdproject\kayitl .mdb"verilerim.Open baglantisorgu= "select* from kayit where sayac=" + Textl.text+" and gelsay=" & arama & ""Set depo3 = verilerim.Execute(sorgu)If depo3.EOF ThenMsgBox ("Aradıgınız ziyaret sayisinda.hir.hasta.bıılıınamadı")Else )Fraıne4.Visible = TrueFrame3.Visible = TrueFrame2.Visible = TrueTextlLtext = depo3![sikayeti]Textl2.text = depo3![lıikayesi]Text5 = depo3![gechas]Text6 = depo3![trafık]Text"= depo3![ailelıas]Texts= depo3![alerji]Text9 = depo3![aliskanlik]TextIO = depo3![kulilac]DTPickerl = depo3![ziytar]Command2.Enabled = FalseCommand4.Enabled = TrueEnd IfEnd IfEnd SubPrivate Sub Command4_Click()Dim cevap1 As StringDim sorgu2 As Stringcevap1 = MsgBox("Hasta Bilgilerini güncellemek istiyormusunuz ?", vbInformation + vbYesNo)If cevapI = vbYes ThenSet verilerim= New ADODB.Connection
verilerim.CursorLocation = adUseClientbaglanti = "Provider=Microsoft.jet.oledb.4.0; Data Source=C:\Documents and Settings\Vedat\My
Docuınents\GRdproject\kayitl .mdb"verilerim.Open baglanti
sorgu2 = "update kayit set sikayeti=" + Textl I.text+"', hikayesi='"+ Textl2.text + "', gechas="' + Text5.text +'",trafik="'+ Text6.text + "', ailehas=" + Text7.text +"',alerji="'+ Text8.text + "', aliskanlik='" + Text9.text + "', kulilac="' +TextlO.text +"' where gelsay=" & arama & ""verilerim.Execute (sorgu2)MsgBox ("Bilgiler güncelleştirildi")
Frame2.Visible= TrueFrame3.Visible = TrueFrame4.Visible = TrueDatal.RecordSource ="select* from kayit where sayac=" + Textl.text + ""Data I.Refresh
End If
End Sub
Private Sub Coımnand6_Click()Unload MeEnd Sub
Private Sub Textl_KeyPress(KeyAsciiAs~eger)Dim sor
IfKeyAscii = 13 ThenKeyAscii = O
Set verilerim= New ADODB.C-0nnectionverilerim.CursorLocation == adUseClient
baglanti = "Provider=Microsoft.jet.oledb.4.0; Data Source=C:\Docuınents and Settiııgş\Vedat\MyDocuments\GRdproject\kayitl .ındb"
verilerim.Open baglantisor= "select." from kayit2 where sayac= "+ Textl.text + ""Set depo2 = verilerim.Execute(sor)If depo2.EOF ThenMsgBox ("Aradıgınız hasta kaydı bulunamadı LYeui.KayitBölü.ı:nünd.eu..HaYdmı Yapınız")Textl.text = ""Textl .SetFocusDBGridl.Visible == FalseElsekayitsaySet depo3 = New ADODB.RecordsetSet depo3 == verilerim.Execute("select count(sayac)aS\zar from kayitwhere sayac=" + Textl.text + "")Labell6.Caption = depo3![zar]
Text2.text = depo2![ad]Text3.text = depo2![soyad]Text4.text= depo2![adres]'Frame2.Visible = True'Frame3.Visible = Trne'Frame4.Visible = TrueCommand2.Enabled = TrueEnd IfEnd IfIfhıStr(("1234567890" & vbBack & ""),Chr(KeyAscii)) = O Then
KeyAscii = O
End IfEnd Sub
Public Sub kayitsay()Datal.RecordSource ="select* from kayit where sayac=" + Textl.text + '"'
Datal.RefreshDBGridl.Visible = TrueEnd SubPrivate Sub Cmdprint_Click()Dim soru As IntegerOn Error Resume Nextsoru = MsgBox("Printerden çıktı almak istediğinizden emin misiniz? ?", vbYesNo)If soru = vbYes Then kayityazdirCommonDialogl Action= 5End Sub
Sub kayityazdir()Dim x As PrinterDim y, xl, x2, artimOn Error GoTo son'Setup PrinterPrinter.ScaleMode = 6Printer.FontName = "TimesNew Roman Tur"Printer.FontSize = 14y = 10: xl = 5: x2 = xl + 50: artim = 7'headPrinter.CurrentX = lPrinter.CurrentY = 2Printer.Print "HASTANIN- TIBBI ÔZGEÇMfŞI" & " " & Fonnat(Date, "LongDate")Printer.Line (O, 9)-(Printer.ScaleWidth, 9)'start
y=y+artimPrinter.CurrentX = xlPrinter.CurrentY = yPrinter.Print""
•/IfNot IsNull(Labell6.Caption) Then
y=y+artimPrinter.CurrentX = xlPrinter.CurrentY = yPrinter.Print "Ziyaret sayısı : "Printer.CurrentX = x2Printer.CurrentY = yPrinter.Print Labell 6.Caption
End If
IfNot IsNull(Textl.text) Theny=y+artimPrinter.CurrentX == xlPrinter.CurrentY = yPrinter.Print "Dosyanumarası:"Priııter.CurrentX = x2Printer.CurrentY = yPrinter.Print Textl .text
End IfIf Not IsNull(Text2.text) Then
y=y+artimPrinter.CurrentX = xlPrinter.CurrentY = yPrinter.Print "AdıPrinter.CurrentX = x2Printer.CurrentY = yPrinter.Print Text2.text
End IfIt'Not IsNuff(Text3.text) Tiıen
y=y+artimPrinter.CurrentX = xlPrinter.CurrentY = yPrinter.Print "Soy adı ·"Printer.CurrentX = x2Printer.CurrentY = yPriııter.Print Text3.text
End If'Factory
'y = y+artim'Printer.Current.X=Xl'Printer.CurrentY = y'Printer.Print "Factory Process:"
IfNot IsNull(Text4.text) Theny=y+artimPrinter.Current.X= xlPrinter.CurrentY = yPrinter.Print "AdresiPrinter.Current.X= x2Printer.CurrentY = yPrinter.Print Text4.text
End IfIfNot IsNull(DTPickerl.Value) Then
y=y+artimPrinter.Current.X= xlPrinter.CurrentY = yPrinter.Print "Kayıt tatihi :"Printer.Current.X= x2Printer.CurrentY = yPrinter.Print DTPickerl .Value
End IfIf Not IsNull(Textl 1.text) Then
y=y+artimPrinter.Cnrrentx = xlPrinter.CurrentY = yPrinter.Print "Şikayeti ·"Printer.Current.X= x2Printer.CurrentY = yPrinter.Print Textl 1.text
End IfIf Not IsNull(Textl2.text) Then
y=y+artimPrinter.Current.X= xlPrinter.CurrentY = yPrinter.Print "HikayesiPrinter.Current.X= x2Printer.CurrentY = yPrinter.Print Textl2.text
End If
'y=y+artim'Printer.Current.X= XI'Printer.CurrentY = y'Printer.Print "Employee:"
IfNot IsNull(Text5.text) Theny=y+artimPrinter.Current.X= xlPrinter.CurrentY = yPrinter.Print "Geçirdiği hastalıklar:"Printer.Current.X= x2Printer.CurrentY = yPrinter.Print Text5.text
End IfIf Not IsNull(Text6.text) Then
y=y+artimPrinter.Current.X= xlPrinter.CurrentY = yPrinter.Print "Trafik iş kazaları ·"Printer.Current.X= x2Printer.CurrentY = yPrinter.Print Text6.text
End If
If Not IsNull(Text7.text) Theny=y+artimPrinter.CurrentX = xlPrinter.CurrentY = yPrinter.Print "Ailevi hastalıkları ·"Printer.CurrentX = x2Printer.CurrentY = yPrinter.Print Text7.text
End IfIf Not IsNull(Text8.text) Then
y=y+artimPrinter.CurrentX = xlPrinter.Current¥= yPrinter.Print "Alerji öyküsüPrinter.CurrentX = x2Printer.CurrentY = yPrinter.Print Text8.text
EııdlfIf Not lsNull(Text9.text) Then
y=y+artimPrinter.CurreııtX = xlPrinter.CurrentY = yPrinter.Print "Alışkaıtlıklan ·"Printer.CurrentX = x2Printer.CurrentY = yPrinter.Print Text9.text
End IfIfNot IsNull(TextlO.text) Then
y=y+artimPrinter.CurrentX = xlPrinter.Current¥= yPrinter.Print "Kullandığı ilaçlar:"Printer.CurrentX = x2Printer.CurrentY = yPrinter.Print TextlO.text
End IfPrinter.Line (O, 140)-(Printer.ScaleWidth, 140)Printer.End.DocExit Subson:MsgBox "Error:" & Err.Description, 16; "G"oıuguzelli"End Sub ·
Private Sub Form_Unload(Cancel As Integer)Unload MeForınl.Enabled = TrueForml.Show
End SubPrivate Sub Fomı_Activate()Forınl.Enabled = FalseEnd Sub
4.FORM
Option ExplicitPrivate verilerim As ADODB.CoımectionPrivate depom As AOODB.RecordsetPrivate depoml As ADODB.RecordsetPrivate depom2 As ADODB.RecordsetPrivate depo3 As ADODB.RecordsetPrivate baglanti As StringPrivate aramaPrivate Sub Commandl_ Click()Textl.text = ""Text2.text = ""
Text3.text = 1111
Text4.text = ""Text5.text = ""DTPicker 1 = DateText6.text = ""Text7.text = ""Text8.text = ""Text9.text = ""TextlO.text= ""Textl ltext= ""Textl2.text = ""Textl3.text= '"'
Label20.Caption = ""
Textl .SetFocusComrnand2.Enabled = TrueCorrırrıand4.Enabled= FalseEnd Sub
Private Sub Command5_Click()Unload MeEnd SubPublic Sub bull()Dim sorgu2, sorgu3Set verilerim= New AOODB.Coımectionverilerirrı.CursorLocation= adUseClientbaglanti = "provider=microsft.jet.oledb.4.0; data source=C:\Documents and Settingş\Vedat\MyDocurrıents\GRdproject\kayitl .mdb"verilerim.Open baglantiSet depom= New AOODB.Recordsetsorgu2 = " select * from fızikrrıu"Set depom= verilerirrı.Execute(sorgu2)If depom.EOF ThenLabel20.Caption = 1Elsesorgu3 = "select max(sayil) as say from fızikrrıu"Set depom= verilerirrı.Execute(sorgu3)Label20.Caption = depom![say]End Ifdepom.CloseEnd SubPrivate Sub Corrırrıand2_Click() ı.Dim sor, sql, sasor = MsgBox("Hastanın fızik muayene bulguları y_a21lsın mı?", vblnfonnation + vbYesNo, "Ka1det")If sor = vbYes ThenIfText6.text <>""And Text7.text <>""And Text8.text <>'"'And Text9.text <>""And TextlO.text <> "'l..And Textl Ltext<> "" And Textl2.text <>""And Textl3.text <> 1111 Thensa= Label20.Caption + 1sql = "insert into fızikrrıu(sayac,boy, kilo,.nabiz,kaobasinci,_ates,..sfmbıılgu,..ibtiınali,tedari,batar,...sa.)(iL)_ya)ues("sql = sql & "" & Textl .text & ","sql = sql & ""' & Text6.text & "',"sql = sql & '"" & Text7.text & "',"sql = sq) & "'" & Text8.text & "',"sql = sql & "'" & Text9.text & "',"sql = sql & "'" & TextlO.text & "',"sql = sql & "111 & Textl Ltext & "',"sql = sql & 11111 & Textl2.text & "',"sql = sql & ""'& Textl3.text & "',"sql = sql & 11111 & DTPickerl.Value & '","sql = sql & "" & sa & ")"verilerim.Execute (sql)
MsgBox ("Bilgiler Kaydedildi")Comnıand2.Enabled = TrueCoımnand2.Enabled = FalseElseMsgBox ("Hasta ile ilgili bütün alanlan doldurun")Textl l.SetFocusEnd IfEnd IfData I .RefreshEnd Sub
Private Sub Textl_KeyPress(KeyAscii As Integer)Dim sorIfKeyAscii = 13 ThenKeyAscii = OSet verilerim= New ADODB.Connection
verilerim.CursorLocation = adUseClientbaglanti = "Provider=Microsoft.jet.oledb.4.0; Data Source=C:\Documents and Settings\Vedat\My
Documents\GRdproject\kayitl .mdb''verilerim. Open baglanti
sor= "select* from kayit2 where sayac= " + Textl.text + ""Set depoın2 = verilerim.Execute(sor)If depoın2.EOF 11ıenMsgBox ("Aradıgııuz hasta kaydı bulunamadı ! Yeni Kayit Bölümünden Hasta Kaydım Yapınız")
Textl .text= ""Textl.SetFocusDBGridl.Visible = FalseElseText2.text = depoın2![ad]Text3.text = depoın2![soyad]Text4.text = depoın2![cinsiyeti]Text5.text = depoın2! [adres]Datal.RecordSource ="select* from fizikmu where sayac=" + Textl.text + ""Data I .RefreshDBGridl.Visible = TrueSet depoml = New ADODB.RecordsetSet depoml = verilerim.Execute("select count(sayac)as zar from fizikmu where sayac=" + Textl.text + "")Label20.Caption = depom1 ! [zar]
End If
End IfIfinStr(("l234567890" & vbBack & "")~Chr(KeyAscii))_=O Then
KeyAscii = OEnd IfEnd Sub
Private Sub Command3_Click()Dim sorgu, sorIf Text 1. text = "" ThenMsgBox "Hastanın dosya nunıarasııu giriniz!"Elsearama= Val(InputBox("Ziyaret sayisini giriniz"))Set verilerim= New ADODB.Coıınection
verilerim.CursorLocation = adUseClientbaglanti = "Provider=Microsoft.jet.oledb.4.0; Data Source=C:\Documents and Settings\Vedat\MyDocuınents\GRdproject\kayitl .mdb"verilerim.Open baglantisorgu= "select* from fizikmu where sayac=" + Textl.text +" and sayil =" & arama &
1111
Set depo3 = verilerim.Execute(sorgu)If depo3.EOF ThenMsgBox ("aradıgınız dosya numarasındase.zi.yaretsayisindahrhastaKaydLbulııııaqıadı ")Else )sor= "select." from kayit2 where sayac= " + Textl.text + ""Set depoın2 = verilerim.Execute(sor)If depoın2.EOF ThenMsgBox ("Aradıgınız hasta kaydı bulunamadı ! Yeni Kayit Bölümünden Hasta Kaydllll Yapınız")
Textl.text = ""Textl.SetfocusElseText2.text = depom2![ad]Text3.text = depom2![soyad)Text4.text = depom2![cinsiyeti]Text5.text = depom2![adres]Label20.Caption = depo3! [sayı1]Text6.text = depo3![boy]Text7.text = depo3![kilo]Text8 = depo3![nabiz]Text9 = depo3![kanbasinci]TextlO = depo3![ates]Textl 1 = depo3![sfınbulgu]Textl2 = depo3![ihtimali]Textl3 = depo3![tedavi]
Datal .RecordSource = "select * from fızikmu where sayac=" + Textl .text+ ""Daral.Refreshdepo3.Closedepom2.CloseCommand4.Enabled = TrueCommand2.Enabled = FalseEnd IfEnd IfEnd If
End SubPrivate Sub Command+_Click()Dim cevapl As StringDim sorgu2 As String'IfText6.Text <>""And Text7.Text <> "" And.Iext&.IexL<> "" And.Iext:9.TexL<> "" AndTextlO.TexL<:> "" AndTextl 1.Text <>""And Textl2.Text <> "" And Textl3.Text <>""And Textl4.Text <>""And Textl5.Text <>""AndTextl6.Text <>""And Textl7.Text <>""Then
cevap1 = MsgBox("Hasta Bilgilerini güncellemek istiyormusunuz ?", vblnformation + vbYesNo)If cevap1 = vbYes ThenSet verilerim= New ADODB.Coıınection
verilerim.CursorLocation = adUseClientbaglanti = "Provider=Microsoft.j\!t.oledb.4.0;.DataSource=C:\Documents and Settiııgş\Vedat\My
Documents\GRdproject\kayitl .mdb"verilerim.Open baglanti
sorgu2 = "update fızikmu set boy=" & Text6.text & "', kilo="' & Text7.text & "', nabiz='" & Text8.text & "', kanbasinci="' &Text9.text & "',ates=" & TextlO.text & "', sfmbulgu=" & Textl l.text & "', ihtimali=" & Textl2.text & "', tedavi=" &Textl2.text & "' where sayil =" & arama & " and sayac=" + Textl.text + ""verilerim.Execute (sorgu2)MsgBox ("BilgÜergünceÜeştirildi")Datal.RecordSource ="select* from kayit where sayac=v+ Textl.text + ""'Datal .RefreshElse'MsgBox "Hastamn fızik ve tedavisi hakkında kayıt yoktur!", vbCritical + vbYesNo, "Tetkik ve tahlil formuna dön"'End IfEnd If
End Sub
Private Sub Text6_KeyPress(KeyAscii As Integer)IfKeyAscii = 13 Then
KeyAscii = OSendKeys "{Tab}"
ElselfinStr(("l234567890" & vbBack & ""),Chr(KeyAscii)) = O ThenKeyAscii = O
End IfEnd Sub
Private Sub Text7_KeyPress(KeyAscii As Integer)IfKeyAscii = 13 Then
KeyAscii = OSendKeys "{Tab}"
ElselflnStr(("l234567890" & vbBack & ""),Chr(KeyAscii))= O ThenKeyAscii = O
End If
End SubPrivate Sub Cmdprint_Click()Dim soru As IntegerOn Error Resume Nextsoru = MsgBox("Printerdençıktı almak istediğinizdenemin misiniz?", vbYesNo)If soru = vbYes Then kayityazdirCommonDialogl.Action::: 5End Sub
Sub kayityazdir()Dim x As PrinterDim y, xl, x2, artimOn Error GoTo son
Printer.ScaleMode= 6Printer.FontName = "TimesNew Roman Tur"Printer.FontSize= 14y = 10: xl = 5: x2 = xl + 50: artim = 7
Printer.CurrentX = 1Printer.CurrentY = 2Printer.Print "HASTANIN- TIBBİ ÖZGEÇMİŞİ'.' &_" "&..Eorınat(Date,_''Long.:Pate")Printer.Line (O, 9)-(Printer.ScaleWidth,9) J
y=y+artimPrinter.CurrentX= xlPrinter.CurrentY= yPrinter.Print ""
'/If Not lsNull(Label20.Caption)Then
y::y+artimPrinter.CurrentX= xlPrinter.CurrentY= yPrinter.Print "Ziyaret sayısı:"Printer.CurrentX= x2Printer.CurrentY= yPrinter.Print Label20.Caption
End If
IfNot IsNull(Textl.text) Theny=y+artimPrinter.CurrentX:;:xlPrinter.CurrentY = yPrinter.Print "Dosya numarası :"Printer.CurrentX= x2Printer.CurrentY= yPrinter.Print Textl.text
End IfIf Not IsNull(Text2.text)Then
y=y+artimPriuter.CurrentX= xlPrinter.CurrentY= yPrinter.Print "Adı :"Priuter.CurrentX = x2Printer.CurrentY= yPrinter.Print Text2.text
End IfIf Not lsNull(Text3.text) Then
y=y+artimPrinter.CurrentX= xlPrinter.CurrentY= y
Printer.Print "Soy adı ·"Printer.CurrentX = x2Printer.CurrentY= yPrinter.Print Text3.textEndIf
'Factory'y = y + aıtiın'Printer.CurrentX= XI'Priııter.CurrentY= y'Printer.Print "FactoryProcess :"
If Not IsNull(Text4.text)Theny = y + aıtiınPriııter.CurrentX= xlPrinter.CurrentY = yPrinter.Print "Cinsiyeti ·"Printer.CurrentX = x2Printer.CurrentY= yPrinter.Print Text4.text
EndIfIf Not IsNull(Text5.text)Then
y= y + artiınPrinter.CurrentX = xlPrinter.CurrentY = yPrinter.Print "Adresi :"Printer.CurrentX = x2Printer.CurrentY= yPrinter.Print Text5.text
EndIfIf Not IsNull(DTPickerl .Value)Then
y = y+ aıtiınPrinter.CurrentX= xlPrinter.CurrentY= yPrinter.Print "Kayıt tatihi :"Printer.CurrentX= x2Printer.CurrentY= yPrinter.PrintDTPicker1.Value
EndIf
If Not IsNull(Text6.text)Theny = y + artiıııPrinter.CurrentX= xlPrinter.CurrentY= yPrinter.Print "Boyu :"Printer.CurrentX= x2Printer.CurrentY=yPrinter.Print Text6.text
EndIf
IfNot IsNull(Text7.text)Theny = y + aıtiınPrinter.CurrentX= xlPrinter.CurrentY= yPrinter.Print "Kilosu ·"Printer.CurrentX= x2Printer.CurrentY= yPrinter.Print Text7.text
End IfIf Not IsNull(Text8.text)Then
y =y+ aıtiınPrinter.CurrentX = xlPrinter.CurrentY = yPrinter.Print "Nabızı ·"Printer.CurrentX = x2Printer.CurrentY= yPrinter.PrirıtText8.text
End IfIf Not IsNull(Text9.text) Then
y= y+ artiınPrinter.CurrentX = xlPrinter.Current¥= yPrinter.Print "Kan basıncı :"Printer.CurrentX= x2Printer.CurrentY= yPrinter.Print Text9.text
End IfIf Not IsNull(TextlO.text)Then
y = y+ artiınPriııter.CurrentX= xlPrinter.CurrentY = yPrinter.Print "AteşiPrinter.Currentx= x2Printer.CurrentY= yPrinter.Print TextlO.text
End IfIf Not IsNull(Textl 1.text)Then
y = y+ artiınPrinter.CurrentX= xlPrinter.Current¥= yPrinter.Print "Sisternikfızik muayene bulguları:"Printer.CurrentX= x2Printer.CurrentY= yPrinter.Print Textl Ltext
End IfIfNot IsNull(Text12.text)Then
y = y+ artiınPrinter.CurrentX = xlPrinter.CurrentY= yPrinter.Print "İhtimalitanı :"Printer.CurrentX= x2Printer.CurrentY= yPrinter.Print Text12.text
End IfIf Not IsNull(Text13.text)Then
y= y+artimPrinter.CurrentX= xlPrinter.CurrentY= yPrinter.Print "Tedavisi ·"Printer.CurrentX= x2Priııter.CurrentY= yPriııter.PrintTextl O.text
EndlfPrinter.Line (O, 140)-(Printer.ScaleWidth,140)Printer.End.DocExit Sub
·"
son:MsgBox "Error:" & Err.Description, 16, "Götugqzelli"End SubPrivate Sub Form_Unload(CancelAs Integer)
Unload MeForml.Enabled = TrueForml.Show
End SubPrivate Sub Fomı_Activate()Fomıl .Enabled= FalseEnd Sub
5.FORM
Option ExplicitPrivate verilerimAs AOODB.ConnectionPrivate depom As AOODB.RecordsetPrivate depoml As AOODB.Recordset
Private depo3 As ADODB.RecordsetPrivate depom2 As ADODB.RecordsetPrivate baglanti As StringPrivate arama
Private Sub Commandl _Click()Textl .text= ""Text2.text = ""Text3.text = ""Text4.text = ""Text5.text = ""Text6.text = ""Text7.text = ""Text8.text = ""Text9.text = ""DTPickerl = DateTextl .SetFocusCommand4.Enabled = FalseEnd Sub
Private Sub Comınand2_Click()Dim sor, sa, sqlsor= MsgBox("Kayıt yapılsın mı?", vbhıfonnation ..+vhYesNo,---~yıt")If sor = vbYes Then )IfText6.text <>""And Text7.text <>""And Text8.text <>""And Text9.text <>'"'Thensa= Label20.Caption + 1sql= "insert into tetkik (sayac .labaratuar.cidrartet, ekg.nıdyoloji,....butar,.. sayicikj.values "sql = sq! & "" & Textl.text & ","sql = sql & "'" & Text6.text & "',"sql = sq! & ""' & Text7.text & '","sql = sq! & ""' & Text8.text& "',"sql = sql & "'" & Text9.text & "',"sql = sql & "'" & DTPickerl.Value & "',"sql = sql & "" & sa & ")"verilerim.Execute (sql)MsgBox ("Kayıt yapıldı")Textl .SetFocusElseMsgBox ("Hasta ile ilgili bütün alanları..doımrm")Text6.SetFocusEnd IfEnd If'bul2'Datal .RefreshEnd Sub
Private Sub Comınand3_Click()Dim sorgu, sorIfTextl.text = "" ThenMsgBox "Hastanın dosya numarasını giriniz!"Elsearanın= Val(InputBox("Ziyaret sayisini girinizvj)Set verilerim= New ADODB.Connection )
verilerim.CursorLocation = adUseClientbaglanti = "Provider=Microsoft.jet.oledb.4.0; Data Source=C:\Documents and Settingş\Vedat\MyDocuments\GRdproject\kayitl .mdb"verilerim.Open baglantisorgu= "select." from tetkik where sayac=" + Textl.text +" and sayicik=" & arama & '"'On Error Resume NextSet depo3 = verilerim.Execute(sorgu)Ifdepo3.EOF ThenMsgBox ("aradıgıruz dosya numarasında ve ziyaret sayisinda bir hasta Kaydı bulunamadı")Elsesor= "select* from kayit2 where sayac= "+Textile~+""Set depom2 = verileriın.Execute(sor) I
If depoın2.EOF ThenMsgBox ("Aradıgınız hasta kaydı bulunamadı ! Yeni Kayit Bölümünden Hasta Kaydını Yapınız")Textl.text = "" ıTextl .SetFocusElseText2.text = depoın2! [ad]Text3.text = depoın2![soyad]Text4.text = depoın2![cinsiyeti]Text5.text = depoın2![adres]Label20.Caption = depo3![sayicik]Text6.text = depo3![labaratuar]Text7.text = depo3![idrartet]Text&= depo3![ekg]Text9 = depo3![radyoloji]DTPickerl.Value = depo3![butar]'Textl 1 = depo3![akciger]'Text12 = depo3![karaciger]'Textl3 = depo3![dalak]'Textl4 = depo3![odem]'TextlS = depo3![asit]'Textl6 = depo3![varis]'Textl 7 = depo3![kalpok)Datal.RecordSource ="select* from tetkik where sayac=" + Textl.text + ""DataI.Refreshdepo3.Closedepoın2.CloseComınand4.Enabled = TrueEnd IfEnd IfEndlf
End Sub
Private Sub Cornınand4_Click()Dim cevap 1 As StringDim sorgu2 As String'IfText6.Text<> "" And Text7.Text<> "" AndText8.Iext.<> "" And_Te.xt!tiexts> "" And.Textlü.Text,«>
1111And
Textl I.Text<>"" And Textl2.Text <> 1111 And Textl3.Text <>""And Textl4.Text <>""And TextlS.Text <>1111
AndTextl6.Text <> 1111 And Textl7.Text <>'"'Then
cevapl > MsgBox("Hasta Bilgilerini güncellemek istiyormusunuz ?", vblnformation +vbYesNo)If cevap1 = vbYes ThenSet verilerim= New ADODB.Connection
verilerim.CursorLocation = adUseClientbaglanti = "Provider=Microsoft.jet.oledb.4.0; Data Source=C:\Documents and Settings\Vedat\My
Documents\GRdproject\kayitl .mdb"verilerim.Open baglanti
sorgu2 = "update tetkik set labaratuar="' & Text6.text & "', idrartet="' & Text7.text & "', ekg=" & Text8.text & "',radyoloji="' & Text9.text& "' where sayicik=" & arama&" and sayac=" + Textl.text + ""verilerim.Execute (sorgu2)MsgBox ("Bilgiler güııcelleştirildi")Datal.RecordSource = "select* from kayit where sayac=" + Textl.text + ""DataI.RefreshElse'MsgBox "Hastanın fizik ve tedavisi hakkındakayı.Lyoktıııi'',..tlıCriticalt vbYesNo.,.~'I.etkik_veJablilfonmına dön"~If ~End IfTextl .SetFocusEnd Sub
Private Sub Commandô, Click()Unload MeEnd Sub
'Public Sub bul2()
'Dim sorgu2, sorgu3'Set verilerim= New AOODB.Connection'verileriın.CursorLocation = adUseClient'baglanti = "provider=ınicrosft.jetoledb.4.0; data source=C:\Documents and Settings\Vedat\MyDocuments\GRdproject\kayitl .mdb"'verilerim. Open baglanti'Set depom = New AOODB.Recordset'sogu2 = " select * from tetkik"'Set depom = verilerim.Execute( sorgu2)'If depom.EOF Then'Labelzü.Caption = 1'Else'sorgu3 = "select max(sayicik) as say from tetkik"'Set depom= verilerim.Execute(sorgu3)'Label20.Caption = depom![say]'End If'depom.Close
'End Sub
Private Sub Textl_KeyPress(KeyAscii As Integer)Dim sorIf KeyAscii = 13 ThenKeyAscii = OSet verilerim= New AOODB.Connection
verilerim.CursorLocation = adUseClientbaglanti = "Provider=Microsoft.jet.oledb.4.0; Data Source=C:\Documents and Settingş'Vedat'My
Docrnnents\GRdproject\kayitl .mdb"verilerim.Open baglanti
sor= "select* from kayit2 where sayac= " + Textl.text + ""Set depom2 = verilerim.Execute(sor)If depom2.EOF ThenMsgBox ("Aradıgınız hasta kaydı bulunamadı ! Yeni Kayit Bölümünden Hasta Kaydını Yapınız")Textl.text= ""Textl .SetFocusDBGridl. Visible = FalseElseText2.text = depom2![adJText3.text = depom2![soyad]Text4.text = depom2![cinsiyeti]Text5.text = depoın2! [adres]Datal.RecordSource ="select* from tetkik where sayac=" + Textl.text+ ""Data 1 .RefreshDBGridl.Visible = TrueSet depoml = New ADODB.Recordset (II
Set depoml = verilerim.Execute("select count(sayac}as zar from tetkik where sayac=" + Textl.text+ "")Label20.Caption = depomll[zar]End IfEnd IfIf InStr(("1234567890" & vbBack & ""),Cbr(KeyAscii)) = O ThenKeyAscii =OEnd IfCommand2.Enabled = TrueCommand4.Enabled = FalseEnd SubPrivate Sub Datal_Reposition()Dim kayitno, kaysayikayitno = Datal .Recordset.AbsolutePositionkaysayi = Datal.Recordset.RecordCountDatal.Caption = Str(kayitno + 1) + "/" + Str(kaysayi)End SubPrivate Sub Cmdprint_Click()Dim soru As IntegerOn Error Resume Next
soru =MsgBox("Printerden çıktı almak istediğinizden emin misiniz? ?", vbYesNo)If soru = vbYes Then kayityazdirCoınmonDialogl.Action = 5 End Sub
Sub kayityazdir()Dim x As PrinterDim y, xl, x2, artimOn ErrorGoTo son
Printer.ScaleMode = 6Printer.FontName = "TimesNew Roman Tur"Printer.FontSize = 14y = 10: xl = 5: x2 = xl + 50: artim = 7
Printer.CurrentX = IPrınter.CurrentY = 2Printer.Print "HASTANIN.-TIBBLÖZGEÇMİŞt'.&_11 "&_Fonnat(Date, "Long.Date")Printer.Line (O, 9)-(Printer.ScaleWidth, 9) '
y =y+artimPrinter.CurrentX = xlPrinter.CurrentY = yPrinter.Print""
'! IfNot IsNufi(Label20.Caption) Then
y=y+artimPrinter.CurrentX = xlPrinter.CurrentY = yPrinter.Print "Ziyaret sayısı :"Printer.CurrentX = x2Printer.CurrentY = yPrinter.Print Label20.Caption
End If
If Not IsNull(Text 1 . text) Theny=y+artimPrinter.CurrentX = xlPrinter.CurrentY = yPrinter.Print "Dosyanumarası :"Printer.CurrentX = x2Printer.CurrentY = yPrinter.Print Textl .text
End IfIfNot IsNull(Text2.text) Then
y=y+artimPrinter.CurrentX = xlPrinter.CurrentY = yPrinter.Print "Adı ·"Printer.CurrentX = x2Pnnter.CurrentY = yPrinter.Print Text2.text
End IfIfNot IsNull(Text3.text) Then
y=y+artimPrinter.CurreııtX = xlPrinter.CurrentY = yPrinter.Print "Soy adı ·"Printer.CurrentX = x2Printer.CurrentY =yPrinter.Print Text3.textEnd If
'Factory'y: v+ artim'Printer.CurrentX = XI'Printer.CurrentY = y'Printer.Print "Factory Process;"
IfNot IsNull(Text4.text) Theny=y+artimPrinter.CurrentX = xlPrinter.CurrentY = yPrinter.Print "CinsiyetiPrinter.CurrentX = x2Printer.CurrentY = yPrinter.Print Text4.text
End IfIf Not IsNull(Text5.text) Then
y=y+artimPrinter.CurrentX = xlPrinter.CurrentY = yPrinter.Print "Adresi :"Printer.CurrentX = x2Printer.CurrentY = yPrinter.Print Text5.text
End IfIfNot IsNull(DTPickerl.Value) Then
y=y+artimPrinter.CurreııtX = xlPrinter.CurrentY = yPrinter.Print "Kayıt tatihi :"Printer.CurreııtX = x2Printer.CurreııtY = yPrinter.Print DTPickerl.Value
End If
If Not IsNull(Text6.text) Theny=y+artimPrinter.CurrentX = xlPrinter.CurrentY = yPrinter.Print "Labaratuar sonçlan :"Printer.CurrentX = x2Printer.CurrentY = yPrinter.Print Text6.text
End If
If Not IsNull(Text7.text) Theny=y+artimPrinter.CurrentX = xlPrinter.CurrentY = yPrinter.Print "İdrar tekik :"Printer.CurrentX = x2Printer.CurreııtY = yPrinter.Print Text7.text
End IfIf Not IsNull(Text8.text) Then
y =y + artiınPrinter.CurrentX = xlPrinter.CurrentY = yPrinter.Print "Ekg :"Printer.CurrentX = x2Printer.CurrentY = yPrinter.Print Texts .text
End IfIf Not IsNull(Text9.text) Then
y=y+artimPrinter.CurrentX = xlPrinter.CurrentY = yPrinter.Print "Radyolojiktetkikler:"Printer.CurrentX = x2Printer.CurrentY = yPrinter.Print Text9.text
End If
Printer.Line (O, 140)-(Printer.ScaleWidth, 140)Printer.EndDocExit Subson:MsgBox "Error:" & Err.Description, lo, "Gozu~elli"End Sub
Private Sub Form;Unload(Cancel As Integer)Unload MeFonnl .Enabled= TrueFonnl.Show
End SubPrivate Sub Fonn_Activate()Textl .SetFocusCommand2.Enabled = FalseCommand4.Enabled = FalseFonnl .Enabled= FalseEnd Sub
6.FORM
Option ExplicitPrivate verilerim As AOODB.ConnectionPrivate depomI As AOODB.RecordsetPrivate depom2, depom3, depom4 As AOODB.RecordsetPrivate depom As AOODB.RecordsetPrivate baglanti As StringPrivate Sub Comınandl_Click()Textl.text= ""Text2.text = ""Text3.text = ""Text-l.text= '"'Tex15.text "" '"'Text6.text = '"'Text7.text = ""Text8.text = ""Text9.text = ""DTPickerI= DateTextI.SetFocusEnd Sub
Private Sub Command2_Click()Ifüptionl = True ThenDim sor, sqll, saText7.text = "O"sor =MsgBox("Hesap kaydı yapılsın mı?"; vblnfonnation + vbYesNo, "Kayıt")If sor = vbYes Then ııı
IfText6.text <>""Thensqll = "insert into muhasebeısayac, alınan, verecek, batar) values("sqll = sqll & "" & Textl.text & ","sqll = sqll & "" & Text7.text & ","sqll = sqll & "" & Text6.text & ","sqll = sqll & ""' & DTPickerl.Value & "')"verilerim.Execute (sql1)
MsgBox ("Hesap kayıtları yapıldı.")Textl .SetFocusOptionl.Visible = FalseOption2.Visible = TnıeElseMsgBox ("Hasta ile ilgili bütün alanları dolrur111")Text6.SetFocusEnd IfTextl .SetFocusEnd IfEnd If
If Optionz = True ThenDim so.sotSet verilerim= New AOODB.Connection
verileriın.CursorLocation = adUseClientbaglanti= "Provider-Microsoft.jet.oledb.3.51; Data Source=CrDocuments and Setting_s\Vedat\My
Documents\GRdproject\kayitl .mdb''verilerim. Open baglanti
so= "update muhasebe set verecek= verecek-" & Val(Text7.text)_& "where sayac= "+ Textl.text + ""sol = "update muhasebe set verecek= verecek+" & Val(Text6.text) & "where sayac= "+ Textl.text + ""Set depom4 = verilerim.Execute(so1)Set dcpom3 = verilerim.Execute so)MsgBox ("Hesap kayıtlan yapıldı.")Textl .SetFocusEnd IfEnd SubPrivate Sub Command5_Click()Unload MeEnd SubPrivate Sub Form_Load()connDim sayi, say, sa, sas As Currencysayi = Text6.textText6.text = Format(sayi; "###,###,###")say= Text7.textText7.text =Format(say, "###,###,###")sa= Text8.textText8.text = Format(sa, "###,###,###")sas = Val(Text9.text)Texts.text= Format(sas, "###,###,###")End SubPrivate Sub Textl_KeyPress(KeyAscii As Integer)Dim sorIf KeyAscii = 13 ThenKeyAscii = OSet verilerim= New AOODB.Connection
verilerim.CursorLocation = adUseClientbaglanti = "Provideı=Microsoft.jct.olcdb.3.51; Data Sourcc=C:\Documents and Settings\Vedat\My
Documents\GRdproject\kayit l .mdb"verilerim.Open baglanti
sor= "select* from kayit2 where sayac= "+ Textl.text + ""Set dcpom2 = vcrilerim.Execute(sor)If depoın2.EOF ThenMsgBox ("Aradıgınız hasta kaydı bulunamadı ! Yeni Kayit Bölümünden Hasta Kaydını Yapınız")Textl.text="" ıTextl. SetFocusElseTextz.text = deponı2!{ad]Text3.text = depom2![soyad]Texts.text= depoın2![cinsiyeti]Text5.text = depom2! [adres]Text6.text = ""Text7.text = ""Text8.text = ""'Set depoml = New AOODB.Recordset'Set depom I = verileriın.Execute("select * from muhasebe where sayac=" + Textl .Text+"")bul3Text6.SetFocusEnd IfEnd IfIflnStr(("l234567890" & vbBack & "")rC]ır(Ke}'Ascii))_=q ThenKcyAscii = OEnd IfEnd Sub
Private Sub Text6_LostFocus()Dima, b,cOn Error Resume Next
a= Val(Text9.text)b = Val(Text6.text)c=a+bText9.text = c'Text9.text = Fonnat(c, "###,###.TL")
End Sub
Private Sub Text7_lostfocus()Dim a, b, cOn Error Resume Nexta= Val(Text9.text)b = Val(Text7.text)C = a- bText8.text = c'Texts.text= Fonnat(c, "###,###.TL")
End SubPrivate Sub Texi6_KeyPress(KeyAscii As Integer)IfKeyAscii = 13 Then
KeyAscii = OSendKeys "{Tab}"
ElselfinStr(("l234567890" & vbBack & '"'),Clu{KeyAscii))= O ThenKeyAscii = O
End IfEnd SubPrivate Sub Text7_KeyPress(KeyAscii As Integer)If KeyAscii = 13 Then
Key/cscii > OSendK.eys"{Tab}"
ElselflnStr(("l234567890" & vbBack & ""), Clır(KeyAscii)) = O ThenKeyAscii = O
End IfEnd SubPublic Sub bul3()Dim sorgu2, sorgu3Set verilerim= New ADODB.Connectionverilerim.CursorLocation = adUseClientbaglanti = "Provider=Microsoft.jet.oledb.3.51; Data Source=C:\Documents and Settingswedat'MyDocuments\GRdproject\kayitl .mdb"verilerim.Open baglantiSet depom = New ADODB.Recordsetsorgu2 ="select* from muhasebe where sayac=" + Textl.text + ""Set depom= verilerim.Execute(sorgu2)If depom.EOF ThenMsgBox ("Bu hastanın daha önceden borcu bulunmamaktadır!")Text9.text = OOption2.Visible= FalseOption1. Visible= TrueOption!= TrueElseText9.text = depom![verecek]OptionI .Visible= FalseOption2.Visible = TrueOption2 = TrueEnd Ifdepom.CloseEnd Sub
Public Sub bul4()Dim sorgu2, sorgu3Set verilerim= New ADODB.Connectionverilerim.CursorLocation = adUseClientbaglanti = "Provider=Microsoft.jet.oledb.3.51; Data Source=C:\Documents and Settings;Vedat\MyDocuments\GRdproject\kayitl .mdb"verilerim.Open baglantiSet depom= New ADODB.Recordset
sorgu2 = " select * from muhasebe"Set depom= verilerim.Execute(sorgu2)If depom.EOF ThenMsgBox ("Bu hastanın daha öceden borcu bulunmamaktadır!")Elsesorgu3 = "select alınan from muhasebe"Set depom= verilerim.Execute(sorgu3)Texts.text = depom![alinan]- Val(Te}ı.18.te}ı.i)sorgu3 = "update mulıasebe set alinan="+ Text9.text +" where sayac"End Ifdepom.CloseEnd.SubPrivate Sub conn()Set verilerim= New ADODB.Conncction
verilerim.CursorLocation = adUseClientbaglanti = "provider=Microsoft.jet.oledb.3.51; Data Source=C:\Documents and Settingş\Vedat\My
Documents\GRdproject\kayitl .mdb"verilerim.Open baglanti
End Sub
Public Sub kas()DataReport3.RefreshEnd SubPrivate Sub Form_Unload(Cancel As Integer)
Unload MeForml .Enabled= TrueFormI.Show
End SubPrivate Sub Fonn_Activate()Forml.Enabled = FalseEnd Sub
7.FORM
Option ExplicitPrivate rst As New ADODB.RecordsetPrivate rstl As New ADODB.RecordsetPrivate rst2 As New ADODB.RecordsetPrivate rst3 As New ADODB.RecordsetPrivate cnn As New ADODB.ConnectionPrivate cmd As New ADODB.CommandPrivate Sub Commandl_Click()On Error Resume Next
Dim text, textr, texttDim textr 1 As DateIf OptionI= False And Option2 = False And 0ption3 = False OlenMsgBox ("Neye göre arama yapmak isterseniz seçiniz")ElseEnd If
Ifüptionl = True ThenText2.text = "" Text3.text = ""lfTextl.text •• '"' ThenMsgBox ("Soy adını giriniz!")Textl.SetFocusElse
Withcnn.CursorLocation = adUseClient.ConnectionString = "C:\Documents and Setting_s\Vedat\MyDocuments\GRdpı;_oiect\kaYitl.mdb".Provider= "Microsoft.Jet.OLEDB.3.51".OpenEnd Withtext ="select* from kayit2 where soyad="' & Textl.text & ""'
Set rst = cnn.Executeıtext)If rst.EOF ThenMsgBox "Bu soyadlı hasta kaydı bulunmamaktadır"Else ,Set DataGrid l .DataSource = rstDataGridl .Caption= "Soyada göre arama sonçları"DataGridl.Colunıns(O).Captioıı = "Adı"DataGridl .Columns(! ).Caption= "Soyadı"DataGridl .Colunıns(2).Caption = "Doğum tarihi"DataGridl.Columns(3).Caption = "Adresİ"DataGridI.Columns(4).Caption = "Kayıt tarihi"DataGridl.Columııs(5).Caption = "Dosyanumarası"DataGridl .Columnsröj.Caption= "Kan gurubu"DataGridl .Colunms(7).Caption = "Medeni durumu"DataGridl .Colunms(8).Caption = "Cinsiyeti"DataGridl.Columns(9).Caption = "Telefon numarası"DataGridl.Columns(lO).Caption = "Kimlik numarası"End IfEnd IfEnd IfIf0ption2 = True ThenTextl.text = ""Text3.text = '"'IfText2.text =""ThenMsgBox ("İsmi giriniz!")Text2.SetFocusElseWithcnn.Cursorl.ocation = adUseClient.ConnectionString = "C:\Documents and Settings\Vedat\My Docuınents\GRdproject\kayitl.mdb".Provider= "Microsoft.Jet.OLEDB.3.51".OpenEnd Withtextt ="select* from kayit2 where ad='" & Text2.text & "'"Set rstl = cnn.Execute(textt)Ifrstl.EOF ThenMsgBox "BuAdda hasta kaydı yoktur"ElseSet DataGridl .DataSource = rstlDataGridl.Caption = "Ada göre arama sonçları"DataGridl.Columns(O).Caption = "Adı"DataGridl.Columııs(l).Caption = "Soyadı"DataGridl .Columııs(2).Caption = "Doğum tarihi"DataGridl.Columns(3).Caption = "Adresİ"DataGridl.Colunms(4)üıption"' "Kayıt tarihi"DataGridl .Colunıns(5).Caption = "Dosya numarası"DataGridl.Coluınns(6).Caption = "Kan gurubu"DataGridl.Columns(7).Caption = "Medeni~u"DataGridl.Columns(8).Caption = "Cinsiyeti" .DataGridl.Colunıns(9).Caption = "Telefon numarası"DataGridl. Columns(10).Caption = "Kimlik numarası"End IfEnd IfEnd IfIf Option3 = True ThenText! .text.= ""Text2.text = ""IfText3.text =""ThenMsgBox ("Dosya numarasın giriniz!")Text3.SetFocusElseWith cnn.CursorLocation = adUseClient.ConnectionString = "C:\Documents and.Settings\Vedat\MyDocnmentslGR.dproj.eci~mdb".Provider= "Microsoft.Jet.OLEDB.3.51".OpenEnd With
textr = "select." from kayit2 where sayac = " & Text3.text & " "Set rst2 = cnn.Execute(textr)If rst2.EOF ThenMsgBox "Bu dosya numarasında hasta kaydı yoktur!"ElseSet DataGrid l .DataSource "' rst2DataGridl.Caption = "Dosya nuınarasına göre arama sonçları"DataGridl.Columns(O).Caption = "Adı"DataGridl .Colwnns(l ).Caption= "Soyadı"DataGridl.Cohuınıs(2).Caption = "Doğıınıtarihi"DataGridl .Columns(3).Caption = "Adresİ"DataGridl.Colwnns(4).Caption = "Kayıt tarihi"DataGridl.Colwnns(S).Caption = "Dosyanumarası"DataGridl .Columns(6).Caption = "Kan gurubu"DataGridl.Coluınns(7).Caption = ''Medeni~u"DataGridl .Coluınns(8).Caption = "Cinsiyeti"DataGridl.Coluınns(9).Caption = "Telefon numarası"DataGridl .Colurnns(lO).Caption= "Kimlik nuınarası"End IfEnd IfEnd IfEnd Sub
Private Sub Coınmand2_Click()Unload MeEnd Sub
Private Sub Forrn_Load()On Error Resuıne NextDim rst As New ADODB.RecordsetDim cıuı As New ADODB.ConnectionDim crud As New ADODB.Comrnand
With cnn.CursorLocation = adUseC!ient.CoıınectionString = "C:\Docuınents and Settings\Vedat\My Documents'Gkdprojectıkayitl.mdb''.Provider= "Microsoft.JetOLEDB.3.51".OpenEnd WithSet rst = cnn.Execute("Select * from kayit2")Set DataGridl .DataSource = rstDataGridl .Caption= "Kayıtlı olan tütn hastaların !fstesi"DataGridl.Columns(O).Caption = "Adı" ·DataGridl .Colwnns(l ).Caption= "Soyadı"DataGridl .Columns(2).Caption = "Doğum tarihi"DataGridl.Coluınns(3).Caption = "Adresi"DataGridl.Coluınns(4).Caption = "Kayıt tarihi"DataGridl.Colwnns(S).Caption = "Dosyanuınarası"DataGridl .Columns(6).Caption = "Kan gurubu"DataGridl.Columns(7).Caption = "Medeni.dııtumu"DataGridl.Columns(8).Caption = "Cinsiyeti" IDataGridl .Colunuıs(9).Caption = "Telefon numarası"DataGridl. Columns(I O).Caption = "Kimlik nuınarası"Select Case rst.RecordCountCase Is> ILabell .Caption = "Toplam " & Trinı(Str(rst.RecordCount)}& " hasta kayıtlıdır"Case Is= ILabel I.Caption= "Toplam " & Trinı(Str(rst.RecordCoıın.t).).&11.hastakay~Iıdır"Case Is= OLabell .Caption= "Kayıt Mevcut Değil"End SelectFonnl .Enabled= True
End Sub
'Private Sub Fonn_Unload(Cancel As Integer)' UnloadMe' Forml.Enabled = True'Forml.Show
'End Sub'Private Sub Fomı_Activate()'Forml.Enabled = False'End Sub
8.FORM
Option Explicit
Private Sub Commandl_Click()Unload MeEnd Sub
Private Sub Fomı_Unload(Cancel As.Integer)Unload Me .1
Forml.Enabled = TrueFonnl.Show
End SubPrivate Sub Fonn_Activate()Fonnl.Enabled = FalseEnd Sub
9.FORM
Option ExplicitPrivate verilerim As ADODB.ConnectionPrivate depom As ADODB.RecordsetPrivate depomI As ADODB.Re'frdsetPrivate depom2 As ADODB.RecordsetPrivate depo2 As ADODB.RecordsetPrivate depo4 As ADODB.RecordsetPrivate depo3 As ADODB.RecprdsetPrivate baglanti As StringPrivate arama
Private Sub CommandI_Click()Unload MeEnd Sub
Private Sub Textl_KeyPress(KeyAscii As Integer)Dim sor, sorl, sor2IfKeyAscii = 13 ThenKeyAscii =OSet verilerim= New ADODB.Connection
verilerim.CursorLocation = adUseClientbaglanti = "Provider=Microsoft.jet.oledb-4.Q;J)ata.&ıurce:eC:..\D.ocnmeutsancLSettings\\ledat\My
Documents\GRdproject\k:ayitl .mdb" )verilerim.Open baglanti
sor= "select* from kayit2 where sayac= "+ Textl.text + '"''sorl ="select* from kayit where sayac= "+ ~ + ""'sor2 = "select* from fizikmu where sayac= " + Textl .text+ ""Set depom2 = verileriın.Execute(sor)'Set depom3 = verilerim.Execute(sorl)'Set depom4 = verilerim.Execute(sor2)If depom2.EOF ThenMsgBox ("Aradıgımz hasta kaydı bulunamadı ! Yeni Kayit Bölümünden Hasta Kaydını Yapınız")Textl .text= "" · 1
Textl .SetFocusElse'If depom3.EOF Then'MsgBox ("Aradıgımz hastanın tıbbi özgeçmişkaydı bulunamadı ! Yeni Kayit Bölümünden Hasta Kaydım Yaı;ımz")'Textl.text = "" ·•'Text I .SetFocus
'Else'If depom4.EOF Then'MsgBox (11Aradıgınız hastanın fizik muayene bulguları kaydı bulunamadı ! Yeni Kayit Bölümünden Hasta KaydınıYapınız")'Textl .text= 1111
'Textl .SetFocus'DBGrid I.Visible = False'ElseText2.text = depom2! [ad]Text3.text = depom2![soyad]Text4.text = depom2![cinsiyeti]Text5.text = depom2! [adres]Text13.text = depom2![telno]Textl4.text = depom2!(kangur]Textl6.text = depom2![dogumtar]'Text6.text = depom3![hikayesi]'Text7.text = depom3!{sikayeti]'Text8.text = depom3![ailehas]'Text9.text = depoın3![alerji]'TextIO.text = depoın3 ! [aliskaıılik]'Textl I.text= depom4![sfınbulgu]'Textl2.text = depom4![ihtimali]'Textl5.text = depom4![tedavi]'depoın3.Closedepom2.Close'depom4.Close'End If'End IfEnd IfEnd IfIfinStr(("l234567890" & vbBack & 1111), Chr(KeyAscii)) = O Then
KeyAscii = OEnd If
End SubPrivate Sub Command2_Click()Text}.text= 1111
Text2.text = 11"
Text3.text = 1111
Text4.text = '"'Text5.text = 1111
Text6.text = 11"
Text7.text = 11"
Text8.text = 1111
Text9.text = 1111
TextlO.text = 1111
Textl I.text= "11
Textl2.text = ""Text13.text = 1111
Text14.text = 1111
Textl5.text = 1111
Textl6.text = 1111
Label24.Caption = 1111
Textl.SetFocus
End SubPrivate Sub Cmdprint_Click()Dim soru As IntegerOn Error Resume Nextsoru= MsgBox(11Printerden çıktı almak istediğinizden.emin.ınisiniz'Z?"~YhYfsNo)If soru = vbYes Then kayityazdirCommonDialogl.Action = 5End Sub
Sub kayityazdir()Dim x As PrinterDim y, xl, x2, artim
On Error GoTo son'Setup PrinterPrinter.ScaleMode "" 6Printer.FontName = "Times New Roman Tur"Printer.FontSize = 14y = 10: xl = 5: x2 = xl + 50: artiın = 7'headPrinter.CurreutX = IPrinter.CurrentY = 2Printer.Print "HASTAYA ÖZGÜN KAYITLAR" & " " & Format(Date, "Long__Date")Printer.Line (O, 9)-(Printer.ScaleWidth, 9)'start
y= y + artiınPrinter.CurrentX = xlPriııter.CurrentY = yPrinter.Print ""
'/IfNot IsNull(Labell 6.Caption) Then
y=y+artimPriııter.CurrentX = xlPrinter.CurrentY = yPrinter.Print "Adı ·"Priııter.CurrentX = x2Printer.CurrentY = yPrinter.Print TextI.text
End If
If Not IsNull(Text2.text) Theny = y+ artimPriııter.CurrentX = xlPriııter.CurrentY = yPrinter.Print "Soyadı ·"Priııter.CurrentX = x2Printer.Current¥= yPrinter.Print Text2.text
End IfIf Not IsNull(Text3.text) Then
y=y+artimPriııter.CurrentX = xlPrinter.CurrentY = yPrinter.Print "Cinsiyeti ·"Priııter.CurrentX = x2Priııter.CurrentY = yPrinter.Print Text3.text
End IfIf Not IsNull(Text4.text) Then
y"' y + artimPrinter.CurrentX = xlPrinter.CurrentY = yPrinter.Print "Adresi ·"Printer.CurrentX = x2Printer.CurrentY = yPrinter.Print Text4.textEnd If
'Factory'y = y + artim'Priııter.CurrentX = XI'Priııter.CurrentY = yPrinter.Print "Factory Process : "
If Not IsNull(Textl6.text) Theny=y+artimPriııter.CurrentX = xlPriııter.CurrentY = yPrinter.Print "Doğumtarihi:"Printer.CurrentX = x2Priııter.CurrentY = y
Printer.Print Textl 6. textEnd IfIfNot IsNull(Textl3.text) Then
y=y+artimPrinter.CurrentX = xlPrinter.CurrentY = yPrinter.Print "Telefonno ·"Printer.CurrentX = x2Printer.CurrentY = yPrinter.Print Text13.text
End IfIfNot IsNull(Textl4.text) Then
y = y+ artimPrinter.CurrentX = xlPrinter.CurrentY= yPrinter.Print "Kan gurubu ·"Printer.CurrentX= x2Printer.CurrentY= yPrinter.Print Text14.text
End IfIf Not IsNull(Text6.text)Then
y=y+artimPrinter.CurrentX= xiPrinter.CurrentY= yPrinter.Print "Hikayesi ·"Printer.CurrentX= x2Printer.CurrentY= yPrinter.Print Text6.text
End If
'y=y+artiın'Printer.CurrentX= XI'Printer.CurrentY= y'Printer.Print "Employee:"
If Not IsNull(Text7.text)Theny=y+artimPrinter.CurrentX= xlPrinter.CurrentY = yPrinter.Print "Şikayeti :"Printer.CurrentX = x2Printer.CurrentY= yPrinter.Print Text7.text
End IfIfNot IsNull(Text8.text)Then
y=y+artimPrinter.CurrentX= xlPrinter.CurrentY= yPrinter.Print "Ailevihastalıkları:"Printer.CurrentX= x2Printer.CurrentY= yPrinter.Print Text8.text
End If
IfNot IsNull(Text9.text)Theny=y+artimPrinter.CurrentX= xlPrinter.CurrentY= yPrinter.Print "Alerjisi : "Printer.CurrentX = x2Printer.CurrentY= yPrinter.Print Text9.text
End IfIf Not IsNull(Textl O.text) Then
y= y+ artimPrinter.CurrentX = xlPrinter.CurrentY=y
Printer.Print "Alışkanlıkları ·"Priııter.CurrentX = x2Priııter.CurrentY = yPrinter.Print Tex.tlO.text
End IfIfNot IsNull(Textl I.text) Then
y=y+artimPrinter.CurrentX = xlPrinter.CurrentY = yPrinter.Print "Sistemik..fızik mua}'ene.b~ları :"Printer.CurrentX = x2Printer.CurrentY = yPrinter.Print Text9.text
End IfIfNot IsNull(Textl2.text) Then
y=y+artimPrinter.CurreııtX = xlPrinter.CurrentY = yPrinter.Print "İhtimali tanı:"Printer.CurrentX = x2Printer.CurrentY = yPrinter.Print Textl2.text
End IfIfNot IsNull(Textl5.text) Then
y=y+artimPrinter.CurrentX = xlPrinter.CurrentY = yPrinter.Print "Tedavisi :"Printer.CurrentX = x2Printer.CurrentY = yPrinter.Print Textl5.text
End IfPrinter.Line (O, 140)-(Printer.ScaleWidtlı, 140)Printer.EndDocExit Subson:MsgBox "Error:" & Err.Description, 16~ ''Gözugfizelli"End Sub
Private Sub Comınand3_Click()Dim sorgu, sor, sor IIfTextl.text = ııt1 ThenMsgBox "Hastanın dosya numarasını giriniz!"Elsearama= Val(InputBox("Ziyaret sayisini.girinizrj)Set verilerinı = New ADODB.Connection .I
verilerim.CursorLocation = adUseClientbaglanti = "Provider=Microsoft.jet.oledb.4.0; Data Sourcô=Cı'Documents and Settingş\Vedat\MyDocuments\GRdproject\kayitl .mdb''verilerim.Open baglantisorl ="select* from kayit where sayac= "+ Textl.text + ti and gelsay=" & arama & t1ıı
sorgu= "select* from fızikmu where sayac=" + Textl.text + ti and sayil =" & arama & ""Set depo3 = verilerim.Execute(sorgu)Set depo4 = verilerim.Execute(sorl)If depo3.EOF ThenMsgBox ("Fizik muayene bulgularında bu ziyaret sayısında kaydı bulunamadı")ElseIf depo4.EOF ThenMsgBox ("Tıbbi özgeçmişi kayıtlarında bu ziyaret mımralı kayıt bulunamadı!")ElseTextö.text = depo4![hikayesi]Text7.text = depo4![sikayeti]Text8.text = depo4![ailehas]Text9.text = depo4![alerji]Label24.Caption = depo3![sayil]TextlO.text =depo4![aliskanlik]Textl I.text= depo3![sfmbulgu]
/
Textl2 = depo3![ihtimali]Textl5 = depo3![tedavi]depo3.Closedepo4.Close'depom2.Close'Coınmand4.Enabled = True'Command2.Enabled = FalseEnd IfEnd IfEnd If
End Sub
Private Sub Form_Unload(Cancel As ~teger)Unload MeForml .Enabled= TrueForml.Show
End SubPrivate Sub Fonn_Activate()Forml.Enabled = FalseEnd Sub
10. FORM
Option Explicit
Function derecedenradyana(DERECE As IntegerjAs SingleDim pi As Singlepi= Atn(l) * 4derecedenradyana = DERECE * pi I 180End FunctionPrivate Sub Form_Load()FonnlO.ShowPicturel.tOp = 1035Picture I.left = 1260Picture I .Height = 2175Picture I.Width= 2175Timerl .Interval= 1000Picture I.RefreshFonnlO.RefreshEnd SubPrivate Sub Form_Paint()Dim sani As IntegerDim sa As Integer, <lak As Integerkadran 'Saatin Kadranııu Çizsa = Hour(Time) 'Saat Değerini Windows'tan al<lak = Minute(Time) 'Dakika Değerini Windows'tan alsani = Second(Time) 'Saniye Değerini Windows'tan alIf sa> 12 Then sa= sa - 12 'Saati PM Cinsine çevirsa= (sa* 30) + Fix(dak I 12 * 5)' Saatin Kadrandaki Açısını Belirle
<lak = <lak * 6 ' Dakikanın Kadrandaki Açısını Belirlesani = sani * 6 ' Saniyenin Kadrandaki Açısını Belirle
gösterge sa, <lak, sani 'Açı değerlerini ÇizEnd SubSub gösterge(saat As Integer, dakika As Integer, san As Integer)Dim c As IntegerDim t As Single, k As Integer
Picturel.Cls 'Eski Çizimi Silk = 8: 'k :akrep yelkovanın kalınlığıc = l 00 'Akrep Yelkovanın boyuPicture I.Scale (-100, 100)-(100, -100) 'Eksenleıi.T3rmia
t = derecedenradyana(san)' saniye Açı değerini Radyana Çevir
' Saniye Çubuğu
Picturel.Line (c * Sin(t), c * Cos(t))-(0, O)
t = derecedenradyana( saat) 'Saat Açı Değerini Radyana Çevir
'Saat ÇizPicture I .Line (k * Cos(t), -k * Sin(t))-(-c I 5 * Siıı(t), -c I 5 * Cos(t))Picture I.Line (-k * Cos(t), k * Sin(t))-(-c I 5 * Siıı(t), -c I 5 * Cos(t))Picture I .Line (c I 1.5 * Sin(t), c I 1.5 * Cos(t)}(-k * Cosıt), k * Sin(t))Picture I.Line (k * Cos(t), -k * Sin(t))-(c I 1.5 * Sin(t), c I 1.5 * Cos(t))
t = derecedenradyana( dakika)
k =k I 2 Dakika Çubuğunda Kalınlığı azalt
'Dakika ÇizPicture I.Line (k * Cos(t), -k * Sin(t))-(-cii * Siıı(t),_--c._L5_* Cos(t))Picture I.Line (-k * Cos(t), k * Sin(t))-{-c I 5 * Sin(t), -c I 5 * Cos(t))Picture I.Line (c * Sin(t), c * Cos(t))-(-k * Cos(ı),J.5.: * Siıı(t))Picturel.Line (k * Cos(t), -k * Sin(t))-(c * Sin(t), c * Cos(t))End Sub'Private Sub Fomı_Unload(Cancel As Integer)'End'End SubPrivate Sub Timerl_Tiıner()Dim sani As IntegerDim sa As Integer, dak As Integersa =Hour(Time)dak = Minute(Tiıne)sani = Second(Tiıne)If sa> 12 Then sa= sa - 12sa= (sa* 30) + Fix(dak I 12 * 5)dak=dak*6sani = sani * 6gösterge sa, dak, saniEnd SubSub kadran()Dim a As Integer, b As Integer, c As IntegerDimi As Integer, t As Singlea= -10b= 10c=7cısScale (a, b)-(b, a)'Saniye Noktalarını ÇizFor i = O To 360 Step 6t = derecedenradyaııa(i)Line (c * Cos(t), c * Sin(t))-{( c + 0.1) * Cos(t), (c + 0.1) * Sifı.(t))NextForm 1 O .DrawWidth = 3 'Saat Noktalan Daha Kalın'Saat Noktalarını ÇizFor i = O To 360 Step 30t = derecedenradyana(i)Line (c * Cos(t), c * Sin(t))-((c + 0.2) * Cos(t), (c + 0.2) * Sin(t))NextFormlO.DrawWidth = 1 'Çizim Genişliğini eski haline getirEnd Sub
Private Sub Form_Unload(Cancel As Integer)Unload MeForm I .Enabled= TrueForm I.Show
End SubPrivate Sub Form_Activate()Form! .Enabled= FalseEnd Sub
SCREEN OUTPUT
MENUKayıt Muhasebe Arama Raporlar HalQQndaÇıkı~
!<c.~~j.R5i=1Ej;joFigure 1. Menu is interface the clinic program. Who to bring to gether user and clinic systemprocess.
~gurubunu seçiniz 3 Medenidurumu:fMedenidurum<,seç 3
lctni.Yeti sec i] !10oa2003 =-alıooa:2003
t,r.-start:j C,..J:!'Nü .. fl<:) Ye~ ha,,ta kayıt ~ Document!• Microso~. •. } f~-~ı 00;;3 'Figure2. New Record process is use when new patient record,delete,update,search process.
PATIENT MEDICAL AUTABIOGRAPHY· Hasta hakkında-;____,_ _:_ ~-·---------,
jıl I BugÜnüntarihi: i,1.08.2003 .iJ \1
f A~-- jılcdol I T<ıpia,ı:ı,iyaret$a)'ısı3 I!Soyadı : jGozı.ıt~u<t.,Uı I '
OzgeçmişiGeçirdiğihastalıklar.
Trafik iş kazalaıı
,-soy geçmişi·-·------------· ----- .---------------------,Aue~ihastalıkları -;-.1 IIAletii öyküsü . . !!
Alıikanlıkıan __J I
Ara Gürıcelle
,/;'Startj (9 MENÜ He Hastalık bilgileri -..!) s.creen-output - Microsof •.. ı l::4 Moonstar Türl<çe Dit Kriav ... f J~-ı~·oı:24~
Figure 3. Patient Medical autobiographyc is use patient autobiographical record,update,searchand printout process .
112082003 d
lziyaret sayısı:
.-Muayenebulgulan--~---·--·- ------'---------------ıı
Kanbasıncı:[
ihtimali tanı . ı~ . ,-------·----,:..._-~-----::,~
Figure 4. Physical cure and medical treatment process is to be serviciablerecord ,search,update and print out process.
- Hastahakkında------··------ :-]'
f Dosyano: I fBug;.jnk.i.i ta,ih h2.08.2003 .=J iI Adı I IJ Soyadı· : ilz;ya,et say,st ı:
l Cinsiyeti : \;
J
}I.
.
Tetkik ve t<ıhlı\ler
Labarat-uııar sonuçları:
lchatt,ıtkik ,--Ekg
A adyolojik tetkikle<
Figure 5. Study and analysisprocess is to be serviciablerecord analyserecord,update,searchand printout.
_,J.ı~.L~.l
)MuhaseberHastahakkında--·--------- --------------· -1ı_ ! Dos!.'<' no:- u------ ~nkü t"'ih: h2.08.2003 :::J 1·,1.·
11 Adı . iı I Soyadı : ;
1 j Cinsiyeti :
I rAdıesr--:- ,-------· l~~!.,J)
.(,star!{ Q1'-£NO jf4iı)Mııhasebe - _!Jooct.mentı -Micro~ j~,ıı oo74°ıi"°
Figure 6.Account process is to be serviceablerecord or update debtor patient process.
;
st-t'I Q MENÜ . l [O İca--;:;i; hasta arama Z.- llfl~ Ooçumentl - Microsoft •.. j~~----""""-- ...~ ~~- . . - . ___....Figure 7. Search process is use when doctor want any patient ID info.
•'
HASTALARIN HAKf<INDAKI GENEL RAPORLAR
DOSYA ADI SOYAD! CİNSİYETİ [IOGUl'vl ADRESİ
NUMARASITARİHi
Vedat Gözügüzetli Erkek 06.08.2003 şklsadşkl
2 Behcel lkş~ Erkek 07.06.2003 lklJl
••
~ . . . -1 £ jt 113 DataRepo;:;;:---- -~ screen-output - Mi ...•j li!.!'1.oonStarTür~eO...j ..,..JD!'Dproje j ;;-oı~-
Figure 8. List of all patient process is use when doctor want see or printout all patient ID
records.
\.UTHENTIC REPORT
( D0$l'B n,;: ~I Adı ~,----- lreı9tonno·:·fSoyadı -~sayısı:j CinsiYeti'.'""' I jKan~ubu: J.............,_ _ _ \I
r~ r--c- __JI'
Diplomano: 8900953
Oeğjrmcnlik/Lefko~a
KKTCTelefon : 2323541Cep telefonu: 0533-863-0056 .i,
·-"'"'"'~ .~.J.
~~~!1-0~.E----JR•---~;,.. ..:--~..,)2=.~~ ..:.r:!::J.a~~~~-!?d~~-----.J •f.7ot~Figure 9. Authentic Report is show the patient specific records.Doctor can give printout.
GcizügüzelliKlinikProgramr1.0Heıtıangi Win~w~ S~etninde Tek:kultanııe:.*program olarak kultMıılır.
Teli Hakkı a> 2003 Vedat GÖZÜQÜZelİY"'aildjr.
f (:3u ürünün Lisanslı Kullanıcısı:: '_':. ,._ .-2 -:"-~-+ : .::·::: ·_o:_\' -- ·.:.:.~~~
.ı Dit ' ,,_.,Jl··/~); I @:ıL __.,....
;!; startl Q MENÜ l l"Grrooramhakk,nd-;---· ;.I!,) screen--QUtı:,ut• Mk:rosof. ;;.J ...., ı.,rvwv,a IFigure 1 O. About is show information who has done program and who user have licenced.
VII. REFERANCES
Courter Gini,Marquis Annette "Bilgisayar.Öğrenim Kılavuzu"1998,ALF A Basım Yayım Dağıtım, I .Basım.
Çömlekçi Mehmet "Visual basic temel kullanım klavuzu"1999,ALFA Basım Yayım Dağıtım,2.Başım.
İhsan Karagülle"Visual Basic6. O. 2.Baskı ve.Visual Basic6.0:Pro.2:baskrtürkmenJcitabeviyayaınlan"
Memik Yanık " Visual Basicö. O Profesyonel.sürüm"2000, Beta,, 2: Edition.
top related