private void BindSCX() { DataSet ds = SCX.GetList(""); this.drpProductLine.DataSource = ds; this.drpProductLine.DataBind(); this.drpProductLine.Items.Insert(0, new ListItem("请选择", "0")); this.drpProductLine.SelectedIndex = 0; }
private void bindSCX() { DataSet ds = SCX.GetList(""); if (ds != null) { this.ScxDropdown.DataSource = ds; this.ScxDropdown.DataBind(); this.ScxDropdown.Items.Insert(0, "--请选择--"); } }
//绑定生产线 private void BindSCX() { try { DataSet ds = SCX.GetList(""); this.drpSCX.DataSource = ds; this.drpSCX.DataBind(); this.drpSCX.Items.Insert(0, new ListItem("请选择", "0")); this.drpSCX.SelectedIndex = 0; } catch { this.PrintfError("数据访问错误"); return; } }