• Познакомьтесь с пентестом веб-приложений на практике в нашем новом бесплатном курсе

    «Анализ защищенности веб-приложений»

    🔥 Записаться бесплатно!

  • CTF с учебными материалами Codeby Games

    Обучение кибербезопасности в игровой форме. Более 200 заданий по Active Directory, OSINT, PWN, Веб, Стеганографии, Реверс-инжинирингу, Форензике и Криптографии. Школа CTF с бесплатными курсами по всем категориям.

Appenditemvalue Author & Reader

  • Автор темы xpro
  • Дата начала
X

xpro

Привет всем !

Начал изучения Xpages) :)
Возникла проблемка , хочу добавить в поля Author and reader новых пользователей, но не могу добавить :eek:

Подскажите, как можно добавить новых пользователей в поля Author and Reader при этом сохранить предыдущие данные ?

пробывал так !
Код:
if (document1.isNewNote()) {
var docBackEnd:NotesDocument = document1.getDocument();

var item:NotesItem = docBackEnd.replaceItemValue('AuthorsName', getComponent('authorsName').getValue());
item.setAuthors(true);

item = docBackEnd.replaceItemValue('ReadersName', getComponent('readersName').getValue());
item.setReaders(true);
}

потом так
Код:
var curdoc:NotesDocument = document1.getDocument();

curdoc.appendItemValue('clAuthors_Users','Admin e');

Заранее спасибо !
 

NickProstoNick

Статус как статус :)
Lotus Team
22.08.2008
1 851
27
BIT
0
Ну второй вариант более правильный. Не сохраняет?
Кстати.. а поле доступно на форме?
Если да - то надо работать с документом в памяти, а не брать бекэндовый документ
 
X

xpro

Ну второй вариант более правильный. Не сохраняет?

Кстати.. а поле доступно на форме?
Если да - то надо работать с документом в памяти, а не брать бекэндовый документ
Не сохраняет ((
Извините, как работать с документом в памяти ? У вас пример не найдется для чайника )))
 
X

xpro

Ситуация следующая, :eek:fftop:
В xsp добавляю данные Author и после добавления в поле Author данные садятся в таком виде
Код:
CN=test1 1/O=BSBNB,CN=test2 3/O=BSBNB,test3 3/BSBNB

Потом, как я захожу в notes и открываю форму пересохряняю, данные в поле author уже садятся так

test1 1/BSBNB
test2 2/BSBNB
test3 3/BSBNB

как можно обновить форму или после добавления как то обновлять ?
пробывал через partial update но он тока обновляет страницу частично

как вообще правильно добавлять данные в поле author i reader ???? :huh:
 

NickProstoNick

Статус как статус :)
Lotus Team
22.08.2008
1 851
27
BIT
0
В общем оба кода работоспособны.
Какая-то ошибка в логике. код страницы давай
 
X

xpro

В общем оба кода работоспособны.
Какая-то ошибка в логике. код страницы давай

тока не пугайтесь :)
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core"
xmlns:xe="http://www.ibm.com/xsp/coreex"
xmlns:xc="http://www.ibm.com/xsp/custom"
>
<xe:djTabContainer id="djTabContainer1"
style="font-family:Times New Roman;font-size:9pt;width:100.0%;height:800.0px"
defaultTabContent="doc1" tabPosition="right-h">

<xe:djTabPane id="djTabPane9">


