<?php if (count($dept) != 0) { echo $dept->DEP_NM; } else { echo 'Dept Set'; } ?> </dd> </dl> </div> <!-- Table Grid List RO Detail !--> <div class="col-md-12"> <div style="align:right;"> <!-- <div style="float:left;margin-right:5px"><tombolAddItem($roHeader->KD_RIB,$roHeader->STATUS);?></div> --> <div><?php echo tombolNewItem($roHeader->KD_RIB, $roHeader->STATUS, $roHeader); ?> </div> </div> <div> <?php echo GridView::widget(['id' => 'rt-process', 'dataProvider' => $dataProvider, 'filterModel' => '', 'filterRowOptions' => ['style' => 'background-color:rgba(126, 189, 188, 0.3); align:center'], 'beforeHeader' => [['columns' => [['content' => '', 'options' => ['colspan' => 2, 'class' => 'text-center info']], ['content' => 'Quantity', 'options' => ['colspan' => 5, 'class' => 'text-center info']], ['content' => 'Remark', 'options' => ['colspan' => 5, 'class' => 'text-center info']]]]], 'columns' => [['class' => 'kartik\\grid\\ActionColumn', 'header' => '#', 'template' => '{detail}', 'buttons' => ['detail' => function ($url, $model) { return tombolViewDetail($url, $model); }], 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '5px', 'font-family' => 'verdana, arial, sans-serif', 'font-size' => '8pt', 'background-color' => 'rgba(126, 189, 188, 0.3)']], 'contentOptions' => ['style' => ['text-align' => 'center', 'width' => '5px', 'font-family' => 'verdana, arial, sans-serif', 'font-size' => '8pt']]], ['class' => 'kartik\\grid\\SerialColumn', 'contentOptions' => ['class' => 'kartik-sheet-style'], 'width' => '10px', 'header' => 'No.', 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '10px', 'font-family' => 'verdana, arial, sans-serif', 'font-size' => '8pt', 'background-color' => 'rgba(126, 189, 188, 0.3)']], 'contentOptions' => ['style' => ['text-align' => 'center', 'width' => '10px', 'font-family' => 'verdana, arial, sans-serif', 'font-size' => '8pt']]], ['label' => 'Type Investasi', 'attribute' => 'nminvest', 'hAlign' => 'left', 'vAlign' => 'middle', 'mergeHeader' => true, 'format' => 'raw', 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '150px', 'font-family' => 'verdana, arial, sans-serif', 'font-size' => '8pt', 'background-color' => 'rgba(126, 189, 188, 0.3)']], 'contentOptions' => ['style' => ['text-align' => 'left', 'width' => '150px', 'font-family' => 'verdana, arial, sans-serif', 'font-size' => '8pt']]], ['class' => 'kartik\\grid\\EditableColumn', 'attribute' => 'RQTY', 'label' => 'Qty.Request', 'vAlign' => 'middle', 'hAlign' => 'center', 'mergeHeader' => true, 'readonly' => function ($model, $key, $index, $widget) use($headerStatus) { //return (101 == $model->STATUS || 10 == $model->STATUS || 3 == $model->STATUS || 4 == $model->STATUS);// or 101 == $roHeader->STATUS); return 0 != $model->STATUS || 103 == $headerStatus; // Allow Status Process = 0); }, 'editableOptions' => ['header' => 'Update Quantity', 'inputType' => \kartik\editable\Editable::INPUT_TEXT, 'size' => 'sm', 'options' => ['pluginOptions' => ['min' => 0, 'max' => 50000]]], 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '60px', 'font-family' => 'verdana, arial, sans-serif', 'font-size' => '8pt', 'background-color' => 'rgba(126, 189, 188, 0.3)']], 'contentOptions' => ['style' => ['text-align' => 'left', 'width' => '60px', 'font-family' => 'verdana, arial, sans-serif', 'font-size' => '8pt']]], ['attribute' => 'SQTY', 'label' => 'Qty.Submit', 'mergeHeader' => true, 'vAlign' => 'middle', 'hAlign' => 'center', 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '60px', 'font-family' => 'verdana, arial, sans-serif', 'font-size' => '8pt', 'background-color' => 'rgba(126, 189, 188, 0.3)']], 'contentOptions' => ['style' => ['text-align' => 'left', 'width' => '60px', 'font-family' => 'verdana, arial, sans-serif', 'font-size' => '8pt']]], ['attribute' => 'UNIT', 'label' => 'Unit', 'hAlign' => 'left', 'vAlign' => 'middle', 'mergeHeader' => true, 'value' => function ($model) { $model = Unitbarang::find()->where('KD_UNIT="' . $model->UNIT . '"')->one(); if (count($model) != 0) { $UnitNm = $model->NM_UNIT;
} else { echo 'Dept Set'; } ?> </dd> </dl> </div> <!-- Table Grid List RO Detail !--> <div class="col-md-12"> <div style="align:right;"> <div style="float:left;margin-right:5px"><?php echo tombolAddItem($roHeader->KD_RO, $roHeader->STATUS); ?> </div> <div><?php echo tombolNewItem($roHeader->KD_RO, $roHeader->STATUS); ?> </div> </div> <div> <?php echo GridView::widget(['id' => 'ro-process', 'dataProvider' => $dataProvider, 'filterModel' => '', 'filterRowOptions' => ['style' => 'background-color:rgba(126, 189, 188, 0.3); align:center'], 'beforeHeader' => [['columns' => [['content' => '', 'options' => ['colspan' => 2, 'class' => 'text-center info']], ['content' => 'Quantity', 'options' => ['colspan' => 5, 'class' => 'text-center info']], ['content' => 'Remark', 'options' => ['colspan' => 2, 'class' => 'text-center info']]]]], 'columns' => [['class' => 'kartik\\grid\\ActionColumn', 'header' => '#', 'template' => '{detail}', 'buttons' => ['detail' => function ($url, $model) { return tombolViewDetail($url, $model); }], 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '5px', 'font-family' => 'verdana, arial, sans-serif', 'font-size' => '8pt', 'background-color' => 'rgba(126, 189, 188, 0.3)']], 'contentOptions' => ['style' => ['text-align' => 'center', 'width' => '5px', 'font-family' => 'verdana, arial, sans-serif', 'font-size' => '8pt']]], ['class' => 'kartik\\grid\\SerialColumn', 'contentOptions' => ['class' => 'kartik-sheet-style'], 'width' => '10px', 'header' => 'No.', 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '10px', 'font-family' => 'verdana, arial, sans-serif', 'font-size' => '8pt', 'background-color' => 'rgba(126, 189, 188, 0.3)']], 'contentOptions' => ['style' => ['text-align' => 'center', 'width' => '10px', 'font-family' => 'verdana, arial, sans-serif', 'font-size' => '8pt']]], ['label' => 'Items', 'attribute' => 'NM_BARANG', 'hAlign' => 'left', 'vAlign' => 'middle', 'mergeHeader' => true, 'format' => 'raw', 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '300px', 'font-family' => 'verdana, arial, sans-serif', 'font-size' => '8pt', 'background-color' => 'rgba(126, 189, 188, 0.3)']], 'contentOptions' => ['style' => ['text-align' => 'left', 'width' => '300px', 'font-family' => 'verdana, arial, sans-serif', 'font-size' => '8pt']]], ['class' => 'kartik\\grid\\EditableColumn', 'attribute' => 'RQTY', 'label' => 'Qty.Request', 'vAlign' => 'middle', 'hAlign' => 'center', 'mergeHeader' => true, 'readonly' => function ($model, $key, $index, $widget) use($headerStatus) { //return (101 == $model->STATUS || 10 == $model->STATUS || 3 == $model->STATUS || 4 == $model->STATUS);// or 101 == $roHeader->STATUS); return 0 != $model->STATUS || 103 == $headerStatus; // Allow Status Process = 0); }, 'editableOptions' => ['header' => 'Update Quantity', 'inputType' => \kartik\editable\Editable::INPUT_TEXT, 'size' => 'sm', 'options' => ['pluginOptions' => ['min' => 0, 'max' => 50000]]], 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '60px', 'font-family' => 'verdana, arial, sans-serif', 'font-size' => '8pt', 'background-color' => 'rgba(126, 189, 188, 0.3)']], 'contentOptions' => ['style' => ['text-align' => 'left', 'width' => '60px', 'font-family' => 'verdana, arial, sans-serif', 'font-size' => '8pt']]], ['attribute' => 'SQTY', 'label' => 'Qty.Submit', 'mergeHeader' => true, 'vAlign' => 'middle', 'hAlign' => 'center', 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '60px', 'font-family' => 'verdana, arial, sans-serif', 'font-size' => '8pt', 'background-color' => 'rgba(126, 189, 188, 0.3)']], 'contentOptions' => ['style' => ['text-align' => 'left', 'width' => '60px', 'font-family' => 'verdana, arial, sans-serif', 'font-size' => '8pt']]], ['attribute' => 'UNIT', 'label' => 'Unit', 'hAlign' => 'left', 'vAlign' => 'middle', 'mergeHeader' => true, 'value' => function ($model) { $model = Unitbarang::find()->where('KD_UNIT="' . $model->UNIT . '"')->one(); if (count($model) != 0) { $UnitNm = $model->NM_UNIT;