private void showflash()
    {
        RBLselect.ClearSelection();
        int icn = DDLstore.Items.Count;

        if (icn > 0)
        {
            bool   ishtm   = false;
            string Wurl    = DDLstore.SelectedValue;
            string ext     = LearnSite.Common.WordProcess.getext(Wurl);
            string htmname = "";
            if (string.IsNullOrEmpty(ext))
            {
                ext   = "htm";
                ishtm = true;
                DDLhtmlname.Visible = true;
                htmname             = DDLhtmlname.SelectedValue;
            }
            else
            {
                DDLhtmlname.Visible = false;
            }
            int cur = DDLstore.SelectedIndex + 1;
            Labelnum.Text = cur.ToString() + "/" + icn.ToString();
            if (ishtm)
            {
                Labelnum.ToolTip = LearnSite.Common.WordProcess.GetSnumhtm(Wurl);
            }
            else
            {
                Labelnum.ToolTip = LearnSite.Common.WordProcess.GetSnum(Wurl);
            }
            Literal1.Text = LearnSite.Common.WordProcess.SelectWriteTeaNew(ext, Wurl, true, htmname);
            GetScore(Labelnum.ToolTip);
            if (ext == "sb" || ext == "sb2")
            {
                string Mid  = Request.QueryString["Mi"].ToString();
                string Wnum = Labelnum.ToolTip;
                LearnSite.BLL.Works wbll = new LearnSite.BLL.Works();
                string wid = wbll.GetWid(Mid, Wnum);
                if (!string.IsNullOrEmpty(wid))
                {
                    Hlcode.NavigateUrl  = "~/Student/codeproject.aspx?id=" + wid;
                    Hlcode.Visible      = true;
                    Hlshare.NavigateUrl = "~/Student/codeshare.aspx?id=" + wid;
                    Hlshare.Visible     = true;
                }
            }
        }
        else
        {
            Literal1.Text = "当前没有学生作品";
        }
    }
    private void showflash()
    {
        RBLselect.ClearSelection();
        int icn = DDLstore.Items.Count;

        if (icn > 0)
        {
            bool   ishtm   = false;
            string Wurl    = DDLstore.SelectedValue;
            string ext     = LearnSite.Common.WordProcess.getext(Wurl);
            string htmname = "";
            if (string.IsNullOrEmpty(ext))
            {
                ext   = "htm";
                ishtm = true;
                DDLhtmlname.Visible = true;
                htmname             = DDLhtmlname.SelectedValue;
            }
            else
            {
                DDLhtmlname.Visible = false;
            }
            int cur = DDLstore.SelectedIndex + 1;
            Labelnum.Text = cur.ToString() + "/" + icn.ToString();
            if (ishtm)
            {
                string mynum = LearnSite.Common.WordProcess.GetSnumhtm(Wurl);
                Labelnum.ToolTip = mynum;
                int Wcid = Int32.Parse(Request.QueryString["Cid"].ToString());
                LearnSite.BLL.Works wbll = new LearnSite.BLL.Works();
                LabelMid.Text = wbll.GetHtmMid(Wcid, mynum);
            }
            else
            {
                Labelnum.ToolTip = LearnSite.Common.WordProcess.GetSnum(Wurl);
                LabelMid.Text    = LearnSite.Common.WordProcess.GetMid(Wurl);
            }
            GetScore(LabelMid.Text, Labelnum.ToolTip);
            lbcount.Text  = cur.ToString() + "/" + icn.ToString();
            Literal1.Text = LearnSite.Common.WordProcess.SelectWriteTeaNew(ext, Wurl, true, htmname);
        }
        else
        {
            Literal1.Text = "当前没有学生作品";
        }
    }
Exemple #3
0
    private void showflash()
    {
        RBLselect.ClearSelection();
        int icn = DDLstore.Items.Count;

        if (icn > 0)
        {
            string Wurl    = DDLstore.SelectedValue;
            string ext     = LearnSite.Common.WordProcess.getext(Wurl);
            string htmname = "";
            int    cur     = DDLstore.SelectedIndex + 1;
            Labelnum.Text    = cur.ToString() + "/" + icn.ToString();
            Labelnum.ToolTip = LearnSite.Common.WordProcess.GetSnum(Wurl);

            GetScore(Labelnum.ToolTip);
            Literal1.Text = LearnSite.Common.WordProcess.SelectWriteTeaNew(ext, Wurl, true, htmname);
        }
        else
        {
            Literal1.Text = "当前没有学生作品";
        }
    }