Esempio n. 1
0
 protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e)
 {
     dvReady.Visible   = RadTabStrip1.SelectedTab.Value.Equals("1");
     dvPending.Visible = !dvReady.Visible;
     //if (dvPending.Visible)
     //    DrawGridNoDoc();
 }
        protected void RTSMFOrderMenuBooks_TabClick(object sender, RadTabStripEventArgs e)
        {
            switch (e.Tab.Value)
            {
            case "RTSMFOrderMenuBooksOrderBook":     // add a new root tab--CustomerMFOrderBookList
                ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscriptvvvv", "LoadBottomPanelControl('OnlineCustomerOrderandTransactionBook','login');", true);
                break;

            case "RTSMFOrderMenuBooksTransactionBook":     // add a new child tab
                ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscriptvvvv", "LoadBottomPanelControl('CustomerTransactionBookList','login');", true);
                break;

            case "RTSMFOrderMenuBooksSIPBook":     // add a new child tab
                ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscriptvvvv", "LoadBottomPanelControl('SIPBookSummmaryList','?systematicType=" + "SIP" + "');", true);
                // ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscriptvvvv", "LoadBottomPanelControl('SIPBookSummmaryList','login');", true);
                break;

            case "RTSMFOrderMenuBooksSWPBook":     // add a new child tab
                ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscriptvvvv", "LoadBottomPanelControl('SIPBookSummmaryList','?systematicType=" + "SWP" + "');", true);
                //ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "SIPBookSummmaryList", "loadcontrol('SIPBookSummmaryList','?systematicType=" + "SWP" + "');", true);

                break;

            case "RTSMFOrderMenuBooksDividendBook":     // add a new child tab
                //ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscriptvvvv", "LoadBottomPanelControl('MFOrderSIPTransType','login');", true);
                break;
            }
        }
Esempio n. 3
0
    protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e)
    {
        int org = 0;

        int.TryParse(WSOrgTreeDropDownSelectForEdit.SelectedOrganization.Identity.ToString(), out org);

        if (e.Tab.Index == 1)
        {
            if (org != OrganizationRoles1.SelectedOrganization)
            {
                OrganizationRoles1.SelectedOrganization = org;
            }
            OrganizationRoles2.SelectedOrganization = 0;
        }
        else if (e.Tab.Index == 2)
        {
            if (org != OrganizationRoles2.SelectedOrganization)
            {
                OrganizationRoles2.SelectedOrganization = org;
            }
            OrganizationRoles1.SelectedOrganization = 0;
        }
        else
        {
            OrganizationRoles2.SelectedOrganization = 0;
            OrganizationRoles1.SelectedOrganization = 0;
        }
    }
    protected void RTS_ResumeShortList_TabClick(object sender, RadTabStripEventArgs e)
    {
        try
        {
            if (RTS_ResumeShortList.SelectedTab.Text == "Applicant")
            {
                btnShortList.Visible = true;
            }
            else
            {
                DataTable dt_ShortListed = new DataTable();
                _obj_Rec_ResumeShortList                 = new RECRUITMENT_RESUMESHORTLIST();
                _obj_Rec_ResumeShortList.Mode            = 10;
                _obj_Rec_ResumeShortList.RESSHT_JOBREQID = Convert.ToInt32(ddlJobReqCode.SelectedItem.Value);
                _obj_Rec_ResumeShortList.ORGANISATION_ID = Convert.ToInt32(Session["ORG_ID"].ToString());
                dt_ShortListed            = Recruitment_BLL.getApplicants(_obj_Rec_ResumeShortList);
                rg_ShortListed.DataSource = dt_ShortListed;
                rg_ShortListed.DataBind();
                rg_ShortListed.Visible      = true;
                RTS_ResumeShortList.Visible = true;
                btnShortList.Enabled        = true;

                //  RTS_ResumeShortList.SelectedIndex = 1;
                //LoadShortListed();
                btnShortList.Visible = false;
            }
        }
        catch (Exception ex)
        {
            SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "frm_ResumeShortList", ex.StackTrace, DateTime.Now);
            Response.Redirect("~/Frm_ErrorPage.aspx");
            return;
        }
    }
