private void btn_pembayaran_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (cbo_no_faktur.EditValue == null)
            {
                Helpers.Generic.MsgEx("Data Penjualan tidak boleh kosong");
                return;
            }
            if (Convert.ToInt32(txt_kembali.EditValue) < 0)
            {
                Helpers.Generic.MsgEx("Uang yang dibayarkan belum cukup");
                return;
            }
            var main = (MainMenu)this.MdiParent;
            var data = new Models.pembayaran()
            {
                no_faktur   = cbo_no_faktur.EditValue.ToString(),
                tgl         = Convert.ToDateTime(dtp_tgl.EditValue),
                kd_karyawan = main.kd_karyawan,
                total_bayar = Convert.ToInt32(txt_total_bayar.EditValue),
                dibayar     = Convert.ToInt32(txt_dibayar.EditValue),
                kembali     = Convert.ToInt32(txt_kembali.EditValue)
            };

            if (Controllers.CPembayaran.insert(data))
            {
                Helpers.Generic.MsgInfo("Data Pembayaran berhasil disimpan");
                var frm = new Laporan.FrmCetak()
                {
                    no_faktur = cbo_no_faktur.EditValue.ToString()
                };
                Helpers.Generic.ShowAdd(this, frm);
                this.init();
            }
        }
        private void btn_cetak_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            var index = gridView1.GetSelectedRows();
            var frm   = new Laporan.FrmCetak()
            {
                no_faktur = gridView1.GetRowCellValue(index[0], "no_faktur").ToString()
            };

            Helpers.Generic.ShowAdd(this, frm);
        }