Ejemplo n.º 1
0
        /// <summary>
        ///     添加按钮事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void tsBtnAdd_Click(object sender, EventArgs e)
        {
            var dayReportJjForm = new DayReportJjEntering();

            if (DialogResult.OK == dayReportJjForm.ShowDialog())
            {
                RefreshData();
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        ///     修改按钮事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void tsBtnModify_Click(object sender, EventArgs e)
        {
            if (gridView1.GetFocusedRow() == null)
            {
                Alert.alert("请选择要修改的信息");
                return;
            }
            var dayReportJjForm = new DayReportJjEntering((DayReportJj)gridView1.GetFocusedRow());

            if (DialogResult.OK == dayReportJjForm.ShowDialog())
            {
                RefreshData();
            }
        }