예제 #1
0
        /// <summary>
        /// 工程信息 展示
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void tsmiNew_Click(object sender, EventArgs e)
        {
            string         ProjectNO      = Globals.ProjectNO;//主键值
            frmProjectInfo frmProjectInfo = new frmProjectInfo(ProjectNO, false);

            frmProjectInfo.ShowDialog();
        }
예제 #2
0
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void tsAdd_Click(object sender, EventArgs e)
        {
            frmProjectInfo frmProjectInfo = new frmProjectInfo("", true);

            frmProjectInfo.ShowDialog();
            BindGridViewData(false);//重新绑定数据
        }
예제 #3
0
        /// <summary>
        /// 编辑列表界面
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void tsEdit_Click(object sender, EventArgs e)
        {
            DataGridViewSelectedRowCollection rows = this.dgProject.SelectedRows;

            if (rows.Count == 0)
            {
                return;
            }
            else
            {
                string         ProjectNO      = rows[0].Cells["ProjectNO"].Value.ToString();//要编辑的主键
                frmProjectInfo frmProjectInfo = new frmProjectInfo(ProjectNO, false);
                frmProjectInfo.ShowDialog();
                BindGridViewData(false);//重新绑定数据
            }
        }