示例#1
0
 private void requistionDate(string sql)
 {
     HY_BLL.HY_BomlistBLL hybombll = new HY_BLL.HY_BomlistBLL();
     this.listView1.View = View.Details;
     this.listView1.FullRowSelect = true;
     SqlDataReader sdr = hybombll.f_Bomlist(sql);
     while (sdr.Read())
     {
         ListViewItem lv = new ListViewItem(sdr[0].ToString());
         lv.SubItems.Add(sdr[1].ToString());
         lv.SubItems.Add(sdr[2].ToString());
         lv.SubItems.Add(sdr[3].ToString());
         this.listView1.Items.Add(lv);
     }
 }
示例#2
0
        private void requistionDate(string sql)
        {
            HY_BLL.HY_BomlistBLL hybombll = new HY_BLL.HY_BomlistBLL();
            this.listView1.View          = View.Details;
            this.listView1.FullRowSelect = true;
            SqlDataReader sdr = hybombll.f_Bomlist(sql);

            while (sdr.Read())
            {
                ListViewItem lv = new ListViewItem(sdr[0].ToString());
                lv.SubItems.Add(sdr[1].ToString());
                lv.SubItems.Add(sdr[2].ToString());
                lv.SubItems.Add(sdr[3].ToString());
                this.listView1.Items.Add(lv);
            }
        }