Esempio n. 1
0
 public static function getFieldsConfig()
 {
     $obj = array_merge(parent::getFieldsConfig(), array('_seo_title_preview' => array('DataType' => 'Text', 'FieldClass' => 'FlowField', 'Description' => array('vi-VN' => sprintf(Qdmvc_Message::getMsg('fd_seometa_field_title'), 'chi tiết BDS'))), '_seo_description_preview' => array('DataType' => 'Text', 'FieldClass' => 'FlowField', 'Description' => array('vi-VN' => sprintf(Qdmvc_Message::getMsg('fd_seometa_field_description'), 'chi tiết BDS'))), '_product_cat_name' => array('Name' => '_product_cat_name', 'Caption' => array('en-US' => 'Product Cat Name', 'vi-VN' => 'Vị trí BDS'), 'Description' => array(), 'DataType' => 'Text', 'FieldClass' => 'FlowField', 'FieldClass_FlowField' => array('Method' => 'Lookup', 'Table' => 'QdProductCat', 'Field' => 'name', 'TableFilter' => array(0 => array('Field' => 'id', 'Type' => 'FIELD', 'Value' => 'product_cat_id')))), '_price_discount' => array('Name' => '_price_discount', 'DataType' => 'Decimal', 'FieldClass' => 'FlowField', 'Description' => array('vi-VN' => sprintf('Giá sau khi giảm - sửa Field \'discount_percent\' để thay đổi'))), 'product_cat_id' => array('Name' => 'product_cat_id', 'Caption' => array('en-US' => 'Product Cat ID', 'vi-VN' => 'Mã Vị trí BDS'), 'DataType' => 'Code', 'Numeric' => true, 'Description' => array(), 'Editable' => true, 'InitValue' => '0', 'FieldClass' => 'Normal', 'TableRelation' => array('Table' => 'QdProductCat', 'Field' => 'id', 'TableFilter' => array()), 'DataPort' => 'product_cat_port'), 'avatar' => array('Caption' => array('en-US' => 'Avatar', 'vi-VN' => 'Hình đại diện'), 'DataType' => 'Image', 'Description' => array('vi-VN' => 'Hình đại diện hiển thị ở trang tìm kiếm SP hoặc những khu vực tương tự (hình đơn)<br>Muốn chọn nhiều hình cho trang chi tiết SP, dùng chức năng \'Hình ảnh\' để thêm hình'), 'Require' => true), '_avatar_preview' => array('Caption' => array('en-US' => 'Image Preview', 'vi-VN' => 'Xem trước'), 'DataType' => 'ImagePreview', 'FieldClass' => 'System', 'ImagePreviewField' => 'avatar'), 'active' => array('Caption' => array('en-US' => 'Active', 'vi-VN' => 'Kích hoạt'), 'DataType' => 'Boolean', 'InitValue' => true, 'Description' => array('vi-VN' => 'Có hiển thị ra ngoài Web hay không ?'), 'ReadOnly' => true), 'name' => array('Caption' => array('vi-VN' => 'Tên SP'), 'Require' => true), 'price' => array('Caption' => array('vi-VN' => 'Giá')), 'description' => array('Caption' => array('vi-VN' => 'Mô tả'), 'DataType' => 'WYSIWYG', 'Description' => array('vi-VN' => 'Thông tin mô tả phía dưới Hình đại diện, trang chi tiết BDS'), 'Require' => true), 'stock_status' => array('Caption' => array('vi-VN' => 'Tình trạng BDS'), 'DataType' => 'Option', 'Description' => array('vi-VN' => 'Đánh dấu tình trạng kho của SP'), 'Options' => array(static::$STOCK_DF => array('Caption' => array('en-US' => 'Default', 'vi-VN' => 'Mặc định')), static::$STOCK_FINISH => array('Caption' => array('en-US' => 'Finish', 'vi-VN' => 'Đã hoàn tất')), static::$STOCK_NGUNG => array('Caption' => array('en-US' => 'Stop', 'vi-VN' => 'Ngưng giao dịch')))), 'discount_percent' => array('DataType' => 'Decimal', 'Caption' => array('en-US' => 'Manual Discount Amt', 'vi-VN' => '% Giảm giá'), 'Description' => array('vi-VN' => '% giảm giá so với Field \'Giá\', nhập số thập phân vd: 0.56<br>Độ ưu tiên thấp hơn \'Giảm giá\'')), 'struct_lv_1' => array('Caption' => array('en-US' => 'Category', 'vi-VN' => 'Nhóm SP'), 'DataType' => 'Option', 'Options' => array(QdProductCat::$LV1_DF => array('Caption' => array('en-US' => 'Default', 'vi-VN' => 'Mặc định')), QdProductCat::$LV1_BAN => array('Caption' => array('en-US' => 'Selling', 'vi-VN' => 'Bán')), QdProductCat::$LV1_CHOTHUE => array('Caption' => array('en-US' => 'For rent', 'vi-VN' => 'Cho thuê')))), 'price_range_type' => array(), 'noseries' => array(), '_permalink' => array('Name' => '_permalink', 'DataType' => 'Text', 'FieldClass' => 'FlowField'), 'manual_discount_amt' => array('Caption' => array('en-US' => 'Manual Discount Amt', 'vi-VN' => 'Giảm giá'), 'DataType' => 'Integer', 'Description' => array('vi-VN' => 'Giá giảm giá so với \'Giá\', nhập số nguyên vd: 135000<br>Độ ưu tiên cao hơn \'% Giảm giá\'')), 'dtdat' => array('DataType' => 'Decimal', 'Caption' => array('en-US' => 'Dien tich dat', 'vi-VN' => 'Diện tích đất'), 'Description' => array('vi-VN' => '')), 'dtxaydung' => array('DataType' => 'Decimal', 'Caption' => array('en-US' => 'Dien tich xay dung', 'vi-VN' => 'Diện tích xây dựng'), 'Description' => array('vi-VN' => 'Hiển thị trên trang chi tiết BDS')), 'dtsudung' => array('DataType' => 'Decimal', 'Caption' => array('en-US' => 'Dien tich su dung', 'vi-VN' => 'Diện tích sử dụng'), 'Description' => array('vi-VN' => 'Hiển thị trên trang chi tiết BDS')), 'phaply' => array('DataType' => 'WYSIWYG', 'Caption' => array('en-US' => 'Phap ly', 'vi-VN' => 'Pháp lý'), 'Description' => array('vi-VN' => 'Pháp lý')), 'thongtinlh' => array('DataType' => 'WYSIWYG', 'Caption' => array('en-US' => 'Contact Info', 'vi-VN' => 'Thông tin liên hệ'), 'Description' => array('vi-VN' => 'Định nghĩa trong \'Cấu hình khác\'')), 'ggm_embeded' => array('DataType' => 'Text', 'Caption' => array('en-US' => 'Google Map Embeded', 'vi-VN' => 'Mã nhúng Google Map'), 'Description' => array('vi-VN' => 'Mã nhúng Google dạng iFrame'))));
     $obj['id']['Description'] = array('vi-VN' => sprintf('Mã BDS quản lý trong hệ thống, không hiển thị trên Web<br>Muốn hiển thị mã trên Web, dùng Field \'%s\'', $obj['code']['Caption']['vi-VN']));
     $obj['__sys_lines_url']['Caption'] = array('en-US' => 'Related Products', 'vi-VN' => 'BDS liên kết');
     $obj['__sys_lines_url']['TableRelation'] = array('Table' => 'QdPro2Pro', 'Field' => 'id', 'TableFilter' => array(array('Condition' => array('Field' => '', 'Type' => 'CONST', 'Value' => ''), 'Field' => 'product_id', 'Type' => 'FIELD', 'Value' => 'id')));
     $obj['__sys_seometa_url'] = array('FieldClass' => 'System', 'Caption' => array('en-US' => 'SEO Meta', 'vi-VN' => 'SEO Meta'), 'TableRelation' => array('Table' => 'QdSEOMeta', 'Field' => 'id', 'TableFilter' => array(array('Condition' => array('Field' => '', 'Type' => 'CONST', 'Value' => ''), 'Field' => 'model_id', 'Type' => 'FIELD', 'Value' => 'id'), array('Condition' => array('Field' => '', 'Type' => 'CONST', 'Value' => ''), 'Field' => 'model', 'Type' => 'CONST', 'Value' => 'QdProduct'))));
     $obj['id']['ReadOnly'] = false;
     /*
             $obj['__sys_lines_url'] = array(
                 'FieldClass' => 'System',
                 'Caption' => array('en-US' => 'UOM', 'vi-VN' => 'Đơn vị tính'),
                 'TableRelation' => array(
                     'Table' => 'QdProUOM',
                     'Field' => 'id',
                     'TableFilter' => array(
                         array(
                             'Condition' => array(
                                 'Field' => '',
                                 'Type' => 'CONST',//'FIELD'
                                 'Value' => ''
                             ),
                             'Field' => 'product_id',
                             'Type' => 'FIELD',
                             'Value' => 'id'
                         )
                     )
                 )
             );*/
     $obj['__sys_lines_url']['TableRelation'] = array('Table' => 'QdPro2Pro', 'Field' => 'id', 'TableFilter' => array(array('Field' => 'product_id', 'Type' => 'FIELD', 'Value' => 'id')));
     return $obj;
 }
 public static function getFieldsConfig()
 {
     $obj = array_merge(parent::getFieldsConfig(), array('name' => array('Caption' => array('vi-VN' => 'Tên Vị trí')), 'avatar' => array('Caption' => array('en-US' => 'Avatar', 'vi-VN' => 'Hình đại diện'), 'DataType' => 'Image', 'Description' => 'Hình đại diện'), 'active' => array('DataType' => 'Boolean'), 'type' => array('Caption' => array('vi-VN' => 'Phân loại')), 'order' => array('Caption' => array('vi-VN' => 'Thứ tự')), 'slug_id' => array('Caption' => array('vi-VN' => 'Slug ID'), 'Description' => 'URL SEO khi tìm kiếm theo khu vực.<br>Vd: http://domain/nha-ban/quan-binh-thanh.html'), 'level' => array('DataType' => 'Integer', 'ReadOnly' => true), '_parent_name' => array('Name' => '_parent_name', 'Caption' => array('en-US' => 'Parent Name', 'vi-VN' => 'Tên cha'), 'DataType' => 'Text', 'FieldClass' => 'FlowField', 'FieldClass_FlowField' => array('Method' => 'Lookup', 'Table' => 'QdProductCat', 'Field' => 'name', 'TableFilter' => array(0 => array('Field' => 'id', 'Type' => 'FIELD', 'Value' => 'parent_id')))), '_product_count' => array('Caption' => array('en-US' => 'SL BDS', 'vi-VN' => 'SL BDS'), 'DataType' => 'Integer', 'FieldClass' => 'FlowField', 'FieldClass_FlowField' => array('Method' => 'Count', 'Table' => 'QdProduct', 'Field' => 'id', 'TableFilter' => array('product_cat_id' => array('Field' => 'product_cat_id', 'Type' => 'FIELD', 'Value' => 'id')))), 'parent_id' => array('Name' => 'parent_id', 'Caption' => array('en-US' => 'Parent ID', 'vi-VN' => 'Mã LSP cha'), 'DataType' => 'Code', 'Description' => '', 'Editable' => true, 'FieldClass' => 'Normal', 'TableRelation' => array('Table' => 'QdProductCat', 'Field' => 'id', 'TableFilter' => array())), '_permalink' => array('Name' => '_permalink', 'DataType' => 'Text', 'FieldClass' => 'FlowField'), 'longitude' => array('Caption' => array('en-US' => 'Longitude', 'vi-VN' => 'Kinh độ'), 'DataType' => 'Decimal', 'Description' => 'Dùng để hiển thị trên Google Map', 'FieldClass' => 'Normal'), 'latitude' => array('Caption' => array('en-US' => 'Latitude', 'vi-VN' => 'Vĩ độ'), 'DataType' => 'Decimal', 'Description' => 'Dùng để hiển thị trên Google Map', 'FieldClass' => 'Normal')));
     $obj['__sys_lines_url']['TableRelation'] = array('Table' => 'QdProduct', 'Field' => 'id', 'TableFilter' => array(array('Condition' => array('Field' => '', 'Type' => 'CONST', 'Value' => ''), 'Field' => 'product_cat_id', 'Type' => 'FIELD', 'Value' => 'id')));
     $obj['id']['ReadOnly'] = false;
     return $obj;
 }
