Conflicts

This commit is contained in:
Paula Quispe
2019-09-12 15:10:46 -04:00
65 changed files with 1199 additions and 1622 deletions

View File

@@ -1,69 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<dynaForm type="xmlform" name="cases_ReassignBy.xml" width="600" enabletemplate="1" mode="edit">
<title type="subtitle" enableHTML="1">
<en><![CDATA[<center>Reassignment of Cases</center>]]></en>
</title>
<REASSIGN_BY type="radiogroup" required="0" defaultvalue="1" mode="edit">
<en><![CDATA[Reassign By]]><option name="1"><![CDATA[Case]]></option><option name="2"><![CDATA[User]]></option></en>
</REASSIGN_BY>
<REASSIGN_USER type="dropdown" required="0" readonly="0" mode="edit" sqlconnection="dbarray"><![CDATA[
SELECT * FROM aUserInfo
]]><en><![CDATA[]]><option name=""><![CDATA[- Select -]]></option></en></REASSIGN_USER>
<JS type="javascript"><![CDATA[
var bFlag = false;
var client = getBrowserClient();
var dynaformOnload = function() {
if (!bFlag) {
if( client.browser == 'msie'){
document.getElementById('form[REASSIGN_BY][1]').onclick= function() {
if (this.checked) {
if (window.location.href.indexOf('cases_List?l=to_reassign') == -1) {
window.location = 'cases_List?l=to_reassign';
}
}
};
document.getElementById('form[REASSIGN_BY][2]').onclick= function() {
if (document.getElementById('form[REASSIGN_BY][2]').checked) {
if (window.location.href.indexOf('cases_ReassignByUser') == -1) {
window.location = 'cases_ReassignByUser';
}
}
};
leimnud.event.add(getField('REASSIGN_USER'), 'change', function() {
window.location = 'cases_ReassignByUser?REASSIGN_USER=' + getField('REASSIGN_USER').value;
});
} else { //for other firefox, safari, etc..
leimnud.event.add(getField('REASSIGN_BY][1'), 'click', function() {
if (this.checked) {
if (window.location.href.indexOf('cases_List?l=to_reassign') == -1) {
window.location = 'cases_List?l=to_reassign';
}
}
});
leimnud.event.add(getField('REASSIGN_BY][2'), 'click', function() {
if (this.checked) {
if (window.location.href.indexOf('cases_ReassignByUser') == -1) {
window.location = 'cases_ReassignByUser';
}
}
});
leimnud.event.add(getField('REASSIGN_USER'), 'change', function() {
window.location = 'cases_ReassignByUser?REASSIGN_USER=' + this.value;
});
}
bFlag = true;
}
};
if (getField('REASSIGN_BY][2').checked){
//showRowById('REASSIGN_USER');
document.getElementById('form[REASSIGN_USER]').style.display = 'block';
} else {
//hideRowById('REASSIGN_USER');
document.getElementById('form[REASSIGN_USER]').style.display = 'none';
}
]]></JS>
</dynaForm>

View File

@@ -1,34 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<dynaForm type="pagetable" menu="users/users_Options" searchBy="USR_USERNAME | USR_LASTNAME | USR_FIRSTNAME | USR_EMAIL">
<USR_UID type="private" showInTable="0"/>
<USR_COMPLETENAME type="text" titlealign="left" align="left" colWidth="200">
<en><![CDATA[Full Name]]></en>
</USR_COMPLETENAME>
<USR_USERNAME type="text" titlealign="left" align="left" colWidth="120">
<en><![CDATA[Username]]></en>
</USR_USERNAME>
<USR_EMAIL type="text" titlealign="left" align="left" colWidth="190">
<en><![CDATA[E-Mail]]></en>
</USR_EMAIL>
<USR_ROLE type="text" titlealign="left" align="left" colWidth="180">
<en><![CDATA[Role]]></en>
</USR_ROLE>
<USR_DUE_DATE type="text" titlealign="left" align="left" colWidth="65">
<en><![CDATA[Due Date]]></en>
</USR_DUE_DATE>
<USR_EDIT type="link" colWidth="50" value="@#USR_EDIT" link="users_Edit?USR_UID=@#USR_UID">
<en><![CDATA[]]></en>
</USR_EDIT>
<USR_GROUP type="link" colWidth="25" value="@G::LoadTranslation(ID_VIEW_USER_GROUP)" link="#" onclick="viewUserGroups('@#USR_UID');return false;">
<en><![CDATA[]]></en>
</USR_GROUP>
<USR_AUTH type="link" colWidth="25" value="@#USR_AUTH" link="users_AuthSource?USR_UID=@#USR_UID">
<en><![CDATA[]]></en>
</USR_AUTH>
<!--USR_REASSIGN type="link" colWidth="100" value="@#USR_REASSIGN" link="#" onclick="reassignCases2(&#039;@#USR_UID&#039;);return false;">
<en/>
</USR_REASSIGN-->
<USR_DELETE type="link" colWidth="25" value="@#USR_DELETE" link="#" onclick="deleteUser('@#USR_UID');return false;">
<en><![CDATA[]]></en>
</USR_DELETE>
</dynaForm>

View File

