Ejemplo n.º 1
0
        /// <summary>
        /// 超链事件
        /// </summary>
        private void gvMainData_RowClick(object sender, RowClickEventArgs e)
        {
            GridView gridView = (GridView)sender;

            if (e.Button == MouseButtons.Left && e.Clicks == 1)
            {
                GridHitInfo hitInfo = gridView.CalcHitInfo(e.Location);
                if (hitInfo.InRowCell && hitInfo.Column == this.gc_LINK)
                {
                    //展示状态流
                    DataRow          dr     = _SummaryView.GetFocusedDataRow();
                    string           Key    = ConvertEx.ToString(dr[_bll.SummaryModel.PrimaryKey]);
                    frmCuPaymentFlow status = new frmCuPaymentFlow();
                    status.ShowForm(Key);
                }
            }
        }
Ejemplo n.º 2
0
        public void ShowForm(string key)
        {
            frmCuPaymentFlow statusform = new frmCuPaymentFlow();
            //取table
            Dictionary <string, object> dic = new Dictionary <string, object>();

            dic.Add("GUID", key);

            bllImPaymentFlow bll = new bllImPaymentFlow();

            DataTable dt = bll.Search(dic);

            statusform.gcMainData.DataSource = dt;
            statusform.gvMainData.BestFitColumns();

            statusform.ShowDialog();
        }