public UpdateExpediente_CambioArea ( |
||
oENTVisitaduria | Entidad de Visitadurías con los filtros necesarios para realizar la transacción | |
return |
void UpdateExpediente_CambioArea() { ENTVisitaduria oENTVisitaduria = new ENTVisitaduria(); ENTResponse oENTResponse = new ENTResponse(); ENTSession oENTSession; BPVisitaduria oBPVisitaduria = new BPVisitaduria(); try { // Validaciones if (this.ddlArea.SelectedItem.Value == "0") { throw (new Exception("Es necesario seleccionar una Área")); } if (this.ckeComentario.Text.Trim() == "") { throw (new Exception("Es necesario ingresar un comentario")); } // Obtener Sesion oENTSession = (ENTSession)this.Session["oENTSession"]; // Formulario oENTVisitaduria.ExpedienteId = Int32.Parse(this.hddExpedienteId.Value); oENTVisitaduria.AreaId = Int32.Parse(this.ddlArea.SelectedItem.Value); oENTVisitaduria.UsuarioId = oENTSession.idUsuario; oENTVisitaduria.Comentario = this.ckeComentario.Text.Trim(); // Transacción oENTResponse = oBPVisitaduria.UpdateExpediente_CambioArea(oENTVisitaduria); // Errores y Warnings if (oENTResponse.GeneratesException) { throw (new Exception(oENTResponse.sErrorMessage)); } if (oENTResponse.sMessage != "") { throw (new Exception(oENTResponse.sMessage)); } }catch (Exception ex){ throw (ex); } }