예제 #1
1
 /**
  * (non-PHPdoc)
  * @see BaseEntity::__loadDaoMap()
  */
 public function __loadDaoMap()
 {
     DaoMap::begin($this, 'syssettings');
     DaoMap::setStringType('type', 'varchar', 50);
     DaoMap::setStringType('value', 'varchar', 255);
     DaoMap::setStringType('description', 'varchar', 100);
     parent::__loadDaoMap();
     DaoMap::createUniqueIndex('type');
     DaoMap::commit();
 }
예제 #2
1
 /**
  * (non-PHPdoc)
  * @see BaseEntity::__loadDaoMap()
  */
 public function __loadDaoMap()
 {
     DaoMap::begin($this, 'price_match_record');
     DaoMap::setManyToOne('min', 'PriceMatchMin', 'price_match_record_min');
     DaoMap::setManyToOne('company', 'PriceMatchCompany', 'price_match_record_company');
     DaoMap::setStringType('url', 'varchar', 255);
     DaoMap::setIntType('price', 'double', '10,4');
     DaoMap::setStringType('name', 'varchar', 100);
     parent::__loadDaoMap();
     DaoMap::createIndex('price');
     DaoMap::commit();
 }
예제 #3
1
 /**
  * (non-PHPdoc)
  * @see BaseEntity::__loadDaoMap()
  */
 public function __loadDaoMap()
 {
     DaoMap::begin($this, 'preloc');
     DaoMap::setManyToOne('location', 'Location', 'preloc_loc');
     DaoMap::setManyToOne('product', 'Product', 'preloc_pro');
     DaoMap::setManyToOne('type', 'PreferredLocationType', 'preloc_loc_type');
     parent::__loadDaoMap();
     DaoMap::commit();
 }
예제 #4
0
 /**
  * (non-PHPdoc)
  * @see BaseEntity::__loadDaoMap()
  */
 public function __loadDaoMap()
 {
     DaoMap::begin($this, 'shippmentitem');
     DaoMap::setManyToOne('shippment', 'Shippment', 'shitem_Shippment');
     parent::__loadDaoMap();
     DaoMap::commit();
 }
예제 #5
0
 /**
  * (non-PHPdoc)
  * @see BaseEntity::__loadDaoMap()
  */
 public function __loadDaoMap()
 {
     DaoMap::begin($this, 'courierinfo');
     DaoMap::setManyToOne('courier', 'Courier');
     parent::__loadDaoMap();
     DaoMap::commit();
 }
예제 #6
0
 /**
  * (non-PHPdoc)
  * @see BaseEntity::__loadDaoMap()
  */
 public function __loadDaoMap()
 {
     DaoMap::begin($this, 'tstat');
     DaoMap::setStringType('name', 'varchar', 20);
     DaoMap::setStringType('description', 'text');
     parent::__loadDaoMap();
     DaoMap::createUniqueIndex('name');
     DaoMap::commit();
 }
예제 #7
0
 /**
  * (non-PHPdoc)
  * @see BaseEntity::loadDaoMap()
  */
 public function __loadDaoMap()
 {
     DaoMap::begin($this, 'sess');
     DaoMap::setStringType('key', 'varchar', 32);
     DaoMap::setStringType('data', 'longtext');
     parent::__loadDaoMap();
     DaoMap::createUniqueIndex('key');
     DaoMap::commit();
 }
예제 #8
0
 /**
  * (non-PHPdoc)
  * @see BaseEntity::__loadDaoMap()
  */
 public function __loadDaoMap()
 {
     DaoMap::begin($this, 'price_match_min');
     DaoMap::setStringType('sku', 'varchar', 50);
     DaoMap::setManyToOne('record', 'PriceMatchRecord', 'price_match_min_record', true);
     parent::__loadDaoMap();
     DaoMap::createIndex('sku');
     DaoMap::commit();
 }
