Пример #1
0
        void UCWUsedWater11_QueryEvent2(object sender, EventArgs e)
        {
            sUsedWater UserIDs = this.UCWUsedWater11.GetChannelIDS();
            DateTime   begin   = this.UCWUsedWater11.DuringBegin;
            DateTime   end     = this.UCWUsedWater11.DuringEnd;

            QueryData2(UserIDs, begin, end);
        }
Пример #2
0
        private void QueryData2(sUsedWater UserIDS, DateTime begin, DateTime end)
        {
            DataTable resultTable = CreateResultDataTable();

            string[] UID   = UserIDS.UID.Split(new char[] { '-' });
            string[] UName = UserIDS.UName.Split(new char[] { '-' });
            for (int i = 0; i < UID.Length; i++)
            {
                if (UID[i] != "")
                {
                    double Amount = CountChannelAmount(int.Parse(UID[i]), begin, end);
                    CreateAndAddRow(resultTable, UName[i], begin, end, (int)Amount);
                }
            }
            BindDataToChart(resultTable);
            BindDataToGridView(resultTable);
        }
Пример #3
0
 private void QueryData2(sUsedWater UserIDS, DateTime begin, DateTime end)
 {
     DataTable resultTable = CreateResultDataTable();
     string[] UID = UserIDS.UID.Split(new char[] { '-' });
     string[] UName = UserIDS.UName.Split(new char[] { '-' });
     for (int i = 0; i < UID.Length; i++)
     {
         if (UID[i] != "")
         {
             double Amount = CountChannelAmount(int.Parse(UID[i]), begin, end);
             CreateAndAddRow(resultTable, UName[i], begin, end, (int)Amount);
         }
     }
     BindDataToChart(resultTable);
     BindDataToGridView(resultTable);
 }