Esempio n. 1
0
        private void simpleButton_add_Click(object sender, EventArgs e)
        {
            ShenbaoContentEditForm form = new ShenbaoContentEditForm(shenbaoContentService);

            form.ShowDialog();
            initData(formatWhere());
        }
Esempio n. 2
0
        private void simpleButton_view_Click(object sender, EventArgs e)
        {
            if (gridView.SelectedRowsCount != 1)
            {
                MessageBox.Show("请选择一条记录!", "警告");
                return;
            }
            //获取选中的行的行号
            int[]     rowNums           = gridView.GetSelectedRows();
            DataTable dt                = (DataTable)gridControl.DataSource;
            ShenbaoContentEditForm form = new ShenbaoContentEditForm(Int32.Parse(dt.Rows[rowNums[0]][ShenboContent.ID_COLUMN].ToString()), Int32.Parse(dt.Rows[rowNums[0]][ShenboContent.LOGICID_COLUMN].ToString()), dt.Rows[rowNums[0]][ShenboContent.CONTENT_COLOMUN].ToString(), dt.Rows[rowNums[0]][ShenboContent.CONTENT_EN_COLOMUN].ToString(), shenbaoContentService, true);

            form.ShowDialog();
        }
Esempio n. 3
0
 private void simpleButton_modify_Click(object sender, EventArgs e)
 {
     if (gridView.SelectedRowsCount != 1)
     {
         MessageBox.Show("请选择一条记录!","警告");
         return;
     }
     //获取选中的行的行号
     int[] rowNums = gridView.GetSelectedRows();
     DataTable dt = (DataTable)gridControl.DataSource;
     ShenbaoContentEditForm form = new ShenbaoContentEditForm(Int32.Parse(dt.Rows[rowNums[0]][ShenboContent.ID_COLUMN].ToString()), Int32.Parse(dt.Rows[rowNums[0]][ShenboContent.LOGICID_COLUMN].ToString()), dt.Rows[rowNums[0]][ShenboContent.CONTENT_COLOMUN].ToString(), dt.Rows[rowNums[0]][ShenboContent.CONTENT_EN_COLOMUN].ToString(), shenbaoContentService);
     form.ShowDialog();
     pageUpControl.GetDataTable();
 }
Esempio n. 4
0
 private void simpleButton_add_Click(object sender, EventArgs e)
 {
     ShenbaoContentEditForm form = new ShenbaoContentEditForm(shenbaoContentService);
     form.ShowDialog();
     initData(formatWhere());
 }