예제 #9
0
 /**
  * (non-PHPdoc)
  * @see HydraEntity::__loadDaoMap()
  */
 public function __loadDaoMap()
 {
     DaoMap::begin($this, 'po');
     DaoMap::setStringType('purchaseOrderNo', 'varchar', 100);
     DaoMap::setManyToOne('supplier', 'Supplier', 'po_sup');
     DaoMap::setStringType('supplierRefNo', 'varchar', 100);
     DaoMap::setStringType('status', 'varchar', 20);
     DaoMap::setBoolType('isCredit', 'bool', false);
     DaoMap::setManyToOne('fromPO', 'PurchaseOrder', 'po_fromPO', true);
     DaoMap::setStringType('supplierContact', 'varchar', 100);
     DaoMap::setStringType('supplierContactNumber', 'varchar', 100);
     DaoMap::setStringType('shippingCost', 'Double', '10,4');
     DaoMap::setStringType('handlingCost', 'Double', '10,4');
     DaoMap::setDateType('orderDate');
     DaoMap::setDateType('eta');
     DaoMap::setIntType('totalAmount', 'Double', '10,4');
     DaoMap::setIntType('totalPaid', 'Double', '10,4');
     DaoMap::setOneToMany('items', 'PurchaseOrderItem', 'po_item');
     parent::__loadDaoMap();
     DaoMap::createUniqueIndex('purchaseOrderNo');
     DaoMap::createIndex('supplierRefNo');
     DaoMap::createIndex('status');
     DaoMap::createIndex('isCredit');
     DaoMap::createIndex('orderDate');
     DaoMap::createIndex('eta');
     DaoMap::createIndex('totalAmount');
     DaoMap::createIndex('totalPaid');
     DaoMap::createIndex('supplierContact');
     DaoMap::createIndex('supplierContactNumber');
     DaoMap::createIndex('shippingCost');
     DaoMap::createIndex('handlingCost');
     DaoMap::commit();
 }
예제 #10
0
 /**
  * (non-PHPdoc)
  * @see HydraEntity::__loadDaoMap()
  */
 public function __loadDaoMap()
 {
     DaoMap::begin($this, 'po_item');
     DaoMap::setManyToOne('purchaseOrder', 'PurchaseOrder', 'po_item_po');
     DaoMap::setManyToOne('product', 'Product', 'po_item_pro');
     DaoMap::setIntType('qty', 'int', 10, false);
     DaoMap::setIntType('receivedQty', 'int', 10, false);
     DaoMap::setIntType('unitPrice', 'double', '10,4');
     DaoMap::setIntType('totalPrice', 'double', '10,4', false);
     DaoMap::setBoolType('stockCalculated');
     parent::__loadDaoMap();
     DaoMap::createIndex('qty');
     DaoMap::createIndex('receivedQty');
     DaoMap::createIndex('stockCalculated');
     DaoMap::commit();
 }
예제 #11
0
 /**
  * (non-PHPdoc)
  * @see HydraEntity::__loadDaoMap()
  */
 public function __loadDaoMap()
 {
     DaoMap::begin($this, 'ost');
     DaoMap::setStringType('name', 'varchar', 32);
     DaoMap::setStringType('mageStatus', 'varchar', 50);
     parent::__loadDaoMap();
     DaoMap::createUniqueIndex('name');
     DaoMap::createIndex('mageStatus');
     DaoMap::commit();
 }
예제 #12
0
 /**
  * (non-PHPdoc)
  * @see HydraEntity::__loadDaoMap()
  */
 public function __loadDaoMap()
 {
     DaoMap::begin($this, 'cn_item');
     DaoMap::setManyToOne('creditNote', 'CreditNote', 'cn_item_cn');
     DaoMap::setManyToOne('orderItem', 'OrderItem', 'cn_it', true);
     DaoMap::setManyToOne('product', 'Product', 'cn_pro');
     DaoMap::setIntType('qty');
     DaoMap::setIntType('unitPrice', 'double', '10,4');
     DaoMap::setIntType('unitCost', 'double', '10,4');
     DaoMap::setIntType('totalPrice', 'double', '10,4');
     DaoMap::setStringType('itemDescription', 'varchar', '255');
     parent::__loadDaoMap();
     DaoMap::commit();
 }
예제 #13
0
 /**
  * (non-PHPdoc)
  * @see HydraEntity::__loadDaoMap()
  */
 public function __loadDaoMap()
 {
     DaoMap::begin($this, 'man');
     DaoMap::setStringType('name', 'varchar', 100);
     DaoMap::setStringType('description', 'varchar', 255);
     DaoMap::setIntType('mageId');
     DaoMap::setBoolType('isFromB2B');
     parent::__loadDaoMap();
     DaoMap::createUniqueIndex('name');
     DaoMap::createIndex('isFromB2B');
     DaoMap::createIndex('mageId');
     DaoMap::commit();
 }