Esempio n. 5
0
 protected void RadTabStript1_OnTabClick(object sender, RadTabStripEventArgs e)
 {
     if (e.Tab.Text == "Contract")
     {
         RadGridStudentList_OnSelectedIndexChanged(null, null);
     }
 }
Esempio n. 6
0
        protected void Tab_Host_TabClick(object sender, RadTabStripEventArgs e)
        {
            if (Session["DormitoryHostid"] != null)
            {
                switch (Convert.ToInt32(Tab_Host.SelectedIndex))
                {
                case 1:
                    Grid_HostRoom.Rebind();
                    break;

                case 2:
                    Grid_HostBed.Rebind();
                    break;

                case 3:
                    Grid_School.Rebind();
                    break;

                case 4:
                    Grid_DormitoryPlacement.Rebind();
                    break;
                }
                SetSessionNull();
                ClearForm();
            }
        }
Esempio n. 7
0
 protected void radTab_TabClick(object sender, RadTabStripEventArgs e)
 {
     if (e.Tab.Value.Equals("NewPage", StringComparison.InvariantCultureIgnoreCase))
     {
         int tabIndex = e.Tab.Index;
         //Create the Page
         hitbl_Survey_Page_SPG surveyPageSpg = new hitbl_Survey_Page_SPG();
         surveyPageSpg.SPG_ID     = Guid.NewGuid();
         surveyPageSpg.OBJ_ID     = survey.ObjectID.Value;
         surveyPageSpg.SortNumber = (tabIndex) * 10;
         surveyPageSpg.Title      = string.Format("{0} {1}", GuiLanguage.GetGuiLanguage("DataObjectSurvey").GetString("DefaultPageName"), tabIndex);
         surveyDataClassDataContext.hitbl_Survey_Page_SPGs.InsertOnSubmit(surveyPageSpg);
         surveyDataClassDataContext.SubmitChanges();
         CreateTabContext(tabIndex, surveyPageSpg);
         radTab.SelectedIndex = tabIndex;
     }
     else
     {
         var surveyPage = (from allPages in surveyDataClassDataContext.hitbl_Survey_Page_SPGs.Where(x => x.OBJ_ID == survey.ObjectID)
                           orderby allPages.SortNumber ascending
                           select allPages).ToList().ElementAtOrDefault(e.Tab.Index);
         if (surveyPage != null)
         {
             InsertControlInPageView(e.Tab.Index, surveyPage);
         }
     }
     radMultiPage.SelectedIndex = radTab.SelectedIndex;
     hfCT.Value = e.Tab.Index.ToString();
 }
Esempio n. 8
0
 protected void clck_tab(object sender, RadTabStripEventArgs e)
 {
     try
     {
         if (Rm_Course_page.SelectedIndex == 1)
         {
             Rp_Course_ViewDetails.Selected = false;
             Rp_Course_ViewDetails.Visible  = false;
             rad_Qualifiaction.Selected     = true;
             rad_Qualifiaction.Visible      = true;
         }
         else
         {
             Rp_Course_ViewDetails.Selected = true;
             Rp_Course_ViewDetails.Visible  = true;
             rad_Qualifiaction.Selected     = false;
             rad_Qualifiaction.Visible      = false;
             Rm_Course_page.SelectedIndex   = 0;
         }
     }
     catch (Exception ex)
     {
         SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "TrainerProfile", ex.StackTrace, DateTime.Now);
         Response.Redirect("~/Frm_ErrorPage.aspx");
     }
 }
Esempio n. 9
0
    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("VisitForm.aspx?VisitId={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;
        }
    }
Esempio n. 10
0
    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;
        }
    }
