/* Table
ex) EVNT03TT
*/
CREATE TABLE EVNT03TT (
REGDATE DATE DEFAULT SYSDATE NOT NULL
, USERID VARCHAR2 NOT NULL
, EVENTID VARCHAR2 NOT NULL
, EVENTNO NUMBER NOT NULL
, USE_CNT NUMBER DEFAULT 0 NOT NULL
, REMINE_CNT NUMBER DEFAULT 0 NOT NULL
, CONSTRAINT EVNT03TPK PRIMARY KEY (REGDATE, USERID, EVENTID)
);
/*
INDEX :
Naming Guide
ex) EVNT03S1
CREATE INDEX EVNT03S1 ON EVNT03TT (USERID)
*/
/*
SEQUENCE :
ex) EVNT03SQ
CREATE SEQUENCE EVNT03SQ;
*/
/* COMMENT
*/
-- 테이블 및 컬럼 주석 (테이블의 주석과 컬럼의 주석을 써서 보내주셔야 나중에 도움이 많이 됩니다.)
COMMENT ON TABLE EVNT03TT IS '에이스 카드 이벤트 테이블';
COMMENT ON COLUMN EVNT03TT.USERID IS '회원 아이디';
COMMENT ON COLUMN EVNT03TT.EVENTID IS '이벤트 종류(응모1, 응모2)'
COMMENT ON COLUMN EVNT03TT.EVENTID IS '상품번호(1~13)'
COMMENT ON COLUMN EVNT03TT.USE_CNT IS '에이스 카드 사용 장수'
COMMENT ON COLUMN EVNT03TT.REMINE_CNT IS '남은 에이스 카드'
COMMENT ON COLUMN EVNT03TT.REGDATE IS '사용일자';

서버단에서 비동기 호출등이 필요한 경우 사용(ASP) 하는 방법

.NET 에서 호출하는 방법은 여기 를 참조.

ASP

Dim objXMLHTTP, returnValue

Set objXMLHTTP = Server.CreateObject("msxml2.serverxmlhttp")

'Set objXMLHTTP = Server.CreateObject("msxml2.xmlhttp")

'GET 또는 POST 사용 가능

'url 은 http 를 포함한 형태로 작성

objXMLHTTP.Open "GET", "url", False

'POST 형태로 전송 시 objXMLHTTP.Send "parmaters"의 형태를 사용

objXMLHTTP.Send

returnValue = objXMLHTTP.responsetext


