FSN#35518 fac_import_app.asp toont alleen catalogus imports
svn path=/Website/trunk/; revision=28362
This commit is contained in:
@@ -19,7 +19,7 @@ function model_fac_import_app()
|
|||||||
this.primary = "fac_import_app_key";
|
this.primary = "fac_import_app_key";
|
||||||
this.records_name = "fac_import_apps";
|
this.records_name = "fac_import_apps";
|
||||||
this.record_name = "fac_import_app";
|
this.record_name = "fac_import_app";
|
||||||
this.autfunction = "WEB_BESMGT";
|
this.autfunction = "WEB_PRSSYS"; //"WEB_BESMGT";
|
||||||
this.record_title = L("fac_import_app");
|
this.record_title = L("fac_import_app");
|
||||||
this.records_title = L("fac_import_app_m");
|
this.records_title = L("fac_import_app_m");
|
||||||
|
|
||||||
@@ -33,19 +33,19 @@ function model_fac_import_app()
|
|||||||
"filter": "exact",
|
"filter": "exact",
|
||||||
"seq": "fac_s_fac_import_app_key"
|
"seq": "fac_s_fac_import_app_key"
|
||||||
},
|
},
|
||||||
"fac_import_app_oms": {
|
"name": {
|
||||||
"dbs": "fac_import_app_oms",
|
"dbs": "fac_import_app_oms",
|
||||||
"label": L("fac_import_app_oms"),
|
"label": L("fac_import_app_oms"),
|
||||||
"typ": "varchar",
|
"typ": "varchar",
|
||||||
"hidden_fld": true,
|
"hidden_fld": true,
|
||||||
"defaultvalue": "Catalogus"
|
"defaultvalue": "Catalogus"
|
||||||
},
|
},
|
||||||
"fac_import_app_xsl": {
|
"xsl": {
|
||||||
"dbs": "fac_import_app_xsl",
|
"dbs": "fac_import_app_xsl",
|
||||||
"label": L("fac_import_app_xsl"),
|
"label": L("fac_import_app_xsl"),
|
||||||
"typ": "varchar"
|
"typ": "varchar"
|
||||||
},
|
},
|
||||||
"fac_functie_key": {
|
"function_key": {
|
||||||
"dbs": "fac_functie_key",
|
"dbs": "fac_functie_key",
|
||||||
"label": L("fac_functie_key"),
|
"label": L("fac_functie_key"),
|
||||||
"typ": "key",
|
"typ": "key",
|
||||||
@@ -59,7 +59,7 @@ function model_fac_import_app()
|
|||||||
},
|
},
|
||||||
"filter": "exact"
|
"filter": "exact"
|
||||||
},
|
},
|
||||||
"ins_discipline_key": {
|
"catalog_key": {
|
||||||
"dbs": "ins_discipline_key",
|
"dbs": "ins_discipline_key",
|
||||||
"label": L("fac_ins_discipline_key"),
|
"label": L("fac_ins_discipline_key"),
|
||||||
"typ": "key",
|
"typ": "key",
|
||||||
@@ -72,14 +72,14 @@ function model_fac_import_app()
|
|||||||
},
|
},
|
||||||
"filter": "exact"
|
"filter": "exact"
|
||||||
},
|
},
|
||||||
"fac_import_app_code": {
|
"code": {
|
||||||
"dbs": "fac_import_app_code",
|
"dbs": "fac_import_app_code",
|
||||||
"label": L("fac_import_app_code"),
|
"label": L("fac_import_app_code"),
|
||||||
"typ": "varchar",
|
"typ": "varchar",
|
||||||
"hidden_fld": true,
|
"hidden_fld": true,
|
||||||
"defaultvalue": "CATALOGUS"
|
"defaultvalue": "CATALOGUS"
|
||||||
},
|
},
|
||||||
"prs_bedrijf_key": {
|
"company_key": {
|
||||||
"dbs": "prs_bedrijf_key",
|
"dbs": "prs_bedrijf_key",
|
||||||
"label": L("prs_bedrijf_key"),
|
"label": L("prs_bedrijf_key"),
|
||||||
"typ": "key",
|
"typ": "key",
|
||||||
@@ -95,10 +95,30 @@ function model_fac_import_app()
|
|||||||
},
|
},
|
||||||
"filter": "exact"
|
"filter": "exact"
|
||||||
},
|
},
|
||||||
"fac_import_app_charset": {
|
"charset": {
|
||||||
"dbs": "fac_import_app_charset",
|
"dbs": "fac_import_app_charset",
|
||||||
"label": L("fac_import_app_charset"),
|
"label": L("fac_import_app_charset"),
|
||||||
"typ": "varchar"
|
"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"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -4,24 +4,34 @@
|
|||||||
<!-- #include file="../api2/model_fac_import_app.inc" -->
|
<!-- #include file="../api2/model_fac_import_app.inc" -->
|
||||||
|
|
||||||
<%
|
<%
|
||||||
|
var generic = getQParamInt("gen", 0);
|
||||||
var this_model = new model_fac_import_app();
|
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,
|
scaffolding(this_model,
|
||||||
{
|
{
|
||||||
"search": {
|
"search": {
|
||||||
"autosearch": true,
|
"autosearch": true,
|
||||||
"filters": [
|
"filters": [
|
||||||
"ins_discipline_key",
|
"catalog_key",
|
||||||
"fac_functie_key",
|
"function_key",
|
||||||
"prs_bedrijf_key"
|
"company_key"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"list": {
|
"list": {
|
||||||
"columns": [
|
"columns": [
|
||||||
"id",
|
"id",
|
||||||
"ins_discipline_key",
|
"code",
|
||||||
"prs_bedrijf_key",
|
"catalog_key",
|
||||||
"fac_import_app_oms"
|
"company_key",
|
||||||
|
"name"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"edit": {
|
"edit": {
|
||||||
@@ -29,6 +39,10 @@ scaffolding(this_model,
|
|||||||
js: ["./fac_import_app.js"]
|
js: ["./fac_import_app.js"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"transit": {
|
||||||
|
"name": "gen",
|
||||||
|
"val": generic
|
||||||
|
},
|
||||||
"print": {}
|
"print": {}
|
||||||
});
|
});
|
||||||
%>
|
%>
|
||||||
@@ -2,8 +2,8 @@ function pre_submit()
|
|||||||
{
|
{
|
||||||
var validation_message = "";
|
var validation_message = "";
|
||||||
|
|
||||||
var disc = $("#ins_discipline_key").val();
|
var disc = $("#catalog_key").val();
|
||||||
var bedr = $("#prs_bedrijf_key").val();
|
var bedr = $("#company_key").val();
|
||||||
|
|
||||||
if (disc == -1 && bedr == -1)
|
if (disc == -1 && bedr == -1)
|
||||||
validation_message = L("fac_import_app_err1");
|
validation_message = L("fac_import_app_err1");
|
||||||
|
|||||||
Reference in New Issue
Block a user