示例#1
0
        private void btnXPend_Click(object sender, EventArgs e)
        {
            quitar();
            FRMPendientes pendiente = new FRMPendientes(this);

            pendiente.TopLevel      = false;
            pendiente.StartPosition = FormStartPosition.CenterScreen;
            pendiente.Parent        = PnlPrincipal;
            pendiente.Show();
            pendiente.BringToFront();
        }
示例#2
0
        public void Pendientes(FRMPendientes frm)
        {
            string sp = "SP_Packing_Insert";

            try
            {
                con = new SqlConnection(cadena());
                SqlCommand com = new SqlCommand(sp, con);
                com.CommandType = CommandType.StoredProcedure;
                con.Open();
                com.Parameters.Add("@opcion", SqlDbType.VarChar).Value = "PENDIENTES";
                SqlDataReader dr = com.ExecuteReader();
                while (dr.Read())
                {
                    frm.dgvArticulos.Rows.Add(dr["Id_Packing"], dr["Fecha_Creacion"], dr["Precin"]);
                }
                con.Close();
            }
            catch (Exception ex)
            {
                MessageBox.Show("error al Pendientes" + ex.Message);
            }
        }