±â¼ú¹®¼­
OZ Server
OZ Application
OZ Report
Google
À¥    forcs.com
¿ÀÁî ¸®Æ÷Æ®
¿ÀÁî ÀÌÆû

OZ Application
OZ Application
Á¦¸ñ : Grid, Table ¼¿ÀÇ ÄÄÆ÷³ÍÆ® ŸÀÔ¿¡ ´ëÇÑ ¼³¸í
¿ÀÁî_LMK NOSPAM_mklee@forcs.com 5,164 hit 
http://oztn.net/kb/article/kbapp/123917383766118 2009-04-08 15:57:17
192.168.100.***

 

* °³¿ä


Grid, Table ¼¿ÀÇ ÄÄÆ÷³ÍÆ® ŸÀÔ¿¡ ´ëÇÑ ¼³¸íÀÔ´Ï´Ù.

 

* »ó¼¼ ¼³¸í


 

1. CellType°ú EditorTypeÀÇ Â÷ÀÌÁ¡

 

Grid, Table ÄÄÆ÷³ÍÆ®ÀÇ ¼¿Àº ÆíÁý»óÅÂÀÏ ¶§¿Í ÆíÁý»óÅ°¡ ¾Æ´Ñ °æ¿ì °¢°¢ ÄÄÆ÷³ÍÆ®°¡ ´Þ¶óÁý´Ï´Ù.

 

CellTypeÀº ¼¿ÀÌ ÆíÁý»óÅ°¡ ¾Æ´Ò ¶§ÀÇ ÄÄÆ÷³ÍÆ® ŸÀÔÀÔ´Ï´Ù.

EditorTypeÀº ¼¿ÀÌ ÆíÁý»óÅÂÀÏ ¶§ÀÇ ÄÄÆ÷³ÍÆ® ŸÀÔÀÔ´Ï´Ù.

 

¼¿ÀÌ ÆíÁý»óÅÂÀÏ ¶§ÀÇ ÄÄÆ÷³ÍÆ®¸¦ EditComponent¶ó°í ÇÕ´Ï´Ù.

 

 

2. CellType

 

¼¿ÀÌ ÆíÁýÁßÀÌ ¾Æ´Ñ °æ¿ì ÄÄÆ÷³ÍÆ® ŸÀÔÀ» ¾Æ·¡ ¼³Á¤°ªÀ¸·Î ÁöÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù.

 

Table ÄÄÆ÷³ÍÆ®´Â Å×ÀÌºí ¸¶¹ý»ç¿¡¼­ ¼±ÅÃÇÑ °¢ ÇʵåÀÇ ColumnType ¼Ó¼º¿¡¼­ ÁöÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù.

Grid ÄÄÆ÷³ÍÆ®´Â ½ºÅ©¸³Æ®¿¡¼­ ChangeCellTypeInRange ¸Þ¼Òµå·Î ÁöÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù.

 

¼³Á¤°ª

¼³¸í

½ÇÁ¦ ÄÄÆ÷³ÍÆ®

Button

¹öÆ°

GridCellButton

CheckBox

üũ¹Ú½º

GridCellCheckBox

ComboBox

ÄÞº¸¹Ú½º

GridCellCombo

Custom

»ç¿ëÀÚÄÁÆ®·Ñ

GridCellCustom

GridTreeNode

±×¸®µåÆ®¸®³ëµå

GridCellTreeNode

Label

¶óº§

GridCellLabel

PictureBox

ÇÈó¹Ú½º

GridCellPicture

RadioButton

¶óµð¿À¹öÆ°

GridCellRadioButton

RichTextBox

¸®Ä¡ÅؽºÆ®¹Ú½º

GridCellRichText

 

¨ª       ½ÇÁ¦ ÄÄÆ÷³ÍÆ®ÀÇ Property¿Í Method¸¦ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.

¨ª       ¼Ó¼º °ª ¼³Á¤Àº ¼Ó¼º âÀ̳ª ½ºÅ©¸³Æ®·Î ÁöÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù.

¨ª       Event´Â Áö¿øµÇÁö ¾Ê½À´Ï´Ù.

 

 

3. EditorType

 

¼¿ÀÌ ÆíÁýÁßÀÎ °æ¿ì ÄÄÆ÷³ÍÆ® ŸÀÔÀ» ¾Æ·¡ ¼³Á¤°ªÀ¸·Î ÁöÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù.

 

