Ejemplo n.º 1
0
 private void BtnSearch_Click(object sender, EventArgs e)
 {
     Hide();
     CommonMenus.ModifyDeleteFormulary formulary = new CommonMenus.ModifyDeleteFormulary(user, Process.Search, DataType.Search);
     formulary.ShowDialog();
     Show();
 }
Ejemplo n.º 2
0
        private void BtnDelete_Click(object sender, EventArgs e)
        {
            Hide();
            ModifyDeleteFormulary modifyDeleteFormulary = new ModifyDeleteFormulary(user, Process.Delete, dataType);

            modifyDeleteFormulary.ShowDialog();
            Show();
        }
Ejemplo n.º 3
0
 private void BtnStorage_Click(object sender, EventArgs e)
 {
     Hide();
     if (user.GetPermit(DataType.Storage))
     {
         CommonMenus.Manage manage = new CommonMenus.Manage(user, DataType.Storage);
         manage.ShowDialog();
     }
     else
     {
         CommonMenus.ModifyDeleteFormulary modifyDeleteFormulary = new CommonMenus.ModifyDeleteFormulary(user, Process.See, DataType.Storage);
         modifyDeleteFormulary.ShowDialog();
     }
     Show();
 }
Ejemplo n.º 4
0
 private void BtnItem_Click(object sender, EventArgs e)
 {
     if (user.GetPermit(DataType.Item))
     {
         Hide();
         CommonMenus.Manage manage = new CommonMenus.Manage(user, DataType.Item);
         manage.ShowDialog();
         Show();
     }
     else
     {
         Hide();
         CommonMenus.ModifyDeleteFormulary formulary = new CommonMenus.ModifyDeleteFormulary(user, Process.See, DataType.Item);
         formulary.ShowDialog();
         Show();
     }
 }
Ejemplo n.º 5
0
        private void btnInventory_Click(object sender, EventArgs e)
        {
            if (dataType == DataType.Storage)
            {
                try
                {
                    Storage dataStorage = GetFromComboBox();
                    Hide();
                    ModifyDeleteFormulary modifyInventory = new ModifyDeleteFormulary(user, dataStorage);
                    modifyInventory.ShowDialog();
                    Show();
                }
                catch (Exception)
                {
                    Hide();
                    MessageBox.Show("Almacen no valido");
                    Show();
                }
            }

            UpdateForm();
        }