Example #1
0
        private void btnG_Update_Click(object sender, EventArgs e)
        {
            try
            {
                MachineGradeVO VO = new MachineGradeVO();
                VO.mgrade_id      = Convert.ToInt32(dataGridView1.CurrentRow.Cells[0].Value);
                VO.mgrade_code    = dataGridView1.CurrentRow.Cells[1].Value.ToString();
                VO.mgrade_name    = dataGridView1.CurrentRow.Cells[2].Value.ToString();
                VO.mgrade_yn      = dataGridView1.CurrentRow.Cells[3].Value.ToString();
                VO.mgrade_uadmin  = dataGridView1.CurrentRow.Cells[4].Value.ToString();
                VO.mgrade_udate   = dataGridView1.CurrentRow.Cells[5].Value.ToString();
                VO.mgrade_comment = dataGridView1.CurrentRow.Cells[6].Value.ToString();
                FacilitiesPop frm = new FacilitiesPop(FacilitiesPop.EditMode.Update, VO);

                if (frm.ShowDialog() == DialogResult.OK)
                {
                    LoadData();
                    SetBottomStatusLabel("설비군 수정 성공");
                }
                txtCode.Text    = dataGridView1.CurrentRow.Cells[1].Value.ToString();
                txtName.Text    = dataGridView1.CurrentRow.Cells[2].Value.ToString();
                txtAdmin.Text   = dataGridView1.CurrentRow.Cells[4].Value.ToString();
                txtDate.Text    = dataGridView1.CurrentRow.Cells[5].Value.ToString();
                txtComment.Text = dataGridView1.CurrentRow.Cells[6].Value.ToString();
            }
            catch (Exception err)
            {
                LoggingUtility.GetLoggingUtility(err.Message, Level.Error);
            }
        }
Example #2
0
 private void btnAddGroup_Click(object sender, EventArgs e)
 {
     try
     {
         FacilitiesPop group = new FacilitiesPop(FacilitiesPop.EditMode.Input);
         if (group.ShowDialog() == DialogResult.OK)
         {
             LoadData();
             SetBottomStatusLabel("신규 설비군 등록 성공");
         }
     }
     catch (Exception err)
     {
         LoggingUtility.GetLoggingUtility(err.Message, Level.Error);
     }
 }