public void Delete(DM_LoaiChuyenMonInfo pDM_LoaiChuyenMonInfo) { ArrayList colParam = new ArrayList(); colParam.Add(CreateParam("@DM_LoaiChuyenMonID", SqlDbType.Int, pDM_LoaiChuyenMonInfo.DM_LoaiChuyenMonID)); RunProcedure("sp_DM_LoaiChuyenMon_Delete", colParam); }
public DataTable Get(DM_LoaiChuyenMonInfo pDM_LoaiChuyenMonInfo) { ArrayList colParam = new ArrayList(); colParam.Add(CreateParam("@DM_LoaiChuyenMonID", SqlDbType.Int, pDM_LoaiChuyenMonInfo.DM_LoaiChuyenMonID)); return(RunProcedureGet("sp_DM_LoaiChuyenMon_Get", colParam)); }
public int Add(DM_LoaiChuyenMonInfo pDM_LoaiChuyenMonInfo) { int ID = 0; ID = oDDM_LoaiChuyenMon.Add(pDM_LoaiChuyenMonInfo); mErrorMessage = oDDM_LoaiChuyenMon.ErrorMessages; mErrorNumber = oDDM_LoaiChuyenMon.ErrorNumber; return(ID); }
public void Update(DM_LoaiChuyenMonInfo pDM_LoaiChuyenMonInfo) { ArrayList colParam = new ArrayList(); colParam.Add(CreateParam("@MaLoaiChuyenMon", SqlDbType.NVarChar, pDM_LoaiChuyenMonInfo.MaLoaiChuyenMon)); colParam.Add(CreateParam("@TenLoaiChuyenMon", SqlDbType.NVarChar, pDM_LoaiChuyenMonInfo.TenLoaiChuyenMon)); colParam.Add(CreateParam("@DM_LoaiChuyenMonID", SqlDbType.Int, pDM_LoaiChuyenMonInfo.DM_LoaiChuyenMonID)); RunProcedure("sp_DM_LoaiChuyenMon_Update", colParam); }
public int Add(DM_LoaiChuyenMonInfo pDM_LoaiChuyenMonInfo) { ArrayList colParam = new ArrayList(); colParam.Add(CreateParam("@MaLoaiChuyenMon", SqlDbType.NVarChar, pDM_LoaiChuyenMonInfo.MaLoaiChuyenMon)); colParam.Add(CreateParam("@TenLoaiChuyenMon", SqlDbType.NVarChar, pDM_LoaiChuyenMonInfo.TenLoaiChuyenMon)); colParam.Add(CreateParamOut("@ID", SqlDbType.Int)); return((int)RunProcedureOut("sp_DM_LoaiChuyenMon_Add", colParam)); }
public List <DM_LoaiChuyenMonInfo> GetList(DM_LoaiChuyenMonInfo pDM_LoaiChuyenMonInfo) { List <DM_LoaiChuyenMonInfo> oDM_LoaiChuyenMonInfoList = new List <DM_LoaiChuyenMonInfo>(); DataTable dtb = Get(pDM_LoaiChuyenMonInfo); if (dtb != null) { for (int i = 0; i < dtb.Rows.Count; i++) { pDM_LoaiChuyenMonInfo = new DM_LoaiChuyenMonInfo(); pDM_LoaiChuyenMonInfo.DM_LoaiChuyenMonID = int.Parse(dtb.Rows[i][pDM_LoaiChuyenMonInfo.strDM_LoaiChuyenMonID].ToString()); pDM_LoaiChuyenMonInfo.MaLoaiChuyenMon = dtb.Rows[i][pDM_LoaiChuyenMonInfo.strMaLoaiChuyenMon].ToString(); pDM_LoaiChuyenMonInfo.TenLoaiChuyenMon = dtb.Rows[i][pDM_LoaiChuyenMonInfo.strTenLoaiChuyenMon].ToString(); oDM_LoaiChuyenMonInfoList.Add(pDM_LoaiChuyenMonInfo); } } return(oDM_LoaiChuyenMonInfoList); }
public void ToInfo(ref DM_LoaiChuyenMonInfo pDM_LoaiChuyenMonInfo, DataRow dr) { pDM_LoaiChuyenMonInfo.DM_LoaiChuyenMonID = int.Parse(dr[pDM_LoaiChuyenMonInfo.strDM_LoaiChuyenMonID].ToString()); pDM_LoaiChuyenMonInfo.MaLoaiChuyenMon = dr[pDM_LoaiChuyenMonInfo.strMaLoaiChuyenMon].ToString(); pDM_LoaiChuyenMonInfo.TenLoaiChuyenMon = dr[pDM_LoaiChuyenMonInfo.strTenLoaiChuyenMon].ToString(); }
public void ToDataRow(DM_LoaiChuyenMonInfo pDM_LoaiChuyenMonInfo, ref DataRow dr) { dr[pDM_LoaiChuyenMonInfo.strDM_LoaiChuyenMonID] = pDM_LoaiChuyenMonInfo.DM_LoaiChuyenMonID; dr[pDM_LoaiChuyenMonInfo.strMaLoaiChuyenMon] = pDM_LoaiChuyenMonInfo.MaLoaiChuyenMon; dr[pDM_LoaiChuyenMonInfo.strTenLoaiChuyenMon] = pDM_LoaiChuyenMonInfo.TenLoaiChuyenMon; }
public void Delete(DM_LoaiChuyenMonInfo pDM_LoaiChuyenMonInfo) { oDDM_LoaiChuyenMon.Delete(pDM_LoaiChuyenMonInfo); mErrorMessage = oDDM_LoaiChuyenMon.ErrorMessages; mErrorNumber = oDDM_LoaiChuyenMon.ErrorNumber; }
public DataTable Get(DM_LoaiChuyenMonInfo pDM_LoaiChuyenMonInfo) { return(oDDM_LoaiChuyenMon.Get(pDM_LoaiChuyenMonInfo)); }