Esempio n. 11
0
        //private void FillPermissionsTest(string testPhysicalPath)
        //{
        //    try
        //    {
        //        string physicalPathToTestFolder = System.IO.Path.Combine(testPhysicalPath, "TestFolder");
        //        System.IO.DirectoryInfo testDir = System.IO.Directory.CreateDirectory(physicalPathToTestFolder);// Create folder
        //        testDir.GetDirectories();// List folders
        //        string testFilePath = System.IO.Path.Combine(testDir.FullName, "TestFile1.txt");// test file paths
        //        System.IO.File.Create(testFilePath).Close();// Create a file
        //        testDir.GetFiles("*.*");// List files
        //        System.IO.File.OpenRead(testFilePath).Close();// Open a file
        //        //System.IO.File.Delete(testFilePath);// delete the test file
        //        //System.IO.Directory.Delete(physicalPathToTestFolder);// delete the test folder
        //    }
        //    catch (Exception ex)
        //    {// Show the probelm

        //        string message = ex.Message;
        //        string script = string.Format("alert('{0}');", message.Replace("'", @""""));
        //        ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "KEY", script, true);
        //    }
        //}

        protected void RadTabStrip_Files_TabClick(object sender, RadTabStripEventArgs e)
        {
            switch (e.Tab.Value)
            {
            case "Images":
                Session["File_Types"] = "Images";
                break;

            case "Media":
                Session["File_Types"] = "Media";
                break;

            case "Documents":
                Session["File_Types"] = "Documents";
                break;

            case "Templates":
                Session["File_Types"] = "Templates";
                break;

            case "ModuleTemplates":
                Session["File_Types"] = "ModuleTemplates";
                break;

            case "AllFiles":
                Session["File_Types"] = "AllFiles";
                break;
            }

            Response.Redirect(Request.Url.ToString());
        }
Esempio n. 12
0
 /// <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;
             }
     }
 }
Esempio n. 13
0
    protected void Tab_Host_TabClick(object sender, RadTabStripEventArgs e)
    {
        if (Grid_StudentList.SelectedValue != null)
        {
            switch (Convert.ToInt32(Tab_Host.SelectedIndex))
            {
            case 0:     // Request Detail
                PageViewVisible(true, false, false, false);
                break;

            case 1:     //Request History
                PageViewVisible(false, true, false, false);
                GridHistory.Rebind();
                break;

            case 2:     // Placement by School
                PageViewVisible(false, false, true, false);
                Grid_HomestayPlacement.Rebind();
                break;

            case 3:    // Placement by Agency
                PageViewVisible(false, false, false, true);
                Grid_PlacementAgency.Rebind();
                Download.Visible = false;

                break;
            }
        }
    }
Esempio n. 14
0
        /// <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;
            }
            }
        }
Esempio n. 15
0
        /// <summary>
        /// Handles the TabClick event of the radTabStrip 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 radTabStrip_TabClick(object sender, RadTabStripEventArgs e)
        {
            rfvTags.ValidationGroup = string.Empty;
            ucEditorSiteActionTemplate.ValidationGroup = string.Empty;
            ucEditorSiteActionTemplate.RebindValidators(string.Empty);

            var index = radTabStrip.SelectedIndex;

            if (index == 1)
            {
                rfvTags.ValidationGroup = validationGroup;
            }

            if (index == 2)
            {
                rfvTags.ValidationGroup = validationGroup;
                ucEditorSiteActionTemplate.ValidationGroup = validationGroup;
                ucEditorSiteActionTemplate.RebindValidators(validationGroup);
            }

            lbtnBack.Visible     = index != 0;
            lbtnNext.Visible     = index != 2;
            lbtnSendNow.Visible  = index == 2;
            lbtnSchedule.Visible = index == 2;
            lbtnTest.Visible     = index == 2;

            radTabStrip.Tabs[index].Selected = true;
            radMultiPage.FindPageViewByID("radPageView" + index).Selected = true;
        }
 protected void RTSIPOOrderMenuHoldingsIPO_TabClick(object sender, RadTabStripEventArgs e)
 {
     switch (e.Tab.Value)
     {
     case "RTSIPOOrderMenuHoldingsIPO":     // add a new root tab
         ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscriptvvvv", "LoadBottomPanelControl('CustomerIPOHolding','login');", true);
         break;
     }
 }