Esempio n. 3
0
 public static function getFieldsConfig()
 {
     $obj = array_merge(parent::getFieldsConfig(), array('code' => array(), 'name' => array(), 'description' => array('DataType' => 'WYSIWYG'), 'type' => array('Caption' => array('en-US' => 'Type', 'vi-VN' => 'Phân loại'), 'DataType' => 'Option', 'Options' => array(QdManufactor::$TYPE2_MANUFACTOR_THOITRANG => array('Caption' => array('en-US' => 'Clothes', 'vi-VN' => 'Quần áo')))), '_permalink' => array('Name' => '_permalink', 'DataType' => 'Text', 'FieldClass' => 'FlowField')));
     $obj['__sys_lines_url']['TableRelation'] = array('Table' => 'QdProduct', 'Field' => 'id', 'TableFilter' => array(array('Condition' => array('Field' => '', 'Type' => 'CONST', 'Value' => ''), 'Field' => 'size_id', 'Type' => 'FIELD', 'Value' => 'id')));
     $obj['__sys_lines_url']['Caption'] = array('vi-VN' => 'Sản phẩm', 'en-US' => 'Products');
     return $obj;
 }
 public static function getFieldsConfig()
 {
     return array_merge(parent::getFieldsConfig(), array('description' => array('DataType' => 'WYSIWYG'), 'compatible' => array('DataType' => 'Boolean'), 'object_type' => array('Caption' => array('en-US' => 'Object Type', 'vi-VN' => 'Object Type'), 'DataType' => 'Option', 'Options' => array(static::$OBJECT_TYPE_MODEL => array('Caption' => array('en-US' => 'Model', 'vi-VN' => 'Model')), static::$OBJECT_TYPE_PAGE => array('Caption' => array('en-US' => 'Page', 'vi-VN' => 'Page')), static::$OBJECT_TYPE_DATAPORT => array('Caption' => array('en-US' => 'Dataport', 'vi-VN' => 'Dataport')), static::$OBJECT_TYPE_LAYOUT => array('Caption' => array('en-US' => 'Layout', 'vi-VN' => 'Layout')), static::$OBJECT_TYPE_MENU => array('Caption' => array('en-US' => 'menu', 'vi-VN' => 'Menu')), static::$OBJECT_TYPE_TABLE => array('Caption' => array('en-US' => 'Table', 'vi-VN' => 'Table')), static::$OBJECT_TYPE_COLUMN => array('Caption' => array('en-US' => 'Column', 'vi-VN' => 'Column')), static::$OBJECT_TYPE_OTHER => array('Caption' => array('en-US' => 'Other', 'vi-VN' => 'Other')))), 'object_name' => array(), 'version' => array(), 'layer' => array('Caption' => array('en-US' => 'Layer', 'vi-VN' => 'Layer'), 'DataType' => 'Option', 'Options' => array(static::$LAYER_FW => array('Caption' => array('en-US' => 'Framework', 'vi-VN' => 'Framework')), static::$LAYER_APP => array('Caption' => array('en-US' => 'App', 'vi-VN' => 'App')), static::$LAYER_THEME => array('Caption' => array('en-US' => 'Theme', 'vi-VN' => 'Theme')), static::$LAYER_DB => array('Caption' => array('en-US' => 'Database', 'vi-VN' => 'Database')), static::$LAYER_OTHER => array('Caption' => array('en-US' => 'Other', 'vi-VN' => 'Other')))), 'action' => array('Caption' => array('en-US' => 'Action', 'vi-VN' => 'Action'), 'DataType' => 'Option', 'Options' => array(static::$ACTION_CREATE => array('Caption' => array('en-US' => 'Create', 'vi-VN' => 'Create')), static::$ACTION_MODIFY => array('Caption' => array('en-US' => 'Modify', 'vi-VN' => 'Modify')), static::$ACTION_REMOVE => array('Caption' => array('en-US' => 'Remove', 'vi-VN' => 'Remove')), static::$ACTION_OTHER => array('Caption' => array('en-US' => 'Other', 'vi-VN' => 'Other'))))));
 }
