BUG 000 Add cases summary to branch 2.0

This commit is contained in:
Julio Cesar Laura
2011-08-25 12:58:52 -04:00
parent 9627e8e60a
commit bc5de24520
22 changed files with 963 additions and 433 deletions

View File

@@ -1,81 +1,51 @@
<?xml version="1.0" encoding="UTF-8"?>
<dynaForm
name="cases_Resume"
type="xmlform"
width="550px"
labelWidth="150px"
>
<dynaForm name="cases_Resume" type="xmlform" width="550px" labelWidth="150px">
<TITLE1 type="title">
<en>Case Properties</en>
</TITLE1>
<PRO_TITLE type="text" mode="view">
<en>Process</en>
</PRO_TITLE>
<STATUS type="text" mode="view">
<en>Case Status</en>
</STATUS>
<TITLE type="text" mode="view">
<en>Case Title</en>
</TITLE>
<APP_NUMBER type="text" mode="view">
<en>Case Number</en>
</APP_NUMBER>
<STATUS type="text" mode="view">
<en>Case Status</en>
</STATUS>
<APP_UID type="text" mode="view">
<en>Case Uid</en>
</APP_UID>
<CREATOR type="text" mode="view">
<en>Creator</en>
</CREATOR>
<CREATE_DATE type="text" mode="view">
<en>Create Date</en>
</CREATE_DATE>
<UPDATE_DATE type="text" mode="view">
<en>Last Update</en>
</UPDATE_DATE>
<TITLE2 type="title">
<en>Current Task Properties</en>
</TITLE2>
<TAS_TITLE type="text" mode="view">
<en>Task</en>
</TAS_TITLE>
<CURRENT_USER type="text" mode="view">
<en>Current User</en>
</CURRENT_USER>
<DEL_DELEGATE_DATE type="text" mode="view">
<en>Task Delegate Date</en>
</DEL_DELEGATE_DATE>
<DEL_INIT_DATE type="text" mode="view">
<en>Task Init Date</en>
</DEL_INIT_DATE>
<DEL_TASK_DUE_DATE type="text" mode="view">
<en>Task Due Date</en>
</DEL_TASK_DUE_DATE>
<DEL_FINISH_DATE type="text" mode="view">
<en>Finish Date</en>
</DEL_FINISH_DATE>
<!--<CURRENT_TASK_STATUS type="dropdown" mode="view">
<en>Current Task Status
<option name="">In Progress</option>
<option name="PAUSE">Paused</option>
<option name="CANCEL">Finished</option>
</en>
</CURRENT_TASK_STATUS>-->
</dynaForm>

View File

@@ -1,9 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<dynaForm name="users_NewOptions" type="xmlmenu">
<NEXT_STEP type="private"/>
<PREVIOUS_STEP type="private"/>
<PREVIOUS_STEP_LABEL type="private"/>
<PREVIOUS_ACTION type="private"/>
<NEXT_STEP type="private"/>
<NEXT_STEP_LABEL type="private"/>
<NEXT_ACTION type="private"/>
<!--MNUP type="print" colWidth="20" title="" value='' colAlign="left" link="../cases/cases_PrintView" width="800" height="600" left="0" top="0" resizable="1">
<en>Print form</en>
@@ -14,7 +15,7 @@
</DYN_BACKWARD>
<DYN_FORWARD type="link" value='' link="@#NEXT_STEP" onclick="@#NEXT_ACTION" colAlign="right" colWidth="120">
<DYN_FORWARD type="link" value='' link="@#NEXT_STEP" onclick="@#NEXT_ACTION" colAlign="right" colWidth="120" label="@#NEXT_STEP_LABEL">
<en>Next Step</en>
</DYN_FORWARD>
</dynaForm>

View File

