public InsertAtencionDoctor ( |
||
oENTAtencion | ||
return |
// Funciones el programador void InsertAtencionDoctor() { ENTAtencion oENTAtencion = new ENTAtencion(); ENTResponse oENTResponse = new ENTResponse(); BPAtencion oBPAtencion = new BPAtencion(); try { // Validaciones if (this.ddlDoctor.SelectedItem.Value == "0") { throw (new Exception("Es necesario seleccionar un doctor")); } // Formulario oENTAtencion.AtencionId = Int32.Parse(this.hddAtencionId.Value); oENTAtencion.FuncionarioId = Int32.Parse(this.ddlDoctor.SelectedItem.Value); // Transacción oENTResponse = oBPAtencion.InsertAtencionDoctor(oENTAtencion); // Errores y Warnings if (oENTResponse.GeneratesException) { throw (new Exception(oENTResponse.sErrorMessage)); } if (oENTResponse.sMessage != "") { throw (new Exception(oENTResponse.sMessage)); } }catch (Exception ex){ throw (ex); } }
// Funciones el programador void UpdateAtencion_NumeroFolio() { ENTAtencion oENTAtencion = new ENTAtencion(); ENTResponse oENTResponse = new ENTResponse(); BPAtencion oBPAtencion = new BPAtencion(); try { // Validaciones if (this.txtNumeroFolio.Text.Trim() == "") { throw (new Exception("Es necesario ingresar un número de folio")); } // Formulario oENTAtencion.AtencionId = Int32.Parse(this.hddAtencionId.Value); oENTAtencion.NumeroFolio = this.txtNumeroFolio.Text.Trim(); // Transacción oENTResponse = oBPAtencion.InsertAtencionDoctor(oENTAtencion); // Errores y Warnings if (oENTResponse.GeneratesException) { throw (new Exception(oENTResponse.sErrorMessage)); } if (oENTResponse.sMessage != "") { throw (new Exception(oENTResponse.sMessage)); } }catch (Exception ex){ throw (ex); } }