コード例 #1
0
        /// <summary>
        ///
        /// </summary>
        private void Query()
        {
            DataTable tbl = DitchData10MinuteChangeLogDBI.GetChangeLog(WaterUserName);

            //H.GridView = this.GridView1;
            //H.GrIdviewconfig = GetGridViewConfig();
            H.DataSource = tbl;
            H.Bind();
        }
コード例 #2
0
ファイル: pDayData.aspx.cs プロジェクト: wwkkww1983/yh
        /// <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();
            }
        }