private void btnInput_Click(object sender, EventArgs e)
        {
            frmWarehouseInput frm = new frmWarehouseInput(ddlware.Text, ddlware.SelectedValue.ToString(), null, "New");

            frm.ShowDialog();
            if (frm.DialogResult == System.Windows.Forms.DialogResult.OK)
            {
                // Refrescar grilla
                btnFilter_Click(sender, e);
            }
        }
        private void editarToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string MovementId;

            MovementId = grdData.Selected.Rows[0].Cells[1].Value.ToString();

            int IsTransfer     = int.Parse(grdData.Selected.Rows[0].Cells[9].Value.ToString());
            int MovementTypeId = int.Parse(grdData.Selected.Rows[0].Cells[7].Value.ToString());

            if (MovementTypeId == 1 && IsTransfer != 19 && IsTransfer != 20)
            {
                frmWarehouseInput frm = new frmWarehouseInput(ddlware.Text.ToString(), ddlware.SelectedValue.ToString(), MovementId, "Edit");
                frm.ShowDialog();
                if (frm.DialogResult == System.Windows.Forms.DialogResult.OK)
                {
                    // Refrescar grilla
                    btnFilter_Click(sender, e);
                }
            }
            else if (MovementTypeId == 2 && IsTransfer != 20 && IsTransfer != 19)
            {
                frmWarehouseOutput frm = new frmWarehouseOutput(ddlware.Text.ToString(), ddlware.SelectedValue.ToString(), MovementId, "Edit");
                frm.ShowDialog();
                if (frm.DialogResult == System.Windows.Forms.DialogResult.OK)
                {
                    // Refrescar grilla
                    btnFilter_Click(sender, e);
                }
            }
            else if (((MovementTypeId == 2 || MovementTypeId == 1) && IsTransfer == 19) || ((MovementTypeId == 2 || MovementTypeId == 1) && IsTransfer == 20))
            {
                frmTransferBetweenWarehouses frm = new frmTransferBetweenWarehouses(ddlware.Text.ToString(), ddlware.SelectedValue.ToString(), MovementId, "Edit");
                frm.ShowDialog();
                if (frm.DialogResult == System.Windows.Forms.DialogResult.OK)
                {
                    // Refrescar grilla
                    btnFilter_Click(sender, e);
                }
            }
        }