示例#1
0
        /// <summary>
        /// 点击记录详情按钮
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void OnOpenHistoryDetail(object sender, RoutedEventArgs e)
        {
            Button    tmp      = (Button)sender;
            int       sid      = Convert.ToInt32(tmp.Tag);
            Hashtable hInfo    = hrvdb.GetHistoryByID(sid);
            ArrayList markList = hrvdb.GetMarkByID(sid);

            if (hInfo.Count > 0)
            {
                hInfo["HRVMark"] = markList;
                hd          = new HRVDetaile(hInfo["hrvData"] as ArrayList, hInfo, this.LayoutRoot);
                mark        = new Rectangle();
                mark.Fill   = Brushes.Transparent;
                mark.Margin = new Thickness();
                this.LayoutRoot.Children.Add(mark);
                this.LayoutRoot.Children.Add(hd);
                hd.closeButton.Click += OnCloseDetail;
            }
            else
            {
            }
        }
示例#2
0
        /// <summary>
        /// 点击记录详情按钮
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void OnOpenHistoryDetail(object sender, RoutedEventArgs e)
        {
            Button tmp = (Button)sender;
            int    sid = Convert.ToInt32(tmp.Tag);
            //           PmtsMessageBox.CustomControl1.Show(sid.ToString());
            Hashtable hInfo = GetGuestHistoryByID(sid);

            if (hInfo.Count > 0)
            {
                hd          = new HRVDetaile(hInfo["hrvData"] as ArrayList, hInfo, this.mainGrid);
                mark        = new Rectangle();
                mark.Fill   = Brushes.Transparent;
                mark.Margin = new Thickness();
                this.mainGrid.Children.Add(mark);
                this.mainGrid.Children.Add(hd);
                hd.closeButton.Click += OnCloseDetail;
            }


            /*           Hashtable hInfo = hrvd.GetHistoryByID(sid);
             *         ArrayList markList = hrvd.GetMarkByID(sid);
             *         if (hInfo.Count > 0)
             *         {
             *             hInfo["HRVMark"] = markList;
             *             hd = new HRVDetaile(hInfo["hrvData"] as ArrayList, hInfo, this.LayoutRoot);
             *             mark = new Rectangle();
             *             mark.Fill = Brushes.Transparent;
             *             mark.Margin = new Thickness();
             *             this.LayoutRoot.Children.Add(mark);
             *             this.LayoutRoot.Children.Add(hd);
             *             hd.closeButton.Click += OnCloseDetail;
             *         }
             *         else
             *         {
             *
             *         }
             */
        }