Esempio n. 5
0
 public static function getFieldsConfig()
 {
     return array_merge(parent::getFieldsConfig(), array('_product_name' => array('Name' => '_product_name', 'Caption' => array('en-US' => 'Product Name', 'vi-VN' => 'Tên SP'), 'DataType' => 'Text', 'FieldClass' => 'FlowField', 'FieldClass_FlowField' => array('Method' => 'Lookup', 'Table' => 'QdProduct', 'Field' => 'name', 'TableFilter' => array(0 => array('Field' => 'id', 'Type' => 'FIELD', 'Value' => 'product_id')))), 'product_id' => array('Name' => 'product_id', 'Caption' => array('en-US' => 'Product ID', 'vi-VN' => 'Mã SP'), 'DataType' => 'Code', 'Numeric' => true, 'Description' => '', 'Editable' => true, 'InitValue' => '0', 'FieldClass' => 'Normal', 'ReadOnly' => true), 'order' => array(), '_r_product_name' => array('Name' => '_r_product_name', 'Caption' => array('en-US' => 'Child Product Name', 'vi-VN' => 'Tên SP liên kết'), 'DataType' => 'Text', 'FieldClass' => 'FlowField', 'FieldClass_FlowField' => array('Method' => 'Lookup', 'Table' => 'QdProduct', 'Field' => 'name', 'TableFilter' => array(array('Field' => 'id', 'Type' => 'FIELD', 'Value' => 'r_product_id')))), 'r_product_type' => array(), 'r_product_id' => array('Name' => 'r_product_id', 'Caption' => array('en-US' => 'Child Product', 'vi-VN' => 'Mã SP liên kết'), 'DataType' => 'Code', 'Numeric' => true, 'Description' => '', 'Editable' => true, 'InitValue' => '0', 'FieldClass' => 'Normal', 'TableRelation' => array('Table' => 'QdProduct', 'Field' => 'id', 'TableFilter' => array()), 'DataPort' => 'product_port')));
 }
