Beispiel #1
0
 private void delToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (dgv.CurrentRow == null)
     {
         return;
     }
     OddJob.deleteQuantitiesOfOddJobBySeq(this.dgv.CurrentRow.Cells["seq"].Value.ToString());
     btnQuery_Click(sender, e);
 }
Beispiel #2
0
        /// <summary>
        /// this.cb_Team_name.SelectedIndexChanged -= new System.EventHandler(this.cb_Team_name_SelectedIndexChanged);
        ///  this.cb_Team_name.DisplayMember = "team_name";
        /// this.cb_Team_name.ValueMember = "team_name";
        /// DGVHelper.AutoSizeForDGV(dgv);
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void mCalendar_DateChanged(object sender, DateRangeEventArgs e)
        {
            year_and_month_str = e.Start.ToString("yyyy-MM");
            DataTable dt = OddJob.getAllEmpsName(year_and_month_str);

            this.cb_Emp_Name.SelectedIndexChanged -= new System.EventHandler(this.cb_Emp_Name_SelectedIndexChanged);
            this.cb_Emp_Name.DisplayMember         = "emp_name";
            this.cb_Emp_Name.ValueMember           = "emp_name";
            this.cb_Emp_Name.DataSource            = dt;
            this.cb_Emp_Name.SelectedIndexChanged += new System.EventHandler(this.cb_Emp_Name_SelectedIndexChanged);
        }
Beispiel #3
0
 /// <summary>
 /// 按日期和姓名查询零活记录
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void cb_Emp_Name_SelectedIndexChanged(object sender, EventArgs e)
 {
     this.dgv.DataSource = OddJob.getQuantitiesOfOddJob(year_and_month_str, null, cb_Emp_Name.Text.Trim());
     DGVHelper.AutoSizeForDGV(dgv);
 }