44 lines
962 B
JavaScript
44 lines
962 B
JavaScript
.pragma library
|
|
|
|
function firstConf(tabs)
|
|
{
|
|
let pyqcrm_conf = {};
|
|
|
|
pyqcrm_conf[tabs.name] = {}
|
|
for (var i = 0; i < tabs.children.length; i++)
|
|
{
|
|
if (tabs.children[i].name)
|
|
{
|
|
if (!tabs.children[i].text.trim())
|
|
return false
|
|
pyqcrm_conf[tabs.name] [tabs.children[i].name] = tabs.children[i].text
|
|
}
|
|
}
|
|
|
|
return pyqcrm_conf
|
|
}
|
|
|
|
function addBusiness(form)
|
|
{
|
|
let business_form = {};
|
|
for (var i = 0; i < form.children.length; i++)
|
|
if (form.children[i].toString().startsWith("Combo"))
|
|
{
|
|
if(form.children[i].editText)
|
|
{
|
|
console.log(form.children[i].editText)
|
|
}
|
|
else
|
|
{
|
|
console.log(form.children[i].currentText)
|
|
}
|
|
}
|
|
else if (form.children[i].toString().startsWith("TextField"))
|
|
{
|
|
console.log(form.children[i].text)
|
|
}
|
|
}
|
|
|
|
|
|
|