Esempio n. 6
0
 public static function getFieldsConfig()
 {
     $obj = array_merge(parent::getFieldsConfig(), array('username' => array('ReadOnly' => true), 'displayname' => array('ReadOnly' => true), 'status' => array('DataType' => 'Boolean', 'ReadOnly' => true)));
     $obj['id']['ReadOnly'] = true;
     return $obj;
 }
 public static function getFieldsConfig()
 {
     return array_merge(parent::getFieldsConfig(), array('noseries' => array('DataType' => 'Code', 'FieldClass' => 'Normal', 'TableRelation' => array('Table' => 'QdNoSeries', 'Field' => 'id', 'TableFilter' => array()), 'DataPort' => 'noseries_port'), 'model' => array('DataType' => 'Code', 'FieldClass' => 'Normal', 'TableRelation' => array('Table' => 'QdQdmvcModel', 'Field' => 'id', 'TableFilter' => array()), 'DataPort' => 'qdmvcmodel_port'), 'active' => array('DataType' => 'Boolean')));
 }
 public static function getFieldsConfig()
 {
     return array_merge(parent::getFieldsConfig(), array('name' => array(), 'type' => array('Caption' => array('en-US' => 'Type', 'vi-VN' => 'Phân loại'), 'DataType' => 'Option', 'Options' => array(static::$TYPE_THANHPHO => array('Caption' => array('en-US' => static::$TYPE_THANHPHO, 'vi-VN' => static::$TYPE_THANHPHO)), static::$TYPE_TINH => array('Caption' => array('en-US' => static::$TYPE_TINH, 'vi-VN' => static::$TYPE_TINH))))));
 }
 public static function getFieldsConfig()
 {
     return array_merge(parent::getFieldsConfig(), array('name' => array(), 'type' => array('Caption' => array('en-US' => 'Type', 'vi-VN' => 'Phân loại'), 'DataType' => 'Option', 'Options' => array(QdVnProvince::$TYPE_THANHPHO => array('Caption' => array('en-US' => 'Thành Phố', 'vi-VN' => 'Thành Phố')), QdVnProvince::$TYPE_QUAN => array('Caption' => array('en-US' => 'Quận', 'vi-VN' => 'Quận')), QdVnProvince::$TYPE_HUYEN => array('Caption' => array('en-US' => 'Huyện', 'vi-VN' => 'Huyện')), QdVnProvince::$TYPE_THIXA => array('Caption' => array('en-US' => 'Thị Xã', 'vi-VN' => 'Thị Xã')))), 'location' => array(), 'provinceid' => array(), '_provincename' => array('Name' => '_provincename', 'Caption' => array('en-US' => 'Province Name', 'vi-VN' => 'Tên Tỉnh/TP'), 'DataType' => 'Text', 'FieldClass' => 'FlowField', 'FieldClass_FlowField' => array('Method' => 'Lookup', 'Table' => 'QdVnProvince', 'Field' => 'name', 'TableFilter' => array(0 => array('Field' => 'id', 'Type' => 'FIELD', 'Value' => 'provinceid'))))));
 }
