public XElement InsertarActualizarUsuario_pde(E_TIPO_OPERACION_DB pClTipoOperacion, E_USUARIO pUsuario, string pClUsuario, string pNbUsuario) { using (context = new SistemaSigeinEntities()) { ObjectParameter pOutClRetorno = new ObjectParameter("XML_RESULTADO", typeof(XElement)); context.SPE_INSERTA_ACTUALIZA_USUARIO_PDE(pOutClRetorno, pUsuario.CL_USUARIO, pUsuario.NB_USUARIO, pUsuario.CONTRASENA, pUsuario.NB_CORREO_ELECTRONICO, pUsuario.FG_ACTIVO, pUsuario.FG_CAMBIAR_PASSWORD, pUsuario.ID_ROL, pUsuario.ID_EMPLEADO_PDE, pClUsuario, pNbUsuario, pUsuario.CL_TIPO_MULTIEMPRESA, pClTipoOperacion.ToString()); return(XElement.Parse(pOutClRetorno.Value.ToString())); } }
public XElement InsertaActualizaModulo(E_TIPO_OPERACION_DB tipoTransaccion, E_MODULO vModulo, string usuario, string programa) { using (context = new ACRUXLICENCIAMIENTOEntities()) { ObjectParameter pOutClRetorno = new ObjectParameter("XML_RESULTADO", typeof(XElement)); context.SPE_INSERTA_ACTUALIZA_C_MODULO(pOutClRetorno, vModulo.ID_MODULO, vModulo.CL_MODULO, vModulo.NB_MODULO, vModulo.DS_MODULO, vModulo.ID_SISTEMA, usuario, programa, tipoTransaccion.ToString()); return(XElement.Parse(pOutClRetorno.Value.ToString())); } }
public XElement InsertarActualizarPlaza(E_TIPO_OPERACION_DB pClTipoOperacion, Entidades.Administracion.E_PLAZA pPlaza, string pClUsuario, string pNbPrograma) { using (contexto = new SistemaSigeinEntities()) { var pXmlResultado = new SqlParameter("@XML_RESULTADO", SqlDbType.Xml) { Direction = ParameterDirection.Output }; contexto.Database.ExecuteSqlCommand("EXEC " + "ADM.SPE_INSERTA_ACTUALIZA_PLAZA " + "@XML_RESULTADO OUTPUT, " + "@PIN_ID_PLAZA, " + "@PIN_CL_PLAZA, " + "@PIN_NB_PLAZA, " + "@PIN_ID_EMPLEADO, " + "@PIN_ID_PUESTO, " + "@PIN_ID_DEPARTAMENTO, " + "@PIN_ID_PLAZA_JEFE, " + "@PIN_ID_EMPRESA, " + "@PIN_FG_ACTIVO, " + "@PIN_XML_GRUPOS, " + "@PIN_XML_PLAZAS_INTERRELACIONADAS, " + "@PIN_CL_USUARIO, " + "@PIN_NB_PROGRAMA, " + "@PIN_TIPO_TRANSACCION " , pXmlResultado, new SqlParameter("@PIN_ID_PLAZA", (object)pPlaza.ID_PLAZA ?? DBNull.Value), new SqlParameter("@PIN_CL_PLAZA", (object)pPlaza.CL_PLAZA), new SqlParameter("@PIN_NB_PLAZA", (object)pPlaza.NB_PLAZA), new SqlParameter("@PIN_ID_EMPLEADO", (object)pPlaza.ID_EMPLEADO ?? DBNull.Value), new SqlParameter("@PIN_ID_PUESTO", (object)pPlaza.ID_PUESTO ?? DBNull.Value), new SqlParameter("@PIN_ID_DEPARTAMENTO", (object)pPlaza.ID_DEPARTAMENTO ?? DBNull.Value), new SqlParameter("@PIN_ID_PLAZA_JEFE", (object)pPlaza.ID_PLAZA_SUPERIOR ?? DBNull.Value), new SqlParameter("@PIN_ID_EMPRESA", (object)pPlaza.ID_EMPRESA ?? DBNull.Value), new SqlParameter("@PIN_FG_ACTIVO", (object)pPlaza.FG_ACTIVO), new SqlParameter("@PIN_XML_GRUPOS", (object)pPlaza.XML_GRUPOS), new SqlParameter("@PIN_XML_PLAZAS_INTERRELACIONADAS", (object)pPlaza.XML_PLAZAS_INTERRELACIONADAS), new SqlParameter("@PIN_CL_USUARIO", (object)pClUsuario), new SqlParameter("@PIN_NB_PROGRAMA", (object)pNbPrograma), new SqlParameter("@PIN_TIPO_TRANSACCION", (object)pClTipoOperacion.ToString()) ); return(XElement.Parse(pXmlResultado.Value.ToString())); } //using (contexto = new SistemaSigeinEntities()) //{ // ObjectParameter pOutClRetorno = new ObjectParameter("XML_RESULTADO", typeof(XElement)); // contexto.SPE_INSERTA_ACTUALIZA_PLAZA(pOutClRetorno, pPlaza.ID_PLAZA, pPlaza.CL_PLAZA, pPlaza.NB_PLAZA, pPlaza.ID_EMPLEADO, pPlaza.ID_PUESTO,pPlaza.ID_DEPARTAMENTO, pPlaza.ID_PLAZA_SUPERIOR, pPlaza.ID_EMPRESA, pPlaza.FG_ACTIVO, pPlaza.XML_GRUPOS, pClUsuario, pNbPrograma, pClTipoOperacion.ToString()); // return XElement.Parse(pOutClRetorno.Value.ToString()); //} }
public XElement InsertarActualizarRoles(E_TIPO_OPERACION_DB pClTipoOperacion, SPE_OBTIENE_C_ROL_Result pRol, XElement pXmlFunciones, string pClUsuario, string pNbPrograma) { using (context = new ACRUXLICENCIAMIENTOEntities()) { ObjectParameter pOutClRetorno = new ObjectParameter("XML_RESULTADO", typeof(XElement)); context.SPE_INSERTA_ACTUALIZA_ROLES(pOutClRetorno, pRol.ID_ROL, pRol.CL_ROL, pRol.NB_ROL, pRol.FG_ACTIVO, pXmlFunciones.ToString(), pClUsuario, pNbPrograma, pClTipoOperacion.ToString()); return(XElement.Parse(pOutClRetorno.Value.ToString())); } }
public XElement InsertaActualizaClientes(E_TIPO_OPERACION_DB tipoTransaccion, E_CLIENTES vCliente, string xmlElemento, string xmlEmpresas, string usuario, string programa) { using (context = new ACRUXLICENCIAMIENTOEntities()) { ObjectParameter pOutClRetorno = new ObjectParameter("XML_RESULTADO", typeof(XElement)); context.SPE_INSERTA_ACTUALIZA_C_CLIENTE(pOutClRetorno, vCliente.ID_CLIENTE, vCliente.CL_CLIENTE, vCliente.CL_PASS, vCliente.NB_CLIENTE, vCliente.NB_CONTACTO, vCliente.CL_EMAIL, xmlElemento, xmlEmpresas, vCliente.NB_EJECUTIVO_CUENTA, usuario, programa, tipoTransaccion.ToString()); return(XElement.Parse(pOutClRetorno.Value.ToString())); } }
public XElement InsertaActualizaPeriodo(E_TIPO_OPERACION_DB tipoTransaccion, E_GESTION_PERIODO vPeriodo, string usuario, string programa) { using (context = new ACRUXLICENCIAMIENTOEntities()) { ObjectParameter pOutClRetorno = new ObjectParameter("XML_RESULTADO", typeof(XElement)); context.SPE_INSERTA_ACTUALIZA_K_GESTION_PERIODO(pOutClRetorno, vPeriodo.ID_GESTION_PERIODO, vPeriodo.ID_CLIENTE, vPeriodo.ID_SISTEMA, vPeriodo.ID_EMPRESA, vPeriodo.ID_MODULO, vPeriodo.ID_VERSION, vPeriodo.ID_LICENCIA, vPeriodo.FE_INICIO, vPeriodo.FE_FIN, vPeriodo.NO_VOLUMEN, usuario, programa, tipoTransaccion.ToString()); return(XElement.Parse(pOutClRetorno.Value.ToString())); } }
public XElement InsertaActualizaEmpresa(E_TIPO_OPERACION_DB tipoTransaccion, E_EMPRESA vEmpresa, string usuario, string programa) { using (context = new ACRUXLICENCIAMIENTOEntities()) { ObjectParameter pOutClRetorno = new ObjectParameter("XML_RESULTADO", typeof(XElement)); context.SPE_INSERTA_ACTUALIZA_C_EMPRESA(pOutClRetorno, vEmpresa.ID_EMPRESA, vEmpresa.CL_EMPRESA, vEmpresa.NB_EMPRESA, vEmpresa.DS_EMPRESA, usuario, programa, tipoTransaccion.ToString()); return(XElement.Parse(pOutClRetorno.Value.ToString())); } }
public XElement InsertaActualizaLicencia(E_TIPO_OPERACION_DB tipoTransaccion, E_LICENCIA vLicencia, string usuario, string programa) { using (context = new ACRUXLICENCIAMIENTOEntities()) { ObjectParameter pOutClRetorno = new ObjectParameter("XML_RESULTADO", typeof(XElement)); context.SPE_INSERTA_ACTUALIZA_C_LICENCIA(pOutClRetorno, vLicencia.ID_LICENCIA, vLicencia.CL_LICENCIA, vLicencia.NB_LICENCIA, vLicencia.FG_PERIODO, vLicencia.FG_VOLUMEN, vLicencia.DS_LICENCIA, usuario, programa, tipoTransaccion.ToString()); return(XElement.Parse(pOutClRetorno.Value.ToString())); } }
public XElement InsertarActualizaOtrosEvaluadoresExterno(int pIdPeriodo, int?pIdEmpleado, int?pIdEvaluador, string pNbEvaluador, string pNbPuesto, string pClCorreoElectronico, bool pFgEvaluaTodos, string pClUsuario, string pNbPrograma, E_TIPO_OPERACION_DB pClTipoOperacion) { using (contexto = new SistemaSigeinEntities()) { ObjectParameter pOutClRetorno = new ObjectParameter("XML_RESULTADO", typeof(XElement)); contexto.SPE_INSERTA_ACTUALIZA_FYD_OTROS_EVALUADORES_EXTERNOS(pOutClRetorno, pIdPeriodo, pIdEmpleado, pIdEvaluador, pNbPuesto, pClCorreoElectronico, pNbEvaluador, pFgEvaluaTodos, "OTRO", pClUsuario, pNbPrograma, pClTipoOperacion.ToString()); return(XElement.Parse(pOutClRetorno.Value.ToString())); } }
public XElement InsertaActualizaVersion(E_TIPO_OPERACION_DB tipoTransaccion, E_VERSION version, string usuario, string programa) { using (context = new ACRUXLICENCIAMIENTOEntities()) { ObjectParameter pOutClRetorno = new ObjectParameter("XML_RESULTADO", typeof(XElement)); context.SPE_INSERTA_ACTUALIZA_C_VERSION(pOutClRetorno, version.ID_VERSION, version.ID_MODULO, version.NO_RELEASE, version.DS_VERSION, usuario, programa, tipoTransaccion.ToString()); return(XElement.Parse(pOutClRetorno.Value.ToString())); } }