public LayDuLieuTheoThang ( decimal ip_dc_thang, decimal ip_dc_nam, decimal ip_dc_id_loai_tien_khac ) : |
||
ip_dc_thang | decimal | |
ip_dc_nam | decimal | |
ip_dc_id_loai_tien_khac | decimal | |
리턴 |
public DataTable LayDuLieuTheoThang(decimal ip_dc_thang, decimal ip_dc_nam, decimal ip_dc_id_loai_tien_khac)
{
CStoredProc v_cstore = new CStoredProc("PR_TL_du_lieu_tien_khac_GetAll");
v_cstore.addDecimalInputParam("@ip_dc_thang", ip_dc_thang);
v_cstore.addDecimalInputParam("@ip_dc_nam", ip_dc_nam);
v_cstore.addDecimalInputParam("@ip_dc_id_loai_tien_khac", ip_dc_id_loai_tien_khac);
DataSet v_ds = new DataSet();
v_ds.Tables.Add();
v_cstore.fillDataSetByCommand(this, v_ds);
return v_ds.Tables[0];
}
private void load_data_to_grid() { US_GD_CAC_KHOAN_TIEN_KHAC v_us = new US_GD_CAC_KHOAN_TIEN_KHAC(); var v_dt_source = v_us.LayDuLieuTheoThang(lay_thang(), lay_nam(), lay_loai_tien_khac()); m_lbl_thang.Text = lay_thang() + "/" + lay_nam() + "-" + m_cmb_khoan_tien.DisplayMember; m_grc_main.DataSource = v_dt_source; m_grc_main.RefreshDataSource(); }