예제 #14
0
 /**
  * (non-PHPdoc)
  * @see HydraEntity::__loadDaoMap()
  */
 public function __loadDaoMap()
 {
     DaoMap::begin($this, 'py');
     DaoMap::setManyToOne('order', 'Order', 'ord', true);
     DaoMap::setManyToOne('creditNote', 'CreditNote', 'py_cn', true);
     DaoMap::setManyToOne('method', 'PaymentMethod', 'py_method');
     DaoMap::setIntType('value', 'Double', '10,4', false);
     DaoMap::setStringType('type', 'varchar', '10');
     DaoMap::setDateType('paymentDate');
     parent::__loadDaoMap();
     DaoMap::createIndex('type');
     DaoMap::commit();
 }
예제 #15
0
 /**
  * (non-PHPdoc)
  * @see HydraEntity::__loadDaoMap()
  */
 public function __loadDaoMap()
 {
     DaoMap::begin($this, 'pro_att');
     DaoMap::setIntType('attributeSetMageId');
     DaoMap::setStringType('code', 'varchar', 100);
     DaoMap::setStringType('type', 'varchar', 100);
     DaoMap::setBoolType('required');
     DaoMap::setStringType('scope', 'varchar', 100);
     DaoMap::setStringType('description', 'varchar', 255);
     DaoMap::setIntType('mageId');
     DaoMap::setBoolType('isFromB2B');
     parent::__loadDaoMap();
     DaoMap::createUniqueIndex('code');
     DaoMap::createIndex('attributeSetMageId');
     DaoMap::createIndex('isFromB2B');
     DaoMap::createIndex('mageId');
     DaoMap::commit();
 }
예제 #16
0
 /**
  * (non-PHPdoc)
  * @see HydraEntity::__loadDaoMap()
  */
 public function __loadDaoMap()
 {
     DaoMap::begin($this, 'cust');
     DaoMap::setStringType('name', 'varchar', 100);
     DaoMap::setStringType('description', 'varchar', 255);
     DaoMap::setStringType('contactNo', 'varchar', 50);
     DaoMap::setStringType('email', 'varchar', 100);
     DaoMap::setManyToOne('billingAddress', 'Address', 'cust_bill_addr', true);
     DaoMap::setManyToOne('shippingAddress', 'Address', 'cust_ship_addr', true);
     DaoMap::setIntType('mageId');
     DaoMap::setBoolType('isFromB2B');
     parent::__loadDaoMap();
     DaoMap::createIndex('name');
     DaoMap::createIndex('contactNo');
     DaoMap::createIndex('email');
     DaoMap::createIndex('isFromB2B');
     DaoMap::createIndex('mageId');
     DaoMap::commit();
 }
예제 #17
0
파일: RMA.php 프로젝트: larryu/magento-b2b
 /**
  * (non-PHPdoc)
  * @see HydraEntity::__loadDaoMap()
  */
 public function __loadDaoMap()
 {
     DaoMap::begin($this, 'ra');
     DaoMap::setStringType('raNo', 'varchar', 12);
     DaoMap::setStringType('status', 'varchar', 12);
     DaoMap::setManyToOne('order', 'Order', 'ra_order', true);
     DaoMap::setManyToOne('customer', 'Customer', 'ra_customer');
     DaoMap::setIntType('totalValue', 'double', '10,4');
     DaoMap::setStringType('description', 'varchar', '255');
     DaoMap::setOneToMany('items', 'RMAItem', 'ra_item');
     parent::__loadDaoMap();
     DaoMap::createUniqueIndex('raNo');
     DaoMap::createIndex('status');
     DaoMap::createIndex('totalValue');
     DaoMap::commit();
 }
예제 #18
0
 /**
  * (non-PHPdoc)
  * @see BaseEntity::__loadDaoMap()
  */
 public function __loadDaoMap()
 {
     DaoMap::begin($this, 'pro_price_type');
     DaoMap::setStringType('name', 'varchar', 100);
     DaoMap::setStringType('description', 'varchar', 255);
     DaoMap::setBoolType('needTime');
     parent::__loadDaoMap();
     DaoMap::createUniqueIndex('name');
     DaoMap::createIndex('needTime');
     DaoMap::commit();
 }
