initial commit from rev. 632

This commit is contained in:
Erik Amaru Ortiz
2010-12-02 23:34:41 +00:00
commit 0525681d79
5410 changed files with 864427 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<dynaForm width="100%" rowsPerPage="10">
<PRO_UID type="hidden" showInTable="0"/>
<INP_DOC_UID type="hidden" showInTable="0"/>
<INP_DOC_TITLE type="text" colWidth="300" titleAlign="left" align="left">
<en>Title</en>
</INP_DOC_TITLE>
<ASSIGN type="link" colWidth="40" value="@G::LoadTranslation(ID_ASSIGN)" link="#" onclick="assignSupervisorInput(@QPRO_UID, @QINP_DOC_UID);return false;"/>
<SEARCH type="button" onclick="pagedTableFilter( this.form );" showInTable="0">
<en>Apply Filter</en>
</SEARCH>
<PAGED_TABLE_ID type="private" showInTable="0"/>
<JSFILTER type="javascript" replaceTags="1" showInTable="0">
function pagedTableFilter( form ) {
@#PAGED_TABLE_ID.doFilter( form );
}
</JSFILTER>
</dynaForm>

View File

@@ -0,0 +1,68 @@
<form id="{$form_id}" name="{$form_name}" action="{$form_action}" class="{$form_className}" method="post" encType="multipart/form-data" style="margin:0px;" onsubmit='return validateForm("{$form_objectRequiredFields}".parseJSON());'>
<div class="borderForm" style="padding-left: 0pt; padding-right: 0pt;">
<div class="boxTop"><div class="a"></div><div class="b"></div><div class="c"></div></div>
<div class="content" style="">
<table width="99%">
<tbody><tr>
<td valign="top">
<input class="notValidateThisFields" name="__notValidateThisFields__" id="__notValidateThisFields__" value="" type="hidden">
<input name="DynaformRequiredFields" id="DynaformRequiredFields" value="{$form_objectRequiredFields}" type="hidden">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr style="display: none;">
<td colspan="2">{$form.PRO_UID}</td>
</tr>
<tr style="display: none;">
<td colspan="2">{$form.INP_DOC_UID}</td>
</tr>
<tr>
<td class="FormTitle" colspan="2" align="">{$form.TITLE}</td>
</tr>
<tr>
<td class="FormLabel" width="{$form_labelWidth}">{$INP_DOC_TITLE}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.INP_DOC_TITLE} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.INP_DOC_TITLE}</td>
</tr>
<tr>
<td class="FormLabel" width="{$form_labelWidth}">{$INP_DOC_FORM_NEEDED}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.INP_DOC_FORM_NEEDED} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.INP_DOC_FORM_NEEDED}</td>
</tr>
<tr>
<td class="FormLabel" width="{$form_labelWidth}">{$INP_DOC_ORIGINAL}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.INP_DOC_ORIGINAL} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.INP_DOC_ORIGINAL}</td>
</tr>
<tr>
<td class="FormLabel" width="{$form_labelWidth}">{$INP_DOC_DESCRIPTION}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.INP_DOC_DESCRIPTION} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.INP_DOC_DESCRIPTION}</td>
</tr>
<tr>
<td class="FormLabel" width="{$form_labelWidth}">{$INP_DOC_VERSIONING}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.INP_DOC_VERSIONING} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.INP_DOC_VERSIONING}</td>
</tr>
<tr>
<td class="FormLabel" width="{$form_labelWidth}">{$INP_DOC_DESTINATION_PATH}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.INP_DOC_DESTINATION_PATH} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.INP_DOC_DESTINATION_PATH}</td>
</tr>
<tr>
<td class="FormLabel" width="{$form_labelWidth}">{$INP_DOC_TAGS}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.INP_DOC_TAGS} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.INP_DOC_TAGS}</td>
</tr>
<tr>
<td class="FormButton" colspan="2" align="center"> <br/> {$form.ACCEPT} &nbsp; {$form.BTN_CANCEL} </td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
</div>
<div class="boxBottom"><div class="a"></div><div class="b"></div><div class="c"></div></div>
</div>
<script type="text/javascript">
{$form.JS}
</script>
</form>

View File

