private void Page_Load(object sender, System.EventArgs e)
 {
     System.Web.UI.MobileControls.RegularExpressionValidator RqOrdine = (System.Web.UI.MobileControls.RegularExpressionValidator)Panel1.Controls[0].FindControl("RegularExpressionValidator1");
     RqOrdine.Visible = true;
     System.Web.UI.MobileControls.Calendar cal = (System.Web.UI.MobileControls.Calendar)Panel2.Controls[0].FindControl("Calendar1");
     cal.SelectedDates.Clear();
 }
        protected void ModificaODL_Click(object sender, System.EventArgs e)
        {
            this.pcmbsAddetti0 = (DropDownList)Panel1.Controls[0].Controls[0].FindControl("cmbsAddetti0");
            Panel1.Visible     = true;
            Panel2.Visible     = false;

            System.Web.UI.MobileControls.RegularExpressionValidator RqOrdine = (System.Web.UI.MobileControls.RegularExpressionValidator)Panel1.Controls[0].FindControl("RegularExpressionValidator1");
            RqOrdine.Visible = false;
            if (this._HS == null)
            {
                this._HS = new Hashtable();
            }

            foreach (DataGridItem o_Litem in this.p_GridRisultati.Items)
            {
                int id = Int32.Parse(o_Litem.Cells[0].Text);
                System.Web.UI.WebControls.CheckBox cb = (System.Web.UI.WebControls.CheckBox)o_Litem.Cells[1].FindControl("ChkSel");

                if (this._HS.ContainsKey(id))
                {
                    this._HS.Remove(id);
                }
                if (cb.Checked)
                {
                    this._HS.Add(id, cb.Checked);
                }
            }
            myDelegate(_HS, 1);
        }
Exemplo n.º 3
0
 protected void OnSalva(object sender, System.EventArgs e)
 {
     System.Web.UI.MobileControls.RegularExpressionValidator RqTelefono = (System.Web.UI.MobileControls.RegularExpressionValidator)Panel1.Controls[0].FindControl("RqTelefono");
     RqTelefono.Validate();
     if (RqTelefono.IsValid)
     {
         int result = NuovaRichiesta();
         if (result != 0)
         {
             this.RedirectToMobilePage("VisualRdl.aspx?ItemId=" + result.ToString());
         }
     }
 }
Exemplo n.º 4
0
        protected void OnRicerca(object sender, System.EventArgs e)
        {
            System.Web.UI.MobileControls.RegularExpressionValidator RqOrdine    = (System.Web.UI.MobileControls.RegularExpressionValidator)pnlGestioneComp.Controls[0].FindControl("ValidatorOrdine");
            System.Web.UI.MobileControls.RegularExpressionValidator RqRichiesta = (System.Web.UI.MobileControls.RegularExpressionValidator)pnlGestioneComp.Controls[0].FindControl("ValidatorRichiesta");

            this.p_intPriority = (p_cmbsPriority.SelectedValue == "")?0:Int32.Parse(p_cmbsPriority.SelectedValue);
            this.p_intServizio = (p_cmbsServizio.SelectedValue == "")? 0:Int32.Parse(p_cmbsServizio.SelectedValue);
            this.p_intGruppo   = (p_cmbsGruppo.SelectedValue == "")?0:Int32.Parse(p_cmbsGruppo.SelectedValue);

            if (RqOrdine.IsValid && RqRichiesta.IsValid)
            {
                this.GridRicerca.CurrentPageIndex = 0;
                if (this.Ricerca())
                {
                    ((System.Web.UI.MobileControls.Label)PnlRicerca.Controls[0].FindControl("lblDscrizioneRicerca")).Text = "Richieste da completare";
                    this.ActiveForm = Form3;
                }
            }
        }