Esempio n. 10
0
 public static function getFieldsConfig()
 {
     $obj = array_merge(parent::getFieldsConfig(), array('title' => array('Caption' => array('en-US' => 'Title', 'vi-VN' => 'Tiêu đề')), 'description' => array('Caption' => array('en-US' => 'Description', 'vi-VN' => 'Mô tả')), 'avatar' => array('Caption' => array('en-US' => 'Avatar', 'vi-VN' => 'Hình đại diện'), 'DataType' => 'Image', 'Description' => 'Hình đại diện'), 'order' => array('Caption' => array('vi-VN' => 'Thứ tự')), 'active' => array('DataType' => 'Boolean'), 'parent_id' => array('Name' => 'parent_id', 'Caption' => array('en-US' => 'Parent ID', 'vi-VN' => 'Mã loại cha'), 'DataType' => 'Code', 'Numeric' => true, 'Description' => '', 'Editable' => true, 'InitValue' => '0', 'FieldClass' => 'Normal', 'TableRelation' => array('Table' => 'QdPostCat', 'Field' => 'id', 'TableFilter' => array(array('Condition' => array('Field' => '', 'Type' => 'CONST', 'Value' => ''), 'Field' => 'type', 'Type' => 'FIELD', 'Value' => static::$TYPE_POSTCAT)))), 'type' => array('Caption' => array('en-US' => 'Type', 'vi-VN' => 'Phân loại'), 'DataType' => 'Option', 'Options' => array(static::$TYPE_POSTCAT => array('Caption' => array('en-US' => 'Post Cat', 'vi-VN' => 'Post Cat'))))));
     $obj['__sys_lines_url']['TableRelation'] = array('Table' => 'QdPost', 'Field' => 'id', 'TableFilter' => array(array('Condition' => array('Field' => '', 'Type' => 'CONST', 'Value' => ''), 'Field' => 'post_cat_id', 'Type' => 'FIELD', 'Value' => 'id')));
     return $obj;
 }