<xe:this.title><![CDATA[#{java script:return '<img alt="" src="1405790967_other_review_new_comment.png" width="24px" height="24px" />'+" Новый входящий документ" }]]></xe:this.title>
<xe:this.rendered><![CDATA[#{java script:context.getUser().getRoles().contains('[DIR]');}]]></xe:this.rendered><xp:panel>
<xp:table>
<xp:tr>
<xp:td>
<xp:inputText
id="inputText12" style="width:300px;height:25.0px"
value="#{viewScope.ser1}">




<xp:eventHandler
event="onkeypress" submit="true" refreshMode="partial"
refreshId="panel1">
<xp:this.action><![CDATA[#{java script:///ghjhgjgh}]]></xp:this.action>
</xp:eventHandler>
</xp:inputText>
<xp:button
id="button10" value="Обновить" style="height:25.0px">
<xp:eventHandler
event="onclick" submit="true" refreshMode="partial"
refreshId="panel1">
<xp:this.action><![CDATA[#{java script://updateGrid}]]></xp:this.action>
</xp:eventHandler>
</xp:button>
</xp:td>
<xp:td>

</xp:td>
<xp:td align="right">


<xp:link
escape="true" id="link3" rendered="false">
<xp:image
id="image2" url="/1405090029_67.png">
</xp:image>
<xp:eventHandler
event="onclick" submit="true" refreshMode="partial"
refreshId="updateGrid">
<xp:this.action><![CDATA[#{java script://search}]]></xp:this.action>
</xp:eventHandler>
</xp:link>

</xp:td>
</xp:tr>
</xp:table>
</xp:panel>
<xp:panel id="panel1"
style="height:500.0px;width:100.0%">



<xe:restService
id="restService3">
<xe:this.service>
<xe:viewJsonService
contentType="application/json"
databaseName="EDOB_R6\D_InboxBD.nsf" defaultColumns="true"
viewName="vDocByRegNumberNewDoc" var="row"
search="#{java script:return viewScope.get('ser1');}"
count="20">

</xe:viewJsonService>
</xe:this.service>
</xe:restService>









<xe:djxDataGrid
id="djxDataGrid3" storeComponentId="restService3"
updateDelay="0" initialWidth="auto" jsId="restService3"
style="font-size:10pt;font-family:Times New Roman;height:600px"
rowSelector="0">
<xe:this.dojoAttributes>
<xp:dojoAttribute
name="Dojo Attribute Name" value="5">
</xp:dojoAttribute>
</xe:this.dojoAttributes>

<xe:this.onRowDblClick><![CDATA[var grid = arguments[0].grid;
var index = arguments[0].rowIndex;
var item = grid.getItem(index);
var unid = item["@unid"];
var path2 ="EDOB_R6\\D_InboxBD.nsf";

dijit.byId("#{id:djTabContainer1}").createTab({action:'editDocument',databaseName:path2, documentId:unid,tabUniqueKey:'dd'})]]></xe:this.onRowDblClick>
<xe:djxDataGridColumn
id="djxDataGridColumn6" field="cRegNumber" label="Рег.№"
width="50">
</xe:djxDataGridColumn>
<xe:djxDataGridColumn
id="djxDataGridColumn7" cellType="dojox.grid.cells.Select"
width="13" field="rezol" label="Р" formatter="iconRezol">
</xe:djxDataGridColumn>
<xe:djxDataGridColumn
id="djxDataGridColumn22" width="13" label="В"
formatter="iconAttachment" field="attach">


</xe:djxDataGridColumn>
<xe:djxDataGridColumn
id="djxDataGridColumn23" width="13" field="control"
label="К" formatter="iconControl1">
</xe:djxDataGridColumn>

<xe:djxDataGridColumn
id="djxDataGridColumn24" width="13" field="isp"
formatter="cIndexIspol1" label="И">
</xe:djxDataGridColumn>


<xe:djxDataGridColumn
id="djxDataGridColumn25" label="Исх.№"
field="cAdrRegNumber">
</xe:djxDataGridColumn>

<xe:djxDataGridColumn
id="djxDataGridColumn26" field="dRegDate" label="Дата рег."
width="150" cellType="dojox.grid.cells.DateTextBox">
</xe:djxDataGridColumn>
<xe:djxDataGridColumn
id="djxDataGridColumn27" label="От кого" field="cAdresant"
width="400">
</xe:djxDataGridColumn>
<xe:djxDataGridColumn
id="djxDataGridColumn28" label="Кому" width="200"
cellType="dojox.grid.cells.Cell" field="Komu">






</xe:djxDataGridColumn>
<xe:djxDataGridColumn
id="djxDataGridColumn29" label="Краткое содержание"
field="cShortContent" width="200">
</xe:djxDataGridColumn>

</xe:djxDataGrid>
<xe:firebugLite
id="firebugLite2" loaded="true">
</xe:firebugLite>
</xp:panel>

</xe:djTabPane>
<xe:djTabPane id="djTabPane11">


<xe:this.title><![CDATA[#{java script:return '<img alt="" src="1405790967_other_review_new_comment.png" width="24px" height="24px" />'+" Новый входящий документ" }]]></xe:this.title>
<xe:this.rendered><![CDATA[#{java script:context.getUser().getRoles().contains('[ISP]');}]]></xe:this.rendered><xp:panel>
<xp:table>
<xp:tr>
<xp:td>
<xp:inputText
id="inputText14" style="width:300px;height:25.0px"
value="#{viewScope.serMan}">




<xp:eventHandler
event="onkeypress" submit="true" refreshMode="partial"
refreshId="panel1">
<xp:this.action><![CDATA[#{java script:///ghjhgjgh}]]></xp:this.action>
</xp:eventHandler>
</xp:inputText>
<xp:button
id="button12" value="Обновить" style="height:25.0px">
<xp:eventHandler
event="onclick" submit="true" refreshMode="partial"
refreshId="panel3">
<xp:this.action><![CDATA[#{java script://updateGrid}]]></xp:this.action>
</xp:eventHandler>
</xp:button>
</xp:td>
<xp:td>

</xp:td>
<xp:td align="right">


<xp:link
escape="true" id="link5" rendered="false">
<xp:image
id="image5" url="/1405090029_67.png">
</xp:image>
<xp:eventHandler
event="onclick" submit="true" refreshMode="partial"
refreshId="updateGrid">
<xp:this.action><![CDATA[#{java script://search}]]></xp:this.action>
</xp:eventHandler>
</xp:link>

</xp:td>
</xp:tr>
</xp:table>
</xp:panel>
<xp:panel id="panel3"
style="height:500.0px;width:100.0%">



<xe:restService
id="restService5">
<xe:this.service>
<xe:viewJsonService
contentType="application/json"
databaseName="EDOB_R6\D_InboxBD.nsf" defaultColumns="true"
viewName="vDocByRegNumberNewDocMan" var="row"
search="#{java script:return viewScope.get('serMan');}"
count="20">

</xe:viewJsonService>
</xe:this.service>
</xe:restService>









<xe:djxDataGrid
id="djxDataGrid5" storeComponentId="restService5"
updateDelay="0" initialWidth="auto" jsId="restService5"
style="font-size:10pt;font-family:Times New Roman;height:600px"
rowSelector="0">
<xe:this.dojoAttributes>
<xp:dojoAttribute
name="Dojo Attribute Name" value="5">
</xp:dojoAttribute>
</xe:this.dojoAttributes>

<xe:this.onRowDblClick><![CDATA[var grid = arguments[0].grid;
var index = arguments[0].rowIndex;
var item = grid.getItem(index);
var unid = item["@unid"];
var path2 ="EDOB_R6\\D_InboxBD.nsf";

dijit.byId("#{id:djTabContainer1}").createTab({action:'editDocument',databaseName:path2, documentId:unid,tabUniqueKey:'dd'})]]></xe:this.onRowDblClick>
<xe:djxDataGridColumn
id="djxDataGridColumn31" field="cRegNumber" label="Рег.№"
width="50">
</xe:djxDataGridColumn>
<xe:djxDataGridColumn
id="djxDataGridColumn33" cellType="dojox.grid.cells.Select"
width="13" field="rezol" label="Р" formatter="iconRezol">
</xe:djxDataGridColumn>
<xe:djxDataGridColumn
id="djxDataGridColumn34" width="13" label="В"
formatter="iconAttachment" field="attach">


</xe:djxDataGridColumn>
<xe:djxDataGridColumn
id="djxDataGridColumn35" width="13" field="control"
label="К" formatter="iconControl1">
</xe:djxDataGridColumn>

<xe:djxDataGridColumn
id="djxDataGridColumn40" width="13" field="isp"
formatter="cIndexIspol1" label="И">
</xe:djxDataGridColumn>


<xe:djxDataGridColumn
id="djxDataGridColumn41" label="Исх.№"
field="cAdrRegNumber">
</xe:djxDataGridColumn>

<xe:djxDataGridColumn
id="djxDataGridColumn42" field="dRegDate" label="Дата рег."
width="150" cellType="dojox.grid.cells.DateTextBox">
</xe:djxDataGridColumn>
<xe:djxDataGridColumn
id="djxDataGridColumn43" label="От кого" field="cAdresant"
width="400">
</xe:djxDataGridColumn>
<xe:djxDataGridColumn
id="djxDataGridColumn44" label="Кому" width="200"
cellType="dojox.grid.cells.Cell" field="Komu">






</xe:djxDataGridColumn>
<xe:djxDataGridColumn
id="djxDataGridColumn45" label="Краткое содержание"
field="cShortContent" width="200">
</xe:djxDataGridColumn>

</xe:djxDataGrid>
<xe:firebugLite
id="firebugLite4" loaded="true">
</xe:firebugLite>
</xp:panel>

</xe:djTabPane>
<xe:djTabPane id="djTabPane1"
style="font-family:Times New Roman">
<xe:this.title><![CDATA[#{java script:return '<img alt="" src="1405688903_empty_filter.png" width="24px" height="24px" />' + " По регистрационному номеру"
}]]></xe:this.title>

<xp:panel>
<xp:table>
<xp:tr>
<xp:td>
<xp:inputText
id="inputText1" style="width:300px;height:25.0px"
value="#{viewScope.ser}">




<xp:eventHandler
event="onkeypress" submit="true" refreshMode="partial"
refreshId="updateGrid">
<xp:this.action><![CDATA[#{java script:///asdsd}]]></xp:this.action>
</xp:eventHandler>
</xp:inputText>
<xp:button
id="button1" value="Обновить" style="height:25.0px">
<xp:eventHandler
event="onclick" submit="true" refreshMode="partial"
refreshId="updateGrid">
<xp:this.action><![CDATA[#{java script://updateGrid}]]></xp:this.action>
</xp:eventHandler>
</xp:button>
</xp:td>
<xp:td>
<xp:button
id="button2" value="Создать РКК"
style="width:103.0px;height:25.0px">
<xp:this.rendered><![CDATA[#{java script:context.getUser().getRoles().contains('[REGISTRATOR]');

}]]></xp:this.rendered>
<xp:eventHandler
event="onclick" submit="false">
<xp:this.script><![CDATA[XSP.openDialog("#{id:dialog1}");
/*dijit.byId("#{id:djTabContainer1}").createTab()*/]]></xp:this.script>
</xp:eventHandler>
</xp:button>
</xp:td>
<xp:td align="right">


<xp:link
escape="true" id="link1" rendered="false">
<xp:image
id="image1" url="/1405090029_67.png">
</xp:image>
<xp:eventHandler
event="onclick" submit="true" refreshMode="partial"
refreshId="updateGrid">
<xp:this.action><![CDATA[#{java script://search}]]></xp:this.action>
</xp:eventHandler>
</xp:link>

</xp:td>
</xp:tr>
</xp:table>
</xp:panel>
<xp:panel id="updateGrid"
style="height:500.0px;width:100.0%">


<xe:restService
id="restService1">
<xe:this.service>
<xe:viewJsonService
contentType="application/json"
databaseName="EDOB_R6\D_InboxBD.nsf" defaultColumns="true"
viewName="vDocByRegNumber1111" var="row"
search="#{java script:return viewScope.get('ser');}"
count="20">
</xe:viewJsonService>
</xe:this.service>
</xe:restService>









<xe:djxDataGrid
id="djxDataGrid1" storeComponentId="restService1"
updateDelay="0" initialWidth="auto" jsId="restService1"
style="font-size:10pt;font-family:Times New Roman;height:600px"
rowSelector="0">
<xe:this.dojoAttributes>
<xp:dojoAttribute
name="Dojo Attribute Name" value="5">
</xp:dojoAttribute>
</xe:this.dojoAttributes>

<xe:this.onRowDblClick><![CDATA[var grid = arguments[0].grid;
var index = arguments[0].rowIndex;
var item = grid.getItem(index);
var unid = item["@unid"];
var path2 ="EDOB_R6\\D_InboxBD.nsf";

dijit.byId("#{id:djTabContainer1}").createTab({action:'editDocument',databaseName:path2, documentId:unid,tabUniqueKey:'dd'})]]></xe:this.onRowDblClick>
<xe:djxDataGridColumn
id="djxDataGridColumn1" field="cRegNumber" label="Рег.№"
width="50">
</xe:djxDataGridColumn>
<xe:djxDataGridColumn
id="djxDataGridColumn2" cellType="dojox.grid.cells.Select"
width="13" field="rezol" label="Р" formatter="iconRezol">
</xe:djxDataGridColumn>
<xe:djxDataGridColumn
id="djxDataGridColumn3" width="13" label="В"
formatter="iconAttachment" field="attach">


</xe:djxDataGridColumn>
<xe:djxDataGridColumn
id="djxDataGridColumn4" width="13" field="control" label="К"
formatter="iconControl1">
</xe:djxDataGridColumn>

<xe:djxDataGridColumn
id="djxDataGridColumn5" width="13" field="isp"
formatter="cIndexIspol1" label="И">
</xe:djxDataGridColumn>


<xe:djxDataGridColumn
id="djxDataGridColumn8" label="Исх.№"
field="cAdrRegNumber">
</xe:djxDataGridColumn>

<xe:djxDataGridColumn
id="djxDataGridColumn9" field="dRegDate" label="Дата рег."
width="150" cellType="dojox.grid.cells.DateTextBox">
</xe:djxDataGridColumn>
<xe:djxDataGridColumn
id="djxDataGridColumn10" label="От кого" field="cAdresant"
width="400">
</xe:djxDataGridColumn>
<xe:djxDataGridColumn
id="djxDataGridColumn11" label="Кому" width="200"
cellType="dojox.grid.cells.Cell" field="Komu">






</xe:djxDataGridColumn>
<xe:djxDataGridColumn
id="djxDataGridColumn12" label="Краткое содержание"
field="cShortContent" width="200">
</xe:djxDataGridColumn>

</xe:djxDataGrid>
<xe:firebugLite
id="firebugLite1" loaded="true">
</xe:firebugLite>
</xp:panel>
</xe:djTabPane>

<xp:this.facets>
<xe:djTabPane id="djTabPane2"
xp:key="doc1" closable="true" tabUniqueKey="dd"
partialEvents="true"
style="font-size:11pt;font-family:Times New Roman;">

<xp:panel>

<!-- create rezoluition -->

<xe:dialog id="dialog2"
title="Наложить резолюцию">
<xp:panel>
<xp:this.data>
<xp:dominoDocument
var="setRezol" databaseName="EDOB_R6\D_InboxBD.nsf"
formName="fWorkerKart"
parentId="#{java script:document1.getNoteID()}">
</xp:dominoDocument>

</xp:this.data>
<xe:dialogContent
id="dialogContent2">



<xp:table
style="width:487.0px">
<xp:tr>
<xp:td
style="width:151.0px">
Текст
резолюции
<xp:span
style="color:rgb(255,0,0)">
*
</xp:span>
:
</xp:td>
<xp:td
style="width:31.0px">

<xe:namePicker
id="namePicker3Text" for="djValidationTextBox17"
pickerIcon="/1392060753_square-add.png"
dialogTitle="Выберите текст резолюции">

<xe:this.dataProvider>
<xe:dominoViewNamePicker
viewName="vVidRezWeb"
databaseName="EDOB_R6\D_AdminBD.nsf"
labelColumn="cname" label="Название">
</xe:dominoViewNamePicker>
</xe:this.dataProvider>
</xe:namePicker>
</xp:td>
<xp:td
style="width:291.0px">
<xe:djValidationTextBox
id="djValidationTextBox17" required="true"
style="width:270.0px" lowercase="true">

</xe:djValidationTextBox>
</xp:td>
</xp:tr>
<xp:tr>
<xp:td
style="width:151.0px">
Выберите
исполнителя
<xp:span
style="color:rgb(255,0,0)">
*
</xp:span>
:
</xp:td>
<xp:td
style="width:31.0px">
<xe:namePicker
id="namePicker4" for="djValidationTextBox18"
dialogTitle="Выберите исполнителя">
<xe:this.dataProvider>
<xe:dominoNABNamePicker
addressBookSel="db-name" addressBookDb="names.nsf"
people="true" nameList="people">
</xe:dominoNABNamePicker>
</xe:this.dataProvider>
</xe:namePicker>
</xp:td>
<xp:td
style="width:291.0px">

<xe:djValidationTextBox
id="djValidationTextBox18" style="width:270.0px"
required="true">

<xp:eventHandler
event="onChange" submit="false">
<xe:this.script><![CDATA[/*var aut = XSP.getElementById("#{id:inputText15}").value;

var isp = XSP.getElementById("#{id:djValidationTextBox18}").value;

XSP.getElementById("#{id:clAuthors_Users1}").value =aut+","+isp;

*/]]></xe:this.script>
</xp:eventHandler>
</xe:djValidationTextBox>
</xp:td>
</xp:tr>
<xp:tr>
<xp:td
style="width:151.0px">
Срок
исполнения
<xp:span
style="color:rgb(255,0,0)">
*
</xp:span>
:
</xp:td>
<xp:td
style="width:31.0px">
</xp:td>
<xp:td
style="width:291.0px">
<xe:djDateTextBox
id="djDateTextBox5" style="width:270.0px"
required="true">
<xe:this.defaultValue><![CDATA[#{java script:function addDays(theDate, days) {
return new Date(theDate.getTime() + days*24*60*60*1000);
}

var newDate = addDays(new Date(), 5);
newDate;}]]></xe:this.defaultValue>

</xe:djDateTextBox>

</xp:td>
</xp:tr>
<xp:tr>
<xp:td>
Поставить
на
контроль:
</xp:td>
<xp:td>

</xp:td>
<xp:td>





<xp:comboBox
id="comboBox1" style="width:61.0px">

<xp:selectItem
itemLabel="Нет">
</xp:selectItem>
<xp:selectItem
itemLabel="Да">
</xp:selectItem>

</xp:comboBox>
</xp:td>
</xp:tr>

<xp:tr>
<xp:td>
<xp:panel
id="upda">
<xp:inputText
value="#{document1.clAuthors_Users}"
id="clAuthors_Users1">
</xp:inputText>
</xp:panel>
<xp:inputText
value="#{document1.clAuthors_Users}"
id="inputText15">
</xp:inputText>
</xp:td>
<xp:td>

</xp:td>
<xp:td>






</xp:td>
</xp:tr>



</xp:table>

</xe:dialogContent>


<xe:dialogButtonBar
id="dialogButtonBar2" style="text-align:center">
<xp:button
value="Ок" id="button6">
<xp:eventHandler
event="onclick" submit="true" refreshMode="partial"
refreshId="respView" immediate="false" save="true">
<xp:this.action>


<xp:actionGroup>
<xp:actionGroup>













<xp:executeScript>
<xp:this.script><![CDATA[#{java script:var isponitel = getComponent("djValidationTextBox18").value
var rezoltsiya = getComponent("djValidationTextBox17").value
var srokisp = getComponent("djDateTextBox5").value

//get Item RKK
var authorRKK = document1.getItemValueString("clAuthors_Users")
var readerRKK = document1.getItemValueString("clReaders_Users");
var docmovRKK = document1.getItemValueString("cDocMoving");

var crezolRKK = document1.getItemValueString("cRezolution");
var ccomonRKK = document1.getItemValueString("cCommonRezol");



//KI
setRezol.replaceItemValue("clAuthors_Users",I18n.format(userBean.displayName)+","+isponitel)
setRezol.replaceItemValue("clReaders_Users",I18n.format(userBean.displayName)+","+isponitel)
setRezol.setValue("cControlMan",I18n.format(userBean.displayName))
setRezol.setValue("cSotrFullName",isponitel)
setRezol.setValue("cRezolution",rezoltsiya)
setRezol.setValue("dDateSrok",srokisp)
setRezol.setValue("cStatusIsp","Назначено")
setRezol.setValue("cRegNumber",document1.getItemValueString("cRegNumber"));
setRezol.setValue("dRegDate",document1.getItemValueString("dRegDate"));


//RKK
// document1.replaceItemValue("statusview","2");



document1.replaceItemValue('clAuthors_Users',authorRKK+','+isponitel)
document1.replaceItemValue('clReaders_Users',readerRKK+','+isponitel)
document1.replaceItemValue('cDocMoving',docmovRKK+","+isponitel)


if (ccomonRKK != ""){
document1.replaceItemValue("cCommonRezol",ccomonRKK+"\n"+rezoltsiya+" -"+isponitel)
}else{
document1.replaceItemValue("cCommonRezol",rezoltsiya+" -"+isponitel)
}

if (crezolRKK != ""){
document1.replaceItemValue("cRezolution",crezolRKK+"\n"+rezoltsiya)
}else{
document1.replaceItemValue("cRezolution",rezoltsiya)
}


}]]></xp:this.script>
</xp:executeScript>
<xp:saveDocument
var="setRezol">
</xp:saveDocument>


<xp:saveDocument
var="document1">
</xp:saveDocument>

</xp:actionGroup>



<xp:executeScript
script="#{java script:getComponent('dialog2').hide();}">
</xp:executeScript>
</xp:actionGroup>
</xp:this.action>
</xp:eventHandler>
</xp:button>
</xe:dialogButtonBar>

</xp:panel>
</xe:dialog>

<!-- Кнопки rezol -->
<xp:div align="left">

<xp:table>
<xp:tr>
<xp:td>


</xp:td>
<xp:td>
<xp:button
value="Наложить резолюцию" id="button5"
style="font-family:Times New Roman;font-size:10pt">

<xp:eventHandler
event="onclick" submit="false">
<xp:this.script><![CDATA[XSP.openDialog("#{id:dialog2}");]]></xp:this.script>
</xp:eventHandler>
</xp:button>






</xp:td>
<xp:td>
<xp:button
value="Поставить на контроль" id="button7"
style="font-family:Times New Roman;font-size:10pt">
</xp:button>

</xp:td>
<xp:td>
<xp:button
value="Снять с контроля" id="button8"
style="font-family:Times New Roman;font-size:10pt">
</xp:button>

</xp:td>
</xp:tr>
</xp:table>
</xp:div>
<!-- end Кнопки rezol -->

<!-- end create rezol -->


<xp:this.data>
<xp:dominoDocument
var="document1" databaseName="EDOB_R6\D_InboxBD.nsf"
formName="fRKK" action="editDocument">
<xp:this.postOpenDocument>
<![CDATA[#{java script:
var cRegNumber = document1.getItemValueString("cRegNumber")
var dDateReg = document1.getItemValueDate("dRegDate")

if (dDateReg == null) {
dDateReg = "";
}

var title = " РКК № "+cRegNumber +" от " + dDateReg
var pane = getComponent("djTabPane2")
pane.setTitle(title)
pane.setTabUniqueKey(document1.getNoteID())}]]>
<!-- '<img alt="" src="1404903371_document_text_edit.png" width="24px" height="24px" />'+ -->

</xp:this.postOpenDocument>

</xp:dominoDocument>

</xp:this.data>

<!--start status RKK -->
<xp:text escape="true"
id="computedField1" value="#{document1.cControlInfo}"
styleClass="lotusMessage">

<xp:this.rendered>
<![CDATA[#{java script:var doc:NotesDocument = document1.getDocument();

if (doc.getItemValueString('cControlInfo') == ""){
return false;
}else {
return true;
}}]]></xp:this.rendered>
<xp:br></xp:br>

</xp:text>

<xp:text escape="true"
id="computedField2"
value="#{document1.cControlInfo_Prodlen}"
styleClass="lotusMessage lotusInfo">
<xp:this.rendered><![CDATA[#{java script:var doc:NotesDocument = document1.getDocument();

if (doc.getItemValueString('cControlInfo_Prodlen') == ""){
return false;
}else {
return true;
}}]]></xp:this.rendered>
<xp:br></xp:br>
<xp:br></xp:br>
</xp:text>


<xp:text escape="true"
id="computedField3" value="#{document1.cControlInfoIsp}"
styleClass="lotusMessage lotusConfirm">
<xp:this.rendered><![CDATA[#{java script:var doc:NotesDocument = document1.getDocument();

if (doc.getItemValueString('cControlInfoIsp') == ""){
return false;
}else {
return true;
}}]]></xp:this.rendered>
<xp:br></xp:br>
<xp:br></xp:br>
</xp:text>


<xp:br></xp:br>
<xp:br></xp:br>
<!--end status RKK -->


<!-- start current card RKK -->

<xe:djTabContainer
id="djTabContainer3" style="height:705.0px;width:100.0%"
doLayout="true" defaultTabContent="respTab">
<xe:djTabPane
id="djTabPane3" partialRefresh="true" title="Реквизиты">
<xp:panel
id="formUpdate">

<xp:this.data>
<xp:dominoDocument
var="formFRR" databaseName="EDOB_R6\D_InboxBD.nsf"
formName="fRKK">
</xp:dominoDocument>
</xp:this.data>
<xe:formTable
id="formTable1">
<xe:formRow
id="formRow1">
<xe:djValidationTextBox
id="djValidationTextBox3"
style="width:150.0px;color:rgb(0,0,0);font-family:Times New Roman;font-size:11pt"
value="#{formFRR.cRegNumber}" readOnly="true">
</xe:djValidationTextBox>
<xp:this.facets>
<xp:span
xp:key="label">
Регистрационный
номер:
</xp:span>
</xp:this.facets>
</xe:formRow>
<xe:formRow
id="formRow2">
<xe:djValidationTextBox
id="djValidationTextBox4"
style="width:150.0px;color:rgb(0,0,0);font-family:Times New Roman;font-size:11pt"
value="#{formFRR.cAdrRegNumber}" readOnly="true">
</xe:djValidationTextBox>
<xp:this.facets>
<xp:span
xp:key="label">
Рег.номер
адресата:
</xp:span>
</xp:this.facets>
</xe:formRow>
<xe:formRow
id="formRow3">
<xe:djDateTextBox
id="djDateTextBox3"
defaultValue="#{java script:new Date();}"
style="width:150.0px;color:rgb(0,0,0);font-family:Times New Roman;font-size:11pt"
value="#{formFRR.dRegDate}" readOnly="true"
lang="ru">

<xe:this.converter>
<xp:convertDateTime
type="date" dateStyle="short">
</xp:convertDateTime>
</xe:this.converter>
</xe:djDateTextBox>
<xp:this.facets>
<xp:span
xp:key="label">
Дата
регистрации:
</xp:span>
</xp:this.facets>
</xe:formRow>
<xe:formRow
id="formRow4">
<xe:djDateTextBox
id="djDateTextBox4"
defaultValue="#{java script:new Date();}"
style="width:150.0px;color:rgb(0,0,0);font-family:Times New Roman;font-size:11pt"
value="#{formFRR.dDocDate}" readOnly="true">

<xe:this.converter>
<xp:convertDateTime
type="date" dateStyle="short">
</xp:convertDateTime>
</xe:this.converter>
</xe:djDateTextBox>
<xp:this.facets>
<xp:span
xp:key="label">
Дата
документа:
</xp:span>
</xp:this.facets>
</xe:formRow>
<xe:formRow
id="formRow5">
<xe:djValidationTextBox
id="djValidationTextBox11"
style="width:320.0px;color:rgb(0,0,0);font-family:Times New Roman;font-size:11pt"
value="#{formFRR.cVidDoc}" readOnly="true">
</xe:djValidationTextBox>
<xp:this.facets>
<xp:span
xp:key="label">
Вид
документа:
</xp:span>
</xp:this.facets>
</xe:formRow>
<xe:formRow
id="formRow11">
<xe:djValidationTextBox
id="djValidationTextBox19"
style="width:320.0px;color:rgb(0,0,0);font-family:Times New Roman;font-size:11pt"
readOnly="true">

<xe:this.defaultValue><![CDATA[#{java script:"Александр Зайкин"}]]></xe:this.defaultValue>
</xe:djValidationTextBox>
<xp:this.facets>
<xp:span
xp:key="label">
Для
сведения:
</xp:span>
</xp:this.facets>
</xe:formRow>
<xe:formRow
id="formRow6">
<xe:djValidationTextBox
id="djValidationTextBox12"
style="width:320.0px;color:rgb(0,0,0);font-family:Times New Roman;font-size:11pt"
value="#{formFRR.cAdresant}" readOnly="true">
</xe:djValidationTextBox>
<xp:this.facets>
<xp:span
xp:key="label">
Адресат:



</xp:span>
</xp:this.facets>
</xe:formRow>
<xe:formRow
id="formRow7">
<xe:djValidationTextBox
id="djValidationTextBox13"
style="width:320.0px;color:rgb(0,0,0);font-family:Times New Roman;font-size:11pt"
value="#{formFRR.cFromWhoom}" readOnly="true">
</xe:djValidationTextBox>
<xp:this.facets>
<xp:span
xp:key="label">
От
кого:

</xp:span>
</xp:this.facets>
</xe:formRow>
<xe:formRow
id="formRow8">
<xe:djValidationTextBox
id="djValidationTextBox14"
style="width:320.0px;color:rgb(0,0,0);font-family:Times New Roman;font-size:11pt"
readOnly="true">

<xe:this.value><![CDATA[#{java script:return @Name('[CN]',formFRR.getItemValue('cForWhoom'))}]]></xe:this.value>
</xe:djValidationTextBox>
<xp:this.facets>
<xp:span
xp:key="label">
Кому
адресован:
</xp:span>
</xp:this.facets>
</xe:formRow>
<xe:formRow
id="formRow9">
<xe:djValidationTextBox
id="djValidationTextBox15"
style="width:150.0px;color:rgb(0,0,0);font-family:Times New Roman;font-size:11pt"
value="#{formFRR.cCountLists}" readOnly="true">
</xe:djValidationTextBox>
<xp:this.facets>
<xp:span
xp:key="label">
Кол-во
листов/приложений:
</xp:span>
</xp:this.facets>
</xe:formRow>
<xe:formRow
id="formRow10">
<xe:djValidationTextBox
id="djValidationTextBox16"
style="width:320.0px;color:rgb(0,0,0);font-family:Times New Roman;font-size:11pt"
value="#{formFRR.cShortContent}" readOnly="true">
</xe:djValidationTextBox>
<xp:this.facets>
<xp:span
xp:key="label">
Краткое
содержание:
</xp:span>
</xp:this.facets>
</xe:formRow>
<xe:formRow
id="formRow13" rendered="false">
<xe:djValidationTextBox
id="djValidationTextBox20"
style="width:320.0px;color:rgb(0,0,0);font-family:Times New Roman;font-size:11pt"
value="#{formFRR.cCommonRezol}" readOnly="true">
<xe:this.multipleSeparator><![CDATA[#{java script:"\n"}]]></xe:this.multipleSeparator>
</xe:djValidationTextBox>
<xp:this.facets>
<xp:span
xp:key="label">
Резолюции:
</xp:span>
</xp:this.facets>
</xe:formRow>

<xe:formRow
id="formRow12">
</xe:formRow>

<xp:this.facets>
<xp:span
xp:key="header">


</xp:span>

</xp:this.facets>
</xe:formTable>
<xp:section
id="section1" type="box" initClosed="true"
collapsedImage="/1405071812_attachment.png"
expandedImage="/1405071812_attachment.png">
<xp:fileDownload
id="fileDownload1" allowDelete="false"
value="#{formFRR.rtBody}" displaySize="true"
displayType="false" sizeTitle="Размер файла"
typeTitle="Тип" deleteImageTitle="Удалить "
deleteMessage="Удалить прикрепленный файл ?"
displayLastModified="false" displayCreated="false"
fileNameTitle="."
style="font-family:Times New Roman;font-size:9pt"
rules="rows">

</xp:fileDownload>
</xp:section>
</xp:panel>
</xe:djTabPane>
<!-- KI -->
<xp:this.facets>
<xe:djTabPane
id="djTabPane8" closable="true" tabUniqueKey="resp"
xp:key="respTab" partialEvents="true"
style="font-size:11pt;font-family:Times New Roman;">
<xp:panel
id="ki">
<xp:this.data>
<xp:dominoDocument
var="respDoc" databaseName="EDOB_R6\D_InboxBD.nsf"
formName="fWorkerKart" action="editDocument">
<xp:this.postOpenDocument>
<![CDATA[#{java script:
var cRegNumber = respDoc.getItemValueString("cRegNumber")
var dDateReg = respDoc.getItemValueDate("dRegDate")

if (dDateReg == null) {
dDateReg = "";
}

var title = " КИ № "+cRegNumber +" от " + dDateReg
var pane = getComponent("djTabPane8")
pane.setTitle(title)
pane.setTabUniqueKey(respDoc.getNoteID())}]]>


</xp:this.postOpenDocument>

</xp:dominoDocument>

</xp:this.data>


<xe:formTable
id="formTable3">
<xe:formRow
id="formRow20">
<xp:inputText
id="inputText2" readonly="true">
<xp:this.value><![CDATA[#{java script:mad:Name("[CN]",respDoc.getItemValue("cControlMan"))}]]></xp:this.value>
</xp:inputText>
<xp:this.facets>
<xp:span
xp:key="label">
Направил::
</xp:span>
</xp:this.facets>
</xe:formRow>
<xe:formRow
id="formRow21">
<xp:inputText
id="inputText4" readonly="true">
<xp:this.value><![CDATA[#{java script:mad:Name("[CN]",respDoc.getItemValue("cSotrFullName"));}]]></xp:this.value>
</xp:inputText>
<xp:this.facets>
<xp:span
xp:key="label">
Исполнитель:
</xp:span>
</xp:this.facets>
</xe:formRow>
<xe:formRow
id="formRow22">
<xp:inputText
id="inputText3" value="#{respDoc.cSotrPodr}"
readonly="true">
</xp:inputText>
<xp:this.facets>
<xp:span
xp:key="label">
Подразделение:
</xp:span>
</xp:this.facets>
</xe:formRow>
<xe:formRow
id="formRow23">
<xp:inputText
id="inputText5" value="#{respDoc.cRezolution}"
readonly="true">
</xp:inputText>
<xp:this.facets>
<xp:span
xp:key="label">
Резолюция:
</xp:span>
</xp:this.facets>
</xe:formRow>
<xe:formRow
id="formRow24">
<xp:inputText
id="inputText6" value="#{respDoc.dDateSrok}"
readonly="true">
<xp:this.converter>
<xp:convertDateTime
type="date" dateStyle="short">
</xp:convertDateTime>
</xp:this.converter>
</xp:inputText>
<xp:this.facets>
<xp:span
xp:key="label">
Срок
исполнения:
</xp:span>
</xp:this.facets>
</xe:formRow>
<xe:formRow
id="formRow25">
<xp:inputText
id="inputText7" value="#{respDoc.cStatusIsp}"
readonly="true">
</xp:inputText>
<xp:this.facets>
<xp:span
xp:key="label">
Статус
исполнения:
</xp:span>
</xp:this.facets>
</xe:formRow>
<xe:formRow
id="formRow26">
<xp:inputText
id="inputText8" value="#{respDoc.dDateIsp}"
readonly="true">
<xp:this.converter>
<xp:convertDateTime
type="date" dateStyle="short">
</xp:convertDateTime>
</xp:this.converter>
</xp:inputText>
<xp:this.facets>
<xp:span
xp:key="label">
Дата
исполнения:
</xp:span>
</xp:this.facets>
</xe:formRow>
<xe:formRow
id="formRow27">
<xp:inputText
id="inputText9" value="#{respDoc.cComment}"
readonly="true">
</xp:inputText>
<xp:this.facets>
<xp:span
xp:key="label">
Текст
отчета:
</xp:span>
</xp:this.facets>
</xe:formRow>
</xe:formTable>
<xp:section
id="section2" type="box" initClosed="true"
collapsedImage="/1405071812_attachment.png"
expandedImage="/1405071812_attachment.png">
<xp:fileDownload
rows="7" id="fileDownload3" allowDelete="false"
value="#{respDoc.rtBody1}" displaySize="false"
displayType="false" sizeTitle="Размер файла"
typeTitle="Тип" deleteImageTitle="Удалить "
deleteMessage="Удалить прикрепленный файл ?"
displayLastModified="false" displayCreated="false"
fileNameTitle="."
style="font-family:Times New Roman;font-size:9pt"
hideWhen="false">
</xp:fileDownload>
</xp:section>
<!-- Кнопки KI -->
<xp:div
align="left">

<xp:table>
<xp:tr>
<xp:td>


</xp:td>
<xp:td>
<xp:button
value="Отчитаться" id="button13"
style="font-family:Times New Roman;font-size:10pt">

<xp:eventHandler
event="onclick" submit="false">
<xp:this.script><![CDATA[XSP.openDialog("#{id:dialog3}");]]></xp:this.script>
</xp:eventHandler>
</xp:button>




</xp:td>
<xp:td>
<xp:button
value="Принять исполнение" id="button14"
style="font-family:Times New Roman;font-size:10pt">
</xp:button>

</xp:td>
<xp:td>
<xp:button
value="Не принимать исполнение" id="button15"
style="font-family:Times New Roman;font-size:10pt">
</xp:button>

</xp:td>
</xp:tr>
</xp:table>
</xp:div>
<!-- end Кнопки KI -->


<!--start status RKK -->
<xp:text
escape="true" id="computedField4"
value="#{respDoc.cContInfo}"
styleClass="lotusMessage">

<xp:this.rendered>
<![CDATA[#{java script:var doc:NotesDocument = respDoc.getDocument();

if (doc.getItemValueString('cContInfo') == ""){
return false;
}else {
return true;
}}]]></xp:this.rendered>
<xp:br></xp:br>

</xp:text>

<xp:text
escape="true" id="computedField5"
value="#{respDoc.cReportInfo}"
styleClass="lotusMessage lotusInfo">
<xp:this.rendered><![CDATA[#{java script:var doc:NotesDocument = respDoc.getDocument();

if (doc.getItemValueString('cReportInfo') == ""){
return false;
}else {
return true;
}}]]></xp:this.rendered>
<xp:br></xp:br>
<xp:br></xp:br>
</xp:text>


<xp:text
escape="true" id="computedField6"
value="#{respDoc.cContIsp}"
styleClass="lotusMessage lotusConfirm">
<xp:this.rendered><![CDATA[#{java script:var doc:NotesDocument = respDoc.getDocument();

if (doc.getItemValueString('cContIsp') == ""){
return false;
}else {
return true;
}}]]></xp:this.rendered>
<xp:br></xp:br>
<xp:br></xp:br>
</xp:text>


<xp:br></xp:br>
<xp:br></xp:br>
<!--end status RKK -->

<!-- start dialog oti4itatsya -->


<xe:dialog
id="dialog3" title="Отчитаться">
<xp:panel>
<xp:this.data>
<xp:dominoDocument
var="setRezol" databaseName="EDOB_R6\D_InboxBD.nsf"
formName="fWorkerKart"
parentId="#{java script:document1.getNoteID()}">
</xp:dominoDocument>
</xp:this.data>
<xe:dialogContent
id="dialogContent3">



<xp:table
style="width:487.0px" id="tableot">
<xp:tr>
<xp:td
style="width:151.0px">
Текст
отчета:
<xp:span
style="color:rgb(255,0,0)">
*
</xp:span>
:
</xp:td>

<xp:td
style="width:291.0px">
<xe:djValidationTextBox
id="djValidationTextBox22" required="true"
style="width:270.0px" lowercase="true">

</xe:djValidationTextBox>
</xp:td>
</xp:tr>

<xp:tr>

<xp:td>
<xp:link
escape="true" id="link6"
styleClass="attachFileLink" role="button"
title="expand area to attach a file to document">

<xp:image
id="image6" url="/1405071812_attachment.png"
alt="Add Attachment">
</xp:image>
<xp:eventHandler
event="onclick" submit="false"
id="eventHandler1">
<xp:this.script><![CDATA[var e = window.document.getElementById("#{id:fileUpload1}");
e.click();

]]></xp:this.script>
</xp:eventHandler>
</xp:link>
</xp:td>
<xp:td>
<xp:fileUpload
id="fileUpload1" value="#{respDoc.rtBody1}"
role="upload" loaded="true"
>
<xp:eventHandler
event="onchange" submit="true"
refreshMode="partial" refreshId="dialog3">
<xp:this.action><![CDATA[#{java script://asd}]]></xp:this.action>
</xp:eventHandler>
</xp:fileUpload>
<xp:fileDownload rows="7"
id="fileDownload5" allowDelete="true"
value="#{respDoc.rtBody1}" displaySize="false"
displayType="false" sizeTitle="Размер файла" typeTitle="Тип"
fileNameTitle="Файл" deleteImageTitle="Удалить "
deleteMessage="Удалить прикрепленный файл ?"
displayLastModified="false" displayCreated="false"

style="font-family:Times New Roman;font-size:9pt">
</xp:fileDownload>
</xp:td>
</xp:tr>



</xp:table>

</xe:dialogContent>


<xe:dialogButtonBar
id="dialogButtonBar3" style="text-align:center">
<xp:button
value="Ок" id="button16">
<xp:eventHandler
event="onclick" submit="true" refreshMode="partial"
refreshId="ki">
<xp:this.action>


<xp:actionGroup>
<xp:actionGroup>




















<xp:executeScript>
<xp:this.script><![CDATA[#{java script:setRezol.replaceItemValue("dDateSrok",new Date())
setRezol.replaceItemValue("cStatusIsp","Исполнено")
setRezol.replaceItemValue("cReportInfo","Отправлен запрос на принятие исполнения по заданию. Дата отправки: " + new Date())
setRezol.replaceItemValue("cComment",getComponent("djValidationTextBox22").value)
document1.replaceItemValue("statusview","1")


var doc = database.createDocument();
var sendTo = setRezol.getItemValueString("cControlMan");
var docLink = "https://ed.bsbnb.kz";

doc.replaceItemValue("form", "Memo");
doc.replaceItemValue("sendTo", sendTo);
doc.replaceItemValue("subject", "Задание по документу № "+setRezol.getItemValueString("cRegNumber")+" от "+setRezol.getItemValueString("dRegDate")+" "+"из модуля «Входящие документы» выполнено");
doc.replaceItemValue("body", "Пройти по ссылке: " + docLink);
//doc.send();

}]]></xp:this.script>
</xp:executeScript>
<xp:saveDocument var="setRezol">
</xp:saveDocument><xp:saveDocument
var="document1">
</xp:saveDocument>

</xp:actionGroup>


<xp:executeScript
script="#{java script:getComponent('dialog3').hide();}">
</xp:executeScript>
</xp:actionGroup>
</xp:this.action>
<xp:this.script><![CDATA[if (XSP.getElementById("#{id:djValidationTextBox22}").value != "" )
alert("Ваш отчет об исполнении отправлен !")]]></xp:this.script>
</xp:eventHandler>
</xp:button>
</xe:dialogButtonBar>

</xp:panel>
</xe:dialog>

<!-- end dialog ot4itatsya -->


</xp:panel>



</xe:djTabPane>

</xp:this.facets>


<xe:djTabPane
id="djTabPane5" title="Контроль">
<xp:panel>
<xe:formTable
id="formTable2">
<xe:formRow
id="formRow14">
<xe:djTextBox
id="djTextBox1" value="#{document1.cControl}"
style="color:rgb(0,0,0)" readOnly="true">
</xe:djTextBox>
<xp:this.facets>
<xp:span
xp:key="label">
Документ:
</xp:span>
</xp:this.facets>
</xe:formRow>
<xe:formRow
id="formRow15">
<xe:djDateTextBox
id="djDateTextBox7" value="#{document1.dDateControl}"
readOnly="true">
<xe:this.converter>
<xp:convertDateTime
type="date" dateStyle="short">
</xp:convertDateTime>
</xe:this.converter>
</xe:djDateTextBox>
<xp:this.facets>
<xp:span
xp:key="label">
Дата
постановки
на
контроль:
</xp:span>
</xp:this.facets>
</xe:formRow>
<xe:formRow
id="formRow16">
<xe:djDateTextBox
id="djDateTextBox6" value="#{document1.dDateSrok}"
readOnly="true">

<xe:this.converter>
<xp:convertDateTime
type="date" dateStyle="short">
</xp:convertDateTime>
</xe:this.converter>
</xe:djDateTextBox>
<xp:this.facets>
<xp:span
xp:key="label">
Срок
исполнения:

</xp:span>
</xp:this.facets>
</xe:formRow>
<xe:formRow
id="formRow17">
<xe:djTextBox
id="djTextBox4" style="color:rgb(0,0,0)"
readOnly="true">
<xe:this.value><![CDATA[#{java script:return @Name('[CN]',document1.getItemValue('cControlMan'))}]]></xe:this.value>
</xe:djTextBox>
<xp:this.facets>
<xp:span
xp:key="label">
Контроль
над
исполнением:
</xp:span>
</xp:this.facets>
</xe:formRow>
<xe:formRow
id="formRow18">
<xe:djTextBox
id="djTextBox12" value="#{document1.dDateIsp}"
style="color:rgb(0,0,0)" readOnly="true">
<xe:this.converter>
<xp:convertDateTime
type="date" dateStyle="short">
</xp:convertDateTime>
</xe:this.converter>
</xe:djTextBox>
<xp:this.facets>
<xp:span
xp:key="label">
Дата
снятия
с
контроля:

</xp:span>
</xp:this.facets>
</xe:formRow>
<xe:formRow
id="formRow19">
<xe:djTextBox
id="djTextBox6" style="color:rgb(0,0,0)"
readOnly="true">
<xe:this.value><![CDATA[#{java script:mad:Name("[CN]",document1.getItemValue("cWho"));}]]></xe:this.value>
</xe:djTextBox>
<xp:this.facets>
<xp:span
xp:key="label">
Снял(а)
с
контроля:

</xp:span>
</xp:this.facets>
</xe:formRow>
</xe:formTable>
</xp:panel>
<!-- view rasp doc -->

<xp:panel
id="respView" style="height:200.0px;width:100.0%">

<xe:restService
id="restService2">
<xe:this.service>
<xe:viewJsonService
databaseName="EDOB_R6\D_InboxBD.nsf" viewName="vMyIsp"
defaultColumns="true" contentType="application/json"
count="20"
categoryFilter="#{java script:document1.getDocument().getUniversalID()}">
<xe:this.columns>
<xe:restViewColumn
name="b">
<xe:this.value><![CDATA[#{java script:return '<input type="button" value="Отчитаться" onclick="var grid = arguments[0].grid;var index = arguments[0].rowIndex;var item = grid.getItem(index);var unid = item["@unid"];var path2 ="EDOB_R6\\D_InboxBD.nsf";dijit.byId("#{id:djTabContainer3}").createTab({action:"openDocument",databaseName:path2, documentId:unid,tabUniqueKey:"resp"})"/>'


}]]></xe:this.value>
</xe:restViewColumn>
</xe:this.columns>
</xe:viewJsonService>
</xe:this.service>
</xe:restService>



<xe:djxDataGrid
id="djxDataGrid2" storeComponentId="restService2"
initialWidth="auto"
style="height:400.0px;width:100%;font-size:9pt"
escapeHTMLInData="false">



<xe:this.onRowDblClick><![CDATA[var grid = arguments[0].grid;
var index = arguments[0].rowIndex;
var item = grid.getItem(index);
var unid = item["@unid"];
var path2 ="EDOB_R6\\D_InboxBD.nsf";

dijit.byId("#{id:djTabContainer3}").createTab({action:'editDocument',databaseName:path2, documentId:unid,tabUniqueKey:'resp'})]]></xe:this.onRowDblClick>
<xe:djxDataGridColumn
id="djxDataGridColumn13" width="0" hidden="true">
</xe:djxDataGridColumn>

<xe:djxDataGridColumn
id="djxDataGridColumn15" label="ФИО Назначившего"
width="150" field="FIONazn">

</xe:djxDataGridColumn>
<xe:djxDataGridColumn
id="djxDataGridColumn14" field="cRezolution"
label="Резолюция" width="200">
</xe:djxDataGridColumn>
<xe:djxDataGridColumn
id="djxDataGridColumn16" field="FIOisp"
label="ФИО Исполнителя" width="150">
</xe:djxDataGridColumn>

<xe:djxDataGridColumn
id="djxDataGridColumn17" label="Срок исполнения"
width="150" field="dDateSrok">
</xe:djxDataGridColumn>
<xe:djxDataGridColumn
id="djxDataGridColumn18" label="Статус исполнения"
width="150" field="cStatusIsp">
</xe:djxDataGridColumn>
<xe:djxDataGridColumn
id="djxDataGridColumn19" label="Дата исполнения"
width="150" field="dDateIsp">
</xe:djxDataGridColumn>
<xe:djxDataGridColumn
id="djxDataGridColumn20" label="Статус" field="st"
width="50" formatter="iconStatusResp">
</xe:djxDataGridColumn>
<xe:djxDataGridColumn
id="djxDataGridColumn21" field="b" width="80" label="."
rendered="false">
</xe:djxDataGridColumn>
</xe:djxDataGrid>
<span
class="displayRowCount">
</span>
</xp:panel>
</xe:djTabPane>
</xe:djTabContainer>

<!-- end current card RKK -->


<xp:br></xp:br>


</xp:panel>

<xe:this.onClose><![CDATA[if (confirm('Вы действительно хотите закрыть эту вкладку ?')) {
return true;
} else {
return false;
}]]></xe:this.onClose>


</xe:djTabPane>


</xp:this.facets>
<xp:this.facets>
<xe:djTabPane id="newDocu"
xp:key="doc2" closable="true" tabUniqueKey="newDoc"
partialEvents="true"
style="font-size:11pt;font-family:Times New Roman;">
</xe:djTabPane>
</xp:this.facets>
</xe:djTabContainer>
</xp:view>



вот здесь отправляю на исполнения документ

<xp:this.script><![CDATA[#{java script:var isponitel = getComponent("djValidationTextBox18").value
var rezoltsiya = getComponent("djValidationTextBox17").value
var srokisp = getComponent("djDateTextBox5").value

//get Item RKK
var authorRKK = document1.getItemValueString("clAuthors_Users")
var readerRKK = document1.getItemValueString("clReaders_Users");
var docmovRKK = document1.getItemValueString("cDocMoving");

var crezolRKK = document1.getItemValueString("cRezolution");
var ccomonRKK = document1.getItemValueString("cCommonRezol");



//KI
setRezol.replaceItemValue("clAuthors_Users",I18n.format(userBean.displayName)+","+isponitel)
setRezol.replaceItemValue("clReaders_Users",I18n.format(userBean.displayName)+","+isponitel)
setRezol.setValue("cControlMan",I18n.format(userBean.displayName))
setRezol.setValue("cSotrFullName",isponitel)
setRezol.setValue("cRezolution",rezoltsiya)
setRezol.setValue("dDateSrok",srokisp)
setRezol.setValue("cStatusIsp","Назначено")
setRezol.setValue("cRegNumber",document1.getItemValueString("cRegNumber"));
setRezol.setValue("dRegDate",document1.getItemValueString("dRegDate"));


//RKK
// document1.replaceItemValue("statusview","2");



document1.replaceItemValue('clAuthors_Users',authorRKK+','+isponitel)
document1.replaceItemValue('clReaders_Users',readerRKK+','+isponitel)
document1.replaceItemValue('cDocMoving',docmovRKK+","+isponitel)


if (ccomonRKK != ""){
document1.replaceItemValue("cCommonRezol",ccomonRKK+"\n"+rezoltsiya+" -"+isponitel)
}else{
document1.replaceItemValue("cCommonRezol",rezoltsiya+" -"+isponitel)
}

if (crezolRKK != ""){
document1.replaceItemValue("cRezolution",crezolRKK+"\n"+rezoltsiya)
}else{
document1.replaceItemValue("cRezolution",rezoltsiya)
}


}]]></xp:this.script>
 
X

xpro

пробую так
Код:
var isponitel = getComponent("djValidationTextBox18").value 
var rezoltsiya = getComponent("djValidationTextBox17").value
var srokisp = getComponent("djDateTextBox5").value

//get Item RKK
var authorRKK = document1.getItemValueString("clAuthors_Users") 
var readerRKK = document1.getItemValueString("clReaders_Users");
var docmovRKK = document1.getItemValueString("cDocMoving");

var crezolRKK = document1.getItemValueString("cRezolution");
var ccomonRKK = document1.getItemValueString("cCommonRezol");



//KI
setRezol.replaceItemValue("clAuthors_Users",I18n.format(userBean.displayName)+","+isponitel)
setRezol.replaceItemValue("clReaders_Users",I18n.format(userBean.displayName)+","+isponitel)
setRezol.setValue("cControlMan",I18n.format(userBean.displayName))
setRezol.setValue("cSotrFullName",isponitel)
setRezol.setValue("cRezolution",rezoltsiya)
setRezol.setValue("dDateSrok",srokisp)
setRezol.setValue("cStatusIsp","Назначено")
setRezol.setValue("cRegNumber",document1.getItemValueString("cRegNumber"));
setRezol.setValue("dRegDate",document1.getItemValueString("dRegDate"));


//RKK 
// document1.replaceItemValue("statusview","2");


var curdoc:NotesDocument = document1.getDocument();
curdoc.appendItemValue('clAuthors_Users',isponitel)
curdoc.appendItemValue('clReaders_Users',isponitel)
curdoc.appendItemValue('cDocMoving',isponitel)


if (ccomonRKK != ""){
document1.replaceItemValue("cCommonRezol",ccomonRKK+"\n"+rezoltsiya+" -"+isponitel)
}else{
document1.replaceItemValue("cCommonRezol",rezoltsiya+" -"+isponitel)
}

if (crezolRKK != ""){
document1.replaceItemValue("cRezolution",crezolRKK+"\n"+rezoltsiya)
}else{
document1.replaceItemValue("cRezolution",rezoltsiya)
}
 

NickProstoNick

Статус как статус :)
Lotus Team
22.08.2008
1 851
27
BIT
0
Мда... черт ногу сломит :)
Короче... не можешь летать - учись ползать.
Создаешь пустую страницу и отрабатываешь на ней работу с авторсами и ридерсами. Учти, что эти поля должны быть многозначными (т.е. массив).
А в твоем коде они одна строка.


А то я половину полей в принципе не нашел.
 
X

xpro

Мда... черт ногу сломит :)
Короче... не можешь летать - учись ползать.
Создаешь пустую страницу и отрабатываешь на ней работу с авторсами и ридерсами. Учти, что эти поля должны быть многозначными (т.е. массив).
А в твоем коде они одна строка.


А то я половину полей в принципе не нашел.

:D ok, спасибо большое ! :)
 
X

xpro

Мда... черт ногу сломит :)
Короче... не можешь летать - учись ползать.
Создаешь пустую страницу и отрабатываешь на ней работу с авторсами и ридерсами. Учти, что эти поля должны быть многозначными (т.е. массив).
А в твоем коде они одна строка.


А то я половину полей в принципе не нашел.

учусь ползать :D
подскажите где ошибка ? :)


Код:
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core">

<xp:panel>
<xp:this.data>
<xp:dominoDocument var="document1" formName="FormT"
action="editDocument">
</xp:dominoDocument>
</xp:this.data>
<xp:button value="Label" id="button1">
<xp:eventHandler event="onclick" submit="true"
refreshMode="complete">
<xp:this.action><![CDATA[#{java script:var doc:NotesDocument = document1.getDocument();
var vec:java.util.Vector = 'admin vsb'

doc.appendItemValue("author", vec);
doc.save();



}]]></xp:this.action>
</xp:eventHandler></xp:button>
<xp:table>
<xp:tr>
<xp:td>
<xp:label value="Author:" id="author_Label1"
for="author1">
</xp:label>
</xp:td>
<xp:td>
<xp:inputText value="#{document1.author}"
id="author1">
</xp:inputText>
</xp:td>
</xp:tr>
<xp:tr>
<xp:td>
<xp:label value="Reader:" id="reader_Label1"
for="reader1">
</xp:label>
</xp:td>
<xp:td>
<xp:inputText value="#{document1.reader}"
id="reader1">
</xp:inputText>
</xp:td>
</xp:tr>
<xp:tr>
<xp:td>
<xp:label value="Number:" id="number_Label1"
for="number1">
</xp:label>
</xp:td>
<xp:td>
<xp:inputText value="#{document1.number}"
id="number1">
</xp:inputText>
</xp:td>
</xp:tr>
<xp:tr>
<xp:td>
<xp:label value="Check:" id="check_Label1"
for="check1">
</xp:label>
</xp:td>
<xp:td>
<xp:inputText value="#{document1.check}"
id="check1">
</xp:inputText>
</xp:td>
</xp:tr>
</xp:table></xp:panel>
</xp:view>

Добавлено: еще так

Код:
<xp:button value="Label" id="button1">
<xp:eventHandler event="onclick" submit="true"
refreshMode="complete">
<xp:this.action>
<![CDATA[#{java script:

var doc:NotesDocument = document1.getDocument();
var n:java.util.Vector =new java.util.Vector();

n.add("Admin sss");
doc.appendItemValue("author", n);
doc.save();


}]]></xp:this.action>
</xp:eventHandler></xp:button>
 

NickProstoNick

Статус как статус :)
Lotus Team
22.08.2008
1 851
27
BIT
0
На сколько я понял - изначально ты пытался сделать как написано
Это все работает, если данные вносятся непосредственно в компонент. И код из статьи можно написать в кнопку или в событие документа на сохранение. Но в кнопке обязательно вызвать сохранение документа в памяти.

в Xpages есть два типа документов Документ в памяти (грубо говоря это UI-документ) и бэкэндовый.


А чтоб дописать свои данные - нужно обрабатывать документ уже после его сохранения.
Например так (случай для кнопки)
JavaScript:
if (document1.isNewNote()) {
var docBackEnd:NotesDocument = document1.getDocument();

var item:NotesItem = docBackEnd.replaceItemValue('author', getComponent('author1').getValue() );
item.setAuthors(true);

item = docBackEnd.replaceItemValue('reader', getComponent('reader1').getValue() );
item.setReaders(true);
}

document1.save(); // сохраняем документ из памяти

var tmp = new Array()
tmp = docBackEnd.getItemValue( 'author' )
tmp.push("Admin sss")
docBackEnd.replaceItemValue( 'author', tmp )
docBackEnd.save( true, false, true )
Советую не заниматься такой фигней и на прямую из интерфеса в авторс/ридерс поля не заносить никаких данных. Лучше обрабатывать их в коде. Потому как Xpages не знает таких типов как Names, Readers и Authors. Для Xpages они все текстовые
 
X

xpro

На сколько я понял - изначально ты пытался сделать как написано
Это все работает, если данные вносятся непосредственно в компонент. И код из статьи можно написать в кнопку или в событие документа на сохранение. Но в кнопке обязательно вызвать сохранение документа в памяти.

в Xpages есть два типа документов Документ в памяти (грубо говоря это UI-документ) и бэкэндовый.


А чтоб дописать свои данные - нужно обрабатывать документ уже после его сохранения.
Например так (случай для кнопки)
JavaScript:
if (document1.isNewNote()) {
var docBackEnd:NotesDocument = document1.getDocument();

var item:NotesItem = docBackEnd.replaceItemValue('author', getComponent('author1').getValue() );
item.setAuthors(true);

item = docBackEnd.replaceItemValue('reader', getComponent('reader1').getValue() );
item.setReaders(true);
}

document1.save(); // сохраняем документ из памяти

var tmp = new Array()
tmp = docBackEnd.getItemValue( 'author' )
tmp.push("Admin sss")
docBackEnd.replaceItemValue( 'author', tmp )
docBackEnd.save( true, false, true )
Советую не заниматься такой фигней и на прямую из интерфеса в авторс/ридерс поля не заносить никаких данных. Лучше обрабатывать их в коде. Потому как Xpages не знает таких типов как Names, Readers и Authors. Для Xpages они все текстовые

Ооооо.... ;) классно, спасибо большое !!!
Буду держаться ваших советов ! ;)
Но , после добавления данных author & reader все равно нужно заходит в лотус и обновлять форму, тока потом увидеть пользователь эту карточку.
Как можно обновить ? :mellow:
Например(lotusscript):
Call uidoc.Refresh
 

NickProstoNick

Статус как статус :)
Lotus Team
22.08.2008
1 851
27
BIT
0
Ооооо.... ;) классно, спасибо большое !!!
Буду держаться ваших советов ! ;)
Но , после добавления данных author & reader все равно нужно заходит в лотус и обновлять форму, тока потом увидеть пользователь эту карточку.
Как можно обновить ? :mellow:
Например(lotusscript):
Call uidoc.Refresh
Не нужно никуда заходить!
Если правильно указал имена - то не надо.
По хорошему - в эти поля надо записывать полные имена.. с CN=/OU=/O=
Тогда все должно быть нормально
 
X

xpro

Не нужно никуда заходить!
Если правильно указал имена - то не надо.
По хорошему - в эти поля надо записывать полные имена.. с CN=/OU=/O=
Тогда все должно быть нормально


Вы были правы :mellow: , записывал имена полностью то есть CN=/OU=/O= и.т.д и все работает ;)
Спасибо вам большое ! ;)
 
Мы в соцсетях:

Обучение наступательной кибербезопасности в игровой форме. Начать игру!