コード例 #1
0
 public int nhapNXB(NXBDTO nxbDTO)
 {
     try
     {
         connect = new ConnectionData();
         int Nparamater = 5;
         string[] name = new string[Nparamater];
         object[] value = new object[Nparamater];
         name[0] = "@manxb";
         value[0] = nxbDTO.MaNXB;
         name[1] = "@tennxb";
         value[1] = nxbDTO.TenNXB;
         name[2] = "@diachi";
         value[2] = nxbDTO.DiaChi;
         name[3] = "@email";
         value[3] = nxbDTO.Email;
         name[4] = "@sdt";
         value[4] = nxbDTO.Sdt;
         return connect.UpdateData("NXB_InsertUpdate", name, value, Nparamater);
     }
     catch (SqlException ex)
     {
         throw ex;
     }
 }
コード例 #2
0
 public int nhapNXB(NXBDTO nxbDTO)
 {
     try
     {
         return nxbDAL.nhapNXB(nxbDTO);
     }
     catch (SqlException ex)
     {
         throw ex;
     }
 }
コード例 #3
0
 public DataTable TimTheoTen(NXBDTO nxbDTO)
 {
     try
     {
         return nxbDAL.TimTheoTen(nxbDTO);
     }
     catch (SqlException ex)
     {
         throw ex;
     }
 }
コード例 #4
0
 public int Xoa(NXBDTO nxbDTO)
 {
     try
     {
         connect = new ConnectionData();
         int Nparamater = 1;
         string[] name = new string[Nparamater];
         object[] value = new object[Nparamater];
         name[0] = "@manxb";
         value[0] = nxbDTO.MaNXB;
         return connect.UpdateData("NXB_Xoa", name, value, Nparamater);
     }
     catch (SqlException ex)
     {
         throw ex;
     }
 }
コード例 #5
0
 public DataTable LoadDuLieuCotMaNXB(NXBDTO nxbDTO)
 {
     try
     {
         connect = new ConnectionData();
         int Nparamater = 1;
         string[] name = new string[Nparamater];
         object[] value = new object[Nparamater];
         name[0] = "@manxb";
         value[0] = nxbDTO.MaNXB;
         return connect.GetData("NXB_LoadDuLieuCotMaNXB", name, value, Nparamater);
     }
     catch (SqlException ex)
     {
         throw ex;
     }
 }
コード例 #6
0
 public DataTable TimTheoTen(NXBDTO nxbDTO)
 {
     try
     {
         connect = new ConnectionData();
         int Nparamater = 1;
         string[] name = new string[Nparamater];
         object[] value = new object[Nparamater];
         name[0] = "@search";
         value[0] = nxbDTO.TenNXB;
         return connect.GetData("NXB_TimTheoTen", name, value, Nparamater);
     }
     catch (SqlException ex)
     {
         throw ex;
     }
 }
コード例 #7
0
 public int Xoa(NXBDTO nxbDTO)
 {
     return nxbDAL.Xoa(nxbDTO);
 }
コード例 #8
0
 public DataTable LoadDuLieuCotMaNXB(NXBDTO nxbDTO)
 {
     return nxbDAL.LoadDuLieuCotMaNXB(nxbDTO);
 }