Esempio n. 11
0
 public static function getFieldsConfig()
 {
     $obj = array_merge(parent::getFieldsConfig(), array('usergroupid' => array('DataType' => 'Code', 'FieldClass' => 'Normal', 'TableRelation' => array('Table' => 'QdUserGroup', 'Field' => 'id', 'TableFilter' => array())), 'userid' => array('DataType' => 'Code', 'FieldClass' => 'Normal', 'TableRelation' => array('Table' => 'QdUser', 'Field' => 'id', 'TableFilter' => array()))));
     return $obj;
 }
 public static function getFieldsConfig()
 {
     return array_merge(parent::getFieldsConfig(), array('username' => array('ReadOnly' => true), 'userid' => array('DataType' => 'Code', 'FieldClass' => 'Normal', 'TableRelation' => array('Table' => 'QdUser', 'Field' => 'id', 'TableFilter' => array())), 'active' => array('DataType' => 'Boolean'), 'language' => array('DataType' => 'Option', 'Options' => array(Qdmvc_Config::$LANG_viVN => array('Caption' => array('en-US' => 'Vietnamese', 'vi-VN' => 'Tiếng Việt')), Qdmvc_Config::$LANG_enUS => array('Caption' => array('en-US' => 'English', 'vi-VN' => 'Tiếng Anh'))))));
 }