예제 #19
0
 /**
  * (non-PHPdoc)
  * @see BaseEntity::__loadDaoMap()
  */
 public function __loadDaoMap()
 {
     DaoMap::begin($this, 'kcom');
     DaoMap::setManyToOne('kit', 'Kit', 'kcom_kit');
     DaoMap::setManyToOne('component', 'Product', 'kcom_com');
     DaoMap::setIntType('qty');
     DaoMap::setIntType('unitCost', 'double', '10,4');
     DaoMap::setIntType('unitPrice', 'double', '10,4');
     parent::__loadDaoMap();
     DaoMap::commit();
 }
예제 #20
0
 /**
  * (non-PHPdoc)
  * @see HydraEntity::__loadDaoMap()
  */
 public function __loadDaoMap()
 {
     DaoMap::begin($this, 'pro_cat');
     DaoMap::setManyToOne('category', 'ProductCategory', 'pro_cat_cate');
     DaoMap::setManyToOne('product', 'Product', 'pro_cat_pro');
     parent::__loadDaoMap();
     DaoMap::createIndex('category');
     DaoMap::createIndex('product');
     DaoMap::commit();
 }
예제 #21
0
 /**
  * (non-PHPdoc)
  * @see HydraEntity::__loadDaoMap()
  */
 public function __loadDaoMap()
 {
     DaoMap::begin($this, 'rec_item');
     DaoMap::setManyToOne('purchaseOrder', 'PurchaseOrder', 'rec_item_po');
     DaoMap::setManyToOne('product', 'Product', 'rec_item_pro');
     DaoMap::setIntType('unitPrice', 'double', '10,4');
     DaoMap::setStringType('serialNo', 'varchar', '100');
     DaoMap::setStringType('invoiceNo', 'varchar', '20');
     DaoMap::setIntType('qty', 'int', 10, false);
     parent::__loadDaoMap();
     DaoMap::createIndex('serialNo');
     DaoMap::createIndex('unitPrice');
     DaoMap::createIndex('invoiceNo');
     DaoMap::setIntType('qty');
     DaoMap::commit();
 }
예제 #22
0
 /**
  * (non-PHPdoc)
  * @see BaseEntity::__loadDaoMap()
  */
 public function __loadDaoMap()
 {
     DaoMap::begin($this, 'pro_cate');
     DaoMap::setStringType('name', 'varchar', 100);
     DaoMap::setStringType('description', 'varchar', 255);
     DaoMap::setManyToOne('parent', __CLASS__, 'pro_cate_parent', true);
     DaoMap::setManyToOne('root', __CLASS__, 'pro_cate_root', true);
     DaoMap::setStringType('position', 'varchar', 255);
     DaoMap::setIntType('mageId');
     DaoMap::setManyToOne('productAttributeSet', 'ProductAttributeSet', 'pro_cate_as', true);
     DaoMap::setBoolType('isFromB2B');
     DaoMap::setBoolType('isAnchor');
     DaoMap::setBoolType('includeInMenu');
     DaoMap::setStringType('urlKey', 'varchar', 50);
     parent::__loadDaoMap();
     DaoMap::createUniqueIndex('name');
     DaoMap::createIndex('position');
     DaoMap::createIndex('isFromB2B');
     DaoMap::createIndex('mageId');
     DaoMap::createIndex('isAnchor');
     DaoMap::createIndex('includeInMenu');
     DaoMap::createIndex('urlKey');
     DaoMap::commit();
 }
예제 #23
0
파일: Kit.php 프로젝트: larryu/magento-b2b
 /**
  * (non-PHPdoc)
  * @see BaseEntity::__loadDaoMap()
  */
 public function __loadDaoMap()
 {
     DaoMap::begin($this, 'kit');
     DaoMap::setManyToOne('task', 'Task', 'kit_t', true);
     DaoMap::setManyToOne('product', 'Product', 'kit_pro', true);
     DaoMap::setStringType('barcode');
     DaoMap::setManyToOne('soldToCustomer', 'Customer', 'kt_cust', true);
     DaoMap::setDateType('soldDate');
     DaoMap::setManyToOne('soldOnOrder', 'Order', 'kit_ord', true);
     DaoMap::setManyToOne('shippment', 'Shippment', 'kit_ship', true);
     DaoMap::setIntType('cost', 'Double', '10,4');
     DaoMap::setIntType('price', 'Double', '10,4');
     parent::__loadDaoMap();
     DaoMap::createUniqueIndex('barcode');
     DaoMap::createIndex('soldDate');
     DaoMap::commit();
 }
