コード例 #1
0
    protected void btnGuardar_Click(object sender, EventArgs e)
    {
        try
        {
            if (Request.Params["Id"] != null)
            {
                _log.CustomWriteOnLog("CotizarSolicitud", "-------------------------------------------------- Cotizar ----------------------------------------");
                objDtoSolicitud.PK_IS_Cod       = int.Parse(Request.Params["Id"]);
                objDtoSolicitud.IS_Ndias        = int.Parse(txt_dias.Text);
                objDtoSolicitud.DS_ImporteTotal = Double.Parse(txt_importe.Text);

                _log.CustomWriteOnLog("CotizarSolicitud", "IS_Ndias" + objDtoSolicitud.IS_Ndias);
                _log.CustomWriteOnLog("CotizarSolicitud", "DS_ImporteTotal" + objDtoSolicitud.DS_ImporteTotal);

                objCtrSolicitud.Cotizar(objDtoSolicitud);

                _log.CustomWriteOnLog("CotizarSolicitud", "COTIZADO EXITOSAMENTE");


                Utils.AddScriptClientUpdatePanel(upBotonGuardar, "showSuccessMessage2()");
            }
        }
        catch (Exception ex)
        {
            _log.CustomWriteOnLog("CotizarSolicitud", "Error  = " + ex.Message + "posicion" + ex.StackTrace);
        }
    }