Пример #1
0
        private void ShowDetail(object sender, MouseEventArgs e)
        {
            #region 查看单据
            int    index = DGX.FocusedRowHandle;
            string guid  = DGX.GetDataRow(index)["guid"].ToString();

            FmMaterialPlan frm = new FmMaterialPlan(guid);
            //FmMain.NewPageDelegate(frm);
            frm.ShowDialog();
            #endregion
        }
Пример #2
0
        private void GetResult(object sender, EventArgs e)
        {
            List <DataRow> ls = new List <DataRow>();

            foreach (int i in gridView1.GetSelectedRows())
            {
                ls.Add(gridView1.GetDataRow(i));
            }

            if (ls.Count < 1)
            {
                throw new Exception("没有选中行!");
            }
            else
            {
                FmMaterialPlan frm = new FmMaterialPlan();
                frm.LoadData(ls.ToArray());
                if (frm.ShowDialog() == DialogResult.OK)
                {
                    this.LoadData();
                }
            }
        }