Ejemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         string cloudserviceid = Request.QueryString["cloudserviceId"];
         Label_ID.Text = cloudserviceid;
         string isexpire = IsExpire();
         Label_USerID.Text = isexpire;
         //过期
         if (isexpire == "NULL")
         {
             //清空临时表
             DBHelper.Delete_Data();
             Response.Write("<script>alert('身份过期,请重新登录。');location='../Login.aspx'</script>");
         }
         else
         {
             HttpCookie cookiee   = Request.Cookies.Get("UserIDTableName");
             string     ClassName = cookiee.Value;
             UserName.Text          = "[" + DBHelper.GetUserName(isexpire, ClassName) + "]";
             CloudService_Name.Text = DBHelper.GetCloudServiceName(cloudserviceid);
             Head.ImageUrl          = DBHelper.GetHeadImage(isexpire, ClassName);
             //获取评分平均值
             Label_Score.Text = DBHelper.GetAvgScoreByCsID(cloudserviceid);
             //其他信息
             CloudServer cldser = CloudServiceManager.GetCloudServiceInfoByCloudServiceId(cloudserviceid);
             Image_Logo.ImageUrl = cldser.Logo;
             lbl_Company.Text    = cldser.Company;
             lbl_Name.Text       = cldser.CloudServiceName;
             lbl_Comment.Text    = cldser.NewComment;
             lbl_Address.Text    = cldser.Address;
             lbl_Website.Text    = cldser.WebSite;
         }
     }
 }
Ejemplo n.º 2
0
    //筛选
    protected void btnSelect_Click(object sender, EventArgs e)
    {
        string Csname   = DDL_CloudService.SelectedValue;
        string Username = DDL_User.SelectedValue;

        this.GridView1.DataSource = CloudServiceManager.GetCommentByCsIdANDUserId(Csname, Username);
        this.GridView1.DataBind();
    }
Ejemplo n.º 3
0
    protected void btnSelect_Click(object sender, EventArgs e)
    {
        int proId = Convert.ToInt32(this.DDL_Pro.SelectedValue);

        if (proId > 0)
        {
            this.GridView1.DataSource = CloudServiceManager.GetAllCloudServiceListByProId(proId);
            this.GridView1.DataBind();
        }
        else if (proId == 0)
        {
            this.GridView1.DataSource = CloudServiceManager.GetAllCloudServiceList();
            this.GridView1.DataBind();
        }
    }
Ejemplo n.º 4
0
 public AlbumService(MediaStudioContext context, CloudServiceManager cloudManager)
 {
     postgres = context;
     bulder   = new AlbumBulder(context, cloudManager);
 }
Ejemplo n.º 5
0
 private void BindClassGridView()
 {
     this.GridView1.DataSource = CloudServiceManager.GetAllCommentList();
     this.GridView1.DataBind();
 }
Ejemplo n.º 6
0
 private void BindDataList()
 {
     DataList1.DataSource = CloudServiceManager.GetAllCloudService();
     DataList1.DataBind();
 }
Ejemplo n.º 7
0
 private void BindClassGridView()
 {
     this.GridView1.DataSource = CloudServiceManager.GetCommentByCsIdANDUserId("全部云服务商", Label_Username.Text.Trim());
     this.GridView1.DataBind();
 }
Ejemplo n.º 8
0
 private void BindClassGridView(string Csname, string Username)
 {
     this.GridView1.DataSource = CloudServiceManager.GetCommentByCsIdANDUserId(Csname, Username);
     this.GridView1.DataBind();
 }