RWSN#51376 uitvoertijden per gebouw
svn path=/Website/trunk/; revision=38640
This commit is contained in:
105
APPL/API2/model_prs_bedrijfdienstlocatie.inc
Normal file
105
APPL/API2/model_prs_bedrijfdienstlocatie.inc
Normal file
@@ -0,0 +1,105 @@
|
||||
<% /*
|
||||
$Revision$
|
||||
$Id$
|
||||
|
||||
File: model_prs_bedrijfdienstlocatie.inc
|
||||
|
||||
Description: Model voor prs_bedrijfdienstlocatie
|
||||
|
||||
Context:
|
||||
|
||||
Notes:
|
||||
*/
|
||||
%>
|
||||
<%
|
||||
function model_prs_bedrijfdienstlocatie()
|
||||
{
|
||||
this.records_name = "buildingfunctions";
|
||||
this.record_name = "buildingfunction";
|
||||
this.table = "prs_bedrijfdienstlocatie";
|
||||
this.primary = "prs_bedrijfdienstlocatie_key";
|
||||
this.autfunction = "WEB_PRSMSU";
|
||||
this.record_title = L("lcl_prs_dienst_frame");
|
||||
this.records_title = L("lcl_prs_companies_dienst_title");
|
||||
|
||||
this.fields = {
|
||||
"id": {
|
||||
"dbs": "prs_bedrijfdienstlocatie_key",
|
||||
"label": L("lcl_key"),
|
||||
"typ": "key",
|
||||
"required": true,
|
||||
"filter": "exact",
|
||||
"seq": "prs_u_prs_bedrijfsdienstloc_key"
|
||||
},
|
||||
"company": {
|
||||
"dbs": "prs_bedrijf_key",
|
||||
"label": L('prs_bedrijf_key'),
|
||||
"typ": "key",
|
||||
"readonly": true,
|
||||
"foreign": {
|
||||
"tbl": "prs_bedrijf",
|
||||
"key": "prs_bedrijf_key",
|
||||
"desc": "prs_bedrijf_naam"
|
||||
},
|
||||
"filter": "exact",
|
||||
"defaultvalue": null
|
||||
},
|
||||
"service": {
|
||||
"dbs": "prs_dienst_key",
|
||||
"label": L("prs_dienst"),
|
||||
"typ": "key",
|
||||
"required": true,
|
||||
"foreign": {
|
||||
"tbl": "prs_dienst",
|
||||
"key": "prs_dienst_key",
|
||||
"desc": "prs_dienst_omschrijving"
|
||||
},
|
||||
"defaultvalue": null
|
||||
},
|
||||
"location": {
|
||||
"dbs": "alg_locatie_key",
|
||||
"label": L("alg_locatie"),
|
||||
"typ": "key",
|
||||
"readonly": true,
|
||||
"foreign": {
|
||||
"tbl": "alg_locatie",
|
||||
"key": "alg_locatie_key",
|
||||
"desc": "alg_locatie_omschrijving"
|
||||
},
|
||||
"defaultvalue": null
|
||||
},
|
||||
"building": {
|
||||
"dbs": "alg_gebouw_key",
|
||||
"label": L("lcl_building"),
|
||||
"typ": "key",
|
||||
"readonly": true,
|
||||
"foreign": {
|
||||
"tbl": "alg_gebouw",
|
||||
"key": "alg_gebouw_key",
|
||||
"desc": "alg_gebouw_naam"
|
||||
},
|
||||
"defaultvalue": null
|
||||
},
|
||||
"duration": {
|
||||
"dbs": "prs_bdl_t_uitvoertijd",
|
||||
"label": L("lcl_prs_uitvoertijd"),
|
||||
"typ": "processingtime",
|
||||
"multiedit": true
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
this.edit = {
|
||||
"modal": true
|
||||
};
|
||||
|
||||
this.list = {
|
||||
"columns": ["company", "location", "building", "duration"]
|
||||
};
|
||||
|
||||
this.REST_GET = generic_REST_GET(this);
|
||||
this.REST_POST = generic_REST_POST(this);
|
||||
this.REST_PUT = generic_REST_PUT(this);
|
||||
this.REST_DELETE = generic_REST_DELETE(this);
|
||||
}
|
||||
%>
|
||||
@@ -11,17 +11,19 @@ scaffolding(this_model,
|
||||
"search": {
|
||||
"autosearch": true,
|
||||
"filters": [
|
||||
"name"
|
||||
"name",
|
||||
"servicelocations.company"
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"columns": [
|
||||
"id",
|
||||
"name"
|
||||
"name",
|
||||
"servicelocations.company"
|
||||
]
|
||||
},
|
||||
"edit":{
|
||||
"modal": true
|
||||
"modal": false
|
||||
}
|
||||
});
|
||||
%>
|
||||
|
||||
Reference in New Issue
Block a user