Esempio n. 13
0
 public static function getFieldsConfig()
 {
     $obj = array_merge(parent::getFieldsConfig(), array('content' => array('DataType' => 'WYSIWYG'), 'type' => array('Caption' => array('en-US' => 'Type', 'vi-VN' => 'Type'), 'DataType' => 'Option', 'Options' => array(static::$TYPE_ => array('Caption' => array('en-US' => 'Default', 'vi-VN' => 'Mặc định')), static::$TYPE_BDS => array('Caption' => array('en-US' => 'Real Estate', 'vi-VN' => 'Bất động sản')))), 'description' => array('DataType' => 'Text')));
     $obj['id']['ReadOnly'] = false;
     return $obj;
 }
Esempio n. 14
0
 public static function getFieldsConfig()
 {
     $obj = array_merge(parent::getFieldsConfig(), array('from_no' => array('DataType' => 'Integer'), 'to_no' => array('DataType' => 'Integer'), 'last_no' => array('DataType' => 'Integer'), 'prefix' => array('DataType' => 'Integer'), 'active' => array('Caption' => array('en-US' => 'Active', 'vi-VN' => 'Kích hoạt'), 'DataType' => 'Boolean', 'InitValue' => true), 'manual_allowed' => array('DataType' => 'Boolean'), 'fixed_length' => array('DataType' => 'Boolean')));
     $obj['id']['ReadOnly'] = false;
     return $obj;
 }
Esempio n. 15
0
 public static function getFieldsConfig()
 {
     return array_merge(parent::getFieldsConfig(), array('content' => array(), 'model' => array('ReadOnly' => true), 'model_id' => array('ReadOnly' => true)));
 }
Esempio n. 16
0
 public static function getFieldsConfig()
 {
     $obj = array_merge(parent::getFieldsConfig(), array('description' => array(), 'active' => array('DataType' => 'Boolean'), 'parent_id' => array('DataType' => 'Code', 'FieldClass' => 'Normal', 'TableRelation' => array('Table' => 'QdUserGroup', 'Field' => 'id', 'TableFilter' => array()))));
     $obj['id']['ReadOnly'] = false;
     return $obj;
 }
Esempio n. 17
0
 public static function getFieldsConfig()
 {
     return array_merge(parent::getFieldsConfig(), array('name' => array(), 'type' => array('Caption' => array('en-US' => 'Type', 'vi-VN' => 'Phân loại'), 'DataType' => 'Option', 'Options' => array(QdVnProvince::$TYPE_PHUONG => array('Caption' => array('en-US' => QdVnProvince::$TYPE_PHUONG, 'vi-VN' => QdVnProvince::$TYPE_PHUONG)), QdVnProvince::$TYPE_THITRAN => array('Caption' => array('en-US' => QdVnProvince::$TYPE_THITRAN, 'vi-VN' => QdVnProvince::$TYPE_THITRAN)), QdVnProvince::$TYPE_XA => array('Caption' => array('en-US' => QdVnProvince::$TYPE_XA, 'vi-VN' => QdVnProvince::$TYPE_XA)))), 'location' => array(), 'districtid' => array(), '_districtname' => array('Name' => '_districtname', 'Caption' => array('en-US' => 'District Name', 'vi-VN' => 'Tên Quận/Huyện'), 'DataType' => 'Text', 'FieldClass' => 'FlowField', 'FieldClass_FlowField' => array('Method' => 'Lookup', 'Table' => 'QdVnDistrict', 'Field' => 'name', 'TableFilter' => array(0 => array('Field' => 'id', 'Type' => 'FIELD', 'Value' => 'districtid')))), '_provinceid' => array('Name' => '_provinceid', 'Caption' => array('en-US' => 'Mã Tỉnh', 'vi-VN' => 'Mã Tỉnh/Thành phố'), 'DataType' => 'Text', 'FieldClass' => 'FlowField', 'FieldClass_FlowField' => array('Method' => 'Lookup', 'Table' => 'QdVnDistrict', 'Field' => 'provinceid', 'TableFilter' => array(0 => array('Field' => 'id', 'Type' => 'FIELD', 'Value' => 'districtid')))), '_provincename' => array('Name' => '_provincename', 'Caption' => array('en-US' => 'Tên Tỉnh', 'vi-VN' => 'Tên Tỉnh/Thành phố'), 'DataType' => 'Text', 'FieldClass' => 'FlowField', 'FieldClass_FlowField' => array('Method' => 'Lookup', 'Table' => 'QdVnProvince', 'Field' => 'name', 'TableFilter' => array(0 => array('Field' => 'id', 'Type' => 'FIELD', 'Value' => '_provinceid'))))));
 }
