Sie sind auf Seite 1von 34

TISSUE CULTURE INVENTORY

A mini project report submitted in partial fulfillment of


the requirements for the degree of
MASTER OF SCIENCE IN COMPUTER SCIENCE
T.PRADEEPA
( Reg. No. 12PCS046 )
Unde !"e #$%d&n'e o(
M. S.S"&n)&* M.S'.*
+.S.RAN#ASAMY COLLE#E OF ARTS AND SCIENCE
(AUTONOMOUS)
A''ed%!ed ,- NAAC* ISO .001/2000 Ce!%(%ed*
A((%1%&!ed !o Pe%-& Un%2e3%!- 4 S&1e5* In'1$ded $nde 2(() 6 127 o( U#C A'!* 1.86
TIRUC9EN#ODE 4 6:; 218
OCTO7ER 201:
+. S. RAN#ASAMY COLLE#E OF ARTS AND SCIENCE (AUTONOMOUS)
A''ed%!ed ,- NAAC* ISO .001/2000 Ce!%(%ed*
A((%1%&!ed !o Pe%-& Un%2e3%!- 4 S&1e5* In'1$ded $nde 2(() 6 127 o( U#C A'!* 1.86
TIRUC9EN#ODE 4 6:; 218
OCTO7ER 201:
7on&(%de <o) done ,-
T.PRADEEPA
( Reg. No. 12PCS046 )
A mini project report submitted in partial fulfillment of
the requirements for the degree of
MASTER OF SCIENCE IN COMPUTER SCIENCE
S%gn&!$e o( !"e #$%de 9e&d o( !"e De=&!5en!
S$,5%!!ed (o !"e V%2&>Vo'e E?&5%n&!%on "e1d on @@@@@@@@@@@@@@@@@@
In!en&1 E?&5%ne E?!en&1 E?&5%ne
SYNOPSIS
The project entitled ATISSUE CULTURE INVENTORYB is concerned with
computerization and maintained of the lab details.
The project is done using ASP.NET as the front -end tool and S! SE"#E"
$%%& as the bac'-end tool in #(S)A! ST)*(+ en,ironment. This application is
concern with media details- P." details- P(" details- 'illing details- stoc' details. The
main objecti,e of this application is to store and retrie,e the details of stoc' li'e
media stoc'- P." stoc' and generating the reports as per the date ,ice and wee' ,ice.
1. INTRODUCTION
1.1Co5=&n- Po(%1e
.reenwell /iotech Pri,ate !imited is a creation and dedicated effort of
highl0 e1perienced personalit0 in consolidation of our effort to a successful
growing future in micro propagation of Se,eral 2ommercial Plants. A .roup
+f 3ell E1perienced *irectors And 4oung Engineers (n +ur Technical Team
And E1perienced 5ands (n +ur ualit0 Assurance (s Assuring .ood Ser,ice
And Perfect Solution. The 2ompan0 5as A /usiness (nterests (n Agricultural-
5orticulture- 6orestr0 And 7edicinal Plant *e,elopment And Promoting
Throughout The 3orld. The 2ompan0 7aintains Stringent ualit0 Standards
And 2oupled 3ith The !atest "esearch 6indings (n The Technolog0 2an !a0
2laims To Superior 2loned Plants 3ith !owest !e,el +f "ejection. 3e Are
)tilizing Ad,antages +f 7icro Propagation Technolog0. Sincere Approach /0
4oung Engineers And E1perienced Technical Ad,isor0 /oard 6or *e,eloping
An (ndustr0 (n 2ore /iotech 6ield 3ith Their No,el Approach To .enerate A
/usiness +rganization- Suitable To The 2hanging Social Needs And
Prosperit0. 3e 5a,e Tissue 2ulture !aborator0 3ith Production 2apacit0 +f
Two 7illion Plants (n +ur +wn 5igh-tech !ab. 3e Are A .rowing /iotech
2ompan0 +f 5osur. 3e 5andle 6oreign Assignments As 3ell As *omestic
Assignments.
4ear of Establishment 8 $%99
!egal Status of 6irm 8 Pri,ate !imited compan0
Nature of /usiness 8 7anufacture- Trader
Number of Emplo0ees 8 $: to &% People
Turno,er 8 "s. &% !a'hs - 9 2ore
2. SYSTEM ANALYSIS
2.1. ECISTIN# SYSTEM
Still now the0 are wor'ing in e1cel is used to maintaining the media and
culture information and stoc' details. That data maintenance is too manuall0.
Add -delete and modif0 the records manuall0.
2.1.1 D&<,&')3 o( E?%3!%ng S-3!e5
2hances of errors
7ore manual wor'
+ccurrence of data redundanc0
7ore storage space
!ow processing speed
!ow le,el of securit0
"eports can;t be generated in time
2.2. PROPOSED SYSTEM
2.2.1 Ad2&n!&ge3 o( Po=o3ed S-3!e5
The proposed s0stem is maintaining data through our application.
The new approach helps in efficient data management and report
generation.
(t can chance few errors.
(t can;t more manual wor'.
(t can;t occurrence of data redundanc0.
5igh processing speed.
5igh le,el of securit0.
"eports can be generated in time.
:. MODULE DESCRIPTION
This application will access b0 to user administrator and emplo0ee. /ased on
their word module has been designed.
The application has se,en modules
7edia Store
P(" "oom
P." "oom
2lone <illing
2ulture *etails
Stoc' *etails
"eports
MEDIA STORE/
(n this module the media details and media disposal details are entered for
e,er0 process. This includes media code- wee'- da0- no. of bottles- c0cle no- batch no
And so on. The options li'e add- update and delete are a,ailable.
PIR ROOM/
(n this module contains P(" obser,ation and P(" return t0pe to be mention. (t
includes clone name- Tra0. No- media code- stage- transfer c0cle- No. of bottles- No.
of culture and so on should be included. Tra0 which is return from the P." also
entered in this module. The options li'e add- update- delete are a,ailable.
P#R ROOM/
(n this module contains P." Abser,ation- P." disposal and P." issue to be
mention. (t includes clone name- shift- room no- tra0 no- location- stage- no. of bottles-
no. of culture- c0cle no- contaminated t0pe and so on. The options li'e add- update-
delete- issued are a,ailable.
CLONE +ILLIN#/
(n this module contains 'illing details- 'illing histor0 to be mention. (t includes
wee'- da0- 'illing c0cle- no. of bottles and so on. The options li'e add- delete are
a,ailable.
CULTURE DETAILS/
(n this module clone initiation and culture details to be mention. (t includes
date- part0 name- ,ariet0- handling date- clone name and so on. The options li'e add-
delete- update are a,ailable.
STOC+ DETAILS/
(n this module media stoc'- P(" stoc'- P." stoc' and 'illing histor0 to be
mention.
REPORTS/
(n this report module the administrator will ,iew the date ,ice as well as wee'
,ice report to be seen.
4. TA7LE DESI#N AND DESCRIPTION
T&,1e No 4.1 Med%& De!&%13
T&,1e No 4.2 Med%& D%3=o3&1
T&,1e No 4.: PIR A,3e2&!%on
T&,1e No 4.4 PIR Re!$n
T&,1e No 4.8 P#R A,3e2&!%on
T&,1e No 4.6 P#R D%3=o3&1
T&,1e No 4.; +%11%ng De!&%1
T&,1e No 4.0 C$1!$e De!&%13
ENTITY RELATIONS9IP DIA#RAM/
DATA FLOD DIA#RAM/
LEVEL/ 0

LEVEL/ 1
LEVEL/ 2
SAMPLE CODIN#/
MEDIA STORE/
MEDIA DETAILS/
namespace TissueCulture
{
public partial class MediaDetails1 : System.Web.UI.Page
{
protected System.Web.UI.WebControls.Datarid Datarid1!
protected "oid Page#$oad%ob&ect sender' ("ent)rgs e*
{
i+ %,Page.IsPost-ac.*
{
t/is.Te0t-o01.Te0t 1
System.DateTime.2o3.ToS/ortDateString%*!
t/is.pnlCalendar.)ttributes.)dd%4style4'
4DISP$)5: none! P6SITI62: absolute4*!
7
Page.8egisterClientScript-loc.%4Script#Panel4 9 t/is.ID'
4:script; +unction 6n4 9 t/is.ID 9 4Clic.%* { i+%4 9
t/is.ID 9 4#pnlCalendar.style.display 11 <4none<4* 4
9 t/is.ID 9 4#pnlCalendar.style.display 1 <4<4! else 4
9 t/is.ID 9 4#pnlCalendar.style.display 1 <4none<4! 7
:=script;4*!
string s>l 1 4select ? +rom media#detail4!
string constring 1 4ser"er1P8)D((P)@PC!database1master!user
id1sa!pass3ord1adminadmin4!
S>lConnection con 1 ne3 S>lConnection%constring*!
S>lData)dapter myadapter 1 ne3 S>lData)dapter%s>l' con*!
DataSet ds 1 ne3 DataSet%*!
myadapter.Aill%ds' 4media#detail4*!
MyDatarid.DataSource 1 ds.TablesB4media#detail4C.De+aultDie3!
MyDatarid.Data-ind%*!

7

protected "oid -utton1#Clic.1%ob&ect sender' ("ent)rgs e*
{
S>lConnection con 1 %S>lConnection*)pplicationB4C624C!
S>lCommand cmd 1 ne3 S>lCommand%4insert into media#detail
"alues%Es#no'Edate'Emedia#code'E3ee.'Eday'Ecycle#no'Eno#bottle'Ebatc/#no*4
*!
cmd.Connection 1 con!
cmd.Parameters.)ddWit/Dalue%4Es#no4' Te0t-o0F.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Edate4' Te0t-o01.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Emedia#code4' DropDo3n$ist1.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Eday4' DropDo3n$istG.Te0t*!
cmd.Parameters.)ddWit/Dalue%4E3ee.4'Te0t-o0G.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Ecycle#no4'Te0t-o0H.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Eno#bottle4'Te0t-o0I.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Ebatc/#no4'Te0t-o0J.Te0t*!
con.6pen%*!
int c 1 cmd.(0ecute2onKuery%*!
i+ %c ; L*
{
$abel1.Te0t 1 48ecord inserted4!
7
else
{
$abel1.Te0t 1 48ecord not inserted4!
7
con.Close%*!
7
protected "oid -uttonI#Clic.%ob&ect sender' ("ent)rgs e*
{

Te0t-o0G.Te0t 1 string.(mpty!
Te0t-o0I.Te0t 1 string.(mpty!
Te0t-o0H.Te0t 1 string.(mpty!
Te0t-o0J.Te0t 1 string.(mpty!
Te0t-o0F.Te0t 1 string.(mpty!
7
protected "oid -uttonG#Clic.%ob&ect sender' ("ent)rgs e*
{
S>lConnection con 1 %S>lConnection*)pplicationB4C624C!
S>lCommand cmd 1 ne3 S>lCommand%4update media#detail set
media#code1Emedia#code'3ee.1E3ee.'day1Eday'cycle#no1Ecycle#no'no#bottle1En
o#bottle'batc/#no1Ebatc/#no 3/ere s#no1Es#no 4*!
cmd.Connection 1 con!
cmd.Parameters.)ddWit/Dalue%4Es#no4' Te0t-o0F.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Emedia#code4'DropDo3n$ist1.Te0t*!
cmd.Parameters.)ddWit/Dalue%4E3ee.4'Te0t-o0G.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Eday4'DropDo3n$istG.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Ecycle#no4'Te0t-o0H.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Eno#bottle4'Te0t-o0I.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Ebatc/#no4'Te0t-o0J.Te0t*!
con.6pen%*!
int c 1 cmd.(0ecute2onKuery%*!
i+ %c ; L*
{
$abel1.Te0t 1 48ecord Updated4!
7
else
{
$abel1.Te0t 1 48ecord not Updated4!
7
7
protected "oid -uttonM#Clic.%ob&ect sender' ("ent)rgs e*
{
S>lConnection con 1 %S>lConnection*)pplicationB4C624C!
S>lCommand cmd 1 ne3 S>lCommand%4delete +rom media#detail
3/ere s#no1Es#no4*!
cmd.Connection 1 con!
cmd.Parameters.)ddWit/Dalue%4Es#no4' Te0t-o0F.Te0t*!
con.6pen%*!
int c 1 cmd.(0ecute2onKuery%*!
i+ %c ; L*
{
$abel1.Te0t 1 48ecord deleted4!
7
else
{
$abel1.Te0t 1 48ecord not deleted4!
7
con.Close%*!
7
protected "oid -uttonM#Clic.1%ob&ect sender' ("ent)rgs e*
{
S>lConnection con 1 ne3 S>lConnection%4ser"er1P8)D((P)@
PC!database1master!user id1sa!pass3ord1adminadmin4*!
S>lCommand cmd 1 ne3 S>lCommand%4delete +rom media#detail
3/ere batc/#no1Ebatc/#no4*!
cmd.Connection 1 con!
cmd.Parameters.)ddWit/Dalue%4Ebatc/#no4'Te0t-o0J.Te0t*!
con.6pen%*!
int c 1 cmd.(0ecute2onKuery%*!
i+ %c ; L*
{
$abel1.Te0t 1 48ecord deleted4!
7
else
{
$abel1.Te0t 1 48ecord not deleted4!
7
7
7
7
MEDIA DISPOSAL/
namespace TissueCulture
{
public partial class MediaDisposal : System.Web.UI.Page
{
protected "oid Page#$oad%ob&ect sender' ("ent)rgs e*
{
string s>l 1 4select ? +rom media#disposal4!
string constring 1 4ser"er1P8)D((P)@PC!database1master!user
id1sa!pass3ord1adminadmin4!
S>lConnection con 1 ne3 S>lConnection%constring*!
S>lData)dapter myadapter 1 ne3 S>lData)dapter%s>l' con*!
DataSet ds 1 ne3 DataSet%*!
myadapter.Aill%ds' 4media#disposal4*!
MyDatarid.DataSource 1
ds.TablesB4media#disposal4C.De+aultDie3!
MyDatarid.Data-ind%*!
i+ %,Page.IsPost-ac.*
{
t/is.Te0t-o01.Te0t 1
System.DateTime.2o3.ToS/ortDateString%*!
t/is.pnlCalendar.)ttributes.)dd%4style4'
4DISP$)5: none! P6SITI62: absolute4*!
7

Page.8egisterClientScript-loc.%4Script#Panel4 9 t/is.ID'
4:script; +unction 6n4 9 t/is.ID 9 4Clic.%* { i+%4 9
t/is.ID 9 4#pnlCalendar.style.display 11 <4none<4* 4
9 t/is.ID 9 4#pnlCalendar.style.display 1 <4<4! else 4
9 t/is.ID 9 4#pnlCalendar.style.display 1 <4none<4! 7
:=script;4*!

7
protected "oid -utton1#Clic.%ob&ect sender' ("ent)rgs e*
{
S>lConnection con 1 %S>lConnection*)pplicationB4C624C!
S>lCommand cmd 1 ne3 S>lCommand%4insert into media#disposal
"alues%Edate'Emedia#code'E3ee.'Eday'Ecycle#no*delete +rom media#detail
3/ere media#code1Emedia#code4*!
cmd.Connection 1 con!
cmd.Parameters.)ddWit/Dalue%4Edate4'Te0t-o01.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Emedia#code4'DropDo3n$ist1.Te0t*!
cmd.Parameters.)ddWit/Dalue%4E3ee.4'DropDo3n$istG.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Eday4' DropDo3n$istM.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Ecycle#no4' DropDo3n$istI.Te0t*!

con.6pen%*!
int c 1 cmd.(0ecute2onKuery%*!
i+ %c ; L*
{
$abel1.Te0t 1 4Media Disposed4!
7
else
{
$abel1.Te0t 1 4Media not Disposed4!
7
con.Close%*!
7 7
7
PIR A7SERVATION/
namespace TissueCulture
{
public partial class PI8abser"ation : System.Web.UI.Page
{
protected "oid Page#$oad%ob&ect sender' ("ent)rgs e*
{
string s>l 1 4select ? +rom PI8#abser"e4!
string constring 1 4ser"er1P8)D((P)@PC!database1master!user
id1sa!pass3ord1adminadmin4!
S>lConnection con 1 ne3 S>lConnection%constring*!
S>lData)dapter myadapter 1 ne3 S>lData)dapter%s>l' con*!
DataSet ds 1 ne3 DataSet%*!
myadapter.Aill%ds' 4PI8#abser"e4*!
MyDatarid.DataSource 1 ds.TablesB4PI8#abser"e4C.De+aultDie3!
MyDatarid.Data-ind%*!
i+ %,Page.IsPost-ac.*
{
t/is.Te0t-o0M.Te0t 1
System.DateTime.2o3.ToS/ortDateString%*!
t/is.pnlCalendar.)ttributes.)dd%4style4'
4DISP$)5: none! P6SITI62: absolute4*!
7
Page.8egisterClientScript-loc.%4Script#Panel4 9 t/is.ID'
4:script; +unction 6n4 9 t/is.ID 9 4Clic.%* { i+%4 9
t/is.ID 9 4#pnlCalendar.style.display 11 <4none<4* 4
9 t/is.ID 9 4#pnlCalendar.style.display 1 <4<4! else 4
9 t/is.ID 9 4#pnlCalendar.style.display 1 <4none<4! 7
:=script;4*!

7
public "oid Multiply%*
{
int a' b!
bool is)Dalid 1 int.TryParse%Te0t-o0I.Te0t' out a*!
bool is-Dalid 1 int.TryParse%Te0t-o011.Te0t' out b*!
i+ %is)Dalid NN is-Dalid*
Te0t-o0H.Te0t 1 %a ? b*.ToString%*!
else
Te0t-o0H.Te0t 1 4In"alid input4!
7
protected "oid Te0t-o0I#Te0tC/anged%ob&ect sender' ("ent)rgs e*
{
Te0t-o011.Te0t 1 Te0t-o01L.Te0t!
Multiply%*!
7

protected "oid -utton1#Clic.%ob&ect sender' ("ent)rgs e*
{
S>lConnection con 1 %S>lConnection*)pplicationB4C624C!
S>lCommand cmd 1 ne3 S>lCommand%4insert into PI8#abser"e
"alues%Es#no'Edate'Etray#no'Eclone#name'Eoperator#code'Emedia#code'E3ee.'E
day'Eoperator#s/i+t'Estage'Etran+er#cycle'Eno#bottle'Eno#culture'Eused#bot
tle*4*!
cmd.Connection 1 con!
cmd.Parameters.)ddWit/Dalue%4Es#no4'Te0t-o0O.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Edate4'Te0t-o0M.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Etray#no4'Te0t-o01.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Eclone#name4'DropDo3n$istI.Te0t*!

cmd.Parameters.)ddWit/Dalue%4Eoperator#code4'DropDo3n$ist1.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Emedia#code4'DropDo3n$istM.Te0t*!
cmd.Parameters.)ddWit/Dalue%4E3ee.4'Te0t-o0P.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Eday4'DropDo3n$istJ.Te0t*!

cmd.Parameters.)ddWit/Dalue%4Eoperator#s/i+t4'DropDo3n$istG.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Estage4'DropDo3n$istH.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Etran+er#cycle4'Te0t-o0G.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Eno#bottle4'Te0t-o0I.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Eno#culture4'Te0t-o0H.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Eused#bottle4'Te0t-o0F.Te0t*!
con.6pen%*!
int c 1 cmd.(0ecute2onKuery%*!
i+ %c ; L*
{
$abel1.Te0t 1 48ecord inserted4!
7
else
{
$abel1.Te0t 1 48ecord not inserted4!
7
con.Close%*!

7
protected "oid DropDo3n$istH#SelectedInde0C/anged%ob&ect sender'
("ent)rgs e*
{
String stage 1 4Multiple4!
i+ %DropDo3n$istH.SelectedDalue 11 stage*
{
Te0t-o0G.Disible 1 true!
7
else
{
Te0t-o0G.Disible 1 +alse!
7
7
7
7
P#R A7SERVATION/
namespace TissueCulture
{
public partial class P8abser"ation : System.Web.UI.Page
{
protected "oid Page#$oad%ob&ect sender' ("ent)rgs e*
{
string s>l 1 4select ? +rom P8#abser"e4!
string constring 1 4ser"er1P8)D((P)@PC!database1master!user
id1sa!pass3ord1adminadmin4!
S>lConnection con 1 ne3 S>lConnection%constring*!
S>lData)dapter myadapter 1 ne3 S>lData)dapter%s>l' con*!
DataSet ds 1 ne3 DataSet%*!
myadapter.Aill%ds' 4P8#abser"e4*!
MyDatarid.DataSource 1 ds.TablesB4P8#abser"e4C.De+aultDie3!
MyDatarid.Data-ind%*!

i+ %,Page.IsPost-ac.*
{
t/is.Te0t-o01.Te0t 1
System.DateTime.2o3.ToS/ortDateString%*!
t/is.pnlCalendar.)ttributes.)dd%4style4'
4DISP$)5: none! P6SITI62: absolute4*!
7

Page.8egisterClientScript-loc.%4Script#Panel4 9 t/is.ID'
4:script; +unction 6n4 9 t/is.ID 9 4Clic.%* { i+%4 9
t/is.ID 9 4#pnlCalendar.style.display 11 <4none<4* 4
9 t/is.ID 9 4#pnlCalendar.style.display 1 <4<4! else 4
9 t/is.ID 9 4#pnlCalendar.style.display 1 <4none<4! 7
:=script;4*!

7
public "oid Multiply%*
{
int a' b!
bool is)Dalid 1 int.TryParse%Te0t-o0H.Te0t' out a*!
bool is-Dalid 1 int.TryParse%Te0t-o011.Te0t' out b*!
i+ %is)Dalid NN is-Dalid*
Te0t-o0J.Te0t 1 %a ? b*.ToString%*!
else
Te0t-o0J.Te0t 1 4In"alid input4!
7

protected "oid Te0t-o0H#Te0tC/anged%ob&ect sender' ("ent)rgs e*
{
Te0t-o011.Te0t 1 Te0t-o01L.Te0t!
Multiply%*!
7

protected "oid -utton1#Clic.1%ob&ect sender' ("ent)rgs e*
{
S>lConnection con 1 %S>lConnection*)pplicationB4C624C!
S>lCommand cmd 1 ne3 S>lCommand%4insert into P8#abser"e
"alues%Es#no'Edate'Eclone#name'E3ee.'Eday'Etrans+er#cycle'Es/i+t'Eroom#no'
Elea+#no'Elocation'Estage'Eoperator#code'Eno#bottle'Eno#culture'Ebatc/#no'
Ecycle#no*4*!
cmd.Connection 1 con!
cmd.Parameters.)ddWit/Dalue%4Etrans+er#cycle4' Te0t-o01M.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Es#no4' Te0t-o01G.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Edate4' Te0t-o01.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Eclone#name4' DropDo3n$ist1.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Eday4' DropDo3n$istG.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Es/i+t4' DropDo3n$istM.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Eroom#no4' DropDo3n$istI.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Estage4' DropDo3n$istH.Te0t*!
cmd.Parameters.)ddWit/Dalue%4E3ee.4' Te0t-o0O.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Elea+#no4' Te0t-o0G.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Elocation4' Te0t-o0M.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Eoperator#code4'
DropDo3n$istJ.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Eno#bottle4' Te0t-o0H.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Eno#culture4' Te0t-o0J.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Ebatc/#no4' Te0t-o0F.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Ecycle#no4' Te0t-o0P.Te0t*!
con.6pen%*!
int c 1 cmd.(0ecute2onKuery%*!
i+ %c ; L*
{
$abel1.Te0t 1 48ecord inserted4!
7
else
{
$abel1.Te0t 1 48ecord not inserted4!
7
con.Close%*!

7
protected "oid -uttonH#Clic.1%ob&ect sender' ("ent)rgs e*
{
S>lConnection con 1 %S>lConnection*)pplicationB4C624C!
S>lCommand cmd 1 ne3 S>lCommand%4update P8#abser"e set
date1Edate'clone#name1Eclone#name'day1Eday'Etrans+er#cycle's/i+t1Es/i+t'ro
om#no1Eroom#no'tray#no1tray#no'location1Elocation'stage1Estage'operator#co
de1Eoperator#code'no#bottle1Eno#bottle'no#culture1Eno#culture'batc/#no1Eba
tc/#no'cycle#no1Ecycle#no 3/ere s#no1Es#no4*!
cmd.Connection 1 con!
cmd.Parameters.)ddWit/Dalue%4Etrans+er#cycle4' Te0t-o01M.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Es#no4' Te0t-o01G.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Edate4' Te0t-o01.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Eclone#name4' DropDo3n$ist1.Te0t*!
cmd.Parameters.)ddWit/Dalue%4E3ee.4' Te0t-o0O.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Eday4' DropDo3n$istG.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Es/i+t4' DropDo3n$istM.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Eroom#no4' DropDo3n$istI.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Etray#no4' Te0t-o0G.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Elocation4' Te0t-o0M.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Estage4' DropDo3n$istH.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Eoperator#code4'
DropDo3n$istJ.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Eno#bottle4' Te0t-o0H.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Eno#culture4' Te0t-o0J.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Ebatc/#no4' Te0t-o0F.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Ecycle#no4' Te0t-o0P.Te0t*!
con.6pen%*!
int c 1 cmd.(0ecute2onKuery%*!
i+ %c ; L*
{
$abel1.Te0t 1 48ecord Updated4!
7
else
{
$abel1.Te0t 1 48ecord not Updated4!
7
con.Close%*!
7
protected "oid -uttonM#Clic.1%ob&ect sender' ("ent)rgs e*
{
S>lConnection con 1 %S>lConnection*)pplicationB4C624C!
S>lCommand cmd 1 ne3 S>lCommand%4delete +rom P8#abser"e 3/ere
s#no1Es#no4*!
cmd.Connection 1 con!
cmd.Parameters.)ddWit/Dalue%4Es#no4' Te0t-o01G.Te0t*!
con.6pen%*!
int c 1 cmd.(0ecute2onKuery%*!
i+ %c ; L*
{
$abel1.Te0t 1 48ecord Deleted4!
7
else
{
$abel1.Te0t 1 48ecord not Deleted4!
7
con.Close%*!
7
protected "oid -uttonI#Clic.1%ob&ect sender' ("ent)rgs e*
{
Te0t-o01G.Te0t 1 string.(mpty!
Te0t-o01.Te0t 1 string.(mpty!
Te0t-o0G.Te0t 1 string.(mpty!
Te0t-o0M.Te0t 1 string.(mpty!
Te0t-o0H.Te0t 1 string.(mpty!
Te0t-o0J.Te0t 1 string.(mpty!
Te0t-o0F.Te0t 1 string.(mpty!
Te0t-o0P.Te0t 1 string.(mpty!
Te0t-o0O.Te0t 1 String.(mpty!
7
protected "oid DropDo3n$istH#SelectedInde0C/anged%ob&ect sender'
("ent)rgs e*
{
String stage 1 4Multiple4!
i+ %DropDo3n$istH.SelectedDalue 11 stage*
{
Te0t-o01M.Disible 1 true!
7
else
{
Te0t-o01M.Disible 1 +alse!
7
7
7
7

P#R DISPOSAL/
namespace TissueCulture
{
public partial class P8disposal : System.Web.UI.Page
{
protected "oid Page#$oad%ob&ect sender' ("ent)rgs e*
{
try
{
S>lConnection conn 1 ne3 S>lConnection%4ser"er1P8)D((P)@
PC!database1master!user id1sa!pass3ord1adminadmin4*!
string comstr 1 4select
3ee.'day'cycle#no'tray#no'location +rom P8#abser"e4!
S>lCommand com 1 ne3 S>lCommand%comstr' conn*!
conn.6pen%*!
DropDo3n$ist1.DataSource 1 com.(0ecute8eader%*!
DropDo3n$ist1.DataTe0tAield 1 43ee.4!
DropDo3n$ist1.Data-ind%*!
DropDo3n$ist1.Items.Insert%L' ne3 $istItem%4@@3ee.@@4'
4L4**!
conn.Close%*!

conn.6pen%*!
DropDo3n$istG.DataSource 1 com.(0ecute8eader%*!
DropDo3n$istG.DataTe0tAield 1 4day4!
DropDo3n$istG.Data-ind%*!
DropDo3n$istG.Items.Insert%L' ne3 $istItem%4@@day@@4'
414**!
conn.Close%*!

conn.6pen%*!
DropDo3n$istM.DataSource 1 com.(0ecute8eader%*!
DropDo3n$istM.DataTe0tAield 1 4cycle#no4!
DropDo3n$istM.Data-ind%*!
DropDo3n$istM.Items.Insert%L' ne3 $istItem%4@@cycle
no@4' 4G4**!
conn.Close%*!
conn.6pen%*!
DropDo3n$istI.DataSource 1 com.(0ecute8eader%*!
DropDo3n$istI.DataTe0tAield 1 4tray#no4!
DropDo3n$istI.Data-ind%*!
DropDo3n$istI.Items.Insert%L' ne3 $istItem%4@@tray no@@4'
4M4**!
conn.Close%*!
conn.6pen%*!
DropDo3n$istH.DataSource 1 com.(0ecute8eader%*!
DropDo3n$istH.DataTe0tAield 1 4location4!
DropDo3n$istH.Data-ind%*!
DropDo3n$istH.Items.Insert%L' ne3 $istItem%4@@location@@4'
4I4**!
conn.Close%*!
7
catc/ %(0ception e0*
{
t/ro3 %e0*!
7

7
protected "oid -utton1#Clic.%ob&ect sender' ("ent)rgs e*
{
S>lConnection con 1 %S>lConnection*)pplicationB4C624C!
S>lCommand cmd 1 ne3 S>lCommand%4insert into P8#dispose
"alues%E3ee.'Eday'Ecycle'Etray#no'Elocation'Econtaminated#type*delete +rom
P8#abser"e 3/ere tray#no1Etray#no4*!
cmd.Connection 1 con!

cmd.Parameters.)ddWit/Dalue%4E3ee.4' DropDo3n$ist1.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Eday4' DropDo3n$istG.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Ecycle4' DropDo3n$istM.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Etray#no4' DropDo3n$istI.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Elocation4' DropDo3n$istH.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Econtaminated#type4'
DropDo3n$istJ.Te0t*!
con.6pen%*!
int c 1 cmd.(0ecute2onKuery%*!
i+ %c ; L*
{
$abel1.Te0t 1 4Media Disposed4!
7
else
{
$abel1.Te0t 1 4Media not Disposed4!
7
con.Close%*!
7

7
7
CULTURE DETAILS/
namespace TissueCulture
{
public partial class CultureDetails : System.Web.UI.Page
{
protected "oid Page#$oad%ob&ect sender' ("ent)rgs e*
{
7
protected "oid -utton1#Clic.%ob&ect sender' ("ent)rgs e*
{
S>lConnection con 1 ne3 S>lConnection%4ser"er1P8)D((P)@
PC!database1master!user id1sa!pass3ord1adminadmin4*!
S>lCommand cmd 1 ne3 S>lCommand%4insert into culture#detail
"alues%Eday'Eparty#name'E"ariety'E/andling#date'Eclone#name*4*!
cmd.Connection 1 con!

cmd.Parameters.)ddWit/Dalue%4Eday4'Te0t-o01.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Eparty#name4'Te0t-o0G.Te0t*!
cmd.Parameters.)ddWit/Dalue%4E"ariety4'DropDo3n$ist1.Te0t*!
cmd.Parameters.)ddWit/Dalue%4E/andling#date4'Te0t-o0M.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Eclone#name4' DropDo3n$istG.Te0t*!

con.6pen%*!
int c 1 cmd.(0ecute2onKuery%*!
i+ %c ; L*
{
$abel1.Te0t 1 48ecord inserted4!
7
else
{
$abel1.Te0t 1 48ecord not inserted4!
7
7
protected "oid -uttonI#Clic.%ob&ect sender' ("ent)rgs e*
{
Te0t-o01.Te0t 1 string.(mpty!
Te0t-o0G.Te0t 1 string.(mpty!
Te0t-o0M.Te0t 1 string.(mpty!

7
protected "oid -uttonG#Clic.%ob&ect sender' ("ent)rgs e*
{
S>lConnection con 1 ne3 S>lConnection%4ser"er1P8)D((P)@
PC!database1master!user id1sa!pass3ord1adminadmin4*!
S>lCommand cmd 1 ne3 S>lCommand%4update culture#detail set
party#name1Eparty#name'"ariety1E"ariety'/andling#date1E/andling#date'clone
#name1Eclone#name 3/ere date1Edate4*!
cmd.Connection 1 con!
cmd.Parameters.)ddWit/Dalue%4Edate4'Te0t-o01.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Eparty#name4' Te0t-o0G.Te0t*!
cmd.Parameters.)ddWit/Dalue%4E"ariety4' DropDo3n$ist1.Te0t*!
cmd.Parameters.)ddWit/Dalue%4E/andling#date4' Te0t-o0M.Te0t*!
cmd.Parameters.)ddWit/Dalue%4Eclone#name4' DropDo3n$istG.Te0t*!
con.6pen%*!
int c 1 cmd.(0ecute2onKuery%*!
i+ %c ; L*
{
$abel1.Te0t 1 48ecord Updated4!
7
else
{
$abel1.Te0t 1 48ecord not Updated4!
7
7
protected "oid -uttonM#Clic.%ob&ect sender' ("ent)rgs e*
{
STOC+ DETAILS/
MEDIA STOC+/
namespace TissueCulture
{
public partial class MediaStoc. : System.Web.UI.Page
{
protected System.Web.UI.WebControls.Datarid DataridG!

protected "oid Page#$oad%ob&ect sender' ("ent)rgs e*
{

i+ %,Page.IsPost-ac.*
{
S>lConnection conn 1 ne3 S>lConnection%4ser"er1P8)D((P)@
PC!database1master!user id1sa!pass3ord1adminadmin4*!
try
{
string comstr 1 4select media#code +rom media#detail4!
S>lCommand com 1 ne3 S>lCommand%comstr'conn*!

conn.6pen%*!
DropDo3n$ist1.DataSource 1 com.(0ecute8eader%*!
DropDo3n$ist1.DataTe0tAield 1 4media#code4!
DropDo3n$ist1.DataDalueAield 1 44!
DropDo3n$ist1.Data-ind%*!
DropDo3n$ist1.Items.Insert%L' ne3 $istItem%4@@@)$$
M(DI)#C6D(@@@4' 4L4**!
conn.Close%*!

7
catc/ %(0ception e0*
{
t/ro3 %e0*!
7
7
string s>l 1 4select ? +rom media#detail4!
string constring 1 4ser"er1P8)D((P)@PC!database1master!user
id1sa!pass3ord1adminadmin4!
S>lConnection con 1 ne3 S>lConnection%constring*!
S>lData)dapter myadapter 1 ne3 S>lData)dapter%s>l' con*!
DataSet ds 1 ne3 DataSet%*!
myadapter.Aill%ds' 4media#detail4*!
DataridG.DataSource 1 ds.TablesB4media#detail4C.De+aultDie3!
DataridG.Data-ind%*!
string s>l1 1 4select ? +rom media#disposal4!
string gridstring 1 4ser"er1P8)D((P)@PC!database1master!user
id1sa!pass3ord1adminadmin4!
S>lConnection con1 1 ne3 S>lConnection%gridstring*!
S>lData)dapter myadapter1 1 ne3 S>lData)dapter%s>l1' con1*!
DataSet ds1 1 ne3 DataSet%*!
myadapter1.Aill%ds1' 4media#disposal4*!
Datarid1.DataSource 1
ds1.TablesB4media#disposal4C.De+aultDie3!
Datarid1.Data-ind%*!
7
7

7
P#R STOC+/
namespace TissueCulture
{
public partial class P8stoc. : System.Web.UI.Page
{
protected "oid Page#$oad%ob&ect sender' ("ent)rgs e*
{
string s>l 1 4select
3ee.'day'room#no'clone#name'stage'trans+er#cycle +rom P8#abser"e4!
string constring 1 4ser"er1P8)D((P)@PC!database1master!user
id1sa!pass3ord1adminadmin4!
S>lConnection con 1 ne3 S>lConnection%constring*!
S>lData)dapter myadapter 1 ne3 S>lData)dapter%s>l' con*!
DataSet ds 1 ne3 DataSet%*!
myadapter.Aill%ds' 4P8#abser"e4*!
MyDatarid.DataSource 1 ds.TablesB4P8#abser"e4C.De+aultDie3!
MyDatarid.Data-ind%*!
7
7
7
+ILLIN# 9ISTORY/
namespace TissueCulture
{
public partial class QillingStoc. : System.Web.UI.Page
{
protected "oid Page#$oad%ob&ect sender' ("ent)rgs e*
{
string s>l 1 4select ? +rom .illing#detail4!
string constring 1 4ser"er1P8)D((P)@PC!database1master!user
id1sa!pass3ord1adminadmin4!
S>lConnection con 1 ne3 S>lConnection%constring*!
S>lData)dapter myadapter 1 ne3 S>lData)dapter%s>l' con*!
DataSet ds 1 ne3 DataSet%*!
myadapter.Aill%ds' 4.illing#detail4*!
MyDatarid.DataSource 1
ds.TablesB4.illing#detail4C.De+aultDie3!
MyDatarid.Data-ind%*!
7
7
7

Das könnte Ihnen auch gefallen