Esempio n. 17
0
 protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e)
 {
     switch (RadTabStrip1.SelectedIndex)
     {
         case 0:
             break;
         case 1:
             break;
     }
 }
Esempio n. 18
0
    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"));
    }
Esempio n. 19
0
        /// <summary>
        /// Refreshes the active sites and inactive sites status grids when the tab is clicked - to show just approved MANUs
        /// </summary>
        protected void rts1_TabClick(object sender, RadTabStripEventArgs e)
        {
            //Reset the initial view of the grid to show active sites
            ActiveOnly = 1;
            lbActiveSiteToggle.CommandArgument = "viewInactive";
            lbActiveSiteToggle.Text            = "Click to view inactive sites";
            ltlActiveSiteToggle.Text           = "Viewing active sites only";

            rgAllSites.Rebind();
            rgApprove.Rebind();
        }
Esempio n. 20
0
 protected void RadTabStript1_OnTabClick(object sender, RadTabStripEventArgs e)
 {
     if (e.Tab.Text == "Payout History")
     {
         RadGridCreditMemoPayoutHistory.Rebind();
     }
     else if (e.Tab.Text == "Payout")
     {
         RadGridCreditMemoPayout.Rebind();
     }
 }
Esempio n. 21
0
 protected void tbs_TabClick(object sender, RadTabStripEventArgs e)
 {
     cbxClientCode.DataSource = null;
     //cbxClientCode.Focus();
     //if (e.Tab.Value == "yd")
     //{
     //    CurrentFileInfos = new FileInfos();
     //    yaodianSearch3 _yaodianSearch3 = new yaodianSearch3();
     //    _yaodianSearch3.GetTreeView(new TreeView());
     //    CurrentFileInfos = yaodianSearch3.CurrentFileInfos;
     //}
 }
        protected void RTSNCDOrderMenuHoldings_TabClick(object sender, RadTabStripEventArgs e)
        {
            switch (e.Tab.Value)
            {
            case "RTSNCDOrderMenuHoldingsNCDHolding":     // add a new root tab
                ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscriptvvvv", "LoadBottomPanelControl('NCDIssueHoldings','?BondType=" + "FISDSD" + "');", true);
                break;

            case "RTSSGBOrderMenuHoldingsSGBHolding":     // add a new root tab
                ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscriptvvvv", "LoadBottomPanelControl('NCDIssueHoldings','?BondType=" + "FISSGB" + "');", true);
                break;
            }
        }
Esempio n. 23
0
        /// <summary>
        /// Handles the OnTabClick event of the rtsFilters 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 rtsFilters_OnTabClick(object sender, RadTabStripEventArgs e)
        {
            var date      = DateTime.Now.Date;
            var startDate = date;
            var endDate   = date;

            DateTimeHelper.GetPeriod((DateTimePeriod)int.Parse(rtsFilters.SelectedTab.Value), ref startDate,
                                     ref endDate);

            BindData(startDate, endDate);

            SaveUserSettings();
        }
Esempio n. 24
0
    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"));

    }
Esempio n. 25
0
        protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e)
        {
            RadTabStrip  rtabstrip = RadTabStrip1;
            RadMultiPage rmultipg  = rtabstrip.MultiPage;

            if (e.Tab.Text == "Search Customer")
            {
                ViewState["tabselected"] = 1;
            }
            else
            {
                ViewState["tabselected"] = 0;
            }
        }
Esempio n. 26
0
 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;
             }
 }
Esempio n. 27
0
 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;
     }
 }
