public US_V_TONG_HOP_BILL_THEO_PHONG_BAN(decimal i_dbID) { pm_objDS = new DS_V_TONG_HOP_BILL_THEO_PHONG_BAN(); 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_TONG_HOP_BILL_THEO_PHONG_BAN() { pm_objDS = new DS_V_TONG_HOP_BILL_THEO_PHONG_BAN(); pm_strTableName = c_TableName; pm_objDR = pm_objDS.Tables[pm_strTableName].NewRow(); }
public void FillDatasetSearch(DS_V_TONG_HOP_BILL_THEO_PHONG_BAN ip_v_ds, DateTime ip_v_dt_tu_ngay, DateTime ip_v_dt_den_ngay, decimal ip_v_id_trang_thai, string ip_v_id_tu_khoa) { CStoredProc v_stored_proc = new CStoredProc("pr_V_TONG_HOP_BILL_THEO_PHONG_BAN"); 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.addNVarcharInputParam("@TU_KHOA", ip_v_id_tu_khoa); v_stored_proc.fillDataSetByCommand(this, ip_v_ds); }