BKI_DichVuMatDat.BaoCao.f480_bao_cao_thuong_khac.display C# (CSharp) Method

display() public method

public display ( decimal ip_dc_id_quy_tien ) : void
ip_dc_id_quy_tien decimal
return void
        public void display(decimal ip_dc_id_quy_tien)
        {
            fill_data_quy_tien_thuong();

            US_GD_THU_NHAP_KHAC v_us = new US_GD_THU_NHAP_KHAC();
            DataSet v_ds = new DataSet();
            v_ds.Tables.Add();

            v_us.LayDuLieuThuNhapKhac(v_ds, ip_dc_id_quy_tien);
            m_grc_luong_thuong.DataSource = v_ds.Tables[0];
            CHRMCommon.make_stt_indicator(m_grv_luong_thuong);
            m_sle_quy_thuong.EditValue = ip_dc_id_quy_tien;
            ShowDialog();

            //US_DUNG_CHUNG v_us = new US_DUNG_CHUNG();
            //DataSet v_ds = new DataSet();
            //v_ds.Tables.Add();

            //v_us.FillDatasetWithQuery(v_ds, "select * from V_GD_THU_NHAP_KHAC_2 where id_quy_tien_thuong = " + ip_dc_id_quy_tien);
            //m_grc_luong_thuong.DataSource = v_ds.Tables[0];
            //CHRMCommon.make_stt_indicator(m_grv_luong_thuong);
            //m_sle_quy_thuong.EditValue = ip_dc_id_quy_tien;
            //ShowDialog();
        }

Usage Example

 private void m_cmd_xem_chi_tiet_quỹ_Click(object sender, EventArgs e)
 {
     try
     {
         if(m_sle_quy_tien_thuong.EditValue == null)
         {
             return;
         }
         f480_bao_cao_thuong_khac v_frm = new f480_bao_cao_thuong_khac();
         v_frm.display(Convert.ToDecimal(m_sle_quy_tien_thuong.EditValue));
     }
     catch(Exception v_e)
     {
         CSystemLog_301.ExceptionHandle(v_e);
     }
 }