Esempio n. 1
0
 private void SetTabButtonsImage(DocsPaWebCtrlLibrary.ImageButton button,
                                 string enabledImageUrl,
                                 string disabledImageUrl)
 {
     button.ImageUrl    = enabledImageUrl;
     button.DisabledUrl = disabledImageUrl;
 }
Esempio n. 2
0
        /// <summary>
        /// Gestione abilitazione / disabilitazione pulsante cancellazione radiobuttons
        /// </summary>
        /// <param name="isEnabled"></param>
        /// <param name="parentCtl"></param>
        private void EnableButtonClearOptions(bool isEnabled, System.Web.UI.Control parentCtl)
        {
            foreach (System.Web.UI.Control ctl in parentCtl.Controls)
            {
                if (ctl.ID != null && ctl.ID.Equals("btnClearOptions"))
                {
                    DocsPaWebCtrlLibrary.ImageButton imgButton =
                        (DocsPaWebCtrlLibrary.ImageButton)ctl;
                    imgButton.Enabled = isEnabled;
                    break;
                }

                this.EnableButtonClearOptions(isEnabled, ctl);
            }
        }
Esempio n. 3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="idPulsanteConferma"></param>
        public virtual void AttatchPulsanteConferma(string idPulsanteConferma)
        {
            if (!string.IsNullOrEmpty(idPulsanteConferma))
            {
                WebControl control = this.Page.Form.FindControl(idPulsanteConferma) as WebControl;

                if (control is DocsPaWebCtrlLibrary.ImageButton)
                {
                    DocsPaWebCtrlLibrary.ImageButton button = (DocsPaWebCtrlLibrary.ImageButton)control;
                    Utils.DefaultButton(this.Page, ref this.txtNote, ref button);
                }
                else if (control is Button)
                {
                    Button button = (Button)control;
                    Utils.DefaultButton(this.Page, ref this.txtNote, ref button);
                }
                else if (control is ImageButton)
                {
                    ImageButton button = (ImageButton)control;
                    Utils.DefaultButton(this.Page, ref this.txtNote, ref button);
                }
            }
        }
Esempio n. 4
0
        private void Page_PreRender(object sender, System.EventArgs e)
        {
            this.SetRecordCount();

            this.SetGridVisibility();

            if (!this._onFetchError)
            {
                this.grdCheckOutDocuments.Columns[5].Visible = this.CanForceUndoCheckOut;

                if (this.grdCheckOutDocuments.Columns[5].Visible)
                {
                    foreach (DataGridItem item in this.grdCheckOutDocuments.Items)
                    {
                        DocsPaWebCtrlLibrary.ImageButton button = item.Cells[5].FindControl("btnUndoCheckOut") as DocsPaWebCtrlLibrary.ImageButton;

                        if (button != null)
                        {
                            button.Attributes.Add("onClick", "return ConfirmUndoCheckOut();");
                        }
                    }
                }
            }
        }
Esempio n. 5
0
 /// <summary>
 /// Incorporo la lagica della chiamata a DefaultButton dentro il controllo per poter passare i campi
 /// contenuti nel controllo stesso.
 /// </summary>
 /// <param name="p"></param>
 /// <param name="btn"></param>
 public void DefButton_Ogg(ref DocsPaWebCtrlLibrary.ImageButton btn)
 {
     Utils.DefaultButton(this.Page, ref txt_oggetto, ref btn);
 }