/// <summary> /// <para> /// Initializes the designer with the component for design. /// </para> /// </summary> /// <param name='component'> /// The control element for design. /// </param> /// <remarks> /// <para> /// This is called by the designer host to establish the component for /// design. /// </para> /// </remarks> /// <seealso cref='System.ComponentModel.Design.IDesigner'/> public override void Initialize(IComponent component) { Debug.Assert(component is System.Web.UI.MobileControls.Label, "LabelDesigner.Initialize - Invalid Label Control"); _label = (System.Web.UI.MobileControls.Label) component; base.Initialize(component); }
/// <summary> /// <para> /// Initializes the designer with the component for design. /// </para> /// </summary> /// <param name='component'> /// The control element for design. /// </param> /// <remarks> /// <para> /// This is called by the designer host to establish the component for /// design. /// </para> /// </remarks> /// <seealso cref='System.ComponentModel.Design.IDesigner'/> public override void Initialize(IComponent component) { Debug.Assert(component is System.Web.UI.MobileControls.Label, "LabelDesigner.Initialize - Invalid Label Control"); _label = (System.Web.UI.MobileControls.Label)component; base.Initialize(component); }
private void Page_Load(object sender, System.EventArgs e) { this.p_lblRDL = ((System.Web.UI.MobileControls.Label)Panel4.Controls[0].FindControl("lblRDL")); this.p_lblData = ((System.Web.UI.MobileControls.Label)Panel4.Controls[0].FindControl("lblData")); this.p_lblOra = ((System.Web.UI.MobileControls.Label)Panel4.Controls[0].FindControl("lblOra")); this.p_lblRDL.Text = Request.QueryString["ItemID"].ToString(); this.p_lblData.Text = "01/01/1900"; this.p_lblOra.Text = "00.00"; // Inserire qui il codice utente necessario per inizializzare la pagina. if (!IsPostBack) { ((System.Web.UI.HtmlControls.HtmlTable)Panel4.Controls[0].Controls[0].FindControl("tableconferma")).Visible = false; if (Request.QueryString["ItemID"] != null) { itemId = Int32.Parse(Request.QueryString["ItemID"].ToString()); } SetValue(Panel4, "lblDataStart", System.DateTime.Now.ToShortDateString()); SetValue(Panel4, "lblDataEnd", System.DateTime.Now.ToShortDateString()); SetValue(Panel4, "txtOraStart", "00"); //txtOraStart//txtMinutiStart//txtOraEnd SetValue(Panel4, "txtMinutiStart", "00"); //txtOraStart//txtMinutiStart//txtOraEnd SetValue(Panel4, "txtOraEnd", "00"); //txtOraStart//txtMinutiStart//txtOraEnd SetValue(Panel4, "txtMinutiEnd", "00"); //txtOraStart//txtMinutiStart//txtOraEnd this.BindStatoLavoro(""); LoadDati(); ActiveForm = Form3; } System.Web.UI.MobileControls.Calendar cal = (System.Web.UI.MobileControls.Calendar)Form4.Controls[0].FindControl("Calendar1"); cal.SelectedDates.Clear(); }
protected void OnLogin(object sender, System.EventArgs e) { System.Web.UI.MobileControls.TextBox txtUserID = (System.Web.UI.MobileControls.TextBox)Panel1.Controls[0].FindControl("txtUserID"); System.Web.UI.MobileControls.TextBox txtPassword = (System.Web.UI.MobileControls.TextBox)Panel1.Controls[0].FindControl("txtPassword"); System.Web.UI.MobileControls.Label lblInvalidLogin = (System.Web.UI.MobileControls.Label)Panel1.Controls[0].FindControl("lblInvalidLogin"); if (IsAuthenticated(txtUserID.Text, txtPassword.Text)) { MobileFormsAuthentication.RedirectFromLoginPage(txtPassword.Text, true); } else { lblInvalidLogin.Visible = true; lblInvalidLogin.Text = "*-Credenziali non Valide"; } }
private void Page_Load(object sender, System.EventArgs e) { // Inserire qui il codice utente necessario per inizializzare la pagina. if (Request.Params["ItemId"] != null) { this.p_lblOperatore = ((System.Web.UI.MobileControls.Label)Panel1.Controls[0].FindControl("lblOperatore")); this.p_lblData = ((System.Web.UI.MobileControls.Label)Panel1.Controls[0].FindControl("lblData")); this.p_lblOra = ((System.Web.UI.MobileControls.Label)Panel1.Controls[0].FindControl("lblOra")); this.p_lblRichiedente = ((System.Web.UI.MobileControls.Label)Panel1.Controls[0].FindControl("lblRichedente")); this.p_lblGruppo = ((System.Web.UI.MobileControls.Label)Panel1.Controls[0].FindControl("lblGruppo")); this.p_lblTelefono = ((System.Web.UI.MobileControls.Label)Panel1.Controls[0].FindControl("lblTelefono")); this.p_lblNota = ((System.Web.UI.MobileControls.Label)Panel1.Controls[0].FindControl("lblNota")); this.p_lblCodiceEdificio = ((System.Web.UI.MobileControls.Label)Panel1.Controls[0].FindControl("lblCodEdificio")); this.p_lblDenominazione = ((System.Web.UI.MobileControls.Label)Panel1.Controls[0].FindControl("lblDenominazione")); this.p_lblDescrizione = ((System.Web.UI.MobileControls.Label)Panel1.Controls[0].FindControl("lblDescrizione")); this.p_lblUrgenza = ((System.Web.UI.MobileControls.Label)Panel1.Controls[0].FindControl("lblUrgenza")); this.p_lblServizio = ((System.Web.UI.MobileControls.Label)Panel1.Controls[0].FindControl("lblServizio")); this.p_lblEqStd = ((System.Web.UI.MobileControls.Label)Panel1.Controls[0].FindControl("lblStdApparacchiatura")); this.p_lblEqId = ((System.Web.UI.MobileControls.Label)Panel1.Controls[0].FindControl("lblApparacchiatura")); this.p_lblRDL = ((System.Web.UI.MobileControls.Label)Panel1.Controls[0].FindControl("lblRDL")); this.p_lblRDL.Text = Request.Params["ItemId"]; itemId = Int32.Parse(Request.Params["ItemId"]); //itemId = 202;//Int32.Parse("162"); // PageTitle1.Title = "Inserimento Richiesta di Lavoro N° " + itemId ; // txtWrHidden.Text= itemId.ToString(); Class.ClassRichiesta _Richiesta = new Class.ClassRichiesta(Context.User.Identity.Name); DataSet _MyDs = _Richiesta.GetSingleData(itemId).Copy(); if (_MyDs.Tables[0].Rows.Count == 1) { DataRow _Dr = _MyDs.Tables[0].Rows[0]; DateTime d_DateRequested = (DateTime)_Dr["DATE_REQUESTED"]; this.p_lblData.Text = d_DateRequested.ToShortDateString(); DateTime d_TimeRequested = (DateTime)_Dr["TIME_REQUESTED"]; this.p_lblOra.Text = d_TimeRequested.ToShortTimeString(); this.p_lblCodiceEdificio.Text = (string)_Dr["BL_ID"]; if (_Dr["DENOMINAZIONE"] != DBNull.Value) { this.p_lblDenominazione.Text = (string)_Dr["DENOMINAZIONE"]; } if (_Dr["USERNAME"] != DBNull.Value) { this.p_lblOperatore.Text = (string)_Dr["USERNAME"]; } if (_Dr["REQUESTOR"] != DBNull.Value) { this.p_lblRichiedente.Text = (string)_Dr["REQUESTOR"]; } if (_Dr["PHONE"] != DBNull.Value) { this.p_lblTelefono.Text = (string)_Dr["PHONE"]; } if (_Dr["DESCRIZIONERICHIEDENTI"] != DBNull.Value) { this.p_lblGruppo.Text = (string)_Dr["DESCRIZIONERICHIEDENTI"]; } string s_Nota = string.Empty; if (_Dr["NOTA_RIC"] != DBNull.Value) { s_Nota = (string)_Dr["NOTA_RIC"]; } this.p_lblNota.Text = s_Nota.Replace("\n", "<br>"); string s_Descrizione = string.Empty; if (_Dr["DESCRIPTION"] != DBNull.Value) { s_Descrizione = (string)_Dr["DESCRIPTION"]; } this.p_lblDescrizione.Text = s_Descrizione.Replace("\n", "<br>"); if (_Dr["PRIORITY"] != DBNull.Value) { this.p_lblUrgenza.Text = (string)_Dr["PRIORITY"]; } if (_Dr["DESCRIZIONESERVIZI"] != DBNull.Value) { this.p_lblServizio.Text = (string)_Dr["DESCRIZIONESERVIZI"]; } string s_Eqstd = string.Empty; if (_Dr["EQ_STD"] != DBNull.Value) { s_Eqstd = (string)_Dr["EQ_STD"]; } if (_Dr["DESCRIZIONEEQSTD"] != DBNull.Value) { s_Eqstd += " " + (string)_Dr["DESCRIZIONEEQSTD"]; } this.p_lblEqStd.Text = s_Eqstd; if (_Dr["EQ_ID"] != DBNull.Value) { this.p_lblEqId.Text = (string)_Dr["EQ_ID"]; } } } }
public void setLabel(System.Web.UI.MobileControls.Label lbl) { this.strData = lbl; }