Пример #1
0
        private void bindDujiaPost()
        {
            DataTable dt = new ZhongLi.BLL.ServerUser_Post().GetList(" IsSole=1 order by CreateTime desc").Tables[0];

            dujia.DataSource = dt;
            dujia.DataBind();
        }
Пример #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Request.QueryString["p"] != null)
     {
         int PostID = Convert.ToInt32(Request.QueryString["p"]);
         ZhongLi.Model.ServerUser_Post post = new ZhongLi.BLL.ServerUser_Post().GetModel(PostID);
         ltlPostName.Text        = post.PostName;
         title                   = post.PostName;
         ltlSalary.Text          = post.Salary == "" ? "面议" : post.Salary;
         ltlWorkAddress.Text     = post.WorkAdress;
         ltlTrade.Text           = post.Trade;
         ltlOtherPoint.Text      = post.OtherPoint == "" ? "待完善职位诱惑" : post.OtherPoint;
         ltlPostDuty.Text        = post.PostDuty == "" ? "待完善岗位职责" : post.PostDuty;
         ltlCompany.Text         = post.Company == "" ? "公司名称" : post.Company;
         ltlNature.Text          = post.Nature == "" ? "公司性质" : post.Nature;
         ltlScale.Text           = post.Scale == "" ? "公司规模" : post.Scale;
         ltlAddress.Text         = post.Address == "" ? "待完善公司详细地址信息" : post.Address;
         ltlDevelopProspect.Text = post.DevelopProspect == "" ? "待完善公司简介" : post.DevelopProspect;
         ltlCompanyMatching.Text = post.CompanyMatching == "" ? "待完善配套环境" : post.CompanyMatching;
         ComImg.ImageUrl         = post.ComImg;
     }
     else
     {
     }
 }
Пример #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Utils.CheckRole("10"))
     {
         Page.ClientScript.RegisterStartupScript(Page.GetType(), "set", "<script>window.onload=showmsgclose('权限信息','没有权限!','/Systestcomjun/index.aspx',2)</script>");
         return;
     }
     if (!IsPostBack)
     {
         if (Request.QueryString["SerUserPostID"] != null)
         {
             int SerUserPostID = Convert.ToInt32(Request.QueryString["SerUserPostID"]);
             ZhongLi.BLL.ServerUser_Post   bll = new ZhongLi.BLL.ServerUser_Post();
             ZhongLi.Model.ServerUser_Post sp  = bll.GetModel(SerUserPostID);
             DataTable dt = new ZhongLi.BLL.ServerUser().findField("RealName", sp.SerUserID.Value);
             if (dt.Rows.Count > 0)
             {
                 ltlRealName.Text = dt.Rows[0][0].ToString();
             }
             ltlCompany.Text         = sp.Company;
             ltlTrade.Text           = sp.Trade;
             ltlScale.Text           = sp.Scale;
             ltlNature.Text          = sp.Nature;
             ltlPostName.Text        = sp.PostName;
             ltlPostDuty.Text        = sp.PostDuty;
             ltlSalary.Text          = sp.Salary;
             ltlDevelopProspect.Text = sp.DevelopProspect;
             ltlDirectLeader.Text    = sp.DirectLeader;
             ltlWorkAdress.Text      = sp.WorkAdress;
             ltlAdress.Text          = sp.WorkAdress;
             ltlWelfareTag.Text      = sp.WelfareTag;
             ltlCompanyMatching.Text = sp.CompanyMatching;
             ltlOtherPoint.Text      = sp.OtherPoint;
         }
     }
 }