기존 Alert 창이 모달이긴 하나, 디자인적인 수정도 안되며, 별로 아름답지 않아서.. jQuery를 이용해 커스텀 alert창을 만들게 되었다.
차후에 다른 ui를 더해서 하나의 ui 라이브러리 및 테마 적용을 위해 js, css, html 을 따로 제작 하였다.
CSS
#l_alert_bg { display:block; position:fixed; _position:absolute; top:0; left:0; width:100%; height:100%; z-index:10000; }
#l_alert_bg.open { display:block; }
#l_alert_bg .bg { position:absolute; top:0; left:0; width:100%; height:100%; background:#000; opacity:.5; filter:alpha(opacity=50); }
#l_alert { width:400px; background:#c5d8eb; padding:2px 2px 2px 2px; font-size:small; position:absolute; top:50%; left:50%; margin:-150px 0 0 -194px; line-height:normal; white-space:normal;}
#l_alert_title { height:20px; display:block; background:#9dc6ef; padding-top:3px; font-weight:bold; color:black; }
#l_alert_content { background:white; padding-top:5px; padding-bottom:10px; padding-right:5px; padding-left:5px; }
#l_alert_icon { float:left; background-image:url('/Content/alert_img.gif'); width:40px; height:40px; }
#l_alert_detail { margin-left:50px; padding-bottom:20px; }
#l_alert_btnSpace { background:#ddd;padding-top:5px; padding-bottom:2px; padding-right:5px; height:23px; clear:both; }
#l_alert_btnConfirm { height:18px; width:50px; border:double 3px black; float:right; text-align:center; cursor:pointer; background:white; padding-top:2px; }
#l_alert_btnConfirm a { text-decoration:none;}
JS
// 경고창 출력
function Alert(msg) {
var str = '';
str = '<div id="l_alert_bg" class=""><div class="bg"></div> ';
str = str + ' <div id="l_alert"> ';
str = str + ' <div id="l_alert_title"> ';
str = str + ' 확인 ';
str = str + ' </div> ';
str = str + ' <div id="l_alert_content"> ';
str = str + ' <div id="l_alert_icon"></div> ';
str = str + ' <div id="l_alert_detail">' + msg + '</div> ';
str = str + ' </div> ';
str = str + ' <div id="l_alert_btnSpace"> ';
str = str + ' <div id="l_alert_btnConfirm"><a href="#" onclick="AlertClose();">확인</a></div> ';
str = str + ' </div> ';
str = str + ' </div> ';
str = str + '</div> ';
$(str).appendTo(document.body);
$('#l_alert_bg').addClass('open');
}
function AlertClose() {
$('#l_alert_bg').remove();
return false;
}
function AlertT(title, msg) {
var str = '';
str = '<div id="l_alert_bg" class=""><div class="bg"></div> ';
str = str + ' <div id="l_alert"> ';
str = str + ' <div id="l_alert_title"> ';
str = str + ' ' + title + ' ';
str = str + ' </div> ';
str = str + ' <div id="l_alert_content"> ';
str = str + ' <div id="l_alert_icon"></div> ';
str = str + ' <div id="l_alert_detail">' + msg + '</div> ';
str = str + ' </div> ';
str = str + ' <div id="l_alert_btnSpace"> ';
str = str + ' <div id="l_alert_btnConfirm" onclick="AlertClose();"><a href="#" onclick="AlertClose();">확인</a></div> ';
str = str + ' </div> ';
str = str + ' </div> ';
str = str + '</div> ';
$(str).appendTo(document.body);
$('#l_alert_bg').addClass('open');
}
HTML
<a href="#" onclick="Alert('확인 버튼 누르시오..');">얼랏?</a>
<a href="#" onclick="AlertT('타이틀', '확인 버튼 누르시오..');">타이틀</a>

C:\Program Files\Microsoft Visual Studio9\Common7\IDE\TFSDeleteProject /q /server:GAMEWEBDEV FONE

/q - 자동 모드

/server:서버명

FONE 프로젝트 명


c:\Inetpub\AdminScripts> cscript adsutil.vbs set w3svc/apppools/enable32bitapponwin64 true

위 명령어 실행후 " iisreset "


// App.xaml

private void Appllication_Startup(object sender, StartupEventArgs e)
{
// this.RootVisual = new Page(); 에서 변경
this.RootVisual = new Page(e.InitParams);
}

// Page.xaml

// public Page()
// {
// InitializeComponent();
// }
// 에서 변경

public Page(IDictionary<string, string> InitParams)
{
InitializeComponent();
param = InitParams["category"].ToString();
}


// HtmlPage를 사용하기 위한 지시자 선언
using System.Windows.Browser;

// 페이지 이동
HtmlPage.Window.Navigate(new Uri(http://www.naver.com, UriKind.Absolute));


// 이미지소스 변경을 위한 컨버터 생성
ImageSourceConvert isc = new ImageSourceConverter();

// 이미지 컨트롤에 소스를 변경하기 위한 이미지소스 생성
ImageSource img;

// 이미지 소스에 컨버터를 이용하여 이미지 파싱
img = (ImageSource)isc.ConvertFromString("URL");

// 이미지 컨트롤에 SetValue를 이용하여, Image.SourceProperty를 변경
ImgControl.SetValue(Image.SourceProperty, img);


window.setInterval(hotNewsToggle, 5000);

hotNewsToggle <-- 함수명

5000 <-- 1/1000 초 단위

+ Recent posts