예제 #1
0
        private void bgWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            loadingTS.Visible        = false;
            dataGridView1.DataSource = crud.Dt;
            SetDataGrid setGrid = new SetDataGrid();

            setGrid.CreateHeader(dataGridView1, 6, "No, Kode Obat, Stock, Satuan, Stock Turunan, Satuan, EXPIRED", "10, 150, 75, 60, 75, 60, 100");
        }
예제 #2
0
        private void bgWorker_RunWorkerCompleted(object sender, System.ComponentModel.RunWorkerCompletedEventArgs e)
        {
            dataGridView1.DataSource = crud.Dt;
            SetDataGrid setGrid = new SetDataGrid();

            setGrid.CreateHeader(dataGridView1, 11, "ID Obat, Merek, Nama, Kategori, Tipe, Satuan Stock, Satuan Jual, Harga Pokok , Harga Jual, Margin Jual, Resep, Keterangan", "100,150,150,150,170,96,96,100,100,100,100,200");
            this.loadingTS.Visible = false;

            dataGridView1.Columns[7].DefaultCellStyle.Format = "c";
            dataGridView1.Columns[8].DefaultCellStyle.Format = "c";
        }
예제 #3
0
 private void recordLoad()
 {
     crud.Dt = crud.Select("tbl_tipe", "id_tipe,tipe,keterangan");
     dataGridView1.DataSource = crud.Dt;
     setCGrid.CreateHeader(dataGridView1, 2, "ID Tipe, Tipe, Keterangan", "75,100,168");
 }