Esempio n. 1
0
    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;
    }
Esempio n. 2
0
    private void bindSCX()
    {
        DataSet ds = SCX.GetList("");

        if (ds != null)
        {
            this.ScxDropdown.DataSource = ds;
            this.ScxDropdown.DataBind();
            this.ScxDropdown.Items.Insert(0, "--请选择--");
        }
    }
Esempio n. 3
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;
     }
 }