protected void Button1_Click(object sender, EventArgs e) { decimal idregistrado = PERSONASCER.PERSONASCERRegistrar(0, "1095808196", "gabriel", "ortega", DateTime.Now, "*****@*****.**", "6381746", "300777777", "per", "soltero", 0, DateTime.Now, 0, DateTime.Now, "EMPLEADO", "ADMINISTRACION", "CONTROL", "2000000", "SI"); GeneradorPdf.generarCertificado("1095808196", "", "PRUEBA1.docx", "PLANTILLACERTIFICACION.docx", "CERTIFICADO", 0); }
protected void CreateUser_Click(object sender, EventArgs e) { List <DCPERSONASCER> lstPERSONASCER = new List <DCPERSONASCER>(); List <DCPERSONASCER> DTPERSONASCER = new List <DCPERSONASCER>(); DTPERSONASCER = PERSONASCER.PERSONASCERObtenerbyCriterio(txtIdentificacion.Text, 0); if (DTPERSONASCER.Count == 0) { PERSONASCER.PERSONASCERRegistrar(0, txtIdentificacion.Text.ToUpper(), txtNombres.Text.ToUpper(), txtApellidos.Text.ToUpper(), new DateTime(2002, 11, 3), txtEmail.Text, txtTelefono.Text.ToUpper(), txtMovil.Text.ToUpper(), "EMPLEADO", "SOLTERO", 0, DateTime.Now, 0, DateTime.Now, txtCargo.Text.ToUpper(), txtDependencia.Text.ToUpper(), txtFunciones.Text.ToUpper(), txtSueldo.Text.ToUpper(), "SI"); CARGARGRILLA(); Alerta.notiffy("Registro Exitoso", "Se ha registrado correctamenta en la BD, los datos de la persona", "sucessful", this, GetType()); } else { CARGARGRILLA(); Alerta.notiffy("Operacion incompleta", "No se ha podido agregar la persona, el numero de identificación ya existe!", "warning", this, GetType()); } }