Ejemplo n.º 1
0
        public void LoaiThietBiLoad()
        {
            DataTable dt = new DataTable(null);

            dt = _db.LoaiThietBiLoad(ref err);
            superGridControl1.PrimaryGrid.Rows.Clear();

            if (dt.Rows.Count > 0)
            {
                lblsoluong.Text = dt.Rows.Count.ToString();
                superGridControl1.PrimaryGrid.DataSource = dt;
            }
            context = ((DataTable)dt).DefaultView;
            try
            {
                txtsoluong.DataBindings.Add(new Binding("Text", context, "NUM_NOW_INF"));
                txttangtrongnam.DataBindings.Add(new Binding("Text", context, "EXP_MACHINE"));
                txttenloaitb.DataBindings.Add(new Binding("Text", context, "NAMES_INF"));
                combongaythang.DataBindings.Add(new Binding("Text", context, "DAY_INF"));

                // combongaythang.DataBindings.Add(new Binding("Text", context, "DAY_INF"));
                lblid.DataBindings.Add(new Binding("Text", context, "ID_INF"));
            }
            catch (Exception e)
            {
                //timer1.Start();
                //ToastNotification.Show(this, "Đang tải danh sách", null, 5000, (eToastGlowColor)eToastGlowColor.Blue, (eToastPosition)eToastPosition.BottomRight);
                var loaithietbi = new LoaiThietBi();
                cls_Main.LoadUserControl2(cls_Controls._pn_Hienthi, loaithietbi);
            }
        }
Ejemplo n.º 2
0
        private void lblloaithietbi_Click(object sender, EventArgs e)
        {
            var loaithietbi = new LoaiThietBi();

            cls_Main.LoadUserControl2(cls_Controls._pn_Hienthi, loaithietbi);
        }