BKI_DichVuMatDat.NghiepVu.F394_gd_nhan_vien_phu_cap.m_cmd_update_Click C# (CSharp) Method

m_cmd_update_Click() private method

private m_cmd_update_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        private void m_cmd_update_Click(object sender, EventArgs e)
        {
            try
            {
                F395_nhan_vien_phu_cap_de v_f = new F395_nhan_vien_phu_cap_de();
                int v_index_dr = m_grv.FocusedRowHandle;
                if (v_index_dr >= 0 )
                {
                    var v_dr = m_grv.GetDataRow(v_index_dr);
                    US_GD_NHAN_VIEN_PHU_CAP v_us = new US_GD_NHAN_VIEN_PHU_CAP(CIPConvert.ToDecimal(v_dr["ID"]));
                    v_f.display_for_update(v_us);
                    load_data_2_grid();
                }
                else
                {
                    string v_str_error = "Bạn chưa chọn dòng dữ liệu để sửa!";
                    XtraMessageBox.Show(v_str_error, "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
            }
            catch (Exception v_e)
            {
                CSystemLog_301.ExceptionHandle(v_e);
            }
        }