Beispiel #1
0
        }//end load benefits

        public void LoadInComboBox(ComboBox cbo)
        {
            Benefit   s  = new Benefit();
            DataTable dt = new DataTable();

            dt = s.SELECT_ALL();
            if (dt != null)
            {
                foreach (DataRow r in dt.Rows)
                {
                    cbo.Items.Add(r["code"].ToString());
                }
            }
        }//end load benefits
Beispiel #2
0
        public void LoadInComboBox(ComboBox cbo)
        {
            Benefit s = new Benefit();
            DataTable dt = new DataTable();

            dt = s.SELECT_ALL();
            if (dt != null)
            {
                foreach (DataRow r in dt.Rows)
                {
                    cbo.Items.Add(r["code"].ToString());
                }
            }
        }
Beispiel #3
0
        }//end select all

        public void LoadOnListView(ListView lv)
        {
            Benefit   s  = new Benefit();
            DataTable dt = new DataTable();

            dt = s.SELECT_ALL();
            if (dt != null)
            {
                int ctr = 1;
                foreach (DataRow r in dt.Rows)
                {
                    ListViewItem li = new ListViewItem();
                    li.Text = ctr.ToString();
                    li.SubItems.Add(r["code"].ToString());
                    li.SubItems.Add(r["name_"].ToString());
                    li.SubItems.Add(r["type_"].ToString());
                    //li.SubItems.Add(r["amount_lookup"].ToString());
                    //li.SubItems.Add(r["amount"].ToString());
                    lv.Items.Add(li);
                    ctr++;
                }
            }
        }//end load benefits
Beispiel #4
0
        public void LoadOnListView(ListView lv)
        {
            Benefit s = new Benefit();
            DataTable dt = new DataTable();

            dt = s.SELECT_ALL();
            if (dt != null)
            {
                int ctr = 1;
                foreach (DataRow r in dt.Rows)
                {
                    ListViewItem li = new ListViewItem();
                    li.Text = ctr.ToString();
                    li.SubItems.Add(r["code"].ToString());
                    li.SubItems.Add(r["name_"].ToString());
                    li.SubItems.Add(r["type_"].ToString());
                    //li.SubItems.Add(r["amount_lookup"].ToString());
                    //li.SubItems.Add(r["amount"].ToString());
                    lv.Items.Add(li);
                    ctr++;
                }
            }
        }