public US_V_BC_CHI_PHI_THEO_CAC_PHAP_NHAN(decimal i_dbID) { pm_objDS = new DS_V_BC_CHI_PHI_THEO_CAC_PHAP_NHAN(); pm_strTableName = c_TableName; IMakeSelectCmd v_objMkCmd = new CMakeAndSelectCmd(pm_objDS, c_TableName); v_objMkCmd.AddCondition("ID", i_dbID, eKieuDuLieu.KieuNumber, eKieuSoSanh.Bang); SqlCommand v_cmdSQL; v_cmdSQL = v_objMkCmd.getSelectCmd(); this.FillDatasetByCommand(pm_objDS, v_cmdSQL); pm_objDR = getRowClone(pm_objDS.Tables[pm_strTableName].Rows[0]); }
public US_V_BC_CHI_PHI_THEO_CAC_PHAP_NHAN() { pm_objDS = new DS_V_BC_CHI_PHI_THEO_CAC_PHAP_NHAN(); pm_strTableName = c_TableName; pm_objDR = pm_objDS.Tables[pm_strTableName].NewRow(); }
private void tim_kiem() { decimal v_id_trang_thai = CIPConvert.ToDecimal(m_cbo_trang_thai.SelectedValue); DateTime v_dt_tu_ngay; DateTime v_dt_den_ngay; if (!m_dt_tu_ngay.Checked) { v_dt_tu_ngay = new DateTime(1970, 1, 1); } else { v_dt_tu_ngay = m_dt_tu_ngay.Value; } if (!m_dt_den_ngay.Checked) { v_dt_den_ngay = new DateTime(2050, 1, 1); } else { v_dt_den_ngay = m_dt_den_ngay.Value; } US_V_BC_CHI_PHI_THEO_CAC_PHAP_NHAN v_us = new US_V_BC_CHI_PHI_THEO_CAC_PHAP_NHAN(); DS_V_BC_CHI_PHI_THEO_CAC_PHAP_NHAN v_ds = new DS_V_BC_CHI_PHI_THEO_CAC_PHAP_NHAN(); v_us.FillDatasetSearch(v_ds, v_dt_tu_ngay, v_dt_den_ngay, v_id_trang_thai); m_fg.Redraw = false; CGridUtils.Dataset2C1Grid(v_ds, m_fg, m_obj_trans); m_fg.Redraw = true; }
public void FillDatasetSearch(DS_V_BC_CHI_PHI_THEO_CAC_PHAP_NHAN ip_v_ds, DateTime ip_v_dt_tu_ngay, DateTime ip_v_dt_den_ngay, decimal ip_v_id_trang_thai) { CStoredProc v_stored_proc = new CStoredProc("pr_CHI_PHI_THEO_PHAP_NHAN"); v_stored_proc.addDatetimeInputParam("@TU_NGAY", ip_v_dt_tu_ngay); v_stored_proc.addDatetimeInputParam("@DEN_NGAY", ip_v_dt_den_ngay); v_stored_proc.addDecimalInputParam("@ID_TRANG_THAI", ip_v_id_trang_thai); v_stored_proc.fillDataSetByCommand(this, ip_v_ds); }
private void load_data_2_grid() { m_ds = new DS_V_BC_CHI_PHI_THEO_CAC_PHAP_NHAN(); m_us.FillDataset(m_ds); m_fg.Redraw = false; CGridUtils.Dataset2C1Grid(m_ds, m_fg, m_obj_trans); CGridUtils.MakeSoTT(0, m_fg); m_fg.Redraw = true; }