• Tidak ada hasil yang ditemukan

Future work

Dalam dokumen Student information System (Halaman 45-56)

Chapter 7 Chapter 7 Conclusions

7.3 Future work

Manage student fee payment and discounts. lnformation on if the student needs financial aid and

otherdebt

management.

Manage all information related to rooms, mess, goods, etc. Track details of menu, reduce food expenses and optimize room allocation.

il4fPage

Maintain studenfs every day attendance period wise. Generate attendance retated reports ondemand for the stakeholders.

References

t.

https:/len.wikiped ia.org/wiki/Student_information_system,01.02. 19

2.

http://www.su.edu.bdl 12.02.19

3.

https://on line.visua l-paradigm.com l,AL.Og.L9

4.

https://www.w3schools.coml,LL.O2.L9

5.

http://stackoverflow.com/documentation/sqftop ics,L7.O2.L9

6.

http://sue786.su.ed u.Mlsonargaon _erp 1,03.04. 19

7.

https'.//univw.tutorialspoint.coml,Ol.O2.lg

8.

https://www.codecademy.com/,01.05.19

9.

https://www.academia.edu/20198034/STUDENf_INFORMATION_SySTEM_tTS_EFFtCAC Y-TOWARDS-STUDENT_TRACKING_PROGRAM,O1.O2. 19

10. https://opensis.com l,Og.OZ.l9

lL

https://wunr.tutorialspoint.com/asp.net/,25.04.19

12- htBs://vnrtrw.c-sharpcorner.com/technologies/asp-dot-net-programming ,05.02.19

Ii]. ht$://rrwrr.tutorialspoint.com/sq/,05.05.19