Esempio n. 28
0
        protected void RadTabStrip_Page_TabClick(object sender, RadTabStripEventArgs e)
        {
            switch (RadTabStrip_Page.SelectedIndex)
            {
            case 0:
                break;

            case 1:
                break;

            case 2:
                //PageProperty_Show.Update_Disable();
                break;
            }
        }
Esempio n. 29
0
 protected void rtsCenterReportOptions_TabClick(object sender, RadTabStripEventArgs e)
 {
     if (e.Tab.Tabs.Count > 0)
     {
         //make the first child selected
         e.Tab.Tabs.First().Selected = true;
         //Set the multipage to show the selected childs tabindex
         rmpCenterReportOptions.SelectedIndex = e.Tab.Tabs.First().TabIndex;
     }
     else
     {
         //Set the multipage to show the selected Page
         rmpCenterReportOptions.SelectedIndex = e.Tab.TabIndex;
     }
     DataRebind();
 }
        protected void RTSNCDOrderMenuTransact_TabClick(object sender, RadTabStripEventArgs e)
        {
            switch (e.Tab.Value)
            {
            case "RTSNCDOrderMenuTransactNCDIssueList":     // add a new root tab
                ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscriptvvvv", "LoadBottomPanelControl('NCDIssueList','?BondType=" + "FISDSD" + "');", true);
                break;

            case "RTSSGBOrderMenuTransactSGBIssueList":     // add a new root tab
                ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscriptvvvv", "LoadBottomPanelControl('NCDIssueList','?BondType=" + "FISSGB" + "');", true);
                break;

            case "RTSNCDOrderMenuTransactIssueTransact":     // add a new child tab
                ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscriptvvvv", "LoadBottomPanelControl('NCDIssueTransact','login');", true);
                break;
            }
        }
        protected void RTSMFOrderMenuTransact_TabClick(object sender, RadTabStripEventArgs e)
        {
            switch (e.Tab.Value)
            {
            case "RTSMFOrderMenuTransactNewPurchase":     // add a new root tab
                ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscriptvvvv", "LoadBottomPanelControl('MFOrderPurchaseTransType','login');", true);
                break;

            case "RTSMFOrderMenuTransactAdditionalPurchase":     // add a new child tab
                ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscriptvvvv", "LoadBottomPanelControl('MFOrderAdditionalPurchase','login');", true);
                break;

            case "RTSMFOrderMenuTransactRedeem":     // add a new child tab
                ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscriptvvvv", "LoadBottomPanelControl('MFOrderRdemptionTransType','login');", true);
                break;

            case "RTSMFOrderMenuTransactSIP":     // add a new child tab
                ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscriptvvvv", "LoadBottomPanelControl('MFOrderSIPTransType','login');", true);
                break;

            case "RTSMFOrderMenuTransactNFO":     // add a new child tab
                ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscriptvvvv", "LoadBottomPanelControl('MFOrderNFOTransType','login');", true);
                break;

            case "RTSMFOrderMenuTransactSwitch":     // add a new child tab
                ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscriptvvvv", "LoadBottomPanelControl('MFOrderSwitchTransType','login');", true);
                break;

            case "RTSMFOrderMenuTransactSWP":     // add a new child tab
                ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscriptvvvv", "LoadBottomPanelControl('MFOrderSWPTransType','login');", true);
                break;

            case "RTSMFOrderMenuTransactSTP":     // add a new child tab
                ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscriptvvvv", "LoadBottomPanelControl('MFOrderSTPTransType','login');", true);
                break;

            case "RTSMFOrderMenuTransactFMP":     // add a new child tab
                ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscriptvvvv", "LoadBottomPanelControl('NCDIssueList','login');", true);
                break;
            }
        }
        protected void RTSMFOrderMenuHome_TabClick(object sender, RadTabStripEventArgs e)
        {
            switch (e.Tab.Value)
            {
            case "RTSMFOrderMenuHomeMarket":     // add a new root tab
                ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscriptvvvv", "LoadBottomPanelControl('MFSchemeRelateInformation','login');", true);
                break;

            case "RTSMFOrderMenuHomeSchemeResearch":     // add a new child tab
                ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscriptvvvv", "LoadBottomPanelControl('MFSchemeDetails','login');", true);
                break;

            case "RTSMFOrderMenuHomeSchemeCompare":     // add a new child tab
                ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscriptvvvv", "LoadBottomPanelControl('OnlineMFSchemeCompare','login');", true);
                break;

            case "RTSMFOrderMenuHomeNews":     // add a new child tab
                ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscriptvvvv", "LoadBottomPanelControl('ProductOnlineFundNews','login');", true);
                break;
            }
        }