예제 #24
0
 /**
  * (non-PHPdoc)
  * @see BaseEntity::__loadDaoMap()
  */
 public function __loadDaoMap()
 {
     DaoMap::begin($this, 'pro_info');
     parent::__loadDaoMap();
     DaoMap::commit();
 }
예제 #25
0
 /**
  * (non-PHPdoc)
  * @see HydraEntity::__loadDaoMap()
  */
 public function __loadDaoMap()
 {
     DaoMap::begin($this, 'ra_item');
     DaoMap::setManyToOne('RMA', 'RMA', 'ra_item_ra');
     DaoMap::setManyToOne('orderItem', 'OrderItem', 'ra_item_ord_item', true);
     DaoMap::setManyToOne('product', 'Product', 'ra_pro');
     DaoMap::setIntType('qty');
     DaoMap::setIntType('unitCost', 'double', '10,4');
     DaoMap::setStringType('itemDescription', 'varchar', '255');
     DaoMap::setDateType('receivedDate');
     parent::__loadDaoMap();
     DaoMap::createIndex('qty');
     DaoMap::createIndex('unitCost');
     DaoMap::createIndex('receivedDate');
     DaoMap::commit();
 }
예제 #26
0
 /**
  * (non-PHPdoc)
  * @see BaseEntity::__loadDaoMap()
  */
 public function __loadDaoMap()
 {
     DaoMap::begin($this, 'courier');
     DaoMap::setStringType('name');
     DaoMap::setStringType('connector');
     DaoMap::setStringType('code');
     DaoMap::setOneToMany('shippments', 'Shippment', 'c_shippments');
     parent::__loadDaoMap();
     DaoMap::createIndex('name');
     DaoMap::createIndex('code');
     DaoMap::commit();
 }
예제 #27
0
 /**
  * (non-PHPdoc)
  * @see HydraEntity::__loadDaoMap()
  */
 public function __loadDaoMap()
 {
     DaoMap::begin($this, 'sell_item');
     DaoMap::setIntType('code', 'int', '10');
     DaoMap::setIntType('typeId', 'int', '10');
     DaoMap::setStringType('description', 'varchar', '255');
     parent::__loadDaoMap();
     DaoMap::createIndex('code');
     DaoMap::createIndex('typeId');
     DaoMap::commit();
 }
예제 #28
0
 /**
  * (non-PHPdoc)
  * @see BaseEntity::__loadDaoMap()
  */
 public function __loadDaoMap()
 {
     DaoMap::begin($this, 'pro_price');
     DaoMap::setManyToOne('product', 'Product', 'pro_price_pro');
     DaoMap::setManyToOne('type', 'ProductPriceType', 'pro_price_type');
     DaoMap::setIntType('price', 'double', '10,4');
     DaoMap::setDateType('start', 'datetime', false, trim(UDate::zeroDate()));
     DaoMap::setDateType('end', 'datetime', false, trim(UDate::maxDate()));
     parent::__loadDaoMap();
     DaoMap::createIndex('price');
     DaoMap::createIndex('start');
     DaoMap::createIndex('end');
     DaoMap::commit();
 }
예제 #29
-1
 /**
  * (non-PHPdoc)
  * @see BaseEntity::__loadDaoMap()
  */
 public function __loadDaoMap()
 {
     DaoMap::begin($this, 'ua');
     DaoMap::setStringType('username', 'varchar', 100);
     DaoMap::setStringType('password', 'varchar', 40);
     DaoMap::setManyToOne("person", "Person", "p");
     DaoMap::setManyToMany("roles", "Role", DaoMap::LEFT_SIDE, "r", false);
     parent::__loadDaoMap();
     DaoMap::createUniqueIndex('username');
     DaoMap::createIndex('password');
     DaoMap::commit();
 }
예제 #30
-2
 /**
  * (non-PHPdoc)
  * @see BaseEntity::__loadDaoMap()
  */
 public function __loadDaoMap()
 {
     DaoMap::begin($this, 'oinfo_type');
     parent::__loadDaoMap();
     DaoMap::commit();
 }