@@ -0,0 +1,122 @@
<?xml version="1.0" encoding="UTF-8"?>
<dynaForm name="intputdocs/inputdocs_Edit" type="xmlform" width="100%" enableTemplate="1">
<PRO_UID type="hidden" showInTable="0"/>
<INP_DOC_UID type="hidden" showInTable="0"/>
<TITLE type="title" group="1">
<en>Input Document Information</en>
</TITLE>
<INP_DOC_TITLE type="text" maxlength="100" size="50" colWidth="200" titleAlign="left" align="left" dataCompareField="T.CON_VALUE" dataCompareType="contains">
<en>Title</en>
</INP_DOC_TITLE>
<INP_DOC_FORM_NEEDED type="dropdown" colWidth="80" titleAlign="left" align="left" dataCompareField="INP_DOC_FORM_NEEDED" dataCompareType="=">
<en>Document Type<option name="VIRTUAL">Digital</option><option name="REAL">Printed</option><option name="VREAL">Digital/Printed</option></en>
</INP_DOC_FORM_NEEDED>
<INP_DOC_ORIGINAL type="dropdown" colWidth="80" titleAlign="left" align="left" dataCompareField="INP_DOC_ORIGINAL" dataCompareType="=">
<en>Format<option name="ORIGINAL">Original</option><option name="COPYLEGAL">Legal Copy</option><option name="COPY">Copy</option></en>
</INP_DOC_ORIGINAL>
<INP_DOC_DESCRIPTION type="textarea" rows="5" cols="60" colWidth="200" titleAlign="left" align="left" dataCompareField="D.CON_VALUE" dataCompareType="contains">
<en>Description</en>
</INP_DOC_DESCRIPTION>
<INP_DOC_VERSIONING type="dropdown">
<en>Enable Versioning<option name="">NO</option><option name="1">YES</option></en>
</INP_DOC_VERSIONING>
<INP_DOC_DESTINATION_PATH type="textpm" size="30" maxlength="200" showVars="1" process="@#PRO_UID" symbol="@#" validate="Path">
<en>Destination Path</en>
</INP_DOC_DESTINATION_PATH>
<INP_DOC_TAGS type="textpm" size="30" maxlength="200" showVars="1" process="@#PRO_UID" symbol="@#" validate="Tag">
<en>Tags</en>
</INP_DOC_TAGS>
<BTN_CANCEL type="button" onclick="cancel();">
<en>Cancel</en>
</BTN_CANCEL>
<ACCEPT type="button" onclick="inputdocsSave( this.form );">
<en>Save</en>
</ACCEPT>
<JS type="javascript"><![CDATA[
leimnud.event.add(getField('INP_DOC_FORM_NEEDED'), 'change', function() {
if (getField('INP_DOC_FORM_NEEDED').value == 'VIRTUAL') {
hideRow('INP_DOC_ORIGINAL');
}
else {
showRow('INP_DOC_ORIGINAL');
}
});
if (getField('INP_DOC_FORM_NEEDED').value == 'VIRTUAL') {
hideRow('INP_DOC_ORIGINAL');
}
var _oVarsPanel_;
var showDynaformsFormVars = function(sFieldName, sAjaxServer, sProcess, sSymbol) {
_oVarsPanel_ = new leimnud.module.panel();
_oVarsPanel_.options = {
limit : true,
size : {w:400,h:410},
position : {x:0,y:0,center:true},
title : '',
theme : 'processmaker',
statusBar: false,
control : {drag:false,resize:true,close:true},
fx : {opacity:true,rolled:false,modal:true}
};
_oVarsPanel_.make();
_oVarsPanel_.events = {
remove:function() {
delete _oVarsPanel_;
}.extend(this)
};
_oVarsPanel_.loader.show();
oRPC = new leimnud.module.rpc.xmlhttp({
url : sAjaxServer,
method: 'POST',
args : 'sFieldName=' + sFieldName + '&sProcess=' + sProcess + '&sSymbol=' + sSymbol + '&sType=2'
});
oRPC.callback = function(oRPC) {
_oVarsPanel_.loader.hide();
var scs = oRPC.xmlhttp.responseText.extractScript();
_oVarsPanel_.addContent(oRPC.xmlhttp.responseText);
scs.evalScript();
}.extend(this);
oRPC.make();
};
var insertFormVar = function(sFieldName, sValue) {
oAux = document.getElementById(sFieldName);
if (oAux.setSelectionRange) {
var rangeStart = oAux.selectionStart;
var rangeEnd = oAux.selectionEnd;
var tempStr1 = oAux.value.substring(0,rangeStart);
var tempStr2 = oAux.value.substring(rangeEnd);
oAux.value = tempStr1 + sValue + tempStr2;
}
else {
if (document.selection) {
oAux.focus();
document.selection.createRange().text = sValue;
}
}
_oVarsPanel_.remove();
};
function cancel(){
currentPopupWindow.remove();
}
]]></JS>
</dynaForm>

