예제 #1
0
        private void ToolStripMenuItemEditSupplier_Click(object sender, EventArgs e)
        {
            int rowIdx     = this.pagedDgvSupplier.DgvData.CurrentRow.Index;
            int supplierId = StringUtil.GetSafeInt(this.pagedDgvSupplier.DgvData.Rows[rowIdx].Cells[0].Value.ToString());

            SupplierType supplier = SupplierDAL.GetSupplierById(supplierId);

            if (supplier == null)
            {
                return;
            }

            FrmEditSupplier frmEditSupplier = new FrmEditSupplier(supplierId);

            frmEditSupplier.ShowDialog();

            this.pagedDgvSupplier.LoadData();
        }
예제 #2
0
        private void ToolStripMenuItemEditSupplier_Click(object sender, EventArgs e)
        {
            int rowIdx = this.pagedDgvSupplier.DgvData.CurrentRow.Index;
            int supplierId = StringUtil.GetSafeInt(this.pagedDgvSupplier.DgvData.Rows[rowIdx].Cells[0].Value.ToString());

            SupplierType supplier = SupplierDAL.GetSupplierById(supplierId);
            if (supplier == null)
                return;

            FrmEditSupplier frmEditSupplier = new FrmEditSupplier(supplierId);
            frmEditSupplier.ShowDialog();

            this.pagedDgvSupplier.LoadData();
        }
예제 #3
0
 private void ToolStripMenuItemCreateSupplier_Click(object sender, EventArgs e)
 {
     FrmEditSupplier frmEditSupplier = new FrmEditSupplier();
     frmEditSupplier.Show();
 }
예제 #4
0
        private void ToolStripMenuItemCreateSupplier_Click(object sender, EventArgs e)
        {
            FrmEditSupplier frmEditSupplier = new FrmEditSupplier();

            frmEditSupplier.Show();
        }