Ověření HCP



Captcha
Opište obrázek:

protected void Page_Load(object sender, EventArgs e) { string idGolferStr = Request.QueryString["idg"]; string idOpsGolferString = Request.QueryString["idgops"]; bool bigPhoto = Request["fullRes"] != null; long idGolfer = -1; if (String.IsNullOrEmpty(idOpsGolferString) == false) { CertificateQueryServiceInit(); idGolfer = GetIdTeeTimeGolfer(long.Parse(idOpsGolferString), _queryService); } else idGolfer = WcfUtils.ToLong(idGolferStr); //pokus o load golfera z TT, jinak z federaci cgsGolfer g = new cgsGolfer(DBtt); bool resLoad; try { resLoad = g.Load(idGolfer); } catch { resLoad = false; } if (!resLoad) { long idGolferTT = SynchroTools.GetGolferTTIdFromFeder("CGF",idGolfer); if (idGolferTT < 0) idGolferTT = SynchroTools.GetGolferTTIdFromFeder("SKGA", idGolfer); if (idGolferTT > 0) idGolfer = idGolferTT; try { resLoad = g.Load(idGolfer); } catch { resLoad = false; } } ttrGolfer glf = new ttrGolfer(DBtt); ttrGolferResponses.PicUrl resp = glf.GetGolferPhoto(DBfls,idGolfer); if (bigPhoto && !String.IsNullOrEmpty(resp.BigUrl)) cgsDBFileSystem.WriteDBfileToStream(DBfls, TtReservationBase.ttrGolfer.picFilePath, resp.Url, Response); else //nemáme obrázek dáme default { if (resLoad) { if (!String.IsNullOrEmpty(g.Sex)) { if (g.Sex == "F") cgsDBFileSystem.WriteDBfileToStream(DBfls, "https://redakce.teetime.cz/fls/Images/coach_women_prev.png", resp.Url, Response); else cgsDBFileSystem.WriteDBfileToStream(DBfls, "https://redakce.teetime.cz/fls/Images/coach_man_prev.png", resp.Url, Response); } } else cgsDBFileSystem.WriteDBfileToStream(DBfls, "https://redakce.teetime.cz/fls/Images/coach_man_prev.png", resp.Url, Response); } //else cgsDBFileSystem.WriteDBfileToStream(DBfls, TtReservationBase.ttrGolfer.picFilePath, resp.Url, Response); //http://redakce.teetime.cz/fls/Images/coach_man_prev.png //http://redakce.teetime.cz/fls/Images/coach_women_prev.png }