コード例 #1
0
        //Adding data to dataView
        private void AddDataItems(ASPxDataView dvMaster, int lineId, int sectionId)
        {
            AssemblySection section = ProductionRepository.GetAssemblySection(sectionId);

            List <Station> stations = new List <Station>();

            stations = ProductionRepository.GetStationsInAssemblySection(sectionId);

            if (stations.Any())
            {
                foreach (Station sta in stations)
                {
                    DataViewItem dvItem = new DataViewItem();

                    StationInfo info = new StationInfo();
                    info.StationId   = sta.Id;
                    info.StationName = sta.StationName;
                    info.SectionId   = sectionId;
                    info.LineId      = lineId;

                    info.SectionTypeId = section.AssemblySectionTypeId;
                    info.IsQGate       = sta.IsQualityGate;

                    info.Capacity = sta.Capacity;

                    info.Items = ProductionRepository.GetProductionItems(info.LineId, info.StationId);

                    dvItem.DataItem = info;

                    dvMaster.Items.Add(dvItem);
                }

                dvMaster.SettingsTableLayout.ColumnCount = stations.Count;
            }
        }
コード例 #2
0
    protected void ASPxCallbackPanel1_Callback(object sender, DevExpress.Web.ASPxClasses.CallbackEventArgsBase e)
    {
        Session["CategoryID"] = e.Parameter;

        ASPxCallbackPanel panel = (ASPxCallbackPanel)sender;

        ASPxDataView dataView = (ASPxDataView)panel.FindControl("ASPxDataView1");

        dataView.DataBind();
    }
コード例 #3
0
 void AddDataItems(ASPxDataView dataView)
 {
     for (int i = 1; i <= itemsCount; i++)
     {
         dataView.Items.Add().DataItem = new {
             ID          = i,
             Name        = "Name" + i,
             Description = "Sample description for the item"
         };
     }
 }
コード例 #4
0
 protected override WebControl CreateViewModeControlCore()
 {
     DataView = new ASPxDataView();
     DataView.SettingsTableLayout.ColumnCount  = 1;
     DataView.SettingsTableLayout.RowsPerPage  = 1;
     DataView.PagerSettings.ShowNumericButtons = true;
     DataView.PagerSettings.AllButton.Visible  = true;
     DataView.ItemStyle.Paddings.Padding       = new Unit(0, UnitType.Pixel);
     DataView.ItemTemplate = new DocumentItemTemplate(this);
     DataView.Width        = Unit.Percentage(100);
     return(DataView);
 }
    protected void dataView_CustomCallback(object sender, CallbackEventArgsBase e)
    {
        ASPxDataView dv = (ASPxDataView)sender;

        switch (e.Parameter)
        {
        case "Next":
            dv.PageIndex += 1;
            break;

        case "Prev":
            dv.PageIndex -= 1;
            break;
        }
        SaveJsProperties(dv);
    }
コード例 #6
0
 protected void LocalizeDataView(ASPxDataView view)
 {
     try
     {
         string[] idToTranslate = new string[] { "lblGeneralTitle", "lblProductName", "lblProductEan",
                                                 "lblCategory", "lblRecommendedPrice" };
         DataViewItem item = view.Items[0];
         foreach (string id in idToTranslate)
         {
             ASPxLabel ctrl = (ASPxLabel)view.FindItemControl(id, item);
             if (ctrl != null)
             {
                 ctrl.Text = Utilities.GetResourceString("Common", "Details" + id.Replace("lbl", ""));
             }
         }
     }
     catch (Exception)
     {
     }
 }
コード例 #7
0
ファイル: SearchControl.ascx.cs プロジェクト: ramyothman/RBM
        private ASPxDataView GetDataView(SectionItem item, int itemId)
        {
            ASPxDataView dv = new ASPxDataView();

            dv.ID = "DV_" + itemId;
            dv.Height = new Unit("100%");
            dv.Width = new Unit("100%");
            dv.ItemSpacing = new Unit("0px");
            dv.PagerSettings.EndlessPagingMode = DataViewEndlessPagingMode.OnClick;
            //dv.EnableCallbackAnimation = true;
            dv.ItemSpacing = new Unit("0px");
            //dv.EnableTheming = false;
            //dv.EnableDefaultAppearance = false;
            dv.Paddings.Padding = new Unit("0px");
            dv.ContentStyle.Paddings.Padding = new Unit("0px");
            dv.ItemStyle.Paddings.Padding = new Unit("0px");
            dv.ItemStyle.Height = new Unit("0px");
            dv.Theme = "Moderno";
            dv.PagerSettings.ShowMoreItemsText = "تحميل أكثر";
            dv.RightToLeft = DevExpress.Utils.DefaultBoolean.True;
            dv.SettingsTableLayout.ColumnCount = 1;
            dv.SettingsTableLayout.RowsPerPage = 10;
            return dv;
        }
