• Tidak ada hasil yang ditemukan

BAB V PENUTUP

5.2 Saran

Sistem dapat dikembangkan menjadi sistem yang lebih kompleks lagi dengan menggabungkan beberapa sistem yang telah ada (integrated system), misalnya dengan menambahkan sistem akuntansi untuk proses penjualan dan pembelian.

DAFTAR PUSTAKA

Hariyanto, Bambang, Ir. 1999. Sistem Informasi, edisi kedua. Bandung : Informatika.

Jogiyanto, H. M. 1990. Analisis Dan Disain Sistem Informasi. Yogyakarta : Andi Kendall & Kendall.2003.Analisis dan Perancangan Sistem.Jakarta: PT. Indeks

Kelompok Gramedia.

Sholiq, 2005, Analisa & Perancangan Berorientasi Objek, Sekolah Tinggi Manajemen Informatika dan Teknik Komputer Surabaya, Surabaya.

Suhendar, A., S.Si & Gunadi, Hariman, S.Si., MT. 2002. Visual Modeling Menggunakan UML dan RATIONAL ROSE. Bandung : Informatika.

Universitas Airlangga, Perpustakaan. 2005.Perjalanan dari Masa ke Masa Menyongsong Era Teknologi Informasi dan Komunikasi. Surabaya:

Perpustakaan Universitas Airlangga.

Yuswanto, 2006, Pemrograman Dasar Visual Basic .Net, Prestasi Pustakaraya, Jakarta

BIODATA PENULIS

Nama : M. Fernaz Ardiansyah Alamat : Semampir Selatan 3A / 29

Surabaya

TTL : Jember, 04 Nopember 1984 Riwayat Pendidikan :

1990 – 1991 : TK AL-FURQAN, Jember 1991 – 1997 : SD AL-FURQAN, Jember 1997 – 2000 : SMP Negeri 2, Jember 2000 – 2003 : SMA Negeri 2, Jember

2003 – Sekarang : S1 SI STIKOM, Surabaya

Nama : Bayu Pramana Putra

Alamat : Jl. Bungur Gg. Tugu No. 93 Jember

TTL : Jember, 26 Maret 1985 Riwayat Pendidikan :

1990 – 1992 : TK AL-FURQAN, Jember 1992 – 1998 : SD AL-FURQAN, Jember 1998 – 2001 : SMP Negeri 1, Jember 2001 – 2004 : SMA Negeri 2, Jember 2004 – Sekarang : S1 SI STIKOM Surabaya 4 X 6

4 X 6

LAMPIRAN

LAMPIRAN 1 Listing Program :

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click TextBox2.Text.Substring(0, 1) = Chr(44) Or

TextBox2.Text.Substring(0, 1) = Chr(45) Or TextBox2.Text.Substring(0, 1) = Chr(46) Or TextBox2.Text.Substring(0, 1) = Chr(47) Then Label1.Text = "Login Invalid !!!"

Inherits System.Web.UI.Page Dim generateID_User As String

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

CType(FormView1.FindControl("DropDownList1"), DropDownList).Items.Add(tgl)

Next End With End Sub

Protected Sub FormView1_ItemInserting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.FormViewInsertEventArgs) Handles FormView1.ItemInserting

DropDownList).SelectedIndex + 1 & "/" &

CType(FormView1.FindControl("DropDownList1"), DropDownList).SelectedItem.Text & "/" &

CType(FormView1.FindControl("DropDownList3"),

.InsertParameters("hakAkses").DefaultValue = "member"

.InsertParameters("status").DefaultValue = "True"

End With

Response.Redirect("~\Default.aspx") End Sub

Protected Sub InsertCancelButton_Click(ByVal sender As Object, ByVal e As System.EventArgs)

Response.Redirect("~\Default.aspx") End Sub

End Class

Partial Class gallery

Inherits System.Web.UI.Page

Dim generateId_Comment As String = "comment" &

CStr(Year(Date.Today)) & CStr(Month(Date.Today)) &

CStr(Day(Date.Today)) & CStr(Hour(Date.Now)) &

CStr(Minute(Date.Now)) & CStr(Second(Date.Now))

Protected Sub Page_Load(ByVal sender As Object, ByVal e As

Protected Sub DataList1_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataListCommandEventArgs) Handles DataList1.ItemCommand

viewData(e)

GridView1.Visible = True GridView1.DataBind() End Sub

Sub viewData(ByVal e As DataListCommandEventArgs)

Dim xTemp As String = "~\galleri\" & e.CommandArgument Image1.Visible = True

Image1.ImageUrl = xTemp & ".jpg"

CType(FormView1.FindControl("Image2"), Image).ImageUrl = xTemp & ".jpg"

Session("idGambar") = e.CommandArgument End Sub

Protected Sub Repeater1_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.RepeaterCommandEventArgs) Handles Repeater1.ItemCommand

