Beispiel #1
0
        /*
         * private void OcultSucursal(Boolean Op)
         * {
         *  lblSucursal.Visible = Op;
         *  cboSucursal.Visible = Op;
         *  if (Op)
         *      LlecboSucursal();
         *  else
         *      cboSucursal.DataSource = null;
         * }
         */


        private void btnAddPartida_Click(object sender, EventArgs e)
        {
            if (ValidaTipoMov() == 1)
            {
                MovtosInvPart Addp = new MovtosInvPart(db, ParamSystem, StiloColor, user, Modulo, Convert.ToString(folMovto), 1,
                                                       CfgMovInv, cfgAlma, 0, Convert.ToString(cboAlmaOri.SelectedValue));

                Addp.CaptionBarColor  = ColorTranslator.FromHtml(StiloColor.Encabezado);
                Addp.CaptionForeColor = ColorTranslator.FromHtml(StiloColor.FontColor);
                Addp.ShowDialog();
                LlenaGridViewPart();
                OpcionControles(false);
            }
        }
Beispiel #2
0
        private void btnEditaPartida_Click(object sender, EventArgs e)
        {
            try
            {
                int           Cp   = Convert.ToInt32(grdViewPart[1, grdViewPart.CurrentRow.Index].Value.ToString());
                MovtosInvPart Addp = new MovtosInvPart(db, ParamSystem, StiloColor, user, Modulo, Convert.ToString(folMovto), 2,
                                                       CfgMovInv, cfgAlma, Cp, Convert.ToString(cboAlmaOri.SelectedValue));

                Addp.CaptionBarColor  = ColorTranslator.FromHtml(StiloColor.Encabezado);
                Addp.CaptionForeColor = ColorTranslator.FromHtml(StiloColor.FontColor);
                Addp.ShowDialog();
                LlenaGridViewPart();
            }
            catch (Exception ex)
            {
                MessageBoxAdv.Show("Tienes que seleccionar un registro \n" + ex.Message + " " + ex.StackTrace.ToString(),
                                   "Error al editar", MessageBoxButtons.OK,
                                   MessageBoxIcon.Error);
            }
        }