Esempio n. 33
0
    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 rtsAuditDetails_TabClick(object sender, RadTabStripEventArgs e)
    {
        try
        {
            if (rtsAuditDetails.SelectedTab.Value == "MainScreenTab")
            {
                rmpAuditDetails.SelectedIndex = 0;
            }

            if (rtsAuditDetails.SelectedTab.Value == "AuditScreenTab")
            {
                rmpAuditDetails.SelectedIndex = 1;

                LoadAuditGrid();
                rgAudit.DataBind();
            }
        }
        catch (Exception ex)
        {
            SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "frm_LoginType", ex.StackTrace, DateTime.Now);
            Response.Redirect("~/Frm_ErrorPage.aspx");
        }
    }
 protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e)
 {
     if (e.Tab.Value != "OffenNeuzulassung")
     {
         AddPageView(e.Tab);
         e.Tab.PageView.Selected = true;
     }
 }
Esempio n. 36
0
        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]+)*)?@[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 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");

        }
    }
Esempio n. 38
0
 protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e)
 {
     RadGrid1.Rebind();
 }
Esempio n. 39
0
 protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e)
 {
     AddPageView(e.Tab);
     e.Tab.PageView.Selected = true;
 }
Esempio n. 40
0
 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;
     }
 }
Esempio n. 41
0
 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;
     }
 }
 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;
     }
 }
Esempio n. 43
0
 protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e)
 {
     NavegaFrame(e.Tab.Value);
 }
        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();
        }
Esempio n. 45
0
 /// <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();
 }
Esempio n. 46
0
 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();
     }
 }
Esempio n. 47
0
    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;
        }
    }
Esempio n. 48
0
 protected void rtsCampaignComparsion_TabClick(object sender, RadTabStripEventArgs e)
 {
 }
        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");
            }
        }
Esempio n. 50
0
 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;
     }
 }
Esempio n. 51
0
 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)
 {
     if (e.Tab.Value != "AuftragsbearbeitungAbmeldung")
     {
         AddPageView(e.Tab);
         e.Tab.PageView.Selected = true;
     }
 }
 protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e)
 {
 }
Esempio n. 54
0
        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();
                }
            }
        }
Esempio n. 55
0
        //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)
 {
     LoadAssessments(e.Tab.TabStrip.SelectedIndex == 1);
 }
Esempio n. 57
0
 protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e)
 {
     PaymentsLiteral.Text = "";
     Literal0.Text = "";
     MailPanel1.Update();
 }
 protected void RadTabStrip2_TabClick(object sender, RadTabStripEventArgs e)
 {
     String category = AssessmentResults_RadTabStrip.SelectedTab.Text;
     Tile.TileParms.AddParm("category", category);
     BuildTestTypes();
     BuildAssessments();
 }
Esempio n. 59
0
 /// <summary>
 /// Handles the OnTabClick event of the rtsPublicationTypes 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 rtsPublicationTypes_OnTabClick(object sender, RadTabStripEventArgs e)
 {
     CurrentPublicationType = Guid.Parse(rtsPublicationTypes.SelectedTab.Value);
 }
Esempio n. 60
0
        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();
            }

        }