CatAlmacen
Inheritance | class CatAlmacen » CActiveRecord » CModel » CComponent |
---|---|
Implements | IteratorAggregate, Traversable, ArrayAccess |
Source Code | app/modules/Configuracion/modules/Configuracion/models/CatAlmacen.php |
This is the model class for table "almacenes".
The followings are the available columns in table 'almacenes':
The followings are the available columns in table 'almacenes':
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
ID_CCOSTO | string | CatAlmacen | |
activo | string | CatAlmacen | |
actualizaPrecios | string | CatAlmacen | |
almacen | string | CatAlmacen | |
almacenCargo | string | CatAlmacen | |
almacenConsumo | string | CatAlmacen | |
almacenExistencias | string | CatAlmacen | |
almacenPadre | string | CatAlmacen | |
altaEspecial | string | CatAlmacen | |
altaPaciente | string | CatAlmacen | |
attributes | array | Returns all column attribute values. | CActiveRecord |
beneficencia | string | CatAlmacen | |
cambiarDescripcion | string | CatAlmacen | |
cargosDirectos | string | CatAlmacen | |
centroDistribucion | string | CatAlmacen | |
cierreCuenta | string | CatAlmacen | |
commandBuilder | CDbCommandBuilder | Returns the command builder used by this AR. | CActiveRecord |
compras | string | CatAlmacen | |
contieneEmpleados | string | CatAlmacen | |
contieneReferidos | string | CatAlmacen | |
credenciales | string | CatAlmacen | |
ctaContable | string | CatAlmacen | |
db | CDbConnection | the default database connection for all active record classes. | CActiveRecord |
dbConnection | CDbConnection | Returns the database connection used by active record. | CActiveRecord |
dbCriteria | CDbCriteria | Returns the query criteria associated with this model. | CActiveRecord |
descripcion | string | CatAlmacen | |
entidad | string | CatAlmacen | |
errors | array | Returns the errors for all attribute or a single attribute. | CModel |
especialidad | string | CatAlmacen | |
farmacia | string | CatAlmacen | |
fecha1 | string | CatAlmacen | |
gpoProducto | string | CatAlmacen | |
horaPE | integer | CatAlmacen | |
id_medico | string | CatAlmacen | |
imprimeTicket | string | CatAlmacen | |
isNewRecord | boolean | Returns if the current record is new. | CActiveRecord |
iterator | CMapIterator | Returns an iterator for traversing the attributes in the model. | CModel |
keyAlmacenes | integer | CatAlmacen | |
listaexpedientes | string | CatAlmacen | |
llenadoEspecial | string | CatAlmacen | |
manejaexpedientes | string | CatAlmacen | |
maquila | string | CatAlmacen | |
medicamentosSueltos | string | CatAlmacen | |
medico | string | CatAlmacen | |
metaData | CActiveRecordMetaData | Returns the meta-data for this AR | CActiveRecord |
miniAlmacen | string | CatAlmacen | |
modificarPrecios | string | CatAlmacen | |
modulo | string | CatAlmacen | |
numConsultorio | string | CatAlmacen | |
oldPrimaryKey | mixed | Returns the old primary key value. | CActiveRecord |
permiteDevoluciones | string | CatAlmacen | |
porcenajePE | string | CatAlmacen | |
porcentajePE | string | CatAlmacen | |
precioEspecial | string | CatAlmacen | |
primaryKey | mixed | Returns the primary key value. | CActiveRecord |
puntoVenta | string | CatAlmacen | |
registroUrgencias | string | CatAlmacen | |
reporteSurtir | string | CatAlmacen | |
safeAttributeNames | array | Returns the attribute names that are safe to be massively assigned. | CModel |
scenario | string | Returns the scenario that this model is used in. | CModel |
statusCitas | string | CatAlmacen | |
statusExistencias | string | CatAlmacen | |
stock | string | CatAlmacen | |
tableAlias | string | Returns the table alias to be used by the find methods. | CActiveRecord |
tableSchema | CDbTableSchema | Returns the metadata of the table that this AR belongs to | CActiveRecord |
tieneCuartos | string | CatAlmacen | |
tipoBeneficencia | string | CatAlmacen | |
transacciones | string | CatAlmacen | |
usuario | string | CatAlmacen | |
validatorList | CList | Returns all the validators declared in the model. | CModel |
validators | array | Returns the validators applicable to the current scenario. | CModel |
ventaBotiquinExternos | string | CatAlmacen | |
ventas | string | CatAlmacen | |
ventasDirectas | string | CatAlmacen |
Public Methods
Method | Description | Defined By |
---|---|---|
__call() | Calls the named method which is not a class method. | CActiveRecord |
__construct() | Constructor. | CActiveRecord |
__get() | PHP getter magic method. | CActiveRecord |
__isset() | Checks if a property value is null. | CActiveRecord |
__set() | PHP setter magic method. | CActiveRecord |
__sleep() | PHP sleep magic method. | CActiveRecord |
__unset() | Sets a component property to be null. | CActiveRecord |
addError() | Adds a new error to the specified attribute. | CModel |
addErrors() | Adds a list of errors. | CModel |
addRelatedRecord() | Do not call this method. This method is used internally by CActiveFinder to populate | CActiveRecord |
afterFindInternal() | Calls afterFind. | CActiveRecord |
applyScopes() | Applies the query scopes to the given criteria. | CActiveRecord |
asa() | Returns the named behavior object. | CComponent |
attachBehavior() | Attaches a behavior to this component. | CComponent |
attachBehaviors() | Attaches a list of behaviors to the component. | CComponent |
attachEventHandler() | Attaches an event handler to an event. | CComponent |
attributeLabels() | CatAlmacen | |
attributeNames() | Returns the list of all attribute names of the model. | CActiveRecord |
beforeFindInternal() | Calls beforeFind. | CActiveRecord |
behaviors() | Returns a list of behaviors that this model should behave as. | CModel |
cache() | Sets the parameters about query caching. | CActiveRecord |
canGetProperty() | Determines whether a property can be read. | CComponent |
canSetProperty() | Determines whether a property can be set. | CComponent |
clearErrors() | Removes errors for all attributes or a single attribute. | CModel |
count() | Finds the number of rows satisfying the specified query condition. | CActiveRecord |
countByAttributes() | Finds the number of rows that have the specified attribute values. | CActiveRecord |
countBySql() | Finds the number of rows using the given SQL statement. | CActiveRecord |
createValidators() | Creates validator objects based on the specification in rules. | CModel |
defaultScope() | Returns the default named scope that should be implicitly applied to all queries for this model. | CActiveRecord |
delete() | Deletes the row corresponding to this active record. | CActiveRecord |
deleteAll() | Deletes rows with the specified condition. | CActiveRecord |
deleteAllByAttributes() | Deletes rows which match the specified attribute values. | CActiveRecord |
deleteByPk() | Deletes rows with the specified primary key. | CActiveRecord |
detachBehavior() | Detaches a behavior from the component. | CComponent |
detachBehaviors() | Detaches all behaviors from the component. | CComponent |
detachEventHandler() | Detaches an existing event handler. | CComponent |
disableBehavior() | Disables an attached behavior. | CComponent |
disableBehaviors() | Disables all behaviors attached to this component. | CComponent |
enableBehavior() | Enables an attached behavior. | CComponent |
enableBehaviors() | Enables all behaviors attached to this component. | CComponent |
equals() | Compares current active record with another one. | CActiveRecord |
evaluateExpression() | Evaluates a PHP expression or callback under the context of this component. | CComponent |
exists() | Checks whether there is row satisfying the specified condition. | CActiveRecord |
find() | Finds a single active record with the specified condition. | CActiveRecord |
findAll() | Finds all active records satisfying the specified condition. | CActiveRecord |
findAllByAttributes() | Finds all active records that have the specified attribute values. | CActiveRecord |
findAllByPk() | Finds all active records with the specified primary keys. | CActiveRecord |
findAllBySql() | Finds all active records using the specified SQL statement. | CActiveRecord |
findByAttributes() | Finds a single active record that has the specified attribute values. | CActiveRecord |
findByPk() | Finds a single active record with the specified primary key. | CActiveRecord |
findBySql() | Finds a single active record with the specified SQL statement. | CActiveRecord |
generateAttributeLabel() | Generates a user friendly attribute label. | CModel |
getActiveRelation() | Returns the named relation declared for this AR class. | CActiveRecord |
getAttribute() | Returns the named attribute value. | CActiveRecord |
getAttributeLabel() | Returns the text label for the specified attribute. | CActiveRecord |
getAttributes() | Returns all column attribute values. | CActiveRecord |
getCommandBuilder() | Returns the command builder used by this AR. | CActiveRecord |
getDbConnection() | Returns the database connection used by active record. | CActiveRecord |
getDbCriteria() | Returns the query criteria associated with this model. | CActiveRecord |
getError() | Returns the first error of the specified attribute. | CModel |
getErrors() | Returns the errors for all attribute or a single attribute. | CModel |
getEventHandlers() | Returns the list of attached event handlers for an event. | CComponent |
getIsNewRecord() | Returns if the current record is new. | CActiveRecord |
getIterator() | Returns an iterator for traversing the attributes in the model. | CModel |
getMetaData() | Returns the meta-data for this AR | CActiveRecord |
getOldPrimaryKey() | Returns the old primary key value. | CActiveRecord |
getPrimaryKey() | Returns the primary key value. | CActiveRecord |
getRelated() | Returns the related record(s). | CActiveRecord |
getSafeAttributeNames() | Returns the attribute names that are safe to be massively assigned. | CModel |
getScenario() | Returns the scenario that this model is used in. | CModel |
getTableAlias() | Returns the table alias to be used by the find methods. | CActiveRecord |
getTableSchema() | Returns the metadata of the table that this AR belongs to | CActiveRecord |
getValidatorList() | Returns all the validators declared in the model. | CModel |
getValidators() | Returns the validators applicable to the current scenario. | CModel |
hasAttribute() | Checks whether this AR has the named attribute | CActiveRecord |
hasErrors() | Returns a value indicating whether there is any validation error. | CModel |
hasEvent() | Determines whether an event is defined. | CComponent |
hasEventHandler() | Checks whether the named event has attached handlers. | CComponent |
hasProperty() | Determines whether a property is defined. | CComponent |
hasRelated() | Returns a value indicating whether the named related object(s) has been loaded. | CActiveRecord |
init() | Initializes this model. | CActiveRecord |
insert() | Inserts a row into the table based on this active record attributes. | CActiveRecord |
isAttributeRequired() | Returns a value indicating whether the attribute is required. | CModel |
isAttributeSafe() | Returns a value indicating whether the attribute is safe for massive assignments. | CModel |
model() | Returns the static model of the specified AR class. | CatAlmacen |
offsetExists() | Returns whether there is an element at the specified offset. | CActiveRecord |
offsetGet() | Returns the element at the specified offset. | CModel |
offsetSet() | Sets the element at the specified offset. | CModel |
offsetUnset() | Unsets the element at the specified offset. | CModel |
onAfterConstruct() | This event is raised after the model instance is created by new operator. | CModel |
onAfterDelete() | This event is raised after the record is deleted. | CActiveRecord |
onAfterFind() | This event is raised after the record is instantiated by a find method. | CActiveRecord |
onAfterSave() | This event is raised after the record is saved. | CActiveRecord |
onAfterValidate() | This event is raised after the validation is performed. | CModel |
onBeforeDelete() | This event is raised before the record is deleted. | CActiveRecord |
onBeforeFind() | This event is raised before an AR finder performs a find call. | CActiveRecord |
onBeforeSave() | This event is raised before the record is saved. | CActiveRecord |
onBeforeValidate() | This event is raised before the validation is performed. | CModel |
onUnsafeAttribute() | This method is invoked when an unsafe attribute is being massively assigned. | CModel |
populateRecord() | Creates an active record with the given attributes. | CActiveRecord |
populateRecords() | Creates a list of active records based on the input data. | CActiveRecord |
primaryKey() | Returns the primary key of the associated database table. | CActiveRecord |
raiseEvent() | Raises an event. | CComponent |
refresh() | Repopulates this active record with the latest data. | CActiveRecord |
refreshMetaData() | Refreshes the meta data for this AR class. | CActiveRecord |
relations() | CatAlmacen | |
resetScope() | Resets all scopes and criterias applied. | CActiveRecord |
rules() | CatAlmacen | |
save() | Saves the current record. | CActiveRecord |
saveAttributes() | Saves a selected list of attributes. | CActiveRecord |
saveCounters() | Saves one or several counter columns for the current AR object. | CActiveRecord |
scopes() | Returns the declaration of named scopes. | CActiveRecord |
search() | Retrieves a list of models based on the current search/filter conditions. | CatAlmacen |
setAttribute() | Sets the named attribute value. | CActiveRecord |
setAttributes() | Sets the attribute values in a massive way. | CModel |
setDbCriteria() | Sets the query criteria for the current model. | CActiveRecord |
setIsNewRecord() | Sets if the record is new. | CActiveRecord |
setOldPrimaryKey() | Sets the old primary key value. | CActiveRecord |
setPrimaryKey() | Sets the primary key value. | CActiveRecord |
setScenario() | Sets the scenario for the model. | CModel |
setTableAlias() | Sets the table alias to be used in queries. | CActiveRecord |
tableName() | CatAlmacen | |
together() | Sets CDbCriteria::together property to be true. | CActiveRecord |
unsetAttributes() | Sets the attributes to be null. | CModel |
update() | Updates the row represented by this active record. | CActiveRecord |
updateAll() | Updates records with the specified condition. | CActiveRecord |
updateByPk() | Updates records with the specified primary key(s). | CActiveRecord |
updateCounters() | Updates one or several counter columns. | CActiveRecord |
validate() | Performs the validation. | CModel |
with() | Specifies which related objects should be eagerly loaded. | CActiveRecord |
Protected Methods
Method | Description | Defined By |
---|---|---|
afterConstruct() | This method is invoked after a model instance is created by new operator. | CModel |
afterDelete() | This method is invoked after deleting a record. | CActiveRecord |
afterFind() | This method is invoked after each record is instantiated by a find method. | CActiveRecord |
afterSave() | This method is invoked after saving a record successfully. | CActiveRecord |
afterValidate() | This method is invoked after validation ends. | CModel |
beforeDelete() | This method is invoked before deleting a record. | CActiveRecord |
beforeFind() | This method is invoked before an AR finder executes a find call. | CActiveRecord |
beforeSave() | This method is invoked before saving a record (after validation, if any). | CActiveRecord |
beforeValidate() | This method is invoked before validation starts. | CModel |
instantiate() | Creates an active record instance. | CActiveRecord |
query() | Performs the actual DB query and populates the AR objects with the query result. | CActiveRecord |
Events
Event | Description | Defined By |
---|---|---|
onBeforeSave | This event is raised before the record is saved. | CActiveRecord |
onAfterSave | This event is raised after the record is saved. | CActiveRecord |
onBeforeDelete | This event is raised before the record is deleted. | CActiveRecord |
onAfterDelete | This event is raised after the record is deleted. | CActiveRecord |
onBeforeFind | This event is raised before an AR finder performs a find call. | CActiveRecord |
onAfterFind | This event is raised after the record is instantiated by a find method. | CActiveRecord |
onAfterConstruct | This event is raised after the model instance is created by new operator. | CModel |
onBeforeValidate | This event is raised before the validation is performed. | CModel |
onAfterValidate | This event is raised after the validation is performed. | CModel |
onUnsafeAttribute | This method is invoked when an unsafe attribute is being massively assigned. | CModel |
Property Details
ID_CCOSTO
property
string ID_CCOSTO;
activo
property
string activo;
actualizaPrecios
property
string actualizaPrecios;
almacen
property
string almacen;
almacenCargo
property
string almacenCargo;
almacenConsumo
property
string almacenConsumo;
almacenExistencias
property
string almacenExistencias;
almacenPadre
property
string almacenPadre;
altaEspecial
property
string altaEspecial;
altaPaciente
property
string altaPaciente;
beneficencia
property
string beneficencia;
cambiarDescripcion
property
string cambiarDescripcion;
cargosDirectos
property
string cargosDirectos;
centroDistribucion
property
string centroDistribucion;
cierreCuenta
property
string cierreCuenta;
compras
property
string compras;
contieneEmpleados
property
string contieneEmpleados;
contieneReferidos
property
string contieneReferidos;
credenciales
property
string credenciales;
ctaContable
property
string ctaContable;
descripcion
property
string descripcion;
entidad
property
string entidad;
especialidad
property
string especialidad;
farmacia
property
string farmacia;
fecha1
property
string fecha1;
gpoProducto
property
string gpoProducto;
horaPE
property
integer horaPE;
id_medico
property
string id_medico;
imprimeTicket
property
string imprimeTicket;
keyAlmacenes
property
integer keyAlmacenes;
listaexpedientes
property
string listaexpedientes;
llenadoEspecial
property
string llenadoEspecial;
manejaexpedientes
property
string manejaexpedientes;
maquila
property
string maquila;
medicamentosSueltos
property
string medicamentosSueltos;
medico
property
string medico;
miniAlmacen
property
string miniAlmacen;
modificarPrecios
property
string modificarPrecios;
modulo
property
string modulo;
numConsultorio
property
string numConsultorio;
permiteDevoluciones
property
string permiteDevoluciones;
porcenajePE
property
string porcenajePE;
porcentajePE
property
string porcentajePE;
precioEspecial
property
string precioEspecial;
puntoVenta
property
string puntoVenta;
registroUrgencias
property
string registroUrgencias;
reporteSurtir
property
string reporteSurtir;
statusCitas
property
string statusCitas;
statusExistencias
property
string statusExistencias;
stock
property
string stock;
tieneCuartos
property
string tieneCuartos;
tipoBeneficencia
property
string tipoBeneficencia;
transacciones
property
string transacciones;
usuario
property
string usuario;
ventaBotiquinExternos
property
string ventaBotiquinExternos;
ventas
property
string ventas;
ventasDirectas
property
string ventasDirectas;
Method Details
attributeLabels()
method
public array attributeLabels()
| ||
{return} | array | customized attribute labels (name=>label) |
Source Code: app/modules/Configuracion/modules/Configuracion/models/CatAlmacen.php#125 (show)
public function attributeLabels()
{
return array(
'keyAlmacenes' => 'Key Almacenes',
'almacenConsumo' => 'Almacen Consumo',
'almacen' => 'Almacen',
'descripcion' => 'Descripcion',
'tieneCuartos' => 'Tiene Cuartos',
'ctaContable' => 'Cta Contable',
'fecha1' => 'Fecha1',
'usuario' => 'Usuario',
'ID_CCOSTO' => 'Id Ccosto',
'modulo' => 'Modulo',
'activo' => 'Activo',
'stock' => 'Stock',
'miniAlmacen' => 'Mini Almacen',
'almacenPadre' => 'Almacen Padre',
'id_medico' => 'Id Medico',
'entidad' => 'Entidad',
'medico' => 'Medico',
'ventas' => 'Ventas',
'altaPaciente' => 'Alta Paciente',
'altaEspecial' => 'Alta Especial',
'cargosDirectos' => 'Cargos Directos',
'numConsultorio' => 'Num Consultorio',
'transacciones' => 'Transacciones',
'contieneReferidos' => 'Contiene Referidos',
'contieneEmpleados' => 'Contiene Empleados',
'compras' => 'Compras',
'ventasDirectas' => 'Ventas Directas',
'modificarPrecios' => 'Modificar Precios',
'cierreCuenta' => 'Cierre Cuenta',
'registroUrgencias' => 'Registro Urgencias',
'credenciales' => 'Credenciales',
'medicamentosSueltos' => 'Medicamentos Sueltos',
'centroDistribucion' => 'Centro Distribucion',
'permiteDevoluciones' => 'Permite Devoluciones',
'almacenCargo' => 'Almacen Cargo',
'reporteSurtir' => 'Reporte Surtir',
'statusCitas' => 'Status Citas',
'cambiarDescripcion' => 'Cambiar Descripcion',
'gpoProducto' => 'Gpo Producto',
'puntoVenta' => 'Punto Venta',
'actualizaPrecios' => 'Actualiza Precios',
'especialidad' => 'Especialidad',
'maquila' => 'Maquila',
'farmacia' => 'Farmacia',
'beneficencia' => 'Beneficencia',
'manejaexpedientes' => 'Manejaexpedientes',
'listaexpedientes' => 'Listaexpedientes',
'almacenExistencias' => 'Almacen Existencias',
'precioEspecial' => 'Precio Especial',
'tipoBeneficencia' => 'Tipo Beneficencia',
'porcenajePE' => 'Porcenaje Pe',
'horaPE' => 'Hora Pe',
'llenadoEspecial' => 'Llenado Especial',
'porcentajePE' => 'Porcentaje Pe',
'ventaBotiquinExternos' => 'Venta Botiquin Externos',
'imprimeTicket' => 'Imprime Ticket',
'statusExistencias' => 'Status Existencias',
);
}
model()
method
public static CatAlmacen model(string $className='CatAlmacen')
| ||
$className | string | active record class name. |
{return} | CatAlmacen | the static model class |
Source Code: app/modules/Configuracion/modules/Configuracion/models/CatAlmacen.php#72 (show)
public static function model($className=__CLASS__)
{
return parent::model($className);
}
Returns the static model of the specified AR class.
relations()
method
public array relations()
| ||
{return} | array | relational rules. |
Source Code: app/modules/Configuracion/modules/Configuracion/models/CatAlmacen.php#114 (show)
public function relations()
{
// NOTE: you may need to adjust the relation name and the related
// class name for the relations automatically generated below.
return array(
);
}
rules()
method
public array rules()
| ||
{return} | array | validation rules for model attributes. |
Source Code: app/modules/Configuracion/modules/Configuracion/models/CatAlmacen.php#88 (show)
public function rules()
{
// NOTE: you should only define rules for those attributes that
// will receive user inputs.
return array(
array('almacenConsumo, almacen, descripcion, tieneCuartos, ctaContable, fecha1, usuario, modulo, activo, stock, miniAlmacen, almacenPadre, id_medico, entidad, medico, ventas, contieneReferidos, permiteDevoluciones, beneficencia, manejaexpedientes, listaexpedientes, almacenExistencias, precioEspecial, tipoBeneficencia, porcenajePE, horaPE, llenadoEspecial, porcentajePE, ventaBotiquinExternos, imprimeTicket, statusExistencias', 'required'),
array('horaPE', 'numerical', 'integerOnly'=>true),
array('almacenConsumo, tieneCuartos, stock, miniAlmacen, entidad, medico, ventas, altaPaciente, altaEspecial, cargosDirectos, transacciones, contieneReferidos, contieneEmpleados, compras, ventasDirectas, modificarPrecios, cierreCuenta, registroUrgencias, credenciales, medicamentosSueltos, centroDistribucion, permiteDevoluciones, statusCitas, cambiarDescripcion, puntoVenta, actualizaPrecios, maquila, farmacia, beneficencia, manejaexpedientes, precioEspecial, tipoBeneficencia, ventaBotiquinExternos, imprimeTicket', 'length', 'max'=>2),
array('almacen, almacenPadre, id_medico, numConsultorio, almacenCargo, gpoProducto, especialidad', 'length', 'max'=>20),
array('descripcion, reporteSurtir, llenadoEspecial', 'length', 'max'=>50),
array('ctaContable, usuario', 'length', 'max'=>15),
array('fecha1, modulo, activo', 'length', 'max'=>10),
array('ID_CCOSTO', 'length', 'max'=>12),
array('listaexpedientes', 'length', 'max'=>100),
array('almacenExistencias', 'length', 'max'=>30),
array('porcenajePE, porcentajePE', 'length', 'max'=>3),
array('statusExistencias', 'length', 'max'=>1),
// The following rule is used by search().
// Please remove those attributes that should not be searched.
array('keyAlmacenes, almacenConsumo, almacen, descripcion, tieneCuartos, ctaContable, fecha1, usuario, ID_CCOSTO, modulo, activo, stock, miniAlmacen, almacenPadre, id_medico, entidad, medico, ventas, altaPaciente, altaEspecial, cargosDirectos, numConsultorio, transacciones, contieneReferidos, contieneEmpleados, compras, ventasDirectas, modificarPrecios, cierreCuenta, registroUrgencias, credenciales, medicamentosSueltos, centroDistribucion, permiteDevoluciones, almacenCargo, reporteSurtir, statusCitas, cambiarDescripcion, gpoProducto, puntoVenta, actualizaPrecios, especialidad, maquila, farmacia, beneficencia, manejaexpedientes, listaexpedientes, almacenExistencias, precioEspecial, tipoBeneficencia, porcenajePE, horaPE, llenadoEspecial, porcentajePE, ventaBotiquinExternos, imprimeTicket, statusExistencias', 'safe', 'on'=>'search'),
);
}
search()
method
public CActiveDataProvider search()
| ||
{return} | CActiveDataProvider | the data provider that can return the models based on the search/filter conditions. |
Source Code: app/modules/Configuracion/modules/Configuracion/models/CatAlmacen.php#192 (show)
public function search()
{
// Warning: Please modify the following code to remove attributes that
// should not be searched.
$criteria=new CDbCriteria;
$criteria->compare('keyAlmacenes',$this->keyAlmacenes);
$criteria->compare('almacenConsumo',$this->almacenConsumo,true);
$criteria->compare('almacen',$this->almacen,true);
$criteria->compare('descripcion',$this->descripcion,true);
$criteria->compare('tieneCuartos',$this->tieneCuartos,true);
$criteria->compare('ctaContable',$this->ctaContable,true);
$criteria->compare('fecha1',$this->fecha1,true);
$criteria->compare('usuario',$this->usuario,true);
$criteria->compare('ID_CCOSTO',$this->ID_CCOSTO,true);
$criteria->compare('modulo',$this->modulo,true);
$criteria->compare('activo',$this->activo,true);
$criteria->compare('stock',$this->stock,true);
$criteria->compare('miniAlmacen',$this->miniAlmacen,true);
$criteria->compare('almacenPadre',$this->almacenPadre,true);
$criteria->compare('id_medico',$this->id_medico,true);
$criteria->compare('entidad',$this->entidad,true);
$criteria->compare('medico',$this->medico,true);
$criteria->compare('ventas',$this->ventas,true);
$criteria->compare('altaPaciente',$this->altaPaciente,true);
$criteria->compare('altaEspecial',$this->altaEspecial,true);
$criteria->compare('cargosDirectos',$this->cargosDirectos,true);
$criteria->compare('numConsultorio',$this->numConsultorio,true);
$criteria->compare('transacciones',$this->transacciones,true);
$criteria->compare('contieneReferidos',$this->contieneReferidos,true);
$criteria->compare('contieneEmpleados',$this->contieneEmpleados,true);
$criteria->compare('compras',$this->compras,true);
$criteria->compare('ventasDirectas',$this->ventasDirectas,true);
$criteria->compare('modificarPrecios',$this->modificarPrecios,true);
$criteria->compare('cierreCuenta',$this->cierreCuenta,true);
$criteria->compare('registroUrgencias',$this->registroUrgencias,true);
$criteria->compare('credenciales',$this->credenciales,true);
$criteria->compare('medicamentosSueltos',$this->medicamentosSueltos,true);
$criteria->compare('centroDistribucion',$this->centroDistribucion,true);
$criteria->compare('permiteDevoluciones',$this->permiteDevoluciones,true);
$criteria->compare('almacenCargo',$this->almacenCargo,true);
$criteria->compare('reporteSurtir',$this->reporteSurtir,true);
$criteria->compare('statusCitas',$this->statusCitas,true);
$criteria->compare('cambiarDescripcion',$this->cambiarDescripcion,true);
$criteria->compare('gpoProducto',$this->gpoProducto,true);
$criteria->compare('puntoVenta',$this->puntoVenta,true);
$criteria->compare('actualizaPrecios',$this->actualizaPrecios,true);
$criteria->compare('especialidad',$this->especialidad,true);
$criteria->compare('maquila',$this->maquila,true);
$criteria->compare('farmacia',$this->farmacia,true);
$criteria->compare('beneficencia',$this->beneficencia,true);
$criteria->compare('manejaexpedientes',$this->manejaexpedientes,true);
$criteria->compare('listaexpedientes',$this->listaexpedientes,true);
$criteria->compare('almacenExistencias',$this->almacenExistencias,true);
$criteria->compare('precioEspecial',$this->precioEspecial,true);
$criteria->compare('tipoBeneficencia',$this->tipoBeneficencia,true);
$criteria->compare('porcenajePE',$this->porcenajePE,true);
$criteria->compare('horaPE',$this->horaPE);
$criteria->compare('llenadoEspecial',$this->llenadoEspecial,true);
$criteria->compare('porcentajePE',$this->porcentajePE,true);
$criteria->compare('ventaBotiquinExternos',$this->ventaBotiquinExternos,true);
$criteria->compare('imprimeTicket',$this->imprimeTicket,true);
$criteria->compare('statusExistencias',$this->statusExistencias,true);
return new CActiveDataProvider($this, array(
'criteria'=>$criteria,
));
}
Retrieves a list of models based on the current search/filter conditions.
tableName()
method
public string tableName()
| ||
{return} | string | the associated database table name |
Source Code: app/modules/Configuracion/modules/Configuracion/models/CatAlmacen.php#80 (show)
public function tableName()
{
return 'almacenes';
}