viewKategori(CType(e.Item.FindControl("LinkButton1"), LinkButton))

GridView1.Visible = False End Sub

Sub viewKategori(ByVal sender As Object) With AccessDataSource2

.SelectParameters(0).DefaultValue = sender.text .DataBind()

End With End Sub

Protected Sub FormView1_ItemInserted(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.FormViewInsertedEventArgs) Handles FormView1.ItemInserted

MultiView1.ActiveViewIndex = 0 GridView1.DataBind()

End Sub

Protected Sub FormView1_ItemInserting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.FormViewInsertEventArgs) Handles FormView1.ItemInserting

Protected Sub InsertCancelButton_Click(ByVal sender As Object, ByVal e As System.EventArgs)

Response.Redirect("~\gallery.aspx") End Sub

End Class

Partial Class berita

Inherits System.Web.UI.Page

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load (Server.MapPath("~/arsipBerita/") & Eval("isiBerita")) Dim xstring() As String = Split(xorisinil, ".")

Session.Item("idBerita") = sender.commandargument Server.Transfer("~/detailBerita.aspx")

End Sub

Function getIsi() As String

Inherits System.Web.UI.Page

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click TextBox2.Text.Substring(0, 1) = Chr(44) Or

TextBox2.Text.Substring(0, 1) = Chr(45) Or TextBox2.Text.Substring(0, 1) = Chr(46) Or TextBox2.Text.Substring(0, 1) = Chr(47) Then Label1.Text = "Login Invalid !!!"

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

CType(Master.FindControl("MultiView1"), Inherits System.Web.UI.Page Dim xyz As String

Dim conn As OleDbConnection

Dim dbPerintah As New OleDbCommand Sub dbKoneksi()

dbPerintah.CommandText = "SELECT jnsKelamin FROM dataAccount where idUser='" & Session.Item("user") & "'"

xyz = dbPerintah.ExecuteScalar If xyz = "True" Then

CType(FormView1.FindControl("RadioButtonList1"), RadioButtonList).SelectedIndex = 0

Else

CType(FormView1.FindControl("RadioButtonList1"), RadioButtonList).SelectedIndex = 1

End If

conn.Close() End Sub

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

Protected Sub FormView1_ItemUpdated(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.FormViewUpdatedEventArgs) Handles FormView1.ItemUpdated

cek() End Sub

Protected Sub FormView1_ItemUpdating(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.FormViewUpdateEventArgs) Handles FormView1.ItemUpdating

Protected Sub FormView2_ItemUpdated(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.FormViewUpdatedEventArgs) Handles FormView2.ItemUpdated

Response.Redirect("~\restricted\default.aspx") End Sub

Protected Sub FormView2_ItemUpdating(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.FormViewUpdateEventArgs) Handles FormView2.ItemUpdating

Protected Sub UpdateCancelButton_Click1(ByVal sender As Object, ByVal e As System.EventArgs)

MultiView1.ActiveViewIndex = 1 End Sub

Protected Sub UpdateCancelButton_Click(ByVal sender As Object, ByVal e As System.EventArgs)

MultiView1.ActiveViewIndex = 0 End Sub

End Class

mports System.IO

Partial Class xAdmin_maintainBerita Inherits System.Web.UI.Page Dim generateID_Berita As String

Dim generateIsi_Berita As String = "news" &

CStr(Year(Date.Today)) & CStr(Month(Date.Today)) &

CStr(Day(Date.Today)) & CStr(Hour(Date.Now)) &

CStr(Minute(Date.Now)) & CStr(Second(Date.Now)) & ".txt"

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

If Session("user") <> "" Then

If Request.QueryString("mode") = "logout" Then

Session.Clear()

Response.Redirect("~/restricted/restricted.aspx") End If

End Sub

Protected Sub FormView1_ItemInserted(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.FormViewInsertedEventArgs) Handles FormView1.ItemInserted

Dim xText As FreeTextBoxControls.FreeTextBox = _ CType(FormView1.FindControl("FreeTextBox2"), FreeTextBoxControls.FreeTextBox)

File.WriteAllText(Server.MapPath("~/arsipBerita/") &

generateIsi_Berita, xText.Text) GridView1.DataBind()

Response.Redirect("~/restricted/maintainBerita.aspx") End Sub

Protected Sub FormView1_ItemInserting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.FormViewInsertEventArgs) Handles FormView1.ItemInserting

