Commit 2886356c by Chanachai

Add การแก้ไขการจอง

parent 65c64cac
...@@ -3,6 +3,7 @@ import { roomDetail } from "./roomDetail.model" ...@@ -3,6 +3,7 @@ import { roomDetail } from "./roomDetail.model"
export class Room { export class Room {
rId: number; rId: number;
rName: string; rName: string;
rType : string;
rPic: string; rPic: string;
roomLimit: number; roomLimit: number;
rDesc: string; rDesc: string;
......
...@@ -124,9 +124,9 @@ ...@@ -124,9 +124,9 @@
<div [ngbNavOutlet]="nav"></div> <div [ngbNavOutlet]="nav"></div>
</div> </div>
<ng-template #contentroom let-modal style="padding: 0; "> <ng-template #contentroom let-modal >
<div class=" col-md-12"> <div class=" col-md-12" style="padding: 0; ">
<div class="card"> <div class="card" style="margin: 0; ">
<div class=" card-header"> <div class=" card-header">
<h5 class=" title">Add Equirment</h5> <h5 class=" title">Add Equirment</h5>
</div> </div>
...@@ -174,9 +174,9 @@ ...@@ -174,9 +174,9 @@
</div> </div>
</ng-template> </ng-template>
<ng-template #contentequirment let-modal style="padding: 0; "> <ng-template #contentequirment let-modal >
<div class=" col-md-12"> <div class=" col-md-12" style="padding: 0; ">
<div class="card"> <div class="card" style="margin: 0; ">
<div class=" card-header"> <div class=" card-header">
<h5 class=" title">Add Equirment</h5> <h5 class=" title">Add Equirment</h5>
</div> </div>
...@@ -228,9 +228,9 @@ ...@@ -228,9 +228,9 @@
</div> </div>
</ng-template> </ng-template>
<ng-template #editroom let-modal style="padding: 0; "> <ng-template #editroom let-modal >
<div class=" col-md-12"> <div class=" col-md-12" style="padding: 0; ">
<div class="card"> <div class="card" style="margin: 0; ">
<div class=" card-header"> <div class=" card-header">
<h5 class=" title">แก้ไขข้อมูล</h5> <h5 class=" title">แก้ไขข้อมูล</h5>
</div> </div>
...@@ -240,7 +240,15 @@ ...@@ -240,7 +240,15 @@
<div class=" col-md-12"> <div class=" col-md-12">
<div class=" form-group"> <div class=" form-group">
<label> ชื่อ </label> <label> ชื่อ </label>
<input class=" form-control" type="text" [value]="modelroomDetail.room.rName"> <input class=" form-control" type="text" [(ngModel)]="modelroomDetail.room.rName">
</div>
</div>
</div>
<div class=" row">
<div class=" col-md-12">
<div class=" form-group">
<label> ประเภท </label>
<input class=" form-control" type="text" [(ngModel)]="modelroomDetail.room.rType">
</div> </div>
</div> </div>
</div> </div>
...@@ -263,9 +271,9 @@ ...@@ -263,9 +271,9 @@
</div> </div>
</ng-template> </ng-template>
<ng-template #editLend let-modal style="padding: 0; "> <ng-template #editLend let-modal >
<div class=" col-md-12"> <div class=" col-md-12" style="padding: 0; ">
<div class="card"> <div class="card" style="margin: 0; ">
<div class=" card-header"> <div class=" card-header">
<h5 class=" title">แก้ไขข้อมูล</h5> <h5 class=" title">แก้ไขข้อมูล</h5>
</div> </div>
...@@ -275,7 +283,7 @@ ...@@ -275,7 +283,7 @@
<div class=" col-md-12"> <div class=" col-md-12">
<div class=" form-group"> <div class=" form-group">
<label> ชื่อ </label> <label> ชื่อ </label>
<input class=" form-control" type="text" [value]="modelitemDetail.equirment.rName"> <input class=" form-control" type="text" [(ngModel)]="modelitemDetail.equirment.eqName">
</div> </div>
</div> </div>
</div> </div>
...@@ -307,9 +315,9 @@ ...@@ -307,9 +315,9 @@
</div> </div>
</ng-template> </ng-template>
<ng-template #Room let-modal style="padding: 0; "> <ng-template #Room let-modal >
<div class=" col-md-12"> <div class=" col-md-12" style="padding: 0; ">
<div class="card"> <div class="card" style="margin: 0; ">
<div class=" card-header"> <div class=" card-header">
<h5 class=" title">การจอง</h5> <h5 class=" title">การจอง</h5>
</div> </div>
...@@ -382,9 +390,9 @@ ...@@ -382,9 +390,9 @@
</div> </div>
</ng-template> </ng-template>
<ng-template #Lend let-modal style="padding: 0; "> <ng-template #Lend let-modal>
<div class=" col-md-12"> <div class=" col-md-12" style="padding: 0; ">
<div class="card"> <div class="card" style="margin: 0; ">
<div class=" card-header"> <div class=" card-header">
<h5 class=" title">Lend Equirment</h5> <h5 class=" title">Lend Equirment</h5>
</div> </div>
......
...@@ -13,6 +13,7 @@ export class roomDetailService { ...@@ -13,6 +13,7 @@ export class roomDetailService {
room: { room: {
rId: 1, rId: 1,
rName: "ห้องเดียว", rName: "ห้องเดียว",
rType : "ห้อง",
rPic: "assets/img/room.jpg", rPic: "assets/img/room.jpg",
roomLimit: 25, roomLimit: 25,
rDesc: "จำนวนคน 25 คน", rDesc: "จำนวนคน 25 คน",
...@@ -38,6 +39,7 @@ export class roomDetailService { ...@@ -38,6 +39,7 @@ export class roomDetailService {
room: { room: {
rId: 2, rId: 2,
rName: "ห้องคู่", rName: "ห้องคู่",
rType : "ห้อง",
rPic: "assets/img/room.jpg", rPic: "assets/img/room.jpg",
roomLimit: 50, roomLimit: 50,
rDesc: "จำนวนคน 50 คน", rDesc: "จำนวนคน 50 คน",
......
...@@ -14,6 +14,7 @@ export class RoomService { ...@@ -14,6 +14,7 @@ export class RoomService {
{ {
rId: 1, rId: 1,
rName: "ห้องเดียว", rName: "ห้องเดียว",
rType : "ห้อง",
rPic: "assets/img/room.jpg", rPic: "assets/img/room.jpg",
roomLimit: 25, roomLimit: 25,
rDesc: "จำนวนคน 25 คน", rDesc: "จำนวนคน 25 คน",
...@@ -21,7 +22,7 @@ export class RoomService { ...@@ -21,7 +22,7 @@ export class RoomService {
{ {
rId: 2, rId: 2,
rName: "ห้องคู่", rName: "ห้องคู่",
rType : "ห้อง",
rPic: "assets/img/room.jpg", rPic: "assets/img/room.jpg",
roomLimit: 50, roomLimit: 50,
rDesc: "จำนวนคน 50 คน", rDesc: "จำนวนคน 50 คน",
...@@ -29,6 +30,7 @@ export class RoomService { ...@@ -29,6 +30,7 @@ export class RoomService {
{ {
rId: 3, rId: 3,
rName: "ห้องรวม", rName: "ห้องรวม",
rType : "ห้อง",
rPic: "assets/img/room.jpg", rPic: "assets/img/room.jpg",
roomLimit: 100, roomLimit: 100,
rDesc: "จำนวนคน 100 คน", rDesc: "จำนวนคน 100 คน",
...@@ -36,6 +38,7 @@ export class RoomService { ...@@ -36,6 +38,7 @@ export class RoomService {
{ {
rId: 4, rId: 4,
rName: "รถ", rName: "รถ",
rType : "รถ",
rPic: "assets/img/car.jpg", rPic: "assets/img/car.jpg",
roomLimit: 0, roomLimit: 0,
rDesc: "รถ", rDesc: "รถ",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment