示例#1
0
        private void btn_Clientes_Modificar_Click(object sender, EventArgs e)
        {
            try
            {
                if (gv_Clientes_Lista.RowCount > 0)
                {
                    int ID = Convert.ToInt16(label2.Text);
                    if (ID == 0)
                    {
                        MessageBox.Show("Seleccione fila");
                    }
                    else
                    {
                        label2.Text = Convert.ToString(0);
                        frm_Sub_Cliente FrmSub = new frm_Sub_Cliente();
                        FrmSub.Dato = ID;
                        FrmSub.ShowDialog();
                    }
                }
                else
                {
                    MessageBox.Show("No hay registros, lista vacia");
                }

                Listar_Clientes();
            }
            catch
            {
            }
        }
示例#2
0
        private void btn_Clientes_Nuevo_Click(object sender, EventArgs e)
        {
            label2.Text = Convert.ToString(0);
            frm_Sub_Cliente FrmSub = new frm_Sub_Cliente();

            FrmSub.ShowDialog();

            Listar_Clientes();
        }
示例#3
0
        private void btn_Guardar_NivelDcto_Click(object sender, EventArgs e)
        {
            pBE_Nivel_Dcto_Clientes = new BE_Nivel_Dcto_Clientes();

            pBE_Nivel_Dcto_Clientes.ID                     = 0;
            pBE_Nivel_Dcto_Clientes.Int_IDtemp             = 0;
            pBE_Nivel_Dcto_Clientes.Int_Tipo_Mantenimiento = 1;

            pBE_Nivel_Dcto_Clientes.oBE_Producto    = new BE_Productos();
            pBE_Nivel_Dcto_Clientes.oBE_Producto.ID = Convert.ToInt32(cbo_Nivel_Dcto_Producto.SelectedValue);
            pBE_Nivel_Dcto_Clientes.oBE_Producto.Str_nom_producto = (cbo_Nivel_Dcto_Producto.Text).ToString();
            pBE_Nivel_Dcto_Clientes.Dcm_cant_minima  = Convert.ToDecimal(txt_Nivel_Dcto_Cant_Min.Text);
            pBE_Nivel_Dcto_Clientes.Dcm_dto_cantidad = Convert.ToDecimal(txt_Nivel_Dcto_Cant.Text);

            Archivo.frm_Sub_Cliente FrmSubCliente = new Archivo.frm_Sub_Cliente();
            FrmSubCliente.Listar_Nivel_Dcto_Agregado(pBE_Nivel_Dcto_Clientes);

            this.Close();
        }