Ejemplo n.º 1
0
 protected void btnRegis_Click(object sender, EventArgs e)
 {
     try
     {
         MaterialsOperations mo = new MaterialsOperations();
         string j = "";
         mo.InsertCate(txtCateg.Text, ref j);
         Response.Redirect("Materials.aspx");
     }
     catch (Exception v)
     {
         Message(v.ToString());
     }
 }
Ejemplo n.º 2
0
 protected void btnNewMat_Click(object sender, EventArgs e)
 {
     try
     {
         MaterialsOperations mo = new MaterialsOperations();
         string j = "";
         mo.InsertMaterial(txtFolio.Text, txtMaterial.Text, misids[dplCategoria.SelectedIndex], misidsl[dplProveedor.SelectedIndex], ref j);
         Response.Redirect("Materials.aspx");
     }
     catch (Exception v)
     {
         Message(v.ToString());
     }
 }
Ejemplo n.º 3
0
        public void Categorias()
        {
            MaterialsOperations mo = new MaterialsOperations();
            string ca = "";

            misids = mo.Categorias(ref misnombres, ref ca);

            dplCategoria.Items.Clear();
            foreach (string m in misnombres)
            {
                dplCategoria.Items.Add(m);
            }
            dplCategoria.SelectedIndex = 0;
            Session["Categorias"]      = misids;
        }