Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
basic
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
xrm
basic
Commits
f83a5f97
Commit
f83a5f97
authored
4 years ago
by
Gerhard Bachmaier
Browse files
Options
Downloads
Patches
Plain Diff
Fill new table fields of districtcontact when assigning a district
parent
155dcb2d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
process/District_lib/process.js
+8
-8
8 additions, 8 deletions
process/District_lib/process.js
with
8 additions
and
8 deletions
process/District_lib/process.js
+
8
−
8
View file @
f83a5f97
...
...
@@ -155,15 +155,15 @@ DistrictUtils.assignDistrict = function (pDistrictId, pAppliedFilter)
"
STATUS
"
,
"
VALID_FROM
"
,
"
VALID_UNTIL
"
,
"
ORIGIN
"
/*
,
"
ORIGIN
"
,
"
USER_NEW
"
,
"DATE_NEW"
*/
"
DATE_NEW
"
];
var
updateArray
=
[];
var
colsUpdate
=
[
"
STATUS
"
/*
,
"
STATUS
"
,
"
USER_EDIT
"
,
"DATE_EDIT"
*/
"
DATE_EDIT
"
];
//Anlegen der Firmen-Betreuer-Datensätze in der Tabelle DISTRICTCONTACT
...
...
@@ -201,9 +201,9 @@ DistrictUtils.assignDistrict = function (pDistrictId, pAppliedFilter)
arrResponsibleIds
[
j
][
2
],
arrResponsibleIds
[
j
][
3
],
arrResponsibleIds
[
j
][
4
],
$KeywordRegistry
.
districtOrigin
$auto
()
/*
,
$KeywordRegistry
.
districtOrigin
$auto
(),
vars
.
get
(
"
$sys.user
"
),
vars.get("$sys.date")
*/
vars
.
get
(
"
$sys.date
"
)
];
insertArray
.
push
([
"
DISTRICTCONTACT
"
,
colsInsert
,
null
,
valsInsert
]);
}
...
...
@@ -219,9 +219,9 @@ DistrictUtils.assignDistrict = function (pDistrictId, pAppliedFilter)
for
(
var
l
=
0
;
l
<
arrExistingIds
.
length
;
l
++
)
{
var
valsUpdate
=
[
$KeywordRegistry
.
contactStatus
$inReview
()
/*
,
$KeywordRegistry
.
contactStatus
$inReview
(),
vars
.
get
(
"
$sys.user
"
),
vars.get("$sys.date")
*/
vars
.
get
(
"
$sys.date
"
)
];
var
condition
=
newWhere
(
"
DISTRICTCONTACT.DISTRICTCONTACTID
"
,
arrExistingIds
[
l
][
0
]);
updateArray
.
push
([
"
DISTRICTCONTACT
"
,
colsUpdate
,
null
,
valsUpdate
,
condition
.
build
()]);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment