Beispiel #1
0
 protected void btnAsignarFecha_Importe_Click(object sender, EventArgs e)
 {
     objDtoSolicitud.PK_IS_Cod = int.Parse(lblid.Text);
     if (txtImporte.Text == "" | txtNdias.Text == "")
     {
         ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "mensaje", "swal({type:'error',title:'ERROR!',text:'Complete espacios en BLANCO!!'})", true);
         return;
     }
     else if (int.Parse(txtNdias.Text) <= 0)
     {
         ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "mensaje", "swal({type:'error',title:'ERROR!',text:'Numero de día INVALIDO!!'})", true);
         return;
     }
     objDtoSolicitud.IS_Ndias        = int.Parse(txtNdias.Text);
     objDtoSolicitud.DS_ImporteTotal = double.Parse(txtImporte.Text);
     objCtrSolicitud.AsignarFecha_e_Importe(objDtoSolicitud);
     ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "mensaje", "swal({type: 'success',title: 'Evaluación Realizada!',text: 'Datos ENVIADOS!!'}).then(function(){window.location.href='EvaluarPedidosPersonalizados.aspx'})", true);
 }