Beispiel #1
0
        protected void handleBrowse()
        {
            string          query  = "select * from item";
            frmBrowse       browse = new frmBrowse("Item", query);
            DataGridViewRow row    = browse.ShowDialog();

            if (row != null)
            {
                this.txtItem.Text       = row.Cells["kode_barang"].Value.ToString();
                _idItem                 = Convert.ToInt32(txtItem.Text);
                this.txtNamaBarang.Text = row.Cells["nama_barang"].Value.ToString();
            }
        }
        protected override void HandleBrowse()
        {
            base.HandleBrowse();
            string          query  = "select * from supplier";
            frmBrowse       browse = new frmBrowse("Supplier", query);
            DataGridViewRow row    = browse.ShowDialog();

            if (row != null)
            {
                this.txtKey.Text   = row.Cells["id"].Value.ToString();
                _idSup             = Convert.ToInt32(txtKey.Text);
                this.txtValue.Text = row.Cells["nama"].Value.ToString();
            }
        }
        protected override void HandleBrowse()
        {
            base.HandleBrowse();
            string          query  = "select * from item";
            frmBrowse       browse = new frmBrowse("Item", query);
            DataGridViewRow row    = browse.ShowDialog();

            if (row != null)
            {
                this.txtKey.Text   = row.Cells["id"].Value.ToString();
                _idItem            = Convert.ToInt32(txtKey.Text);
                this.txtValue.Text = row.Cells["kode_barang"].Value.ToString();
            }
        }