2021-05-03 ๐Ÿฌ Today I learned / TIL

1
post-thumbnail
post-custom-banner

๐Ÿฌ ํšŒ์‚ฌ Framework ๊ธฐ๋ฐ˜ ๊ฒŒ์‹œํŒ ๋งŒ๋“ค๊ธฐ MEMO

1. SVN

  • trunk : Main ๊ฐœ๋ฐœ์„œ๋ฒ„ ( ๋ชจ๋“ˆ ๋ณ„ )
  • branches : ๊ฐ Project ๊ฐœ๋ฐœ ๋“ฑ
 web - checkout ๋‚ด๋ ค๋ฐ›๊ธฐ 

2. SecureFx ์„œ๋ฒ„์ž์› -> Eclipse Connect
root - www/ROOT/WEB-INF/conf -> Overwrite All

3. Web Secure -> IC Licence Request -> ๋ฐœ๊ธ‰ , MAC ์ฃผ์†Œ (๋ฌผ๋ฆฌ์  ์ฃผ์†Œ) ipconfig -all

4. ์‚ฌ์šฉ์ž ๊ด€๋ฆฌ - MVC CRUD

  • ์ปฌ๋Ÿผ ์ถ”๊ฐ€
  • xxx_update.do ( update ) ๋ฐ์ดํ„ฐ ์ˆ˜์ •
  • xxx_insert.do ( add ) ๋ฐ์ดํ„ฐ ์ถ”๊ฐ€
  • xxx_list.json ๋ฐ์ดํ„ฐ ์ถ”์ถœ
  • xxx_delete.do ๋ฐ์ดํ„ฐ ์‚ญ์ œ
 xx.json (์ฃผ๋กœ data ์ฃผ๊ณ  ๋ฐ›์„ ๋•Œ ์‚ฌ์šฉ) , xxx.do ( add / update )


5. ๋‹จ์ถ•ํ‚ค

  • cursor + f3 (svc && dao ๋“ฑ ๋ฐ”๋กœ ์ด๋™ํ•œ๋‹ค)
  • ctrl + h (file ๋‚ด์šฉ์œผ๋กœ Search)
  • ctrl + shift + r (file ์ด๋ฆ„์œผ๋กœ Search)

6. parameterType="map"

  • id : 123
  • => #{id} : 123 (key : value)

7. ํ๋ฆ„
JSP - JS (~ ํ”„๋ก ํŠธ) - Controller - Service - DAO - Mapper.xml (~ ๋ฐฑ์—”๋“œ)

Util

_alert(context,options)


_alert("์•ˆ๋…•ํ•˜์„ธ์š”");

_alert("์•ˆ๋…•ํ•˜์„ธ์š”", {
	title : 'Hi',
	textConfirm : '๋„ค',
	onAgree : function(){
		// somethine do...
	}
});

_confirm(context,options)


_confirm("์ˆ˜์ •ํ•˜์‹œ๊ฒ ์Šต๋‹ˆ๊นŒ?", {
	title : '์ˆ˜์ •ํ™•์ธ',
	textConfirm : '๋„ค',
	textCancel : '์•„๋‹ˆ์˜ค',
	onAgree : function(){
		// somethine do...
	},
	onDisagree : function(){
		// somethine do...
	}
});

$element.requestData(url, requestData, options)


$('body').requestData('dashboard_list.json'
, {dashboard_id : 123}
, {callback : funtion(){
		// something do...
});

// $element (jQuery object) ๋ฐ์ดํ„ฐ ํ†ต์‹ ์‹œ loader ํ‘œ์‹œํ•  ๊ฐ์ฒด, ์ฃผ๋กœ body ์‚ฌ์šฉ
// url (String) ์š”์ฒญ url ํ•„์ˆ˜ ๊ฐ’
// requestData (Object) ์š”์ฒญ ๋ฐ์ดํ„ฐ
// -----Options-----
// ํƒ€์ž…, ์‹ฑํฌ, ์ฝœ๋ฐฑ, ..

$element.togglePage(url, options)


$("#btn1").togglePage("./login_user_list.jsp");

$("#btn2").togglePage("./login_user_list.jsp", {
		onOpen : function(){
			// do something..
		},
		onClose : function(){
			// do something..
		}
});

// $element (jQuery object) ์ด๋ฒคํŠธ ํ•ธ๋“ค ๋ฒ„ํŠผ
// url (String) ์š”์ฒญ url ํ•„์ˆ˜ ๊ฐ’
// -----Options-----
// effect(selide | show), speed, ..

ModalPopup


var modal = new ModalPopup('comcode_form.jsp', {
		width : 450,
		height : 440,
		draggable : true,
		onClose : function(){
			//do something..
		}
});

$element.exModalPopup(url, options)


$('btn1').exModalPopup('comcode_form.jsp');

$('btn2').exModalPopup('comcode_form.jsp', {
		width : 600,
		height: 400,
		onClose : function(){
			//do something..
		}
});

// $element (jQuery object) ์ด๋ฒคํŠธ ํ•ธ๋“ค ๋ฒ„ํŠผ
// url (String) ์š”์ฒญ url ํ•„์ˆ˜ ๊ฐ’
// -----Options-----
// ๋ชจ๋‹ฌ ํŒ์—… ๊ฐ€๋กœ/์„ธ๋กœ ์‚ฌ์ด์ฆˆ, draggable ์—ฌ๋ถ€, ๋ ˆ์ด์–ด ์—ด๋ฆฌ๊ณ  ์‹คํ–‰๋˜๋Š” ์ฝœ๋ฐฑ ํ•จ์ˆ˜, ๋ ˆ์ด์–ด ์ €์žฅ ํ›„ ๋‹ซํžˆ๋ฉด ์‹คํ–‰๋˜๋Š” ์ฝœ๋ฐฑ ํ•จ์ˆ˜, ..

$element.addModalPage(url, options)


$('#btn1').addModalPage('comcode_form.jsp');

$('#btn2').addModalPage('comcode_form.jsp',{
		onLoad : function(){
			// do something..
		},
		onUnload : function(){
			// do something..
		}
});

// $element (jQuery object) ์ด๋ฒคํŠธ ํ•ธ๋“ค ๋ฒ„ํŠผ
// url (String) ์š”์ฒญ url ํ•„์ˆ˜ ๊ฐ’
// -----Options-----
// on(Un)Load(ํŽ˜์ด์ง€ load๋˜๊ณ  ์‹คํ–‰๋˜๋Š” ์ฝœ๋ฐฑ ํ•จ์ˆ˜), ํ†ต์‹  ๋ฐฉ์‹, ..

loading


$element (jQuery object - Type) ($('body') - Default) loading UI๊ฐ€ ํ‘œ์‹œ๋  ์š”์†Œ
loading.show($element);
loading.hide($element);
profile
แด…แด‡ฬแด แด‡สŸแดแด˜แด˜แด‡แดœส€. แด˜ส€แดษขส€แด€แดแดแด€แด›ษชแดษด ๐Ÿ”ฅ
post-custom-banner

2๊ฐœ์˜ ๋Œ“๊ธ€

comment-user-thumbnail
2021๋…„ 5์›” 3์ผ

์™€,,,,,,์ง€ํ›ˆ์•„,,,,,

1๊ฐœ์˜ ๋‹ต๊ธ€