示例#1
0
        public List<DTO.DTOCHUCVU> LayTheoMaCHUCVU(int MACV)
        {
            List<DTO.DTOCHUCVU> list = new List<DTO.DTOCHUCVU>();

            DataTable dt = chucvu.LayTheoMaCHUCVU(MACV);

            foreach(DataRow row in dt.Rows)

            {

                DTO.DTOCHUCVU e =new DTO.DTOCHUCVU();

                e.MACV=Int32.Parse(row["MACV"].ToString());

                e.TENCV=row["TENCV"].ToString();

                e.HESOLUONG=float.Parse(row["HESOLUONG"].ToString());

                list.Add(e);

            }

            return list;
        }
示例#2
0
        public List<DTO.DTOCHUCVU> TimkiemCHUCVU(string Keyword)
        {
            List<DTO.DTOCHUCVU> list = new List<DTO.DTOCHUCVU>();

            DataTable dt = chucvu.TimkiemCHUCVU(Keyword);

            foreach(DataRow row in dt.Rows)

            {

                DTO.DTOCHUCVU e =new DTO.DTOCHUCVU();

                e.MACV=Int32.Parse(row["MACV"].ToString());

                e.TENCV=row["TENCV"].ToString();

                e.HESOLUONG=float.Parse(row["HESOLUONG"].ToString());

                list.Add(e);

            }

            return list;
        }