private void us_object_2_form(US_V_GD_THANH_TOAN_LUONG_ONLINE ip_us_gd_thanh_toan_online) { m_cbo_dv_quan_ly.SelectedValue = ip_us_gd_thanh_toan_online.dcID_DON_VI_QUAN_LY; m_txt_ho_ten_gv.Text = ip_us_gd_thanh_toan_online.strHO_TEN_GIANG_VIEN; m_txt_noi_dung_thanh_toan.Text = ip_us_gd_thanh_toan_online.strNOI_DUNG_THANH_TOAN; m_txt_ten_course.Text = ip_us_gd_thanh_toan_online.strCOURSE_NAME; m_txt_don_gia.Text = CIPConvert.ToStr(ip_us_gd_thanh_toan_online.dcDON_GIA, "#,###"); if (ip_us_gd_thanh_toan_online.dcID_KHOAN_CHI == C_TU_DIEN_LOAI_NOI_DUNG_HD_ONLINE.LUONG_CM_CHINH_TRI || ip_us_gd_thanh_toan_online.dcID_KHOAN_CHI == C_TU_DIEN_LOAI_NOI_DUNG_HD_ONLINE.LUONG_CM_KO_CHINH_TRI || ip_us_gd_thanh_toan_online.dcID_KHOAN_CHI == C_TU_DIEN_LOAI_NOI_DUNG_HD_ONLINE.LUONG_HD_CHINH_TRI || ip_us_gd_thanh_toan_online.dcID_KHOAN_CHI == C_TU_DIEN_LOAI_NOI_DUNG_HD_ONLINE.LUONG_HD_KO_CHINH_TRI) { m_txt_so_luong.Text = "1"; m_txt_he_so.Text = CIPConvert.ToStr(ip_us_gd_thanh_toan_online.dcSO_LUONG_HE_SO, "#,###.0"); } else { if (ip_us_gd_thanh_toan_online.dcSO_LUONG_HE_SO == 0) { m_txt_so_luong.Text = "0"; } else { m_txt_so_luong.Text = CIPConvert.ToStr(ip_us_gd_thanh_toan_online.dcSO_LUONG_HE_SO, "#,###"); } m_txt_he_so.Text = "1"; } m_txt_he_so.Text = CIPConvert.ToStr(ip_us_gd_thanh_toan_online.dcSO_LUONG_HE_SO, "#,###.0"); m_cbo_trang_thai_thanh_toan.SelectedValue = ip_us_gd_thanh_toan_online.dcID_TRANG_THAI; m_txt_ghi_chu.Text = ip_us_gd_thanh_toan_online.strGHI_CHU; // Cho phép sửa thông tin ra đề, chấm bài cuối kỳ if (ip_us_gd_thanh_toan_online.dcID_KHOAN_CHI == C_TU_DIEN_LOAI_NOI_DUNG_HD_ONLINE.RA_DE_HET_MON || ip_us_gd_thanh_toan_online.dcID_KHOAN_CHI == C_TU_DIEN_LOAI_NOI_DUNG_HD_ONLINE.CHAM_HET_MON) { m_txt_so_luong.Enabled = true; m_txt_so_luong.BackColor = Color.White; } }
public void display_for_update(US_V_GD_THANH_TOAN_LUONG_ONLINE ip_us_v_dm_mau_hop_dong) { m_us_v_gd_thanh_toan_online = ip_us_v_dm_mau_hop_dong; this.ShowDialog(); }
private void us_object_2_form(US_V_GD_THANH_TOAN_LUONG_ONLINE ip_us_gd_thanh_toan_online) { m_cbo_dv_quan_ly.SelectedValue = ip_us_gd_thanh_toan_online.dcID_DON_VI_QUAN_LY; m_txt_ho_ten_gv.Text = ip_us_gd_thanh_toan_online.strHO_TEN_GIANG_VIEN; m_txt_noi_dung_thanh_toan.Text = ip_us_gd_thanh_toan_online.strNOI_DUNG_THANH_TOAN; m_txt_ten_course.Text = ip_us_gd_thanh_toan_online.strCOURSE_NAME; m_txt_don_gia.Text = CIPConvert.ToStr(ip_us_gd_thanh_toan_online.dcDON_GIA, "#,###"); if (ip_us_gd_thanh_toan_online.dcID_KHOAN_CHI == C_TU_DIEN_LOAI_NOI_DUNG_HD_ONLINE.LUONG_CM_CHINH_TRI || ip_us_gd_thanh_toan_online.dcID_KHOAN_CHI == C_TU_DIEN_LOAI_NOI_DUNG_HD_ONLINE.LUONG_CM_KO_CHINH_TRI || ip_us_gd_thanh_toan_online.dcID_KHOAN_CHI == C_TU_DIEN_LOAI_NOI_DUNG_HD_ONLINE.LUONG_HD_CHINH_TRI || ip_us_gd_thanh_toan_online.dcID_KHOAN_CHI == C_TU_DIEN_LOAI_NOI_DUNG_HD_ONLINE.LUONG_HD_KO_CHINH_TRI) { m_txt_so_luong.Text = "1"; m_txt_he_so.Text = CIPConvert.ToStr(ip_us_gd_thanh_toan_online.dcSO_LUONG_HE_SO,"#,###.0"); } else { if (ip_us_gd_thanh_toan_online.dcSO_LUONG_HE_SO == 0) m_txt_so_luong.Text = "0"; else m_txt_so_luong.Text = CIPConvert.ToStr(ip_us_gd_thanh_toan_online.dcSO_LUONG_HE_SO, "#,###"); m_txt_he_so.Text = "1"; } m_txt_he_so.Text = CIPConvert.ToStr(ip_us_gd_thanh_toan_online.dcSO_LUONG_HE_SO, "#,###.0"); m_cbo_trang_thai_thanh_toan.SelectedValue = ip_us_gd_thanh_toan_online.dcID_TRANG_THAI; m_txt_ghi_chu.Text = ip_us_gd_thanh_toan_online.strGHI_CHU; // Cho phép sửa thông tin ra đề, chấm bài cuối kỳ if (ip_us_gd_thanh_toan_online.dcID_KHOAN_CHI == C_TU_DIEN_LOAI_NOI_DUNG_HD_ONLINE.RA_DE_HET_MON || ip_us_gd_thanh_toan_online.dcID_KHOAN_CHI == C_TU_DIEN_LOAI_NOI_DUNG_HD_ONLINE.CHAM_HET_MON) { m_txt_so_luong.Enabled = true; m_txt_so_luong.BackColor = Color.White; } }