IT(112)
-
MSSQL 년도, 주차 구하기, DATEPART
● MSSQL DATEPART 로 년도 주차 구하는 법 - 년도 select DATEPART(YEAR, getdate()) 값 : 2020 - 주차 select DATEPART(WEEK, getdate()) 값 : 25 - 문자형으로 변경 select convert(char, DATEPART(YEAR, getdate())) select convert(char, DATEPART(WEEK, getdate()))
2020.06.18 -
DATETIME TO JULIAN [데이트 타임 형식의 날짜를 줄리안 형식으로 변환]
-- ================================================ -- Template generated from Template Explorer using: -- Create Scalar Function (New Menu).SQL -- -- Use the Specify Values for Template Parameters -- command (Ctrl-Shift-M) to fill in the parameter -- values below. -- -- This block of comments will not be included in -- the definition of the function. -- =========================================..
2020.06.02 -
JULIAN TO DATETIME [줄리안 형식 날짜를 데이트 타임 형식으로 변환]
-- ================================================ -- Template generated from Template Explorer using: -- Create Scalar Function (New Menu).SQL -- -- Use the Specify Values for Template Parameters -- command (Ctrl-Shift-M) to fill in the parameter -- values below. -- -- This block of comments will not be included in -- the definition of the function. -- =========================================..
2020.06.02 -
[VB .NET] TSC BARCODE PRINT / QR CODE
'프린트 오픈 Call openport("TSC 4420") '라벨가로길이, 라벨세로길이, 속도, 어둡기, 0-갭/1-마크, 라벨간격, 상단여백 Call setup(X, Y, "1", sDarkNess, "0", "3", "0") '버퍼클리어 Call clearbuffer() Dim sQRBar As String sQRBar = "TEST DATA OUTPUT" Call sendcommand("QRCODE 420,80,H,2,A,0,M2,S7," + """" + sQRBar + """") '인쇄레이블수, 인쇄매수 Call printlabel("1", "1") Call closeport()
2020.05.28 -
Visual Studio (C#) 내 PC COM Port List 확인
기존에 Visual Studio (C#) COM Port OUTPUT, C# ZPL RS232 출력에 대해서 작성한 포스팅을 보려면!! 클릭하세요!! 여기 클릭!! https://rohsstory.tistory.com/430 이번에는 내 PC에 설치되어있거나 내 PC에서 사용할수 있는 COM PORT 를 확인하는 방법을 다루도록 하겠습니다. using System.IO.Ports; // Form Load 부분에 string[] comlist = System.IO.Ports.SerialPort.GetPortNames(); if (comlist.Length > 0) { cbPort.Properties.Items.AddRange(comlist); cbPort.SelectedIndex = 0; } 폼 로드시에 ..
2020.05.14 -
Visual Studio (C#) COM Port OUTPUT, C# ZPL RS232 출력
이 간단한 문제를 나는 왜 고민 한 것인가, WriteLine 오타 하나가 이틀을 고민하게 만들었다. 아래 내용 사용하면 바로 출력 가능하며 ZPL을 따로 만들어서 출력시에만 던져주는것이 여러므로 편리하다. 이건 그냥 출력 테스트일 뿐이며, Com port 가 동작하는지 알아볼수 있는 방법이다. 내 컴퓨터의 기본 Com port 를 확인 한 후에 포트 번호를 변수로 주든 그냥 다이렉트로 입력하든 하자!! (이해했다면? 아래 내용을 확인하자!!) using System.IO.Ports; private void simpleButton1_Click(object sender, EventArgs e) { Main(); } public void Main() { SerialPort mySerialPort = new ..
2020.05.12