Model_whlabellabel.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  2. class Model_Whlabellabel extends Lin_Model
  3. {
  4. function __construct(){
  5. parent::__construct();
  6. $this->load->database();
  7. $this->table = 'whlabellabel';
  8. $this->load_table('whlabellabel');
  9. }
  10. public function get_labelnws($number,$warehouse,$shop)
  11. {
  12. return $this->find("number = '$number' and warehouse = '$warehouse' and shop = '$shop'");
  13. }
  14. public function get_label($label)
  15. {
  16. return $this->find("label = '$label'");
  17. }
  18. public function get_sku($sku)
  19. {
  20. return $this->find("sku = '$sku'");
  21. }
  22. public function get_enter($enter)
  23. {
  24. return $this->find("enter = '$enter'");
  25. }
  26. public function get_number($number)
  27. {
  28. return $this->find("number = '$number'");
  29. }
  30. public function get_numberout($number,$warehouse)
  31. {
  32. return $this->find("state = '0' and number = '$number' and warehouse = '$warehouse'");
  33. }
  34. public function get_numberret($number,$warehouse,$orderinfo,$waybill)
  35. {
  36. return $this->find("state = 1 and number = '$number' and warehouse = '$warehouse' and orderinfo = '$orderinfo' and waybill = '$waybill'");
  37. }
  38. public function get_title($title)
  39. {
  40. return $this->find("title like '%$title%'");
  41. }
  42. } //end class