Esempio 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]);
                    frmCuWayBillFlow status = new frmCuWayBillFlow();
                    status.ShowForm(Key);
                }
            }
        }
Esempio n. 2
0
        public void ShowForm(string key)
        {
            frmCuWayBillFlow statusform = new frmCuWayBillFlow();
            //取table
            Dictionary <string, object> dic = new Dictionary <string, object>();

            dic.Add("GUID", key);

            bllImWayBillFlow bll = new bllImWayBillFlow();

            DataTable dt = bll.Search(dic);

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

            statusform.ShowDialog();
        }