/// <summary> /// 加载平台列表 /// </summary> private void LoadPlatform() { PlatformManage PfManage = new PlatformManage(); //this.ddlPf.DataSource = PfManage.Get(" Pf_del = 0 AND Pf_text1 > 0 ORDER BY Pf_text1"); this.ddlPf.DataSource = PfManage.Get(" Pf_del = 0 ORDER BY Pf_sort"); this.ddlPf.DataTextField = "Pfname"; this.ddlPf.DataValueField = "Pfid"; this.ddlPf.DataBind(); this.ddlPf.Items.Insert(0, new ListItem(Resources.Resource.allplatform, "")); //this.ddlPf.Items.Insert(0, new ListItem("所有平台", "")); }
/// <summary> /// 加载平台列表 /// </summary> private void LoadPlatform() { PlatformManage PfManage = new PlatformManage(); this.ddlPf.DataSource = PfManage.Get(" Pf_del = 0 ORDER BY Pf_sort asc"); this.ddlPf.DataTextField = "Pfname"; if (IsLanguageEng()) { this.ddlPf.DataTextField = "PfText1"; } this.ddlPf.DataValueField = "Pfid"; this.ddlPf.DataBind(); }
/// <summary> /// 加载平台列表 /// </summary> private void LoadPlatform() { PlatformManage PfManage = new PlatformManage(); //this.ddlPf.DataSource = PfManage.Get(" Pf_del = 0 AND Pf_text1 > 0 ORDER BY Pf_text1"); this.ddlPf.DataSource = PfManage.Get(" Pf_del = 0 ORDER BY Pf_sort asc"); this.ddlPf.DataTextField = "Pfname"; this.ddlPf.DataValueField = "Pfid"; this.ddlPf.DataBind(); if (this.ddlPf.Items.Count == 0) { this.ddlPf.Visible = false; this.lkPlatformEdit.Visible = true; } }
/// <summary> /// 加载平台 /// </summary> private void LoadPlatform() { PlatformManage PfManage = new PlatformManage(); this.ddlPf.DataSource = PfManage.Get(" Pf_del = 0 ORDER BY Pf_sort asc"); this.ddlPf.DataTextField = "Pfname"; if (IsLanguageEng()) { this.ddlPf.DataTextField = "PfText1"; //new NxPlatformEO().PfText1 } this.ddlPf.DataValueField = "Pfid"; this.ddlPf.DataBind(); if (this.ddlPf.Items.Count == 0) { this.ddlPf.Visible = false; this.lkPlatformEdit.Visible = true; } }