@@ -1,200 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<dynaForm type="xmlmenu">
<MNU_ADD type="link" value="" link="#" onclick="window.location = 'users_New';return false;" colAlign="left" colWidth="35">
<en><![CDATA[New]]></en>
</MNU_ADD>
<PAGED_TABLE_ID type="private"/>
<PAGED_TABLE_FAST_SEARCH type="FastSearch" label="@G::LoadTranslation(ID_SEARCH)"/>
<SEARCH_FILTER_FORM type="private"/>
<CONFIRM type="private"/>
<JS type="javascript"><![CDATA[
var simpleUserDelete = function(sUser) {
new leimnud.module.app.confirm().make({
label:'@#CONFIRM',
action:function() {
window.location = 'users_Delete?USR_UID=' + sUser;
}.extend(this)
});
};
var panel;
var gUSER_UID;
var deleteUser=function(sUser){
if (sUser == '00000000000000000000000000000001')
{
new leimnud.module.app.alert().make({
label: "@G::LoadTranslation(ID_CANNOT_DELETE_ADMIN_USER)"
});
}
else
{
gUSER_UID = sUser;
panel =new leimnud.module.panel();
panel.options={
size :{w:450,h:250},
position:{x:50,y:50,center:true},
statusBarButtons:[
{value:'@G::LoadTranslation(ID_DELETE)'},
{value: G_STRINGS.CANCEL}
],
title :G_STRINGS.ID_PROSESSESCASE,
control :{close:true,resize:false},fx:{modal:true},
statusBar:false,
fx :{shadow:true,modal:true}
};
panel.make();
panel.elements.statusBarButtons[0].onmouseup=function(){
var todoCount = parseInt(getField('TO_DO').value);
var draftCount = parseInt(getField('DRAFT').value);
var cancelledCount = parseInt(getField('CANCELLED').value);
var completedCount = parseInt(getField('COMPLETED').value);
if(todoCount== 0 && draftCount==0){
if(cancelledCount== 0 && completedCount==0){
location.href = "users_Delete?USR_UID="+gUSER_UID;
} else {
new leimnud.module.app.confirm().make({
label:G_STRINGS.USERS_DELETE_WITH_HISTORY,
width:350,
height:130,
action:function(){
location.href = "users_Delete?USR_UID="+gUSER_UID;
}.extend(this)
});
}
} else {
new leimnud.module.app.confirm().make({
label:G_STRINGS.USERS_REASSIGN,
width:350,
height:135,
action:function(){
/*location.href = "../cases/cases_ReassignByUser";*/
userReassing(gUSER_UID);
}.extend(this)
});
}
};
panel.elements.statusBarButtons[1].onmouseup=panel.remove;
panel.loader.show();
var r = new leimnud.module.rpc.xmlhttp({
url:"users_DeleteAssign.php",
method:"GET",
args:"USR_UID=" + sUser
});
r.callback=function(rpc)
{
panel.loader.hide();
panel.addContent(rpc.xmlhttp.responseText);
};
r.make();
}
}
function viewUserGroups(sUserUID){
popupWindow('' , 'users_Groups?sUserUID='+sUserUID , 400 , 330 );
/*refreshTree();*/
};
function showUserGroups(sUserUID){
var oRPC = new leimnud.module.rpc.xmlhttp({
url : '../users/users_Ajax',
async : false,
method: 'POST',
args : 'function=showUserGroups'+ '&sUserUID=' + sUserUID
});
oRPC.make();
currentPopupWindow.clearContent();
currentPopupWindow.addContent(oRPC.xmlhttp.responseText);
};
function deleteGroup(sGroup, sUser){
new leimnud.module.app.confirm().make({
label:G_STRINGS.ID_MSG_CONFIRM_REMOVE_USERGROUP,
action:function(){
var oRPC = new leimnud.module.rpc.xmlhttp({
url : '../users/users_Ajax',
async : false,
method: 'POST',
args : 'function=deleteGroup&GRP_UID=' + sGroup + '&USR_UID=' + sUser
});
oRPC.make();
currentPopupWindow.clearContent();
currentPopupWindow.addContent(oRPC.xmlhttp.responseText);
}.extend(this)
});
};
function showUserGroupInterface(sUserUID){
var oRPC = new leimnud.module.rpc.xmlhttp({
url : '../users/users_Ajax',
async : false,
method: 'POST',
args : 'function=showUserGroupInterface'+ '&sUserUID=' + sUserUID
});
oRPC.make();
currentPopupWindow.clearContent();
currentPopupWindow.addContent(oRPC.xmlhttp.responseText);
//currentPopupWindow.remove();
};
function saveUserGroup(sGroup, sUser){
var oRPC = new leimnud.module.rpc.xmlhttp({
url : '../users/users_Ajax',
async : false,
method: 'POST',
args : 'function=assignUserToGroup&GRP_UID=' + sGroup + '&USR_UID=' + sUser
});
oRPC.make();
currentPopupWindow.clearContent();
currentPopupWindow.addContent(oRPC.xmlhttp.responseText);
setTimeout('showUserGroups(\''+sUser+'\')',1500);
}
var reassignCases = function(sUser) {
window.location = 'users_ReassignCases?sUser=' + sUser;
};
var reassignCases2 = function(USR_UID) {
popupWindow('' , 'users_ReassignCases?USR_UID=' + USR_UID + '&iStep=1' , 500, 350);
};
function userReassing(USR_UID){
var panel =new leimnud.module.panel();
var width = 1000;
var height= 700;
panel.options={
size :{w:width, h:height},
position:{x:50,y:50,center:true},
statusBarButtons:[{value: G_STRINGS.CANCEL}],
title :G_STRINGS.ID_REASSIGNMENT,
control :{close:true,resize:false},fx:{modal:true},
statusBar:false,
fx :{shadow:true,modal:true}
};
panel.make();
ifrm = document.createElement("iframe");
ifrm.setAttribute("name", "userReassing");
ifrm.setAttribute("id","userReassing");
ifrm.setAttribute("src", "../cases/cases_ReassignByUser?REASSIGN_USER="+USR_UID);
ifrm.style.width = "100%";
ifrm.style.height = "99%";
ifrm.style.border = "0";
panel.addContent(ifrm);
panel.elements.statusBarButtons[0].onmouseup=function(){
panel.remove();
};
}
]]></JS>
</dynaForm>