Пример #1
0
        // "Name" Link Button event handler
        protected void UpdateGridItem(object sender, System.EventArgs e)
        {
            Infragistics.WebUI.UltraWebGrid.CellItem cellItem = ((Infragistics.WebUI.UltraWebGrid.CellItem)((System.Web.UI.WebControls.LinkButton)sender).Parent);
            string sId = cellItem.Cell.Row.Cells.FromKey("Id").Text;

            sId = Utils.CReplace(sId, "<font color=red><b>", "", 1);
            sId = Utils.CReplace(sId, "</b></font>", "", 1);

            UpdateDataEdit(sId);
        }
Пример #2
0
 // "Name" Link Button event handler
 protected void UpdateGridItem(object sender, System.EventArgs e)
 {
     //if (HyperCatalog.Shared.SessionState.User.HasCapability(CapabilitiesEnum.DESIGN_ANALYSES))
     //{
     Infragistics.WebUI.UltraWebGrid.CellItem cellItem = ((Infragistics.WebUI.UltraWebGrid.CellItem)((System.Web.UI.WebControls.LinkButton)sender).Parent);
     UpdateDataEdit(cellItem.Cell.Row.Cells.FromKey("Id").Text);
     //}
     //else
     //{
     //  UITools.DenyAccess(DenyMode.Frame);
     //}
 }
Пример #3
0
    //private void UpdateDataEdit(string JobName)
    //{

    //}
    // "Name" Link Button event handler
    protected void UpdateGridItem(object sender, System.EventArgs e)
    {
        if (sender != null)
        {
            Infragistics.WebUI.UltraWebGrid.CellItem cellItem = ((Infragistics.WebUI.UltraWebGrid.CellItem)((System.Web.UI.WebControls.LinkButton)sender).Parent);
            string sJobName = cellItem.Cell.Row.Cells.FromKey("JobName").Text;

            sJobName = Utils.CReplace(sJobName, "<font color=red><b>", "", 1);
            sJobName = Utils.CReplace(sJobName, "</b></font>", "", 1);

            panelGrid.Visible             = false;
            panelTab.Visible              = true;
            webTab.Tabs.GetTab(0).Visible = true;
            webTab.Tabs.GetTab(0).Text    = "Properties";
            webTab.Tabs.GetTab(0).ContentPane.TargetUrl = "./jobscheduleedit.aspx?j=" + sJobName;
        }
    }
Пример #4
0
        // "Name" Link Button event handler
        protected void UpdateGridItem(object sender, System.EventArgs e)
        {
            if (sender != null)
            {
                if (HyperCatalog.Shared.SessionState.User.HasCapability(CapabilitiesEnum.SQL_BUILDER))
                {
                    Infragistics.WebUI.UltraWebGrid.CellItem cellItem = ((Infragistics.WebUI.UltraWebGrid.CellItem)((System.Web.UI.WebControls.LinkButton)sender).Parent);
                    string sId = cellItem.Cell.Row.Cells.FromKey("Id").Text;

                    sId = Utils.CReplace(sId, "<font color=red><b>", "", 1);
                    sId = Utils.CReplace(sId, "</b></font>", "", 1);

                    UpdateDataEdit(sId);
                }
                else
                {
                    UITools.DenyAccess(DenyMode.Standard);
                }
            }
        }
Пример #5
0
 /// <summary>
 /// Link to the ItemId selected
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void UpdateGridItem(object sender, System.EventArgs e)
 {
     Infragistics.WebUI.UltraWebGrid.CellItem cellItem = ((Infragistics.WebUI.UltraWebGrid.CellItem)((System.Web.UI.WebControls.LinkButton)sender).Parent);
     UpdateDataEdit(cellItem.Cell.Row.Cells.FromKey("TMExpressionId").Text);
 }