Ejemplo n.º 1
0
 private void btnEDIT_Click(object sender, EventArgs e)
 {
     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();
     }
 }
Ejemplo n.º 2
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();
            }
        }
Ejemplo n.º 3
0
 private void btnTAMBAH_Click(object sender, EventArgs e)
 {
     MASTER.SUBMASTER.FormSUPPLIER frm = new LOGISTICMANAGAMENTSYSTEM.MASTER.SUBMASTER.FormSUPPLIER(this, 0, null);
     frm.ShowDialog();
 }
 private void btnEDIT_Click(object sender, EventArgs e)
 {
     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();
     }
 }
        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 btnTAMBAH_Click(object sender, EventArgs e)
 {
     MASTER.SUBMASTER.FormSUPPLIER frm = new LOGISTICMANAGAMENTSYSTEM.MASTER.SUBMASTER.FormSUPPLIER(this, 0, null);
     frm.ShowDialog();
 }