Table ÄÄÆ÷³ÍÆ®´Â È­¸é¿¡¼­ ¼¿À» ¼±ÅÃÇÑ ÈÄ ¼Ó¼ºÃ¢ÀÇ EditComponent ¼Ó¼º¿¡¼­ ÁöÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù.

Grid ÄÄÆ÷³ÍÆ®´Â È­¸é¿¡¼­ ¼¿À» ¼±ÅÃÇÑ ÈÄ ¼Ó¼ºÃ¢ÀÇ EditComponent ¼Ó¼º¿¡¼­ ÁöÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù. Grid´Â È­¸é¿¡¼­ ¼¿ÀÌ Çϳª¸¸ º¸À̱⠶§¹®¿¡ ƯÁ¤ ¼¿¿¡ ´ëÇؼ­´Â ½ºÅ©¸³Æ®¿¡¼­ ChangeEditorTypeInRange ¸Þ¼Òµå·Î ÁöÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù.

 

¼³Á¤°ª

¼³¸í

½ÇÁ¦ ÄÄÆ÷³ÍÆ®

None

¾øÀ½ (±âº» °ª)

 

TextBox

ÅؽºÆ®¹Ú½º

TextBox

Button

¹öÆ°

Button

CheckBox

üũ¹Ú½º

CheckBox

RadioButton

¶óµð¿À¹öÆ°

RadioButton

ComboBox

ÄÞº¸¹Ú½º

ComboBox

DateTimePicker

DateTimePicker

DateTimePicker

NumericUpDown

NumericUpDown

NumericUpDown

MaskTextBox

MaskÅؽºÆ®¹Ú½º

MaskTextBox

ActiveXControl

ActiveXÄÁÆ®·Ñ

ActiveXControl

RichTextBox

¸®Ä¡ÅؽºÆ®¹Ú½º

RichTextBox

 

¨ª       ½ÇÁ¦ ÄÄÆ÷³ÍÆ®ÀÇ Property¿Í Method, Event¸¦ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.

¨ª       Property¿Í Method, Event ¸ðµÎ ½ºÅ©¸³Æ®·Î ÁöÁ¤ÇÕ´Ï´Ù.

¨ª       Event´Â SetEventÇÔ¼ö¸¦ ÀÌ¿ëÇÏ¿© ¼³Á¤ÇÕ´Ï´Ù.

 

 

3. EditComponent

 

EditComponent´Â ¼¿ÀÌ ÆíÁý»óÅ°¡ µÉ ¶§ »ý¼ºµË´Ï´Ù. ¶ÇÇÑ ¸ðµç ¼¿¿¡ ´ëÇؼ­ EditComponent´Â ¸Þ¸ð¸®»ó¿¡ ½ÇÁ¦ Çϳª¸¸ Á¸ÀçÇÕ´Ï´Ù.

 

  - EditTypeÀÌ ´Þ¶óÁö´Â °æ¿ì ±âÁ¸ EditComponent ¸¦ »èÁ¦ÇÏ°í »õ·Î ¸¸µì´Ï´Ù.

  - EditTypeÀÌ °°Àº °æ¿ì ComboBox ŸÀÔÀÌ¸é ±âÁ¸ EditComponent ¸¦ »èÁ¦ÇÏ°í »õ·Î ¸¸µì´Ï´Ù.

  - EditTypeÀÌ °°Àº °æ¿ì ComboBox ŸÀÔÀÌ ¾Æ´Ï¸é ±âÁ¸ EditComponent ¸¦ ±×´ë·Î »ç¿ëÇÕ´Ï´Ù. ±âÁ¸ EditComponentÀÇ ¼Ó¼º°ú À̺¥Æ® °ªÀÌ ±×´ë·Î À¯ÁöµË´Ï´Ù.

 

