전체 글 썸네일형 리스트형 Flutter & Dart Rest API 사용 API를 사용하기 위해 간단하게 모델을 만들고 class Field { late String col1; late String col2; late String col3; late String col4; late String col5; Field( {required this.col1, required this.col2, required this.col3, required this.col4, required this.col5,}); Field.formMap(Map? map) { col1 = map?['col1'] ?? ''; col2 = map?['col2'] ?? ''; col3 = map?['col3'] ?? ''; col4 = map?['col4'] ?? ''; col5 = map?['col5'] ?? .. 더보기 Flutter & Dart 에서 정규표현식(Regular Expression) 사용하기 Flutter & Dart에서 사용하는 정규 표현식이다 한글 ::: r"^[ㄱ-ㅎ가-힣]*$" 영문 ::: r"^[a-zA-Z]*$" 숫자 ::: r"^[0-9]*$" 공백 ::: r"\s+" 특수문자 ::: r'''^!#%&@`:;-.,~\\(\\)\\{\\}\\^\\[\\][*][+][$][|][']["]'' 이메일 ::: r"^[a-zA-Z0-9.a-zA-Z0-9.!#$%&'*+-/=?^_`{|}~]+@[a-zA-Z0-9]+\.[a-zA-Z]+" 와 같은 정규식을 사용하였다 한영숫자공백 허용 final validText = RegExp(r"^[ㄱ-ㅎ가-힣0-9a-zA-Z\s+]*$"); 처럼 원하는 정규식 조합을 사용하면 된다. class NickNameCheck { bool is8Character.. 더보기 Devexpress 차트 사용 그래프 형태는 Series를 추가할 때 지정하면 됩니다. 다음번에 Xbar-R 관리도 그래프를 그리는 예제를 준비 중입니다. 그래프의 구성 요소를 알면, 프로그래밍에 훨씬 도움이 되겠죠? Crosshair 라는 용어를 몰라 엄청 헤매고 나서, 혹시나 도움이 될까해서... (근데... 크로스 헤어는 뭘로 번역하나요? 십자선 도움말... 말풍선... 팝업 메세지...) // 새로 그리기 위해 차트를 클리어 chartControl1.Series.Clear(); // 제목을 클리어 하고 새로 설정 chartControl1.Titles.Clear(); DevExpress.XtraCharts.ChartTitle chartTitle1 = new DevExpress.XtraCharts.ChartTitle(); char.. 더보기 [DevExpress] Master-Detail 구조의 GridControl DataSet DataSet = new DataSet(); DataTable Master = new DataTable(); DataTable Detail = new DataTable(); Excute excute1 = new Excute(); Excute excute2 = new Excute(); //마스터, 디테일 조회 excute1.GetDS("sp_MES0302_S1"); excute2.GetDS("sp_MES0302_S2"); //마스터, 디테일 넣고 테이블 이름 설정 Master = excute1.dt; Detail = excute2.dt; Master.TableName = "Master"; Detail.TableName = "Detail"; //데이터셋에 마스터, 디테일 넣고 ParentCol.. 더보기 C# 파일 열기 // 파일 경로 받아와서 sFileName = C\\WQE\QWE\QWE\ASD //PC에 설치된 프로그램으로 해당 파일 오픈 시켜줌 System.IO.FileInfo fileObj = new System.IO.FileInfo(sFileName); fileObj.Attributes = System.IO.FileAttributes.ReadOnly; System.Diagnostics.Process.Start(fileObj.FullName); //////// 주의사항 //////// 서버에 있는 파일 열 경우 수정 저장이 될 수 있음.. 더보기 C# 파일 저장 public string File_SAVE(string fileName) { //경로에 파일이 있는지 여부 체크 if (string.IsNullOrWhiteSpace(fileName)) { return null; } //저장경로 설정 string dirPath = AppDomain.CurrentDomain.BaseDirectory; string savePath = Path.Combine(dirPath, fileName); //저장경로에 디렉토리 없으면 만들어줌 if (!Directory.Exists(dirPath)) Directory.CreateDirectory(dirPath); try { byte[] file; using (var stream = new FileStream(dFileName, FileM.. 더보기 C# MdiChildren 폼 호출시 화면 깜빡이는현상 //폼 호출 시 버퍼(깜빡거림) 잡아줌 근데 외국인들도 왜 이걸로 해결되는지 이유를 모름 protected override CreateParams CreateParams { get { CreateParams paras = base.CreateParams; paras.ExStyle |= 0x02000000; return paras; } } 메인폼, 각 호출폼에 다 있어야함 상속으로도 가능 더보기 C# MdiChildren 폼 호출 foreach (Form item in this.MdiChildren) { if (sBTN == item.Name) { item.Focus(); return; } } formName.Dock = DockStyle.Fill; formName.MdiParent = this; formName.Show(); 메인폼 IsMdiContainer = True 설정 후 사용 폼은 빈공간에 뜨게된다. 더보기 이전 1 ··· 7 8 9 10 11 다음