Пример #1
0
        private void btnCetak_Click(object sender, EventArgs e)
        {
            // CrystalDecisions.CrystalReports.Engine.ReportDocument cryRpt = new CrystalDecisions.CrystalReports.Engine.ReportDocument();

            // REPORT.FormViewerAGENT frm = new REPORT.FormViewerAGENT(cryRpt, dataPrint);
            REPORT.FormViewerAGENT frm = new REPORT.FormViewerAGENT(dataPrint);

            frm.ShowDialog();
        }
        private void btnCetak_Click(object sender, EventArgs e)
        {
            // CrystalDecisions.CrystalReports.Engine.ReportDocument cryRpt = new CrystalDecisions.CrystalReports.Engine.ReportDocument();

               // REPORT.FormViewerAGENT frm = new REPORT.FormViewerAGENT(cryRpt, dataPrint);
            REPORT.FormViewerAGENT frm = new REPORT.FormViewerAGENT(dataPrint);

            frm.ShowDialog();
        }
Пример #3
0
        private void FormSUPPLIER_KeyUp(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.F1)
            {
                txtCARI.Focus();
            }
            else if (e.KeyCode == Keys.F2)
            {
                MASTER.SUBMASTER.FormSUPPLIER frm = new LOGISTICMANAGAMENTSYSTEM.MASTER.SUBMASTER.FormSUPPLIER(this, 0, null);
                frm.ShowDialog();
            }
            else if (e.KeyCode == Keys.F3)
            {
                if (dgvSUPPLIER.SelectedCells.Count > 0)
                {
                    string kode = dgvSUPPLIER.SelectedCells[0].OwningRow.Cells["KODEAGENT"].Value.ToString();
                    c.KODE = kode;
                    MASTER.SUBMASTER.FormSUPPLIER frm = new LOGISTICMANAGAMENTSYSTEM.MASTER.SUBMASTER.FormSUPPLIER(this, 1, c);
                    frm.ShowDialog();
                }
            }
            else if (e.KeyCode == Keys.F4)
            {
                if (dgvSUPPLIER.SelectedCells.Count > 0)
                {
                    string kode = dgvSUPPLIER.SelectedCells[0].OwningRow.Cells["KODEAGENT"].Value.ToString();
                    string nama = dgvSUPPLIER.SelectedCells[0].OwningRow.Cells["NAMASAGENT"].Value.ToString();
                    c.KODE = kode;
                    DialogResult dr = MessageBox.Show("APAKAH YAKIN AKAN DELETE DATA : " + nama + " ?", "WARNING", MessageBoxButtons.OKCancel, MessageBoxIcon.Stop);
                    if (dr == DialogResult.OK)
                    {
                        b.DELETE(c);
                        LOAD_DATA();
                    }
                }
            }
            else if (e.KeyCode == Keys.F5)
            {
                CrystalDecisions.CrystalReports.Engine.ReportDocument cryRpt = new CrystalDecisions.CrystalReports.Engine.ReportDocument();

                REPORT.FormViewerAGENT frm = new REPORT.FormViewerAGENT(dataPrint);

                frm.ShowDialog();
            }
            else if (e.KeyCode == Keys.Escape)
            {
                Close();
            }
        }
        private void FormSUPPLIER_KeyUp(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.F1)
            {
                txtCARI.Focus();
            }
            else if (e.KeyCode == Keys.F2)
            {
                MASTER.SUBMASTER.FormSUPPLIER frm = new LOGISTICMANAGAMENTSYSTEM.MASTER.SUBMASTER.FormSUPPLIER(this, 0, null);
                frm.ShowDialog();
            }
            else if (e.KeyCode == Keys.F3)
            {
                if (dgvSUPPLIER.SelectedCells.Count > 0)
                {
                    string kode = dgvSUPPLIER.SelectedCells[0].OwningRow.Cells["KODEAGENT"].Value.ToString();
                    c.KODE = kode;
                    MASTER.SUBMASTER.FormSUPPLIER frm = new LOGISTICMANAGAMENTSYSTEM.MASTER.SUBMASTER.FormSUPPLIER(this, 1, c);
                    frm.ShowDialog();
                }
            }
            else if (e.KeyCode == Keys.F4)
            {
                if (dgvSUPPLIER.SelectedCells.Count > 0)
                {
                    string kode = dgvSUPPLIER.SelectedCells[0].OwningRow.Cells["KODEAGENT"].Value.ToString();
                    string nama = dgvSUPPLIER.SelectedCells[0].OwningRow.Cells["NAMASAGENT"].Value.ToString();
                    c.KODE = kode;
                    DialogResult dr = MessageBox.Show("APAKAH YAKIN AKAN DELETE DATA : " + nama + " ?", "WARNING", MessageBoxButtons.OKCancel, MessageBoxIcon.Stop);
                    if (dr == DialogResult.OK)
                    {
                        b.DELETE(c);
                        LOAD_DATA();
                    }
                }
            }
            else if (e.KeyCode == Keys.F5)
            {
                CrystalDecisions.CrystalReports.Engine.ReportDocument cryRpt = new CrystalDecisions.CrystalReports.Engine.ReportDocument();

                REPORT.FormViewerAGENT frm = new REPORT.FormViewerAGENT(dataPrint);

                frm.ShowDialog();
            }
            else if (e.KeyCode == Keys.Escape)
            {
                Close();
            }
        }