Exemplo n.º 1
0
        private void Edit(object sender, EventArgs e)
        {
            #region 编辑业务数据
            string id = (string)dtDetail.Rows[sGrid.CurrentRow.Index]["MId"];

            FmMould frm = new FmMould(id);
            if (frm.ShowDialog() == DialogResult.OK)
            {
                dtDetail = dal.GetDataTable(strWheres, parameters);
                this.UIRefresh();
            }
            #endregion
        }
Exemplo n.º 2
0
        private void Add(object sender, EventArgs e)
        {
            #region 新增业务数据

            var node = TreeM.SelectedNode;

            var modelC = node.Tag as MouldClass;

            FmMould frm = new FmMould(modelC);
            if (frm.ShowDialog() == DialogResult.OK)
            {
                dtDetail = dal.GetDataTable(strWheres, parameters);
                UIRefresh();
            }

            #endregion
        }