Пример #1
0
        private void twMain_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
        {
            if (e.Button == MouseButtons.Left && e.Node.Nodes.Count < 1)
            {
                //MessageBox.Show(e.Node.Name);

                string pathNo = e.Node.Name;
                if (bll == null)
                    bll = new RealTimePathCheckBll();

                DataTable dt = bll.SelectRealTimePathCheckByPath(pathNo);
                this.dgvMain.DataSource = dt;
                this.dgvMain.Columns["ID"].Visible = false;
                this.dgvMain.Columns["EmpID"].Visible = false;

            }
        }
Пример #2
0
        private void bcpSelect_Click(object sender, EventArgs e)
        {
            if (cbInterval.Text != "")
            {
                int inter = Convert.ToInt32(cbInterval.SelectedValue);

                //MessageBox.Show(inter.ToString());

                if (bll == null)
                    bll = new RealTimePathCheckBll();

                DataTable dt = bll.SelectRealTimePathCheckByInterval(inter);
                this.dgvMain.DataSource = dt;
                this.dgvMain.Columns["ID"].Visible = false;
                this.dgvMain.Columns["EmpID"].Visible = false;
            }
        }