that.D002033PostManagementRelatedInformationList.BindChange( 'D002033PMRILKey', function( res ) {
            var currentRowId = res[ 0 ].ObjectId;
            var field = res[0].DataField;
            //设置子表列默认工程
            if(field != undefined && field == "D002033PostManagementRelatedInformationList.joinProjectEngineering") {
                var joinProjectEngineering = this.GetCellManager( currentRowId, "D002033PostManagementRelatedInformationList.joinProjectEngineering" ).GetValue();
                if( joinProjectEngineering == undefined || joinProjectEngineering == "" ) {
                    that.D002033PostManagementRelatedInformationList.UpdateRow( currentRowId, {
                        "D002033PostManagementRelatedInformationList.joinProjectEngineering": that.joinProjectEngineering.GetValue(),
                    });
                }
            }
}

 

posted on 2022-04-19 14:07  天涯何  阅读(22)  评论(0编辑  收藏  举报