public void Del(object sender, EventArgs e)
 {
     LaiKa.Model.leica_VoteProPic model = new LaiKa.Model.leica_VoteProPic();
     int id = Convert.ToInt32((sender as LinkButton).CommandArgument);
     model.Delete("Id=" + id);
     //ShowInfo(int.Parse(Label4.Text));
     PicBind();
 }
Example #2
0
 //返回第一张图片
 public string getWorksPic(string sid)
 {
     LaiKa.Model.leica_VoteProPic model = new LaiKa.Model.leica_VoteProPic();
     var dt = model.GetList(1, "PicOverview", "Isdelete=0 and ProjectId=" + sid, "Id desc");
     if (dt!=null && dt.Rows.Count > 0)
     {
         string WorksPic = dt.Rows[0]["PicOverview"].ToString();
         return WorksPic;
     }
     else
         return "";
 }
Example #3
0
    void PicBind()
    {
        //leica_geosystemsVoteProjectPicManager Workbll = new leica_geosystemsVoteProjectPicManager();

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

        LaiKa.Model.leica_VoteProPic model = new LaiKa.Model.leica_VoteProPic();
        table = model.GetList("ProjectId="+getid());
    }
    void PicStorage(string GetProjectId)
    {
        LaiKa.Model.leica_VoteProPic model = new LaiKa.Model.leica_VoteProPic();

        string ProjectId = GetProjectId;
        string PicOverview = newsFileUploadname;
        string Introduction = txtPicJS.Text;

        model.ProjectId = int.Parse(ProjectId);

        model.PicOverview = PicOverview;
        model.Introduction = Introduction;

        model.Insert();

        //leica_geosystemsVoteProjectPicManager bll = new leica_geosystemsVoteProjectPicManager();

        //string ProjectId = GetProjectId;
        //string PicOverview = newsFileUploadname;
        //string Introduction = txtPicJS.Text;

        //leica_geosystemsVoteProjectPic model = new leica_geosystemsVoteProjectPic();
        //model.ProjectId = int.Parse(ProjectId);

        //model.PicOverview = PicOverview;
        //model.Introduction = Introduction;
        //bll.Add(model);
    }