File size: 2,619 Bytes
07c3cdd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
var oLeyendsPanel;

var showUploadedDocumentTracker = function(APP_DOC_UID) {
  oPanel2 = new leimnud.module.panel();
  oPanel2.options = {
  	size	:{w:300,h:300},
  	position:{x:0,y:0,center:true},
  	title	:'',
  	theme	:'processmaker',
  	statusBar:true,
  	control	:{resize:false,roll:false},
  	fx	:{modal:true,opacity:true,blinkToFront:true,fadeIn:false}
  };
  oPanel2.events = {
  	remove: function() { delete(oPanel2); }.extend(this)
  };
  oPanel2.make();
  oPanel2.loader.show();
  var oRPC = new leimnud.module.rpc.xmlhttp({
  	url : 'tracker_Ajax',
  	args: 'action=showUploadedDocumentTracker&APP_DOC_UID=' + APP_DOC_UID
  });
  oRPC.callback = function(rpc){
  	oPanel2.loader.hide();
  	var scs=rpc.xmlhttp.responseText.extractScript();
  	oPanel2.addContent(rpc.xmlhttp.responseText);
  	scs.evalScript();
  }.extend(this);
  oRPC.make();
};

var showGeneratedDocumentTracker = function(APP_DOC_UID) {
  oPanel2 = new leimnud.module.panel();
  oPanel2.options = {
  	size	:{w:300,h:250},
  	position:{x:0,y:0,center:true},
  	title	:'',
  	theme	:'processmaker',
  	statusBar:true,
  	control	:{resize:false,roll:false},
  	fx	:{modal:true,opacity:true,blinkToFront:true,fadeIn:false}
  };
  oPanel2.events = {
  	remove: function() { delete(oPanel2); }.extend(this)
  };
  oPanel2.make();
  oPanel2.loader.show();
  var oRPC = new leimnud.module.rpc.xmlhttp({
  	url : 'tracker_Ajax',
  	args: 'action=showGeneratedDocumentTracker&APP_DOC_UID=' + APP_DOC_UID
  });
  oRPC.callback = function(rpc){
  	oPanel2.loader.hide();
  	var scs=rpc.xmlhttp.responseText.extractScript();
  	oPanel2.addContent(rpc.xmlhttp.responseText);
  	scs.evalScript();
  }.extend(this);
  oRPC.make();
};
/*

var tracker_MessagesView = function(APP_UID) { alert(123);

  oPanel2 = new leimnud.module.panel();

  oPanel2.options = {

  	size	:{w:300,h:300},

  	position:{x:0,y:0,center:true},

  	title	:'',

  	theme	:'processmaker',

  	statusBar:true,

  	control	:{resize:false,roll:false},

  	fx	:{modal:true,opacity:true,blinkToFront:true,fadeIn:false}

  };

  oPanel2.events = {

  	remove: function() { delete(oPanel2); }.extend(this)

  };

  oPanel2.make();

  oPanel2.loader.show();

  var oRPC = new leimnud.module.rpc.xmlhttp({

  	url : 'tracker_Ajax',

  	args: 'action=tracker_MessagesView&APP_UID=' + APP_UID

  });

  oRPC.callback = function(rpc){

  	oPanel2.loader.hide();

  	var scs=rpc.xmlhttp.responseText.extractScript();

  	oPanel2.addContent(rpc.xmlhttp.responseText);

  	scs.evalScript();

  }.extend(this);

  oRPC.make();

};

*/