¿¹¸¦ µé¾î, GridÀÇ (row, col)ÀÌ (0,0) ÀÎ ¼¿ÀÇ EditTypeÀÌ ComboBoxÀÎ °æ¿ì (0,0) ¼¿ÀÌ ÆíÁý»óÅ°¡ µÉ ¶§ ComboBox°¡ ½ÇÁ¦·Î ¸¸µé¾î Áö¸ç, EditTypeÀÌ ComboBox·Î °°Àº ´Ù¸¥ ¼¿ (1, 0)À» ÆíÁýÇÒ ¶§ EditCompont´Â »õ·Î ¸¸µé¾î Áý´Ï´Ù. ¸¸¾à EditTypeÀÌ ´Ù¸¥ ¼¿À» ÆíÁýÇÒ °æ¿ì¿¡µµ ¸Þ¸ð¸®¿¡¼­ EditComponent°¡ »èÁ¦µÇ°í »õ·Î ¸¸µé¾î Áý´Ï´Ù. ±×·¯³ª EditTypeÀÌ TextBoxÀÎ ¼¿À» ÆíÁýÇÏ´Ù°¡ EditTypeÀÎ TextBox·Î °°Àº ´Ù¸¥ ¼¿À» ÆíÁýÇÏ°Ô µÇ¸é ±âÁ¸ EditComponentÀÇ ¼Ó¼º°ú À̺¥Æ®°¡ À¯ÁöµÇ¾î ÃʱâÈ­ÇÏÁö ¾ÊÀ¸¸é ¿øÇÏÁö ¾Ê´Â ¼Ó¼ºÀ¸·Î ¼³Á¤µÇ°Å³ª ¿øÇÏÁö ¾Ê´Â À̺¥Æ®°¡ ½ÇÇàµÉ ¼öµµ ÀÖ½À´Ï´Ù.

 

EditComponentÀÇ À̺¥Æ®´Â Grid, Table ÄÄÆ÷³ÍÆ®ÀÇ OnCellEdit ó·³ ÆíÁý»óÅ¿¡¼­ ¹ß»ýÇÏ´Â À̺¥Æ®¿¡¼­ SetEvent¸¦ ÀÌ¿ëÇÏ¿© ½ºÅ©¸³Æ®·Î ÁöÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù.

 

SCRIPT_BEGIN Document.Boards.Board1.Grid1.OnCellEdit

var editor = Grid1.GetCurrentEditor();

_TraceLn("±âÁ¸:"+editor.GetEvent(EventNameConst.OnClick));

editor.SetEvent(EventNameConst.OnClick, "_TraceLn(\"aaa\");");

_TraceLn("ÇöÀç:"+editor.GetEvent(EventNameConst.OnClick));

SCRIPT_END

 

 

4. CellType°ú EditTypeÀÌ ComboBoxÀÎ °æ¿ì

 

ÀÓÀÇÀÇ ¼¿¿¡ CellTypeÀ» ComboBox(½ÇÁ¦´Â GridCellCombo ÄÄÆ÷³ÍÆ®ÀÓ. A ¶ó°í ¸í¸íÇÔ.)·Î ÁöÁ¤ÇÏ°í, EditTypeÀ» ComboBox(½ÇÁ¦·Îµµ ComboBoxÄÄÆ÷³ÍÆ®ÀÓ. B¶ó°í ¸í¸íÇÔ.)·Î ÁöÁ¤ÇÏ¿´À» ¶§, A ÄÄÆ÷³ÍÆ®ÀÇ Item, ItemValue´Â ¼¿ÀÌ ÆíÁý»óÅ°¡ µÉ ¶§ B ÄÄÆ÷³ÍÆ®¿¡ ÀÚµ¿ ¹ÙÀεùµË´Ï´Ù.

 

¿¹¸¦ µé¾î, ¾Æ·¡ ½ºÅ©¸³Æ®¿Í °°ÀÌ GridCellComboÀÇ ItemText Çʵå, ItemValue Çʵ带 ÁöÁ¤ÇÑ °æ¿ì EditComponent¿¡ º°µµÀÇ ItemÃß°¡¸¦ ÇÏÁö ¾Ê¾Æµµ ¼¿ÀÌ ÆíÁý»óÅ°¡ µÉ ¶§ GridCellComboÀÇ ItemµéÀÌ EditComponent¿¡ Ãß°¡µÈ °ÍÀ» ½ÇÇà °á°ú¸¦ ÅëÇØ ¾Ë ¼ö ÀÖ½À´Ï´Ù.

 

// Grid1ÀÇ Ã¹¹ø° Ä÷³ ŸÀÔÀ» ComboBox·Î º¯°æ

Grid1.SelectCellRange(-1, 0, -1, 0);

Grid1.ChangeCellTypeInRange("ComboBox");

 

// ù¹ø° Ä÷³¼¿ GridCellComboÀÇ ¼Ó¼º ¼³Á¤

Grid1.SetPropertyInRange(PropertyNameConst.ODIKey, "_OZData_");

Grid1.SetPropertyInRange(PropertyNameConst.DataSet, "set2");

Grid1.SetPropertyInRange(PropertyNameConst.Field, "col2");

Grid1.SetPropertyInRange(PropertyNameConst.ValueField, "col1");

 

