Esempio n. 1
0
 /// <summary>
 /// 设置调动开始日期
 /// </summary>
 private void dtpStartDate_Click(object sender, EventArgs e)
 {
     //this.TopMost = false;
     FrmSetDateTime frm = new FrmSetDateTime();
     if (frm.ShowDialog() == DialogResult.OK)
     {
         frm.Hide();
         dtpStartDate.Text = DateTime.Parse(frm.m_DateTime).ToString("yyyy-MM-dd HH:mm");
     }
     this.TopMost = true;
 }
Esempio n. 2
0
        /// <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;
        }