This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"invTransactionId": 5, | |
"createAt": "2020-04-19T18:10:54.090Z", | |
"updateAt": "2020-04-19T18:10:54.090Z", | |
"productInfo": { | |
"productId": 2, | |
"newCode": "Kamren" | |
}, | |
"inventoryInfo": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"subCategoryId": 2, | |
"newCode": "{{$randomFirstName}}", | |
"type": "IN-HOUSE", | |
"oldCode": "{{$randomFirstName}}", | |
"name": "{{$randomFirstName}}", | |
"description": "product Description", | |
"caution": "product Caution", | |
"specification": "product product spect", | |
"packingList": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"subCategoryId": 1, | |
"newCode": "{{$randomFirstName}}", | |
"type": "IN-HOUSE", | |
"oldCode": "{{$randomFirstName}}", | |
"name": "{{$randomFirstName}}", | |
"description": "product Description", | |
"caution": "product Caution", | |
"specification": "product product spect", | |
"priceValues": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
handleUpload(files){ | |
if (event.target.files && event.target.files[0]) { | |
const file = event.target.files[0]; | |
const reader = new FileReader(); | |
reader.onload = e => this.imageSrc = reader.result; | |
reader.readAsDataURL(file); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const generator = (pattern) => | |
pattern.replace(/[x]/g, c => { | |
const r = (Math.random() * 16) | 0; | |
const v = c == 'x' || 'X' ? r : (r & 0x3) | 0x8; | |
return v.toString(16); | |
}); | |
generator("xxxxxx"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const http = require("http"); | |
const fs = require("fs"); | |
const { promisify } = require("util"); | |
// convert callback To Async | |
// const readAsync = promisify(fs.readFile); | |
// convert CB to Async with promise | |
const readAsync = fileName => { | |
return new Promise((resolve, reject) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"message": "created", | |
"customerId": 5, | |
"saleId": 1, | |
"customerCode": "N/1234/041", | |
"customerStatus": "pending", | |
"companyId": 1, | |
"taxNumber": "1111", | |
"branchType": "none", | |
"customerType": "clinic", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"categoryId": 1, | |
"productCode": "aaaaa", | |
"name": "wwwww", | |
"isHidden": true, | |
"discountPercentage": 100, | |
"description": "product Description", | |
"caution": "product Caution", | |
"specification": "product product spect", | |
"note": "note", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- question 1 | |
CREATE PROCEDURE proc_customerOrder @date DATE, @orderCount INT | |
AS BEGIN | |
SELECT | |
Orders.OrderNum, | |
Orders.OrderDate, | |
Orders.CustomerNum, | |
COUNT(OrderLine.NumOrdered) AS AmountOrder, | |
SUM(OrderLine.QuotedPrice) AS SumPrice |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> //Header file for sleep(). man 3 sleep for details. | |
#include <pthread.h> | |
#define FOUR_SEAT 1 | |
#define TWO_SEAT 2 | |
#define ONE_SEAT 4 | |
#define ONE_MINUTE 60 |