[Àüü ½ºÅ©¸³Æ®]

SCRIPT_BEGIN Document.Boards.Board1.Grid1.OnPostInitialize

// set1 µ¥ÀÌÅͼ µ¥ÀÌÅ͸¦ Grid1¿¡ º¸¿©ÁÜ

var FXDataModule = _GetFXDataModule();

var FXDataSet = FXDataModule.GetFXDataSet("set1");

var ColCount = FXDataSet.GetColumnCount();

var RowCount = FXDataSet.GetRowCount();

Grid1.AddColumn(ColCount);

Grid1.AddRow(RowCount);

for(var row=0; row < RowCount; row++) {

    for(var col=0; col < ColCount; col++) {

       Grid1.GetCell(row, col).Value = FXDataSet.GetStringDataByIndex(row, col);

    }

}

Grid1.GetTitle(0).Text = "a";

Grid1.GetTitle(1).Text = "b";

Grid1.GetTitle(2).Text = "c";

 

// Grid1ÀÇ Ã¹¹ø° Ä÷³ ŸÀÔÀ» ComboBox·Î º¯°æ

Grid1.SelectCellRange(-1, 0, -1, 0);

Grid1.ChangeCellTypeInRange("ComboBox");

Grid1.ChangeEditorTypeInRange("ComboBox");

 

// ù¹ø° Ä÷³¼¿ GridCellComboÀÇ ¼Ó¼º ¼³Á¤

Grid1.SetPropertyInRange(PropertyNameConst.ODIKey, "_OZData_");

Grid1.SetPropertyInRange(PropertyNameConst.DataSet, "set2");

Grid1.SetPropertyInRange(PropertyNameConst.Field, "col2");

Grid1.SetPropertyInRange(PropertyNameConst.ValueField, "col1");

SCRIPT_END

 

SCRIPT_BEGIN Document.Boards.Board1.Button1.OnClick

// ÀÔ·ÂµÈ row, col ¿¡ ÇØ´çÇÏ´Â GridComboCellÀÇ ItemValue °ª °¡Á®¿À±â

var cell = Grid1.GetCell(TextBox1.Value, TextBox2.Value);

if (cell != null && cell.ComponentType == ComponentTypeConst.GridCellCombo) {

    var itemValue = cell.ItemValue(); 

}

TextBox3.Value = itemValue;

SCRIPT_END

 

 

[GridCellCombo.oza ¹Ì¸®º¸±â]

 

 

 

* ÷ºÎÀÚ·á ¼³¸í


- GridCellCombo.oza : ¼¿ÀÇ CellType°ú EditorTypeÀÌ ComboBoxÀÎ °æ¿ì Item Ãß°¡ ¹× ItemValue¸¦ È®ÀÎÇÏ´Â ¿¹Á¦. (ApplicationDesigner 50.2009,311,100 ¹öÀü¿¡¼­ ¸¸µé¾î Á³½À´Ï´Ù.)

- TableCellCombo.oza : ¼¿ÀÇ ColumnType°ú EditComponent°¡ ComboBoxÀÎ °æ¿ì ¿¹Á¦. (ApplicationDesigner 50.2009,408,200 ¹öÀü¿¡¼­ ¸¸µé¾î Á³½À´Ï´Ù.)

 

 

 

 

 



TableCellCombo.oza 33.62 KB (66 down)
GridCellCombo.oza 34.48 KB (75 down)
a1.gif 11.36 KB (22 down)
Å°¿öµå :
 
OZ ¹öÁ¯ : 5.0
OZ Á¦Ç° : Application Designer
 
