/// <summary> /// 查询条件:设置考勤日期(查询条件) /// </summary> private void dateOperDate1_Click(object sender, EventArgs e) { //this.TopMost = false; //this.timer1.Enabled = false; FrmSetDateTime frm = new FrmSetDateTime(); if (frm.ShowDialog() == DialogResult.OK) { frm.Hide(); this.parDdateOperDate = DateTime.Parse(frm.m_DateTime).ToString("yyyy-MM-dd HH:mm"); dateOperDate1.Text = DateTime.Parse(frm.m_DateTime).ToString("yyyy-MM-dd HH:mm"); } this.TopMost = true; }
/// <summary> /// 设置调动结束日期 /// </summary> private void dtpEndDate_Click(object sender, EventArgs e) { //this.TopMost = false; FrmSetDateTime frm = new FrmSetDateTime(); if (frm.ShowDialog() == DialogResult.OK) { dtpEndDate.Text = DateTime.Parse(frm.m_DateTime).ToString("yyyy-MM-dd HH:mm"); } this.TopMost = true; }
private void dtStartTime_Click(object sender, EventArgs e) { FrmSetDateTime frm = new FrmSetDateTime(); if (frm.ShowDialog() == DialogResult.OK) { dtStartTime.Text = DateTime.Parse(frm.m_DateTime).ToString("yyyy-MM-dd"); } }