Beispiel #1
0
    //返回第一张图片
    public string getWorksPic(string sid)
    {
        string WorksPic = "";
        leica_geosystemsVoteProjectPicManager PicBll = new leica_geosystemsVoteProjectPicManager();
        StringBuilder strWhere = new StringBuilder();
        if (sid.Length != 0)
        {

            strWhere.AppendFormat("ProjectId = {0}", sid);
        }
        PicBll.GetList(1, strWhere.ToString(), "id desc");
        WorksPic = PicBll.GetList(1, strWhere.ToString(), "id desc").Tables[0].Rows[0]["PicOverview"].ToString();
        return WorksPic;
    }
    void PicBind()
    {
        leica_geosystemsVoteProjectPicManager Workbll = new leica_geosystemsVoteProjectPicManager();

        StringBuilder strWhere = new StringBuilder();
        strWhere.AppendFormat("ProjectId='{0}'", getid());
        table = Workbll.GetList(strWhere.ToString()).Tables[0];
    }
    void PicBind()
    {
        leica_geosystemsVoteProjectPicManager Workbll = new leica_geosystemsVoteProjectPicManager();

        StringBuilder strWhere = new StringBuilder();
        strWhere.AppendFormat("ProjectId='{0}'", Label4.Text);
        table = Workbll.GetList(strWhere.ToString()).Tables[0];

        rptProduct.DataSource = Workbll.GetList(strWhere.ToString());
        //rept.DataKeyNames = new string[] { "id" };
        rptProduct.DataBind();
    }