Exemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        private void Query()
        {
            DataTable tbl = DitchData10MinuteChangeLogDBI.GetChangeLog(WaterUserName);

            //H.GridView = this.GridView1;
            //H.GrIdviewconfig = GetGridViewConfig();
            H.DataSource = tbl;
            H.Bind();
        }
Exemplo n.º 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e)
        {
            string userName = WU.Name;

            string wl = GetUpdatingText(e.RowIndex, GetWLColumnIndex());
            int    r;
            bool   b = int.TryParse(wl, out r);


            if (b)
            {
                int dataid = Convert.ToInt32(this.GridView1.DataKeys[e.RowIndex].Value);
                DitchData10MinuteChangeLogDBI.AddDitchData10MinuteChangeItem(dataid, r, userName);

                DitchData10MinuteDBI.UpdateWL1(dataid, r);
                //throw new NotImplementedException();
                this.GridView1.EditIndex = -1;
                this.Query();
            }
        }