Exemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="deviceID"></param>
        /// <param name="begin"></param>
        /// <param name="end"></param>
        private void QueryData(int deviceID, DateTime begin, DateTime end)
        {
            DataTable tbl = DitchDataDBI.GetWLFluxTable(begin, end, deviceID);

            // AddDeletedColumn
            //
            AddDeletedColumn(tbl);

            H.DataSource = tbl;
            H.Bind();

            bool b = tbl.Rows.Count > 0;

            this.panelOpera.Visible = b;
        }
Exemplo n.º 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="_queryDeviceID"></param>
        /// <param name="_queryDateTime"></param>
        private void QueryData(int deviceID, DateTime begin, DateTime end)
        {
            DataTable tbl = DitchDataDBI.GetWLFluxTable(begin, end, deviceID);

            //this.GridView1.DataSource = tbl;
            //this.GridView1.DataBind();
            H.DataSource = tbl;
            H.Bind();

            if (tbl.Rows.Count > 0)
            {
                this.btnModify.Visible       = true;
                this.lblEditPassword.Visible = true;
                this.txtEditPassword.Visible = true;
            }
            else
            {
                this.btnModify.Visible       = false;
                this.lblEditPassword.Visible = false;
                this.txtEditPassword.Visible = false;
            }
        }