Ejemplo n.º 1
0
        protected void RadWizard1_NextButtonClick(object sender, Telerik.Web.UI.WizardEventArgs e)
        {
            int nextStep    = e.NextStepIndex;
            int currentStep = e.CurrentStepIndex;

            try
            {
                if (nextStep.Equals(5))
                {
                    Data.updatele_ee_session_info(session_id, txtLifeEventDate.SelectedDate.Value.ToShortDateString(), txtNote.Text);
                }

                if (hidtab3.Value.Equals("1"))
                {
                    if (nextStep.Equals(3))
                    {
                        RadWizard1.ActiveStepIndex        = 4; //go to step 4
                        RadWizard1.WizardSteps[4].Enabled = true;
                    }
                    else
                    {
                        RadWizard1.WizardSteps[nextStep].Enabled = true;
                        Update_lblDocumentation();
                    }
                }
                else
                {
                    RadWizard1.WizardSteps[nextStep].Enabled = true;
                }

                if (currentStep.Equals(2))
                {
                    if (RadPanelBar1.Items[0].Expanded == true)
                    {
                        Data.add_ee_property_code(ViewState["Employee_Number"].ToString(), "708", "1", ViewState["User_Name"].ToString());
                    }
                }

                if (currentStep.Equals(3))
                {
                    Update_lblDocumentation();
                }
                //lblComments4.ToolTip = txtNote.Content;
                //lblComments3.ToolTip = txtNote.Content;
                //setPage(RadWizard1.ActiveStepIndex);
                if (nextStep.Equals(3))
                {
                    string hiddiv = "<script>Javescript:hidfax('0')</script>";
                    Page.ClientScript.RegisterStartupScript(Page.GetType(), "hiddiv", hiddiv);
                }
            }
            catch { }
            //RadWizard1.WizardSteps[3].CssClass = "wizardStepHidden";
        }
Ejemplo n.º 2
0
        private void RadWizard3_NextButtonClick(object sender, Telerik.Web.UI.WizardEventArgs e)
        {
            bool   isNextstep   = ViewState["IsNextStep"] != null ? (bool)ViewState["IsNextStep"] : false;
            string projectCodes = ViewState["projectCode"] != null ? ViewState["projectCode"].ToString() : string.Empty;



            var projes = new Model.ZirProje();


            if (isNextstep == true)
            {
                if (e.CurrentStepIndex == 2)
                {
                    string fehrestbahaCount = ViewState["fehrestbahaCount"] != null ? ViewState["fehrestbahaCount"].ToString() : string.Empty;
                    string loolehaCount     = ViewState["loolehaCount"] != null ? ViewState["loolehaCount"].ToString() : string.Empty;

                    Dictionary <string, string> phonesName = new Dictionary <string, string>();
                    phonesName = UscGridWtihAttachment.DataBound(projectCodes);

                    if (new tkv.Utility.WebConfigurationHelper().GetAppSettingValue("SendSMS") == "yes")
                    {
                        Helpers.SMSHelpers sms = new Helpers.SMSHelpers();
                        sms.SendSMS(phonesName);
                    }

                    // for show report

                    lblProjectCount.Text     = phonesName.Count.ToString();
                    lblfehrestbahaCount.Text = fehrestbahaCount;
                    lblLoolehaCount.Text     = loolehaCount;
                }

                RadWizard3.ActiveStepIndex = e.CurrentStepIndex + 1;
                ViewState["IsNextStep"]    = false;
            }
            else
            {
                RadWizard3.ActiveStepIndex = e.CurrentStepIndex;
            }
        }
Ejemplo n.º 3
0
 private void RadWizard3_NavigationBarButtonClick(object sender, Telerik.Web.UI.WizardEventArgs e)
 {
     RadWizard3.ActiveStepIndex = e.CurrentStepIndex;
 }