Академический Документы
Профессиональный Документы
Культура Документы
�������� �������
������� � ������
������ ����
��.��� 2008, �������� ������, ������� ������ 8.5
8. 5
����� ������ ����� ������������ ��. 200.000,�
���������� ������ ��������� ����� ������ ������� ���������
���� ���������� ������� �������� �� ����� ���� �������� �� ����� ��� �
�� ���� 066 � 0525 � �47
� 47 (��� ��. ��� ��������)
�� ���� 156 � 000 � 250 � 2146 (������� ��. ��� ��������)
�� ��� � 013� � 0106 � 3038 � 504 (��� ��. ��� ��������)
������� ������� ����� �����/�������� (�� � ������������������.���)
������� ��� ����� � �����������71������.���
1
��������������������
����� ������ �� ��� � ������ � ��������� ����� ����� & �������
2
��������������������
����� ������ �� ��� � ������ � ��������� ����� ����� & �������
3
��������������������
����� ������ �� ��� � ������ � ��������� ����� ����� & �������
4
��������������������
����� ������ �� ��� � ������ � ��������� ����� ����� & �������
Imports System.Data.OleDb
End Sub
5
��������������������
����� ������ �� ��� � ������ � ��������� ����� ����� & �������
6
��������������������
����� ������ �� ��� � ������ � ��������� ����� ����� & �������
Sub DetailPesanan()
da = New OleDbDataAdapter("select detailpsn.kodebrg as [Kode
Barang],barang.namabrg as [Nama Barang],detailpsn.Tarif,jumlahpsn as Jumlah
from barang,detailpsn, pesanan where barang.kodebrg=detailpsn.kodebrg and
pesanan.nomorpsn=detailpsn.nomorpsn and pesanan.nomorpsn='" & ComboBox1.Text
& "'", Conn)
ds = New DataSet
da.Fill(ds)
DGV.DataSource = ds.Tables(0)
DGV.ReadOnly = True
DGV.Columns(0).Width = 150
DGV.Columns(1).Width = 250
DGV.Columns(2).Width = 75
DGV.Columns(3).Width = 75
End Sub
������� ����������� ������� ����������� ������� �������� ��������������� �������� ����� ������ ��������
������� ������������� ������� ���� ������ �������� ���� ������������� ������� ���� ����� �����������
7
��������������������
����� ������ �� ��� � ������ � ��������� ����� ����� & �������
������� ��������� ���������� ������ ���� ������ ���� ����� ������� ���� ������ ������ �������������������
��� �������� ���� � ��������� �
8
��������������������
����� ������ �� ��� � ������ � ��������� ����� ����� & �������
Sub Tampiltanggal()
Call Koneksi()
cmd = New OleDbCommand("select distinct tanggalPsn from Pesanan",
Conn)
rd = cmd.ExecuteReader
9
��������������������
����� ������ �� ��� � ������ � ��������� ����� ����� & �������
Do While rd.Read
ComboBox1.Items.Add(rd.Item(0))
ComboBox2.Items.Add(Format(rd.Item(0), "yyyy, MM, dd"))
ComboBox3.Items.Add(Format(rd.Item(0), "yyyy, MM, dd"))
Loop
End Sub
10
��������������������
����� ������ �� ��� � ������ � ��������� ����� ����� & �������
Exit Sub
Else
Laporan.Show()
Laporan.CRV.ReportSource = Nothing
Laporan.CRV.RefreshReport()
Laporan.CRV.SelectionFormula = "{Pesanan.tanggalPsn} in date
(" & ComboBox2.Text & ") to date (" & ComboBox3.Text & ")"
Laporan.CRV.ReportSource = "lap rincipsn mingguan.rpt"
End If
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
������� ������� ����������� ����� ��������� ����� ���� ����� ������� ��������������� ��������� ��������
������� ������� �������� ������� ������� ������ �� ����� ����
11
��������������������
����� ������ �� ��� � ������ � ��������� ����� ����� & �������
12
��������������������
����� ������ �� ��� � ������ � ��������� ����� ����� & �������
������ �
Imports System.Data.OleDb
Sub Tampiltanggal()
Call Koneksi()
cmd = New OleDbCommand("select distinct tanggalkrm from Pengiriman",
Conn)
rd = cmd.ExecuteReader
Do While rd.Read
ComboBox1.Items.Add(rd.Item(0))
ComboBox2.Items.Add(Format(rd.Item(0), "yyyy, MM, dd"))
ComboBox3.Items.Add(Format(rd.Item(0), "yyyy, MM, dd"))
Loop
End Sub
13
��������������������
����� ������ �� ��� � ������ � ��������� ����� ����� & �������
End Sub
14
��������������������
����� ������ �� ��� � ������ � ��������� ����� ����� & �������
15
��������������������
����� ������ �� ��� � ������ � ��������� ����� ����� & �������
16
��������������������
����� ������ �� ��� � ������ � ��������� ����� ����� & �������
Sub DetailPesanan()
da = New OleDbDataAdapter("select detailpsn.kodebrg as [Kode
Barang],barang.namabrg as [Nama Barang],detailpsn.Tarif,jumlahpsn as Jumlah
from barang,detailpsn, pesanan where barang.kodebrg=detailpsn.kodebrg and
pesanan.nomorpsn=detailpsn.nomorpsn and pesanan.nomorpsn='" & ComboBox1.Text
& "'", Conn)
ds = New DataSet
da.Fill(ds)
DGV.DataSource = ds.Tables(0)
17
��������������������
����� ������ �� ��� � ������ � ��������� ����� ����� & �������
DGV.ReadOnly = True
DGV.Columns(0).Width = 150
DGV.Columns(1).Width = 250
DGV.Columns(2).Width = 75
DGV.Columns(3).Width = 75
End Sub
18