/* Metodo para insertar un nuevo producto */ protected void addProcess_Click(object sender, EventArgs e) { string value = ValueProduct.Text; if (value != "") { ProcessService processService = new ProcessService(); String user = Context.User.Identity.Name; AuditDataFromWeb audit = new AuditDataFromWeb(); audit.Reason = "N/A"; audit.StationIP = General.getIp(this.Page); audit.UserName = user; CUDView crud = processService.insertProduct(value, audit); if (crud.insert == false) { this.Page.ClientScript.RegisterStartupScript(this.GetType(), "alert", "alert('Could not insert the Value')", true); } else { ValueProduct.Text = ""; fillProductGroupTable(); updateProductModal.Update(); } } }
protected void addProcess_Click(object sender, EventArgs e) { string value = ValueProduct.Text; if (value != "") { ProcessService processService = new ProcessService(); CUDView crud = processService.insertProduct(value); if (crud.insert == false) { this.Page.ClientScript.RegisterStartupScript(this.GetType(), "alert", "alert('Could not insert the Value')", true); } else { ValueProduct.Text = ""; fillProductGroupTable(); updateProductModal.Update(); } } }