Messagebox 모두 변경
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using AR;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -39,12 +40,12 @@ namespace UniMarc
|
||||
|
||||
if (ID == "")
|
||||
{
|
||||
MessageBox.Show("ID칸이 비어있습니다!");
|
||||
UTIL.MsgE("ID칸이 비어있습니다!");
|
||||
return;
|
||||
}
|
||||
if (!System.Text.RegularExpressions.Regex.IsMatch(ID, @"^[a-zA-Z0-9]"))
|
||||
{
|
||||
MessageBox.Show("영어와 숫자 조합으로 작성해주세요!");
|
||||
UTIL.MsgE("영어와 숫자 조합으로 작성해주세요!");
|
||||
isIDcheck = false;
|
||||
return;
|
||||
}
|
||||
@@ -52,12 +53,12 @@ namespace UniMarc
|
||||
string cmd = string.Format("SELECT * FROM `User_Data` WHERE `ID` = \"{0}\";", ID);
|
||||
string res = db.DB_Send_CMD_Search(cmd);
|
||||
if (res == "") {
|
||||
MessageBox.Show("사용가능한 이이디입니다. [" + ID + "]");
|
||||
UTIL.MsgI("사용가능한 이이디입니다. [" + ID + "]");
|
||||
isIDcheck = true;
|
||||
button1.ForeColor = Color.Blue;
|
||||
}
|
||||
else {
|
||||
MessageBox.Show("중복된 아이디입니다. [" + ID + "]");
|
||||
UTIL.MsgE("중복된 아이디입니다. [" + ID + "]");
|
||||
isIDcheck = false;
|
||||
}
|
||||
}
|
||||
@@ -77,7 +78,7 @@ namespace UniMarc
|
||||
foreach (string CheckText in NeedText)
|
||||
{
|
||||
if (CheckText == "") {
|
||||
MessageBox.Show("노란 박스는 꼭 채워주세요!");
|
||||
UTIL.MsgE("노란 박스는 꼭 채워주세요!");
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -85,12 +86,12 @@ namespace UniMarc
|
||||
string cmd_sanghoCheck = string.Format("SELECT * FROM `Comp` WHERE `comp_name` = \"{0}\"", tb_sangho.Text);
|
||||
string res = db.DB_Send_CMD_Search(cmd_sanghoCheck);
|
||||
if (res != "") {
|
||||
MessageBox.Show("상호명이 중복되었습니다.\n다시 확인해주세요.");
|
||||
UTIL.MsgE("상호명이 중복되었습니다.\n다시 확인해주세요.");
|
||||
return;
|
||||
}
|
||||
if (!isIDcheck)
|
||||
{
|
||||
MessageBox.Show("아이디 중복확인 먼저 진행해주세요.");
|
||||
UTIL.MsgE("아이디 중복확인 먼저 진행해주세요.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user