Ejemplo n.º 1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void UCConditionYear1_QueryEvent(object sender, EventArgs e)
 {
     if (IsValid)
     {
         int year = this.UCConditionYear1.Year;
         // TODO:
         //
         DeviceClass device = this.UCConditionYear1.Station.DeviceCollection[0];
         DataTable   tbl    = DitchDataYearDBI.ExecuteYearDataTable(year, device, DataEnum.Amount);
         this.GridView1.DataSource = tbl;
         this.GridView1.DataBind();
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void UCConditionYear1_QueryEvent(object sender, EventArgs e)
        {
            if (IsValid)
            {
                int          year    = this.UCConditionYear1.Year;
                StationClass station = this.UCConditionYear1.Station;
                if (station.DeviceCollection.Count > 0)
                {
                    DeviceClass device = station.DeviceCollection[0];

                    DataTable tbl = DitchDataYearDBI.ExecuteYearDataTable(year, device, this.DataEnum);

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