FSN#35518 fac_import_app.asp toont alleen catalogus imports

svn path=/Website/trunk/; revision=28362
This commit is contained in:
Erik Groener
2016-03-03 15:44:49 +00:00
parent 95e75050c5
commit b66cf01420
3 changed files with 50 additions and 16 deletions

View File

@@ -19,7 +19,7 @@ function model_fac_import_app()
this.primary = "fac_import_app_key";
this.records_name = "fac_import_apps";
this.record_name = "fac_import_app";
this.autfunction = "WEB_BESMGT";
this.autfunction = "WEB_PRSSYS"; //"WEB_BESMGT";
this.record_title = L("fac_import_app");
this.records_title = L("fac_import_app_m");
@@ -33,19 +33,19 @@ function model_fac_import_app()
"filter": "exact",
"seq": "fac_s_fac_import_app_key"
},
"fac_import_app_oms": {
"name": {
"dbs": "fac_import_app_oms",
"label": L("fac_import_app_oms"),
"typ": "varchar",
"hidden_fld": true,
"defaultvalue": "Catalogus"
},
"fac_import_app_xsl": {
"xsl": {
"dbs": "fac_import_app_xsl",
"label": L("fac_import_app_xsl"),
"typ": "varchar"
},
"fac_functie_key": {
"function_key": {
"dbs": "fac_functie_key",
"label": L("fac_functie_key"),
"typ": "key",
@@ -59,7 +59,7 @@ function model_fac_import_app()
},
"filter": "exact"
},
"ins_discipline_key": {
"catalog_key": {
"dbs": "ins_discipline_key",
"label": L("fac_ins_discipline_key"),
"typ": "key",
@@ -72,14 +72,14 @@ function model_fac_import_app()
},
"filter": "exact"
},
"fac_import_app_code": {
"code": {
"dbs": "fac_import_app_code",
"label": L("fac_import_app_code"),
"typ": "varchar",
"hidden_fld": true,
"defaultvalue": "CATALOGUS"
},
"prs_bedrijf_key": {
"company_key": {
"dbs": "prs_bedrijf_key",
"label": L("prs_bedrijf_key"),
"typ": "key",
@@ -95,10 +95,30 @@ function model_fac_import_app()
},
"filter": "exact"
},
"fac_import_app_charset": {
"charset": {
"dbs": "fac_import_app_charset",
"label": L("fac_import_app_charset"),
"typ": "varchar"
},
"folder": {
"dbs": "fac_import_app_folder",
"label": L("fac_import_app_folder"),
"typ": "varchar"
},
"files": {
"dbs": "fac_import_app_files",
"label": L("fac_import_app_files"),
"typ": "varchar"
},
"prefix": {
"dbs": "fac_import_app_prefix",
"label": L("fac_import_app_prefix"),
"typ": "varchar"
},
"action": {
"dbs": "fac_import_app_action",
"label": L("fac_import_app_action"),
"typ": "varchar"
}
};

View File

@@ -4,24 +4,34 @@
<!-- #include file="../api2/model_fac_import_app.inc" -->
<%
var generic = getQParamInt("gen", 0);
var this_model = new model_fac_import_app();
if (generic == 1)
{
this_model.autfunction = "WEB_PRSSYS";
delete this_model.fields.name.hidden_fld;
delete this_model.fields.code.hidden_fld;
delete this_model.gparams.GET.wheres;
}
scaffolding(this_model,
{
"search": {
"autosearch": true,
"filters": [
"ins_discipline_key",
"fac_functie_key",
"prs_bedrijf_key"
"catalog_key",
"function_key",
"company_key"
]
},
"list": {
"columns": [
"id",
"ins_discipline_key",
"prs_bedrijf_key",
"fac_import_app_oms"
"code",
"catalog_key",
"company_key",
"name"
]
},
"edit": {
@@ -29,6 +39,10 @@ scaffolding(this_model,
js: ["./fac_import_app.js"]
}
},
"transit": {
"name": "gen",
"val": generic
},
"print": {}
});
%>

View File

@@ -2,8 +2,8 @@ function pre_submit()
{
var validation_message = "";
var disc = $("#ins_discipline_key").val();
var bedr = $("#prs_bedrijf_key").val();
var disc = $("#catalog_key").val();
var bedr = $("#company_key").val();
if (disc == -1 && bedr == -1)
validation_message = L("fac_import_app_err1");