24 lines
		
	
	
		
			922 B
		
	
	
	
		
			Plaintext
		
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			922 B
		
	
	
	
		
			Plaintext
		
	
	
	
| import win.ui;
 | |
| /*DSG{{*/
 | |
| var winform = win.form(text="新建采集内容";right=299;bottom=179;border="dialog frame";max=false;min=false)
 | |
| winform.add(
 | |
| button={cls="button";text="确定";left=90;top=119;right=196;bottom=154;z=5};
 | |
| edit={cls="edit";left=84;top=26;right=281;bottom=50;dl=1;dr=1;dt=1;edge=1;z=2};
 | |
| edit2={cls="edit";left=84;top=69;right=281;bottom=93;dl=1;dr=1;dt=1;edge=1;z=4};
 | |
| static={cls="static";text="设备编号";left=8;top=29;right=78;bottom=54;dl=1;dt=1;notify=1;transparent=1;z=1};
 | |
| static2={cls="static";text="文件夹地址";left=8;top=74;right=78;bottom=99;dl=1;dt=1;notify=1;transparent=1;z=3}
 | |
| )
 | |
| /*}}*/
 | |
| 
 | |
| winform.button.oncommand = function(id,event){
 | |
| 	if(winform.edit.text!="" && winform.edit2.text!=""){
 | |
| 		winform.parent.listview.addItem({winform.edit.text;winform.edit2.text})
 | |
| 		winform.close()
 | |
| 	}else{
 | |
| 	winform.msgbox("请输入信息!")}
 | |
| 	
 | |
| }
 | |
| 
 | |
| winform.show();
 | |
| win.loopMessage();
 | |
| return winform; |