generateID_Berita = "news" & CStr(Year(Date.Today)) &

CStr(Month(Date.Today)) & CStr(Day(Date.Today)) &

CStr(Hour(Date.Now)) & CStr(Minute(Date.Now)) &

CStr(Second(Date.Now))

With AccessDataSource3

.InsertParameters("idBerita").DefaultValue = generateID_Berita

.InsertParameters("tglBerita").DefaultValue = Date.Now .InsertParameters("jdlBerita").DefaultValue =

Protected Sub FormView2_ItemUpdated(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.FormViewUpdatedEventArgs) Handles FormView2.ItemUpdated

GridView1.DataBind()

Response.Redirect("~/restricted/maintainBerita.aspx") End Sub

Protected Sub FormView2_ItemUpdating(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.FormViewUpdateEventArgs) Handles FormView2.ItemUpdating

Protected Sub GridView1_RowUpdated(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewUpdatedEventArgs) Handles GridView1.RowUpdated

Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles

GridView1.SelectedIndexChanged FormView2.DataBind()

CType(FormView2.FindControl("FreeTextBox3"), FreeTextBoxControls.FreeTextBox).Text = _

System.IO.File.ReadAllText(Server.MapPath("~/arsipBerita/") &

getIsi_Berita()) End Sub

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click

MultiView1.ActiveViewIndex = 1 End Sub

Function getIsi_Berita() As String Dim isiBerita As String

Protected Sub InsertCancelButton_Click(ByVal sender As Object, ByVal e As System.EventArgs)

Response.Redirect("~/restricted/maintainBerita.aspx") End Sub

Protected Sub UpdateCancelButton_Click(ByVal sender As Object, ByVal e As System.EventArgs)

Response.Redirect("~/restricted/maintainBerita.aspx") End Sub

End Class

Imports Microsoft.VisualBasic Imports System.Data

Imports System.Data.OleDb Imports System.Drawing

Partial Class xAdmin_maintainGallery Inherits System.Web.UI.Page Dim conn As OleDbConnection

Dim dbPerintah As New OleDbCommand

Dim generateID_Galleri As String = "galleri" &

CStr(Year(Date.Today)) & CStr(Month(Date.Today)) &

CStr(Day(Date.Today)) & CStr(Hour(Date.Now)) &

CStr(Minute(Date.Now)) & CStr(Second(Date.Now))

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

Response.Redirect("~/restricted/restricted.aspx") End If

Image1.Visible = False End Sub

Sub viewDetail(ByVal e As DataListCommandEventArgs) Dim xTemp As String = e.CommandArgument

Image1.Visible = True Image1.ImageUrl = xTemp End Sub

Sub insertData(ByVal e As RepeaterCommandEventArgs) Dim xFile As FileUpload =

& generateID_Galleri & ".jpg"))

Dim xthumb As New Bitmap(100, 100) With xbitmap

xthumb = .GetThumbnailImage(100, 100, Nothing, IntPtr.Zero)

xthumb.Save(Server.MapPath("~/thumbGalleri/" &

generateID_Galleri & ".jpg"), Imaging.ImageFormat.Jpeg) .Dispose()

End With

DataList1.DataBind() End If

End Sub

Protected Sub Repeater1_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.RepeaterCommandEventArgs) Handles Repeater1.ItemCommand

If e.CommandName = "Insert" Then insertData(e)

Else