View File

@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<dynaForm name="dynaforms_List" type="filterform" sql="SELECT *, T.CON_VALUE AS INP_DOC_TITLE, D.CON_VALUE AS INP_DOC_DESCRIPTION FROM INPUT_DOCUMENT LEFT JOIN CONTENT as T ON (T.CON_ID=INP_DOC_UID AND T.CON_CATEGORY=&#039;INP_DOC_TITLE&#039;) LEFT JOIN CONTENT AS D ON (D.CON_ID=INP_DOC_UID AND D.CON_CATEGORY=&#039;INP_DOC_DESCRIPTION&#039;)" sqlConnection="" menu="inputdocs/inputdocs_Options" filterForm="inputdocs/inputdocs_List" width="100%">
<INP_DOC_UID type="hidden" showInTable="0"/>
<INP_DOC_TITLE type="text" colWidth="200" titleAlign="left" align="left" dataCompareField="T.CON_VALUE" dataCompareType="contains">
<en>Input document</en>
</INP_DOC_TITLE>
<INP_DOC_FORM_NEEDED type="dropdown" colWidth="80" titleAlign="left" align="left" dataCompareField="INP_DOC_FORM_NEEDED" dataCompareType="=">
<en>Type<option name="REAL">Real</option><option name="VIRTUAL">Virtual</option><option name="VREAL">VReal</option></en>
</INP_DOC_FORM_NEEDED>
<INP_DOC_ORIGINAL type="dropdown" colWidth="80" titleAlign="left" align="left" dataCompareField="INP_DOC_ORIGINAL" dataCompareType="=">
<en>Original<option name="COPY">Copy</option><option name="ORIGINAL">Original</option><option name="COPYLEGAL">Legal copy</option><option name="FINAL">Final</option></en>
</INP_DOC_ORIGINAL>
<INP_DOC_PUBLISHED type="dropdown" colWidth="80" titleAlign="left" align="left" dataCompareField="INP_DOC_PUBLISHED" dataCompareType="=">
<en>Access type<option name="PRIVATE">Private</option><option name="PUBLIC">Public</option></en>
</INP_DOC_PUBLISHED>
<INP_DOC_DESCRIPTION type="textarea" rows="3" cols="32" colWidth="200" titleAlign="left" align="left" dataCompareField="D.CON_VALUE" dataCompareType="contains">
<en>Description</en>
</INP_DOC_DESCRIPTION>
<EDIT type="link" colWidth="40" value="@G::LoadTranslation(ID_EDIT)" link="#" onclick="inputdocsEdit(@QINP_DOC_UID);return false;"/>
<DELETE type="link" colWidth="40" value="@G::LoadTranslation(ID_DELETE)" link="#" onclick="if (confirm(&#039;@G::LoadTranslation(ID_MSG_CONFIRM_DELETE_DOCUMENT)&#039;)) inputdocsDelete(@QINP_DOC_UID);return false;"><en></en></DELETE>
<SEARCH type="button" onclick="pagedTableFilter( this.form );" showInTable="0">
<en>Apply Filter</en>
</SEARCH>
<PAGED_TABLE_ID type="private" showInTable="0"/>
<JSFILTER type="javascript" replaceTags="1" showInTable="0">
function pagedTableFilter( form ) {
@#PAGED_TABLE_ID.doFilter( form );
}
</JSFILTER>
</dynaForm>

View File

