Beispiel #1
0
 /// <summary>
 /// 确认任务单
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 /// 作者:王宇昊
 /// 创建时间:2014-09-24
 /// 修改时间:2014-09-24
 private void btnEnsure_Click(object sender, EventArgs e)
 {
     try
     {
         if (dgvTask.RowCount != 0)
         {
             ConferenceAuditorBLL   Save       = new ConferenceAuditorBLL();
             ExecutorBLL            Get        = new ExecutorBLL();
             List <ConferenceModel> Conference = new List <ConferenceModel>();
             Conference = Get.GetConferenceInfo("");
             foreach (ConferenceModel con in Conference)
             {
                 if (con.ConId.ToString() == this.dgvTask.CurrentRow.Cells["ColumnConferenceId"].Value.ToString())
                 {
                     con.ConIsDone = '1';
                     Save.UpdateConference(con);
                     MessageBox.Show("确认成功", "提示信息", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                 }
             }
             GetTask();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Beispiel #2
0
        /// <summary>
        /// 修改已审核的会议
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnMod_Click(object sender, EventArgs e)
        {
            string strConName = dgvAudit.CurrentRow.Cells["ColumnConId2"].Value.ToString();
            List <ConferenceModel> conlist = new List <ConferenceModel>();
            List <BoardroomModel>  bdrlist = new List <BoardroomModel>();
            List <EmployeeModel>   emlist  = new List <EmployeeModel> ();
            List <EmployeeModel>   emlist2 = new List <EmployeeModel> ();

            conlist = auditbll.GetConferenceInfo(strConName);
            foreach (ConferenceModel con in conlist)
            {
                if (int.Parse(strConName) == con.ConId)
                {
                    bdrlist = auditbll.GetBoardroomInfo(cmbPlace.Text);
                    foreach (BoardroomModel bdr in bdrlist)
                    {
                        con.ConPlace = bdr.BdrId;
                    }
                    MessageBox.Show(con.ConPlace.ToString());

                    con.ConStartTime = dtpStart.Value;

                    con.ConEndTime = dtpEnd.Value;

                    con.ConHost = cmbHost.Text;

                    auditbll.UpdateConference(con);
                }
            }
            dgvAudit.Rows.Clear();
            bingdgv();
        }