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]);
                    frmCuOrderFlow status = new frmCuOrderFlow();
                    status.ShowForm(Key);
                }
            }
        }
Ejemplo n.º 2
0
        public void ShowForm(string key)
        {
            frmCuOrderFlow statusform = new frmCuOrderFlow();

            //取table
            Dictionary <string, object> dic = new Dictionary <string, object>();

            dic.Add("GUID", key);

            bllImOrderFlow bll = new bllImOrderFlow();

            DataTable dt = bll.Search(dic);

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

            statusform.ShowDialog();
        }