@@ -0,0 +1,55 @@
<?xml version="1.0" encoding="UTF-8"?>
<dynaForm type="xmlmenu">
<MNU_ADD type="link" value="" link="#" onclick="inputdocsAdd(); return false;" colAlign="left" colWidth="35">
<en>New</en>
</MNU_ADD>
<PAGED_TABLE_ID type="private"/>
<PRO_UID type="private"/>
<inputdocsEdit type="private" defaultValue="../inputdocs/inputdocs_Edit"/>
<inputdocsDelete type="private" defaultValue="../inputdocs/inputdocs_Delete"/>
<js type="javascript" replaceTags="1"><![CDATA[
var currentPagedTable = @#PAGED_TABLE_ID;
function inputdocsAdd(){//alert('@G::encryptlink(@#inputdocsEdit)?PRO_UID=@%PRO_UID');
popupWindow('@G::LoadTranslation(ID_NEW_INPUTDOCS)', '@G::encryptlink(@#inputdocsEdit)?PRO_UID=@%PRO_UID' , 500, 410);
}
function inputdocsEdit( uid ) {// alert('@G::encryptlink(@#inputdocsEdit)?INP_DOC_UID='+ uid);
popupWindow('@G::LoadTranslation(ID_EDIT_INPUTDOCS)', '@G::encryptlink(@#inputdocsEdit)?INP_DOC_UID='+ uid , 500, 410);
}
function inputdocsSave( form ) {
var nameInput = getField('INP_DOC_TITLE').value;
var proUid = getField('PRO_UID').value;
if(getField('INP_DOC_UID').value==''){
reqName=ajax_function(form.action,'lookForNameInput','NAMEINPUT='+encodeURIComponent(nameInput)+'&proUid='+encodeURIComponent(proUid),'POST') ;
if(reqName){
ajax_post( form.action, form, 'POST' );
currentPopupWindow.remove();
@#PAGED_TABLE_ID.refresh();
}else{
alert(G_STRINGS.ID_EXIST_INPUTDOCUMENT);return false;
}
}else{
ajax_post( form.action, form, 'POST' );
currentPopupWindow.remove();
@#PAGED_TABLE_ID.refresh();
}
}
function inputdocsDelete( uid ) {
result = ajax_function('@G::encryptlink(@#inputdocsDelete)','getRelationInfDoc','INP_DOC_UID='+uid,'POST');
labelToshow = (result)?'@G::LoadTranslation(ID_MSG_CONFIRM_DELETE_IDOCUMENT)':'@G::LoadTranslation(ID_MSG_CONFIRM_DELETE_DOCUMENT)';
new leimnud.module.app.confirm().make({
label:labelToshow,
action:function()
{
ajax_function('@G::encryptlink(@#inputdocsDelete)','deleteInputDocument','INP_DOC_UID='+uid,'POST');
@#PAGED_TABLE_ID.refresh();
}.extend(this)
});
}
]]></js>
<SEARCH_FILTER_FORM type="private"/>
</dynaForm>

View File

@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<dynaForm sqlConnection="" menu="inputdocs/inputdocs_Options" width="100%" rowsPerPage="10">
<INP_DOC_UID type="hidden" showInTable="0"/>
<INP_DOC_TITLE type="text" colWidth="350" titleAlign="left" align="left">
<en>Title</en>
</INP_DOC_TITLE>
<EDIT type="link" colWidth="40" value="@G::LoadTranslation(ID_EDIT)" link="#" onclick="inputdocsEdit(@QINP_DOC_UID);return false;"/>
<DELETE type="link" colWidth="40" value="@G::LoadTranslation(ID_DELETE)" link="#" onclick="inputdocsDelete(@QINP_DOC_UID);return false;"><en></en></DELETE>
<GET_UID type="link" colWidth="40" value="UID" link="#" onclick="msgBox(&#039;UID: &#039;+@QINP_DOC_UID, &#039;info&#039;);return false;"/>
<SEARCH type="button" onclick="pagedTableFilter(this.form);" showInTable="0">
<en>Apply Filter</en>
</SEARCH>
<PAGED_TABLE_ID type="private" showInTable="0"/>
<JSFILTER type="javascript" replaceTags="1" showInTable="0">
function pagedTableFilter(form) {
@#PAGED_TABLE_ID.doFilter(form);
}
</JSFILTER>
</dynaForm>

