|
发表于 2017-7-7 13:59:39
|
显示全部楼层
SA_OPPerson中只会存主岗的ID就是sMainOrgID的值,看平台的组织管理中的设置主岗的实现,去修改字段的值
- Model.prototype.changeMainOrgDialogReceive = function(event) {
- var row = this.comp("orgListData").getCurrentRow();
- var name = row.val("sName");
- var personID = row.val("personID");
- var personVersion = row.val("personVersion");
- var newMainOrgID = event.data[0].val("sParent");
- var newMainOrgFName = event.data[0].val("sFName");
- var params = new biz.Request.ActionParam();
- params.setString("id", personID);
- params.setInteger("version", personVersion);
- params.setString("newMainOrgID", newMainOrgID);
- params.setBoolean("disableOldMasterPsm", false);
- var self = this;
- biz.Request.sendBizRequest({
- "context" : self.getContext(),
- "action" : "changePersonMainOrgAction",
- "parameters" : params,
- "callback" : function(data) {
- data.ignoreError = false;
- if (data.state) {
- self.refreshListData();
- }
- }
- });
- };
复制代码 |
|