viewKategori(CType(e.Item.FindControl("LinkButton1"), LinkButton))

End If End Sub

Sub viewKategori(ByVal sender As Object) With AccessDataSource3

.SelectParameters(0).DefaultValue = sender.text .DataBind()

End With End Sub

Protected Sub DataList1_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataListCommandEventArgs) Handles DataList1.ItemCommand

viewDetail(e) End Sub

Protected Sub LinkButton1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LinkButton1.Click

MultiView1.ActiveViewIndex = 1 End Sub

Protected Sub LinkButton2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LinkButton2.Click

Response.Redirect("~\restricted\maintainGallery.aspx") End Sub

Protected Sub InsertCancelButton_Click(ByVal sender As Object, ByVal e As System.EventArgs)

Response.Redirect("~\restricted\maintainGallery.aspx") End Sub

Protected Sub FormView1_ItemInserted(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.FormViewInsertedEventArgs) Handles FormView1.ItemInserted

"Data Source=" &

Server.MapPath("../App_Data/dbKP.mdb")) conn.Open()

End Sub

Protected Sub FormView1_ItemInserting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.FormViewInsertEventArgs) Handles FormView1.ItemInserting

"galleri_" & ngCounter + 1 End With Inherits System.Web.UI.Page Dim conn As OleDbConnection

Dim dbPerintah As New OleDbCommand

Dim generateIsi_Jawab As String = "jawab" &

CStr(Year(Date.Today)) & CStr(Month(Date.Today)) &

CStr(Day(Date.Today)) & CStr(Hour(Date.Now)) &

CStr(Minute(Date.Now)) & CStr(Second(Date.Now)) & ".txt"

Sub dbKoneksi()

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

Response.Redirect("~/restricted/restricted.aspx") End If

End Sub

Protected Sub FormView1_ItemUpdated(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.FormViewUpdatedEventArgs) Handles FormView1.ItemUpdated

Response.Redirect("~\restricted\maintainFAQ.aspx") End Sub

Protected Sub FormView1_ItemUpdating(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.FormViewUpdateEventArgs) Handles FormView1.ItemUpdating

dbPerintah.CommandText = "UPDATE dataFAQ SET subyek=('" &

CType(FormView1.FindControl("subyekTextBox"), TextBox).Text & "') WHERE idFAQ='" & CType(FormView1.FindControl("idFAQLabel"),

Label).Text & "'"

Dim xIsi_Jawab As FreeTextBoxControls.FreeTextBox = _ CType(FormView1.FindControl("FreeTextBox2"), FreeTextBoxControls.FreeTextBox)

File.WriteAllText(Server.MapPath("~/arsipJawab/") &

generateIsi_Jawab, xIsi_Jawab.Text) End Sub

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click

MultiView1.ActiveViewIndex = 1 End Sub

Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click

MultiView1.ActiveViewIndex = 0 End Sub

Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles

GridView1.SelectedIndexChanged FormView1.DataBind()

CType(FormView1.FindControl("FreeTextBox1"), FreeTextBoxControls.FreeTextBox).Text = _

System.IO.File.ReadAllText(Server.MapPath("~/arsipTanya/")

& getIsi_tanyaAwal()) End Sub

Protected Sub FormView2_ItemUpdated(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.FormViewUpdatedEventArgs) Handles FormView2.ItemUpdated

GridView2.DataBind()

Response.Redirect("~/restricted/maintainFAQ.aspx") End Sub

Protected Sub FormView2_ItemUpdating(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.FormViewUpdateEventArgs) Handles FormView2.ItemUpdating

Protected Sub GridView2_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles

GridView2.SelectedIndexChanged FormView2.DataBind()

CType(FormView2.FindControl("FreeTextBox3"), FreeTextBoxControls.FreeTextBox).Text = _

System.IO.File.ReadAllText(Server.MapPath("~/arsipTanya/")

& getIsi_tanyaAkhir())

CType(FormView2.FindControl("FreeTextBox4"), FreeTextBoxControls.FreeTextBox).Text = _

System.IO.File.ReadAllText(Server.MapPath("~/arsipJawab/")

& getIsi_jawabAkhir()) End Sub

Function getIsi_tanyaAwal() As String Dim isiTanya As String

