private void bt_ok_Click(object sender, EventArgs e) { str_tjrq = dtp_tjdjrq.Value.ToString("yyyy-MM-dd"); if (Convert.ToDateTime(str_tjrq) > Convert.ToDateTime(Program.sys_jzzcrq)) { MessageBox.Show("系统使用非法,程序将自动关闭,请联系销售人员: !", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); Program.sfzc = false; main.Form_reg frm_reg = new PEIS.main.Form_reg(); frm_reg.ShowDialog(); } //Form_jzlr frm = new Form_jzlr(str_tjrq); //frm.MdiParent = this.MdiParent; //frm.Show(); Form_tycx frm = new Form_tycx(str_tjrq); frm.MdiParent = this.MdiParent; frm.Show(); this.Close(); }
private void txt_ksjs_MouseDown(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Right) { Form_tycx frm = new Form_tycx(str_tjrq); if (frm.ShowDialog() == DialogResult.OK) { if (frm.str_sumover == "2") { if (DialogResult.No == MessageBox.Show("该人员已经总检,是否查看记录?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1)) { return; } } str_tjbh = frm.str_tjbh; str_tjcs = frm.str_tjcs; TJDJB_DataBind(str_tjbh, str_tjcs); TJ_ZYJLMX_DataBind(str_tjbh, str_tjcs); TJ_ZYJL_DataBind(str_tjbh, str_tjcs); } } }