예제 #1
0
        /// <summary>
        /// 获取一条数据
        /// </summary>
        /// <param name="context"></param>
        private void BindInfo(HttpContext context)
        {
            View_Sys_DeskTtop    info = new View_Sys_DeskTtop();
            View_Sys_DeskTtopBLL dll  = new View_Sys_DeskTtopBLL();
            string userid             = CurrUserInfo().UserID;
            string DesktopID          = context.Request.QueryString["DesktopID"];

            info = dll.Get(p => p.DesktopID == DesktopID);//("DesktopID = '" + DesktopID + "'");
            StringBuilder strBd = new StringBuilder();

            strBd.Append("<a class=\"quickLink\" href=\"javascript:showTabs('" + info.Desktop_Name + "','" + info.Menu_Url + "','');\">");
            strBd.Append("<img src=\"" + info.Desktop_Icon + "\" /></a>");
            strBd.Append("<p><a class=\"blueLink\" href=\"" + info.Menu_Url + "\">" + info.Desktop_Name.IfNullReturnEmpty().SubstringByByte(12, "…") + "</a></p>");
            strBd.Append("<div class=\"editeMenu\" style=\"position: absolute; display: none; z-index: 2013; bottom: 0px;width: 80px; height: 110px; filter: alpha(opacity=40); background: #ccc; opacity: 0.40;text-align: center; margin-right: auto; margin-left: auto;\"></div>");
            strBd.Append("<div class=\"editeMenu\" style=\"position: absolute; display: none; z-index: 2013; bottom: 40%;left: 10px;\">");
            strBd.Append("<a href=\"javascript:void(0);\" onclick=\"editeMenu('" + info.DesktopID + "')\"><img src=\"../Images/buttons/Bianji.gif\" /></a>");
            strBd.Append("</div>");
            strBd.Append("<div class=\"del\" onclick=\"del('" + info.DesktopID + "')\" style=\"position: absolute; display: none;z-index: 2014; bottom: 92px; left: 62px; cursor: pointer;\"><img src=\"../Scripts/UI/themes/icons/no.png\" /></div>");
            context.Response.Write(strBd);
        }
예제 #2
0
        /// <summary>
        /// 快捷菜单数据源选项
        /// </summary>
        private void BindList(HttpContext context)
        {
            List <View_Sys_DeskTtop> list = new List <View_Sys_DeskTtop>();
            View_Sys_DeskTtopBLL     dll  = new View_Sys_DeskTtopBLL();
            string userid = CurrUserInfo().UserID;

            list = dll.GetList(p => p.Desktop_Type == "1" && p.Desktop_UserInfoID == userid).OrderBy(p => p.Desktop_Sort).ToList();
            StringBuilder strBd = new StringBuilder();

            foreach (var info in list)
            {
                strBd.Append("<li id=\"" + info.DesktopID + "\" style=\"position:relative;\"><a class=\"quickLink\" href=\"javascript:showTabs('" + info.Desktop_Name + "','" + info.Menu_Url + "','');\">");
                strBd.Append("<img src=\"" + info.Desktop_Icon + "\" /></a>");
                strBd.Append("<p><a class=\"blueLink\" href=\"javascript:showTabs('" + info.Desktop_Name + "','" + info.Menu_Url + "','');\">" + info.Desktop_Name.IfNullReturnEmpty().SubstringByByte(12, "…") + "</a></p>");
                strBd.Append("<div class=\"editeMenu\" style=\"position: absolute; display: none; z-index: 2013; bottom: 0px;width: 80px; height: 110px; filter: alpha(opacity=40); background: #ccc; opacity: 0.40;text-align: center; margin-right: auto; margin-left: auto;\"></div>");
                strBd.Append("<div class=\"editeMenu\" style=\"position: absolute; display: none; z-index: 2013; bottom: 40%;left: 10px;\">");
                strBd.Append("<a href=\"javascript:void(0);\" onclick=\"editeMenu('" + info.DesktopID + "')\"><img src=\"../Images/buttons/Bianji.gif\" /></a>");
                strBd.Append("</div>");
                strBd.Append("<div class=\"del\" onclick=\"del('" + info.DesktopID + "')\" style=\"position: absolute; display: none;z-index: 2014; bottom: 92px; left: 62px; cursor: pointer;\"><img src=\"../Scripts/UI/themes/icons/no.png\" /></div>");
                strBd.Append("</li>");
            }
            context.Response.Write(strBd);
        }