¹øÈ£ ±¸ºÐ Á¦¸ñ ±Û¾´ÀÌ ÀÏÀÚ Á¶È¸
40 ±â¼úÁ¤º¸ ReportControl¿¡¼­ º¸°í¼­ Àμâ, ÀúÀå À̺¥Æ® ¹Þ´Â ¹æ¹ý (Command»ç¿ë¹ý) ¿ÀÁî_LMK 2013-07-08 3,591
39 ±â¼úÁ¤º¸ ApplicationViewer¿¡¼­ ZTransfer¸¦ ÀÌ¿ëÇÏ¿© ºä¾î À缳ġÇÏ´Â ¹æ¹ý ¿ÀÁî_LMK 2010-03-10 3,847
38 ±â¼úÁ¤º¸ ¸®Æ÷Æ®ºä¾î·Î Æз¯¹ÌÅÍ Àü´Þ¿©ºÎ ¼³Á¤ÇÏ´Â PassODIParams ¼Ó¼º ¼³¸í ¿ÀÁî_LMK 2009-04-17 3,369
±â¼úÁ¤º¸ Grid, Table ¼¿ÀÇ ÄÄÆ÷³ÍÆ® ŸÀÔ¿¡ ´ëÇÑ ¼³¸í ¿ÀÁî_LMK 2009-04-08 5,165
36 ±â¼úÁ¤º¸ OZ Application¿¡ Shockwave Flash ÄÁÆ®·Ñ Ãß°¡ Tag 1 ¿ÀÁî_LMK 2008-05-16 4,067
35 ±â¼úÁ¤º¸ ¾îÇø®ÄÉÀÌ¼Ç µ¥ÀÌÅ͸¦ ¸®Æ÷Æ®·Î ¹Ù·Î ³Ñ±â´Â ¹æ¹ý Tag 2 ¿ÀÁî_LMK 2008-03-31 6,166
34 ¹®Á¦ÇØ°á Table component¿¡¼­ InsertRow() method¸¦ »ç¿ëÇÏÁö ¸¶¼¼¿ä. 1 Tag 1 ¿ÀÁî_KDS 2007-11-07 3,562
33 ±â¼úÁ¤º¸ Å×ÀÌºí¿¡¼­ ÀÚÁÖ »ç¿ëµÇ¾îÁö´Â ¼Ó¼º Tag 1 ¿ÀÁî_PSC 2007-11-12 6,631
32 ±â¼úÁ¤º¸ ±×¸®µå¿¡¼­ ƯÁ¤ ¹®ÀÚ °­Á¶Çϱâ Tag 1 ¿ÀÁî_PSC 2007-11-12 3,598
31 ±â¼úÁ¤º¸ ¿ÀÁî ¾ÖÇø®ÄÉÀÌ¼Ç µð¹ö±ë ¹æ¹ý Tag 1 ¿ÀÁî_LMK 2007-12-04 5,040
30 ±â¼úÁ¤º¸ OZ Application Viewer¸¦ º°µµ ÇÁ·Î¼¼½º·Î ½ÇÇàÇÏ´Â ¹æ¹ý Tag 1 ¿ÀÁî_LMK 2007-11-29 5,667
29 ±â¼úÁ¤º¸ ÄÄÆ÷³ÍÆ®ÀÇ ¼Ó¼ºÀ» ½ºÅ©¸³Æ®·Î Á¦¾îÇÏ´Â ¹æ¹ý Tag 1 ¿ÀÁî_LMK 2007-11-28 3,602
28 ±â¼úÁ¤º¸ ÄÄÆ÷³ÍÆ® ·¹À̾ƿô ¼Ó¼º ¼³¸í Tag 1 ¿ÀÁî_LMK 2007-11-16 4,000
27 ±â¼úÁ¤º¸ ApplicationÀÇ Image »ç¿ë¹ý Tag 1 ¿ÀÁî_LMK 2007-11-23 4,656
26 ±â¼úÁ¤º¸ Grid Cell¿¡ setEvent·Î À̺¥Æ® ¼³Á¤ÇÏ´Â ¹æ¹ý Tag 1 ¿ÀÁî_PSC 2007-11-01 3,979
25 ±â¼úÁ¤º¸ Application string°ü·Ã ÇÔ¼ö Á¤¸® Tag 1 ¿ÀÁî_PSC 2007-11-01 6,984
24 ¹®Á¦ÇØ°á SaveExcelInRange()ÇÔ¼ö·Î excel·Î data export½Ã Á¦¾à»çÇ× Tag 2 ¿ÀÁî_KDS 2007-10-24 3,854
23 ±â¼úÁ¤º¸ º¸µåºäÀÇ ±âº»»ç¿ë¹ý ÀÔ´Ï´Ù. Tag 1 ¿ÀÁî_KYP 2007-10-26 3,695
22 ±â¼úÁ¤º¸ ¾îÇø®ÄÉÀ̼ǿ¡¼­ ¸®Æ÷Æ® È£Ãâ Tag 1 ¿ÀÁî_KYP 2007-10-26 4,728
21 ±â¼úÁ¤º¸ °´Ã¼ÁöÇâÀûÀÎ ¾îÇø®ÄÉÀÌ¼Ç °³¹ß ¹æ¹ý ¿ÀÁî_KYP 2007-10-26 4,113
 | 1 | 2 |  
copyright 2007-2024 by FORCS OZ