End With

getIsi_tanyaAwal = isiTanya End Function

Function getIsi_jawabAwal() As String Dim isiJawab As String

Function getIsi_tanyaAkhir() As String Dim isiTanya As String

Function getIsi_jawabAkhir() As String Dim isiJawab As String

Protected Sub UpdateCancelButton_Click(ByVal sender As Object, ByVal e As System.EventArgs)

Response.Redirect("~\restricted\maintainFAQ.aspx") End Sub

Protected Sub UpdateCancelButton_Click1(ByVal sender As Object, ByVal e As System.EventArgs)

Response.Redirect("~\restricted\maintainFAQ.aspx") End Sub

Protected Sub LinkButton1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LinkButton1.Click

MultiView1.ActiveViewIndex = 2 End Sub

Protected Sub FormView3_ItemUpdating(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.FormViewUpdateEventArgs) Handles FormView2.ItemUpdating

With AccessDataSource3 Inherits System.Web.UI.Page

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

Response.Redirect("~/restricted/restricted.aspx") End If

End Sub

Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles

GridView1.SelectedIndexChanged FormView1.DataBind()

CType(FormView1.FindControl("FreeTextBox1"), FreeTextBoxControls.FreeTextBox).Text =

System.IO.File.ReadAllText(Server.MapPath("~/arsipData/") &

getIsi_Data()) End Sub

Protected Sub FormView1_ItemUpdated(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.FormViewUpdatedEventArgs) Handles FormView1.ItemUpdated

GridView1.DataBind()

Response.Redirect("~/restricted/maintainData.aspx") End Sub

Protected Sub FormView1_ItemUpdating(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.FormViewUpdateEventArgs) Handles FormView1.ItemUpdating

System.IO.File.WriteAllText(Server.MapPath("~/arsipData/")

& getIsi_Data(), _

CType(FormView1.FindControl("FreeTextBox1"), FreeTextBoxControls.FreeTextBox).Text)

End Sub

Function getIsi_Data() As String Dim isiFile As String

Protected Sub UpdateCancelButton_Click(ByVal sender As Object, ByVal e As System.EventArgs)

Response.Redirect("~/restricted/maintainData.aspx") End Sub

mports System.IO

Partial Class member_FAQ

Inherits System.Web.UI.Page

Dim generateID_FAQ As String = "faq" & CStr(Year(Date.Today))

& CStr(Month(Date.Today)) & CStr(Day(Date.Today)) &

CStr(Hour(Date.Now)) & CStr(Minute(Date.Now)) &

CStr(Second(Date.Now))

Dim generateIsi_Tanya As String = "tanya" &

CStr(Year(Date.Today)) & CStr(Month(Date.Today)) &

CStr(Day(Date.Today)) & CStr(Hour(Date.Now)) &

CStr(Minute(Date.Now)) & CStr(Second(Date.Now)) & ".txt"

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

Function getIsi_Tanya() As String Dim isiTanya As String

End With

getIsi_Tanya = isiTanya End Function

Function getIsi_Jawab() As String Dim isiJawab As String

Public Sub getSubyek_FAQ(ByVal sender As Object, ByVal e As System.EventArgs)

Session.Item("subyek") = sender.commandargument Server.Transfer("~/detailFAQ.aspx")

End Sub

Protected Sub FormView1_ItemInserted(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.FormViewInsertedEventArgs) Handles FormView1.ItemInserted

Dim xIsi_Tanya As FreeTextBoxControls.FreeTextBox = _ CType(FormView1.FindControl("FreeTextBox1"), FreeTextBoxControls.FreeTextBox)

File.WriteAllText(Server.MapPath("~/arsipTanya/") &

generateIsi_Tanya, xIsi_Tanya.Text) Response.Redirect("~\faq.aspx") '

GridView1.DataBind() End Sub

Protected Sub FormView1_ItemInserting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.FormViewInsertEventArgs) Handles FormView1.ItemInserting

LAMPIRAN 2

Kartu Bimbingan Kerja Praktek

LAMPIRAN 3 Acuan Kerja

LAMPIRAN 4

Garis Besar Rencana Kerja Mingguan

LAMPIRAN 5

Kehadiran Kerja Praktek

Dokumen terkait