Пример #1
0
    protected void ugrdKpiStatusTab_TabClick(object sender, Infragistics.WebUI.UltraWebTab.WebTabEvent e)
    {
        this.SetParameter();
        switch (e.Tab.Key)
        {
        case "1":
            this.SetCommunicationGrid();
            break;

        case "2":
            this.SetCommunicationOrgGrid();
            break;

        default:
            break;
        }
    }
Пример #2
0
        private void webTab_TabClick(object sender, Infragistics.WebUI.UltraWebTab.WebTabEvent e)
        {
            HyperCatalog.Business.Chunk localizedProductNameChunk = null;
            try
            {
                bool isRoll = false;
                if (SessionState.CurrentItem != null)
                {
                    if (e.Tab.Key == "tb_ori")
                    {
                        if (SessionState.Culture.Type != CultureType.Master)
                        {
                            localizedProductNameChunk = HyperCatalog.Business.Chunk.GetByKey(SessionState.CurrentItem.Id, 1, SessionState.Culture.Code);
                        }

                        // Update item name and level name
                        if (localizedProductNameChunk == null)
                        {
                            lbItemName.Text = SessionState.CurrentItem.FullName;
                        }
                        else
                        {
                            if (SessionState.CurrentItem.Sku != null && SessionState.CurrentItem.Sku.Length > 0)
                            {
                                lbItemName.Text = "[" + SessionState.CurrentItem.Sku + "] " + localizedProductNameChunk.Text;
                            }
                            else
                            {
                                lbItemName.Text = localizedProductNameChunk.Text;
                            }
                        }

                        itemLevelName = SessionState.CurrentItem.Level.Name;
                    }
                    else // tb_roll
                    {
                        using (Item rollItem = SessionState.CurrentItem.GetRoll())
                        {
                            if (rollItem != null)
                            {
                                isRoll          = true;
                                lbItemName.Text = rollItem.FullName;
                                if (SessionState.Culture.Type != CultureType.Master)
                                {
                                    localizedProductNameChunk = HyperCatalog.Business.Chunk.GetByKey(rollItem.Id, 1, SessionState.Culture.Code);
                                }

                                // Update item name and level name
                                if (localizedProductNameChunk == null)
                                {
                                    lbItemName.Text = rollItem.FullName;
                                }
                                else
                                {
                                    if (rollItem.Sku != null && rollItem.Sku.Length > 0)
                                    {
                                        lbItemName.Text = "[" + rollItem.Sku + "] - " + localizedProductNameChunk.Text;
                                    }
                                    else
                                    {
                                        lbItemName.Text = localizedProductNameChunk.Text;
                                    }
                                }

                                itemLevelName = rollItem.Level.Name;
                            }
                        }
                    }

                    if (lbItemName.Text.Length > 50)
                    {
                        lbItemName.Text = lbItemName.Text.Substring(0, 49) + "...";
                    }

                    if (isRoll)
                    {
                        lbItemName.Text = "<img src='/hc_v4/img/ed_roll.gif'> " + lbItemName.Text;
                    }
                }
            }
            finally
            {
                if (localizedProductNameChunk != null)
                {
                    localizedProductNameChunk.Dispose();
                }
            }
        }
Пример #3
0
 protected void ugrdKpiStatusTab_TabClick(object sender, Infragistics.WebUI.UltraWebTab.WebTabEvent e)
 {
     this.SetFormInit();
 }
Пример #4
0
        protected void webTab_TabClick(object sender, Infragistics.WebUI.UltraWebTab.WebTabEvent e)
        {
            string tab = e.Tab.Key.ToLower();

            GoTab(tab);
        }
Пример #5
0
 protected void UltraWebTab1_TabClick(object sender, Infragistics.WebUI.UltraWebTab.WebTabEvent e)
 {
     SelectedTabKey = e.Tab.Key;
     ChageTabPage();
 }