Пример #1
0
        private void btnChange_Click(object sender, EventArgs e)
        {
            try
            {
                if (this.dataGrid1.CurrentRow() == null)
                {
                    return;
                }

                if ("1".Equals(this.dataGrid1.CurrentRow()["is_base"].ToString()))
                {
                    MsgForm.ShowFrom("系统样式不可修改");
                    return;
                }

                frmPrintAdd add = new frmPrintAdd();
                add.print_style           = DB.ReflectionHelper.DataRowToModel <Model.sys_t_print_style>(this.dataGrid1.CurrentRow());
                add.print_style.report_id = print_style.report_id;
                add.ShowDialog();

                Flush();
            }
            catch (Exception exception)
            {
                MsgForm.ShowFrom(exception);
            }
        }
Пример #2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmPrintAdd add = new frmPrintAdd();

            add.print_style.report_id = print_style.report_id;
            add.ShowDialog();

            Flush();
        }