@@ -1,58 +1,62 @@
<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">
<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>
<td class="FormTitle" colspan="2" align="">{$form.TITLE1}</td>
</tr>
<tr style="display: none;">
<td colspan="2">{$form.PRO_UID}</td>
</tr>
<tr style="display: none;">
<td colspan="2">{$form.THETYPE}</td>
</tr>
<tr>
<td class="FormLabel" width="{$form_labelWidth}"><font color="red">* </font>{$PRO_TITLE}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PRO_TITLE} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PRO_TITLE}</td>
</tr>
<tr>
<td class="FormLabel" width="{$form_labelWidth}">{$PRO_DESCRIPTION}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PRO_DESCRIPTION} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PRO_DESCRIPTION}</td>
</tr>
<tr>
<td class="FormLabel" width="{$form_labelWidth}">{$PRO_CALENDAR}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PRO_CALENDAR} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PRO_CALENDAR}</td>
</tr>
<td class="FormLabel" width="{$form_labelWidth}">{$PRO_CATEGORY}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PRO_CALENDAR} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PRO_CATEGORY}</td>
</tr>
<tr>
<td class="FormLabel" width="{$form_labelWidth}">{$PRO_DEBUG}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PRO_DEBUG} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PRO_DEBUG}</td>
</tr>
<tr>
<td class="FormButton" colspan="2" align="center"><br/> {$form.SUBMIT} &nbsp; {$form.BTN_CANCEL} </td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
<div class="FormRequiredTextMessage"><font color="red">* </font>{php}echo (G::LoadTranslation('ID_REQUIRED_FIELD'));{/php}</div> </div>
<div class="boxBottom"><div class="a"></div><div class="b"></div><div class="c"></div></div>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td class="FormTitle" colspan="2" align="">{$form.TITLE1}</td>
</tr>
<tr style="display: none;">
<td colspan="2">{$form.PRO_UID}</td>
</tr>
<tr style="display: none;">
<td colspan="2">{$form.THETYPE}</td>
</tr>
<tr>
<td class="FormLabel" width="{$form_labelWidth}"><font color="red">* </font>{$PRO_TITLE}</td>
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PRO_TITLE}</td>
</tr>
<tr>
<td class="FormLabel" width="{$form_labelWidth}">{$PRO_DESCRIPTION}</td>
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PRO_DESCRIPTION}</td>
</tr>
<tr>
<td class="FormLabel" width="{$form_labelWidth}">{$PRO_CALENDAR}</td>
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PRO_CALENDAR}</td>
</tr>
<tr>
<td class="FormLabel" width="{$form_labelWidth}">{$PRO_CATEGORY}</td>
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PRO_CATEGORY}</td>
</tr>
<tr>
<td class="FormLabel" width="{$form_labelWidth}">{$PRO_SUMMARY_DYNAFORM}</td>
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PRO_SUMMARY_DYNAFORM}</td>
</tr>
<tr>
<td class="FormLabel" width="{$form_labelWidth}">{$PRO_DEBUG}</td>
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PRO_DEBUG}</td>
</tr>
<tr>
<td class="FormButton" colspan="2" align="center"><br/> {$form.SUBMIT} &nbsp; {$form.BTN_CANCEL} </td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<div class="FormRequiredTextMessage"><font color="red">* </font>{php}echo (G::LoadTranslation('ID_REQUIRED_FIELD'));{/php}</div>
</div>
<script type="text/javascript">
{$form.JS}
</script>
</form>
<div class="boxBottom"><div class="a"></div><div class="b"></div><div class="c"></div>
</div>
<script type="text/javascript">
{$form.JS}
</script>
</form>

View File

@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<dynaForm name="processes_Edit" width="500px" labelWidth="250px" mode="edit" enableTemplate="1" ajaxSubmit="1" >
<dynaForm name="processes_Edit" width="500px" labelWidth="250px" mode="edit" enableTemplate="1" ajaxSubmit="1">
<TITLE1 type="title" group="1">
<en>Process Information </en>
<en>Process Information</en>
</TITLE1>
<PRO_UID type="hidden"/>
@@ -13,20 +13,31 @@
<en>Title</en>
</PRO_TITLE>
<PRO_DESCRIPTION type="textarea" rows="8" cols="60">
<en>Description</en>
</PRO_DESCRIPTION>
<PRO_CALENDAR type="dropdown" sqlconnection="dbarray">
SELECT CALENDAR_UID, CALENDAR_NAME FROM availableCalendars
<en>Calendar<option name="">- None -</option></en>
<![CDATA[SELECT CALENDAR_UID,CALENDAR_NAME FROM availableCalendars]]>
<en>Calendar
<option name="">- None -</option>
</en>
</PRO_CALENDAR>
<PRO_CATEGORY type="dropdown" >
SELECT CATEGORY_UID, CATEGORY_NAME FROM PROCESS_CATEGORY
<en>Process Category<option name="">- None -</option></en>
<![CDATA[SELECT CATEGORY_UID, CATEGORY_NAME FROM PROCESS_CATEGORY]]>
<en>Process Category
<option name="">- None -</option>
</en>
</PRO_CATEGORY>
<PRO_SUMMARY_DYNAFORM type="dropdown">
<![CDATA[SELECT DYN_UID, CON_VALUE AS DYN_TITLE FROM DYNAFORM LEFT JOIN CONTENT ON (DYN_UID = CON_ID AND CON_CATEGORY = 'DYN_TITLE' AND CON_LANG = '@#SYS_LANG') WHERE PRO_UID = '@#PRO_UID' AND DYN_TYPE = 'xmlform' ORDER BY DYN_TITLE]]>
<en>Dynaform to show a case summary
<option name="">- Default summary Dynaform -</option>
</en>
</PRO_SUMMARY_DYNAFORM>
<PRO_DEBUG type="checkbox" value="1" falsevalue="0" defaultvalue="1" labelonright="0">
<en>Debug</en>
</PRO_DEBUG>
@@ -41,30 +52,28 @@ SELECT CATEGORY_UID, CATEGORY_NAME FROM PROCESS_CATEGORY
<MESSAGE1 type="phpvariable"/>
<JS type="javascript" replacetags="1"><![CDATA[
var verifyProcessInformation = function(oForm)
{
<JS type="javascript" replacetags="1">
<![CDATA[
var verifyProcessInformation = function(oForm) {
var oAux;
var bContinue = true;
oAux = oForm.elements['form[PRO_TITLE]'];
if (oAux.value == '')
{
if (oAux.value == '') {
alert('@G::LoadTranslation(ID_PROCESS_TITLE_REQUIRED)');
oAux.focus();
bContinue = false;
}
if (bContinue)
{
if (bContinue) {
ajax_post(oForm.action, oForm, 'POST');
Pm.data.db.title.label = Pm.data.db.title.object.elements.label.innerHTML = getField('PRO_TITLE').value.escapeHTML();
Pm.tmp.editProcessPanel.remove();
}
};
function cancel(){
Pm.tmp.editProcessPanel.remove();
function cancel() {
Pm.tmp.editProcessPanel.remove();
}
]]>
</JS>
]]></JS>
</dynaForm>
</dynaForm>