View File

@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<dynaForm name="inputdocs_SupervisorOptions" width="100%" rowsPerPage="10" menu="inputdocs/inputdocs_SupervisorOptions">
<STEP_UID type="hidden" showInTable="0"/>
<PRO_UID type="hidden" showInTable="0"/>
<STEP_UID_OBJ type="hidden" showInTable="0"/>
<STEP_POSITION type="hidden" showInTable="0"/>
<INP_DOC_TITLE type="text" colWidth="300" titleAlign="left" align="left">
<en>Title</en>
</INP_DOC_TITLE>
<REMOVE type="link" colWidth="40" value="@G::LoadTranslation(ID_DE_ASSIGN)" link="#" onclick="removeSupervisorInput(@QSTEP_UID, @QPRO_UID, @QSTEP_UID_OBJ, @QSTEP_POSITION);return false;"/>
<SEARCH type="button" onclick="pagedTableFilter( this.form );" showInTable="0">
<en>Apply Filter</en>
</SEARCH>
<PAGED_TABLE_ID type="private" showInTable="0"/>
<JSFILTER type="javascript" replaceTags="1" showInTable="0">
function pagedTableFilter( form ) {
@#PAGED_TABLE_ID.doFilter( form );
}
</JSFILTER>
</dynaForm>

View File

@@ -0,0 +1,76 @@
<?xml version="1.0" encoding="UTF-8"?>
<dynaForm type="xmlmenu">
<PRO_UID type="private"/>
<MNU_ASSIGN type="link" value="" link="#" onclick="availableSupervisorInputs(@QPRO_UID);return false;" colAlign="left" colWidth="50">
<en>Assign</en>
</MNU_ASSIGN>
<PAGED_TABLE_ID type="private"/>
<PRO_UID type="private"/>
<JS type="javascript" replaceTags="1"><![CDATA[
var oPanel;
var availableSupervisorInputs = function(sProcessUID) {
oPanel = new leimnud.module.panel();
oPanel.options = {
size :{w:400,h:350},
position:{x:0,y:0,center:true},
title :G_STRINGS.ID_ASSIGN_INPUT_DOCUMENT,
theme :'processmaker',
statusBar:false,
control :{resize:false,roll:false},
fx :{modal:true,opacity:true,blinkToFront:false,fadeIn:false,drag:false}
};
oPanel.events = {
remove: function() { delete(oPanel); }.extend(this)
};
oPanel.make();
oPanel.loader.show();
var oRPC = new leimnud.module.rpc.xmlhttp({
url : '../steps/steps_SupervisorAjax',
args: 'action=availableSupervisorInputs&PRO_UID=' + sProcessUID
});
oRPC.callback = function(rpc) {
oPanel.loader.hide();
oPanel.addContent(rpc.xmlhttp.responseText);
var scs = rpc.xmlhttp.responseText.extractScript();
scs.evalScript();
}.extend(this);
oRPC.make();
};
var assignSupervisorInput = function(sProcessUID, sInputUID) {
var oRPC = new leimnud.module.rpc.xmlhttp({
url : '../steps/steps_SupervisorAjax',
async: false,
args : 'action=assignSupervisorInput&PRO_UID=' + sProcessUID + '&INP_DOC_UID=' + sInputUID
});
oRPC.make();
oPanel.remove();
inputdocs_SupervisorOptions.refresh();
};
var removeSupervisorInput = function(sStepUID, sProcessUID, sInputUID, iPosition) {
new leimnud.module.app.confirm().make({
label:'@G::LoadTranslation(ID_MSG_CONFIRM_DELETE_SUPERVISOR_INPUT)',
action:function()
{
var oRPC = new leimnud.module.rpc.xmlhttp({
url : '../steps/steps_SupervisorAjax',
async: false,
args : 'action=removeSupervisorInput&STEP_UID=' + sStepUID + '&PRO_UID=' + sProcessUID + '&INP_DOC_UID=' + sInputUID + '&STEP_POSITION=' + iPosition
});
oRPC.make();
inputdocs_SupervisorOptions.refresh();
}.extend(this)
});
};
]]></JS>
</dynaForm>