Beispiel #1
0
    public void hy_grrcap()
    {
        //得到个人日程安排
        HyoaClass.Hyoa_flowmain Hyoa_flowmain = new HyoaClass.Hyoa_flowmain();
        DataTable dt;
        Hyoa_flowmain.hy_mudelid = "grrcap";
        Hyoa_flowmain.hy_tableid = "7eb2998d-1c69-4cea-896c-76e641a0511e";
        Hyoa_flowmain.hy_djrid = this.Session["hyuid"].ToString();
        dt = Hyoa_flowmain.GetPersonflowmainsByTableidAndMudelid();
        int i, j;
        string lstitle;
        i = 6;//显示条数
        if (dt.Rows.Count < i)
            i = dt.Rows.Count;

        for (j = 0; j < i; j++)
        {
            lstitle = dt.Rows[j]["hy_bt"].ToString();
            if (lstitle.Length > 33)
                lstitle = lstitle.Substring(0, 33) + "...";
            this.lbgrrcap.Text += "<tr height='18px'><td valign='top'>·<a href='main.aspx?op=modify&mid=grrcap&tableid=" + dt.Rows[j]["hy_tableid"].ToString() + "&docid=" + dt.Rows[j]["DOCID"].ToString() + "&pop=1' title='" + dt.Rows[j]["hy_bt"].ToString() + "' target='_blank'>" + lstitle + "</a>&nbsp;&nbsp;[" + System.DateTime.Parse(dt.Rows[j]["hy_djsj"].ToString()).ToShortDateString().ToString() + "]</td></tr>";
        }
        if (this.lbgrrcap.Text == "")
            this.lbgrrcap.Text = "·暂无记录!";
    }