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));
        }
Esempio n. 3
0
        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));
        }
Esempio n. 6
0
        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);
        }
Esempio n. 7
0
 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();
 }
Esempio n. 8
0
 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;
 }
Esempio n. 9
0
 public void Delete(DM_LoaiChuyenMonInfo pDM_LoaiChuyenMonInfo)
 {
     oDDM_LoaiChuyenMon.Delete(pDM_LoaiChuyenMonInfo);
     mErrorMessage = oDDM_LoaiChuyenMon.ErrorMessages;
     mErrorNumber  = oDDM_LoaiChuyenMon.ErrorNumber;
 }
Esempio n. 10
0
 public DataTable Get(DM_LoaiChuyenMonInfo pDM_LoaiChuyenMonInfo)
 {
     return(oDDM_LoaiChuyenMon.Get(pDM_LoaiChuyenMonInfo));
 }