Beispiel #1
0
 private void Barang_Load(object sender, EventArgs e)
 {
     App2.DoubleBuffered(dataGridView1, true);
     App.loadTable(dataGridView1, "SELECT * FROM barang");
     App.loadComboBox(comboBox1, "SELECT * FROM merk");
     dataGridView1.CurrentRow.Selected = false;
     this.ActiveControl = textBox9;
 }
Beispiel #2
0
        private void CetakUlangForm_Load(object sender, EventArgs e)
        {
            App2.DoubleBuffered(dataGridView1, true);
            App2.DoubleBuffered(dataGridView2, true);
            App.formatDataGridView(dataGridView1);
            App.formatDataGridView(dataGridView2);

            loadCetakTable(DateTime.Now.ToShortDateString());
        }
Beispiel #3
0
        private void Laporan_Load(object sender, EventArgs e)
        {
            App2.DoubleBuffered(dataGridView1, true);
            App2.DoubleBuffered(dataGridView2, true);
            DateTime tgl = DateTime.Now;

            //App.loadTable(dataGridView1, "SELECT * FROM penjualan WHERE Tanggal = '" + tgl.ToShortDateString() + "'");
            loadLaporanPenjualan(dataGridView1, tgl.ToShortDateString());
            label1.Text = "Tanggal: " + tgl.ToShortDateString();
        }
Beispiel #4
0
        private void PenjualanForm_Load(object sender, EventArgs e)
        {
            DateTime tgl = DateTime.Now;

            label1.Text = getFaktur(tgl);
            label4.Text = user;
            this.CenterToScreen();
            App2.DoubleBuffered(dataGridView1, true);
            App.formatDataGridView(dataGridView1);
            this.ActiveControl = textBox1;
        }
Beispiel #5
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="dtv"></param>
        /// <param name="search"></param>

        private void Form1_Load(object sender, EventArgs e)
        {
            this.Hide();
            Login login = new Login();

            login.ShowDialog();


            try
            {
                this.Show();
                if (App.toko == "kaos")
                {
                    this.BackColor = Color.LightBlue;
                    this.Text      = "Kaos";
                }
                else if (App.toko == "bh")
                {
                    this.BackColor       = Color.Pink;
                    this.BackgroundImage = Kaos.Properties.Resources.batik_rainbow;
                    this.Text            = "BH";
                }

                if (App.admin == false)
                {
                    button3.Enabled = false;
                    button7.Enabled = false;
                    button8.Enabled = false;
                    button7.Visible = false;
                    button8.Visible = false;
                }

                this.CenterToScreen();
                App.loadTable(dataGridView1, "SELECT * FROM barang WHERE Nama LIKE '%Hings%'");
                dataGridView1.Columns["HargaBeli"].Visible = false;
                App2.DoubleBuffered(dataGridView1, true);

                this.ActiveControl = textBox1;
            }
            catch (Exception)
            {
                MessageBox.Show("Password Salah");
            }
        }
Beispiel #6
0
        private void PembelianForm_Load(object sender, EventArgs e)
        {
            if (App.admin == false)
            {
                radioButton2.Checked             = true;
                radioButton1.Enabled             = false;
                label7.Visible                   = false;
                textBox4.Enabled                 = false;
                textBox4.Visible                 = false;
                dataGridView1.Columns[2].Visible = false;
            }

            label6.Text = user;
            App2.DoubleBuffered(dataGridView1, true);
            App.formatDataGridView(dataGridView1);
            textBox1.Text      = tgl.Day.ToString() + tgl.Month.ToString() + tgl.Year.ToString() + "-";
            this.ActiveControl = textBox1;
            textBox1.Select(textBox1.Text.Length, 0);
        }