本文整理汇总了PHP中app\func\Proc::DGselect2方法的典型用法代码示例。如果您正苦于以下问题:PHP Proc::DGselect2方法的具体用法?PHP Proc::DGselect2怎么用?PHP Proc::DGselect2使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类app\func\Proc
的用法示例。
在下文中一共展示了Proc::DGselect2方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Employee
</div>
<?php
}
?>
<?php
echo $form->field($model, 'id_user', ['enableClientValidation' => false])->widget(Select2::classname(), Proc::DGselect2(['model' => $model, 'resultmodel' => new Employee(), 'fields' => ['keyfield' => 'id_user', 'resultfield' => 'idperson.auth_user_fullname'], 'placeholder' => 'Выберете пользователя', 'fromgridroute' => 'Fregat/employee/index', 'resultrequest' => 'Fregat/employee/selectinputemloyee', 'thisroute' => $this->context->module->requestedRoute, 'methodquery' => 'selectinput']));
?>
<?php
echo $form->field($model, 'id_master', ['enableClientValidation' => false])->widget(Select2::classname(), Proc::DGselect2(['model' => $model, 'resultmodel' => new Employee(), 'fields' => ['keyfield' => 'id_master', 'resultfield' => 'idperson.auth_user_fullname'], 'placeholder' => 'Выберете пользователя', 'fromgridroute' => 'Fregat/employee/index', 'resultrequest' => 'Fregat/employee/selectinputemloyee', 'thisroute' => $this->context->module->requestedRoute, 'methodquery' => 'selectinput']));
?>
<?php
echo $form->field($model, 'id_reason')->widget(Select2::classname(), Proc::DGselect2(['model' => $model, 'resultmodel' => new Reason(), 'fields' => ['keyfield' => 'id_reason', 'resultfield' => 'reason_text'], 'placeholder' => 'Выберете причину неисправности', 'fromgridroute' => 'Fregat/reason/index', 'resultrequest' => 'Fregat/reason/selectinput', 'thisroute' => $this->context->module->requestedRoute]));
?>
<?php
echo $form->field($model, 'osmotrakt_comment')->textarea(['class' => 'form-control setsession', 'form' => $formname, 'maxlength' => 1024, 'placeholder' => 'Введите дополнительную информацию о неисправности', 'rows' => 10, 'style' => 'resize: none']);
?>
<?php
ActiveForm::end();
?>
<div class="form-group">
<div class="panel panel-default">
<div class="panel-heading">
<?php
示例2:
?>
</div>
</div>
<div class="panel panel-<?php
echo Yii::$app->params['panelStyle'];
?>
">
<div class="panel-heading"><?php
echo Html::encode('Приход');
?>
</div>
<div class="panel-body">
<?php
echo $form->field($Mattraffic, 'id_mol')->widget(Select2::classname(), Proc::DGselect2(['model' => $Mattraffic, 'resultmodel' => new app\models\Fregat\Employee(), 'fields' => ['keyfield' => 'id_mol', 'resultfield' => 'idperson.auth_user_fullname'], 'placeholder' => 'Выберете материально отчетственное лицо', 'fromgridroute' => 'Fregat/employee/index', 'resultrequest' => 'Fregat/employee/selectinputemloyee', 'thisroute' => $this->context->module->requestedRoute, 'methodquery' => 'selectinput', 'disabled' => $disabled]));
?>
<?php
echo $form->field($Mattraffic, 'mattraffic_date')->widget(DateControl::classname(), ['type' => DateControl::FORMAT_DATE, 'options' => ['options' => ['placeholder' => 'Выберите дату ...', 'class' => 'form-control setsession']], 'disabled' => $disabled]);
?>
</div>
</div>
<?php
ActiveForm::end();
?>
<?php
if (!$model->isNewRecord) {
示例3:
</div>
<div class="panel-body">
<?php
echo $form->field($dopparams['Glaukuchet'], 'glaukuchet_uchetbegin')->widget(DateControl::classname(), ['type' => DateControl::FORMAT_DATE, 'options' => ['options' => ['placeholder' => 'Выберите дату ...', 'class' => 'form-control', 'disabled' => $dopparams['DisableElements']]], 'saveOptions' => ['class' => 'form-control setsession', 'form' => $formname]]);
?>
<?php
echo $form->field($dopparams['Glaukuchet'], 'glaukuchet_lastvisit')->widget(DateControl::classname(), ['type' => DateControl::FORMAT_DATE, 'options' => ['options' => ['placeholder' => 'Выберите дату ...', 'class' => 'form-control', 'disabled' => $dopparams['DisableElements']]], 'saveOptions' => ['class' => 'form-control setsession', 'form' => $formname]]);
?>
<?php
echo $form->field($dopparams['Glaukuchet'], 'id_employee')->widget(Select2::classname(), Proc::DGselect2(array_merge(['model' => $dopparams['Glaukuchet'], 'resultmodel' => new \app\models\Fregat\Employee(), 'fields' => ['keyfield' => 'id_employee'], 'placeholder' => 'Введите врача', 'resultrequest' => 'Glauk/glaukuchet/selectinputforvrach', 'thisroute' => $this->context->module->requestedRoute, 'methodquery' => 'selectinputactive', 'dopparams' => ['patienttype' => $patienttype], 'form' => $formname, 'disabled' => $dopparams['DisableElements']], $dopparams['DisableElements'] ? [] : ['fromgridroute' => 'Fregat/employee/foractiveemployee'])));
?>
<?php
echo $form->field($dopparams['Glaukuchet'], 'id_class_mkb')->widget(Select2::classname(), Proc::DGselect2(array_merge(['model' => $dopparams['Glaukuchet'], 'resultmodel' => new app\models\Base\Classmkb(), 'fields' => ['keyfield' => 'id_class_mkb'], 'placeholder' => 'Введите диагноз', 'resultrequest' => 'Base/classmkb/selectinputfordiag', 'thisroute' => $this->context->module->requestedRoute, 'methodquery' => 'selectinput', 'dopparams' => ['patienttype' => $patienttype], 'form' => $formname, 'disabled' => $dopparams['DisableElements']], $dopparams['DisableElements'] ? [] : ['fromgridroute' => 'Base/classmkb/indexglauk'])));
?>
<?php
echo $form->field($dopparams['Glaukuchet'], 'glaukuchet_detect')->widget(Select2::classname(), ['hideSearch' => true, 'data' => $dopparams['Glaukuchet']->VariablesValues('glaukuchet_detect'), 'pluginOptions' => ['allowClear' => true], 'options' => ['placeholder' => 'Выберете вид выявления заболевания', 'class' => 'form-control setsession', 'form' => $formname, 'disabled' => $dopparams['DisableElements']], 'theme' => Select2::THEME_BOOTSTRAP]);
?>
<?php
echo $form->field($dopparams['Glaukuchet'], 'glaukuchet_stage')->widget(Select2::classname(), ['hideSearch' => true, 'data' => $dopparams['Glaukuchet']->VariablesValues('glaukuchet_stage'), 'pluginOptions' => ['allowClear' => true], 'options' => ['placeholder' => 'Выберете стадию глаукомы', 'class' => 'form-control setsession', 'form' => $formname, 'disabled' => $dopparams['DisableElements']], 'theme' => Select2::THEME_BOOTSTRAP]);
?>
<?php
echo $form->field($dopparams['Glaukuchet'], 'glaukuchet_operdate')->widget(DateControl::classname(), ['type' => DateControl::FORMAT_DATE, 'options' => ['options' => ['placeholder' => 'Выберите дату ...', 'class' => 'form-control', 'disabled' => $dopparams['DisableElements']]], 'saveOptions' => ['class' => 'form-control setsession', 'form' => $formname]]);
?>
<?php
示例4: SetMaxNumberByMaterial
'resultrequest' => 'Fregat/tr-mat/selectinputfortrmatparent',
'thisroute' => $this->context->module->requestedRoute,
'methodquery' => 'selectinputfortrmat_parent',
'methodparams' => ['idinstallakt' => (string) filter_input(INPUT_GET, 'idinstallakt')],
'dopparams' => [
'idinstallakt' => (string) filter_input(INPUT_GET, 'idinstallakt'),
],
]));*/
?>
<?php
echo $form->field($model, 'id_parent')->widget(Select2::classname(), Proc::DGselect2(['model' => $model, 'resultmodel' => new app\models\Fregat\Mattraffic(), 'fields' => ['keyfield' => 'id_parent'], 'placeholder' => 'Введите инвентарный номер материальной ценности', 'fromgridroute' => 'Fregat/mattraffic/forinstallakt_matparent', 'resultrequest' => 'Fregat/tr-mat/selectinputfortrmatparent', 'thisroute' => $this->context->module->requestedRoute, 'methodquery' => 'selectinputfortrmat_parent', 'methodparams' => ['idinstallakt' => (string) filter_input(INPUT_GET, 'idinstallakt')], 'dopparams' => ['idinstallakt' => (string) filter_input(INPUT_GET, 'idinstallakt')]]));
?>
<?php
echo $form->field($model, 'id_mattraffic')->widget(Select2::classname(), array_merge(Proc::DGselect2(['model' => $model, 'resultmodel' => new app\models\Fregat\Mattraffic(), 'fields' => ['keyfield' => 'id_mattraffic'], 'placeholder' => 'Введите инвентарный номер материальной ценности', 'fromgridroute' => 'Fregat/mattraffic/forinstallakt_mat', 'resultrequest' => 'Fregat/tr-mat/selectinputfortrmatchild', 'thisroute' => $this->context->module->requestedRoute, 'methodquery' => 'selectinputfortrmat_child', 'methodparams' => ['idinstallakt' => (string) filter_input(INPUT_GET, 'idinstallakt')], 'dopparams' => ['foreigndo' => '1', 'idinstallakt' => (string) filter_input(INPUT_GET, 'idinstallakt')]]), ['pluginEvents' => ["select2:select" => "function() { SetMaxNumberByMaterial(); }", "select2:unselect" => "function() { UnSetMaxNumberByMaterial(); }"]]))->label('Перемещаемая материальная ценность');
?>
<?php
echo $form->field($Mattraffic, 'mattraffic_number', ['inputTemplate' => '<div class="input-group">{input}<span id="mattraffic_number_max" class="input-group-addon">' . $mattraffic_number_max . '</span></div>'])->widget(TouchSpin::classname(), ['options' => ['class' => 'form-control setsession'], 'pluginOptions' => ['verticalbuttons' => true, 'min' => 0.001, 'max' => 10000000000, 'step' => 1, 'decimals' => 3, 'forcestepdivisibility' => 'none']]);
?>
<div class="form-group">
<div class="panel panel-default">
<div class="panel-heading">
<?php
echo Html::submitButton('<i class="glyphicon glyphicon-plus"></i> Добавить', ['class' => 'btn btn-success']);
?>
</div>
</div>
示例5:
</div>
</div>
<div class="panel panel-<?php
echo Yii::$app->params['panelStyle'];
?>
panelblock">
<div class="panel-heading"><?php
echo Html::encode('Перемещение материальных ценностей');
?>
</div>
<div class="panel-body">
<?php
echo $form->field($model, 'mol_id_build')->widget(Select2::classname(), array_merge(Proc::DGselect2(['model' => $model, 'resultmodel' => new \app\models\Fregat\Build(), 'placeholder' => 'Введите здание', 'setsession' => false, 'multiple' => ['multipleshowall' => false, 'idvalue' => 'build_id'], 'fields' => ['keyfield' => 'mol_id_build', 'resultfield' => 'build_name'], 'resultrequest' => 'Fregat/build/selectinput', 'thisroute' => $this->context->module->requestedRoute]), ['addon' => ['prepend' => ['content' => Proc::SetTemplateForActiveFieldWithNOT($form, $model, 'mol_id_build')], 'groupOptions' => ['class' => 'notforselect2']]]));
?>
<?php
echo $form->field($model, 'tr_osnov_kab')->textInput(['maxlength' => true, 'class' => 'form-control inputuppercase']);
?>
</div>
</div>
<div class="panel panel-<?php
echo Yii::$app->params['panelStyle'];
?>
panelblock">
<div class="panel-heading"><?php
echo Html::encode('Аудит операций пользователя');
示例6: Dolzh
<div class="employee-form">
<?php
$form = ActiveForm::begin();
?>
<?php
echo $form->field($model, 'id_dolzh')->widget(Select2::classname(), array_merge(Proc::DGselect2(array_merge(['model' => $model, 'resultmodel' => new Dolzh(), 'fields' => ['keyfield' => 'id_dolzh', 'resultfield' => 'dolzh_name'], 'placeholder' => 'Выберете должность', 'resultrequest' => 'Fregat/dolzh/selectinput', 'thisroute' => $this->context->module->requestedRoute, 'dopparams' => ['iduser' => $iduser], 'disabled' => $OnlyBuildEdit], $OnlyBuildEdit ? [] : ['fromgridroute' => 'Fregat/dolzh/index']))));
?>
<?php
echo $form->field($model, 'id_podraz')->widget(Select2::classname(), array_merge(Proc::DGselect2(array_merge(['model' => $model, 'resultmodel' => new Podraz(), 'fields' => ['keyfield' => 'id_podraz', 'resultfield' => 'podraz_name'], 'placeholder' => 'Выберете подразделение', 'resultrequest' => 'Fregat/podraz/selectinput', 'thisroute' => $this->context->module->requestedRoute, 'dopparams' => ['iduser' => $iduser], 'disabled' => $OnlyBuildEdit], $OnlyBuildEdit ? [] : ['fromgridroute' => 'Fregat/podraz/index']))));
?>
<?php
echo $form->field($model, 'id_build')->widget(Select2::classname(), Proc::DGselect2(['model' => $model, 'resultmodel' => new Build(), 'fields' => ['keyfield' => 'id_build', 'resultfield' => 'build_name'], 'placeholder' => 'Выберете здание', 'fromgridroute' => 'Fregat/build/index', 'resultrequest' => 'Fregat/build/selectinput', 'thisroute' => $this->context->module->requestedRoute, 'dopparams' => ['iduser' => $iduser]]));
?>
<?php
echo $form->field($model, 'employee_dateinactive')->widget(DateControl::classname(), ['type' => DateControl::FORMAT_DATE, 'options' => ['options' => ['placeholder' => 'Выберите дату ...', 'class' => 'form-control setsession', 'disabled' => $OnlyBuildEdit]]]);
?>
<?php
echo $form->field($model, 'employee_importdo')->checkbox(['disabled' => $OnlyBuildEdit]);
?>
<div class="form-group">
<div class="form-group">
<div class="panel panel-default">
<div class="panel-heading">
示例7:
</div>
</div>
<div class="panel panel-<?php
echo Yii::$app->params['panelStyle'];
?>
panelblock">
<div class="panel-heading"><?php
echo Html::encode('Медикаментозная терапия');
?>
</div>
<div class="panel-body">
<?php
echo $form->field($model, 'glprep_id_preparat')->widget(Select2::classname(), array_merge(Proc::DGselect2(['model' => $model, 'resultmodel' => new app\models\Base\Preparat(), 'placeholder' => 'Введите название препарата', 'setsession' => false, 'multiple' => ['multipleshowall' => false, 'idvalue' => 'preparat_id'], 'fields' => ['keyfield' => 'glprep_id_preparat', 'resultfield' => 'preparat_name'], 'resultrequest' => 'Base/preparat/selectinput', 'thisroute' => $this->context->module->requestedRoute]), ['addon' => ['prepend' => ['content' => Proc::SetTemplateForActiveFieldWithNOT($form, $model, 'glprep_id_preparat')], 'groupOptions' => ['class' => 'notforselect2']]]));
?>
<?php
echo Proc::FilterFieldSelectMultiple($form, $model, 'glprep_rlocat', 'ыберете категорию льготного лекарственного обеспечения');
?>
<?php
echo $form->field($model, 'glprep_not_preparat_mark')->checkbox()->label(null, ['class' => 'control-label']);
?>
<?php
echo $form->field($model, 'glprep_preparat_mark')->checkbox()->label(null, ['class' => 'control-label']);
?>
</div>
示例8: Organ
panelblock">
<div class="panel-heading"><?php
echo Html::encode('Организация в которую отправляем акт');
?>
</div>
<div class="panel-body">
<div class="errordialog" style="display: none;">
</div>
<?php
echo Html::hiddenInput('osmotrakt_id', $osmotrakt_id, ['id' => 'osmotrakt-osmotrakt_id']);
?>
<?php
echo $form->field($model, 'organ_id')->widget(Select2::classname(), Proc::DGselect2(['model' => $model, 'resultmodel' => new Organ(), 'fields' => ['keyfield' => 'organ_id', 'resultfield' => 'organ_name'], 'placeholder' => 'Выберете организацию', 'resultrequest' => 'Fregat/organ/selectinput', 'thisroute' => $this->context->module->requestedRoute]));
?>
</div>
</div>
</div>
<div class="form-group">
<div class="panel panel-default">
<div class="panel-heading">
<?php
echo Html::Button('<i class="glyphicon glyphicon-ok"></i> Отправить', ['class' => 'btn btn-primary ', 'id' => 'SendOsmotraktDialog_apply']);
?>
<?php
echo Html::Button('<i class="glyphicon glyphicon-remove"></i> Отмена', ['class' => 'btn btn-danger', 'id' => 'SendOsmotraktDialog_close']);
?>
示例9: Mattraffic
use kartik\select2\Select2;
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model app\models\Fregat\Spisosnovmaterials */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="spisosnovmaterials-form">
<?php
$form = ActiveForm::begin();
?>
<?php
echo $form->field($model, 'id_mattraffic', ['enableClientValidation' => false])->widget(Select2::classname(), Proc::DGselect2(['model' => $model, 'resultmodel' => new Mattraffic(), 'fields' => ['keyfield' => 'id_mattraffic'], 'placeholder' => 'Введите инвентарный номер материальной ценности', 'fromgridroute' => 'Fregat/mattraffic/forspisosnovakt', 'resultrequest' => 'Fregat/mattraffic/selectinputforspisosnovakt', 'thisroute' => $this->context->module->requestedRoute, 'methodquery' => 'selectinputforspisosnovakt']));
?>
<?php
echo $form->field($model, 'spisosnovmaterials_number', ['enableClientValidation' => false])->widget(kartik\touchspin\TouchSpin::classname(), ['options' => ['class' => 'form-control setsession'], 'pluginOptions' => ['verticalbuttons' => true, 'min' => 0.001, 'max' => 10000000000, 'step' => 1, 'decimals' => 3, 'forcestepdivisibility' => 'none']])->label('Количество для списания');
?>
<div class="form-group">
<div class="panel panel-default">
<div class="panel-heading">
<?php
echo Html::submitButton($model->isNewRecord ? '<i class="glyphicon glyphicon-plus"></i> Создать' : '<i class="glyphicon glyphicon-edit"></i> Обновить', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
</div>
</div>
</div>
示例10: Material
<div class="panel panel-<?php
echo Yii::$app->params['panelStyle'];
?>
panelblock">
<div class="panel-heading"><?php
echo Html::encode('Материал');
?>
</div>
<div class="panel-body">
<?php
echo $form->field($model, 'mat_id_material_mat')->widget(Select2::classname(), Proc::DGselect2(['model' => $model, 'resultmodel' => new Material(), 'placeholder' => 'Введите инвентарный номер', 'setsession' => false, 'fields' => ['keyfield' => 'mat_id_material_mat', 'resultfield' => 'material_inv'], 'resultrequest' => 'Fregat/material/selectinput', 'thisroute' => $this->context->module->requestedRoute, 'methodquery' => 'selectinput']));
?>
<?php
echo $form->field($model, 'mol_id_person_mat')->widget(Select2::classname(), Proc::DGselect2(['model' => $model, 'resultmodel' => new \app\models\Config\Authuser(), 'placeholder' => 'Введите ФИО материально-ответственного лица', 'setsession' => false, 'fields' => ['keyfield' => 'mol_id_person_mat', 'resultfield' => 'auth_user_fullname'], 'resultrequest' => 'Config/authuser/selectinput', 'thisroute' => $this->context->module->requestedRoute]));
?>
</div>
</div>
</div>
<div class="form-group">
<div class="panel panel-default">
<div class="panel-heading">
<?php
echo Html::Button('<i class="glyphicon glyphicon-ok"></i> Применить', ['class' => 'btn btn-primary', 'id' => $model->formName() . '_apply']);
?>
<?php
echo Html::Button('<i class="glyphicon glyphicon-remove"></i> Отмена', ['class' => 'btn btn-danger', 'id' => $model->formName() . '_close']);
?>
<?php
示例11: Matvid
/* @var $model app\models\Fregat\Importmaterial */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="importmaterial-form">
<?php
$form = ActiveForm::begin();
?>
<?php
echo $form->field($model, 'importmaterial_combination')->textInput(['maxlength' => true, 'class' => 'form-control setsession', 'autofocus' => true]);
?>
<?php
echo $form->field($model, 'id_matvid')->widget(Select2::classname(), Proc::DGselect2(['model' => $model, 'resultmodel' => new Matvid(), 'fields' => ['keyfield' => 'id_matvid', 'resultfield' => 'matvid_name'], 'placeholder' => 'Выберете вид материальной ценности', 'fromgridroute' => 'Fregat/matvid/index', 'resultrequest' => 'Fregat/matvid/selectinput', 'thisroute' => $this->context->module->requestedRoute]));
?>
<div class="form-group">
<div class="panel panel-default">
<div class="panel-heading">
<?php
echo Html::submitButton($model->isNewRecord ? '<i class="glyphicon glyphicon-plus"></i> Создать' : '<i class="glyphicon glyphicon-edit"></i> Обновить', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
</div>
</div>
</div>
<?php
ActiveForm::end();
示例12: Preparat
use kartik\select2\Select2;
use app\func\Proc;
use app\models\Base\Preparat;
/* @var $this yii\web\View */
/* @var $model app\models\Glauk\Glprep */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="glprep-form">
<?php
$form = ActiveForm::begin();
?>
<?php
echo $form->field($model, 'id_preparat')->widget(Select2::classname(), Proc::DGselect2(['model' => $model, 'resultmodel' => new Preparat(), 'fields' => ['keyfield' => 'id_preparat', 'resultfield' => 'preparat_name'], 'placeholder' => 'Выберете препарат', 'fromgridroute' => 'Base/preparat/index', 'resultrequest' => 'Base/preparat/selectinput', 'thisroute' => $this->context->module->requestedRoute, 'dopparams' => ['idglaukuchet' => $idglaukuchet]]));
?>
<?php
echo $form->field($model, 'glprep_rlocat')->widget(Select2::classname(), ['hideSearch' => true, 'data' => $model::VariablesValues('glprep_rlocat'), 'pluginOptions' => ['allowClear' => true], 'options' => ['placeholder' => 'Выберете категорию льготного лекарственного обеспечения', 'class' => 'form-control setsession'], 'theme' => Select2::THEME_BOOTSTRAP]);
?>
<div class="form-group">
<div class="form-group">
<div class="panel panel-default">
<div class="panel-heading">
<?php
echo Html::submitButton($model->isNewRecord ? '<i class="glyphicon glyphicon-plus"></i> Создать' : '<i class="glyphicon glyphicon-edit"></i> Обновить', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
</div>