nexacro 구현중
- 백업
@@ -2,6 +2,7 @@ package com.hacademy.nexacrospring.controller;
|
|||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.web.bind.annotation.CrossOrigin;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
|
||||||
@@ -13,6 +14,7 @@ import com.nexacro.uiadapter17.spring.core.data.NexacroResult;
|
|||||||
* - 매핑 구현 시 NexacroResult를 반환하도록 구현
|
* - 매핑 구현 시 NexacroResult를 반환하도록 구현
|
||||||
*/
|
*/
|
||||||
@Controller
|
@Controller
|
||||||
|
@CrossOrigin
|
||||||
@RequestMapping("/nexacro")
|
@RequestMapping("/nexacro")
|
||||||
public class NexacroController {
|
public class NexacroController {
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import lombok.NoArgsConstructor;
|
|||||||
|
|
||||||
@Data @NoArgsConstructor @AllArgsConstructor @Builder
|
@Data @NoArgsConstructor @AllArgsConstructor @Builder
|
||||||
public class Emp {
|
public class Emp {
|
||||||
private int empNo;
|
private int empId;
|
||||||
private String empName;
|
private String empName;
|
||||||
private int salary;
|
private int salary;
|
||||||
private Date hireDate;
|
private Date hireDate;
|
||||||
|
|||||||
@@ -0,0 +1,91 @@
|
|||||||
|
(function()
|
||||||
|
{
|
||||||
|
return function()
|
||||||
|
{
|
||||||
|
this.on_loadAppVariables = function()
|
||||||
|
{
|
||||||
|
var obj = null;
|
||||||
|
|
||||||
|
// global dataset
|
||||||
|
|
||||||
|
|
||||||
|
// global variable
|
||||||
|
|
||||||
|
|
||||||
|
obj = null;
|
||||||
|
};
|
||||||
|
|
||||||
|
// property, event, createMainFrame
|
||||||
|
this.on_initApplication = function()
|
||||||
|
{
|
||||||
|
// properties
|
||||||
|
this.set_id("Application_Desktop");
|
||||||
|
this.set_screenid("Desktop_screen");
|
||||||
|
|
||||||
|
if (this._is_attach_childframe)
|
||||||
|
return;
|
||||||
|
|
||||||
|
// frame
|
||||||
|
var mainframe = this.createMainFrame("mainframe","0","0","1280","720",null,null,this);
|
||||||
|
mainframe.set_showtitlebar("true");
|
||||||
|
mainframe.set_showstatusbar("true");
|
||||||
|
mainframe.set_titletext("TopLeftFrame");
|
||||||
|
mainframe.on_createBodyFrame = this.mainframe_createBodyFrame;
|
||||||
|
|
||||||
|
// tray
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
this.loadPreloadList = function()
|
||||||
|
{
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
this.mainframe_createBodyFrame = function()
|
||||||
|
{
|
||||||
|
var frame0 = new VFrameSet("VFrameSet00",null,null,null,null,null,null,this);
|
||||||
|
frame0.set_separatesize("50,*");
|
||||||
|
this.addChild(frame0.name, frame0);
|
||||||
|
this.frame=frame0;
|
||||||
|
|
||||||
|
var frame1 = new ChildFrame("TopFrame",null,null,null,null,null,null,"FrameBase::Form_Top.xfdl",frame0);
|
||||||
|
frame1.set_showtitlebar("false");
|
||||||
|
frame1.set_showstatusbar("false");
|
||||||
|
frame0.addChild(frame1.name, frame1);
|
||||||
|
frame1.set_formurl("FrameBase::Form_Top.xfdl");
|
||||||
|
|
||||||
|
|
||||||
|
var frame2 = new HFrameSet("HFrameSet00",null,null,null,null,null,null,frame0);
|
||||||
|
frame2.set_separatesize("200,*");
|
||||||
|
frame0.addChild(frame2.name, frame2);
|
||||||
|
|
||||||
|
var frame3 = new ChildFrame("LeftFrame",null,null,null,null,null,null,"FrameBase::Form_Left.xfdl",frame2);
|
||||||
|
frame3.set_showtitlebar("false");
|
||||||
|
frame3.set_showstatusbar("false");
|
||||||
|
frame2.addChild(frame3.name, frame3);
|
||||||
|
frame3.set_formurl("FrameBase::Form_Left.xfdl");
|
||||||
|
|
||||||
|
|
||||||
|
var frame4 = new ChildFrame("WorkFrame",null,null,null,null,null,null,"FrameBase::Form_Work.xfdl",frame2);
|
||||||
|
frame4.set_showtitlebar("false");
|
||||||
|
frame4.set_showstatusbar("false");
|
||||||
|
frame2.addChild(frame4.name, frame4);
|
||||||
|
frame4.set_formurl("FrameBase::Form_Work.xfdl");
|
||||||
|
};
|
||||||
|
|
||||||
|
this.on_initEvent = function()
|
||||||
|
{
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
// script Compiler
|
||||||
|
|
||||||
|
|
||||||
|
this.checkLicense("");
|
||||||
|
|
||||||
|
this.loadPreloadList();
|
||||||
|
|
||||||
|
this.loadIncludeScript("Application_Desktop.xadl");
|
||||||
|
};
|
||||||
|
}
|
||||||
|
)();
|
||||||
@@ -0,0 +1,87 @@
|
|||||||
|
(function()
|
||||||
|
{
|
||||||
|
return function()
|
||||||
|
{
|
||||||
|
if (!this._is_form)
|
||||||
|
return;
|
||||||
|
|
||||||
|
var obj = null;
|
||||||
|
|
||||||
|
this.on_create = function()
|
||||||
|
{
|
||||||
|
this.set_name("EmpList");
|
||||||
|
this.set_titletext("New Form");
|
||||||
|
if (Form == this.constructor)
|
||||||
|
{
|
||||||
|
this._setFormPosition(1280,720);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Object(Dataset, ExcelExportObject) Initialize
|
||||||
|
obj = new Dataset("dsEmp", this);
|
||||||
|
obj._setContents("<ColumnInfo><Column id=\"empId\" type=\"INT\" size=\"38\"/><Column id=\"empName\" type=\"STRING\" size=\"21\"/><Column id=\"salary\" type=\"INT\" size=\"38\"/><Column id=\"hireDate\" type=\"DATE\" size=\"256\"/><Column id=\"phoneNumber\" type=\"STRING\" size=\"11\"/><Column id=\"email\" type=\"STRING\" size=\"50\"/><Column id=\"position\" type=\"STRING\" size=\"30\"/><Column id=\"dept\" type=\"STRING\" size=\"30\"/></ColumnInfo>");
|
||||||
|
this.addChild(obj.name, obj);
|
||||||
|
|
||||||
|
// UI Components Initialize
|
||||||
|
obj = new Static("Static00","41","33","149","82",null,null,null,null,null,null,this);
|
||||||
|
obj.set_taborder("0");
|
||||||
|
obj.set_text("사원 조회");
|
||||||
|
obj.set_font("30px/normal \"Gulim\"");
|
||||||
|
this.addChild(obj.name, obj);
|
||||||
|
|
||||||
|
obj = new Grid("Grid00","40","194","1200","453",null,null,null,null,null,null,this);
|
||||||
|
obj.set_taborder("1");
|
||||||
|
obj.set_binddataset("dsEmp");
|
||||||
|
obj._setContents("<Formats><Format id=\"default\"><Columns><Column size=\"100\"/><Column size=\"150\"/><Column size=\"120\"/><Column size=\"150\"/><Column size=\"200\"/><Column size=\"240\"/><Column size=\"120\"/><Column size=\"120\"/></Columns><Rows><Row size=\"24\" band=\"head\"/><Row size=\"24\"/></Rows><Band id=\"head\"><Cell text=\"empId\"/><Cell col=\"1\" text=\"empName\"/><Cell col=\"2\" text=\"salary\"/><Cell col=\"3\" text=\"hireDate\"/><Cell col=\"4\" text=\"phoneNumber\"/><Cell col=\"5\" text=\"email\"/><Cell col=\"6\" text=\"position\"/><Cell col=\"7\" text=\"dept\"/></Band><Band id=\"body\"><Cell text=\"bind:empId\"/><Cell col=\"1\" text=\"bind:empName\"/><Cell col=\"2\" text=\"bind:salary\"/><Cell col=\"3\" text=\"bind:hireDate\"/><Cell col=\"4\" text=\"bind:phoneNumber\"/><Cell col=\"5\" text=\"bind:email\"/><Cell col=\"6\" text=\"bind:position\"/><Cell col=\"7\" text=\"bind:dept\"/></Band></Format></Formats>");
|
||||||
|
this.addChild(obj.name, obj);
|
||||||
|
|
||||||
|
// Layout Functions
|
||||||
|
//-- Default Layout : this
|
||||||
|
obj = new Layout("default","",1280,720,this,function(p){});
|
||||||
|
obj.set_mobileorientation("landscape");
|
||||||
|
this.addLayout(obj.name, obj);
|
||||||
|
|
||||||
|
// BindItem Information
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
this.loadPreloadList = function()
|
||||||
|
{
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
// User Script
|
||||||
|
this.registerScript("EmpList.xfdl", function() {
|
||||||
|
|
||||||
|
this.EmpList_onload = function(obj,e)
|
||||||
|
{
|
||||||
|
//시작 시 전체 목록을 조회하여 화면에 출력
|
||||||
|
var id = "emp_list";
|
||||||
|
var url = "http://localhost:8080/nexacrospring/nexacro/list";
|
||||||
|
var reqDs = "";
|
||||||
|
var resDs = "dsEmp=list";
|
||||||
|
var args = "";
|
||||||
|
var callback = "displayList";
|
||||||
|
|
||||||
|
this.transaction(id, url, reqDs, resDs, args, callback);
|
||||||
|
};
|
||||||
|
|
||||||
|
this.displayList = function(id, code, message){
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
// Regist UI Components Event
|
||||||
|
this.on_initEvent = function()
|
||||||
|
{
|
||||||
|
this.addEventHandler("onload",this.EmpList_onload,this);
|
||||||
|
};
|
||||||
|
|
||||||
|
this.loadIncludeScript("EmpList.xfdl");
|
||||||
|
this.loadPreloadList();
|
||||||
|
|
||||||
|
// Remove Reference
|
||||||
|
obj = null;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
)();
|
||||||
@@ -0,0 +1,64 @@
|
|||||||
|
(function()
|
||||||
|
{
|
||||||
|
return function()
|
||||||
|
{
|
||||||
|
if (!this._is_form)
|
||||||
|
return;
|
||||||
|
|
||||||
|
var obj = null;
|
||||||
|
|
||||||
|
this.on_create = function()
|
||||||
|
{
|
||||||
|
this.set_name("Form_Left");
|
||||||
|
this.set_titletext("Form_Left");
|
||||||
|
if (Form == this.constructor)
|
||||||
|
{
|
||||||
|
this._setFormPosition(200,670);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Object(Dataset, ExcelExportObject) Initialize
|
||||||
|
|
||||||
|
|
||||||
|
// UI Components Initialize
|
||||||
|
obj = new ListBox("ListBox00","25","36","148","434",null,null,null,null,null,null,this);
|
||||||
|
obj.set_taborder("0");
|
||||||
|
this.addChild(obj.name, obj);
|
||||||
|
|
||||||
|
// Layout Functions
|
||||||
|
//-- Default Layout : this
|
||||||
|
obj = new Layout("default","Desktop_screen",200,670,this,function(p){});
|
||||||
|
this.addLayout(obj.name, obj);
|
||||||
|
|
||||||
|
// BindItem Information
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
this.loadPreloadList = function()
|
||||||
|
{
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
// User Script
|
||||||
|
this.registerScript("Form_Left.xfdl", function() {
|
||||||
|
|
||||||
|
this.ListBox00_onitemchanged = function(obj,e)
|
||||||
|
{
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
// Regist UI Components Event
|
||||||
|
this.on_initEvent = function()
|
||||||
|
{
|
||||||
|
this.ListBox00.addEventHandler("onitemchanged",this.ListBox00_onitemchanged,this);
|
||||||
|
};
|
||||||
|
|
||||||
|
this.loadIncludeScript("Form_Left.xfdl");
|
||||||
|
this.loadPreloadList();
|
||||||
|
|
||||||
|
// Remove Reference
|
||||||
|
obj = null;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
)();
|
||||||
@@ -0,0 +1,59 @@
|
|||||||
|
(function()
|
||||||
|
{
|
||||||
|
return function()
|
||||||
|
{
|
||||||
|
if (!this._is_form)
|
||||||
|
return;
|
||||||
|
|
||||||
|
var obj = null;
|
||||||
|
|
||||||
|
this.on_create = function()
|
||||||
|
{
|
||||||
|
this.set_name("Form_Top");
|
||||||
|
this.set_titletext("Form_Top");
|
||||||
|
if (Form == this.constructor)
|
||||||
|
{
|
||||||
|
this._setFormPosition(1280,60);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Object(Dataset, ExcelExportObject) Initialize
|
||||||
|
|
||||||
|
|
||||||
|
// UI Components Initialize
|
||||||
|
obj = new Static("Static00","16","10","348","42",null,null,null,null,null,null,this);
|
||||||
|
obj.set_taborder("0");
|
||||||
|
obj.set_text("Nexacro Spring 연동 예제");
|
||||||
|
obj.set_font("25px/normal \"Gulim\"");
|
||||||
|
this.addChild(obj.name, obj);
|
||||||
|
|
||||||
|
// Layout Functions
|
||||||
|
//-- Default Layout : this
|
||||||
|
obj = new Layout("default","Desktop_screen",1280,60,this,function(p){});
|
||||||
|
this.addLayout(obj.name, obj);
|
||||||
|
|
||||||
|
// BindItem Information
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
this.loadPreloadList = function()
|
||||||
|
{
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
// User Script
|
||||||
|
|
||||||
|
|
||||||
|
// Regist UI Components Event
|
||||||
|
this.on_initEvent = function()
|
||||||
|
{
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
this.loadIncludeScript("Form_Top.xfdl");
|
||||||
|
this.loadPreloadList();
|
||||||
|
|
||||||
|
// Remove Reference
|
||||||
|
obj = null;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
)();
|
||||||
@@ -0,0 +1,65 @@
|
|||||||
|
(function()
|
||||||
|
{
|
||||||
|
return function()
|
||||||
|
{
|
||||||
|
if (!this._is_form)
|
||||||
|
return;
|
||||||
|
|
||||||
|
var obj = null;
|
||||||
|
|
||||||
|
this.on_create = function()
|
||||||
|
{
|
||||||
|
this.set_name("Form_Work");
|
||||||
|
this.set_titletext("Form_Work");
|
||||||
|
if (Form == this.constructor)
|
||||||
|
{
|
||||||
|
this._setFormPosition(1080,670);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Object(Dataset, ExcelExportObject) Initialize
|
||||||
|
|
||||||
|
|
||||||
|
// UI Components Initialize
|
||||||
|
obj = new Button("Button00","60","30","179","60",null,null,null,null,null,null,this);
|
||||||
|
obj.set_taborder("0");
|
||||||
|
obj.set_text("목록");
|
||||||
|
this.addChild(obj.name, obj);
|
||||||
|
|
||||||
|
// Layout Functions
|
||||||
|
//-- Default Layout : this
|
||||||
|
obj = new Layout("default","Desktop_screen",1080,670,this,function(p){});
|
||||||
|
this.addLayout(obj.name, obj);
|
||||||
|
|
||||||
|
// BindItem Information
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
this.loadPreloadList = function()
|
||||||
|
{
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
// User Script
|
||||||
|
this.registerScript("Form_Work.xfdl", function() {
|
||||||
|
|
||||||
|
this.Button00_onclick = function(obj,e)
|
||||||
|
{
|
||||||
|
this.go("Base::EmpList.xfdl");
|
||||||
|
};
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
// Regist UI Components Event
|
||||||
|
this.on_initEvent = function()
|
||||||
|
{
|
||||||
|
this.Button00.addEventHandler("onclick",this.Button00_onclick,this);
|
||||||
|
};
|
||||||
|
|
||||||
|
this.loadIncludeScript("Form_Work.xfdl");
|
||||||
|
this.loadPreloadList();
|
||||||
|
|
||||||
|
// Remove Reference
|
||||||
|
obj = null;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
)();
|
||||||
|
After Width: | Height: | Size: 1014 B |
|
After Width: | Height: | Size: 1017 B |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 978 B |
|
After Width: | Height: | Size: 980 B |
|
After Width: | Height: | Size: 988 B |
|
After Width: | Height: | Size: 970 B |
|
After Width: | Height: | Size: 972 B |
|
After Width: | Height: | Size: 979 B |
|
After Width: | Height: | Size: 988 B |
|
After Width: | Height: | Size: 991 B |
|
After Width: | Height: | Size: 1002 B |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 965 B |
|
After Width: | Height: | Size: 955 B |
|
After Width: | Height: | Size: 962 B |
|
After Width: | Height: | Size: 954 B |
|
After Width: | Height: | Size: 937 B |
|
After Width: | Height: | Size: 937 B |
|
After Width: | Height: | Size: 935 B |
|
After Width: | Height: | Size: 939 B |
|
After Width: | Height: | Size: 940 B |
|
After Width: | Height: | Size: 939 B |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 948 B |
|
After Width: | Height: | Size: 941 B |
|
After Width: | Height: | Size: 940 B |
|
After Width: | Height: | Size: 945 B |
|
After Width: | Height: | Size: 945 B |
|
After Width: | Height: | Size: 945 B |
|
After Width: | Height: | Size: 964 B |
|
After Width: | Height: | Size: 964 B |
|
After Width: | Height: | Size: 961 B |
|
After Width: | Height: | Size: 961 B |
|
After Width: | Height: | Size: 961 B |
|
After Width: | Height: | Size: 962 B |
|
After Width: | Height: | Size: 968 B |
|
After Width: | Height: | Size: 968 B |
|
After Width: | Height: | Size: 968 B |
|
After Width: | Height: | Size: 968 B |
|
After Width: | Height: | Size: 968 B |
|
After Width: | Height: | Size: 966 B |
|
After Width: | Height: | Size: 961 B |
|
After Width: | Height: | Size: 960 B |
|
After Width: | Height: | Size: 960 B |
|
After Width: | Height: | Size: 960 B |
|
After Width: | Height: | Size: 960 B |
|
After Width: | Height: | Size: 960 B |
|
After Width: | Height: | Size: 943 B |
|
After Width: | Height: | Size: 1016 B |
|
After Width: | Height: | Size: 937 B |
|
After Width: | Height: | Size: 937 B |
|
After Width: | Height: | Size: 937 B |
|
After Width: | Height: | Size: 937 B |
|
After Width: | Height: | Size: 940 B |
|
After Width: | Height: | Size: 940 B |
|
After Width: | Height: | Size: 940 B |
|
After Width: | Height: | Size: 940 B |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1019 B |
|
After Width: | Height: | Size: 974 B |
|
After Width: | Height: | Size: 970 B |
|
After Width: | Height: | Size: 973 B |
|
After Width: | Height: | Size: 973 B |
|
After Width: | Height: | Size: 970 B |
|
After Width: | Height: | Size: 970 B |
|
After Width: | Height: | Size: 970 B |
|
After Width: | Height: | Size: 1008 B |
|
After Width: | Height: | Size: 1003 B |
|
After Width: | Height: | Size: 940 B |
|
After Width: | Height: | Size: 940 B |
|
After Width: | Height: | Size: 940 B |
|
After Width: | Height: | Size: 937 B |
|
After Width: | Height: | Size: 937 B |
|
After Width: | Height: | Size: 937 B |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 950 B |
|
After Width: | Height: | Size: 997 B |
|
After Width: | Height: | Size: 967 B |
|
After Width: | Height: | Size: 967 B |
|
After Width: | Height: | Size: 967 B |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 991 B |
|
After Width: | Height: | Size: 954 B |
|
After Width: | Height: | Size: 938 B |
|
After Width: | Height: | Size: 944 B |