示例#1
0
    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 = "当前没有学生作品";
        }
    }