/// <summary> /// Handles the TabClick event of the _rtsMenu control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="Telerik.Web.UI.RadTabStripEventArgs"/> instance containing the event data.</param> protected void _rtsMenu_TabClick(object sender, RadTabStripEventArgs e) { switch (e.Tab.Value) { case "Home": { RadAjaxManager1.Redirect("~/Default.aspx"); break; } case "FindRoom": { RadAjaxManager1.Redirect("~/App/Pages/FindARoom.aspx"); break; } case "PostRoom": { RadAjaxManager1.Redirect("~/App/Pages/PostARoom.aspx"); break; } case "MyAccount": { RadAjaxManager1.Redirect("~/App/Pages/MyAccount.aspx"); break; } } }
protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e) { switch (RadTabStrip1.SelectedIndex) { case 0: break; case 1: break; } }
protected void try_TabClick(object sender, RadTabStripEventArgs e) { Session["UserId"] = null; Response.Cookies["RFriend_Email"].Value = null; Response.Cookies["RFriend_UID"].Value = null; Response.Cookies["RFriend_PWD"].Value = null; Session.Abandon(); System.Web.Security.FormsAuthentication.SignOut(); Response.Redirect(ResolveUrl("~/Login.aspx")); }
protected void RadTabStrip1_TabClick(object sender,RadTabStripEventArgs e) { switch (e.Tab.Value) { case "0": PermissionsPanel.Visible = true; PermissionProfilePanel.Visible = false; break; case "1": PermissionsPanel.Visible = false; PermissionProfilePanel.Visible = true; break; } }
protected void rtsBlogPage_TabClick(object sender, RadTabStripEventArgs e) { switch (e.Tab.Text) { case "Подорож/Сторінка": pnlBlogPageEdit.Visible = true; pnlCityList.Visible = false; break; case "Міста": pnlBlogPageEdit.Visible = false; pnlCityList.Visible = true; blogPageCityList.RebindGrid(); break; } }
protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e) { frame = (HtmlControl)this.FindControl("FrmArea"); switch (e.Tab.Value) { case "patient": frame.Attributes["src"] = String.Format("CustomerForm.aspx?CustomerId={0}&Type=InTab", cus.PersonId); break; case "policy": frame.Attributes["src"] = String.Format("PolicyGrid.aspx?CustomerId={0}&Type=InTab", cus.PersonId); break; case "ticket": frame.Attributes["src"] = String.Format("TicketGrid.aspx?CustomerId={0}&Type=InTab", cus.PersonId); break; case "invoice": frame.Attributes["src"] = String.Format("InvoiceGrid.aspx?CustomerId={0}&Type=InTab", cus.PersonId); break; case "payment": frame.Attributes["src"] = String.Format("PaymentGrid.aspx?CustomerId={0}&Type=InTab", cus.PersonId); break; } }
protected void rtabGeographicLocation_TabClick(object sender, RadTabStripEventArgs e) { switch (e.Tab.Value.ToLower()) { case "country": mvGeographicLocation.SetActiveView(vwCountry); acbGeographicLocation.AddAttributeToEditButton("onClick", String.Format("javascript:return ValidateEdit('{0}')", radgrdCountry.ClientID)); acbGeographicLocation.AddAttributeToDeleteButton("onClick", String.Format("javascript:return ValidateDelete('{0}')", radgrdCountry.ClientID)); acbGeographicLocation.ExportButton.Enabled = false; break; case "state": mvGeographicLocation.SetActiveView(vwState); acbGeographicLocation.AddAttributeToEditButton("onClick", String.Format("javascript:return ValidateEdit('{0}')", radgrdState.ClientID)); acbGeographicLocation.AddAttributeToDeleteButton("onClick", String.Format("javascript:return ValidateDelete('{0}')", radgrdState.ClientID)); acbGeographicLocation.ExportButton.Enabled = false; break; case "city": mvGeographicLocation.SetActiveView(vwCity); acbGeographicLocation.AddAttributeToEditButton("onClick", String.Format("javascript:return ValidateEdit('{0}')", radgrdCity.ClientID)); acbGeographicLocation.AddAttributeToDeleteButton("onClick", String.Format("javascript:return ValidateDelete('{0}')", radgrdCity.ClientID)); acbGeographicLocation.ExportButton.Enabled = true; break; } acbGeographicLocation.EditableMode = false; pnlAddCity.Visible = false; pnlAddCountry.Visible = false; pnlAddState.Visible = false; BindGridCountry(); BindGridState(); BindGridCity(); up.Update(); }
protected void rtsCampaignComparsion_TabClick(object sender, RadTabStripEventArgs e) { if (rtsCampaignComparsion.SelectedIndex == 0) { rtsCampaignComparsion.Tabs[1].Enabled = false; rtsCampaignComparsion.Tabs[2].Enabled = false; } if (rtsCampaignComparsion.SelectedIndex == 2) { getCampaignCompareCounts(); } }
protected void RadTabStrip2_TabClick(object sender, RadTabStripEventArgs e) { String category = AssessmentResults_RadTabStrip.SelectedTab.Text; Tile.TileParms.AddParm("category", category); BuildTestTypes(); BuildAssessments(); }
protected void rtsAddSegment_TabClick(object sender, RadTabStripEventArgs e) { if (hdfListId.Value != "") { getSegmentDetails(hdfListId.Value); } else { if (rtsAddSegment.SelectedIndex == 0) { } else if (rtsAddSegment.SelectedIndex == 1) { getTypeOfSegment(); } } }
protected void OvationTabs_TabClick(object sender, RadTabStripEventArgs e) { string CountrySelectedTab = string.Empty; switch (e.Tab.Value) { // this is hotel info case "Hotel_Info": // ---------------------- progress bar ----------------------------- //progressTextHotelInfo.Text = "Hotel Information | Incomplete"; //progressTextHotelInfo.ForeColor = System.Drawing.Color.Red; //progressbarAmmen.Text = "2014 Rates & Amenities | Incomplete"; //progressbarAmmen.ForeColor = System.Drawing.Color.Red; //progressBarTxtMarketingPackages.Text = "Marketing Packages | Incomplete"; //progressBarTxtMarketingPackages.ForeColor = System.Drawing.Color.Red; //progressBarTxtElectronicSig.Text = "Electronic Signiture | Incomplete"; //progressBarTxtElectronicSig.ForeColor = System.Drawing.Color.Red; //progressBarTxtRFPForm.Text = "2014 RFP | Incomplete"; //progressBarTxtRFPForm.ForeColor = System.Drawing.Color.Red; // progressBar.Width = Unit.Pixel(225); // progressbarAmmen.Visible = false; // ---------------------------------------------------------------- using (SqlConnection GetSelectedCountryTab_Conn = new SqlConnection(RFPDBconnStr)) { using (SqlCommand GetSelectedCountryTab_cmd = new SqlCommand("SELECT szCountry FROM Tbl_Hotel_PHC_HotelInfoPartialOne WHERE (LRFPID = @LRFPID)", GetSelectedCountryTab_Conn)) { GetSelectedCountryTab_cmd.CommandType = CommandType.Text; GetSelectedCountryTab_cmd.CommandTimeout = 0; GetSelectedCountryTab_cmd.Parameters.AddWithValue("@LRFPID", Decrypt(HttpContext.Current.Request.QueryString["ORFP"], "trappOvation")); GetSelectedCountryTab_Conn.Open(); using (SqlDataReader GetSelectedCountryTab_Reader = GetSelectedCountryTab_cmd.ExecuteReader()) { if (GetSelectedCountryTab_Reader.Read()) { CountrySelectedTab = GetSelectedCountryTab_Reader["szCountry"].ToString(); } } } } selectHotelInfo(); UpdateHotelInfo(); updateAmmeneites(); updateMarkeing(); HotelInfoCodeBlock.Visible = true; //MktgCodeBlock.Visible = false; AmenitiesCodeBlock.Visible = false; ElectronicSigCodeBlock.Visible = false; Hotel_brief_descipt.Attributes.Add("Onkeypress", "return check_content();"); Sabre_PCode.Attributes.Add("onkeydown", "javascript:return jsNumbers_SabreP(event);"); Apollo_Pcode.Attributes.Add("onkeydown", "javascript:return jsNumbers_ApolloP(event);"); Sabre_Chain_Code.Attributes.Add("onkeypress", "javascript:return SabreChainlettersOnly(event);"); Apollo_Chain_Code.Attributes.Add("onkeypress", "javascript:return ApolloChainlettersOnly(event);"); if (string.IsNullOrEmpty(CountrySelectedTab)) { Hotelcountry.SelectedValue = "United States"; } else { Hotelcountry.SelectedValue = CountrySelectedTab.ToString(); } break; // this is rates and ammenities case "Rates_Amenities": //--------------- progress bar ------------------------------------- //progressTextHotelInfo.Text = "Hotel Information | Complete"; //progressTextHotelInfo.ForeColor = System.Drawing.Color.Black; //progressbarAmmen.Visible = true; //progressbarAmmen.Text = "2014 Rates & Amenities | Incomplete"; //progressbarAmmen.ForeColor = System.Drawing.Color.Red; //progressBarTxtMarketingPackages.Text = "Marketing Packages | Incomplete"; //progressBarTxtMarketingPackages.ForeColor = System.Drawing.Color.Red; // progressBarTxtElectronicSig.Text = "Electronic Signiture | Incomplete"; //progressBarTxtElectronicSig.ForeColor = System.Drawing.Color.Red; // progressBarTxtRFPForm.Text = "2014 RFP | Incomplete"; // progressBarTxtRFPForm.ForeColor = System.Drawing.Color.Red; //progressBar.Width = Unit.Pixel(450); // ----------------------------------------------------------------- // update hotel info ////////////////////////////////////////// UpdateHotelInfo(); updateAmmeneites(); updateMarkeing(); getammenities(); HotelInfoCodeBlock.Visible = false; AmenitiesCodeBlock.Visible = true; //MktgCodeBlock.Visible = false; ElectronicSigCodeBlock.Visible = false; Ammenities_Num_roomshotel.Attributes.Add("onkeydown", "javascript:return jsNumbers(event);"); break; // this is marketing packages case "Marketing_pkgs": // ---------------- progress bar ---------------------------------- //progressTextHotelInfo.Text = "Hotel Information | Complete"; //progressTextHotelInfo.ForeColor = System.Drawing.Color.Black; //progressbarAmmen.Visible = true; //progressbarAmmen.Text = "2014 Rates & Amenities | Complete"; //progressbarAmmen.ForeColor = System.Drawing.Color.Black; // progressBarTxtMarketingPackages.Text = "Marketing Packages | Incomplete"; // progressBarTxtMarketingPackages.ForeColor = System.Drawing.Color.Red; // progressBarTxtElectronicSig.Text = "Electronic Signiture | Incomplete"; // progressBarTxtElectronicSig.ForeColor = System.Drawing.Color.Red; // progressBarTxtRFPForm.Text = "2014 RFP | Incomplete"; // progressBarTxtRFPForm.ForeColor = System.Drawing.Color.Red; // progressBar.Width = Unit.Pixel(675); // ---------------------------------------------------------------- selectMarketing(); UpdateHotelInfo(); updateAmmeneites(); updateMarkeing(); HotelInfoCodeBlock.Visible = false; AmenitiesCodeBlock.Visible = false; //MktgCodeBlock.Visible = true; ElectronicSigCodeBlock.Visible = false; break; // this is electronic signiture case "Electronic_Sig": UpdateHotelInfo(); updateAmmeneites(); updateMarkeing(); selectElectronicSig(); string SalesContactName_Mgk = string.Empty; string SalesContactTitle_Mgk = string.Empty; string SalesContactTelephone_Mgk = string.Empty; string SalesContactFax_Mgk = string.Empty; string HotelName_Mgk = string.Empty; string SalesContactEmail_Mgk = string.Empty; string HotelAddrOne_Mgk = string.Empty; string Hotelgeneralmgr_Mgk = string.Empty; string HotelAddrTwo_Mgk = string.Empty; string DirectorofSales_Mgk = string.Empty; string Hotelcity_Mgk = string.Empty; string HotelWebSite_Mgk = string.Empty; string HotelInfoStateStr_Mgk = string.Empty; string HotelcountryStr_Mgk = string.Empty; string Hotelzippostcode_Mgk = string.Empty; string HotelMainphone_Mgk = string.Empty; string AAAatingStr_Mgk = string.Empty; string MobileStaRateStr_Mgk = string.Empty; string Hotelbriefdescipt_Mgk = string.Empty; string EnviromentProgram_Mgk = string.Empty; string avtiveRecycle_Mgk = string.Empty; string Property_Responsible_Cleaners_Mgk = string.Empty; string Property_WaterConserve_Mgk = string.Empty; /// ammeneties section ////////////////////// string percentage_Mgk = string.Empty; string LRAchoice_Mkt = string.Empty; string Floating_Bar_Dynamic_Mgk = string.Empty; string WoulextendRateYN_Mgk = string.Empty; string IsProperty_Virtuoso_Mgk = string.Empty; string internetGuestRoom_Mgk = string.Empty; string internetPublicSpace_Mgk = string.Empty; string propertyrenovation2014_Mgk = string.Empty; //string PropRenovationDetails_Mkt = string.Empty; string Nosmoking_Mgk = string.Empty; string Num_roomshotel_Mgk = string.Empty; string noToWalk_Mgk = string.Empty; /// marketing section string whatMarketPack_Mgk = string.Empty; using (SqlConnection RFPreviewMkgt_Conn = new SqlConnection(RFPDBconnStr)) { using (SqlCommand RFPreviewMkgt_cmd = new SqlCommand("SELECT Tbl_Hotel_PHC_HotelInfoPartialOne.szSabrePropertyNo, Tbl_Hotel_PHC_HotelInfoPartialOne.szApolloPropertyNo, Tbl_Hotel_PHC_HotelInfoPartialOne.szSabreChainCode, Tbl_Hotel_PHC_HotelInfoPartialOne.szApolloChainCode, Tbl_Hotel_PHC_HotelInfoPartialOne.szAddress, Tbl_Hotel_PHC_HotelInfoPartialOne.szAddressTwo, Tbl_Hotel_PHC_HotelInfoPartialOne.szCity, Tbl_Hotel_PHC_HotelInfoPartialOne.szState, Tbl_Hotel_PHC_HotelInfoPartialOne.szZipCode, Tbl_Hotel_PHC_HotelInfoPartialOne.szCountry, Tbl_Hotel_PHC_HotelInfoPartialOne.szElectronicSig, Tbl_Hotel_PHC_HotelInfoPartialOne.szElectronicSigCmt, tbl_Hotel_PHC_Contacts.szName, tbl_Hotel_PHC_Contacts.szTitle, tbl_Hotel_PHC_Contacts.szHotelPhone, tbl_Hotel_PHC_Contacts.szPhone, tbl_Hotel_PHC_Contacts.szFax, tbl_Hotel_PHC_Contacts.szEmail, tbl_Hotel_PHC_Contacts.szDirector, tbl_Hotel_PHC_Property.szPrefHotelName, tbl_Hotel_PHC_Property.szGeneralMgr, tbl_Hotel_PHC_Property.szWebSite, tbl_Hotel_PHC_Property.szDiamondRating, tbl_Hotel_PHC_Property.szStarRating, tbl_Hotel_PHC_Property.szDiscountOff, tbl_Hotel_PHC_Property.szLastRoomAvail, tbl_Hotel_PHC_Property.szVat, tbl_Hotel_PHC_Property.szExtendGroupNegRate, tbl_Hotel_PHC_Property.szConsortiaRate, tbl_Hotel_PHC_Property.szLowestConsortiaRate, tbl_Hotel_PHC_Property.szAverageConsortiaRate, tbl_Hotel_PHC_Property.szHighestConsortiaRate, tbl_Hotel_PHC_Property.szCorpRate, tbl_Hotel_PHC_Property.szRackRate, tbl_Hotel_PHC_Property.szAsscociationRate, tbl_Hotel_PHC_Property.szRecruitRatesSeptDec, tbl_Hotel_PHC_Property.szInternetIncRate, tbl_Hotel_PHC_Property.szRenovations, tbl_Hotel_PHC_Property.szRenovationsDesc, tbl_Hotel_PHC_Property.szRoomCnt, tbl_Hotel_PHC_Property.szSuiteCnt, tbl_Hotel_PHC_Property.szGuaranteeNotToWalkOurGuests, tbl_Hotel_PHC_Property.szHotelGrpAffiliation, tbl_Hotel_PHC_Property.szEnvCertPrg, tbl_Hotel_PHC_Property.szRecyclingPrg, tbl_Hotel_PHC_Property.szUtilEnvRespCleaners, tbl_Hotel_PHC_Property.szActiveWaterCnsvPrg, tbl_Hotel_PHC_Property.szIncentive, tbl_Hotel_PHC_Property.szAmenitiesIncluded, tbl_Hotel_PHC_Property.szIsPropVirtuosoMem, tbl_Hotel_PHC_Property.szIsVirtuosoAmmenInc, tbl_Hotel_PHC_Property.szVirtuosoAmmen, tbl_Hotel_PHC_Property.szEnsureAmenty, tbl_Hotel_PHC_Property.szITinPublicSpaceInc, tbl_Hotel_PHC_Property.szItinGuestRoomInc, tbl_Hotel_PHC_Property.szHotelDesc, tbl_Hotel_PHC_Property.szRestaurant, tbl_Hotel_PHC_Property.szBarLounge, tbl_Hotel_PHC_Property.szToiletries, tbl_Hotel_PHC_Property.szDirectorOfSales FROM Tbl_Hotel_PHC_OvationRFPS INNER JOIN Tbl_Hotel_PHC_HotelInfoPartialOne ON Tbl_Hotel_PHC_OvationRFPS.LRFPID = Tbl_Hotel_PHC_HotelInfoPartialOne.LRFPID INNER JOIN tbl_Hotel_PHC_Contacts ON Tbl_Hotel_PHC_HotelInfoPartialOne.LRFPID = tbl_Hotel_PHC_Contacts.LRFPID INNER JOIN tbl_Hotel_PHC_Property ON tbl_Hotel_PHC_Contacts.LRFPID = tbl_Hotel_PHC_Property.LRFPID WHERE (Tbl_Hotel_PHC_OvationRFPS.LRFPID = @LRFPID)", RFPreviewMkgt_Conn)) { //RFPreview_cmd.CommandText = "dbo.sp_RFP_GetRFPreviewbyID"; RFPreviewMkgt_cmd.CommandType = CommandType.Text; RFPreviewMkgt_cmd.CommandTimeout = 0; RFPreviewMkgt_cmd.Parameters.AddWithValue("@LRFPID", Decrypt(HttpContext.Current.Request.QueryString["ORFP"], "trappOvation")); RFPreviewMkgt_Conn.Open(); using (SqlDataReader RFPreviewMkgt_Reader = RFPreviewMkgt_cmd.ExecuteReader()) { if (RFPreviewMkgt_Reader.Read()) { HotelName_Mgk = RFPreviewMkgt_Reader["szPrefHotelName"].ToString(); HotelAddrOne_Mgk = RFPreviewMkgt_Reader["szAddress"].ToString(); Hotelcity_Mgk = RFPreviewMkgt_Reader["szCity"].ToString(); HotelInfoStateStr_Mgk = RFPreviewMkgt_Reader["szState"].ToString(); HotelcountryStr_Mgk = RFPreviewMkgt_Reader["szCountry"].ToString(); Hotelzippostcode_Mgk = RFPreviewMkgt_Reader["szZipCode"].ToString(); HotelMainphone_Mgk = RFPreviewMkgt_Reader["szHotelPhone"].ToString(); SalesContactName_Mgk = RFPreviewMkgt_Reader["szName"].ToString(); SalesContactTitle_Mgk = RFPreviewMkgt_Reader["szTitle"].ToString(); SalesContactTelephone_Mgk = RFPreviewMkgt_Reader["szPhone"].ToString(); SalesContactFax_Mgk = RFPreviewMkgt_Reader["szFax"].ToString(); SalesContactEmail_Mgk = RFPreviewMkgt_Reader["szEmail"].ToString(); Hotelgeneralmgr_Mgk = RFPreviewMkgt_Reader["szGeneralMgr"].ToString(); DirectorofSales_Mgk = RFPreviewMkgt_Reader["szDirectorOfSales"].ToString(); HotelWebSite_Mgk = RFPreviewMkgt_Reader["szWebSite"].ToString(); AAAatingStr_Mgk = RFPreviewMkgt_Reader["szDiamondRating"].ToString(); MobileStaRateStr_Mgk = RFPreviewMkgt_Reader["szStarRating"].ToString(); Hotelbriefdescipt_Mgk = RFPreviewMkgt_Reader["szHotelDesc"].ToString(); avtiveRecycle_Mgk = RFPreviewMkgt_Reader["szRecyclingPrg"].ToString(); EnviromentProgram_Mgk = RFPreviewMkgt_Reader["szUtilEnvRespCleaners"].ToString(); Property_WaterConserve_Mgk = RFPreviewMkgt_Reader["szActiveWaterCnsvPrg"].ToString(); /// ammeneties section ////////////////////////////////////////////////// LRAchoice_Mkt = RFPreviewMkgt_Reader["szLastRoomAvail"].ToString(); percentage_Mgk = RFPreviewMkgt_Reader["szDiscountOff"].ToString(); WoulextendRateYN_Mgk = RFPreviewMkgt_Reader["szExtendGroupNegRate"].ToString(); IsProperty_Virtuoso_Mgk = RFPreviewMkgt_Reader["szIsPropVirtuosoMem"].ToString(); internetGuestRoom_Mgk = RFPreviewMkgt_Reader["szItinGuestRoomInc"].ToString(); internetPublicSpace_Mgk = RFPreviewMkgt_Reader["szITinPublicSpaceInc"].ToString(); propertyrenovation2014_Mgk = RFPreviewMkgt_Reader["szRenovations"].ToString(); //PropRenovationDetails_Mkt = RFPreviewMkgt_Reader["szRenovationsDesc"].ToString(); Num_roomshotel_Mgk = RFPreviewMkgt_Reader["szRoomCnt"].ToString(); noToWalk_Mgk = RFPreviewMkgt_Reader["szGuaranteeNotToWalkOurGuests"].ToString(); /// marketing whatMarketPack_Mgk = RFPreviewMkgt_Reader["szIncentive"].ToString(); } } } } using (SqlConnection NoSmokeMkg_Conn = new SqlConnection(RFPDBconnStr)) { using (SqlCommand NoSmokeMkg_cmd = new SqlCommand("SELECT tbl_Hotel_PHC_Features.szFeature, tbl_Hotel_PHC_Features_Property.LRFPID FROM tbl_Hotel_PHC_Features_Property INNER JOIN tbl_Hotel_PHC_Features ON tbl_Hotel_PHC_Features_Property.lFeatureID = tbl_Hotel_PHC_Features.lFeatureID WHERE (tbl_Hotel_PHC_Features.szFeature = 'Non-smoking Hotel' OR tbl_Hotel_PHC_Features.szFeature = 'Smoking Hotel') AND (tbl_Hotel_PHC_Features_Property.LRFPID = @LRFPID)", NoSmokeMkg_Conn)) { NoSmokeMkg_cmd.CommandType = CommandType.Text; NoSmokeMkg_cmd.CommandTimeout = 0; NoSmokeMkg_cmd.Parameters.AddWithValue("@LRFPID", Decrypt(HttpContext.Current.Request.QueryString["ORFP"].ToString(), "trappOvation")); NoSmokeMkg_Conn.Open(); using (SqlDataReader NoSmokeMkg_Reader = NoSmokeMkg_cmd.ExecuteReader()) { if (NoSmokeMkg_Reader.Read()) { Nosmoking_Mgk = NoSmokeMkg_Reader["szFeature"].ToString(); } } } } /// regex for email ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// string expression_Mgk = @"^[a-z][a-z|0-9|]*([_][a-z|0-9]+)*([.][a-z|" + @"0-9]+([_][a-z|0-9]+)*)[email protected][a-z][a-z|0-9|]*\.([a-z]" + @"[a-z|0-9]*(\.[a-z][a-z|0-9]*)?)$"; Match match_Mgk = Regex.Match(Sales_Contact_Email.Text.ToString(), expression_Mgk, RegexOptions.IgnoreCase); ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // hotel Info section error ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //string hotinfoTitle = @"<br /><img src=""Images/HotelInfoTitle.png"" style=""padding-left: 20px;"" />"; if (string.IsNullOrEmpty(HotelName_Mgk) || string.IsNullOrEmpty(HotelAddrOne_Mgk) || string.IsNullOrEmpty(Hotelcity_Mgk) || HotelInfoStateStr_Mgk.ToString() == "Please Choose a State" || HotelcountryStr_Mgk.ToString() == "Please Choose a Country" || string.IsNullOrEmpty(Hotelzippostcode_Mgk) || string.IsNullOrEmpty(HotelMainphone_Mgk) || string.IsNullOrEmpty(SalesContactName_Mgk) || string.IsNullOrEmpty(SalesContactTitle_Mgk) || string.IsNullOrEmpty(SalesContactTelephone_Mgk) || string.IsNullOrEmpty(SalesContactFax_Mgk) || string.IsNullOrEmpty(SalesContactEmail_Mgk) || match_Mgk.Success == false || string.IsNullOrEmpty(Hotelgeneralmgr_Mgk) || string.IsNullOrEmpty(DirectorofSales_Mgk) || string.IsNullOrEmpty(HotelWebSite_Mgk) || string.IsNullOrEmpty(AAAatingStr_Mgk) || string.IsNullOrEmpty(MobileStaRateStr_Mgk) || string.IsNullOrEmpty(Hotelbriefdescipt_Mgk) || string.IsNullOrEmpty(avtiveRecycle_Mgk) || string.IsNullOrEmpty(EnviromentProgram_Mgk) || string.IsNullOrEmpty(Property_WaterConserve_Mgk) || string.IsNullOrEmpty(LRAchoice_Mkt) || string.IsNullOrEmpty(percentage_Mgk) || string.IsNullOrEmpty(WoulextendRateYN_Mgk) || string.IsNullOrEmpty(IsProperty_Virtuoso_Mgk) || string.IsNullOrEmpty(internetGuestRoom_Mgk) || string.IsNullOrEmpty(internetPublicSpace_Mgk) || string.IsNullOrEmpty(Nosmoking_Mgk) || string.IsNullOrEmpty(propertyrenovation2014_Mgk) || string.IsNullOrEmpty(Num_roomshotel_Mgk) || string.IsNullOrEmpty(noToWalk_Mgk) || string.IsNullOrEmpty(whatMarketPack_Mgk)) { RFPSEctionsErrors.Selected = true; //HotelInfoError.Visible = true; //RFPSEctionsErrors.Visible = true; // errorNoerror.Text = "we have an error"; //rfpsubmiterror.Visible = true; //noerror.Visible = false; // ///////////////////////////////////////////////////////////////////// // hotel name ////////////////////////////////////////////////////////// if (string.IsNullOrEmpty(HotelName_Mgk)) { OhotelName.Visible = true; } else { OhotelName.Visible = false; } // Hotel address One ////////////////////////////////////////////////////////// if (string.IsNullOrEmpty(HotelAddrOne_Mgk)) { OaddressOne.Visible = true; } else { OaddressOne.Visible = false; } // Hotel city ////////////////////////////////////////////////////////// if (string.IsNullOrEmpty(Hotelcity_Mgk)) { OHCity.Visible = true; } else { OHCity.Visible = false; } // Hotel state ///////////////////////////////////////////////////////// if (HotelInfoStateStr_Mgk.ToString() == "Please Choose a State") { OHState.Visible = true; } else { OHState.Visible = false; } // Hotel Country /////////////////////////////////////////////////////// if (HotelcountryStr_Mgk.ToString() == "Please Choose a Country") { OHcountry.Visible = true; } else { OHcountry.Visible = false; } // hotel zip code ///////////////////////////////////////////////////// if (string.IsNullOrEmpty(Hotelzippostcode_Mgk)) { OHZipC.Visible = true; } else { OHZipC.Visible = false; } /// hotel main phone /////////////////////////////////////////////////// if (string.IsNullOrEmpty(HotelMainphone_Mgk)) { OHmainPhone.Visible = true; } else { OHmainPhone.Visible = false; } // Hotel sales contact name //////////////////////////////////////////// if (string.IsNullOrEmpty(SalesContactName_Mgk)) { OHSalesConName.Visible = true; } else { OHSalesConName.Visible = false; } // sales contact title //////////////////////////////////////////////// if (string.IsNullOrEmpty(SalesContactTitle_Mgk)) { OHSaleConTit.Visible = true; } else { OHSaleConTit.Visible = false; } // Hotel sales contact phone ////////////////////////////////////////// if (string.IsNullOrEmpty(SalesContactTelephone_Mgk)) { OHSalesContactPhone.Visible = true; } else { OHSalesContactPhone.Visible = false; } // Hotel sales contact fax if (string.IsNullOrEmpty(SalesContactFax_Mgk)) { OHSalesConfax.Visible = true; } else { OHSalesConfax.Visible = false; } // hotel sales contact email empty and bad email //////////////////////////////////////////// if (string.IsNullOrEmpty(SalesContactEmail_Mgk)) { OHSalesConEmlEmpty.Visible = true; OHSalesConEmlBad.Visible = false; } else if (match_Mgk.Success == false) { OHSalesConEmlBad.Text = "<li><strong>" + Sales_Contact_Email.Text.ToString() + "</strong> is not a valid email address</li>"; OHSalesConEmlBad.Visible = true; OHSalesConEmlEmpty.Visible = false; } else { OHSalesConEmlEmpty.Visible = false; OHSalesConEmlBad.Visible = false; } /// hotel gen manager if (string.IsNullOrEmpty(Hotelgeneralmgr_Mgk)) { OHGenMgr.Visible = true; } else { OHGenMgr.Visible = false; } // director of sales ////////////////////////////////////////////////////////////////////// if (string.IsNullOrEmpty(DirectorofSales_Mgk)) { OHDirectSales.Visible = true; } else { OHDirectSales.Visible = false; } // hotel web site //////////////////////////////////////////////////////////////////////// if (string.IsNullOrEmpty(HotelWebSite_Mgk)) { OHwebsite.Visible = true; } else { OHwebsite.Visible = false; } // AAA diamond rating /////////////////////////////////////////////////////////////////// if (string.IsNullOrEmpty(AAAatingStr_Mgk)) { OHAAARating.Visible = true; } else { OHAAARating.Visible = false; } // mobile star rating if (string.IsNullOrEmpty(MobileStaRateStr_Mgk)) { OHMobileStar.Visible = true; } else { OHMobileStar.Visible = false; } // hotel brief descrtiption /////////////////////////////////////////// if (string.IsNullOrEmpty(Hotelbriefdescipt_Mgk)) { OHhotelBreifdescript.Visible = true; } else { OHhotelBreifdescript.Visible = false; } // active recycle ////////////////////////////////////////////////////////////////////// if (string.IsNullOrEmpty(avtiveRecycle_Mgk)) { OHActiveRecyle.Visible = true; } else { OHActiveRecyle.Visible = false; } // responsible cleaners if (string.IsNullOrEmpty(EnviromentProgram_Mgk)) { OHResponsible.Visible = true; } else { OHResponsible.Visible = false; } // water conserve ///////////////////////////////////////////////////////////////////// if (string.IsNullOrEmpty(Property_WaterConserve_Mgk)) { OHwaterconserver.Visible = true; } else { OHwaterconserver.Visible = false; } // LRA choice if (string.IsNullOrEmpty(LRAchoice_Mkt)) { AmmenLRAYN.Visible = true; } else { AmmenLRAYN.Visible = false; } // ammen percetage if (string.IsNullOrEmpty(percentage_Mgk)) { AMpercentage.Visible = true; } else { AMpercentage.Visible = false; } // Ammen would extend rate ///////////////////////////////////////////////////////////// if (string.IsNullOrEmpty(WoulextendRateYN_Mgk)) { AMWouldExtend.Visible = true; } else { AMWouldExtend.Visible = false; } // is prop virtuoso if (string.IsNullOrEmpty(IsProperty_Virtuoso_Mgk)) { AMIsPropVirtuoso.Visible = true; } else { AMIsPropVirtuoso.Visible = false; } // internet included in guest room if (string.IsNullOrEmpty(internetGuestRoom_Mgk)) { AMinternetIncGuestRm.Visible = true; } else { AMinternetIncGuestRm.Visible = false; } // internet included in public space if (string.IsNullOrEmpty(internetPublicSpace_Mgk)) { AMinternetPublic.Visible = true; } else { AMinternetPublic.Visible = false; } // is porp non-smoking if (string.IsNullOrEmpty(Nosmoking_Mgk)) { AMIsNonSmoking.Visible = true; } else { AMIsNonSmoking.Visible = false; } // prop renovations radio buttonlist if (string.IsNullOrEmpty(propertyrenovation2014_Mgk)) { AMRenovations.Visible = true; } else { AMRenovations.Visible = false; } // prop renovations text box is yes // PropRenovationDetails_Mkt //if (propertyrenovation2014_Mgk.ToString() == "Y" && string.IsNullOrEmpty(PropRenovationDetails_Mkt)) //{ // AMrenovationTxt.Visible = true; //} //else //{ // AMrenovationTxt.Visible = false; //} // put here ///////////////////////////////////////// // how many hotel has if (string.IsNullOrEmpty(Num_roomshotel_Mgk)) { AMNumberRooms.Visible = true; } else { AMNumberRooms.Visible = false; } // no to walk if (string.IsNullOrEmpty(noToWalk_Mgk)) { AMnoToWalk.Visible = true; } else { AMnoToWalk.Visible = false; } // marketing packs if (string.IsNullOrEmpty(whatMarketPack_Mgk)) { MarketingPackError.Visible = true; } else { MarketingPackError.Visible = false; } } else { // now validate seasonal rates section //////////////////////////////////////////////// using (SqlConnection RoomsRatesMkt_Conn = new SqlConnection(RFPDBconnStr)) { using (SqlCommand RoomsRatesMkt_cmd = new SqlCommand("SELECT Tbl_Hotel_PHC_AmmenRmSeasons.dtSTdate, Tbl_Hotel_PHC_AmmenRmSeasons.dtEDDate, Tbl_Hotel_PHC_AmmenRmCatRates.szRmTypeCat,Tbl_Hotel_PHC_AmmenRmCatRates.nRmRate, Tbl_Hotel_PHC_AmmenRmCatRates.szCurCode, Tbl_Hotel_PHC_AmmenRmSeasons.szSeaonName FROM Tbl_Hotel_PHC_AmmenRmSeasons INNER JOIN Tbl_Hotel_PHC_AmmenRmCatRates ON Tbl_Hotel_PHC_AmmenRmSeasons.LID = Tbl_Hotel_PHC_AmmenRmCatRates.LSID WHERE(Tbl_Hotel_PHC_AmmenRmSeasons.LRFPID = @LRFPID) order by Tbl_Hotel_PHC_AmmenRmSeasons.LID ASC", RoomsRatesMkt_Conn)) { RoomsRatesMkt_cmd.CommandType = CommandType.Text; RoomsRatesMkt_cmd.CommandTimeout = 0; RoomsRatesMkt_cmd.Parameters.AddWithValue("@LRFPID", Decrypt(HttpContext.Current.Request.QueryString["ORFP"].ToString(), "trappOvation")); RoomsRatesMkt_Conn.Open(); using (SqlDataReader RoomsRatesMkt_Reader = RoomsRatesMkt_cmd.ExecuteReader()) { while (RoomsRatesMkt_Reader.Read()) { // HttpContext.Current.Response.Write(RoomsRatesMkt_Reader["szSeaonName"].ToString() + " "); if (RoomsRatesMkt_Reader["dtEDDate"] != DBNull.Value) { RFPSEctionsErrors.Selected = false; RatesSection.Visible = false; ElectornicSigView.Selected = true; ElectronicSigCodeBlock.Visible = true; finishedRFP.Visible = true; WincloseCodeBlock.Visible = false; } else { RFPSEctionsErrors.Selected = true; RatesSection.Visible = true; } if (RoomsRatesMkt_Reader["szRmTypeCat"] != DBNull.Value) { RFPSEctionsErrors.Selected = false; ElectornicSigView.Selected = true; ElectronicSigCodeBlock.Visible = true; finishedRFP.Visible = true; } else { RFPSEctionsErrors.Selected = true; RatesSection.Visible = true; } if (RoomsRatesMkt_Reader["nRmRate"] != DBNull.Value || RoomsRatesMkt_Reader["nRmRate"].ToString() != string.Empty) { RFPSEctionsErrors.Selected = false; ElectornicSigView.Selected = true; ElectronicSigCodeBlock.Visible = true; //finishedRFP.Visible = true; WincloseCodeBlock.Visible = false; } else { RFPSEctionsErrors.Selected = true; RatesSection.Visible = true; } } } } } } // ---------------- progress bar ----------------------------------- // progressTextHotelInfo.Text = "Hotel Information | Complete"; // progressTextHotelInfo.ForeColor = System.Drawing.Color.Black; // progressbarAmmen.Visible = true; // progressbarAmmen.Text = "2014 Rates & Amenities | Complete"; // progressbarAmmen.ForeColor = System.Drawing.Color.Black; // progressBarTxtMarketingPackages.Text = "Marketing Packages | Complete"; // progressBarTxtMarketingPackages.ForeColor = System.Drawing.Color.Black; // progressBarTxtElectronicSig.Text = "Electronic Signiture | Incomplete"; // progressBarTxtElectronicSig.ForeColor = System.Drawing.Color.Red; // progressBarTxtRFPForm.Text = "2014 RFP | Incomplete"; // progressBarTxtRFPForm.ForeColor = System.Drawing.Color.Red; //progressBar.Width = Unit.Pixel(900); //rfprevlink.Text = whatRFPID.Value; // ----------------------------------------------------------------- HotelInfoCodeBlock.Visible = false; AmenitiesCodeBlock.Visible = false; //MktgCodeBlock.Visible = true; ElectronicSigCodeBlock.Visible = true; selectElectronicSig(); UpdateHotelInfo(); updateAmmeneites(); updateMarkeing(); break; } }
protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e) { if (e.Tab.Value != "AuftragsbearbeitungAbmeldung") { AddPageView(e.Tab); e.Tab.PageView.Selected = true; } }
protected void rtsCampaignComparsion_TabClick(object sender, RadTabStripEventArgs e) { }
protected void CampaignRadTabStrip_TabClick(object sender, RadTabStripEventArgs e) { if (CampaignRadTabStrip.SelectedIndex == 0) { if (hiddenCampaignID.Value == string.Empty) { lblunsubinfo.Text = txtUnsubscribe.Text; lblunsublinktext.Text = DDLinktext.SelectedItem.Text; DivUnsubtext.InnerHtml = lblunsubinfo.Text + " \n" + lblunsublinktext.Text; } } if (CampaignRadTabStrip.SelectedIndex == 1) { CampaignRadTabStrip.SelectedIndex = 0; if (ddlTemplate.Items.Count == 0) bindTemplates(); lbtnNextTabCampaignDetails_Click(lbtnNextTabCampaignDetails, EventArgs.Empty); } if (CampaignRadTabStrip.SelectedIndex == 2) { if (chkTrackReads.Checked == true) { if (hiddenCampaignID.Value == "") { //Anwar if (Request.QueryString["id"] != null) { lbtnNextTabCampaignDetails_Click(lbtnNextTabCampaignDetails, EventArgs.Empty); lbtnNextTabContentEditor_Click(lbtnNextTabContentEditor, EventArgs.Empty); CustomTrackUrls(); } else { CampaignRadTabStrip.SelectedTab.Enabled = false; RpvTrackingEditor.Enabled = false; CampaignRadTabStrip.SelectedIndex = 1; RadMultiPage1.SelectedIndex = 1; ScriptManager.RegisterStartupScript(Page, Page.GetType(), "Success", "alert('Please save the Mailing to review Tracking url Editor.')", true); } } else { CustomTrackUrls(); } } else { CampaignRadTabStrip.SelectedTab.Enabled = false; RpvTrackingEditor.Enabled = false; CampaignRadTabStrip.SelectedIndex = 2; RadMultiPage1.SelectedIndex = 2; } validateEditorContent(); } if (CampaignRadTabStrip.SelectedIndex == 3) { validateEditorContent(); //SupressPopup(); } if (CampaignRadTabStrip.SelectedIndex == 4) { if (rdoSendImmediately.Checked == true) { ddlSelectedTime.Enabled = false; txtSelectedDate.Enabled = false; } else { ddlSelectedTime.Enabled = true; txtSelectedDate.Enabled = true; } validateEditorContent(); } if (CampaignRadTabStrip.SelectedIndex == 5) { if (rdoSendLater.Checked == true) { LinkButton1.Visible = true; lbtnScheduleCampaign.Visible = false; } else { LinkButton1.Visible = false; lbtnScheduleCampaign.Visible = true; } RequirdFieldsConfirmation(); bindTemplates(); validateEditorContent(); } }
protected void rtsCategory1_TabClick(object sender, RadTabStripEventArgs e) { switch (e.Tab.Text) { case "Інформація": pnlCategoryEdit.Visible = true; pnlGalleryList.Visible = false; pnlSEO.Visible = false; break; case "Фотографії": pnlCategoryEdit.Visible = false; pnlGalleryList.Visible = true; pnlSEO.Visible = false; galleryList.RebindGrid(); break; case "SEO": pnlCategoryEdit.Visible = false; pnlGalleryList.Visible = false; pnlSEO.Visible = true; LoadSEO(); break; } }
//protected void cbxCompany_NewClick(object sender, EventArgs e) //{ // switch (mvCompany.GetActiveView().ID) // { // case "vwCompany": // mvCompany.SetActiveView(vwCompany); // rtsCompanyDetails.SelectedIndex = 0; // pnlAddNewMode.Visible = true; // pnlGrid.Visible = false; // // rtsCompanyDetails.Tabs[1].Enabled = false; // BindCompanyDropdowns(); // radCmbType.Focus(); // radgrdCompany.Rebind(); // acbCompany.SaveButton.ValidationGroup = "Company"; // Reset(); // break; // case "vwContact": // rtsCompanyDetails.Tabs[0].Enabled = false; // mvCompany.SetActiveView(vwContact); // rtsCompanyDetails.SelectedIndex = 1; // pnlContactAdd.Visible = true; // acbCompany.SaveButton.ValidationGroup = "Contact"; // BindTitle(); // break; // } // acbCompany.EditableMode = true; // acbCompany.SaveButton.CommandName = "Save"; //} //protected void cbxCompany_SaveNewClick(object sender, EventArgs e) //{ // //txtCompanyName.Focus(); // //Save(); // //Reset(); //} //protected void cbxCompany_DeleteClick(object sender, EventArgs e) //{ // //try // //{ // // StringBuilder CompanyId = new StringBuilder(); // // int result = 0; // // if (ViewState[PageConstants.vsItemIndexes] != null) // // htItemIndex = (Hashtable)ViewState[PageConstants.vsItemIndexes]; // // if (htItemIndex != null) // // { // // foreach (int i in htItemIndex.Values) // // { // // Label lblCompanyId = (Label)radgrdCompany.Items[i].FindControl("lblgrdCompanyIdItem"); // // if (lblCompanyId != null) // // { // // CompanyId.Append(lblCompanyId.Text + ","); // // } // // } // // } // // objCompanyMasterDal = new CompanyMasterDal(); // // String QualifiId = CompanyId.ToString().TrimEnd(','); // // result = objCompanyMasterDal.DeleteCompany(QualifiId); // // if (result == 1) // // { // // Master.DisplayMessage(ConfigurationSettings.AppSettings[SuccessMessage.Delete].ToString()); // // Master.MessageCssClass = "successMessage"; // // ViewState[PageConstants.vsItemIndexes] = null; // // BindGrid(); // // } // // else if (result == 547) // // { // // Master.DisplayMessage(ConfigurationSettings.AppSettings[FailureMessage.Delete].ToString()); // // Master.MessageCssClass = "errorMessage"; // // } // //} // //catch (Exception ex) // //{ // // bool rethrow = ExceptionPolicy.HandleException(ex, DALHelper.DAL_EXP_POLICYNAME); // // if (rethrow) // // { throw ex; } // //} //} //protected void cbxCompany_SearchClick(object sender, EventArgs e) //{ // try // { // objCompanyMasterDal = new CompanyMasterDal(); // DataSet dsCompany = objCompanyMasterDal.GetCompany(acbCompany.SearchTextBox.Text); // radgrdCompany.DataSource = dsCompany; // radgrdCompany.DataBind(); // ViewState[vsCompany] = dsCompany; // } // catch (Exception ex) // { // bool rethrow = ExceptionPolicy.HandleException(ex, DALHelper.DAL_EXP_POLICYNAME); // if (rethrow) // { throw ex; } // } //} #endregion #region tabStrip Event protected void rtsCompanyDetails_TabClick(object sender, RadTabStripEventArgs e) { switch (e.Tab.Value) { case "CompanyDetails": acbCompany.Attributes.Remove("onClick"); acbCompany.AddAttributeToEditButton("onClick", String.Format("javascript:return ValidateGridForEdit('{0}')", radgrdCompany.ClientID)); acbCompany.AddAttributeToDeleteButton("onClick", String.Format("javascript:return ValidateDelete('{0}')", radgrdCompany.ClientID)); if (acbCompany.SaveButton.CommandName == "Save") { cbxCompany.SaveButton.Enabled = false; } cbxCompany.Visible = true; acbCompany.Visible = false; mvCompany.SetActiveView(vwCompany); //acbCompany.EditableMode = true; //pnlGrid.Visible = true; break; case "ContactInfo": acbCompany.Attributes.Remove("onClick"); acbCompany.AddAttributeToEditButton("onClick", String.Format("javascript:return ValidateGridForEdit('{0}')", radgrdContact.ClientID)); acbCompany.AddAttributeToDeleteButton("onClick", String.Format("javascript:return ValidateDelete('{0}')", radgrdContact.ClientID)); acbCompany.Visible = true; acbCompany.DefaultMode = true; cbxCompany.Visible = false; mvCompany.SetActiveView(vwContact); pnlContactGrid.Visible = true; BindContactGrid(Convert.ToInt32(Session["COMPANY_ID"]), ""); pnlGrid.Visible = false; break; default: break; } }
protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e) { }
protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e) { switch (RadTabStrip1.SelectedIndex) { case 0: { RadGrid1.DataSourceID = LinqDataSourceTerritories.ID; break; } case 1: { RadGrid1.DataSourceID = LinqDataSourceAssigned.ID; break; } case 2: { RadGrid1.DataSourceID = LinqDataSourceBeingReturned.ID; break; } case 3: { RadGrid1.DataSourceID = LinqDataSourceNotAssigned.ID; break; } } }
protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e) { RadGrid1.Rebind(); switch (RadTabStrip1.SelectedIndex) { case 0: RadMultiPage1.SelectedIndex = 0; break; case 1: RadMultiPage1.SelectedIndex = 0; break; case 2: RadMultiPage1.SelectedIndex = 0; break; } }
protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e) { RadGrid1.Rebind(); }
protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e) { PaymentsLiteral.Text = ""; Literal0.Text = ""; MailPanel1.Update(); }
protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e) { AddPageView(e.Tab); e.Tab.PageView.Selected = true; }
protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e) { frame = (HtmlControl)this.FindControl("FrmArea"); int idx = e.Tab.Index; switch (e.Tab.Value) { case "HA": frame.Attributes["src"] = String.Format("PolicyGrid.aspx?PatientId={0}&Type=InTab&CustomerId=" + customerId , pat.PersonId); break; case "HC": frame.Attributes["src"] = String.Format("VisitGrid.aspx?PatientId={0}&Type=InTab&CustomerId=" + customerId , pat.PersonId); break; case "patient": frame.Attributes["src"] = String.Format("PatientForm.aspx?PatientId={0}&Type=InTab&CustomerId=" + customerId , pat.PersonId); break; case "policy": frame.Attributes["src"] = String.Format("PolicyGrid.aspx?PatientId={0}&Type=InTab&CustomerId=" + customerId , pat.PersonId); break; case "ticket": frame.Attributes["src"] = String.Format("TicketGrid.aspx?PatientId={0}&Type=InTab&CustomerId=" + customerId , pat.PersonId); break; case "servnote": frame.Attributes["src"] = String.Format("ServiceNoteGrid.aspx?PatientId={0}&Type=InTab&CustomerId=" + customerId , pat.PersonId); break; case "anesnote": frame.Attributes["src"] = String.Format("AnestheticServiceNoteGrid.aspx?PatientId={0}&Type=InTab&CustomerId=" + customerId , pat.PersonId); break; case "invoice": frame.Attributes["src"] = String.Format("InvoiceGrid.aspx?PatientId={0}&Type=InTab&CustomerId=" + customerId , pat.PersonId); break; case "payment": frame.Attributes["src"] = String.Format("PaymentGrid.aspx?PatientId={0}&Type=InTab&CustomerId=" + customerId , pat.PersonId); break; case "appointment": frame.Attributes["src"] = String.Format("AppointmentGrid.aspx?PatientId={0}&Type=InTab&CustomerId=" + customerId , pat.PersonId); break; case "docs": frame.Attributes["src"] = String.Format("DocumentsPatient.aspx?PatientId={0}&Type=InTab&CustomerId=" + customerId , pat.PersonId); break; case "diagnosticassigned": frame.Attributes["src"] = String.Format("DiagnosticAssignedGrid.aspx?PatientId={0}&Type=InTab&CustomerId=" + customerId , pat.PersonId); break; case "treatment": frame.Attributes["src"] = String.Format("TreatmentGrid.aspx?PatientId={0}&Type=InTab&CustomerId=" + customerId , pat.PersonId); break; case "examination": frame.Attributes["src"] = String.Format("ExaminationAssignedGrid.aspx?PatientId={0}&Type=InTab&CustomerId=" + customerId , pat.PersonId); break; case "labtestassigned": frame.Attributes["src"] = String.Format("LabTestAssignedGrid.aspx?PatientId={0}&Type=InTab&CustomerId=" + customerId , pat.PersonId); break; case "procedureassigned": frame.Attributes["src"] = String.Format("ProcedureAssignedGrid.aspx?PatientId={0}&Type=InTab&CustomerId=" + customerId , pat.PersonId); break; case "visit": frame.Attributes["src"] = String.Format("VisitGrid.aspx?PatientId={0}&Type=InTab&CustomerId=" + customerId , pat.PersonId); break; case "previousmedicalrecord": frame.Attributes["src"] = String.Format("PreviousMedicalrecordForm.aspx?PatientId={0}&Type=InTab", pat.PersonId); break; case "backpersonal": case "backgrounds": frame.Attributes["src"] = String.Format("BackPersonalForm.aspx?PatientId={0}&Type=InTab", pat.PersonId); break; case "backfamily": frame.Attributes["src"] = String.Format("BackFamilyForm.aspx?PatientId={0}&Type=InTab", pat.PersonId); break; case "backginecology": frame.Attributes["src"] = String.Format("BackGinecologyForm.aspx?PatientId={0}&Type=InTab", pat.PersonId); break; } }
protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e) { if (e.Tab.Value != "OffenNeuzulassung") { AddPageView(e.Tab); e.Tab.PageView.Selected = true; } }
protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e) { if (refractometry == null) return; frame = (HtmlControl)this.FindControl("FrmArea"); switch (e.Tab.Value) { case "T1": if (refractometry.WithoutGlassesTests.Count() == 0) frame.Attributes["src"] = String.Format("WithoutGlassesForm.aspx?RefractometryId={0}", refractometry.ExaminationAssignedId); else frame.Attributes["src"] = String.Format("WithoutGlassesForm.aspx?RefractometryId={0}&WithoutGlassesId={1}", refractometry.ExaminationAssignedId, refractometry.WithoutGlassesTests[0].Id); break; case "T2": if (refractometry.GlassesTests.Count() == 0) frame.Attributes["src"] = String.Format("GlassesTestForm.aspx?RefractometryId={0}", refractometry.ExaminationAssignedId); else frame.Attributes["src"] = String.Format("GlassesTestForm.aspx?RefractometryId={0}&GlassesTestId={1}", refractometry.ExaminationAssignedId, refractometry.GlassesTests[0].Id); break; case "T3": if (refractometry.ContactLensesTests.Count() == 0) frame.Attributes["src"] = String.Format("ContactLensesTestForm.aspx?RefractometryId={0}", refractometry.ExaminationAssignedId); else frame.Attributes["src"] = String.Format("ContactLensesTestForm.aspx?RefractometryId={0}&ContactLensesTestId={1}", refractometry.ExaminationAssignedId, refractometry.ContactLensesTests[0].Id); break; case "T4": if (refractometry.OpticalObjectiveExaminations.Count() == 0) frame.Attributes["src"] = String.Format("OpticalObjectiveExaminationForm.aspx?RefractometryId={0}", refractometry.ExaminationAssignedId); else frame.Attributes["src"] = String.Format("OpticalObjectiveExamination.aspx?RefractometryId={0}&OpticalObjectiveExaminationId={1}", refractometry.ExaminationAssignedId, refractometry.ContactLensesTests[0].Id); break; case "T5": if (refractometry.SubjectiveOpticalExaminations.Count() == 0) frame.Attributes["src"] = String.Format("SubjectiveOpticalExaminationForm.aspx?RefractometryId={0}", refractometry.ExaminationAssignedId); else frame.Attributes["src"] = String.Format("SubjectiveOpticalExaminationForm.aspx?RefractometryId={0}&SubjectiveOpticalExaminationId={1}", refractometry.ExaminationAssignedId, refractometry.SubjectiveOpticalExaminations[0].Id); break; case "T6": if (refractometry.PrescriptionGlasses.Count() == 0) frame.Attributes["src"] = String.Format("PrescriptionGlassesForm.aspx?RefractometryId={0}", refractometry.ExaminationAssignedId); else frame.Attributes["src"] = String.Format("PrescriptionGlassesForm.aspx?RefractometryId={0}&PrescriptionGlassesId={1}", refractometry.ExaminationAssignedId, refractometry.PrescriptionGlasses[0].Id); break; case "T7": if (refractometry.Cycloplegias.Count() == 0) frame.Attributes["src"] = String.Format("CycloplegiaForm.aspx?RefractometryId={0}", refractometry.ExaminationAssignedId); else frame.Attributes["src"] = String.Format("CycloplegiaForm.aspx?RefractometryId={0}&CycloplegiaId={1}", refractometry.ExaminationAssignedId, refractometry.Cycloplegias[0].Id); break; } }
/// <summary> /// Handles the TabClick event of the _rTabReservations control. /// </summary> /// <param name = "sender">The source of the event.</param> /// <param name = "e">The <see cref = "Telerik.Web.UI.RadTabStripEventArgs" /> instance containing the event data.</param> protected void _rTabReservations_TabClick(object sender, RadTabStripEventArgs e) { _rgReservations.Rebind(); }
protected void RadTabStrip1_OnTabClick(object sender, RadTabStripEventArgs e) { if (e.Tab.Text.Equals("Radicais")) { Logger.GetInstancia().Debug("Iniciando busca de radicais colidentes"); e.Tab.PostBack = true; this.pnlRadicais.Visible = true; var revistaSelecionada = (IRevistaDePatente)ViewState[CHAVE_REVISTA_SELECIONADA]; var xmlRevista = MontaXmlParaProcessamentoDaRevista(revistaSelecionada); IList<IRevistaDePatente> listaDeTodosProcessosDaRevistaXML = new List<IRevistaDePatente>(); IList<IProcessoDePatente> listaDeProcessosDePatentesComRadicalCadastrado = new List<IProcessoDePatente>(); IList<IRevistaDePatente> listaDeProcessosDaRevistaComPatenteExistente = new List<IRevistaDePatente>(); Logger.GetInstancia().Debug("Buscando todos os processos da revista de patente xml"); using (var servico = FabricaGenerica.GetInstancia().CrieObjeto<IServicoDeRevistaDePatente>()) listaDeTodosProcessosDaRevistaXML = servico.CarregueDadosDeTodaRevistaXML(xmlRevista); using (var servico = FabricaGenerica.GetInstancia().CrieObjeto<IServicoDeProcessoDePatente>()) { Logger.GetInstancia().Debug("Buscando todos os processos com patentes que contem radical cadastrado"); listaDeProcessosDePatentesComRadicalCadastrado = servico.obtenhaProcessosAtivosComPatenteQueContemRadicalCadastrado(); } if (listaDeProcessosDePatentesComRadicalCadastrado.Count > 0) { foreach (var processoDaRevista in listaDeTodosProcessosDaRevistaXML.Where(processoDaRevista => !string.IsNullOrEmpty(processoDaRevista.Titulo))) listaDeProcessosDaRevistaComPatenteExistente.Add(processoDaRevista); // obtendo informações para o preenchimento das grids, com as patentes de clientes e as patentes colidentes da revista IList<IRevistaDePatente> revistaDePatentes = new List<IRevistaDePatente>(); Logger.GetInstancia().Debug("Obtendo lista de patentes colidentes"); if (listaDeProcessosDaRevistaComPatenteExistente.Count > 0) CarregaListaDeRadicais(listaDeProcessosDaRevistaComPatenteExistente, listaDeProcessosDePatentesComRadicalCadastrado); else { // não existe patentes colidentes ScriptManager.RegisterClientScriptBlock(this, GetType(), Guid.NewGuid().ToString(), UtilidadesWeb.MostraMensagemDeInformacao("Não existe patentes colidentes."), false); LimpaRadicais(); } } else { ScriptManager.RegisterClientScriptBlock(this, GetType(), Guid.NewGuid().ToString(), UtilidadesWeb.MostraMensagemDeInformacao("Não existe patentes colidentes."), false); LimpaRadicais(); } Logger.GetInstancia().Debug("Fim da busca de radicais colidentes"); } }
protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e) { LoadAssessments(e.Tab.TabStrip.SelectedIndex == 1); }
protected void Rad_tabNavigation_TabClick(object sender, RadTabStripEventArgs e) { int childindex = -1; Session[Session.SessionID + "ParentTabIndex"] = e.Tab.Index.ToString(); Session[Session.SessionID + "ChildTabValue"] = "-1"; foreach (RadTab tab in Rad_tabNavigation.Tabs) { if (tab.Selected && e.Tab.Value.ToString() != string.Empty) { Session[Session.SessionID + "ParentTabValue"] = e.Tab.Value.ToString(); Session[Session.SessionID + "ChildTabIndex"] = "-1"; Session[Session.SessionID + "ChildTabValue"] = "-1"; } foreach (RadTab childTab in tab.Tabs) { if (childTab.Selected) { Session[Session.SessionID + "ChildTabIndex"] = childTab.Index; Session[Session.SessionID + "ChildTabValue"] = childTab.Text; childindex = childTab.Index; } } } CreateRootTab(Convert.ToInt16(Session[Session.SessionID + "ParentTabIndex"].ToString()), Session[Session.SessionID + "ParentTabValue"].ToString()); CreateChildren(e.Tab, Session[Session.SessionID + "ChildTabValue"].ToString()); if (gotochildpage) { gotochildpage = false; Response.Redirect(Session[Session.SessionID + "ChildURLValue"].ToString()); } string theforwardurl = GET_Tab_URL(e.Tab.Text.ToString()); if (theforwardurl != string.Empty) Response.Redirect(theforwardurl); if (e.Tab.Text.ToLower() == "local plan") { Response.Redirect("~/LocalPlan/LocalPlan.aspx"); } }
protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e) { if (visit == null) return; frame = (HtmlControl)this.FindControl("FrmArea"); switch (e.Tab.Value) { case "general": frame.Attributes["src"] = String.Format("OphVisitForm.aspx?VisitId={0}&Type=InTab",visit.VisitId); break; case "motappend": frame.Attributes["src"] = String.Format("MotAppendForm.aspx?OphVisitId={0}&Type=InTab", visit.VisitId); break; case "antsegment": frame.Attributes["src"] = String.Format("AntSegmentForm.aspx?OphVisitId={0}&Type=InTab", visit.VisitId); break; case "fundus": frame.Attributes["src"] = String.Format("FundusForm.aspx?OphVisitId={0}&Type=InTab", visit.VisitId); break; case "diagnosticassigned": frame.Attributes["src"] = String.Format("DiagnosticAssignedGrid.aspx?VisitId={0}&Type=InTab" , visit.VisitId); break; case "treatment": frame.Attributes["src"] = String.Format("TreatmentGrid.aspx?VisitId={0}&Type=InTab" , visit.VisitId); break; case "examination": frame.Attributes["src"] = String.Format("ExaminationAssignedGrid.aspx?VisitId={0}&Type=InTab" , visit.VisitId); break; case "labtestassigned": frame.Attributes["src"] = String.Format("LabTestAssignedGrid.aspx?VisitId={0}&Type=InTab" , visit.VisitId); break; case "procedureassigned": frame.Attributes["src"] = String.Format("ProcedureAssignedGrid.aspx?VisitId={0}&Type=InTab", visit.VisitId); break; } }