![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /var/www/html/keeview_app/html/ |
Upload File : |
form_module.defaultCircuitOfForm = {}; form_module.loadDefaultCircuitOfForm = function(){ return new Promise(function(rs, rj){ FormClass.api_call({ url: "database_load.php", params: [{name: "task", value: "load_circuit_default"}], func: function(success, message){ if (success){ if (message.substr(0, 2) == "ok"){ var content = EncodingClass.string.toVariable(message.substr(2)); content.forEach(function(elt){ if (!form_module.defaultCircuitOfForm[elt.typeid]) form_module.defaultCircuitOfForm[elt.typeid] = {}; form_module.defaultCircuitOfForm[elt.typeid][elt.task] = { blocks: EncodingClass.string.toVariable(elt.block), lines: EncodingClass.string.toVariable(elt.line) }; }); rs("success"); } else { console.log(message); rj(message) } } else { console.log(message); rj(message) } } }); }); }; // form_module.defaultCircuitOfForm[-224] = function(task){ // var lines = []; // var t_line = { // u: "type_task_template_task_name", // uPin: "requestExpression", // v: "task_template_get_variable_for_name", // vPin: "currentExpression" // }; // t_line.attributes = { // ident: t_line.u + t_line.uPin + t_line.v + t_line.vPin // }; // lines.push(t_line); // t_line = { // u: "task_template_get_variable_for_name", // uPin: "result", // v: "type_task_template_task_name", // vPin: "insertExpression" // }; // t_line.attributes = { // ident: t_line.u + t_line.uPin + t_line.v + t_line.vPin // }; // lines.push(t_line); // t_line = { // u: "type_task_template_task_assign_to", // uPin: "requestExpression", // v: "task_template_get_variable_for_assign_to", // vPin: "currentExpression" // }; // t_line.attributes = { // ident: t_line.u + t_line.uPin + t_line.v + t_line.vPin // }; // lines.push(t_line); // t_line = { // u: "task_template_get_variable_for_assign_to", // uPin: "result", // v: "type_task_template_task_assign_to", // vPin: "insertExpression" // }; // t_line.attributes = { // ident: t_line.u + t_line.uPin + t_line.v + t_line.vPin // }; // lines.push(t_line); // t_line = { // u: "type_task_template_task_expire_time", // uPin: "requestExpression", // v: "task_template_get_variable_for_expire_time", // vPin: "currentExpression" // }; // t_line.attributes = { // ident: t_line.u + t_line.uPin + t_line.v + t_line.vPin // }; // lines.push(t_line); // t_line = { // u: "task_template_get_variable_for_expire_time", // uPin: "result", // v: "type_task_template_task_expire_time", // vPin: "insertExpression" // }; // t_line.attributes = { // ident: t_line.u + t_line.uPin + t_line.v + t_line.vPin // }; // lines.push(t_line); // t_line = { // u: "type_task_template_task_participant", // uPin: "requestExpression", // v: "task_template_get_variable_for_participant", // vPin: "currentExpression" // }; // t_line.attributes = { // ident: t_line.u + t_line.uPin + t_line.v + t_line.vPin // }; // lines.push(t_line); // t_line = { // u: "task_template_get_variable_for_participant", // uPin: "result", // v: "type_task_template_task_participant", // vPin: "insertExpression" // }; // t_line.attributes = { // ident: t_line.u + t_line.uPin + t_line.v + t_line.vPin // }; // lines.push(t_line); // t_line = { // u: "type_task_template_task_result", // uPin: "requestExpression", // v: "task_template_get_variable_for_result", // vPin: "currentExpression" // }; // t_line.attributes = { // ident: t_line.u + t_line.uPin + t_line.v + t_line.vPin // }; // lines.push(t_line); // t_line = { // u: "task_template_get_variable_for_result", // uPin: "result", // v: "type_task_template_task_result", // vPin: "insertExpression" // }; // t_line.attributes = { // ident: t_line.u + t_line.uPin + t_line.v + t_line.vPin // }; // lines.push(t_line); // var circuit = { // blocks: [ // { // attributes: { // id: "task_template_get_variable_for_name", // ident: "task_template_get_variable_for_name", // args: ["currentExpression"], // body: "var groupid = this.fragment.props.type_task_template_groupid.value;" + // "var items = this.fragment.props.type_task_template_groupid.list;" + // "var typeid;" + // "for (var i = 0; i < items.length; i++){if (items[i].value == groupid) {typeid = items[i].typeid; break;}}" + // "return contentModule.getVariableForTemplate(typeid, currentExpression);" // }, // tag: "function" // }, // { // attributes: { // id: "task_template_get_variable_for_expire_time", // ident: "task_template_get_variable_for_expire_time", // args: ["currentExpression"], // body: "var groupid = this.fragment.props.type_task_template_groupid.value;" + // "var items = this.fragment.props.type_task_template_groupid.list;" + // "var typeid;" + // "for (var i = 0; i < items.length; i++){if (items[i].value == groupid) {typeid = items[i].typeid; break;}}" + // "return contentModule.getVariableForTemplate(typeid, currentExpression);" // }, // tag: "function" // }, // { // attributes: { // id: "task_template_get_variable_for_assign_to", // ident: "task_template_get_variable_for_assign_to", // args: ["currentExpression"], // body: "var groupid = this.fragment.props.type_task_template_groupid.value;" + // "var items = this.fragment.props.type_task_template_groupid.list;" + // "var typeid;" + // "for (var i = 0; i < items.length; i++){if (items[i].value == groupid) {typeid = items[i].typeid; break;}}" + // "return contentModule.getVariableForTemplate(typeid, currentExpression);" // }, // tag: "function" // }, // { // attributes: { // id: "task_template_get_variable_for_participant", // ident: "task_template_get_variable_for_participant", // args: ["currentExpression"], // body: "var groupid = this.fragment.props.type_task_template_groupid.value;" + // "var items = this.fragment.props.type_task_template_groupid.list;" + // "var typeid;" + // "for (var i = 0; i < items.length; i++){if (items[i].value == groupid) {typeid = items[i].typeid; break;}}" + // "return contentModule.getVariableForTemplate(typeid, currentExpression);" // }, // tag: "function" // }, // { // attributes: { // id: "task_template_get_variable_for_result", // ident: "task_template_get_variable_for_result", // args: ["currentExpression"], // body: "var groupid = this.fragment.props.type_task_template_groupid.value;" + // "var items = this.fragment.props.type_task_template_groupid.list;" + // "var typeid;" + // "for (var i = 0; i < items.length; i++){if (items[i].value == groupid) {typeid = items[i].typeid; break;}}" + // "return contentModule.getVariableForTemplate(typeid, currentExpression);" // }, // tag: "function" // } // ], // lines: lines // }; // return circuit; // }; // // form_module.defaultCircuitOfForm[-225] = function(task){ // var lines = []; // var t_line = { // u: "type_meeting_template_meeting_name", // uPin: "requestExpression", // v: "meeting_template_get_variable_for_name", // vPin: "currentExpression" // }; // t_line.attributes = { // ident: t_line.u + t_line.uPin + t_line.v + t_line.vPin // }; // lines.push(t_line); // t_line = { // u: "meeting_template_get_variable_for_name", // uPin: "result", // v: "type_meeting_template_meeting_name", // vPin: "insertExpression" // }; // t_line.attributes = { // ident: t_line.u + t_line.uPin + t_line.v + t_line.vPin // }; // lines.push(t_line); // t_line = { // u: "type_meeting_template_meeting_location", // uPin: "requestExpression", // v: "meeting_template_get_variable_for_location", // vPin: "currentExpression" // }; // t_line.attributes = { // ident: t_line.u + t_line.uPin + t_line.v + t_line.vPin // }; // lines.push(t_line); // t_line = { // u: "meeting_template_get_variable_for_location", // uPin: "result", // v: "type_meeting_template_meeting_location", // vPin: "insertExpression" // }; // t_line.attributes = { // ident: t_line.u + t_line.uPin + t_line.v + t_line.vPin // }; // lines.push(t_line); // t_line = { // u: "type_meeting_template_meeting_start_time", // uPin: "requestExpression", // v: "meeting_template_get_variable_for_start_time", // vPin: "currentExpression" // }; // t_line.attributes = { // ident: t_line.u + t_line.uPin + t_line.v + t_line.vPin // }; // lines.push(t_line); // t_line = { // u: "meeting_template_get_variable_for_start_time", // uPin: "result", // v: "type_meeting_template_meeting_start_time", // vPin: "insertExpression" // }; // t_line.attributes = { // ident: t_line.u + t_line.uPin + t_line.v + t_line.vPin // }; // lines.push(t_line); // t_line = { // u: "type_meeting_template_meeting_end_time", // uPin: "requestExpression", // v: "meeting_template_get_variable_for_end_time", // vPin: "currentExpression" // }; // t_line.attributes = { // ident: t_line.u + t_line.uPin + t_line.v + t_line.vPin // }; // lines.push(t_line); // t_line = { // u: "meeting_template_get_variable_for_end_time", // uPin: "result", // v: "type_meeting_template_meeting_end_time", // vPin: "insertExpression" // }; // t_line.attributes = { // ident: t_line.u + t_line.uPin + t_line.v + t_line.vPin // }; // lines.push(t_line); // t_line = { // u: "type_meeting_template_meeting_assign_to", // uPin: "requestExpression", // v: "meeting_template_get_variable_for_assign_to", // vPin: "currentExpression" // }; // t_line.attributes = { // ident: t_line.u + t_line.uPin + t_line.v + t_line.vPin // }; // lines.push(t_line); // t_line = { // u: "meeting_template_get_variable_for_assign_to", // uPin: "result", // v: "type_meeting_template_meeting_assign_to", // vPin: "insertExpression" // }; // t_line.attributes = { // ident: t_line.u + t_line.uPin + t_line.v + t_line.vPin // }; // lines.push(t_line); // t_line = { // u: "type_meeting_template_meeting_participant", // uPin: "requestExpression", // v: "meeting_template_get_variable_for_participant", // vPin: "currentExpression" // }; // t_line.attributes = { // ident: t_line.u + t_line.uPin + t_line.v + t_line.vPin // }; // lines.push(t_line); // t_line = { // u: "meeting_template_get_variable_for_participant", // uPin: "result", // v: "type_meeting_template_meeting_participant", // vPin: "insertExpression" // }; // t_line.attributes = { // ident: t_line.u + t_line.uPin + t_line.v + t_line.vPin // }; // lines.push(t_line); // t_line = { // u: "type_meeting_template_meeting_result", // uPin: "requestExpression", // v: "meeting_template_get_variable_for_result", // vPin: "currentExpression" // }; // t_line.attributes = { // ident: t_line.u + t_line.uPin + t_line.v + t_line.vPin // }; // lines.push(t_line); // t_line = { // u: "meeting_template_get_variable_for_result", // uPin: "result", // v: "type_meeting_template_meeting_result", // vPin: "insertExpression" // }; // t_line.attributes = { // ident: t_line.u + t_line.uPin + t_line.v + t_line.vPin // }; // lines.push(t_line); // var circuit = { // blocks: [ // { // attributes: { // id: "meeting_template_get_variable_for_name", // ident: "meeting_template_get_variable_for_name", // args: ["currentExpression"], // body: "var groupid = this.fragment.props.type_meeting_template_groupid.value;" + // "var items = this.fragment.props.type_meeting_template_groupid.list;" + // "var typeid;" + // "for (var i = 0; i < items.length; i++){if (items[i].value == groupid) {typeid = items[i].typeid; break;}}" + // "return contentModule.getVariableForTemplate(typeid, currentExpression);" // // }, // tag: "function" // }, // { // attributes: { // id: "meeting_template_get_variable_for_location", // ident: "meeting_template_get_variable_for_location", // args: ["currentExpression"], // body: "var groupid = this.fragment.props.type_meeting_template_groupid.value;" + // "var items = this.fragment.props.type_meeting_template_groupid.list;" + // "var typeid;" + // "for (var i = 0; i < items.length; i++){if (items[i].value == groupid) {typeid = items[i].typeid; break;}}" + // "return contentModule.getVariableForTemplate(typeid, currentExpression);" // }, // tag: "function" // }, // { // attributes: { // id: "meeting_template_get_variable_for_start_time", // ident: "meeting_template_get_variable_for_start_time", // args: ["currentExpression"], // body: "var groupid = this.fragment.props.type_meeting_template_groupid.value;" + // "var items = this.fragment.props.type_meeting_template_groupid.list;" + // "var typeid;" + // "for (var i = 0; i < items.length; i++){if (items[i].value == groupid) {typeid = items[i].typeid; break;}}" + // "return contentModule.getVariableForTemplate(typeid, currentExpression);" // }, // tag: "function" // }, // { // attributes: { // id: "meeting_template_get_variable_for_end_time", // ident: "meeting_template_get_variable_for_end_time", // args: ["currentExpression"], // body: "var groupid = this.fragment.props.type_meeting_template_groupid.value;" + // "var items = this.fragment.props.type_meeting_template_groupid.list;" + // "var typeid;" + // "for (var i = 0; i < items.length; i++){if (items[i].value == groupid) {typeid = items[i].typeid; break;}}" + // "return contentModule.getVariableForTemplate(typeid, currentExpression);" // }, // tag: "function" // }, // { // attributes: { // id: "meeting_template_get_variable_for_assign_to", // ident: "meeting_template_get_variable_for_assign_to", // args: ["currentExpression"], // body: "var groupid = this.fragment.props.type_meeting_template_groupid.value;" + // "var items = this.fragment.props.type_meeting_template_groupid.list;" + // "var typeid;" + // "for (var i = 0; i < items.length; i++){if (items[i].value == groupid) {typeid = items[i].typeid; break;}}" + // "return contentModule.getVariableForTemplate(typeid, currentExpression);" // }, // tag: "function" // }, // { // attributes: { // id: "meeting_template_get_variable_for_participant", // ident: "meeting_template_get_variable_for_participant", // args: ["currentExpression"], // body: "var groupid = this.fragment.props.type_meeting_template_groupid.value;" + // "var items = this.fragment.props.type_meeting_template_groupid.list;" + // "var typeid;" + // "for (var i = 0; i < items.length; i++){if (items[i].value == groupid) {typeid = items[i].typeid; break;}}" + // "return contentModule.getVariableForTemplate(typeid, currentExpression);" // }, // tag: "function" // }, // { // attributes: { // id: "meeting_template_get_variable_for_result", // ident: "meeting_template_get_variable_for_result", // args: ["currentExpression"], // body: "var groupid = this.fragment.props.type_meeting_template_groupid.value;" + // "var items = this.fragment.props.type_meeting_template_groupid.list;" + // "var typeid;" + // "for (var i = 0; i < items.length; i++){if (items[i].value == groupid) {typeid = items[i].typeid; break;}}" + // "return contentModule.getVariableForTemplate(typeid, currentExpression);" // }, // tag: "function" // } // ], // lines: lines // }; // return circuit; // }; // // form_module.defaultCircuitOfForm[-226] = function(task){ // var lines = []; // var t_line = { // u: "type_email_template_receiver", // uPin: "requestExpression", // v: "email_template_get_variable_for_receiver", // vPin: "currentExpression" // }; // t_line.attributes = { // ident: t_line.u + t_line.uPin + t_line.v + t_line.vPin // }; // lines.push(t_line); // t_line = { // u: "email_template_get_variable_for_receiver", // uPin: "result", // v: "type_email_template_receiver", // vPin: "insertExpression" // }; // t_line.attributes = { // ident: t_line.u + t_line.uPin + t_line.v + t_line.vPin // }; // lines.push(t_line); // t_line = { // u: "type_email_template_carbon_copy", // uPin: "requestExpression", // v: "email_template_get_variable_for_carbon_copy", // vPin: "currentExpression" // }; // t_line.attributes = { // ident: t_line.u + t_line.uPin + t_line.v + t_line.vPin // }; // lines.push(t_line); // t_line = { // u: "email_template_get_variable_for_carbon_copy", // uPin: "result", // v: "type_email_template_carbon_copy", // vPin: "insertExpression" // }; // t_line.attributes = { // ident: t_line.u + t_line.uPin + t_line.v + t_line.vPin // }; // lines.push(t_line); // t_line = { // u: "type_email_template_content", // uPin: "requestExpression", // v: "email_template_get_variable_for_content", // vPin: "currentExpression" // }; // t_line.attributes = { // ident: t_line.u + t_line.uPin + t_line.v + t_line.vPin // }; // lines.push(t_line); // t_line = { // u: "email_template_get_variable_for_content", // uPin: "result", // v: "type_email_template_content", // vPin: "insertExpression" // }; // t_line.attributes = { // ident: t_line.u + t_line.uPin + t_line.v + t_line.vPin // }; // lines.push(t_line); // var circuit = { // blocks: [ // { // attributes: { // id: "email_template_get_variable_for_receiver", // ident: "email_template_get_variable_for_receiver", // args: ["currentExpression"], // body: "var groupid = this.fragment.props.type_email_template_groupid.value;" + // "var items = this.fragment.props.type_email_template_groupid.list;" + // "var typeid;" + // "for (var i = 0; i < items.length; i++){if (items[i].value == groupid) {typeid = items[i].typeid; break;}}" + // "return contentModule.getVariableForTemplate(typeid, currentExpression);" // }, // tag: "function" // }, // { // attributes: { // id: "email_template_get_variable_for_carbon_copy", // ident: "email_template_get_variable_for_carbon_copy", // args: ["currentExpression"], // body: "var groupid = this.fragment.props.type_email_template_groupid.value;" + // "var items = this.fragment.props.type_email_template_groupid.list;" + // "var typeid;" + // "for (var i = 0; i < items.length; i++){if (items[i].value == groupid) {typeid = items[i].typeid; break;}}" + // "return contentModule.getVariableForTemplate(typeid, currentExpression);" // }, // tag: "function" // }, // { // attributes: { // id: "email_template_get_variable_for_content", // ident: "email_template_get_variable_for_content", // args: ["currentExpression"], // body: "var groupid = this.fragment.props.type_email_template_groupid.value;" + // "var items = this.fragment.props.type_email_template_groupid.list;" + // "var typeid;" + // "for (var i = 0; i < items.length; i++){if (items[i].value == groupid) {typeid = items[i].typeid; break;}}" + // "return contentModule.getVariableForTemplate(typeid, currentExpression);" // }, // tag: "function" // } // ], // lines: lines // }; // return circuit; // }; // // form_module.defaultCircuitOfForm[-227] = function(task){ // var lines = []; // var t_line = { // u: "type_onboarding_employee_id", // uPin: "value", // v: "onboarding_get_employee_code", // vPin: "employeeid" // }; // t_line.attributes = { // ident: t_line.u + t_line.uPin + t_line.v + t_line.vPin // }; // lines.push(t_line); // t_line = { // u: "onboarding_get_employee_code", // uPin: "result", // v: "type_onboarding_employee_code", // vPin: "value" // }; // t_line.attributes = { // ident: t_line.u + t_line.uPin + t_line.v + t_line.vPin // }; // lines.push(t_line); // ///////////////////////////////////////// // var t_line = { // u: "type_onboarding_employee_id", // uPin: "value", // v: "onboarding_get_employee_start_date", // vPin: "employeeid" // }; // t_line.attributes = { // ident: t_line.u + t_line.uPin + t_line.v + t_line.vPin // }; // lines.push(t_line); // t_line = { // u: "onboarding_get_employee_start_date", // uPin: "result", // v: "type_onboarding_employee_start_date", // vPin: "value" // }; // t_line.attributes = { // ident: t_line.u + t_line.uPin + t_line.v + t_line.vPin // }; // lines.push(t_line); // ///////////////////////////////////////// // var t_line = { // u: "type_onboarding_employee_id", // uPin: "value", // v: "onboarding_get_employee_official_date", // vPin: "employeeid" // }; // t_line.attributes = { // ident: t_line.u + t_line.uPin + t_line.v + t_line.vPin // }; // lines.push(t_line); // t_line = { // u: "onboarding_get_employee_official_date", // uPin: "result", // v: "type_onboarding_employee_official_date", // vPin: "value" // }; // t_line.attributes = { // ident: t_line.u + t_line.uPin + t_line.v + t_line.vPin // }; // lines.push(t_line); // // if (task == "input"){ // var circuit = { // blocks: [ // { // attributes: { // id: "onboarding_get_employee_code", // ident: "onboarding_get_employee_code", // args: ["employeeid"], // body: "if (!employeeid) return '';" + // "else return data_module.loadEmployeeById(employeeid).then(function(rs){if (rs) return rs.code; else return ''});" // }, // tag: "function" // }, // { // attributes: { // id: "onboarding_get_employee_start_date", // ident: "onboarding_get_employee_start_date", // args: ["employeeid"], // body: "if (!employeeid) return undefined;" + // "else return data_module.loadEmployeeById(employeeid).then(function(rs){if (rs) return rs.content.start_date; else return undefined});" // }, // tag: "function" // }, // { // attributes: { // id: "onboarding_get_employee_official_date", // ident: "onboarding_get_employee_official_date", // args: ["employeeid"], // body: "if (!employeeid) return undefined;" + // "else return data_module.loadEmployeeById(employeeid).then(function(rs){if (rs) return rs.content.official_date; else return undefined});" // }, // tag: "function" // } // ], // lines: lines // }; // } // else { // var circuit = { // blocks: [ // { // attributes: { // id: "onboarding_get_employee_code", // ident: "onboarding_get_employee_code", // args: ["employeeid"], // body: "if (!employeeid) return '';" + // "else return data_module.loadEmployeeById(employeeid).then(function(rs){if (rs) return rs.code; else return ''});" // }, // tag: "function" // }, // { // attributes: { // id: "onboarding_get_employee_start_date", // ident: "onboarding_get_employee_start_date", // args: ["employeeid"], // body: "if (!employeeid) return undefined;" + // "else return data_module.loadEmployeeById(employeeid).then(function(rs){if (rs) return contentModule.getDateView(rs.content.start_date); else return undefined});" // }, // tag: "function" // }, // { // attributes: { // id: "onboarding_get_employee_official_date", // ident: "onboarding_get_employee_official_date", // args: ["employeeid"], // body: "if (!employeeid) return undefined;" + // "else return data_module.loadEmployeeById(employeeid).then(function(rs){if (rs) return contentModule.getDateView(rs.content.official_date); else return undefined});" // }, // tag: "function" // } // ], // lines: lines // }; // } // // return circuit; // }; // // form_module.defaultCircuitOfForm[-176] = function(task){ // var lines = []; // var t_line = { // "u": "type_employee_employment_contract_contractid", // "v": "get_display_effective_date_to", // "uPin": "value", // "vPin": "contract", // "id": "Qfx33dWlJKkekG1L" // }; // t_line.attributes = { // ident: t_line.u + t_line.uPin + t_line.v + t_line.vPin // }; // lines.push(t_line); // t_line = { // "u": "type_employee_employment_contract_contractid", // "v": "get_desc", // "uPin": "value", // "vPin": "contract" // }; // t_line.attributes = { // ident: t_line.u + t_line.uPin + t_line.v + t_line.vPin // }; // lines.push(t_line); // t_line = { // "u": "get_desc", // "v": "type_employee_employment_contract_description", // "uPin": "result", // "vPin": "value" // }; // t_line.attributes = { // ident: t_line.u + t_line.uPin + t_line.v + t_line.vPin // }; // lines.push(t_line); // t_line = { // "u": "get_display_effective_date_to", // "v": "type_employee_employment_contract_effective_date_to_container", // "uPin": "result", // "vPin": "display" // }; // t_line.attributes = { // ident: t_line.u + t_line.uPin + t_line.v + t_line.vPin // }; // lines.push(t_line); // // var circuit = { // blocks: [ // { // "tag": "function", // "attributes": { // "id": "get_desc", // "ident": "get_desc", // "args": [ // "contract" // ], // "body": "return contentModule.getDescriptionByContract(this.fragment.getContext(\"host\"), contract);", // "name": "get_desc" // } // }, // { // "tag": "function", // "attributes": { // "id": "get_display_effective_date_to", // "ident": "get_display_effective_date_to", // "args": [ // "contract" // ], // "body": "return contract != -1;", // "name": "get_display_effective_date_to" // } // } // ], // lines: lines // }; // // return circuit; // }; // // form_module.defaultCircuitOfForm[-174] = function(task){ // var lines = []; // var t_line = { // "u": "type_salary_decisions_applied_to_employee_employeeid", // "v": "get_position_name", // "uPin": "value", // "vPin": "employeeid" // }; // t_line.attributes = { // ident: t_line.u + t_line.uPin + t_line.v + t_line.vPin // }; // lines.push(t_line); // // var t_line = { // "u": "get_position_name", // "v": "type_salary_decisions_applied_to_employee_position", // "uPin": "result", // "vPin": "value" // }; // t_line.attributes = { // ident: t_line.u + t_line.uPin + t_line.v + t_line.vPin // }; // lines.push(t_line); // if (task == "input"){ // var circuit = { // blocks: [ // { // "tag": "function", // "attributes": { // "id": "get_position_name", // "ident": "get_position_name", // "name": "get_position_name", // "args": [ // "employeeid" // ], // "body": "return contentModule.getPositionNameByEmployee(this.fragment.getContext(\"host\"), employeeid);" // } // } // ], // lines: lines // }; // } // else { // var circuit = { // blocks: [], // lines: [] // }; // } // return circuit; // };