45[Page

Appendix

Source Code

Student Registration using 5UD[,l5.DAC;

using System;

using System.ColLections.Generic;

using System.Data.SqlClient;

using System.Linq;

using System.hleb;

using System.trleb. UI;

using System.Web. UI. htebControls;

namespace SUDHS. RegLogin

{ public partial

class StdntRegistnation

:

System.tleb.Ul.page

{

protected

void

Page_Load(object sender, EventArgs e) {

if

(llsPostBack)

t

BindDepartmentList( ) ; BindSessionList(

);

I

I

I

l.

l

private

void BindSessionlist()

t

AppDB db

=

new AppDB();

ddlSession.Datasource = db. GetSession( ) ; ddlSession. DataBind( ) ;

ddlSession.rtems.Add(new system.i*eb.ur.Hebcontrols.Listrtem("Arr",

"e"));

ddlSession.SeLectedValue

=,.0.,i )

private

void BindDepartmentlisto

{

AppDB db

=

net* AppDBOj

ddlDepartment. DataSource = db. GetDepartment( ) ; ddlDepartment. DataBind ( ) ;

)

protected

void

Regbtn_Click(object sender, EventArgs e)

{ string

Userlilame = txtUserName.Text;

int

DepartmentrD = convert. Tornt32 (ddlDepartment. Selectedvarue ) ;

int

SessionfD = Convert. Tolnt32(ddlsession. SelectedValue) ;

string Esail

= txtEmail.Text;

string

Contactilo = txtContactNo.Text;

ItSlPage

stning

LoginID =

txtloginlD.Text;

string

Password = txtpassrord.Text;

string

Confirmpassuord = txtConfirmpassword. Text;

lb1ltessage.Text

= ""i if

(Page.rsva1id)

{

if

(txtPassryord.

Text

! = txtConfirmpassword. Text)

{

lbl!&ssage.Text

=

"Password was

not

confinmed.

)

else

t

UserDB db

=

new UserOBO;

try

{

db. f nsertstdntUser (Userilame, DepartmentID, Enail,ContactNo, LoginID, password, Confirmpassword);

txtUserNane.Text

= "";

txtEmail.Text

= ""i

txtLoginlD.Text

= "";

lbll,tessage.Text

=

"Registration complete";

lbltbssage.CssClass

=

"alert-success,';

)

catch (SqlException ex)

t

//lbll{essage.Tert ='Connection Failed,,;

lbulessrye.Text = ex.l{essage;

)

Hffied

usirg SIIE.IIf;

usirg

Slrstet;

ucirg ger.Collections.

Generic;

usirg

Srst€r.Data;

usiry

S1rster. Oata.

Sqlclient;

usirg Slrste.IO;

usirg tfficr.Lfurq;

using

$rter.Text;

usirg lystet.hb;

usirg grstet-H.Ul;

usir6

gyster-Leb. UI. HebControls ;

usirg

Slrster.Xrl;

n-space

g.Xlis

t

t

SessionID,

4TfPage

public partial

class WebForml4

:

Systen.Heb.UI.page

{

protected

void

Page_Load(object sender, EventArgs

{ if

(!IsPostBack)

{

BindUser();

BindSessionListO;

BindCabinetlist(

);

BindCourse(

);

)

private void

BindCourseo

t

AppDB db

=

new AppDBO;

ddlCourse.Datasource = db.GetCourseO;

ddlCourse. DataBind( ) ;

)

private void

BindCabinetListo {

AppDB db

=

new AppDBO;

ddlCabinet.DataSource = db.GetCabinetO;

ddlCabinet . DataBind O ;

)

pnivate

void

BindUsero {

UserDB db

=

new UserDBO;

MyDataGridl.Datasource = db. Binduser(

);

i{yDataGridl . Data8lnd(

);

)

pnivate

void

BindSessionListo

t

UserDB db

=

new UserDBO;

ddlSession. DataSource = db. @tSessionsearch( ) ; ddlSession. BataBind( ) ;

ddlsession.rtems.Add(new system.!Fb.ur.Hebcontrols.Listrtem("All", ',0',));

ddlSession.SelectedVa]ue

=

"0',;

)

protected void btnFind_Click(object sender, EventArgs e)

{ int

SessionlD = Int32.parse(ddlSession.Selectedltem.Value);

AppDB db

=

new AppDBO;

ityDataGridl . Dat asou

rce

= db . GetstudentByse s sionrD ( ses sionrD ) ;

l@at*ridl

. DataBind ( ) ;

l

rublic

void btnSaveResult_Click(object sender, EventArgs e)

t

int

CabinetlD = fnt32.parse(ddlCabinet.SelectedValue);

e)

zl8lPace

TextBox;

TextBox;

TextBox;

int

CourselD = Int32.parse(ddlCourse.Selectedltem.Value);

StringBuilder :<ailResu1t

=

new StringBuilderO;

using

()Gll'Iriter uriter =

new )QrlTexttrlriter(new Stringhlriter(xm1Result]))

t

writer. t'IriteStartElerent( " publishResuLt,' ) ; foreach (Data€ridltea

roy in

t4yDataGridl.Items) {

uriter.

t{riteStartElesent(,' nesults', ) ;

string

UserID = l{yDataGridl. DataKeys [ror. Itemlndex] . ToString( ) ; TextBAx txtAssi ngqent = ron. Cells [1] . FindControl(',txtAs singment "

]

as

TextBox

txtclassTest

= rou.cells [ 2 J . Findcontror ( "txtcla s sTest "

)

as

TextBox trstAttendan€e = cot*. celIs [ 3 ] . Findcontrol ( "txtAttendan ce,.

]

as

TextBox

txtl{id

= no*.€e11s[4].FindControl(

"txtMid,,)

as TextBox;

TextBox

txtFinal

= rod.

cellsls].

Find€ontrol (

"txtFinal" )

as TextBox;

//writer.

WriteStartElement ( "minnute"

);

/,/writer . WniteAtt nibuteString( "MinID " , dk. Values [ "MinID" ] . ToString( ) ) ;

writer.

tdriteAttributestring(

" Std

ID',,

UserID. Trim( ) . ToString( ) ) ; writer. trlriteAttributeString ( "As s i n gment,',

trrtAssingnent. Text. Trim( ) .ToString( ) ) ;

writer.

tlriteAttributeString(

" C 1a s sTe st,', ffiClassTest.Text.Trim( ). Tostring( )

);

writer.

HriteAttributeString(

"Att end an ce',, rtAttendance. Text. Trim( ) . ToString( )

);

writer. lrlriteAttributeString( "llid

",

txt!,tid. Text . Trim( ) . ToString( ) ) ;

uriter.tlrriteAttributeStrlng(,,

Fina1 ",

*tf

inal. Text. Trim( ) .ToString( )

);

writer. WriteEndElement ( ) ;

writer. )

WriteEndElement ( ) ;

)

AppDB db = new AppDBO;

db.SaveResult(xmlResult.ToStringO, CabinetlD, CourselD);

Ibll,lessage.Text

=

"Successful1y

result

save',;

BindUser(

);

49[Fage

ResultsVis

using Stil{S.DAC;

using System;

us

ing

System. Collections. Genenic;

using System.Linq;

using System.tdeb;

using System.hleb.UI;

us

ing

System . Web . UI . HebControls;

namespace SUD{tlS

{ public partial

class lrtebForml3

:

Systen.Heb.UI.page

t

protected

void

Page_Load(object sender, EventArgs e) {

if

(!IsPostBack)

{

//BindUser ( ) ;

//BindSessionList (

);

Bindcabinetlist ( ) ; Bindcourse( )

i

int

UserID = Int32.parse(Request.Cookies[',UserID"].Value);

int

SessisnlD = Int32. Parse(Request.Cookies[ "SessionlD"] .Value) ;

if

(SessionlD == 6)

{

BindResult();

else

)

{ BindResultByStudent (UserID) ;

)

)

1

private void

BindResultByStudent(int UserID)

t

AppDB db

=

new AppDBO;

GridView2 . DataSource = db . Bi.ndResultByStudent ( UserID) ; 6ridView2.DataBind( ) ;

)

private void

BindResutto

{

AppDB db

=

new AppDBO;

GridVien2.DataSource = db.BindResult();

GridVien2. DataBind ( ) ;

)

fivate void

BindCourseo

{ lpFG

db

=

new AppDBO;

dlcourse.Datasource = db.GetCourse( ) ; dlCd.rse.DataBind();

dlcourse.rteas.Add(new systen.!'reb.ur.webcontrors.Listrtem(.Arl',, ,'g'.));

dlf-or"rse.Selectedr/a1ue =,'0" ;

5OlPage

4I

]

private void

BindCabinetlisto

{

AppDB db

=

new AppDBOj

ddlCabinet.Datasoupce = db.GetCabinet0;

ddlCabinet. DataBind( ) ;

//ddlCabinet.Items.Add(new System.l,leb.UI.WebControls.Listltem("A11",

"0"));

//ddlCabinet.SelectedValue

=

"0";

)

protected

void

GnidVieul-PagelndexChanging(object sender, GridViewPageEventArgs e)

{

GridView2.Pagelndex = e.Neurpagelndex;

BlndResultO;

Gridview2. DataBind( ) ;

)

protected void GridView2_RouCancelingEdit ( ob

ject

sender, Gridt iq(ancelEditEventArgs e)

{

Gridvier2.Editlndex

=

-1;

BidResult();

)

protected void

Gridlfis2-Rdleletirg(object

sender, GridllienDeleteEventArgs e)

{ )

retected ruid @(object

t ftiffi*-Etitlrk

=

e-ha*itlr.rtrr;

ri--rlt();

)

s€nder,

Eridtti#ditEventArgs

e)

fot€cterl wid @(object

serder, GridfrietdrpdateEventArgs e)

{ )

Fotected

void

GridVial_RffancelingEdit

( ob

ject

sender,

@e) t

SidLier2.Editlndex =

-1;

eirnesuftO;

I

fst€cted

void SearchResult_Click(object sender, EventArgs e)

{

turt

lrs€rlll

= Int32. parse( Request. Cookies [', Use rID " ] . Value) ;

irrt

sessisrrD = rnt32. parse ( Request. cookies [ " ses s ionrD " ] . Value ) ;

tut

CablrEtID

=

Int32. parse(ddlCabinet. Selectedltem.value ) ;

int

CourselD = Int32. Parse(ddlCourse.Selectedltem.Vatue)

;

rpp.B db

=

neu Ap$)8oi

a

51

lPage

+. -t

if(SessionlD==O)

t

GridVier2 . DataSource GridVieu2. DataBind( ) ; else

)

{

GridView2. Datasource f-oursefD, UsenID) ;

GridView2. DataBind( ) ;

)

= db.SearchResult(CabinetfD, CourselD);

= db.SearchResultByStudent(CabinetID,

)

Crcatebble

and store procedure

lrsE [DHS]

GD

/"*r** Object:

Table

Idbo].IDMS_Result] Script

Oate: 5/L5/2OL9 LLzLB:02 sET A}'SI-NULLS ON

GO

sET qJOTED_IDENTIFIER ON

@

SET AI{SI-PADDING ON

@

CEATE TABLE [dbo]. [DMS_ResuIt] (

IResultlD] [int]

IDENTIW(1,1) NoT NULL,

StudentlDl

[int]

NULL,

SessionlDl

[int]

NULL,

SessionDetailslDl

Iint]

NULL,

SessionDetailsNamel [varchar] (50) NULL,

CourselDl

Iint]

NULL,

Creditl Iftoat]

trtULL,

Assingmentl

Iint]

NLtL!_,

ClassTestl

Iint]

NULL,

Attendancel

Iint]

NULL,

[Hid] [int]

NULL,

[rinal] [int]

NULL,

[rarks]

As (((([Assingment]+[crassTest])+[Attendance])+[Mid])+[Fina1]), [cPA]

[float]

NULL,

[tuade]

[varchar] (19) NULL,

lstatusl Ibit]

NULL,

GIIAUT

[PK_DfiS_Result] pRII,itARy KEy CLUSTERED

lrsultlDl

ASC

ErH ilr-rDE(

= oFF, srATrsrrcs-NoREcoi,tpurE = oFF, TGN0RE_DUP_KEy = oFF,

rrri_ir{_r(r06 a [PrIxrY]

=

otl,

ALLOI,J_PAGE_LOCKS = ON) ON [PRIMARY]

u

PM

***+**/

I

F

52fPage

/i ___"-l15 0N , . -:l_IIENTIFIER

:

::---EDl,jRE ,:.,:

i :

-

',ac0iifiiT

in t.

t

,-i,

JI;

11f"

!r.j

,Tr

FItli

0ll

s3 I

a

I

J i:.,*r

0UTPriT

1

- . -iA\SACTION riu-Ll!

::rr if,JTO . .

SEL=CT

FRiJM i,'-,'', rr

END

TR,ql,i5ACTI0l.J IRAIiSACTIOT!

.,,'\'IT

!-,!tli:

86 75

:65

7g

-60

55 50 45 40 F:.-r

,

-r

;

80 75 7A 65 6A 55 50 45

s4l

Dalam dokumen Student information System (Halaman 45-56)

Dokumen terkait