Esempio n. 18
0
 public static function getFieldsConfig()
 {
     return array_merge(parent::getFieldsConfig(), array());
 }
Esempio n. 19
0
 public static function getFieldsConfig()
 {
     return array_merge(parent::getFieldsConfig(), array('count' => array('DataType' => 'Integer'), 'wpid' => array()));
 }
Esempio n. 20
0
 public static function getFieldsConfig()
 {
     return array_merge(parent::getFieldsConfig(), array('order' => array(), 'content' => array('Caption' => array('en-US' => 'Content', 'vi-VN' => 'Nội dung'), 'DataType' => 'WYSIWYG'), 'short_content' => array('Caption' => array('en-US' => 'Short content', 'vi-VN' => 'Tóm tắt'), 'DataType' => 'WYSIWYG'), 'avatar' => array('Caption' => array('en-US' => 'Avatar', 'vi-VN' => 'Hình đại diện'), 'DataType' => 'Image'), 'title' => array('Caption' => array('en-US' => 'Title', 'vi-VN' => 'Tiêu đề')), 'type' => array('Caption' => array('en-US' => 'Type', 'vi-VN' => 'Phân loại'), 'DataType' => 'Option', 'Options' => array(static::$TYPE_POST => array('Caption' => array('en-US' => 'Post', 'vi-VN' => 'Post')))), '_post_cat_name' => array('Name' => '_post_cat_name', 'Caption' => array('en-US' => 'Post Cat Name', 'vi-VN' => 'Tên Loại'), 'DataType' => 'Text', 'FieldClass' => 'FlowField', 'FieldClass_FlowField' => array('Method' => 'Lookup', 'Table' => 'QdPostCat', 'Field' => 'title', 'TableFilter' => array(0 => array('Field' => 'id', 'Type' => 'FIELD', 'Value' => 'post_cat_id')))), 'post_cat_id' => array('Name' => 'post_cat_id', 'Caption' => array('en-US' => 'Cat ID', 'vi-VN' => 'Mã loại'), 'DataType' => 'Code', 'Numeric' => true, 'Description' => '', 'Editable' => true, 'InitValue' => '0', 'FieldClass' => 'Normal', 'TableRelation' => array('Table' => 'QdPostCat', 'Field' => 'id', 'TableFilter' => array(array('Condition' => array('Field' => '', 'Type' => 'CONST', 'Value' => ''), 'Field' => 'type', 'Type' => 'FIELD', 'Value' => QdPostCat::$TYPE_POSTCAT)))), '_permalink' => array('Name' => '_permalink', 'DataType' => 'Text', 'FieldClass' => 'FlowField')));
 }
Esempio n. 21
0
 public static function getFieldsConfig()
 {
     $obj = array_merge(parent::getFieldsConfig(), array('usergroupid' => array('DataType' => 'Code', 'FieldClass' => 'Normal', 'TableRelation' => array('Table' => 'QdUserGroup', 'Field' => 'id', 'TableFilter' => array())), 'classname' => array(), 'methodname' => array(), 'pagename' => array('DataType' => 'Code', 'FieldClass' => 'Normal', 'TableRelation' => array('Table' => 'QdQdmvcPage', 'Field' => 'id', 'TableFilter' => array()), 'DataPort' => 'qdmvcpage_port'), 'active' => array('DataType' => 'Boolean')));
     return $obj;
 }