Untitled

mail@pastecode.io avatar
unknown
javascript
a month ago
6.1 kB
1
Indexable
Never
  let prescription = "";
            // document.getElementById('exitModalResep').onclick = function() {
            // $('#CloseModalResep').hide();
            if (obatResep != null) {
                prescription +=
                    `<div class="card col-xl col-lg col-md col-sm p-2 card-order-resep">
                                            <div class="text-left kt-font-md kt-label-font-color-3 card-option card-option-header p-1 px-2"
                                                data-toggle="modal" data-target="#modalResep" data-orderid="1"
                                                title="Click to View" style="border-left: 3px solid #ffb822;">
                                                <i class="fa fa-prescription mr-1"></i> <b>Resep</b>
                                                <span class="kt-font-sm font-weight-normal kt-font-success"></span>
                                                <br>
                                                <span class="kt-font-sm kt-label-font-color-1"></span>
                                                <div class="collapse show" id="collapseDetailOrderResep1"
                                                    aria-labelledby="headerOrderResep" data-parent="#btnDetailOrderResep1"
                                                    style="">
                                                    <table class="">
                                                        <tbody class="mt-2">
                                                            <tr class="mt-2">
                                                                <td class="mt-2">
                                                                    <input type="hidden" class="form-control"
                                                                        id="ch_kd_obat" name="ch_kd_obat[]"
                                                                        style="border: none;" value="${obatResep}" readonly>
                                                                </td>
                                                                <td>
                                                                <input type="text" id="ch_nm_obat" class="form-control" name="ch_nm_obat[]"
                                                                    value="${namaobatResep}" style="border: none;">
                                                                </td>
                                                                <td>
                                                                    <input type="hidden" class="form-control"
                                                                        id="ch_hrg_jual" name="ch_hrg_jual[]"
                                                                        value="${hrg_jual}" readonly>
                                                                </td>
                                                                <td width="70px">
                                                                    <input type="text" class="form-control"
                                                                        id="ch_qty_obat" name="ch_qty_obat[]"
                                                                        value="${qty_obat}" style="border: none;">
                                                                </td>
                                                                <td width="80px">
                                                                    <input type="text" class="form-control"
                                                                        id="ch_satuan_obat" name="ch_satuan_obat[]"
                                                                        value="${satuan_jual_obat}"
                                                                        style="border: none;">
                                                                </td>
                                                                <td>
                                                                    <input type="hidden" class="form-control"
                                                                        id="ch_signa" name="ch_signa[]"
                                                                        value="${signa_resep}" readonly>
                                                                </td>
                                                                <td>
                                                                    <input type="hidden" class="form-control"
                                                                        id="ch_cara_pakai" name="ch_cara_pakai[]"
                                                                        value="${cara_pakai_resep}" readonly>
                                                                </td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                </div>
                                            </div>
                                            <div class="kt-font-sm font-italic font-weight-normal card-option-footer text-right px-2"
                                                style="border-left: 3px solid #ffb822;" id="btnDetailOrderResep1"
                                                data-toggle="collapse" data-target="#collapseDetailOrderResep1"
                                                title="click to show item" aria-expanded="true"
                                                aria-controls="collapseDetailOrderResep1">
                                                <span class="kt-label-font-color-1">detail</span>
                                            </div>
                                        </div>`;
            } else {
                prescription += ``;
            }
Leave a Comment