コード例 #8
0
ファイル: List.ascx.cs プロジェクト: ramyothman/RBM
 protected void SectionsRepeater_ItemDataBound(object sender, RepeaterItemEventArgs e)
 {
     if ( e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
     {
         System.Web.UI.HtmlControls.HtmlGenericControl p = e.Item.FindControl("myPanel") as System.Web.UI.HtmlControls.HtmlGenericControl;
         if (p != null)
         {
             ASPxDataView dv = new ASPxDataView();
             var y = e.Item.DataItem as DataRowView;
             dv.ID = "DV_" + SectionItems[e.Item.ItemIndex].SectionName.Replace(" ", "_").Replace("-", "_").Replace("!","").Replace("?","");
             p.Controls.Add(dv);
             dv.Height = new Unit("100%");
             dv.Width = new Unit("100%");
             dv.PagerSettings.EndlessPagingMode = DataViewEndlessPagingMode.OnScroll;
             dv.EnableCallbackAnimation = true;
             dv.ItemSpacing = new Unit("0px");
             dv.ItemTemplate = new ListItemTemplate(Articles);
             dv.SettingsTableLayout.ColumnCount = 1;
             dv.SettingsTableLayout.RowsPerPage = 10;
             p.DataBind();
             dv.DataSource = (from x in Articles where x.SectionName == SectionItems[e.Item.ItemIndex].SectionName select x).ToList();
             dv.DataBind();
         }
     }
 }
コード例 #9
0
ファイル: XpoHelper.cs プロジェクト: trantrung2608/ilinkbay
    public static void BindData(ASPxDataView dv, DevExpress.Xpo.Session s, string objectname, string filter = "", params object[] parameter)
    {
        try
        {
            DynamicDataTableClassInfo classInfo = dynamicClasses[objectname];

            if (classInfo != null)
            {
                XPServerCollectionSource ds = new XPServerCollectionSource(s, dynamicClasses[objectname], CriteriaOperator.Parse(filter, parameter));
                dv.DataSource = ds;
            }
            else
                throw new Exception(string.Format("Đối tượng {0} không tìm thấy trong database. Nếu không có dữ liệu hiển thị thì XPOProfiles để xem điều kiện lọc đúng chưa", objectname));
        }
        catch (Exception ex)
        {
            SiAuto.Main.LogColored(Color.Red, "Loi BindData:" + ex.ToString());
            throw ex;
        }
    }
コード例 #10
0
        private void AddDataItems(ASPxDataView dvMaster, List <ProductionItem> items, int sectionId)
        {
            List <DotWeb.Models.Station> stations = new List <DotWeb.Models.Station>();

            stations = ProductionRepository.GetStationsByAssemblySection(sectionId);

            if (stations.Any())
            {
                foreach (var station in stations)
                {
                    DataViewItem dvItem = new DataViewItem();

                    var  historyId    = string.Empty;
                    var  model        = string.Empty;
                    var  variant      = string.Empty;
                    var  finNo        = string.Empty;
                    var  statusId     = string.Empty;
                    bool isSubAssy    = ProductionRepository.IsSubAssemblyStation(station.Id);
                    var  subAssyCount = ProductionRepository.CountSubAssyPerSection(sectionId);

                    var prodItem = items.Where(x => x.StationId == station.Id).FirstOrDefault();
                    if (prodItem != null)
                    {
                        historyId = prodItem.ItemId.ToString();
                        model     = prodItem.ModelName;
                        variant   = prodItem.VariantName;
                        finNo     = prodItem.FINNumber;
                        statusId  = prodItem.StatusId.ToString();
                    }

                    dvItem.DataItem = new
                    {
                        HistoryId   = historyId,
                        ModelName   = model,
                        VariantName = variant,
                        FINNumber   = finNo,
                        StatusId    = statusId,
                        StationId   = station.Id,
                        StationName = station.StationName,
                        IsQGate     = station.IsQualityGate,

                        SectionId  = sectionId,
                        IsSubAssy  = isSubAssy,
                        NumSubAssy = subAssyCount
                    };

                    dvMaster.Items.Add(dvItem);
                }

                dvMaster.SettingsTableLayout.ColumnCount = stations.Count;
            }
            else
            {
                foreach (var item in items)
                {
                    DataViewItem dvItem = new DataViewItem();

                    dvItem.DataItem = new
                    {
                        HistoryId   = item.ItemId,
                        ModelName   = item.ModelName,
                        VariantName = item.VariantName,
                        FINNumber   = item.FINNumber,
                        StatusId    = item.StatusId,
                        StationId   = item.StationId,
                        StationName = item.StationName,
                        IsQGate     = false,

                        SectionId  = sectionId,
                        IsSubAssy  = false,
                        NumSubAssy = 0
                    };

                    dvMaster.Items.Add(dvItem);
                }

                dvMaster.SettingsTableLayout.ColumnCount = items.Count > 0 ? items.Count : 1;
            }
        }
    protected void dataView_DataBound(object sender, EventArgs e)
    {
        ASPxDataView dv = (ASPxDataView)sender;

        SaveJsProperties(dv);
    }
 private void SaveJsProperties(ASPxDataView dv)
 {
     dv.JSProperties["cpPageCount"] = dv.PageCount;
     dv.JSProperties["cpPageIndex"] = dv.PageIndex;
 }
コード例 #13
0
 protected void LocalizeDataView(ASPxDataView view)
 {
     try
     {
         string[] idToTranslate = new string[] { "lblGeneralTitle", "lblProductName", "lblProductEan",
                                                 "lblCategory", "lblRecommendedPrice" };
         DataViewItem item = view.Items[0];
         foreach (string id in idToTranslate)
         {
             ASPxLabel ctrl = (ASPxLabel)view.FindItemControl(id, item);
             if (ctrl != null)
                 ctrl.Text = Utilities.GetResourceString("Common", "Details" + id.Replace("lbl",""));
         }
     }
     catch (Exception)
     {
     }
 }
コード例 #14
0
        public void DrawMainLine(AppDb ctx, ProductionLine line, AssemblySectionType sectionType, bool showNewButton = false)
        {
            //Generate new div header in div master
            HtmlGenericControl divLineHeader = new HtmlGenericControl("div");

            divLineHeader.Attributes.Add("class", "div-header");

            //create button New for the Line
            if (showNewButton)
            {
                ASPxButton btnNew = new ASPxButton();
                btnNew.ID           = line.Id.ToString();
                btnNew.Text         = "New";
                btnNew.AutoPostBack = false;
                btnNew.CssClass     = "btn-new-line";
                var command = "function (s, e) {window.location = '../Production/VINNumberChecker.aspx?LineId=" + line.Id + "'}";
                btnNew.ClientSideEvents.Click = command;
                divLineHeader.Controls.Add(btnNew);
            }

            ASPxLabel lblMainLine = new ASPxLabel();

            if (sectionType.IsMultiLine)
            {
                lblMainLine.Text = line.LineName + " " + sectionType.Name;
            }
            else
            {
                lblMainLine.Text = sectionType.Name;
            }
            lblMainLine.CssClass = "label-line";

            divLineHeader.Controls.Add(lblMainLine);
            divMasterDataView.Controls.Add(divLineHeader);

            //Line content
            HtmlGenericControl divLineContent = new HtmlGenericControl("div");

            divLineContent.Attributes.Add("class", "div-section");

            divMasterDataView.Controls.Add(divLineContent);

            IQueryable <AssemblySection> mainsections = ctx.AssemblySections.Where(x => x.AssemblySectionTypeId == sectionType.Id).OrderBy(x => x.AreaNo);

            foreach (AssemblySection sect in mainsections)
            {
                IQueryable <Station> stations = ctx.Stations.Where(x => x.AssemblySectionId == sect.Id);
                if (stations.Count() == 0)
                {
                    continue;
                }

                //Assembly section label
                ASPxLabel lblSection = new ASPxLabel();
                lblSection.Text     = sect.AssemblySectionName;
                lblSection.CssClass = "label-section";

                divLineContent.Controls.Add(lblSection);

                //Generate new dataView in Dashboard
                ASPxDataView dvMaster = new ASPxDataView();

                dvMaster.ID           = "dv" + line.LineName + sect.AssemblySectionName;
                dvMaster.ItemTemplate = new StationDataViewTemplate();
                dvMaster.CssClass     = "dataview-master";

                //dvMaster.ClientSideEvents.Init = "function(s, e) { setTimeout(function() { " + cbpDashboard.ClientInstanceName + ".PerformCallback('refresh; " + sect.Id + "'); }, " + AppConfiguration.ANDON_POLL_INTERVAL_MSEC + ") }; ";

                divLineContent.Controls.Add(dvMaster);

                //Station list
                foreach (Station sta in stations)
                {
                    DataViewItem dvItem = new DataViewItem();

                    StationInfo info = new StationInfo();
                    info.StationId   = sta.Id;
                    info.StationName = sta.StationName;
                    info.SectionId   = sect.Id;
                    info.LineId      = line.Id;

                    info.SectionTypeId = sectionType.Id;
                    info.IsQGate       = sta.IsQualityGate;

                    info.Capacity = sta.Capacity;

                    info.Items = ProductionRepository.GetProductionItems(info.LineId, info.StationId);

                    dvItem.DataItem = info;

                    dvMaster.Items.Add(dvItem);

                    //add the collections of dataviewitems for easy updates
                    dvStations.Add(dvItem);
                }

                dvMaster.SettingsTableLayout.ColumnCount = (stations.Count() <= 10 ? stations.Count() : 10);
            }
        }
コード例 #15
0
        public void DrawSubAssyLine(AppDb ctx, AssemblySectionType sectionType)
        {
            //Generate new div header in div master
            HtmlGenericControl divSubAssyHeader = new HtmlGenericControl("div");

            divSubAssyHeader.Attributes.Add("class", "div-header");

            ASPxLabel lblSubAssy = new ASPxLabel();

            lblSubAssy.Text     = "Sub Assembly";
            lblSubAssy.CssClass = "label-line";

            divSubAssyHeader.Controls.Add(lblSubAssy);
            divMasterDataView.Controls.Add(divSubAssyHeader);

            //SubAssy content
            HtmlGenericControl divSubAssyContent = new HtmlGenericControl("div");

            divSubAssyContent.Attributes.Add("class", "div-section");

            divMasterDataView.Controls.Add(divSubAssyContent);

            IQueryable <AssemblySection> subsections = ctx.AssemblySections.Where(x => x.AssemblySectionTypeId == sectionType.Id).OrderBy(x => x.AreaNo);

            foreach (AssemblySection sect in subsections)
            {
                IQueryable <Station> stations = ctx.Stations.Where(x => x.AssemblySectionId == sect.Id);
                if (stations.Count() == 0)
                {
                    continue;
                }

                //Assembly section label
                ASPxLabel lblSection = new ASPxLabel();
                lblSection.Text     = sect.AssemblySectionName;
                lblSection.CssClass = "label-section";

                divSubAssyContent.Controls.Add(lblSection);

                //Generate new dataView in Dashboard
                ASPxDataView dvMaster = new ASPxDataView();

                dvMaster.ID           = "dvSubAssy" + sect.AssemblySectionName;
                dvMaster.ItemTemplate = new StationDataViewTemplate();
                dvMaster.CssClass     = "dataview-master";

                //dvMaster.ClientSideEvents.Init = "function(s, e) { setTimeout(function() { " + cbpDashboard.ClientInstanceName + ".PerformCallback('refresh; " + sect.Id + "'); }, " + AppConfiguration.ANDON_POLL_INTERVAL_MSEC + ") }; ";

                divSubAssyContent.Controls.Add(dvMaster);

                //Station list
                foreach (Station sta in stations)
                {
                    DataViewItem dvItem = new DataViewItem();

                    StationInfo info = new StationInfo();
                    info.StationId   = sta.Id;
                    info.StationName = sta.StationName;
                    info.SectionId   = sect.Id;
                    info.LineId      = AppConfiguration.PRODUCTION_SUBASSY_LINENUMBER;

                    info.SectionTypeId = sectionType.Id;
                    info.IsQGate       = sta.IsQualityGate;

                    info.Capacity = sta.Capacity;

                    info.Items = ProductionRepository.GetProductionItems(info.LineId, info.StationId);

                    dvItem.DataItem = info;

                    dvMaster.Items.Add(dvItem);

                    //add the collections of dataviewitems for easy updates
                    dvStations.Add(dvItem);
                }

                dvMaster.SettingsTableLayout.ColumnCount = (stations.Count() <= 10 ? stations.Count() : 10);
            }
        }
コード例 #16
0
        protected void ASPxDataView2_DataBound(object sender, EventArgs e)
        {
            //    Mukund 10Jun2014
            //VSPLUS-673: Executive Summary should have the same right-click menu as other screens
            try
            {
                ASPxDataView dataview = new ASPxDataView();
                dataview = (ASPxDataView)sender;
                if (dataview.Items.Count > 0)
                {
                    for (int j = 0; j < dataview.Items.Count; j++)
                    {
                        ASPxPanel panel = new ASPxPanel();
                        panel           = (ASPxPanel)dataview.FindItemControl("ASPxPanel1", dataview.Items[j]);
                        panel.BackColor = GetColor(dataview.Items[j].DataItem);

                        string strURL     = HttpContext.Current.Request.Url.Scheme + "://" + HttpContext.Current.Request.Url.Authority;
                        string strURLFile = "";

                        string lblLoc = (dataview.Items[j].DataItem as DataRowView)["Location"].ToString();
                        //10/5/2015 NS modified for VSPLUS-2247
                        //string lblIP = (dataview.Items[j].DataItem as DataRowView)["IPAddress"].ToString();
                        string lbltext = (dataview.Items[j].DataItem as DataRowView)["Name"].ToString();
                        string lbltype = (dataview.Items[j].DataItem as DataRowView)["Type"].ToString();
                        //10/9/2014 NS added
                        string lblstatus = (dataview.Items[j].DataItem as DataRowView)["Status"].ToString();
                        string Cat       = (dataview.Items[j].DataItem as DataRowView)["Category"].ToString();

                        string lbltext1 = "";
                        //1/30/2015 NS added for VSPLUS-1367
                        string lblDate = (dataview.Items[j].DataItem as DataRowView)["LastUpdate"].ToString();
                        lbltext1 = lbltext;
                        HtmlGenericControl divControl = (HtmlGenericControl)panel.FindControl("divmenu");                        // e.Item.FindControl("divControl") as HtmlGenericControl;
                        string             imgtext    = "";
                        imgtext = "<img src='" + (dataview.Items[j].DataItem as DataRowView)["imgsource"].ToString() + "'/>";
                        string lbl2 = "";
                        //lbl2 = "<font color='" + GetTextColor(dataview.Items[j].DataItem).ToString() + "' face='Tahoma' size='1'>" + (dataview.Items[j].DataItem as DataRowView)["Status"].ToString() + "</font>";
                        lbl2 = "<span class='" + GetTextCSS(dataview.Items[j].DataItem) + "'>" + (dataview.Items[j].DataItem as DataRowView)["Status"].ToString() + "</span>";
                        if (lbltext.Length > 16)
                        {
                            lbltext1 = lbltext.Substring(0, 14) + "...";
                        }
                        if (!(Session["UserFullName"] != null && Session["UserFullName"].ToString() == "Anonymous"))
                        {
                            string stredit    = "";
                            string strsuspend = "";
                            if (Session["Isconfigurator"] != null)
                            {
                                if (Session["Isconfigurator"].ToString() == "True")
                                {
                                    stredit    = "                    ,'edit" + j + "': { name: 'Edit in Configurator', icon: 'cut' }";
                                    strsuspend = "                    ,'suspend" + j + "': { name: 'Suspend Temporarily', icon: 'copy' }";
                                }
                            }

                            string id = (VSWebBL.SecurityBL.ServersBL.Ins.GetServerIDbyServerNameType(lbltext, lbltype)).ToString();
                            if (lbltype == "Exchange")
                            {
                                //10/5/2015 NS modified for VSPLUS-2247
                                strURLFile = "/Configurator/ExchangeServer.aspx?ID=" + id + "&name=" + lbltext + "&Cat=Exchange&Loc=" + lblLoc; // + "&ipaddr=" + lblIP;
                            }
                            else if (lbltype == "Mail")
                            {
                                id         = (VSWebBL.ConfiguratorBL.MailServicesBL.Ins.GetServerIDbyServerName(lbltext)).ToString();
                                strURLFile = "/Configurator/MailService.aspx?Key=" + id;
                            }
                            else if (lbltype == "Skype for Business")
                            {
                                strURLFile = "/Configurator/LyncServer.aspx?ID=" + id + "&Name=" + lbltext + "&Cat=" + Cat + "&Loc=" + lblLoc;
                            }
                            else if (lbltype == "SharePoint")
                            {
                                strURLFile = "/Configurator/SharepointServer.aspx?ID=" + id + "&Name=" + lbltext + "&Cat=" + Cat + "&Loc=" + lblLoc;
                            }
                            else if (lbltype.ToString() == "BES")
                            {
                                id = (VSWebBL.SecurityBL.ServersBL.Ins.GetServerIDbyServerName(lbltext)).ToString();

                                strURLFile = "/Configurator/BlackBerryEntertpriseServer.aspx?Key=" + id;
                            }
                            else if (lbltype == "Sametime")
                            {
                                id         = (VSWebBL.SecurityBL.ServersBL.Ins.GetServerIDbyServerName(lbltext)).ToString();
                                strURLFile = "/Configurator/SametimeServer.aspx?ID=" + id;
                            }


                            else if (lbltype == "Network Device")
                            {
                                id         = (VSWebBL.ConfiguratorBL.NetworkDevicesBL.Ins.GetServerIDbyServerName(lbltext)).ToString();
                                strURLFile = "/Configurator/NetworkDeviceProperties.aspx?ID=" + id;
                            }
                            else if (lbltype == "URL")
                            {
                                id         = (VSWebBL.ConfiguratorBL.URLsBL.Ins.GetServerIDbyServerName(lbltext)).ToString();
                                strURLFile = "/Configurator/URLProperties.aspx?ID=" + id;
                            }
                            else if (lbltype == "Notes Database")
                            {
                                NotesDatabases nodj = new NotesDatabases();
                                nodj.Name = lbltext;
                                DataTable dt = VSWebBL.ConfiguratorBL.NotesDatabaseBL.Ins.GetName(nodj);
                                if (dt.Rows.Count > 0)
                                {
                                    id = dt.Rows[0]["ID"].ToString();
                                }
                                strURLFile = "/Configurator/EditNotes.aspx?ID=" + id;
                            }
                            else if (lbltype == "NotesMail Probe")
                            {
                                strURLFile = "/Configurator/EditNotesMailProbe.aspx?Name=" + lbltext;
                            }
                            else if (lbltype == "ExchangeMail Probe")
                            {
                                strURLFile = "/Configurator/EditExchangeMailProbe.aspx?Name=" + lbltext;
                            }
                            else if (lbltype == "Windows")
                            {
                                id = (VSWebBL.SecurityBL.ServersBL.Ins.GetServerIDbyServerName(lbltext)).ToString();

                                strURLFile = "/Configurator/WindowsProperties.aspx?ID=" + id + "&Name=" + lbltext + "&Cat=" + Cat + "&Loc=" + lblLoc;
                            }
                            else if (lbltype == "Active Directory")
                            {
                                id = (VSWebBL.SecurityBL.ServersBL.Ins.GetServerIDbyServerName(lbltext)).ToString();
                                //10/5/2015 NS modified for VSPLUS-2247
                                strURLFile = "/Configurator/ActiveDirectoryProperties.aspx?ID=" + id + "&name=" + lbltext + "&Cat=" + Cat + "&Loc=" + lblLoc; // +"&ipaddr=" + lblIP;
                            }
                            //5/9/2016 Sowjanya modified for VSPLUS-2943
                            else if (lbltype == "IBM Connections")
                            {
                                id = (VSWebBL.SecurityBL.ServersBL.Ins.GetServerIDbyServerName(lbltext)).ToString();

                                strURLFile = "/Configurator/IBMConnections.aspx?ID=" + id + "&name=" + lbltext + "&Cat=" + Cat + "&Loc=" + lblLoc; // +"&ipaddr=" + lblIP;
                            }
                            else if (lbltype == "Office365")
                            {
                                strURLFile = "/Configurator/O365ServerProperties.aspx";
                            }
                            else
                            {
                                strURLFile = "/Configurator/DominoProperties.aspx?Key=" + id;
                            }


                            //lbltext1 = "<strong><font color='Black' face='Tahoma' size='2'><a class='dlink' href='DominoServerDetailsPage2.aspx?Name=" + lbltext + "&Type=Domino'>" + lbltext1 + "</a></font></strong>";
                            //1/30/2015 NS modified for VSPLUS-1367
                            //lbltext1 = "<a class='ahrefdom' href='DominoServerDetailsPage2.aspx?Name=" + lbltext + "&Type=Domino&Status=" + lblstatus + "'>" + lbltext1 + "</a>";
                            //10/5/2015 NS modified for VSPLUS-2247
                            if (lbltype == "Domino")
                            {
                                lbltext1 = "<a class='ahrefdom' title='" + lbltext + "' href='DominoServerDetailsPage2.aspx?Name=" + lbltext + "&Type=" + lbltype + "&Status=" + lblstatus + "'>" + lbltext1 + "</a>";
                            }
                            else if (lbltype == "Exchange")
                            {
                                lbltext1 = "<a class='ahrefdom' title='" + lbltext + "' href='ExchangeServerDetailsPage3.aspx?Name=" + lbltext + "&Type=" + lbltype + "&Status=" + lblstatus + "&LastDate=" + lblDate + "'>" + lbltext1 + "</a>";
                            }
                            else if (lbltype == "Database Availability Group")
                            {
                                lbltext1 = "<a class='ahrefdom' title='" + lbltext + "' href='DAGHealth.aspx?Name=" + lbltext + "'>" + lbltext1 + "</a>";
                            }
                            else if (lbltype == "SharePoint")
                            {
                                lbltext1 = "<a class='ahrefdom' title='" + lbltext + "' href='Sharepointdetailspage.aspx?Name=" + lbltext + "&Type=" + lbltype + "&Status=" + lblstatus + "&LastDate=" + lblDate + "'>" + lbltext1 + "</a>";
                            }
                            else if (lbltype == "Active Directory")
                            {
                                lbltext1 = "<a class='ahrefdom' title='" + lbltext + "' href='ActiveDirectoryServerDetailsPage3.aspx?Name=" + lbltext + "&Type=" + lbltype + "&Status=" + lblstatus + "&LastDate=" + lblDate + "'>" + lbltext1 + "</a>";
                            }
                            else if (lbltype == "URL")
                            {
                                lbltext1 = "<a class='ahrefdom' title='" + lbltext + "' href='URLDetails.aspx?Name=" + lbltext + "&Type=" + lbltype + "&Status=" + lblstatus + "'>" + lbltext1 + "</a>";
                            }
                            else if (lbltype == "Sametime")
                            {
                                lbltext1 = "<a class='ahrefdom' title='" + lbltext + "' href='SametimeServerDetailsPage.aspx?Name=" + lbltext + "&Type=" + lbltype + "&Status=" + lblstatus + "&LastDate=" + lblDate + "'>" + lbltext1 + "</a>";
                            }
                            else if (lbltype == "Notes Database")
                            {
                                lbltext1 = "<a class='ahrefdom' title='" + lbltext + "' href='DominoServerDetailsPage2.aspx?Name=" + lbltext + "&Type=" + lbltype + "&Status=" + lblstatus + "&LastDate=" + lblDate + "'>" + lbltext1 + "</a>";
                            }
                            else if (lbltype == "Office365")
                            {
                                lbltext1 = "<a class='ahrefdom' title='" + lbltext + "' href='office365health.aspx?Name=" + lbltext + "&Type=" + lbltype + "&LastDate=" + lblDate + "'>" + lbltext1 + "</a>";
                            }
                            else if (lbltype == "NotesMail Probe")
                            {
                                lbltext1 = "<a class='ahrefdom' title='" + lbltext + "' href='NotesMailProbeDetailsPage.aspx?Name=" + lbltext + "&Type=" + lbltype + "&Status=" + lblstatus + "&LastDate=" + lblDate + "'>" + lbltext1 + "</a>";
                            }
                            else if (lbltype == "Skype for Business")
                            {
                                lbltext1 = "<a class='ahrefdom' title='" + lbltext + "' href='Lyncdetailspage.aspx?Name=" + lbltext + "&Type=" + lbltype + "&LastDate=" + lblDate + "'>" + lbltext1 + "</a>";
                            }
                            else if (lbltype == "BES")
                            {
                                lbltext1 = "<a class='ahrefdom' title='" + lbltext + "' href='BlackBerryServerDetailsPage2.aspx?Name=" + lbltext + "&Type=" + lbltype + "&LastDate=" + lblDate + "'>" + lbltext1 + "</a>";
                            }
                            else if (lbltype == "ExchangeMail Probe")
                            {
                                lbltext1 = "<a class='ahrefdom' title='" + lbltext + "' href='ExchangeMailProbeDetailsPage.aspx?Name=" + lbltext + "&Type=" + lbltype + "&LastDate=" + lblDate + "'>" + lbltext1 + "</a>";
                            }
                            else if (lbltype == "Windows")
                            {
                                lbltext1 = "<a class='ahrefdom' title='" + lbltext + "' href='WindowsServerDetails.aspx?Name=" + lbltext + "&Type=" + lbltype + "&LastDate=" + lblDate + "'>" + lbltext1 + "</a>";
                            }
                            else if (lbltype == "Network Device")
                            {
                                lbltext1 = "<a class='ahrefdom' title='" + lbltext + "' href='NetworkServerDetails.aspx?Name=" + lbltext + "&Type=" + lbltype + "&LastDate=" + lblDate + "'>" + lbltext1 + "</a>";
                            }
                            else if (lbltype == "SNMP Device")
                            {
                                lbltext1 = "<a class='ahrefdom' title='" + lbltext + "' href='SNMPDeviceDetails.aspx?Name=" + lbltext + "&Type=" + lbltype + "&LastDate=" + lblDate + "'>" + lbltext1 + "</a>";
                            }
                            //5/12/2016 Sowjanya modified for VSPLUS-2943
                            else if (lbltype == "IBM Connections")
                            {
                                lbltext1 = "<a class='ahrefdom' title='" + lbltext + "' href='ConnectionsDetailsPage.aspx?Name=" + lbltext + "&Type=" + lbltype + "&Status=" + lblstatus + "&LastDate=" + lblDate + "'>" + lbltext1 + "</a>";
                            }
                            else
                            {
                                lbltext1 = "<a class='ahrefdom' title='" + lbltext + "' href='DominoServerDetailsPage2.aspx?Name=" + lbltext + "&Type=" + lbltype + "&Status=" + lblstatus + "&LastDate=" + lblDate + "'>" + lbltext1 + "</a>";
                            }
                            divControl.InnerHtml =
                                "     <div class='context-menu-one" + j + "'><table id='tbl' class='boxshadow' runat='server'>" +
                                "   <tr>" +
                                "     <td>" + imgtext +
                                "      </td>" +
                                "<td>" +
                                "            <div style='overflow: visible'>" + lbltext1 +
                                "            </div>" +
                                "        </td>" +
                                "    </tr>" +
                                "    <tr>" +
                                "        <td>" +
                                "            &nbsp;</td>" +
                                "        <td>" + lbl2 +
                                "        </td>" +
                                "    </tr>" +
                                "</table> </div>" +
                                "<script type='text/javascript'>" +
                                "        $(function () {" +
                                "            $.contextMenu({" +
                                "                selector: '.context-menu-one" + j + "'," +
                                "                callback: function (key, options) {" +
                                "                    var m =  key; " +
                                "                    var scan_n = 'scan" + j + "'; " +
                                "                    var edit_n = 'edit" + j + "'; " +
                                "                    var suspend_n = 'suspend" + j + "'; " +
                                " if(m==edit_n){window.location.replace('" + strURL + strURLFile + "');}" +
                                " if(m==scan_n){ScanNow('" + lbltext + "','" + lbltype + "');}" +
                                " if(m==suspend_n){SuspendNow('" + lbltext + "');}" +
                                "                }," +
                                "                items: {" +
                                "                    'scan" + j + "': { name: 'Scan Now', icon: 'edit' }" +
                                stredit +
                                strsuspend +
                                "                }" +
                                "            });" +
                                "" +
                                "            $('.context-menu-one" + j + "').on('click', function (e) {" +
                                "                console.log('clicked', this); " +
                                "            })" +
                                "        });" +
                                " " +
                                "    </script>";
                        }
                        else
                        {
                            lbltext1             = "<strong><font color='Black' face='Tahoma' size='2'>" + lbltext1 + "</font></strong>";
                            divControl.InnerHtml =
                                "    <table id='tbl' class='boxshadow' runat='server'>" +
                                "   <tr>" +
                                "     <td>" + imgtext +
                                "      </td>" +
                                "<td>" +
                                "            <div style='overflow: visible'>" + lbltext1 +
                                "            </div>" +
                                "        </td>" +
                                "    </tr>" +
                                "    <tr>" +
                                "        <td>" +
                                "            &nbsp;</td>" +
                                "        <td>" + lbl2 +
                                "        </td>" +
                                "    </tr>" +
                                "</table>";
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }