{"version":3,"sources":["store/UserInfo.js","store/AdminUsers.js","store/EditControl.js","store/Nsi.js","store/FinPaidData.js","store/Work.js","store/WorkPstr.js","store/Svod.js","store/ControlForm.js","store/Counter.js","store/ClosingPeriod.js","store/Medinfo/FormulMedinfo.js","store/Gen47.js","store/Log.js","store/Medstat/Templates.js","store/Register.js","store/WeatherForecasts.js","store/translations.js","components/ChangeLanguageLink.js","components/Constants.js","images/Download_on_the_App_Store_Badge_RU.svg","images/Download_on_the_App_Store_Badge_US.svg","images/GetItOnGooglePlay_Badge_Web_color_Kazakh.png","components/LoginPage.js","images/GetItOnGooglePlay_Badge_Web_color_Russian.png","components/License.js","components/UserInfo.js","components/NavMenu2.js","components/Layout.js","components/HomeMenu.js","components/Home.js","components/common/SelectObject.js","components/admin/UserItemList.js","components/Modals/SelectOrgModal.js","components/admin/genPssw.js","components/admin/UserEdit.js","images/loading.gif","components/admin/AdminUsers.js","components/admin/NsiModalFilter.js","components/admin/DataTable.js","components/admin/Nsi.js","components/common/DateFunctions.js","components/admin/ClosingPeriod.js","components/admin/ClosingOrgPeriod.js","components/FinPaid/ObjsTree.js","components/Modals/DogovorModal.js","components/Modals/FormsModal.js","components/common/CheckBoxQuarter.js","components/common/CheckBoxIsPrivateOrg.js","components/common/CheckBox50pers.js","components/FinPaid/PaidsTable.js","components/FinPaid/FinPaid.js","components/FinPaid/ReportFin.js","components/Work/ExportCSV.js","components/FinPaid/ReportFinRCRZ.js","components/common/InfoSelectedForEdit.js","components/common/SelectFormTable.js","components/Modals/SelectTableForEdit.js","components/Work/TableView2.js","components/Work/OpenForm.js","components/common/SelectClassMkb.js","components/Work/TableViewPstr.js","components/common/FilterRazOptions.js","components/Work/OpenFormPstr.js","components/common/SelectMultiObjects.js","components/common/SelectMultiForms.js","components/Svod/SvodForm.js","components/Svod/SvodFormQuarts.js","components/Svod/SvodFormMonths.js","components/Svod/SvodFormRaz.js","components/Svod/SvodSubOrg.js","components/Svod/EditFormRaz.js","components/Svod/EditFormOrgRaz.js","components/common/MessageBox.js","components/Svod/Copy12MonthToYear.js","components/admin/ContrltemList.js","components/admin/EditControl.js","components/Control/ControlResultTable.js","components/Control/ControlForm.js","components/ToExcel/ToExcel.js","components/FromExcel/FromExcel.js","components/Work/InputInfor.js","components/Work/InputInforForm.js","components/Work/InputInforObj.js","components/Medinfo/EditMedinfoFormul.js","components/Medinfo/editBokMkb.js","components/Medinfo/editBokDr.js","components/Medinfo/editParts.js","components/Medinfo/GenMedinfoTable.js","components/common/SelectObject2.js","components/Medinfo/GenMedinfoTable2.js","components/gen47/gen47form.js","components/gen47/gen47OrgParam.js","components/Register.js","components/admin/AdminChildsOrg.js","components/common/CheckBoxStatus.js","components/Work/StatusForm.js","components/Work/StatusFormRk.js","components/Work/StatusTableRk.js","components/Work/StatusTableObl.js","components/Work/DeleteForm.js","components/FinPaid/RepSubordinates.js","components/common/SelectOrgModal.js","components/common/SelectOrg.js","components/admin/ListChildsOrgs.js","components/admin/AdminEditChildOrg.js","components/Work/SelectTeModal.js","components/Work/EditOrgModal.js","components/Work/EditOrgsOnObl.js","components/admin/AdminChildUsers.js","components/Work/AccessRazdOrg.js","components/Svod/SvodSpecificOrg.js","components/Svod/SvodFormOrgRaz2.js","components/Svod/SvodSubOrgObl.js","components/admin/logaudit.js","components/Map/MapSvgItem.js","components/MapSvg.js","components/admin/EditTemplateFiles.js","components/VersionsHistory.js","components/Svod/EditFormPeriod.js","components/Modals/EditFormulExcelModal.js","components/admin/EditTempTablesMonths.js","App.js","index.js","store/configureStore.js"],"names":["requestLoginType","receiveLoginType","errorLoginType","LogoutType","user","undefined","loggingIn","userJson","localStorage","getItem","usr","JSON","parse","expidred","Date","tokenExpires","now","getTime","initialState","isLoading","error","getToken","dispatch","userInfo","a","secondExpired","type","token","refreshToken","fetch","credentials","headers","response","status","json","actionCreators","login","params","getState","stringify","method","body","catch","I18n","t","logout","searchOrg","oblKod","orgStr","url","reducer","state","action","removeItem","serverDt","isPaid","setItem","requestGetUsersAction","receiveGetUsersAction","requestSearchUsersAction","receiveSearchUsersAction","requestInsertOrUpdateUser","receiveInsertOrUpdateUser","requestChangePassUser","receiveChangePassUser","requestChangeUserName","receiveChangeUserName","ClearUserUpdateResult","requestDeleteUserAction","receiveDeleteUserAction","usersResult","userUpdateResult","startPage","sizePage","searchUserString","errorsChangePass","passUpdateResult","errorsChangeUserName","userNameUpdateResult","userNameNew","deleteUserResult","requestSearchUsers","data","requestSearchUsersChildOrgs","requestGetUsers","Id","id","Username","username","email","Email","Fio","fio","AccessLevel","accessLevel","TypeUser","typeUser","KodOrg","org","kod","KodObl","obl","KodRaion","raion","Roles","roles","IsNew","isNew","Password","password","updateResult","userUpdate","requestInsertOrUpdateUserChildOrgs","changePassUser","inpData","encodeURIComponent","newPassword","oldPassword","changePassResult","changePassUserChildOrgs","changeUserName","userNameOld","changeUserNameResult","changeUserNameChildOrgs","deleteUser","userId","ok","resultDeleteUser","alert","deleteUserChildOrgs","result","oldUs","userUpd","allCounts","users","map","m","push","Array","prototype","find","u","filter","startIndex","indexOf","splice","newUser","userName","requestGetFormulControlAction","receiveGetFormulControlAction","requestAddFormulControlAction","receiveAddFormulControlAction","requestRemoveFormulControlAction","receiveRemoveFormulControlAction","requestUpdateFormulControlAction","receiveUpdateFormulControlAction","controlData","statusUpdate","statusRemove","getFormul","year","kform","isMejform","AddFormul","formul","RemoveFormul","param","uid","UpdateFormul","successed","Object","assign","newUidKontr","isAdd","index","ctrl","f","lexpr","rexpr","fu","requestNsiMetadataAction","receiveNsiMetadataAction","requestGetDataTableAction","receiveGetDataTableAction","requestSaveDataTableAction","receiveSaveDataTableAction","requestNs","receiveNs","requestChildsOrgsAction","receiveChildsOrgsAction","requestAddChildOrgAction","receiveAddChildOrgAction","requestRemoveChildOrgAction","receiveRemoveChildOrgAction","requestGetOrgsByOblKodName","receiveGetOrgsByOblKodName","nsimeta","dataTable","updateStatus","errors","periods","sprraz","sprform","sprrazdel","allsprtab","sprtab","torg","nomenkl","allobls","allraions","orgs","childsOrgs","versions_history","getNs","ns","nsi","length","startsWith","i","name","value","getClassMkb","kf","ktab","getOrgByKod","getOrgsByOblKodName","listOrgs","getOrgsParentKodAndKodName","checkKodOrg","getSubOrgs","getChildsOrgsByParent","kodParentOrg","requestGetChildsOrgs","list","addChildOrg","korg","addChildOrgByParent","parentKod","removeChildOrg","removeChildOrgByParent","requestNsiMetadata","getDataTable","table","saveDataTable","searchOrgRaion","raionKod","getOkpolus","kobl","updateOkpoluItem","isOk","addOkpoluItem","editNameOkpoluItem","getNaselRaion","kodRaion","nsstate","requestPaidDataType","receivePaidDataType","requestGetObjectsDataType","receiveGetObjectsDataType","requestAddDogovorType","receiveAddDogovorType","requestUpdateDogovorType","receiveUpdateDogovorType","requestDeleteDogovorType","receiveDeleteDogovorType","requestAddBillType","receiveAddBillType","requestUpdateBillType","receiveUpdateBillType","requestDeleteBillType","receiveDeleteBillType","requestGetDogovorsType","receiveGetDogovorsType","requestGetReport1Type","receiveGetReport1Type","receiveSetPaidOrg","receiveSetIsPrivateOrg","receiveSetIs50persOrg","receivePaidFormsOrg","paids","obl_paid","obj_data","dogovors","rep1data","getReport1","setPaidOrg","quarter","ispaid","objFin","setPaidFormsOrg","forms","objForms","setIsPrivateOrg","isPrivate","setIs50persOrg","is50pers","setPaidTer","ter","getOrgsPaid","getAllObjects","AddDogovor","dogovor","UpdateDogovor","DeleteDogovor","AddBill","bill","fnCallback","UpdateBill","DeleteBill","getDogovors","typeObj","kodObj","setFormsByOrg","getFormsByOrg","kodOrg","cloneDeep","e","dt","srokOt","srokDo","ind","dog","d","dogovorId","bills","dtFrom","dtTo","Function","dogs","dg","indx","it","b","objsItems","obj","join","isPrivateOrg","p","sel","quarter1","quarter2","requestUpdateDataAction","receiveUpdateDataAction","requestDeleteAction","receiveDeleteAction","requestGetInfoDataAction","receiveGetInfoDataAction","requestGetInfoDataFormAction","receiveGetInfoDataFormAction","requestGetInfoDataObjAction","receiveGetInfoDataObjAction","requestGetStatusInfoDataAction","receiveGetStatusInfoDataAction","requestUpdateStatusInfoDataAction","receiveUpdateStatusInfoDataAction","requestGetStatusInfoDataRkAction","receiveGetStatusInfoDataRkAction","requestUpdateStatusInfoDataRkAction","receiveUpdateStatusInfoDataRkAction","requestGetStatusInfoDataTablesRkAction","receiveGetStatusInfoDataTablesRkAction","requestUpdateStatusInfoDataTablesRkAction","receiveUpdateStatusInfoDataTablesRkAction","requestGetStatusInfoDataTablesOblAction","receiveGetStatusInfoDataTablesOblAction","requestUpdateStatusInfoDataTablesOblAction","receiveUpdateStatusInfoDataTablesOblAction","requestDeleteFormAllTablesAction","receiveDeleteFormAllTablesAction","requestGetReport1RCRZType","receiveGetReport1RCRZType","dataInfo","dataInfoForm","dataInfoObj","statusInfo","statusInfoRk","statusInfoTablesRk","statusInfoTablesObl","statusDelete","rep1AllOrgs","isExistsForm","ret","updateStatusInfoData","getStatusInfoData","updateStatusInfoDataRk","getStatusInfoDataRk","updateStatusInfoDataTablesRk","getStatusInfoDataTablesRk","updateStatusInfoDataTablesObl","getStatusInfoDataTablesObl","getInfoData","getInfoDataForm","getInfoDataObj","getData","getIsAvariableDelete","isAvariableDelete","updateData","rows","r","values","v","Vl","vl","OriginalVl","originalVl","Kgr","kgr","Str","str","Kstr","kstr","Values","Rows","Year","Raz","raz","Period","period","Tobj","tobj","Kobj","kobj","Kf","Kt","kt","deleteData","deleteForm","loadAccesRazdOrgParam","message","statusText","saveAccesRazdOrgParam","getAccesRazdFromYear","controlResult","allOrgs","s","requestGetDataTablePstrAction","receiveGetDataTablePstrAction","requestUpdateDataPstrAction","receiveUpdateDataPstrAction","getDataF12","requestSvodFormAction","receiveSvodFormAction","requestSvodFormRazAction","receiveSvodFormRazAction","requestIsExistSvodFormRazAction","receiveIsExistSvodFormRazAction","requestSvodSubFormAction","receiveSvodSubFormAction","requestCopyData12MonthToYear","receiveCopyData12MonthToYear","requestLoadListOrgData","receiveLoadListOrgData","requestSetIsLoading","statusSvod","copyData12MonthToYear","svodForm","svodSubForm","svodSubOblForm","isExistSvodRaz","isExistDataPeriod","svodFormRaz","editFormPeriod","isExistSvodOrgRaz","svodFormOrgRaz","svodFormOrgRaz2","svodFormOrgRaz3","loadListOrgData","loadHeadOrgs","setIsLoading","flag","svodFormQuarts","existsSvodFormMonths","existsSvodFormMonths2","requestControlAction","receiveControlAction","controlForm","incrementCountType","decrementCountType","count","requestGetClosingDataAction","receiveGetClosingDataAction","requestSetClosingDataAction","receiveSetClosingDataAction","dataClosing","getCloseOrg","saveCloseOrg","yearClose","yearCloseMonth","monthClose","Korg","YearClose","parseInt","YearCloseMonth","MonthClose","getClosingData","setClosingData","requestMedinfoGetTablesPagesAction","receiveMedinfoGetTablesPagesAction","requestMedinfoGetTablesPagesDrAction","receiveMedinfoGetTablesPagesDrAction","requestMedinfoGetFormulsAction","receiveMedinfoGetFormulsAction","requestMedinfoGetFormulYearsAction","receiveMedinfoGetFormulYearsAction","requestMedinfoUploadTemplateAction","receiveMedinfoUploadTemplateAction","requestMedinfoUploadTemplateOneYearAction","receiveMedinfoUploadTemplateOneYearAction","requestUpdatePageInfoAction","receiveUpdatePageInfoAction","requestUpdateFormulAction","receiveUpdateFormulAction","requestCopyOrInsertFormulYearAction","receiveCopyOrInsertFormulYearAction","requestUpdateFormulYearAction","receiveUpdateFormulYearAction","requestGetBokMkbAction","receiveGetBokMkbAction","requestUpdateFieldBokMkbAction","receiveUpdateFieldBokMkbAction","requestGetBokDrAction","receiveGetBokDrAction","requestUpdateFieldBokDrAction","receiveUpdateFieldBokDrAction","requestGetPartsAction","receiveGetPartsAction","requestUpdatePartAction","receiveUpdatePartAction","requestGetPagesOfPartAction","receiveGetPagesOfPartAction","type_page","tablesPages","formuls","formulYears","bokMkb","bokDr","parts","partPages","getDataOrgsByObl","getPagesOfPart","partId","getParts","updatePart","DownloadTemplate","pageId","blob","UploadTemplate","formData","DownloadTemplateOneYear","UploadTemplateOneYear","getTablesPages","getTablesPagesOnlyBokDr","getFormuls","getFormulYears","formulId","updatePageInfo","updateFormul","copyOrInsertFormulYear","updateFormulYear","getBokMkb","updateFieldBokMkb","getBokDr","idPage","updateFieldBokDr","tableId","part","tables","index2","pages","page","fileTemplate","templateTitle","fileTemplateOneYear","years","yearFormulId","formulYear","sort","bokMkbId","requestGen47FormAction","receiveGen47FormAction","requestOrgsParamAction","receiveOrgsParamAction","requestGen47UpdateOrgAction","receiveGen47UpdateOrgAction","orgsParam","statusGen47","gen47Form","loadParamOrgsByObl","updateOrg","orgParam","requestLoadLog","receiveLoadLog","getLog","listLog","requestUploadTemplateAction","receiveUploadTemplateAction","requestDownloadTemplateAction","receiveDownloadTemplateAction","requestLoadTemplatesAction","receiveLoadTemplatesAction","lang","UploadTemplateTable","DownloadTemplateTable","LoadTemplates","LoadTablesMonthsTemplates","ChangeFld","fld","changeFormulExcel","cell","deleteFormulExcel","requestRegisterType","receiveRegisterType","requestWeatherForecastsType","receiveWeatherForecastsType","forecasts","startDateIndex","translationsObject","ru","application","title","hello","warningPaidDays0","warningPaidDays","date","short","shorttime","long","longtime","msgButtons","OK","Yes","No","Retry","Cancel","Request","Submit","Save","Change","Load","policy","year3","yearMonth","home","nameRu","nameKz","shortNameRu","shortNameKz","notinclude","orgIsNomenkl","rk","blockRk","blockTableRk","blockTableObl","btDeleteForm","deleteComplete","deleteYesOrNo","indicatorsMap","run","genMedinfo","yearsError1","yearsError2","yearsError3","yearsError4","forOrg","nameOrgBr","enter","comment1","comment2","comment3","comment4","licenseUrl","passReq","usrReq","userNamePassInvalid","notPaid","text1","text2","text3","text4","text5","text6","text7","text8","text9","appStore","googlePlay","mobileApp","license","text10","text11","text12","text13","header","selform","loadFormuls","register","wait","waitsvod","waitexcel","loading","entered","exit","adm","admins","adminUsers","adminAdmins","textAdminAdmins","textAdminUsers","yes","no","version","version2","versions","tit","versionNo","dtVersion","comment","info","docs","versionInfo","bud","fin","finTitle","finPrivateOrg","finGovOrg","fin50persOrg","debetkred","reports","year2","prog","podprog","userOrg","svod","svod2","svodSub","svodSpecificOrg","btGetListOrgs","btGenSvodExcel","InputInforForm","InputInforObj","svodSubText","svodComplete","copyDataComplete","object","openForm","openFormPstr","svodFormQuart","svodFormMonths","razChanged","periodChanged","execSvod","copyData","msgCopyData","textCopyData","textCopyData2","copy12MonthYoYear","copy12MonthYoYearComment","control","controlInForm","controlAllForm","controlInYear","work","forma","razdelForm","allForms","filtrForma","filtrRaz","pstr","razres","typeobj","obj_no_select","select","selectObls","selectOrg","selectOrgs","selectOrgs2","selectAllObls","selectForm","selectTable","allRaions","selectRaions","selectAllRaions","selectAllOrgs","headOrg","headOrg2","selHeadOrg","onlyNomen","viewData","editcontrol","toExcel","toExcel2","fromExcel","fromExcel2","resultFromExcel2Ok","selectExcelFile","fileExcel","inputInfor","noerror","generateExcel","save","instruction","period1","period2","period3","period4","period10","period20","period21","period30","period31","period40","period101","period102","period103","period104","period105","period106","period107","period108","period109","period110","period111","period112","dataSaved","saving","closingPeriod","closingOrgPeriod","create","loadDataFromExcel","reportfin","reportfincrrz","editOrgsOnObl","summaDog","strItog","strocs","raions","orgsraions","svodRaz","razSource","razSourceOne","razDest","createSvod","createSvodRaz","warning","razSvodConfirmMsg","razEditConfirmMsg","perEditConfirmMsg","svodRazBtCreate","cancel","svodRazBtCancel","editRazBtCreate","editRazBtCancel","isAfterSvodDeleteSrc","editFormRaz","editFormOrgRaz","changeRazrez","changePeriod","typeorg","gen47","gen47Param","gen47Instr","medinfoTitle","medinfoComment","medinfoComment2","editFormulMedinfo","generateTableMedinfo","type_table","type_per","quarters","quartersone","months","months2","yearBeg","yearEnd","errorYears1","errorYears2","btGenMedinfoTable","createDiagram","type_diagram","diagrGist","diagrGraph","diagrCircle","diagrline","diagrMap","editBokMkbMedinfo","editBokDrMedinfo","yearsExprStrings","editPartsMedinfo","indicator","showWarningDiagram","openformtab","pokazateli","kodstr","recalcItogs","edit","delete","print","deletedData","deleteDataForm","deleteDataForm2","deleteQuestion","deleteQuestion2","noDataForm","close","accept","search","exportToExcel","parentOrg","nameOrg","del","addChild","addSucces","removeSucces","addNoOrgFail","warnOrgIsExistParent","addOrgToOkpolu","childOrg","users2","editNameOrg","tit2","titFormUncheck","titFormCheck","titFormUncheckRk","titFormCheckRk","printExcel","form","t1","t2","t3","t4","t5","t6","t7","t8","t9","t10","t11","t12","t13","t14","t15","t16","t17","t18","t19","t20","t21","t22","t150","t151","t152","bin","te","nasel","adr","isMedstat","filt","kodName","notRaion","clearFilter","titIsAccess","allRf","listRf","razrs","selRazs","selForms","createList","btCopyFromYear","isGod","isMes","startDate","endDate","actionDelete","logged","load","q10","q20","q21","q30","q31","q40","q4","q400","q210","q310","svodSrc","obls","celReq","celFormulaReq","celExists","delFormlExcel","kk","svodFormrRaz","ChangeLanguageLink","props","changeLanguage","preventDefault","setDefaultLocale","className","onClick","this","toUpperCase","Component","connect","setLocale","tikcs1970","getTikcs","btnsMsgBox","SpObl","lat","lon","SpRoles","commentRu","kper","nameT","arTypePers","arTypeDiagram","getTextVersion","document","location","host","getNameLocalize","i18n","locale","getNameSprLocalize","spr","fldkey","k","objs","getNamePeriod","per","getCurrentYear","getFullYear","formatDateYYYYDDMM","yyyy","toString","mm","getMonth","dd","getDate","mmChars","split","ddChars","formatDateTime","toLocaleDateString","toLocaleTimeString","getFirstRaz","accessRaz","arR","getFirstFormTable","accessForm","aform","firstFormTable","formGod","tableGod","formMes","tableMes","getRazItems","filterForms","forms12Quart","LoginPage","submitted","handleChangePassword","bind","handleChangeUserName","handleSubmit","showHidePass","getNomerObiav","style","backgroundImage","target","setState","UserName","UserPassword","x","getElementById","href","fontWeight","textDecoration","Row","Col","sm","md","onSubmit","htmlFor","onChange","autoComplete","src","alt","width","appStoreRu","appStoreEn","height","goolePlayKz","download","marginTop","bindActionCreators","License","baseUrl","getElementsByTagName","getAttribute","UserInfo","window","Nav","to","NavItem","Navbar","Brand","handleOnClick","actionUserInfo","isAdmins","isAdminAdmins","isAdminEditData","isEditFin","isCommonNsi","isUserEditData","isSvod","isAdmChildOrgs","serverDtMonth","isReadOnLy","role","nomenklKod","workTitle","NavDropdown","exact","MenuItem","fontSize","Layout","idleTimer","onIdle","_onIdle","pathname","ref","element","timeout","collapseOnSelect","allowFullScreen","Header","Link","Toggle","Collapse","NavMenu2","children","goToLoginOrLicense","HomeMenu","backgroundColor","color","Alert","bsStyle","days","SelectObject","kraion","kodObl","setObl","nameObl","nameOblKz","substring","setRaion","nameRaion","nameRaionKz","isNotOrg","nameOrgKz","setOrg","isAllRaions","typeahead","onSelectTobj","onSelectKobl","onSelectKraion","filterObl","onChangeOrg","onCheckIsAllRaions","filterRaion","nextProps","getInstance","clear","rai","ye","dtBeg","dtEnd","setTobj","first_raion","idRaion","selected","cssDispl","display","xs","FormGroup","bsSize","ControlLabel","FormControl","componentClass","placeholder","checked","disabled","marginRight","Checkbox","inline","labelKey","options","o","isOrg","hideTorg","defaultValue","showSelectObl","showSelectRaions","showSelectOrgs","UserItemList","selectClick","deleteOnClick","event","selectUser","selectedUserId","SelectOrgModal","orgNameSearch","foundOrgs","onChangeOrgNameSearch","onSearchOrg","handleSelectOrg","onSelectOrg","val","itm","Modal","show","showSelectOrgModal","onHide","handleHide","backdrop","closeButton","Title","Body","Form","controlId","Button","minHeight","maxHeight","overflow","orgItem","ButtonGroup","charset","GenPssw","useEffect","setPass","tiks","useState","pass","checkPass","setCheckPass","marginLeft","evt","pss","charAt","Math","floor","random","generatePassword","strength","match","checkPassword","cs","getSt","size","navigator","clipboard","writeText","strongPassword","RegExp","dtNow","UserEdit","nobj","nobj_kaz","onChangeOrg2","label","roleItem","handleChangePassSubmit","onShowModalChangeUserNameClick","onChangeUserNameClick","handleCloseChangeUserName","onChangeFio","onChangeEmail","accessLevelHandleChange","accessOblHandleChange","accessRaionHandleChange","checkboxsRolesInputChange","onChangePassword","onChangePasswordConfirm","onChangeOldPassword","onChangeNewPassword","onChangeNewUserName","typeUserHandleChange","showHideInputPassword","showHideInputPasswordConfirm","showHideInputOldPassword","passwordConfirm","showChangeUserName","newUserName","praion","pobl","rls","adms","test","updateUser","changePass","noEdit","required","iDisabled","showHideInputNewPassword","actionCreatorsNsi","AdminUsersPage","searchText","currentPage","selectedUser","showModalDelete","userDelete","seacrhOnClick","AddOnClick","handleCloseModalDeleteUser","handleDeleteUserFromModal","findUs","selUser","adminInfo","isAdminAdmin","loadingImg","renderUpdateResult","Footer","actionCreatorsAdminUsers","NsiModalFilter","context","initFilter","filtr","meta","setFilter","getFunc","onChangeVal","isShowModalFilter","hideModalFilter","bsClass","Table","striped","bordered","condensed","hover","cl","col","func","minWidth","DataTable","showModalFilter","filteredRows","itf","indexCol","getIndexCol","valUp","flUp","valUp2","flUp2","columns","NaN","pk","getPKey","newRow","getNewRow","errorNew","renderHeaderTable","renderBodyTable","renderRow","renderField","onChangeNewRow","onChangeValueRow","deleteRow","restoreRow","AddRow","saveData","setEditMode","cancelData","editTable","rowColKey","keys","ind_row","ind_col","numRow","row","delrow","valsPkNew","n","valsPk","colIndex","isDbl","nr","prop","colName","substr","isEdit","colSpan","rowKey","renderButtomDeleteRestore","indCol","isKey","mode","Nsi","renderUpdateStatus","onSelectYear","selTableExt","getTableExt","selTable","selYear","handleSelectNsiSubmit","changeTable","selMetaData","el","nameTable","lg","smOffset","getDateString","today","formatDateISO","month","day","ClosingPeriod","onSelectKper","self","isDataSaved","oblsClosings","dtEndLevelRk","dtEndLevelObl","dtEndLevelRaion","dtEndLevelOrg","finally","nowYear","horizontal","Panel","Heading","o1","actionClosingPeriod","ClosingOrgPeriod","yeCyr","yePr","requiredSave","onLoadDataOrg","onSubmitForm","showStatus","showRequiredSave","fetchData","closingOrg","fechUpdate","disabledBt","myTheme","text","bg","highlight","decal","accent","ObjsTree","onSelect","selectedNode","onSelectObj","nodes","theme","customTheme","finPaidData","addDogovor","editDogovor","nom","summa","showModalEditDogovor","deleteDogovor","showModalDeleteDogovor","handleHideDeleteDogovor","handleDeleteDogovor","handleEditDogovor","paidLevel","selectedDogovor","handleHideEditDogovor","onSubmitDogovorForm","addBill","editBill","showModalEditBill","deleteBill","showModalDeleteBill","handleHideDeleteBill","handleDeleteBill","selectBill","selectedBill","handleEditBill","handleHideEditBill","onSubmitBillForm","showModal","actionFinPaidData","actionNsi","isAllForms","setIsAllForms","setForms","getForms","objKod","check","includes","ch","incl","frms","checkForm","saveForms","commitBt","CheckBoxQuarter","cursor","CheckBoxIsPrivateOrg","paddingLeft","CheckBox50pers","PaidsTable","searchNameOrg","showDogovorModal","showFormsModal","selectObj","changeOrgNameFilter","setPaid4","setPaid3","handleHideDogovorModal","btShowDogovors","btShowDogovorsObj","showObjPaids","setIs50pers","btShowFormsObj","handleHideFormsModal","handleCommitBtFormsModal","selectedObj","nameOrgS","selectedParentObj","item","quarter3","quarter4","fye","FinPaidData","onChangeYear","selectTypeObj","parents","parentId","y","onCreateReport","renderPrivateOrg","renderRowsTable","oblName","teName","orgKod","orgName","strDog","strPlat","paidQ1","paidQ2","paidQ3","paidQ4","renderReduceRowsTable","last","items","reduce","ar_itog","oblsCnts","cnt_pl","cnt_private","cnt_50pers","cnt","er","console","renderItog","printData","execRep","absoluteUrl","protocol","fileName","FileSaver","ExportCSV","csvData","variant","wb","Sheets","XLSX","json_to_sheet","SheetNames","excelBuffer","bookType","Blob","exportToCSV","FinPaidDataRCRZ","excelDataCSV","dataCSV","tobl","traion","tdog","itog","success","InfoSelectedForEdit","nameObj","isPostr","SelectFormTable","onSelectTab","setTable","krazd","onSelectRazdel","onSelectForm","planYear","ar","setForm","setKrazd","razdels","sprForm","noFilter","SelectTableForEdit","onOpenTable","ntobj","handleCommit","kraz","onSelectKraz","onChangeIsPostr","selectParam","dialogClassName","Radio","actionUsrInfo","setMode","activeTabKey","setActiveTabKey","dataStore","setDataStore","showConfirmDelete","setShowConfirmDelete","isAutoCalc","setIsAutoCalc","storeData","fetchExcel","handleCloseConfirmDelete","renderRowPostr","strs","countCol","renderColPostr","nstr","gr","grs","g","rowSpan","getControlNumber","calculateAllItogs","ds","recalcPart","cont","controlCells","srcCells","j","dr","dc","c","Number","cellItog","toFixed","renderRowTable","isNotHeader","agraf","keyinput","blockCells","controlCell","NumberCtrl","noError","itogs","calcItog","nv","aSylesFormuls","OverlayTrigger","placement","overlay","Tooltip","padding","margin","borderTop","k2","thousandSeparator","onValueChange","valueChange","onKeyDown","handleKeyPress","onBlur","Intl","NumberFormat","format","sum","vstr","trim","parseFloat","floatValue","keyCode","next","parentNode","nextSibling","blur","firstChild","focus","nextRow","isAdminData","isReadData","readOnly","visibleEdit","statusRk","statusTableRk","statusTableObl","statusObl","IsVisibleEdit","printControl","marginBottom","OpenForm","getKobj","fetchFunc","deleteDataTable","showSelectTable","childOrgs","showModalSelect","onHideSelectModal","commitModal","com","actionCreatorsWork","classMkb","setClassMkb","listClassMkbs","setListClassMkbs","clMkbs","selectMkbClass","TableViewPstr","cloneRows","changeValue","displayType","renderObjStr","ob","kObj","textAlign","no_str","cnt_obj","renderGrItog","itogValues","renderStrs","objValues","sr","renderTable","fileNamePstr","renderPostr","excelDataCSVPstr","ConfirmDelete","isLoadingExcel","OpenFormPstr","getNameRazres","strObj","isChilds","isShowParams","handleShow","in","showSelected","workPstr","defaultChecked","actionCreatorsWorkPstr","SelectMultiObjects","onCheckObl","kobls","setObls","onCheckRaion","kraions","setRaions","korgs","setOrgs","isSelectAllObls","isSelectAllRaions","onChangeIsAllObls","onChangeIsAllRaions","validationState","getValidationStateObls","getValidationStateRaions","isSelOrg","showSelectOrg","SelectMultiForms","onCheckForm","kforms","no47","isNotMonthWithInc","monthWithInc","getValidationStateForms","SvodForm","onSvodForm","isSvodComplete","kobjs","actionCreatorsSvod","chOrgs","setChildOrgs","setYear","setKper","krazSrc","setKrazSrc","setSvodSrc","setKobl","setKraion","setKorg","setKobls","setKraions","setKorgs","setKforms","forOrgs","setForOrgs","isSelectOrgAll","setIsSelectOrgAll","setErrors","successMessage","setSuccessMessage","svodRunning","setSvodRunning","setParam","ra","getSvodParams","fnErr","errs","showCommentPeriod","isSelectOrgAllChange","getValidationChildOrgs","showListSub","onCheckChildOrg","krgs","getTitleSvodSrc","kp","svodQuarts","ers","err","kpers","setKpers","setKf","setKtab","isObj","setIsObj","isOrgs","setIsOrgs","pers","svodFormQuarts2","svodMonths2","isExists","svodMonths","tob","tp","razrez","getRazrezName","SvodFormRaz","handleIsAfterSvodDeleteSrc","handleConfirmClose","showConfirm","handleConfirmSvod","kraz_src","kr","onSelectKrazSrc","showSubOrgs","retData","getValidationStateRaz","float","HelpBlock","msg","SvodSubOrg","onCheckIsNotParent","isNotParent","onCheckNomen","nomen","excludeNomenkl","textTargetRaz","textIsNotParent","srcRaz","ti","targetRaz","EditFormRaz","setKraz","selOrgs","setSelOrgs","isNotdata","setIsNotdata","setIsSvodComplete","setShowConfirm","onClickOrg","onSvodFormCheck","loadList","ListGroup","ListGroupItem","getListItem","MessageBox","tpBtn","keyboard","titleMsg","warningHtml","dangerouslySetInnerHTML","__html","justifyContent","buttons","Copy12MonthToYear","showMsg","messageAction","act","ContrItemlist","selectControl","selectedControl","active","k1","divStyle","overflowY","EditControl","onChangeNewFormulK1","newFormul","onChangeNewFormulK2","onChangeNewFormulP","onAddFormul","inputErrors2","inputErrors","handleSelFormSubmit","clickAdd","clickEdit","frml","editFormul","isShowEdit","curCmd","clickRemove","isShowConfirmRemove","indexRemove","hideConfirmRemove","renderConfirmDelete","handleRemoveSubmit","onChangeSelControlFormul","onChangeSelControlP","onChangeIsMejform","cols","renderTableControl","renderStatusUpdate","renderStatusRemove","hideDialogEdit","handleFormulSubmit","changeRexpr","changeLexpr","changeFu","renderModalEdit","formulActions","nsiActions","ControlResultTable","ri","nusl","ider","zamech","ngr","leftch","rightch","typeContr","renderTableResult","notExistData","typeContrName","periodName","objName","razName","dtEval","ControlForm","onControlForm","actionCreatorsControl","ToExcel","onCreateFileExcel","FromExcel","isSuccess","onUploadFileExcel","input","files","FormData","append","then","log","encType","sta","InputInfor","kfFiltr","showInfoData","showKf","filtrKf","kodKf","namePeriod","nameRaz","strCreateDateTime","borderRadius","getObjectTypeName","setStrObj","razFiltr","setRazFiltr","showRaz","borderStyle","borderWidth","nameForm","EditMedinfoFormul","btCopyFormulYear","isCopyYearFormul","showGetYearOfFormul","errorInsertYear","yearFormulInsert","btInsertFormulYear","hideDialogInsertFormulYear","AddOrCopyFormulYear","formulIdSrc","selectedFormul","formulIdYearSrc","selectedFormulYear","onSelectTypePage","selectedTable","selectedPage","onClickTable","onClickPage","handleChangePageNameRu","refreshSelectedPage","handleChangePageNameKz","handleChangePageNameRazdRu","nameRazdRu","handleChangePageNameRazdKz","nameRazdKz","handleChangeTableInPageNameRu","nameTableRu","handleChangeTableInPageNameKz","nameTableKz","handleChangeSubHeaderRu","subHeaderRu","handleChangeSubHeaderKz","subHeaderKz","handleChangeSubHeader2Ru","subHeader2Ru","handleChangeSubHeader2Kz","subHeader2Kz","handleChangeSubHeader2RangeExcl","subHeader2RangeExcl","handleChangeSubHeader2RangeExclOne","subHeader2RangeExclOne","handleChangeSubHeader3Ru","subHeader3Ru","handleChangeSubHeader3Kz","subHeader3Kz","handleChangeStartRangePeriodsExcl","startRangePeriodsExcl","handleChangeStartRangeDataExcl","startRangeDataExcl","handleChangeRangesPeriodExcl","rangesPeriodExcl","handleChangePageNote1","note1","handleChangePageNote2","note2","onClickFormul","handleChangeFormulText","formulText","uploadExcel","uploadExcelOneYear","showListTables","showListPages","handleChangeNpp","handleChangeNumberAfterPoint","handleChangeFormulNameRu","handleChangeFormulNameKz","onSelectFormulYear","showEditNameTable","handleChangeTableNameRu","handleChangeTableNameKz","downloadExcel","downloadExcelOneYear","showTemplatePageEdit","l","npp","numberAfterPoint","help","typePage","getTablePageKod","showListFormuls","showFormulDetail","showFormulYearDetail","formulmedinfo","EditBokMkb","nppChange","field","nameChange","showTable","nameShortRu","nameShortKz","EditBokDr","onSelectTable","seletedPageId","onSelectPage","selectedPageId","EditParts","onClickPart","selectedPart","handleChangePartNameRu","refreshSelectedPart","handleChangePartNameKz","handleChangeListPages","listPages","showListParts","showSelectPart","GenMedinfoTable","yearsExprStringsChange","regexp","ar1","yy1","yy2","yi","y1","onGenerateTable","begYear","typePer","endYear","isCreateDiagram","typeDiagram","seletedPage","begYearChange","endYearChange","yearsList","validYearsExprStrings","showRangeYears","showTypesDiagram","SelectObject2","cyrYear","GenMedinfoTable2","diagramColumn","diagramPeriod","erMonthQuart","isOneMonth","isForOrgs","oneMonth","diagramLang","tableKod","pageKod","onSelectDiagramColumn","onSelectDiagramPeriod","onSelectDiagramLang","onSetTobj","showSelectColumn","showSelectDiagramPeriod","showSelectDiagramLang","setIsForOrgs","changeTypePer","arYears","lastPos","lastPos0","Gen47Form","onGen47Form","ktabs","isAllTabs","isGen47Complete","onSelectKForm","onCheckTab","renderErrors","dictErrors","entries","onChangeIsAllTabs","onSelectKform","getValidationStateTables","actionCreatorsGen47","Gen47OrgParam","handleCloseEditDialog","showEditDialog","editOrg","btEditClick","kodorg","typeaheadNomen","typeaheadTorg","onSelectNomenkl","onChangeNomen","clearNomen","onChangeTorg","clearTorg","setKodName","filtrOrg","toLowerCase","nomenKod","nomenNameRu","nomenNameKz","torgKod","torgNameRu","torgNameKz","renderTableOrgs","Register","AdminChildsOrg","showRow","removeChild","currentTarget","default","CheckBoxStatus","Label","StatusForm","onOpenStatus","kodNameSearch","showStatusData","renderRowStatus","onChangeStatusKf","dtRun","paddingTop","onChangeStatusKt","setKodNameSearch","DeleteForm","showNodata","onDeleteForm","handleCloseNodata","getNameKf","getNameObj","getNameRaz","RepSubordinates","onSelectLang","onGenerateRep","Obl","Lang","setKodOrg","setNameOrg","setKodObl","handleCloseDlg","isNotCancel","selorg","NameOrg","idObl","as","WebkitOverflowScrolling","overflowX","setShow","org1","handleChangeKod","isReadOnly","setParentOrg","setChildsOrgs","orgP","showModalAdd","setShowModalAdd","childAddOrg","setChildAddOrg","setFoundOrgs","showAddNew","setShowAddNew","newOrg","setNewOrg","errorsNewOrg","setErrorsNewOrg","changeNewOrgFld","handleAddOrgToOkpolu","validate","verifyKodOrg","rus","rusName","kaz","kazName","showEditNameOrg","setShowEditNameOrg","setEditOrg","errorsEditOrg","setErrorsEditOrg","changeEditOrgFld","edOrg","handleEditNameOrg","valid","exists","editChild","index1","paddingBottom","maxWidth","option","nasels","setNasels","setTe","lNas","getNasels","changeFld","getN","nas","nn","getNas","nls","fRa","showChangeObl","setShowChangeObl","newTe","setNewTe","setLoading","setData","selRa","setRa","binOrg","setBinOrg","setIsMedstat","getOrgs","selOrg","setSelOrg","showEditOrg","setShowEditOrg","getRaionName","getOblName","getStyleTe","bIsMedstat","btEditItem","getChilds","setChilds","setSelChild","childs","selChild","setSelectedUserId","setSelectedUser","setPassword","setPasswordConfirm","setShowModalDelete","setUserDelete","refTypeahead","React","createRef","yearsCopy","setYearsCopy","setSelYear","setSelectOrg","setOrgParam","orgParamOriginal","setOrgParamOriginal","loadingText","setLoadingText","setIsDataSaved","loadOrgParam","resp","isAll","listRaz","listForm","changeFieldParamOrg","fldName","updateValues","changeIsAllParamOrg","nm","showRazModal","setShowRazModal","selRazrs","setSelRazrs","checkRazrez","p0","i2","p1","razs","showFormModal","setShowFormModal","setSelForms","getNameForm","fo","changeIs","op","current","saveAcRazdOrg","getL","delRaz","delForm","border","setIsAllRaions","selKobl","setKraz_src","kraz_s","onSvodFormOrgRaz","setHeadOrgs","headOrgs","setError","setIsNotParent","setExcludeNomenkl","onCheckOrg","ko","excNomenkl","exclNomenkl","svodFn","actionCreatorsLog","setStartDate","setEndDate","setAction","setList","koblFlt","setKodlFlt","ac","loadLogs","logItems","dateFormat","ipAddress","textSvg","setTextSvg","loadSvg","urlMap","renderHTML","loadParts","selPart","setSelectPart","page0","setSelectPage","selectPart","selectPage","setTypePer","columnNo","setColumnNo","bokNo","setBokNo","setLang","urlMapRk","setUrlMapRk","urlMapObl","setUrlMapObl","orgsData","setParamsRk","urlObl","fetchPng","colCnt","PageId","ColumnNo","loadPages","bno","boks","changeObl","actionMedstatTemplates","selectedTemplate","setSelectedTemplate","inputRu","inputKz","medstatTemplates","fileNameKz","versionDt","curYear","kperSrc","setKperSrc","kperDest","setKperDest","runEditPeriod","isExistPeriod","isNotExistsSrc","EditFormulExcelModal","setCell","setFormul","setIsNew","setEr","isExistsCell","setFormulExcel","file","selTmp","change","setShowMsg","delIndex","setDelIndex","showModalEditFormul","setShowModalEditFormul","excelSheetName","excelRangeStartData","excelRangeRaz","excelRangePeriod","excelRangeForm","excelRangeTable","excelRangeObj","sprTableImplFormuls","exclCol","exclFormul","btEditFormul","btRemoveFormul","changeFormul","deleteFormul","formls","Route","path","component","Home","AdminUsers","EditTemplateFiles","EditTempTablesMonths","FinPaid","ReportFin","ReportFinRCRZ","SvodFormQuarts","SvodFormMonths","EditFormOrgRaz","EditFormPeriod","EditMedinfoBokMkb","EditMedinfoBokDr","EditMedinfoPart","StatusFormRk","StatusTableRk","StatusTableObl","AdminEditChildOrg","EditOrgsOnObl","AdminChildUsers","AccessRazdOrg","SvodSpecificOrg","SvodFormOrgRaz2","SvodSubOrgObl","LogAudit","MapSvg","VersionsHistory","require","config","history","createBrowserHistory","basename","store","reducers","Work","WorkPstr","Svod","counter","Counter","FormulMedinfo","Gen47","Log","MedstatTemplates","weatherForecasts","WeatherForecasts","middleware","thunk","routerMiddleware","enhancers","rootReducer","combineReducers","routing","routerReducer","i18nReducer","createStore","compose","applyMiddleware","configureStore","initialReduxState","syncTranslationWithStore","loadTranslations","languages","language","userLanguage","rootElement","ReactDOM","render","App"],"mappings":"03BACMA,EAAmB,gBACnBC,EAAmB,gBACnBC,EAAiB,cAGNC,EAAa,SAE1BC,OAAOC,EACPC,GAAY,EACZC,EAAWC,aAAaC,QAAQ,gBACpC,GAAiB,OAAbF,EAAmB,CACnB,IAAIG,EAAMC,KAAKC,MAAML,GACjBM,EAAW,IAAIC,KAAKJ,EAAIK,cACxBC,EAAM,IAAIF,KACVD,EAASI,UAAYD,EAAIC,UAAY,IACrCb,EAAOM,EACPJ,GAAY,EAEnB,CAED,IAAMY,EAAe,CAAEd,KAAMA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,OAAOC,YACHL,EACAh7E,EACAs7E,IAAO,WAAP,GAAQC,IAAe,WAAf,EAAmBX,IAA3B,OAA2CG,IAElD,CD1CaS,CAAe5B,GADRh2C,OAAO63C,mBAI5BC,mCAAyB3B,IACzBA,GAAM35E,SAASu7E,2BAAiBr2D,KAChC,IAAIuZ,GAAS+E,OAAOtf,MACZqpB,UAAUiuC,WAAajuC,UAAUiuC,UAAU,IAC5CjuC,UAAUkuC,UACVluC,UAAUmuC,cACV,KACW,MAAdj9C,GAAO,IAA4B,MAAdA,GAAO,KAC5BA,GAAS,SAEE,UAAXA,GACA1B,2BAAiB5X,KAEjB4X,2BAAiBN,KAErBk9C,GAAM35E,SAASs9B,oBAAUmB,KAEzB,IAAMk9C,GAAcv9C,SAASyD,eAAe,QAE5C+5C,IAASC,OACP,eAAC,IAAD,CAAUlC,MAAOA,GAAjB,SACE,eAAC,IAAD,CAAiBH,QAASA,GAA1B,SACE,eAACsC,GAAD,QAGJH,G","file":"static/js/main.da2d2b44.chunk.js","sourcesContent":["import { I18n } from 'react-redux-i18n';\r\nconst requestLoginType = 'REQUEST_LOGIN';\r\nconst receiveLoginType = 'RECEIVE_LOGIN';\r\nconst errorLoginType = 'ERROR_LOGIN';\r\n//const requestRefreshTokenType = 'REQUEST_REFRESH_TOKEN';\r\n//const receiveRefreshTokenType = 'RECEIVE_REFRESH_TOKEN';\r\n/*export*/ const LogoutType = 'LOGOUT';\r\n\r\nlet user = undefined;\r\nlet loggingIn = false;\r\nlet userJson = localStorage.getItem('user_medstat');\r\nif (userJson !== null) {\r\n let usr = JSON.parse(userJson);\r\n let expidred = new Date(usr.tokenExpires);\r\n let now = new Date();\r\n if (expidred.getTime() - now.getTime() > 0) {\r\n user = usr;\r\n loggingIn = true;\r\n }\r\n}\r\n\r\nconst initialState = { user: user, isLoading: false, loggingIn, error: undefined };\r\n\r\nexport const getToken = async (dispatch, userInfo) => {\r\n if (userInfo === undefined || userInfo.user === undefined) {\r\n return;\r\n }\r\n let expidred = new Date(userInfo.user.tokenExpires);\r\n let now = new Date();\r\n let secondExpired = (expidred.getTime() - now.getTime())/1000; //сколько секунд осталось \r\n if (secondExpired < 0) {\r\n dispatch({ type: LogoutType });\r\n return undefined;\r\n }\r\n var token = userInfo.user.token;\r\n if (secondExpired < 30) { //токену осталось меньше пол минуты, обновить если надо\r\n //обновить токен\r\n await refreshToken(dispatch,token);\r\n }\r\n //старый токен\r\n return token;\r\n};\r\nvar refreshToken = async (dispatch, token) => {\r\n //dispatch({ type: requestRefreshTokenType });\r\n const url = \"api/Users/RefreshToken\";\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n var status = response.status;\r\n const user = await response.json();\r\n dispatch({ type: receiveLoginType, user, status });\r\n};\r\nexport const actionCreators = {\r\n login: (params) => async (dispatch, getState) => {\r\n dispatch({ type: requestLoginType });\r\n\r\n //const url = `api/SampleData/WeatherForecasts?startDateIndex=${startDateIndex}`;\r\n //const response = await fetch(url);\r\n let json = JSON.stringify(params);\r\n try {\r\n const response = await fetch(\"api/Users/Authenticate\", {\r\n //credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json'\r\n },\r\n body: json\r\n }).catch(error => {\r\n //console.dir(error);\r\n dispatch({ type: errorLoginType, error: I18n.t(\"login.userNamePassInvalid\")});\r\n return;\r\n });\r\n var status = response.status;\r\n const user = await response.json();\r\n dispatch({ type: receiveLoginType, user, status });\r\n } catch (err) {\r\n //console.dir(err);\r\n dispatch({ type: errorLoginType, error: I18n.t(\"login.userNamePassInvalid\") });\r\n };\r\n },\r\n //refreshToken: () => async (dispatch, getState) => {\r\n // let userInfo = getState().userInfo;\r\n // const url = \"api/Users/RefreshToken\";\r\n // const response = await fetch(url, {\r\n // credentials: 'include',\r\n // headers: {\r\n // 'Authorization': `Bearer ${userInfo.token}`\r\n // }\r\n // });\r\n // var status = response.status;\r\n // const user = await response.json();\r\n // dispatch({ type: receiveLoginType, user, status });\r\n //},\r\n logout: () => ({ type: LogoutType }),\r\n /*\r\n logout: () => async (dispatch) => {\r\n await fetch(\"api/Users/SignOut\", {\r\n //credentials: 'include',\r\n method: 'GET',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json'\r\n }\r\n }).catch(error => {\r\n console.dir(`SignOut error:${error}`);\r\n });\r\n \r\n //var status = response.status;\r\n dispatch({ type: LogoutType });\r\n },\r\n */\r\n searchOrg: (oblKod, orgStr) => async(dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n const url = `api/ManageUsers/searchOrg?obl=${oblKod}&strOrg=${orgStr}`;\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }});\r\n /*const data =*/return await response.json();\r\n }\r\n};\r\n\r\nexport const reducer = (state, action) => {\r\n state = state || initialState;\r\n\r\n if (action.type === requestLoginType) {\r\n localStorage.removeItem('user_medstat');\r\n return {\r\n ...state,\r\n user: undefined,\r\n error: undefined,\r\n loggingIn: false,\r\n isLoading: true\r\n };\r\n }\r\n\r\n if (action.type === receiveLoginType) {\r\n let user = action.status === 200 ? action.user : undefined;\r\n let loggingIn = false;\r\n let error = undefined;\r\n if (user !== undefined) {\r\n user.serverDt = user.serverDt != null ? new Date(user.serverDt) : null;\r\n if (user.isPaid === true) {\r\n localStorage.setItem('user_medstat', JSON.stringify(user));\r\n loggingIn = true;\r\n } else {\r\n user = undefined;\r\n localStorage.removeItem('user_medstat');\r\n loggingIn = false;\r\n error = I18n.t(\"login.notPaid\");\r\n }\r\n }\r\n return {\r\n ...state,\r\n user: user,\r\n loggingIn: loggingIn,\r\n error: error,\r\n isLoading: false\r\n };\r\n }\r\n\r\n if (action.type === LogoutType) {\r\n localStorage.removeItem('user_medstat');\r\n return {\r\n ...state,\r\n user: undefined,\r\n error: undefined,\r\n loggingIn: false,\r\n isLoading: false\r\n };\r\n }\r\n if (action.type === errorLoginType) {\r\n //localStorage.removeItem('user_medstat');\r\n return {\r\n ...state,\r\n error: action.error,\r\n isLoading: false\r\n };\r\n }\r\n\r\n return state;\r\n};\r\n","import { getToken } from './UserInfo';\r\nconst requestGetUsersAction = 'REQUEST_USERS';\r\nconst receiveGetUsersAction = 'RECEIVE_USERS';\r\nconst requestSearchUsersAction = 'REQUEST_SEARCH_USERS';\r\nconst receiveSearchUsersAction = 'RECEIVE__SEARCH_USERS';\r\nconst requestInsertOrUpdateUser = 'REQUEST_INSERT_OR_UPDATE_USER';\r\nconst receiveInsertOrUpdateUser = 'RECEIVE_INSERT_OR_UPDATE_USER';\r\nconst requestChangePassUser = 'REQUEST_CHANGE_PASS_USER';\r\nconst receiveChangePassUser = 'RECEIVE_CHANGE_PASS_USER';\r\nconst requestChangeUserName = 'REQUEST_CHANGE_USER_NAME';\r\nconst receiveChangeUserName = 'RECEIVE_CHANGE_USER_NAME';\r\nconst ClearUserUpdateResult = 'CLEAR_USER_UPDATE_RESULT';\r\nconst requestDeleteUserAction = 'REQUEST_DELETE_USER';\r\nconst receiveDeleteUserAction = 'RECEIVE_DELETE_USER';\r\n\r\nconst initialState = {\r\n usersResult: undefined,\r\n userUpdateResult: undefined,\r\n startPage: 1,\r\n sizePage: 20,\r\n searchUserString: undefined,\r\n errorsChangePass: undefined,\r\n passUpdateResult: undefined,\r\n errorsChangeUserName: undefined,\r\n userNameUpdateResult: undefined,\r\n isLoading: false,\r\n userNameNew: undefined,\r\n deleteUserResult: undefined\r\n};\r\n\r\nexport const actionCreators = {\r\n requestSearchUsers: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestSearchUsersAction });\r\n let json = JSON.stringify(params);\r\n const url = 'api/ManageUsers/SearchUsers';\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n const data = await response.json();\r\n dispatch({ type: receiveSearchUsersAction, usersResult: data });\r\n },\r\n requestSearchUsersChildOrgs: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestSearchUsersAction });\r\n let json = JSON.stringify(params);\r\n const url = 'api/ManageUsersChildOrgs/SearchUsers';\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n const data = await response.json();\r\n dispatch({ type: receiveSearchUsersAction, usersResult: data });\r\n },\r\n requestGetUsers: (searchUserString, startPage, sizePage) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestGetUsersAction });\r\n const url = `api/ManageUsers/Users?searchUserString=${searchUserString}&startPage=${startPage}&sizePage=${sizePage}`;\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n const data = await response.json();\r\n dispatch({ type: receiveGetUsersAction, usersResult: data });\r\n },\r\n requestInsertOrUpdateUser: (user) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestInsertOrUpdateUser });\r\n let json = JSON.stringify(\r\n {\r\n Id:user.id,\r\n Username: user.username === undefined || user.username === ''? user.email : user.username, \r\n Email: user.email,\r\n Fio: user.fio,\r\n AccessLevel: user.accessLevel,// 1 – РК; 2 – область; 3-район; 4 - организация\r\n TypeUser: user.typeUser,\r\n KodOrg: user.org.kod,\r\n KodObl: user.obl.kod,\r\n KodRaion: user.raion.kod,\r\n Roles: user.roles,\r\n IsNew: user.isNew,\r\n Password: user.password\r\n }\r\n );\r\n const url = 'api/ManageUsers/userUpdate';\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n const data = await response.json();\r\n dispatch({ type: receiveInsertOrUpdateUser, updateResult: data, userUpdate: user });\r\n },\r\n requestInsertOrUpdateUserChildOrgs: (user) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestInsertOrUpdateUser });\r\n let json = JSON.stringify(\r\n {\r\n Id: user.id,\r\n Username: user.username === undefined || user.username === '' ? user.email : user.username,\r\n Email: user.email,\r\n Fio: user.fio,\r\n AccessLevel: user.accessLevel,// 1 – РК; 2 – область; 3-район; 4 - организация\r\n TypeUser: user.typeUser,\r\n KodOrg: user.org.kod,\r\n KodObl: user.obl.kod,\r\n KodRaion: user.raion.kod,\r\n Roles: user.roles,\r\n IsNew: user.isNew,\r\n Password: user.password\r\n }\r\n );\r\n const url = 'api/ManageUsersChildOrgs/userUpdate';\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n const data = await response.json();\r\n dispatch({ type: receiveInsertOrUpdateUser, updateResult: data, userUpdate: user });\r\n },\r\n ClearUserUpdateResult: () => ({ type: ClearUserUpdateResult }),\r\n changePassUser: (inpData) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestChangePassUser });\r\n const url = `api/ManageUsers/ChangeSecretSlovo?userName=${encodeURIComponent(inpData.username)}&secsl=${encodeURIComponent(inpData.newPassword)}&cursecsl=${encodeURIComponent(inpData.oldPassword)}`;\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }});\r\n const data = await response.json();\r\n dispatch({ type: receiveChangePassUser, changePassResult: data });\r\n },\r\n changePassUserChildOrgs: (inpData) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestChangePassUser });\r\n const url = `api/ManageUsersChildOrgs/ChangeSecretSlovo?userName=${encodeURIComponent(inpData.username)}&secsl=${encodeURIComponent(inpData.newPassword)}&cursecsl=${encodeURIComponent(inpData.oldPassword)}`;\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n const data = await response.json();\r\n dispatch({ type: receiveChangePassUser, changePassResult: data });\r\n },\r\n changeUserName: (inpData) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestChangeUserName });\r\n const url = `api/ManageUsers/ChangeUserName?userNameOld=${encodeURIComponent(inpData.userNameOld)}&userNameNew=${encodeURIComponent(inpData.userNameNew)}`;\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }});\r\n const data = await response.json();\r\n dispatch({ type: receiveChangeUserName, changeUserNameResult: data, userNameOld: inpData.userNameOld, userNameNew: inpData.userNameNew });\r\n },\r\n changeUserNameChildOrgs: (inpData) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestChangeUserName });\r\n const url = `api/ManageUsersChildOrgs/ChangeUserName?userNameOld=${encodeURIComponent(inpData.userNameOld)}&userNameNew=${encodeURIComponent(inpData.userNameNew)}`;\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n const data = await response.json();\r\n dispatch({ type: receiveChangeUserName, changeUserNameResult: data, userNameOld: inpData.userNameOld, userNameNew: inpData.userNameNew });\r\n },\r\n deleteUser: (userId) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestDeleteUserAction });\r\n const url = `api/ManageUsers/DeleteUser?userId=${userId}`;\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveDeleteUserAction, resultDeleteUser: data});\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n deleteUserChildOrgs: (userId) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestDeleteUserAction });\r\n const url = `api/ManageUsersChildOrgs/DeleteUser?userId=${userId}`;\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveDeleteUserAction, resultDeleteUser: data });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n }\r\n};\r\n\r\nexport const reducer = (state, action) => {\r\n state = state || initialState;\r\n if (action.type === requestSearchUsersAction) {\r\n return {\r\n ...state,\r\n isLoading: true,\r\n startPage: action.startPage,\r\n sizePage: action.sizePage,\r\n searchUserString: action.searchUserString,\r\n usersResult: undefined,\r\n userUpdateResult: state.userUpdateResult\r\n };\r\n }\r\n if (action.type === receiveSearchUsersAction) {\r\n return {\r\n ...state,\r\n isLoading: false,\r\n usersResult: action.usersResult,\r\n searchUserString: state.searchUserString,\r\n sizePage: state.sizePage,\r\n startPage: state.startPage,\r\n userUpdateResult: state.userUpdateResult\r\n };\r\n }\r\n\r\n if (action.type === requestGetUsersAction) {\r\n return {\r\n ...state,\r\n isLoading:true,\r\n startPage: action.startPage,\r\n sizePage: action.sizePage,\r\n searchUserString: action.searchUserString,\r\n usersResult: undefined,\r\n userUpdateResult: state.userUpdateResult\r\n };\r\n }\r\n if (action.type === receiveGetUsersAction) {\r\n return {\r\n ...state,\r\n isLoading: false,\r\n usersResult: action.usersResult,\r\n searchUserString: state.searchUserString,\r\n sizePage: state.sizePage,\r\n startPage: state.startPage,\r\n userUpdateResult: state.userUpdateResult\r\n };\r\n }\r\n if (action.type === requestInsertOrUpdateUser) {\r\n return {\r\n ...state,\r\n usersResult: state.usersResult,\r\n searchUserString: state.searchUserString,\r\n sizePage: state.sizePage,\r\n startPage: state.startPage,\r\n userUpdateResult: undefined\r\n };\r\n }\r\n if (action.type === receiveInsertOrUpdateUser) {\r\n let usersResult = undefined;\r\n if (state.usersResult !== undefined && action.updateResult.result && action.userUpdate) {\r\n var userUpd = { ...action.userUpdate };\r\n usersResult = {\r\n allCounts: action.userUpdate.isNew ? state.usersResult.allCounts + 1 : state.usersResult.allCounts,\r\n users: state.usersResult.users.map(m => m)\r\n };\r\n if (action.userUpdate.isNew) {\r\n userUpd.isNew = false;\r\n usersResult.users.push(userUpd);\r\n } else {\r\n let oldUs;\r\n if (!Array.prototype.find)\r\n oldUs = usersResult.users.filter(u => u.username === userUpd.username)[0];\r\n else \r\n oldUs = usersResult.users.find(u => u.username === userUpd.username);\r\n if (oldUs) {\r\n let startIndex = usersResult.users.indexOf(oldUs);\r\n usersResult.users.splice(startIndex, 1, userUpd);\r\n }\r\n }\r\n }\r\n return {\r\n ...state,\r\n usersResult: usersResult || state.usersResult,\r\n searchUserString: state.searchUserString,\r\n sizePage: state.sizePage,\r\n startPage: state.startPage,\r\n userUpdateResult: action.updateResult\r\n };\r\n }\r\n if (action.type === ClearUserUpdateResult) {\r\n return {\r\n ...state,\r\n usersResult: state.usersResult,\r\n searchUserString: state.searchUserString,\r\n sizePage: state.sizePage,\r\n startPage: state.startPage,\r\n userUpdateResult: undefined,\r\n changePassResult: undefined,\r\n errorsChangePass: undefined,\r\n passUpdateResult: undefined,\r\n errorsChangeUserName: undefined,\r\n userNameUpdateResult: undefined,\r\n userNameNew: undefined\r\n };\r\n }\r\n if (action.type === requestChangePassUser) {\r\n return {\r\n ...state,\r\n errorsChangePass: undefined,\r\n passUpdateResult: undefined\r\n };\r\n }\r\n if (action.type === receiveChangePassUser) {\r\n return {\r\n ...state,\r\n errorsChangePass: action.changePassResult.result === false ? action.changePassResult.error : undefined,\r\n passUpdateResult: action.changePassResult.result\r\n };\r\n }\r\n if (action.type === requestChangeUserName) {\r\n return {\r\n ...state,\r\n errorsChangeUserName: undefined,\r\n userNameUpdateResult: undefined,\r\n userNameNew: undefined\r\n };\r\n }\r\n if (action.type === receiveChangeUserName) {\r\n //Result\r\n //console.dir(action.changeUserNameResult);\r\n //var errorsChangeUserName = action.changeUserNameResult.result === false ? action.changeUserNameResult.error : undefined;\r\n //console.info(errorsChangeUserName);\r\n let usersResult = { ...state.usersResult };\r\n if (action.changeUserNameResult.result === true) {\r\n let oldUs;\r\n if (!Array.prototype.find)\r\n oldUs = usersResult.users.filter(u => u.username === action.userNameOld)[0];\r\n else\r\n oldUs = usersResult.users.find(u => u.username === action.userNameOld);\r\n if (oldUs) {\r\n let startIndex = usersResult.users.indexOf(oldUs);\r\n let newUser = { ...oldUs };\r\n newUser.userName = action.userNameNew;\r\n usersResult.users.splice(startIndex, 1, newUser);\r\n }\r\n }\r\n return {\r\n ...state,\r\n usersResult: usersResult,\r\n errorsChangeUserName: action.changeUserNameResult.result === false ? action.changeUserNameResult.error : undefined,\r\n userNameUpdateResult: action.changeUserNameResult.result,\r\n userNameNew: action.userNameNew\r\n };\r\n }\r\n if (action.type === requestDeleteUserAction) {\r\n return {\r\n ...state,\r\n deleteUserResult: undefined\r\n };\r\n }\r\n if (action.type === receiveDeleteUserAction) {\r\n //удалить из списка удаленного пользователя\r\n let usersResult = { ...state.usersResult };\r\n if (action.resultDeleteUser.result === true) {\r\n let oldUs;\r\n if (!Array.prototype.find)\r\n oldUs = usersResult.users.filter(u => u.id === action.resultDeleteUser.userId)[0];\r\n else\r\n oldUs = usersResult.users.find(u => u.id === action.resultDeleteUser.userId);\r\n if (oldUs) {\r\n let startIndex = usersResult.users.indexOf(oldUs);\r\n usersResult.users.splice(startIndex, 1);\r\n }\r\n } \r\n return {\r\n ...state,\r\n usersResult,\r\n deleteUserResult: action.resultDeleteUser\r\n };\r\n }\r\n return state;\r\n};","import { getToken } from './UserInfo';\r\nconst requestGetFormulControlAction = 'REQUEST_GET_FORMUL_CONTROL_DATA';\r\nconst receiveGetFormulControlAction = 'RECEIVE_GET_FORMUL_CONTROL_DATA';\r\nconst requestAddFormulControlAction = 'REQUEST_ADD_FORMUL_CONTROL_DATA';\r\nconst receiveAddFormulControlAction = 'RECEIVE_ADD_FORMUL_CONTROL_DATA';\r\nconst requestRemoveFormulControlAction = 'REQUEST_REMOVE_FORMUL_CONTROL_DATA';\r\nconst receiveRemoveFormulControlAction = 'RECEIVE_REMOVE_FORMUL_CONTROL_DATA';\r\nconst requestUpdateFormulControlAction = 'REQUEST_UPDATE_FORMUL_CONTROL_DATA';\r\nconst receiveUpdateFormulControlAction = 'RECEIVE_UPDATE_FORMUL_CONTROL_DATA';\r\n\r\n\r\nconst initialState = { isLoading: false, controlData: undefined, statusUpdate: undefined, statusRemove: undefined }\r\n\r\nexport const actionCreators = {\r\n getFormul: (year, kform, isMejform) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestGetFormulControlAction });\r\n const url = `api/FormulApi/GetData/${kform}/${year}?isMejForm=${isMejform}`;\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n method: 'GET',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n const data = await response.json();\r\n dispatch({ type: receiveGetFormulControlAction, data });\r\n },\r\n AddFormul: (formul) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestAddFormulControlAction });\r\n let json = JSON.stringify(formul);\r\n const url = 'api/FormulApi/AddFormul';\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n const status = await response.json();\r\n dispatch({ type: receiveAddFormulControlAction, status, formul });\r\n return status;\r\n },\r\n RemoveFormul: (param) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestRemoveFormulControlAction });\r\n const url = `api/FormulApi/RemoveFormul/${param.uid}/${param.year}`;\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n method: 'DELETE',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n const status = await response.json();\r\n dispatch({ type: receiveRemoveFormulControlAction, status, param });\r\n },\r\n UpdateFormul: (formul) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestUpdateFormulControlAction });\r\n let json = JSON.stringify(formul);\r\n const url = 'api/FormulApi/UpdateFormul';\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n const status = await response.json();\r\n dispatch({ type: receiveUpdateFormulControlAction, status, formul });\r\n }\r\n}\r\n\r\nexport const reducer = (state, action) => {\r\n state = state || initialState;\r\n\r\n if (action.type === requestGetFormulControlAction) {\r\n return {\r\n ...state,\r\n isLoading: true,\r\n controlData: undefined,\r\n statusUpdate: undefined,\r\n statusRemove: undefined\r\n };\r\n }\r\n if (action.type === receiveGetFormulControlAction) {\r\n return {\r\n ...state,\r\n isLoading: false,\r\n controlData: action.data\r\n };\r\n }\r\n if (action.type === requestAddFormulControlAction) {\r\n return {\r\n ...state,\r\n isLoading: true,\r\n statusUpdate: undefined,\r\n statusRemove: undefined\r\n };\r\n }\r\n if (action.type === receiveAddFormulControlAction) {\r\n if (action.status.successed === true)\r\n {\r\n let controlData = Object.assign(state.controlData);\r\n controlData.push({ ...action.formul, uid: action.status.newUidKontr });\r\n return {\r\n ...state,\r\n isLoading: false,\r\n controlData,\r\n statusUpdate: { ...action.status, isAdd: true },\r\n statusRemove: undefined\r\n };\r\n }else\r\n return {\r\n ...state,\r\n isLoading: false,\r\n statusUpdate: action.status,\r\n statusRemove: undefined\r\n };\r\n }\r\n if (action.type === requestRemoveFormulControlAction) {\r\n return {\r\n ...state,\r\n isLoading: true,\r\n statusUpdate: undefined,\r\n statusRemove: undefined\r\n };\r\n }\r\n if (action.type === receiveRemoveFormulControlAction) {\r\n if (action.status.successed === true) {\r\n let controlData = Object.assign(state.controlData);\r\n controlData.splice(action.param.index, 1);\r\n return {\r\n ...state,\r\n isLoading: false,\r\n controlData,\r\n statusRemove: action.status,\r\n statusUpdate: undefined\r\n };\r\n } else\r\n return {\r\n ...state,\r\n isLoading: false,\r\n statusRemove: action.status,\r\n statusUpdate: undefined\r\n };\r\n }\r\n if (action.type === requestUpdateFormulControlAction) {\r\n return {\r\n ...state,\r\n isLoading: true,\r\n statusUpdate: undefined,\r\n statusRemove: undefined\r\n };\r\n }\r\n if (action.type === receiveUpdateFormulControlAction) {\r\n if (action.status.successed === true) {\r\n let controlData = Object.assign(state.controlData);\r\n let ctrl = controlData.filter(f => f.uid === action.formul.uid)[0];\r\n ctrl.lexpr = action.formul.lexpr;\r\n ctrl.rexpr = action.formul.rexpr;\r\n ctrl.fu = action.formul.fu;\r\n //controlData.push({ ...action.formul, uid: action.status.newUidKontr });\r\n return {\r\n ...state,\r\n isLoading: false,\r\n controlData,\r\n statusUpdate: { ...action.status, isAdd: false },\r\n statusRemove: undefined\r\n };\r\n } else\r\n return {\r\n ...state,\r\n isLoading: false,\r\n statusUpdate: action.status,\r\n statusRemove: undefined\r\n };\r\n }\r\n return state;\r\n}","import { getToken } from './UserInfo';\r\nconst requestNsiMetadataAction = 'REQUEST_NSI_METADATA';\r\nconst receiveNsiMetadataAction = 'RECEIVE_NSI_METADATA';\r\nconst requestGetDataTableAction = 'REQUEST_NSI_GET_DATA_TABLE';\r\nconst receiveGetDataTableAction = 'RECEIVE_NSI_GET_DATA_TABLE';\r\nconst requestSaveDataTableAction = 'REQUEST_NSI_SAVE_DATA_TABLE';\r\nconst receiveSaveDataTableAction = 'RECEIVE_NSI_SAVE_DATA_TABLE';\r\nconst requestNs = 'REQUEST_NS';\r\nconst receiveNs = 'RECEIVE_NS';\r\nconst requestChildsOrgsAction = 'REQUEST_CHILDS_ORGS';\r\nconst receiveChildsOrgsAction = 'RECEIVE_CHILDS_ORGS';\r\nconst requestAddChildOrgAction = 'REQUEST_ADD_CHILD_ORG';\r\nconst receiveAddChildOrgAction = 'RECEIVE_ADD_CHILD_ORG';\r\nconst requestRemoveChildOrgAction = 'REQUEST_REMOVE_CHILD_ORG';\r\nconst receiveRemoveChildOrgAction = 'RECEIVE_REMOVE_CHILD_ORG';\r\nconst requestGetOrgsByOblKodName = 'REQUEST_GETORGSBYOBLKODNAME';\r\nconst receiveGetOrgsByOblKodName = 'RECEIVE_GETORGSBYOBLKODNAME';\r\n\r\nconst initialState = {\r\n isLoading: false, nsimeta: [], dataTable: undefined, updateStatus: undefined, errors: undefined,\r\n periods: [], sprraz: [], sprform: [], sprrazdel:[], allsprtab: [], sprtab: [], torg: [], nomenkl:[],\r\n allobls: [], allraions: [], orgs: [], childsOrgs: [], versions_history: []\r\n}\r\n\r\nexport const actionCreators = {\r\n getNs: (ns, params) => async (dispatch, getState) => {\r\n if (getState().nsi[ns] !== undefined && getState().nsi[ns].length > 0 && ns.startsWith('all'))\r\n return;\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestNs, ns });\r\n let url = `api/SprApi/${ns}`;\r\n if (params !== undefined) {\r\n for (var i = 0; i < params.length; i++) {\r\n url += (i === 0 ? \"?\" : \"&\") + params[i].name + \"=\" + params[i].value;\r\n }\r\n }\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n const data = await response.json();\r\n dispatch({ type: receiveNs, data, ns });\r\n },\r\n getClassMkb: (kf, ktab) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n const url = `api/SprApi/GetClassMkb/${kf}/${ktab}`;\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n if (response.status === 204)//no content\r\n return null;\r\n return await response.json();\r\n },\r\n getOrgByKod: (kod) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n const url = `api/SprApi/orgByKod?kodOrg=${kod}`;\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n if (response.status === 204)//no content\r\n return null;\r\n return await response.json();\r\n },\r\n getOrgsByOblKodName: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestGetOrgsByOblKodName });\r\n let json = JSON.stringify(params);\r\n const url = \"api/SprApi/orgsByOblKodName\";\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n const listOrgs = await response.json();\r\n dispatch({ type: receiveGetOrgsByOblKodName, listOrgs });\r\n },\r\n getOrgsParentKodAndKodName: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n let json = JSON.stringify(params);\r\n const url = \"api/SprApi/getOrgsParentKodAndKodName\";\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n return await response.json();\r\n },\r\n checkKodOrg: (kod) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n const url = `api/SprApi/checkKodOrg?kodOrg=${kod}`;\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n if (response.ok === true) {\r\n return await response.json();\r\n } else {\r\n alert(\"error checkKodOrg\");\r\n }\r\n },\r\n getSubOrgs: () => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n const url = 'api/SprApi/getSubOrgs';\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n if (response.ok === true) {\r\n return await response.json();\r\n } else {\r\n alert(\"error requestGetChildsOrgs\");\r\n }\r\n },\r\n getChildsOrgsByParent: (kodParentOrg) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n const url = `api/SprApi/getChildsOrgsByParent?kodParentOrg=${kodParentOrg}`;\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n if (response.ok === true) {\r\n return await response.json();\r\n } else {\r\n alert(\"error requestGetChildsOrgs\");\r\n }\r\n },\r\n requestGetChildsOrgs: () => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestChildsOrgsAction });\r\n const url = 'api/SprApi/getChildsOrgs';\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n if (response.ok === true) {\r\n const data = await response.json();\r\n dispatch({ type: receiveChildsOrgsAction, list: data });\r\n //return data;\r\n } else {\r\n alert(\"error requestGetChildsOrgs\");\r\n }\r\n //return [];\r\n },\r\n addChildOrg: (korg) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestAddChildOrgAction });\r\n const url = `api/SprApi/addChildOrg?korg=${korg}`;\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n if (response.ok === true) {\r\n const data = await response.json();\r\n dispatch({ type: receiveAddChildOrgAction, list: data.list, updateStatus: data.status });\r\n } else {\r\n alert(\"error requestAddChildOrg\");\r\n }\r\n },\r\n addChildOrgByParent: (korg, parentKod) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n const url = `api/SprApi/addChildOrgByParent?korg=${korg}&parentKod=${parentKod}`;\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n if (response.ok === true) {\r\n return await response.json();\r\n } else {\r\n alert(\"error requestAddChildOrg\");\r\n }\r\n },\r\n removeChildOrg: (korg) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestRemoveChildOrgAction });\r\n const url = `api/SprApi/removeChildOrg?korg=${korg}`;\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n if (response.ok === true) {\r\n const data = await response.json();\r\n dispatch({ type: receiveRemoveChildOrgAction, list: data.list, updateStatus: data.status });\r\n } else {\r\n alert(\"error requestAddChildOrg\");\r\n }\r\n },\r\n removeChildOrgByParent: (korg, parentKod) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n const url = `api/SprApi/removeChildOrgByParent?korg=${korg}&parentKod=${parentKod}`;\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n if (response.ok === true) {\r\n return await response.json();\r\n } else {\r\n alert(\"error removeChildOrgByParent\");\r\n }\r\n },\r\n requestNsiMetadata: () => async (dispatch, getState) => {\r\n if (getState().nsi.nsimeta.length > 0) return; \r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestNsiMetadataAction });\r\n const url = 'api/Nsi/nsimetadata';\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n const data = await response.json();\r\n dispatch({ type: receiveNsiMetadataAction, nsimeta: data });\r\n },\r\n getDataTable: (table) => async (dispatch, getState) => {\r\n //if (getState().nsi.nsimeta.length > 0) return;\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestGetDataTableAction });\r\n const url = `api/Nsi/datatable/${table}`;\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n const data = await response.json();\r\n dispatch({ type: receiveGetDataTableAction, data });\r\n },\r\n saveDataTable: (table, dataTable) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestSaveDataTableAction });\r\n let json = JSON.stringify(dataTable);\r\n const url = `api/Nsi/datatable/${table}`;\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n const status = await response.json();\r\n dispatch({ type: receiveSaveDataTableAction, status });\r\n },\r\n searchOrg: (oblKod, orgStr) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n const url = `api/ManageUsers/searchOrg?obl=${oblKod}&strOrg=${orgStr}`;\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n /*const data =*/return await response.json();\r\n },\r\n //let url = `api/SprApi/${ns}`;\r\n searchOrgRaion: (raionKod, orgStr) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n const url = `api/ManageUsers/searchOrgRaion?raion=${raionKod}&strOrg=${orgStr}`;\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n /*const data =*/return await response.json();\r\n },\r\n getOkpolus: (kobl) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n const url = `api/EditOkpoluApi/GetOkpolus?kodObl=${kobl}`;\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n if (response.ok === true) {\r\n return await response.json();\r\n } else {\r\n alert(\"error getOkpolus\");\r\n }\r\n },\r\n updateOkpoluItem: org => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n let json = JSON.stringify(org);\r\n const response = await fetch('api/EditOkpoluApi/UpdateOkpoluItem', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n return await response.json();\r\n } else {\r\n return {isOk: false, error:\"Ошибка при сохранении\"};\r\n }\r\n },\r\n addOkpoluItem: org => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n let json = JSON.stringify(org);\r\n const response = await fetch('api/EditOkpoluApi/AddOkpoluItem', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n return await response.json();\r\n } else {\r\n return { isOk: false, error: \"Ошибка при сохранении\" };\r\n }\r\n },\r\n editNameOkpoluItem: org => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n let json = JSON.stringify(org);\r\n const response = await fetch('api/EditOkpoluApi/EditNameOkpoluItem', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n return await response.json();\r\n } else {\r\n return { isOk: false, error: \"Ошибка при сохранении\" };\r\n }\r\n },\r\n getNaselRaion: (kodRaion) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n //console.info(`call getFullObjTe(${te})`);\r\n const url = `api/SprApi/getNaselRaion?kodRaion=${kodRaion}`;\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n return await response.json();\r\n },\r\n}\r\n\r\nexport const reducer = (state, action) => {\r\n state = state || initialState;\r\n\r\n if (action.type === requestNs) {\r\n let nsstate= {\r\n ...state,\r\n isLoading: true\r\n };\r\n nsstate[action.ns] = [];\r\n return nsstate\r\n }\r\n if (action.type === receiveNs) {\r\n let nsstate = {\r\n ...state,\r\n isLoading: false,\r\n };\r\n nsstate[action.ns] = action.data;\r\n return nsstate\r\n }\r\n\r\n if (action.type === requestChildsOrgsAction) {\r\n let nsstate = {\r\n ...state,\r\n childsOrgs:[],\r\n isLoading: true\r\n };\r\n nsstate[action.ns] = [];\r\n return nsstate\r\n }\r\n if (action.type === receiveChildsOrgsAction) {\r\n return {\r\n ...state,\r\n childsOrgs: action.list,\r\n isLoading: false,\r\n };\r\n }\r\n\r\n if (action.type === requestAddChildOrgAction) {\r\n let nsstate = {\r\n ...state,\r\n updateStatus: undefined,\r\n isLoading: true\r\n };\r\n nsstate[action.ns] = [];\r\n return nsstate\r\n }\r\n if (action.type === receiveAddChildOrgAction) {\r\n return {\r\n ...state,\r\n updateStatus: action.updateStatus,\r\n childsOrgs: action.list,\r\n isLoading: false,\r\n };\r\n }\r\n\r\n if (action.type === requestRemoveChildOrgAction) {\r\n let nsstate = {\r\n ...state,\r\n updateStatus: undefined,\r\n isLoading: true\r\n };\r\n nsstate[action.ns] = [];\r\n return nsstate\r\n }\r\n if (action.type === receiveRemoveChildOrgAction) {\r\n return {\r\n ...state,\r\n updateStatus: action.updateStatus,\r\n childsOrgs: action.list,\r\n isLoading: false,\r\n };\r\n }\r\n\r\n if (action.type === requestNsiMetadataAction) {\r\n return {\r\n ...state,\r\n isLoading: true,\r\n nsimeta: []\r\n };\r\n }\r\n if (action.type === receiveNsiMetadataAction) {\r\n return {\r\n ...state,\r\n isLoading: false,\r\n nsimeta: action.nsimeta,\r\n };\r\n }\r\n\r\n if (action.type === requestGetDataTableAction) {\r\n return {\r\n ...state,\r\n isLoading: true,\r\n dataTable: undefined,\r\n updateStatus: undefined\r\n };\r\n }\r\n if (action.type === receiveGetDataTableAction) {\r\n return {\r\n ...state,\r\n isLoading: false,\r\n dataTable: action.data,\r\n };\r\n }\r\n\r\n if (action.type === requestSaveDataTableAction) {\r\n return {\r\n ...state,\r\n isLoading: true,\r\n updateStatus: undefined,\r\n errors: undefined\r\n };\r\n }\r\n if (action.type === receiveSaveDataTableAction) {\r\n return {\r\n ...state,\r\n isLoading: false,\r\n updateStatus: action.status,\r\n };\r\n }\r\n if (action.type === requestGetOrgsByOblKodName) {\r\n return {\r\n ...state,\r\n isLoading: true,\r\n orgs: [],\r\n errors: undefined\r\n };\r\n }\r\n if (action.type === receiveGetOrgsByOblKodName) {\r\n return {\r\n ...state,\r\n isLoading: false,\r\n orgs: action.listOrgs,\r\n };\r\n }\r\n return state;\r\n}","import { cloneDeep} from 'lodash';\r\nimport { getToken } from './UserInfo';\r\nconst requestPaidDataType = 'REQUEST_PAID_DATA';\r\nconst receivePaidDataType = 'RECEIVE_PAID_DATA';\r\nconst requestGetObjectsDataType = 'REQUEST_GET_OBJECTS_DATA';\r\nconst receiveGetObjectsDataType = 'RECEIVE_GET_OBJECTS_DATA';\r\nconst requestAddDogovorType = 'REQUEST_ADD_DOGOVOR';\r\nconst receiveAddDogovorType = 'RECEIVE_ADD_DOGOVOR';\r\nconst requestUpdateDogovorType = 'REQUEST_UPDATE_DOGOVOR';\r\nconst receiveUpdateDogovorType = 'RECEIVE_UPDATE_DOGOVOR';\r\nconst requestDeleteDogovorType = 'REQUEST_DELETE_DOGOVOR';\r\nconst receiveDeleteDogovorType = 'RECEIVE_DELETE_DOGOVOR';\r\nconst requestAddBillType = 'REQUEST_ADD_BILL';\r\nconst receiveAddBillType = 'RECEIVE_ADD_BILL';\r\nconst requestUpdateBillType = 'REQUEST_UPDATE_BILL';\r\nconst receiveUpdateBillType = 'RECEIVE_UPDATE_BILL';\r\nconst requestDeleteBillType = 'REQUEST_DELETE_BILL';\r\nconst receiveDeleteBillType = 'RECEIVE_DELETE_BILL';\r\nconst requestGetDogovorsType = 'REQUEST_GET_DOGOVORS';\r\nconst receiveGetDogovorsType = 'RECEIVE_GET_DOGOVORS';\r\nconst requestGetReport1Type = 'REQUEST_GET_REPORT1';\r\nconst receiveGetReport1Type = 'RECEIVE_GET_REPORT1';\r\n//const requestSetPaidOrg = 'REQUEST_SET_PAID_ORG';\r\nconst receiveSetPaidOrg = 'RECEIVE_SET_PAID_ORG';\r\nconst receiveSetPaidTer = 'RECEIVE_SET_PAID_TER';\r\nconst receiveSetIsPrivateOrg = 'RECEIVE_SET_IS_PRIVATE_ORG';\r\nconst receiveSetIs50persOrg = 'RECEIVE_SET_IS_50_PER_ORG';\r\nconst receivePaidFormsOrg = 'RECEIVE_PAID_FORMS_ORG';\r\n\r\nconst initialState = { paids: [], isLoading: false, obl_paid: undefined, obj_data: undefined, dogovors: [], rep1data: undefined };\r\n\r\nexport const actionCreators = {\r\n getReport1: year => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestGetReport1Type });\r\n const url = `api/FinPaidApi/report1?year=${year}`;\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n method: 'GET',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n const rep1data = await response.json();\r\n dispatch({ type: receiveGetReport1Type, rep1data });\r\n },\r\n setPaidOrg: (year, org, quarter, ispaid) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n //dispatch({ type: requestSetPaidOrg });\r\n const url = `api/FinPaidApi/setpaidorg?year=${year}&org=${org}&quarter=${quarter}&ispaid=${ispaid}`;\r\n\r\n /*const response =*/ await fetch(url, {\r\n credentials: 'include',\r\n method: 'GET',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n //const paids = await response.json();\r\n\r\n dispatch({ type: receiveSetPaidOrg, objFin: {year, org, quarter, ispaid} });\r\n },\r\n setPaidFormsOrg: (year, org, forms) => (dispatch, getState) => {\r\n dispatch({\r\n type: receivePaidFormsOrg,\r\n objForms: { year, org, forms}\r\n });\r\n }, \r\n setIsPrivateOrg: (org, isPrivate) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n //dispatch({ type: requestSetPaidOrg });\r\n const url = `api/FinPaidApi/setIsPrivateOrg?org=${org}&isPrivate=${isPrivate}`;\r\n\r\n /*const response =*/ await fetch(url, {\r\n credentials: 'include',\r\n method: 'GET',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n //const paids = await response.json();\r\n\r\n dispatch({ type: receiveSetIsPrivateOrg, objFin: { org, isPrivate } });\r\n },\r\n setIs50persOrg: (org, year, is50pers) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n const url = `api/FinPaidApi/setIs50PersOrg?org=${org}&year=${year}&is50pers=${is50pers}`;\r\n await fetch(url, {\r\n credentials: 'include',\r\n method: 'GET',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n dispatch({ type: receiveSetIs50persOrg, objFin: { org, is50pers } });\r\n },\r\n setPaidTer: (year, ter, quarter, ispaid) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n //dispatch({ type: requestSetPaidType });\r\n const url = `api/FinPaidApi/setpaidter?year=${year}&ter=${ter}&quarter=${quarter}&ispaid=${ispaid}`;\r\n\r\n /*const response =*/ await fetch(url, {\r\n credentials: 'include',\r\n method: 'GET',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n //const paids = await response.json();\r\n\r\n dispatch({ type: receiveSetPaidOrg, objFin: { year, org: ter, quarter, ispaid } });\r\n },\r\n\r\n getOrgsPaid: (obl, year) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestPaidDataType });\r\n const url = `api/FinPaidApi/getorgspaid?obl_id=${obl}&year=${year}`;\r\n\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n method: 'GET',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n const paids = await response.json();\r\n\r\n dispatch({ type: receivePaidDataType, obl, paids });\r\n },\r\n getAllObjects: (year) => async (dispatch, getState) => {\r\n //if (getState().finPaidData.obj_data !== undefined) {\r\n // return;\r\n //}\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestGetObjectsDataType});\r\n const url = `api/FinPaidApi/allobjects?year=${year}`;\r\n\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n method: 'GET',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n const obj_data = await response.json();\r\n\r\n dispatch({ type: receiveGetObjectsDataType, obj_data });\r\n },\r\n AddDogovor: (dogovor) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestAddDogovorType });\r\n let json = JSON.stringify(dogovor);\r\n const url = 'api/FinPaidApi/AddDogovor';\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n const status = await response.json();\r\n dispatch({ type: receiveAddDogovorType, status});\r\n },\r\n UpdateDogovor: (dogovor) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestUpdateDogovorType });\r\n let json = JSON.stringify(dogovor);\r\n const url = 'api/FinPaidApi/UpdateDogovor';\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n const status = await response.json();\r\n dispatch({ type: receiveUpdateDogovorType, status });\r\n },\r\n DeleteDogovor: (id) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestDeleteDogovorType });\r\n const url = `api/FinPaidApi/DeleteDogovor?id=${id}`;\r\n\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n method: 'GET',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n const status = await response.json();\r\n dispatch({ type: receiveDeleteDogovorType, status });\r\n },\r\n AddBill: (bill, fnCallback) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestAddBillType });\r\n let json = JSON.stringify(bill);\r\n const url = 'api/FinPaidApi/AddBill';\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n const status = await response.json();\r\n dispatch({ type: receiveAddBillType, status, fnCallback });\r\n },\r\n UpdateBill: (bill, fnCallback) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestUpdateBillType });\r\n let json = JSON.stringify(bill);\r\n const url = 'api/FinPaidApi/UpdateBill';\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n const status = await response.json();\r\n dispatch({ type: receiveUpdateBillType, status, fnCallback });\r\n },\r\n DeleteBill: (id, fnCallback) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestDeleteBillType });\r\n const url = `api/FinPaidApi/DeleteBill?id=${id}`;\r\n\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n method: 'GET',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n const status = await response.json();\r\n dispatch({ type: receiveDeleteBillType, status, fnCallback });\r\n },\r\n getDogovors: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestGetDogovorsType });\r\n const url = `api/FinPaidApi/GetDogovors?typeObj=${params.typeObj}&kodObj=${params.kodObj}`;\r\n\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n method: 'GET',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n const status = await response.json();\r\n dispatch({ type: receiveGetDogovorsType, status });\r\n },\r\n setFormsByOrg: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n let json = JSON.stringify(params);\r\n const url = 'api/FinPaidApi/SetFormsByOrg';\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n return await response.json();\r\n } else {\r\n return { successed: false, error: `Ошибка HTTP: ${response.status}` }\r\n }\r\n },\r\n getFormsByOrg: (kodOrg, year) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n const url = `api/FinPaidApi/GetFormsByOrg?year=${year}&kodOrg=${kodOrg}`;\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n method: 'GET',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n return await response.json();\r\n } else {\r\n return { successed: false, error: `Ошибка HTTP: ${response.status}` }\r\n }\r\n }\r\n};\r\n\r\nexport const reducer = (state, action) => {\r\n state = state || initialState;\r\n\r\n if (action.type === requestPaidDataType) {\r\n return {\r\n ...state,\r\n paids:[],\r\n isLoading: true\r\n };\r\n }\r\n\r\n if (action.type === receivePaidDataType) {\r\n return {\r\n ...state,\r\n obl_paid: action.obl,\r\n paids: action.paids,\r\n isLoading: false\r\n };\r\n }\r\n if (action.type === requestGetObjectsDataType) {\r\n return {\r\n ...state,\r\n isLoading: true\r\n };\r\n }\r\n if (action.type === receiveGetObjectsDataType) {\r\n return {\r\n ...state,\r\n obj_data: action.obj_data,\r\n isLoading: false\r\n };\r\n }\r\n if (action.type === requestAddDogovorType) {\r\n return {\r\n ...state,\r\n isLoading: true\r\n };\r\n }\r\n if (action.type === receiveAddDogovorType) {\r\n if (action.status.successed === true) {\r\n let dogovors = cloneDeep(state.dogovors);//JSON.parse(JSON.stringify(state.dogovors));//Object.assign(state.dogovors);\r\n dogovors.push({ ...action.status.dogovor });\r\n return {\r\n ...state,\r\n isLoading: false,\r\n dogovors\r\n };\r\n } else\r\n return {\r\n ...state,\r\n isLoading: false,\r\n };\r\n }\r\n if (action.type === requestUpdateDogovorType) {\r\n return {\r\n ...state,\r\n isLoading: true\r\n };\r\n }\r\n if (action.type === receiveUpdateDogovorType) {\r\n if (action.status.successed === true) {\r\n let dogovors = cloneDeep(state.dogovors);//JSON.parse(JSON.stringify(state.dogovors));//Object.assign(state.dogovors);\r\n let index = dogovors.map(e => e.id).indexOf(action.status.dogovor.id);\r\n dogovors.splice(index, 1, { ...action.status.dogovor, dt: new Date(action.status.dogovor.dt), srokOt: new Date(action.status.dogovor.srokOt), srokDo: new Date(action.status.dogovor.srokDo)});\r\n return {\r\n ...state,\r\n isLoading: false,\r\n dogovors: dogovors\r\n };\r\n } else\r\n return {\r\n ...state,\r\n isLoading: false,\r\n };\r\n }\r\n if (action.type === requestDeleteDogovorType) {\r\n return {\r\n ...state,\r\n isLoading: true\r\n };\r\n }\r\n if (action.type === receiveDeleteDogovorType) {\r\n if (action.status.successed === true) {\r\n let dogovors = cloneDeep(state.dogovors);//JSON.parse(JSON.stringify(state.dogovors));//Object.assign(state.dogovors);\r\n let ind = dogovors.map(e => e.id).indexOf(action.status.id);\r\n dogovors.splice(ind, 1);\r\n return {\r\n ...state,\r\n isLoading: false,\r\n dogovors: dogovors\r\n };\r\n } else\r\n return {\r\n ...state,\r\n isLoading: false,\r\n };\r\n }\r\n if (action.type === requestAddBillType) {\r\n return {\r\n ...state,\r\n isLoading: true\r\n };\r\n }\r\n if (action.type === receiveAddBillType) {\r\n if (action.status.successed === true) {\r\n let dogovors = cloneDeep(state.dogovors);//JSON.parse(JSON.stringify(state.dogovors));//Object.assign(state.dogovors);\r\n let dog = dogovors.filter(d => d.id === action.status.bill.dogovorId)[0];\r\n dog.bills.push({ ...action.status.bill, dtFrom: new Date(action.status.bill.dtFrom), dtTo: new Date(action.status.bill.dtTo) });\r\n if (action.fnCallback instanceof Function) {\r\n action.fnCallback(dog);\r\n }\r\n return {\r\n ...state,\r\n isLoading: false,\r\n dogovors\r\n };\r\n } else\r\n return {\r\n ...state,\r\n isLoading: false,\r\n };\r\n }\r\n if (action.type === requestUpdateBillType) {\r\n return {\r\n ...state,\r\n isLoading: true\r\n };\r\n }\r\n if (action.type === receiveUpdateBillType) {\r\n if (action.status.successed === true) {\r\n let dogs = cloneDeep(state.dogovors);//JSON.parse(JSON.stringify(state.dogovors));//Object.assign(state.dogovors);\r\n let ind = dogs.map(e => e.id).indexOf(action.status.bill.dogovorId);\r\n let dg = cloneDeep(dogs[ind]);\r\n let indx = dg.bills.map(e => e.id).indexOf(action.status.bill.id);\r\n dg.bills = cloneDeep(dg.bills);\r\n dg.bills.splice(indx, 1, { ...action.status.bill, dtFrom: new Date(action.status.bill.dtFrom), dtTo: new Date(action.status.bill.dtTo) });\r\n dogs.splice(ind, 1, dg);\r\n if (action.fnCallback instanceof Function) {\r\n action.fnCallback(dg);\r\n }\r\n return {\r\n ...state,\r\n isLoading: false,\r\n dogovors: dogs\r\n };\r\n } else\r\n return {\r\n ...state,\r\n isLoading: false,\r\n };\r\n }\r\n if (action.type === requestDeleteBillType) {\r\n return {\r\n ...state,\r\n isLoading: true\r\n };\r\n }\r\n if (action.type === receiveDeleteBillType) {\r\n if (action.status.successed === true) {\r\n let dogovors = cloneDeep(state.dogovors);//JSON.parse(JSON.stringify(state.dogovors));//Object.assign(state.dogovors);\r\n let ind = dogovors.map(e => e.id).indexOf(action.status.dogovorId);\r\n let dg = cloneDeep(dogovors[ind]);\r\n let indx = dg.bills.map(e => e.id).indexOf(action.status.id);\r\n dg.bills = cloneDeep(dg.bills);\r\n dg.bills.splice(indx, 1);\r\n dogovors.splice(ind, 1, dg);\r\n if (action.fnCallback instanceof Function) {\r\n action.fnCallback(dg);\r\n }\r\n return {\r\n ...state,\r\n isLoading: false,\r\n dogovors: dogovors\r\n };\r\n } else\r\n return {\r\n ...state,\r\n isLoading: false,\r\n };\r\n }\r\n if (action.type === requestGetDogovorsType) {\r\n return {\r\n ...state,\r\n dogovors:[],\r\n isLoading: true\r\n };\r\n }\r\n if (action.type === receiveGetDogovorsType) {\r\n if (action.status.successed === true) {\r\n return {\r\n ...state,\r\n isLoading: false,\r\n dogovors: action.status.dogovors.map(it => { return { ...it, dt: new Date(it.dt), srokOt: new Date(it.srokOt), srokDo: new Date(it.srokDo), bills: it.bills.map(b => { return { ...b, dtFrom: new Date(b.dtFrom), dtTo: new Date(b.dtTo) }; }) } })\r\n };\r\n } else\r\n return {\r\n ...state,\r\n isLoading: false,\r\n };\r\n }\r\n if (action.type === requestGetReport1Type) {\r\n return {\r\n ...state,\r\n rep1data: undefined,\r\n isLoading: true\r\n };\r\n }\r\n if (action.type === receiveGetReport1Type) {\r\n return {\r\n ...state,\r\n isLoading: false,\r\n rep1data: action.rep1data\r\n };\r\n }\r\n \r\n if (action.type === receiveSetPaidOrg) {\r\n let paids = cloneDeep(state.paids);\r\n var sel = paids.objsItems.filter(f => f.obj.kod === action.objFin.org)[0];\r\n sel[`quarter${action.objFin.quarter}`] = action.objFin.ispaid;\r\n return {\r\n ...state,\r\n paids\r\n };\r\n }\r\n if (action.type === receivePaidFormsOrg) {\r\n let paids = cloneDeep(state.paids);\r\n var sel = paids.objsItems.filter(f => f.obj.kod === action.objForms.org)[0];\r\n sel.forms = action.objForms.forms.join(',');\r\n return {\r\n ...state,\r\n paids\r\n };\r\n }\r\n if (action.type === receiveSetIsPrivateOrg) {\r\n let paids = cloneDeep(state.paids);\r\n /*let ind = paids.objsItems.map(f => f.obj.kod).indexOf(action.objFin.org);\r\n let sel = cloneDeep(paids.objsItems[ind]);\r\n sel.isPrivateOrg = action.objFin.isPrivate;\r\n paids.objsItems.splice(ind, 1, sel);\r\n */\r\n var sel = paids.objsItems.filter(f => f.obj.kod === action.objFin.org)[0];\r\n sel.obj.isPrivateOrg = action.objFin.isPrivate;\r\n return {\r\n ...state,\r\n paids\r\n };\r\n }\r\n if (action.type === receiveSetIs50persOrg){\r\n let p = cloneDeep(state.paids);\r\n let ind = p.objsItems.map(f => f.obj.kod).indexOf(action.objFin.org);\r\n let sel = cloneDeep(p.objsItems[ind]);\r\n sel.is50pers = action.objFin.is50pers;\r\n if (action.objFin.is50pers === 1) {\r\n sel.quarter1 = true;\r\n sel.quarter2 = true;\r\n }\r\n p.objsItems.splice(ind, 1, sel);\r\n return {\r\n ...state,\r\n paids:p\r\n };\r\n }\r\n if (action.type === receiveSetPaidTer) {\r\n let paids = cloneDeep(status.paids);//paids.objsItems[].obj.kod===\r\n //action.objFin;//objFin: {year, org, quarter, ispaid} }\r\n return {\r\n ...state,\r\n paids\r\n };\r\n }\r\n return state;\r\n};","import { cloneDeep } from 'lodash';\r\nimport { getToken } from './UserInfo';\r\nconst requestGetDataTableAction = 'REQUEST_GET_DATA_TABLE';\r\nconst receiveGetDataTableAction = 'RECEIVE_GET_DATA_TABLE';\r\nconst requestUpdateDataAction = 'REQUEST_UPDATE_DATA_TABLE';\r\nconst receiveUpdateDataAction = 'RECEIVE_UPDATE_DATA_TABLE';\r\nconst requestDeleteAction = 'REQUEST_DELETE_DATA_TABLE';\r\nconst receiveDeleteAction = 'RECEIVE_DELETE_DATA_TABLE';\r\n\r\nconst requestGetInfoDataAction = 'REQUEST_GET_INFO_DATA';\r\nconst receiveGetInfoDataAction = 'RECEIVE_GET_INFO_DATA';\r\nconst requestGetInfoDataFormAction = 'REQUEST_GET_INFO_DATA_FORM';\r\nconst receiveGetInfoDataFormAction = 'RECEIVE_GET_INFO_DATA_FORM';\r\nconst requestGetInfoDataObjAction = 'REQUEST_GET_INFO_DATA_OBJ';\r\nconst receiveGetInfoDataObjAction = 'RECEIVE_GET_INFO_DATA_OBJ';\r\n\r\nconst requestGetStatusInfoDataAction = 'REQUEST_GET_STATUS_INFO_DATA';\r\nconst receiveGetStatusInfoDataAction = 'RECEIVE_GET_STATUS_INFO_DATA';\r\nconst requestUpdateStatusInfoDataAction = 'REQUEST_UPDATE_STATUS_INFO_DATA';\r\nconst receiveUpdateStatusInfoDataAction = 'RECEIVE_UPDATE_STATUS_INFO_DATA';\r\n\r\nconst requestGetStatusInfoDataRkAction = 'REQUEST_GET_STATUS_INFO_DATA_RK';\r\nconst receiveGetStatusInfoDataRkAction = 'RECEIVE_GET_STATUS_INFO_DATA_RK';\r\nconst requestUpdateStatusInfoDataRkAction = 'REQUEST_UPDATE_STATUS_INFO_DATA_RK';\r\nconst receiveUpdateStatusInfoDataRkAction = 'RECEIVE_UPDATE_STATUS_INFO_DATA_RK';\r\n\r\nconst requestGetStatusInfoDataTablesRkAction = 'REQUEST_GET_STATUS_INFO_DATA_TABLES_RK';\r\nconst receiveGetStatusInfoDataTablesRkAction = 'RECEIVE_GET_STATUS_INFO_DATA_TABLES_RK';\r\nconst requestUpdateStatusInfoDataTablesRkAction = 'REQUEST_UPDATE_STATUS_INFO_TABLES_DATA_RK';\r\nconst receiveUpdateStatusInfoDataTablesRkAction = 'RECEIVE_UPDATE_STATUS_INFO_TABLES_DATA_RK';\r\n\r\nconst requestGetStatusInfoDataTablesOblAction = 'REQUEST_GET_STATUS_INFO_DATA_TABLES_OBL';\r\nconst receiveGetStatusInfoDataTablesOblAction = 'RECEIVE_GET_STATUS_INFO_DATA_TABLES_OBL';\r\nconst requestUpdateStatusInfoDataTablesOblAction = 'REQUEST_UPDATE_STATUS_INFO_TABLES_DATA_OBL';\r\nconst receiveUpdateStatusInfoDataTablesOblAction = 'RECEIVE_UPDATE_STATUS_INFO_TABLES_DATA_OBL';\r\n\r\nconst requestDeleteFormAllTablesAction = 'REQUEST_DELETE_FORM_ALL_TABLES';\r\nconst receiveDeleteFormAllTablesAction = 'RECEIVE_DELETE_FORM_ALL_TABLES';\r\n\r\nconst requestGetReport1RCRZType = 'REQUEST_GET_REPORT1_RCRZ';\r\nconst receiveGetReport1RCRZType = 'RECEIVE_GET_REPORT1_RCRZ';\r\n\r\nconst initialState = {\r\n isLoading: false,\r\n data: undefined,\r\n dataInfo: undefined,\r\n dataInfoForm: undefined,\r\n dataInfoObj: undefined,\r\n statusInfo: undefined,\r\n statusInfoRk: undefined,\r\n statusInfoTablesRk: undefined,\r\n statusInfoTablesObl: undefined,\r\n statusUpdate: undefined,\r\n statusDelete: undefined,\r\n rep1data: undefined,\r\n rep1AllOrgs:0\r\n}\r\n\r\n\r\nexport const actionCreators = {\r\n isExistsForm: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n let json = JSON.stringify(params);\r\n const response = await fetch(\"api/DataApi/IsExistsForm\", {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n let ret = await response.json();\r\n return ret;\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n return null;\r\n }\r\n },\r\n getReport1: year => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestGetReport1RCRZType });\r\n const url = `api/DataApi/report1?year=${year}`;\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n method: 'GET',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n const rep1data = await response.json();\r\n dispatch({ type: receiveGetReport1RCRZType, rep1data });\r\n },\r\n updateStatusInfoData: params => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestUpdateStatusInfoDataAction });\r\n let json = JSON.stringify(params);\r\n const response = await fetch('api/DataApi/UpdateStatusInfoData', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveUpdateStatusInfoDataAction, data });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n getStatusInfoData: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestGetStatusInfoDataAction });\r\n let json = JSON.stringify(params);\r\n const response = await fetch('api/DataApi/GetStatusInfoData', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveGetStatusInfoDataAction, data });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n updateStatusInfoDataRk: params => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestUpdateStatusInfoDataRkAction });\r\n let json = JSON.stringify(params);\r\n const response = await fetch('api/DataApi/UpdateStatusInfoDataRk', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveUpdateStatusInfoDataRkAction, data });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n getStatusInfoDataRk: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestGetStatusInfoDataRkAction });\r\n let json = JSON.stringify(params);\r\n const response = await fetch('api/DataApi/GetStatusInfoDataRk', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveGetStatusInfoDataRkAction, data });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n\r\n updateStatusInfoDataTablesRk: params => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestUpdateStatusInfoDataTablesRkAction });\r\n let json = JSON.stringify(params);\r\n const response = await fetch('api/DataApi/UpdateStatusInfoDataTablesRk', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveUpdateStatusInfoDataTablesRkAction, data });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n getStatusInfoDataTablesRk: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestGetStatusInfoDataTablesRkAction });\r\n let json = JSON.stringify(params);\r\n const response = await fetch('api/DataApi/GetStatusInfoDataTablesRk', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveGetStatusInfoDataTablesRkAction, data });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n\r\n updateStatusInfoDataTablesObl: params => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestUpdateStatusInfoDataTablesOblAction });\r\n let json = JSON.stringify(params);\r\n const response = await fetch('api/DataApi/UpdateStatusInfoDataTables', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveUpdateStatusInfoDataTablesOblAction, data });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n getStatusInfoDataTablesObl: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestGetStatusInfoDataTablesOblAction });\r\n let json = JSON.stringify(params);\r\n const response = await fetch('api/DataApi/GetStatusInfoDataTables', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveGetStatusInfoDataTablesOblAction, data });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n\r\n\r\n getInfoData: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestGetInfoDataAction });\r\n let json = JSON.stringify(params);\r\n const response = await fetch('api/DataApi/GetInfoData', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveGetInfoDataAction, data });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n getInfoDataForm: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestGetInfoDataFormAction });\r\n let json = JSON.stringify(params);\r\n const response = await fetch('api/DataApi/GetInfoDataForm', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveGetInfoDataFormAction, data });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n getInfoDataObj: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestGetInfoDataObjAction });\r\n let json = JSON.stringify(params);\r\n const response = await fetch('api/DataApi/GetInfoDataObj', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveGetInfoDataObjAction, data });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n\r\n getData: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestGetDataTableAction });\r\n let json = JSON.stringify(params);\r\n const response = await fetch('api/DataApi/GetForm', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveGetDataTableAction, data });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n getIsAvariableDelete: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n let json = JSON.stringify(params);\r\n const response = await fetch('api/DataApi/GetIsAvariableDelete', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n //dispatch({ type: receiveGetDataTableAction, data });\r\n return data.isAvariableDelete;\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n return false;\r\n }\r\n },\r\n updateData: (dataTable) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestUpdateDataAction });\r\n let rows = dataTable.rows.map(r => {\r\n let values = r.values.map(v => { return { Vl: v.vl, OriginalVl: v.originalVl, Kgr: v.kgr, Str: v.str }; });\r\n return { Kstr: r.kstr, Values: values };\r\n });\r\n let data = {\r\n Rows: rows,\r\n Year: dataTable.year,\r\n Raz: dataTable.raz,\r\n Period: dataTable.period,\r\n Tobj: dataTable.tobj,\r\n Kobj: dataTable.kobj,\r\n Kf: dataTable.kf,\r\n Kt: dataTable.kt };\r\n let json = JSON.stringify(data);\r\n const response = await fetch('api/DataApi/UpdateForm', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const status = await response.json();\r\n dispatch({ type: receiveUpdateDataAction, status, dataTable });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n deleteData: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestDeleteAction });\r\n let json = JSON.stringify(params);\r\n const response = await fetch('api/DataApi/DeleteForm', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const status = await response.json();\r\n dispatch({ type: receiveDeleteAction, status });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n deleteForm: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestDeleteFormAllTablesAction });\r\n let json = JSON.stringify(params);\r\n const response = await fetch('api/DataApi/DeleteFormAllTables', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const status = await response.json();\r\n dispatch({ type: receiveDeleteFormAllTablesAction, status });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n loadAccesRazdOrgParam: korg => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n const url = `api/DataApi/loadAccesRazdOrgParam?korg=${korg}`;\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n method: 'GET',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n if (response.ok) {\r\n return await response.json();\r\n } else {\r\n return { successed: false, message: response.statusText};\r\n }\r\n },\r\n saveAccesRazdOrgParam: params => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n let json = JSON.stringify(params);\r\n //const url = \"api/DataApi/saveAccesRazdOrgParam`;\r\n const response = await fetch(\"api/DataApi/SaveAccesRazdOrgParam\", {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) {\r\n return await response.json();\r\n } else {\r\n return { successed: false, message: response.statusText };\r\n }\r\n },\r\n getAccesRazdFromYear: (korg, year)=> async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n const url = `api/DataApi/getAccesRazdFromYear?korg=${korg}&year=${year}`;\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n method: 'GET',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n if (response.ok) {\r\n return await response.json();\r\n } else {\r\n return { successed: false, message: response.statusText };\r\n }\r\n },\r\n}\r\nexport const reducer = (state, action) => {\r\n state = state || initialState;\r\n //get data\r\n if (action.type === requestGetDataTableAction) {\r\n return {\r\n ...state,\r\n isLoading: true,\r\n data: undefined,\r\n statusUpdate: undefined,\r\n statusDelete: undefined\r\n };\r\n }\r\n if (action.type === receiveGetDataTableAction) {\r\n return {\r\n ...state,\r\n isLoading: false,\r\n data: action.data,\r\n controlResult: undefined\r\n };\r\n }\r\n //get info data\r\n if (action.type === requestGetInfoDataAction) {\r\n return {\r\n ...state,\r\n isLoading: true,\r\n dataInfo: undefined,\r\n };\r\n }\r\n if (action.type === receiveGetInfoDataAction) {\r\n return {\r\n ...state,\r\n isLoading: false,\r\n dataInfo: action.data,\r\n };\r\n }\r\n //get info data form\r\n if (action.type === requestGetInfoDataFormAction) {\r\n return {\r\n ...state,\r\n isLoading: true,\r\n dataInfoForm: undefined,\r\n };\r\n }\r\n if (action.type === receiveGetInfoDataFormAction) {\r\n return {\r\n ...state,\r\n isLoading: false,\r\n dataInfoForm: action.data,\r\n };\r\n }\r\n //get info data obj\r\n if (action.type === requestGetInfoDataObjAction) {\r\n return {\r\n ...state,\r\n isLoading: true,\r\n dataInfoObj: undefined,\r\n };\r\n }\r\n if (action.type === receiveGetInfoDataObjAction) {\r\n return {\r\n ...state,\r\n isLoading: false,\r\n dataInfoObj: action.data,\r\n };\r\n }\r\n //get status info data\r\n if (action.type === requestGetStatusInfoDataAction) {\r\n return {\r\n ...state,\r\n isLoading: true,\r\n statusInfo: undefined,\r\n };\r\n }\r\n if (action.type === receiveGetStatusInfoDataAction) {\r\n return {\r\n ...state,\r\n isLoading: false,\r\n statusInfo: action.data,\r\n };\r\n }\r\n //get status info data Rk\r\n if (action.type === requestGetStatusInfoDataRkAction) {\r\n return {\r\n ...state,\r\n isLoading: true,\r\n statusInfoRk: undefined,\r\n };\r\n }\r\n if (action.type === receiveGetStatusInfoDataRkAction) {\r\n return {\r\n ...state,\r\n isLoading: false,\r\n statusInfoRk: action.data,\r\n };\r\n }\r\n //update data\r\n if (action.type === requestUpdateDataAction) {\r\n return {\r\n ...state,\r\n isLoading: true,\r\n statusUpdate: undefined,\r\n statusDelete: undefined\r\n };\r\n }\r\n if (action.type === receiveUpdateDataAction) {\r\n return {\r\n ...state,\r\n isLoading: false,\r\n statusUpdate: action.status,\r\n data: action.status.successed === true ? Object.assign(action.dataTable) : state.data,\r\n controlResult: undefined,\r\n };\r\n }\r\n //delete data\r\n if (action.type === requestDeleteAction) {\r\n return {\r\n ...state,\r\n isLoading: true,\r\n statusUpdate: undefined,\r\n statusDelete: undefined\r\n };\r\n }\r\n if (action.type === receiveDeleteAction) {\r\n if (action.status.successed === true)\r\n return {\r\n ...state,\r\n isLoading: false,\r\n data: undefined,\r\n statusDelete: action.status,\r\n };\r\n else\r\n return {\r\n ...state,\r\n isLoading: false,\r\n statusDelete: action.status,\r\n };\r\n }\r\n //delete all tables data\r\n if (action.type === requestDeleteFormAllTablesAction) {\r\n return {\r\n ...state,\r\n isLoading: true,\r\n statusUpdate: undefined,\r\n statusDelete: undefined\r\n };\r\n }\r\n if (action.type === receiveDeleteFormAllTablesAction) {\r\n if (action.status.successed === true)\r\n return {\r\n ...state,\r\n isLoading: false,\r\n data: undefined,\r\n statusDelete: action.status,\r\n };\r\n else\r\n return {\r\n ...state,\r\n isLoading: false,\r\n statusDelete: action.status,\r\n };\r\n }\r\n if (action.type === requestGetReport1RCRZType) {\r\n return {\r\n ...state,\r\n rep1data: undefined,\r\n rep1AllOrgs: 0,\r\n isLoading: true\r\n };\r\n }\r\n if (action.type === receiveGetReport1RCRZType) {\r\n return {\r\n ...state,\r\n isLoading: false,\r\n rep1data: action.rep1data,\r\n rep1AllOrgs: action.rep1data.allOrgs,\r\n };\r\n }\r\n //update status info data\r\n if (action.type === requestUpdateStatusInfoDataAction) {\r\n return {\r\n ...state,\r\n isLoading: true,\r\n };\r\n }\r\n if (action.type === receiveUpdateStatusInfoDataAction) {\r\n let statusInfo = cloneDeep(state.statusInfo);\r\n statusInfo.rows.filter(f => f.kod === action.data.kod)[0].status.filter(s => s.kf === action.data.kf)[0].status=action.data.status;\r\n return {\r\n ...state,\r\n isLoading: false,\r\n statusInfo\r\n };\r\n }\r\n //update status info data Rk\r\n if (action.type === requestUpdateStatusInfoDataRkAction) {\r\n return {\r\n ...state,\r\n isLoading: true\r\n };\r\n }\r\n if (action.type === receiveUpdateStatusInfoDataRkAction) {\r\n let statusInfoRk = cloneDeep(state.statusInfoRk);\r\n statusInfoRk.rows.filter(f => f.kod === action.data.kod)[0].status.filter(s => s.kf === action.data.kf)[0].status = action.data.status;\r\n return {\r\n ...state,\r\n isLoading: false,\r\n statusInfoRk\r\n };\r\n }\r\n //get status info data tables Rk\r\n if (action.type === requestGetStatusInfoDataTablesRkAction) {\r\n return {\r\n ...state,\r\n isLoading: true,\r\n statusInfoTablesRk: undefined,\r\n };\r\n }\r\n if (action.type === receiveGetStatusInfoDataTablesRkAction) {\r\n return {\r\n ...state,\r\n isLoading: false,\r\n statusInfoTablesRk: action.data,\r\n };\r\n }\r\n //update status info data tables Rk\r\n if (action.type === requestUpdateStatusInfoDataTablesRkAction) {\r\n return {\r\n ...state,\r\n isLoading: true,\r\n };\r\n }\r\n if (action.type === receiveUpdateStatusInfoDataTablesRkAction) {\r\n let statusInfoTablesRk = cloneDeep(state.statusInfoTablesRk);\r\n statusInfoTablesRk.rows.filter(f => f.kod === action.data.kod)[0].status.filter(s => s.kf === action.data.kt)[0].status = action.data.status;\r\n return {\r\n ...state,\r\n isLoading: false,\r\n statusInfoTablesRk\r\n };\r\n }\r\n //get status info data tables Obl\r\n if (action.type === requestGetStatusInfoDataTablesOblAction) {\r\n return {\r\n ...state,\r\n isLoading: true,\r\n statusInfoTablesObl: undefined,\r\n };\r\n }\r\n if (action.type === receiveGetStatusInfoDataTablesOblAction) {\r\n return {\r\n ...state,\r\n isLoading: false,\r\n statusInfoTablesObl: action.data,\r\n };\r\n }\r\n //update status info data tables Obl\r\n if (action.type === requestUpdateStatusInfoDataTablesOblAction) {\r\n return {\r\n ...state,\r\n isLoading: true,\r\n };\r\n }\r\n if (action.type === receiveUpdateStatusInfoDataTablesOblAction) {\r\n let statusInfoTablesObl = cloneDeep(state.statusInfoTablesObl);\r\n statusInfoTablesObl.rows.filter(f => f.kod === action.data.kod)[0].status.filter(s => s.kf === action.data.kt)[0].status = action.data.status;\r\n return {\r\n ...state,\r\n isLoading: false,\r\n statusInfoTablesObl\r\n };\r\n }\r\n return state;\r\n}\r\n","import { getToken } from './UserInfo';\r\nconst requestGetDataTablePstrAction = 'REQUEST_GET_DATA_TABLE_PSTR';\r\nconst receiveGetDataTablePstrAction = 'RECEIVE_GET_DATA_TABLE_PSTR';\r\nconst requestUpdateDataPstrAction = 'REQUEST_UPDATE_DATA_TABLE_PSTR';\r\nconst receiveUpdateDataPstrAction = 'RECEIVE_UPDATE_DATA_TABLE_PSTR';\r\n\r\nconst initialState = {\r\n isLoading: false,\r\n data: undefined,\r\n statusUpdate: undefined,\r\n}\r\nexport const actionCreators = {\r\n getData: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestGetDataTablePstrAction });\r\n let json = JSON.stringify(params);\r\n const response = await fetch('api/DataApiPstr/GetForm', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveGetDataTablePstrAction, data });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n getDataF12: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestGetDataTablePstrAction });\r\n let json = JSON.stringify(params);\r\n const response = await fetch('api/DataApiPstr/GetFormF12', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveGetDataTablePstrAction, data });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n updateData: (dataTable) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestUpdateDataPstrAction });\r\n let rows = dataTable.rows.map(r => {\r\n let values = r.values.map(v => { return { Vl: v.vl, OriginalVl: v.originalVl, Kgr: v.kgr, Str: v.str }; });\r\n return { Kstr: r.kstr, Values: values };\r\n });\r\n let data = {\r\n Rows: rows,\r\n Year: dataTable.year,\r\n Raz: dataTable.raz,\r\n Period: dataTable.period,\r\n Tobj: dataTable.tobj,\r\n Kobj: dataTable.kobj,\r\n Kf: dataTable.kf,\r\n Kt: dataTable.kt\r\n };\r\n let json = JSON.stringify(data);\r\n const response = await fetch('api/DataApiPstr/UpdateForm', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const status = await response.json();\r\n dispatch({ type: receiveUpdateDataPstrAction, status, dataTable });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n }\r\n}\r\nexport const reducer = (state, action) => {\r\n state = state || initialState;\r\n //get data\r\n if (action.type === requestGetDataTablePstrAction) {\r\n return {\r\n ...state,\r\n isLoading: true,\r\n data: undefined,\r\n statusUpdate: undefined\r\n };\r\n }\r\n if (action.type === receiveGetDataTablePstrAction) {\r\n return {\r\n ...state,\r\n isLoading: false,\r\n data: action.data\r\n };\r\n }\r\n //update data\r\n if (action.type === requestUpdateDataPstrAction) {\r\n return {\r\n ...state,\r\n isLoading: true,\r\n statusUpdate: undefined,\r\n };\r\n }\r\n if (action.type === receiveUpdateDataPstrAction) {\r\n return {\r\n ...state,\r\n isLoading: false,\r\n statusUpdate: action.status,\r\n data: action.status.successed === true ? Object.assign(action.dataTable) : state.data,\r\n };\r\n }\r\n return state;\r\n}\r\n","import { getToken } from './UserInfo';\r\nconst requestSvodFormAction = 'REQUEST_SVOD_FORM';\r\nconst receiveSvodFormAction = 'RECEIVE_SVOD_FORM';\r\nconst requestSvodFormRazAction = 'REQUEST_SVOD_FORM_RAZ';\r\nconst receiveSvodFormRazAction = 'RECEIVE_SVOD_FORM_RAZ';\r\nconst requestIsExistSvodFormRazAction = 'REQUEST_IS_EXIST_SVOD_FORM_RAZ';\r\nconst receiveIsExistSvodFormRazAction = 'RECEIVE_IS_EXIST_SVOD_FORM_RAZ';\r\nconst requestSvodSubFormAction = 'REQUEST_SVOD_SUB_FORM';\r\nconst receiveSvodSubFormAction = 'RECEIVE_SVOD_SUB_FORM';\r\nconst requestCopyData12MonthToYear = 'REQUEST_CopyData12MonthToYear';\r\nconst receiveCopyData12MonthToYear = 'RECEIVE_CopyData12MonthToYear';\r\nconst requestLoadListOrgData = 'REQUEST_LoadListOrgData';\r\nconst receiveLoadListOrgData = 'RECEIVE_LoadListOrgData';\r\n\r\nconst requestSetIsLoading = 'REQUEST_SetIsLoading';\r\n\r\nconst initialState = {\r\n isLoading: false,\r\n statusSvod: undefined,\r\n}\r\n\r\nexport const actionCreators = {\r\n copyData12MonthToYear: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestCopyData12MonthToYear });\r\n let json = JSON.stringify(params);\r\n const response = await fetch('api/DataApi/CopyData12MonthToYear', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveCopyData12MonthToYear, status: data });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n svodForm: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestSvodFormAction });\r\n let json = JSON.stringify(params);\r\n const response = await fetch('api/DataApi/SvodForm', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveSvodFormAction, status: data });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n svodSubForm: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestSvodSubFormAction });\r\n let json = JSON.stringify(params);\r\n const response = await fetch('api/DataApi/SvodSubForm', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveSvodSubFormAction, status: data });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n svodSubOblForm: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n let json = JSON.stringify(params);\r\n const response = await fetch('api/DataApi/svodSubOblForm', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n return await response.json();\r\n } else {\r\n return { successed: false, error: `Ошибка HTTP: ${response.status}` };\r\n }\r\n },\r\n isExistSvodRaz: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestIsExistSvodFormRazAction });\r\n let json = JSON.stringify(params);\r\n const response = await fetch('api/DataApi/IsExistSvodFormRaz', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveIsExistSvodFormRazAction, status: data });\r\n return data;\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n return false;\r\n }\r\n },\r\n isExistDataPeriod: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n let json = JSON.stringify(params);\r\n const response = await fetch('api/DataApi/IsExistDataPeriod', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n return data;\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n return false;\r\n }\r\n },\r\n svodFormRaz: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestSvodFormRazAction });\r\n let json = JSON.stringify(params);\r\n const response = await fetch('api/DataApi/SvodFormRaz', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveSvodFormRazAction, status: data });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n editFormPeriod: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n let json = JSON.stringify(params);\r\n const response = await fetch('api/DataApi/EditFormPeriod', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n return await response.json();\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n isExistSvodOrgRaz: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestIsExistSvodFormRazAction });\r\n let json = JSON.stringify(params);\r\n const response = await fetch('api/DataApi/IsExistSvodFormOrgRaz', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveIsExistSvodFormRazAction, status: data });\r\n return data;\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n return false;\r\n }\r\n },\r\n svodFormOrgRaz: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestSvodFormRazAction });\r\n let json = JSON.stringify(params);\r\n const response = await fetch('api/DataApi/SvodFormOrgRaz', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveSvodFormRazAction, status: data });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n svodFormOrgRaz2: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestSvodFormRazAction });\r\n let json = JSON.stringify(params);\r\n const response = await fetch('api/DataApi/SvodFormOrgRaz2', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveSvodFormRazAction, status: data });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n svodFormOrgRaz3: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestSvodFormRazAction });\r\n let json = JSON.stringify(params);\r\n const response = await fetch('api/DataApi/SvodFormOrgRaz3', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveSvodFormRazAction, status: data });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n loadListOrgData: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestLoadListOrgData });\r\n let json = JSON.stringify(params);\r\n const response = await fetch('api/DataApi/ListOrgData', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveLoadListOrgData });\r\n return data;\r\n } else {\r\n dispatch({ type: receiveLoadListOrgData });\r\n //alert(\"Ошибка HTTP: \" + response.status);\r\n return { successed: false, error: `Ошибка HTTP: ${response.status}`};\r\n }\r\n },\r\n loadHeadOrgs: () => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n const response = await fetch('api/DataApi/LoadHeadOrgs', {\r\n credentials: 'include',\r\n method: 'GET',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n return {successed: true, data }\r\n } else {\r\n return { successed: false, error: `Ошибка HTTP: ${response.status}` };\r\n }\r\n },\r\n setIsLoading: (flag) => (dispatch) => {\r\n dispatch({ type: requestSetIsLoading, flag });\r\n },\r\n svodFormQuarts: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n let json = JSON.stringify(params);\r\n const response = await fetch('api/DataApi/SvodFormQuarts', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n return await response.json();\r\n } else {\r\n return { successed: false, error:`Ошибка HTTP: ${response.status}`}\r\n }\r\n },\r\n existsSvodFormMonths: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n let json = JSON.stringify(params);\r\n const response = await fetch('api/DataApi/ExistsSvodFormMonths', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n return await response.json();\r\n } else {\r\n return { successed: false, error: `Ошибка HTTP: ${response.status}` }\r\n }\r\n },\r\n existsSvodFormMonths2: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n let json = JSON.stringify(params);\r\n const response = await fetch('api/DataApi/ExistsSvodFormMonths2', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n return await response.json();\r\n } else {\r\n return { successed: false, error: `Ошибка HTTP: ${response.status}` }\r\n }\r\n }\r\n}\r\nexport const reducer = (state, action) => {\r\n state = state || initialState;\r\n //copy data\r\n if (action.type === requestCopyData12MonthToYear) {\r\n return {\r\n ...state,\r\n isLoading: true,\r\n statusSvod: undefined,\r\n };\r\n }\r\n if (action.type === receiveCopyData12MonthToYear) {\r\n return {\r\n ...state,\r\n isLoading: false,\r\n statusSvod: action.status,\r\n };\r\n }\r\n //svod form\r\n if (action.type === requestSvodFormAction) {\r\n return {\r\n ...state,\r\n isLoading: true,\r\n statusSvod: undefined,\r\n };\r\n }\r\n if (action.type === receiveSvodFormAction) {\r\n return {\r\n ...state,\r\n isLoading: false,\r\n statusSvod: action.status,\r\n };\r\n }\r\n if (action.type === requestSvodSubFormAction) {\r\n return {\r\n ...state,\r\n isLoading: true,\r\n statusSvod: undefined,\r\n };\r\n }\r\n if (action.type === receiveSvodSubFormAction) {\r\n return {\r\n ...state,\r\n isLoading: false,\r\n statusSvod: action.status,\r\n };\r\n }\r\n //svod form raz\r\n if (action.type === requestSvodFormRazAction) {\r\n return {\r\n ...state,\r\n isLoading: true,\r\n statusSvod: undefined,\r\n };\r\n }\r\n if (action.type === receiveSvodFormRazAction) {\r\n return {\r\n ...state,\r\n isLoading: false,\r\n statusSvod: action.status,\r\n };\r\n }\r\n if (action.type === requestIsExistSvodFormRazAction) {\r\n return {\r\n ...state,\r\n isLoading: true,\r\n statusSvod: undefined,\r\n };\r\n }\r\n if (action.type === receiveIsExistSvodFormRazAction) {\r\n return {\r\n ...state,\r\n isLoading: false,\r\n statusSvod: action.status,\r\n };\r\n }\r\n if (action.type === requestLoadListOrgData) {\r\n return {\r\n ...state,\r\n isLoading: true\r\n };\r\n }\r\n if (action.type === receiveLoadListOrgData) {\r\n return {\r\n ...state,\r\n isLoading: false\r\n };\r\n }\r\n if (action.type === requestSetIsLoading) {\r\n return {\r\n ...state,\r\n isLoading: action.flag\r\n };\r\n }\r\n return state;\r\n}\r\n\r\n","import { getToken } from './UserInfo';\r\nconst requestControlAction = 'REQUEST_CONTROL_DATA';\r\nconst receiveControlAction = 'RECEIVE_CONTROL_DATA';\r\n\r\nconst initialState = { isLoading: false, controlResult: undefined }\r\n\r\nexport const actionCreators = {\r\n controlForm: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestControlAction });\r\n let json = JSON.stringify(params);\r\n const response = await fetch('api/ControlApi/ControlForm', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveControlAction, data });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n }\r\n}\r\nexport const reducer = (state, action) => {\r\n state = state || initialState;\r\n if (action.type === requestControlAction) {\r\n return {\r\n ...state,\r\n isLoading: true,\r\n controlResult: undefined,\r\n };\r\n }\r\n if (action.type === receiveControlAction) {\r\n return {\r\n ...state,\r\n isLoading: false,\r\n controlResult: action.data,\r\n };\r\n }\r\n return state;\r\n};","const incrementCountType = 'INCREMENT_COUNT';\r\nconst decrementCountType = 'DECREMENT_COUNT';\r\nconst initialState = { count: 0 };\r\n\r\nexport const actionCreators = {\r\n increment: () => ({ type: incrementCountType }),\r\n decrement: () => ({ type: decrementCountType })\r\n};\r\n\r\nexport const reducer = (state, action) => {\r\n state = state || initialState;\r\n\r\n if (action.type === incrementCountType) {\r\n return { ...state, count: state.count + 1 };\r\n }\r\n\r\n if (action.type === decrementCountType) {\r\n return { ...state, count: state.count - 1 };\r\n }\r\n\r\n return state;\r\n};\r\n","import { getToken } from './UserInfo';\r\nconst requestGetClosingDataAction = 'REQUEST_GET_CLOSING_DATA';\r\nconst receiveGetClosingDataAction = 'RECEIVE_GET_CLOSING_DATA';\r\nconst requestSetClosingDataAction = 'REQUEST_SET_CLOSING_DATA';\r\nconst receiveSetClosingDataAction = 'RECEIVE_SET_CLOSING_DATA';\r\nconst initialState = {\r\n isLoading: false,\r\n dataClosing: undefined,\r\n statusUpdate: undefined\r\n}\r\nexport const actionCreators = {\r\n getCloseOrg: (korg) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n const response = await fetch(`api/ClosingPeriodApi/GetClosingOrg?korg=${korg}`, {\r\n credentials: 'include',\r\n method: 'GET',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n let ret = await response.json();\r\n return ret;\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n return null;\r\n }\r\n },\r\n saveCloseOrg: (korg, yearClose, yearCloseMonth, monthClose) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestSetClosingDataAction });\r\n let json = JSON.stringify({ Korg: korg, YearClose: parseInt(yearClose, 10), YearCloseMonth: parseInt(yearCloseMonth, 10), MonthClose: parseInt(monthClose,10)});\r\n const response = await fetch('api/ClosingPeriodApi/SetClosingOrg', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если \r\n let ret = await response.json();\r\n return ret;\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n return null;\r\n }\r\n },\r\n getClosingData: () => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestGetClosingDataAction });\r\n const response = await fetch('api/ClosingPeriodApi/GetClosingData', {\r\n credentials: 'include',\r\n method: 'GET',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveGetClosingDataAction, data });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n setClosingData: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestSetClosingDataAction });\r\n let json = JSON.stringify(params);\r\n const response = await fetch('api/ClosingPeriodApi/SetClosingData', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const status = await response.json();\r\n dispatch({ type: receiveSetClosingDataAction, status});\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n }\r\n}\r\nexport const reducer = (state, action) => {\r\n state = state || initialState;\r\n //get data closing\r\n if (action.type === requestGetClosingDataAction) {\r\n return {\r\n ...state,\r\n isLoading: true,\r\n dataClosing: undefined,\r\n };\r\n }\r\n if (action.type === receiveGetClosingDataAction) {\r\n return {\r\n ...state,\r\n isLoading: false,\r\n dataClosing: action.data,\r\n };\r\n }\r\n //set data closing\r\n if (action.type === requestSetClosingDataAction) {\r\n return {\r\n ...state,\r\n isLoading: true,\r\n statusUpdate: undefined,\r\n };\r\n }\r\n if (action.type === receiveSetClosingDataAction) {\r\n return {\r\n ...state,\r\n isLoading: false,\r\n statusUpdate: action.status\r\n };\r\n }\r\n return state;\r\n}","import { cloneDeep } from 'lodash';\r\nimport { getToken } from '../UserInfo';\r\nconst requestMedinfoGetTablesPagesAction = 'REQUEST_MEDINFO_GET_TABLES_PAGES';\r\nconst receiveMedinfoGetTablesPagesAction = 'RECEIVE_MEDINFO_GET_TABLES_PAGES';\r\nconst requestMedinfoGetTablesPagesDrAction = 'REQUEST_MEDINFO_GET_TABLES_PAGES_DR';\r\nconst receiveMedinfoGetTablesPagesDrAction = 'RECEIVE_MEDINFO_GET_TABLES_PAGES_DR';\r\nconst requestMedinfoGetFormulsAction = 'REQUEST_MEDINFO_GET_FORMULS';\r\nconst receiveMedinfoGetFormulsAction = 'RECEIVE_MEDINFO_GET_FORMULS';\r\nconst requestMedinfoGetFormulYearsAction = 'REQUEST_MEDINFO_GET_FORMUL_YEARS';\r\nconst receiveMedinfoGetFormulYearsAction = 'RECEIVE_MEDINFO_GET_FORMUL_YEARS';\r\nconst requestMedinfoUploadTemplateAction = 'REQUEST_MEDINFO_UPLOAD_TEMPLATE_YEARS';\r\nconst receiveMedinfoUploadTemplateAction = 'RECEIVE_MEDINFO_UPLOAD_TEMPLATE_YEARS';\r\nconst requestMedinfoUploadTemplateOneYearAction = 'REQUEST_MEDINFO_UPLOAD_TEMPLATE_ONE_YEAR';\r\nconst receiveMedinfoUploadTemplateOneYearAction = 'RECEIVE_MEDINFO_UPLOAD_TEMPLATE_ONE_YEAR';\r\nconst requestUpdatePageInfoAction = 'REQUEST_MEDINFO_UPDATE_TABLE_INFO';\r\nconst receiveUpdatePageInfoAction = 'RECEIVE_MEDINFO_UPDATE_TABLE_INFO';\r\nconst requestUpdateFormulAction = 'REQUEST_MEDINFO_UPDATE_FORMUL';\r\nconst receiveUpdateFormulAction = 'RECEIVE_MEDINFO_UPDATE_FORMUL';\r\nconst requestCopyOrInsertFormulYearAction = 'REQUEST_MEDINFO_COPY_OR_INSERT_FORMUL_YEAR';\r\nconst receiveCopyOrInsertFormulYearAction = 'RECEIVE_MEDINFO_COPY_OR_INSERT_FORMUL_YEAR';\r\nconst requestUpdateFormulYearAction = 'REQUEST_MEDINFO_UPDATE_FORMUL_YEAR';\r\nconst receiveUpdateFormulYearAction = 'RECEIVE_MEDINFO_UPDATE_FORMUL_YEAR';\r\nconst requestGetBokMkbAction = 'REQUEST_MEDINFO_GET_BOKMKB';\r\nconst receiveGetBokMkbAction = 'RECEIVE_MEDINFO_GET_BOKMKB';\r\nconst requestUpdateFieldBokMkbAction = 'REQUEST_MEDINFO_UPDATE_FIELD_BOKMKB';\r\nconst receiveUpdateFieldBokMkbAction = 'RECEIVE_MEDINFO_UPDATE_FIELD_BOKMKB';\r\nconst requestGetBokDrAction = 'REQUEST_MEDINFO_GET_BOKDR';\r\nconst receiveGetBokDrAction = 'RECEIVE_MEDINFO_GET_BOKDR';\r\nconst requestUpdateFieldBokDrAction = 'REQUEST_MEDINFO_UPDATE_FIELD_BOKDR';\r\nconst receiveUpdateFieldBokDrAction = 'RECEIVE_MEDINFO_UPDATE_FIELD_BOKDR';\r\nconst requestGetPartsAction = 'REQUEST_MEDINFO_PARTS';\r\nconst receiveGetPartsAction = 'RECEIVE_MEDINFO_PARTS';\r\nconst requestUpdatePartAction = 'REQUEST_MEDINFO_UPDATE_PART';\r\nconst receiveUpdatePartAction = 'RECEIVE_MEDINFO_UPDATE_PART';\r\nconst requestGetPagesOfPartAction = 'REQUEST_MEDINFO_GET_PAGES_OF_PART';\r\nconst receiveGetPagesOfPartAction = 'RECEIVE_MEDINFO_GET_PAGES_OF_PART';\r\n\r\n\r\nconst initialState = {\r\n isLoading: false,\r\n type_page:1,\r\n tablesPages: undefined,\r\n formuls: undefined,\r\n formulYears: undefined,\r\n error: undefined,\r\n bokMkb: undefined,\r\n bokDr: undefined,\r\n parts: [],\r\n partPages: undefined\r\n}\r\nexport const actionCreators = {\r\n getDataOrgsByObl: (param) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n let json = JSON.stringify(param);\r\n const response = await fetch(\"api/MedinfoApi/GetDataOrgsByObl\", {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n return await response.json();\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n getPagesOfPart: (partId) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestGetPagesOfPartAction, partId });\r\n //const response = await fetch(`api/MedinfoApi/GetTablesPages?type_page=${type_page}`, {\r\n const response = await fetch(`api/MedinfoApi/GetPagesOfPart?partId=${partId}`, {\r\n credentials: 'include',\r\n method: 'GET',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveGetPagesOfPartAction, data });\r\n return data;\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n getParts: () => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestGetPartsAction });\r\n const response = await fetch(\"api/MedinfoApi/GetParts\", {\r\n credentials: 'include',\r\n method: 'GET',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveGetPartsAction, data });\r\n return data.parts;\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n updatePart: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestUpdatePartAction });\r\n let json = JSON.stringify(params);\r\n const response = await fetch('api/MedinfoApi/UpdatePart', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveUpdatePartAction, status: data });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n DownloadTemplate: (pageId) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n const response = await fetch(`api/MedinfoApi/DownloadTemplate/${pageId}`, {\r\n credentials: 'include',\r\n method: 'GET',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n return await response.blob();\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n return null;\r\n },\r\n UploadTemplate: (formData, pageId) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestMedinfoUploadTemplateAction});\r\n const response = await fetch(`api/MedinfoApi/UploadTemplate?pageId=${pageId}`, {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`,\r\n // \"Content-Type\": \"multipart/form-data\"\r\n },\r\n body: formData\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveMedinfoUploadTemplateAction, data });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n DownloadTemplateOneYear: (pageId) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n const response = await fetch(`api/MedinfoApi/DownloadTemplateOneYear/${pageId}`, {\r\n credentials: 'include',\r\n method: 'GET',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n return await response.blob();\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n return null;\r\n },\r\n UploadTemplateOneYear: (formData, pageId) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestMedinfoUploadTemplateOneYearAction });\r\n const response = await fetch(`api/MedinfoApi/UploadTemplateOneYear?pageId=${pageId}`, {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`,\r\n // \"Content-Type\": \"multipart/form-data\"\r\n },\r\n body: formData\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveMedinfoUploadTemplateOneYearAction, data });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n getTablesPages: (type_page) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestMedinfoGetTablesPagesAction, type_page });\r\n const response = await fetch(`api/MedinfoApi/GetTablesPages?type_page=${type_page}`, {\r\n credentials: 'include',\r\n method: 'GET',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveMedinfoGetTablesPagesAction, data });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n getTablesPagesOnlyBokDr: () => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestMedinfoGetTablesPagesDrAction, type_page:2 });\r\n const response = await fetch(\"api/MedinfoApi/GetTablesPagesOnlyBokDr\", {\r\n credentials: 'include',\r\n method: 'GET',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveMedinfoGetTablesPagesDrAction, data });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n getFormuls: (pageId) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestMedinfoGetFormulsAction });\r\n const response = await fetch(`api/MedinfoApi/GetFormuls?pageId=${pageId}`, {\r\n credentials: 'include',\r\n method: 'GET',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveMedinfoGetFormulsAction, data });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n getFormulYears: (formulId) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestMedinfoGetFormulYearsAction });\r\n const response = await fetch(`api/MedinfoApi/GetFormulYears?formulId=${formulId}`, {\r\n credentials: 'include',\r\n method: 'GET',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveMedinfoGetFormulYearsAction, data });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n updatePageInfo: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestUpdatePageInfoAction });\r\n let json = JSON.stringify(params);\r\n const response = await fetch('api/MedinfoApi/UpdatePageInfo', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveUpdatePageInfoAction, status: data });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n updateFormul: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestUpdateFormulAction });\r\n let json = JSON.stringify(params/*{\r\n PageId: params.pageId,\r\n FormulId: params.formulId,\r\n Npp: params.npp,\r\n NumberAfterPoint: params.numberAfterPoint,\r\n NameRu: params.nameRu,\r\n NameKz: params.nameKz\r\n }*/);\r\n const response = await fetch('api/MedinfoApi/UpdateFormul', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveUpdateFormulAction, status: data });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n copyOrInsertFormulYear: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestCopyOrInsertFormulYearAction });\r\n let json = JSON.stringify(params);\r\n const response = await fetch('api/MedinfoApi/CopyOrInsertFormulYear', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveCopyOrInsertFormulYearAction, status: data });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n updateFormulYear: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestUpdateFormulYearAction });\r\n let json = JSON.stringify(params);\r\n const response = await fetch('api/MedinfoApi/UpdateFormulYear', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveUpdateFormulYearAction, status: data });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n getBokMkb: () => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestGetBokMkbAction});\r\n const response = await fetch(\"api/MedinfoApi/GetBokMkb\", {\r\n credentials: 'include',\r\n method: 'GET',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveGetBokMkbAction, data });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n updateFieldBokMkb: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestUpdateFieldBokMkbAction });\r\n let json = JSON.stringify(params);\r\n const response = await fetch('api/MedinfoApi/UpdateFieldBokMkb', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveUpdateFieldBokMkbAction, status: data });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n getBokDr: (idPage) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestGetBokDrAction });\r\n const response = await fetch(`api/MedinfoApi/GetBokDr?idPage=${idPage}`, {\r\n credentials: 'include',\r\n method: 'GET',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveGetBokDrAction, data });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n updateFieldBokDr: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestUpdateFieldBokDrAction });\r\n let json = JSON.stringify(params);\r\n const response = await fetch('api/MedinfoApi/UpdateFieldBokDr', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveUpdateFieldBokDrAction, status: data });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n}\r\nexport const reducer = (state, action) => {\r\n state = state || initialState;\r\n //get pages of part\r\n if (action.type === requestGetPagesOfPartAction) {\r\n return {\r\n ...state,\r\n error: undefined,\r\n isLoading: true,\r\n partPages: undefined\r\n };\r\n }\r\n if (action.type === receiveGetPagesOfPartAction) {\r\n return {\r\n ...state,\r\n isLoading: false,\r\n partPages: action.data\r\n };\r\n }\r\n //get parts\r\n if (action.type === requestGetPartsAction) {\r\n return {\r\n ...state,\r\n error: undefined,\r\n isLoading: true,\r\n parts: undefined\r\n };\r\n }\r\n if (action.type === receiveGetPartsAction) {\r\n return {\r\n ...state,\r\n isLoading: false,\r\n parts: action.data.parts\r\n };\r\n }\r\n //update part\r\n if (action.type === requestUpdatePartAction) {\r\n return {\r\n ...state,\r\n error: undefined,\r\n isLoading: true,\r\n };\r\n }\r\n if (action.type === receiveUpdatePartAction) {\r\n if (action.status.error == null) {\r\n let parts = cloneDeep(state.parts);\r\n let index = parts.map(e => e.tableId).indexOf(action.status.part.partId);\r\n parts.splice(index, 1, cloneDeep(action.status.part));\r\n return {\r\n ...state,\r\n parts,\r\n isLoading: false\r\n };\r\n } else {\r\n return {\r\n ...state,\r\n error: action.status.error,\r\n isLoading: false\r\n };\r\n }\r\n\r\n }\r\n //get tables pages\r\n if (action.type === requestMedinfoGetTablesPagesAction) {\r\n return {\r\n ...state,\r\n error: undefined,\r\n isLoading: true,\r\n type_page: action.type_page,\r\n tablesPages: undefined,\r\n formuls: undefined,\r\n formulYears: undefined\r\n };\r\n }\r\n if (action.type === receiveMedinfoGetTablesPagesAction) {\r\n return {\r\n ...state,\r\n isLoading: false,\r\n tablesPages: action.data\r\n };\r\n }\r\n //get tables pages dr\r\n if (action.type === requestMedinfoGetTablesPagesDrAction) {\r\n return {\r\n ...state,\r\n error: undefined,\r\n isLoading: true,\r\n type_page: action.type_page,\r\n tablesPages: undefined,\r\n formuls: undefined,\r\n formulYears: undefined\r\n };\r\n }\r\n if (action.type === receiveMedinfoGetTablesPagesDrAction) {\r\n return {\r\n ...state,\r\n isLoading: false,\r\n tablesPages: action.data\r\n };\r\n }\r\n //get formuls\r\n if (action.type === requestMedinfoGetFormulsAction) {\r\n return {\r\n ...state,\r\n error: undefined,\r\n isLoading: true,\r\n formuls: undefined,\r\n formulYears: undefined\r\n };\r\n }\r\n if (action.type === receiveMedinfoGetFormulsAction) {\r\n return {\r\n ...state,\r\n isLoading: false,\r\n formuls: action.data,\r\n };\r\n }\r\n //get years formul\r\n if (action.type === requestMedinfoGetFormulYearsAction) {\r\n return {\r\n ...state,\r\n error: undefined,\r\n isLoading: true,\r\n formulYears: undefined,\r\n };\r\n }\r\n if (action.type === receiveMedinfoGetFormulYearsAction) {\r\n return {\r\n ...state,\r\n isLoading: false,\r\n formulYears: action.data,\r\n };\r\n }\r\n //upload template\r\n if (action.type === requestMedinfoUploadTemplateAction) {\r\n return {\r\n ...state,\r\n error: undefined,\r\n isLoading: true,\r\n };\r\n }\r\n if (action.type === receiveMedinfoUploadTemplateAction) {\r\n let tablesPages = cloneDeep(state.tablesPages);\r\n let index = tablesPages.tables.map(e => e.tableId).indexOf(action.data.tableId);\r\n let index2 = tablesPages.tables[index].pages.map(m => m.pageId).indexOf(action.data.pageId);\r\n let page = cloneDeep(tablesPages.tables[index].pages[index2]);\r\n page.fileTemplate = action.data.templateTitle;\r\n tablesPages.tables[index].pages.splice(index2, 1, page);\r\n return {\r\n ...state,\r\n tablesPages,\r\n isLoading: false,\r\n };\r\n }\r\n //upload template one year\r\n if (action.type === requestMedinfoUploadTemplateOneYearAction) {\r\n return {\r\n ...state,\r\n error: undefined,\r\n isLoading: true,\r\n };\r\n }\r\n if (action.type === receiveMedinfoUploadTemplateOneYearAction) {\r\n let tablesPages = cloneDeep(state.tablesPages);\r\n let index = tablesPages.tables.map(e => e.tableId).indexOf(action.data.tableId);\r\n let index2 = tablesPages.tables[index].pages.map(m => m.pageId).indexOf(action.data.pageId);\r\n let page = cloneDeep(tablesPages.tables[index].pages[index2]);\r\n page.fileTemplateOneYear = action.data.templateTitle;\r\n tablesPages.tables[index].pages.splice(index2, 1, page);\r\n return {\r\n ...state,\r\n tablesPages,\r\n isLoading: false,\r\n };\r\n }\r\n //update page info\r\n if (action.type === requestUpdatePageInfoAction) {\r\n return {\r\n ...state,\r\n error: undefined,\r\n isLoading: true,\r\n };\r\n }\r\n if (action.type === receiveUpdatePageInfoAction) {\r\n if (action.status.error == null) {\r\n /*let tablesPages = cloneDeep(state.tablesPages);\r\n let index = tablesPages.tables.map(e => e.tableId).indexOf(action.status.page.tableId);\r\n let index2 = tablesPages.tables[index].pages.map(m => m.pageId).indexOf(action.status.page.pageId);\r\n tablesPages.tables[index].pages.splice(index2, 1, action.status.page);\r\n */\r\n let tablesPages = cloneDeep(state.tablesPages);\r\n let index = tablesPages.tables.map(e => e.tableId).indexOf(action.status.page.tableId);\r\n let index2 = tablesPages.tables[index].pages.map(m => m.pageId).indexOf(action.status.page.pageId);\r\n tablesPages.tables[index].pages.splice(index2, 1, cloneDeep(action.status.page));\r\n return {\r\n ...state,\r\n tablesPages,\r\n isLoading: false\r\n };\r\n } else {\r\n return {\r\n ...state,\r\n error: action.status.error,\r\n isLoading: false\r\n };\r\n }\r\n \r\n }\r\n //update formul\r\n if (action.type === requestUpdateFormulAction) {\r\n return {\r\n ...state,\r\n error: undefined,\r\n isLoading: true,\r\n };\r\n }\r\n if (action.type === receiveUpdateFormulAction) {\r\n if (action.status.error == null) {\r\n let formuls = cloneDeep(state.formuls);\r\n let index = formuls.formuls.map(e => e.formulId).indexOf(action.status.formul.formulId);\r\n formuls.formuls.splice(index, 1, action.status.formul);\r\n return {\r\n ...state,\r\n formuls,\r\n isLoading: false\r\n };\r\n } else {\r\n return {\r\n ...state,\r\n error: action.status.error,\r\n isLoading: false\r\n };\r\n }\r\n }\r\n //insert or copy formul year\r\n if (action.type === requestCopyOrInsertFormulYearAction) {\r\n return {\r\n ...state,\r\n error: undefined,\r\n isLoading: true,\r\n };\r\n }\r\n if (action.type === receiveCopyOrInsertFormulYearAction) {\r\n if (action.status.error == null) {\r\n let formulYears = cloneDeep(state.formulYears);\r\n let index = formulYears.years.map(e => e.yearFormulId).indexOf(action.status.formulYear.yearFormulId);\r\n if (index === -1) {\r\n formulYears.years.push(action.status.formulYear);\r\n formulYears.years.sort((a, b) => (a.year > b.year) ? 1 : ((b.year > a.year) ? -1 : 0));\r\n }\r\n return {\r\n ...state,\r\n formulYears,\r\n isLoading: false\r\n };\r\n } else {\r\n return {\r\n ...state,\r\n error: action.status.error,\r\n isLoading: false\r\n };\r\n }\r\n\r\n }\r\n //update formul year\r\n if (action.type === requestUpdateFormulYearAction) {\r\n return {\r\n ...state,\r\n error: undefined,\r\n isLoading: true,\r\n };\r\n }\r\n if (action.type === receiveUpdateFormulYearAction) {\r\n if (action.status.error == null) {\r\n let formulYears = cloneDeep(state.formulYears);\r\n let index = formulYears.years.map(e => e.yearFormulId).indexOf(action.status.formulYear.yearFormulId);\r\n formulYears.years.splice(index, 1, action.status.formulYear);\r\n return {\r\n ...state,\r\n formulYears,\r\n isLoading: false\r\n };\r\n } else {\r\n return {\r\n ...state,\r\n error: action.status.error,\r\n isLoading: false\r\n };\r\n }\r\n }\r\n //get bokMkb\r\n if (action.type === requestGetBokMkbAction) {\r\n return {\r\n ...state,\r\n error: undefined,\r\n isLoading: true,\r\n bokMkb: undefined,\r\n };\r\n }\r\n if (action.type === receiveGetBokMkbAction) {\r\n return {\r\n ...state,\r\n isLoading: false,\r\n bokMkb: action.data,\r\n };\r\n }\r\n //update field bokMkb\r\n if (action.type === requestUpdateFieldBokMkbAction) {\r\n return {\r\n ...state,\r\n error: undefined,\r\n isLoading: true,\r\n };\r\n }\r\n if (action.type === receiveUpdateFieldBokMkbAction) {\r\n if (action.status.error == null) {\r\n let bokMkb = cloneDeep(state.bokMkb);\r\n let index = bokMkb.map(e => e.bokMkbId).indexOf(action.status.bokMkb.bokMkbId);\r\n bokMkb.splice(index, 1, action.status.bokMkb);\r\n return {\r\n ...state,\r\n isLoading: false,\r\n bokMkb\r\n };\r\n } else {\r\n return {\r\n ...state,\r\n error: action.status.error,\r\n isLoading: false\r\n };\r\n }\r\n }\r\n //get bokDr\r\n if (action.type === requestGetBokDrAction) {\r\n return {\r\n ...state,\r\n error: undefined,\r\n isLoading: true,\r\n bokDr: undefined,\r\n };\r\n }\r\n if (action.type === receiveGetBokDrAction) {\r\n return {\r\n ...state,\r\n isLoading: false,\r\n bokDr: action.data,\r\n };\r\n }\r\n //update field bokDr\r\n if (action.type === requestUpdateFieldBokDrAction) {\r\n return {\r\n ...state,\r\n error: undefined,\r\n isLoading: true,\r\n };\r\n }\r\n if (action.type === receiveUpdateFieldBokDrAction) {\r\n if (action.status.error == null) {\r\n let bokDr = cloneDeep(state.bokDr);\r\n let index = bokDr.map(e => e.bokMkbId).indexOf(action.status.bokMkb.bokMkbId);\r\n bokDr.splice(index, 1, action.status.bokMkb);\r\n return {\r\n ...state,\r\n isLoading: false,\r\n bokDr\r\n };\r\n } else {\r\n return {\r\n ...state,\r\n error: action.status.error,\r\n isLoading: false\r\n };\r\n }\r\n }\r\n return state;\r\n}","import { cloneDeep } from 'lodash';\r\nimport { getToken } from './UserInfo';\r\nconst requestGen47FormAction = 'REQUEST_GEN47_FORM';\r\nconst receiveGen47FormAction = 'RECEIVE_GEN47_FORM';\r\nconst requestOrgsParamAction = 'REQUEST_ORGS_PARAM';\r\nconst receiveOrgsParamAction = 'RECEIVE_ORGS_PARAM';\r\nconst requestGen47UpdateOrgAction = 'REQUEST_GEN47_UPDATE_ORG';\r\nconst receiveGen47UpdateOrgAction = 'RECEIVE_GEN47_UPDATE_ORG';\r\n\r\nconst initialState = {\r\n isLoading: false,\r\n orgsParam: undefined,\r\n statusGen47: undefined,\r\n}\r\n\r\nexport const actionCreators = {\r\n gen47Form: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestGen47FormAction });\r\n let json = JSON.stringify(params);\r\n const response = await fetch('api/Gen47Api/Gen47Form', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveGen47FormAction, status: data });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n loadParamOrgsByObl: (kobl) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestOrgsParamAction });\r\n const response = await fetch(`api/Gen47Api/LoadOrgsParam/${kobl}`, {\r\n credentials: 'include',\r\n method: 'GET',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveOrgsParamAction, data });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n },\r\n updateOrg: (orgParam) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestGen47UpdateOrgAction });\r\n let json = JSON.stringify(orgParam);\r\n const response = await fetch('api/Gen47Api/UpdateOrg', {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const data = await response.json();\r\n dispatch({ type: receiveGen47UpdateOrgAction, status: data });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n } \r\n}\r\nexport const reducer = (state, action) => {\r\n state = state || initialState;\r\n //generate 47\r\n if (action.type === requestGen47FormAction) {\r\n return {\r\n ...state,\r\n isLoading: true,\r\n statusGen47: undefined,\r\n };\r\n }\r\n if (action.type === receiveGen47FormAction) {\r\n return {\r\n ...state,\r\n isLoading: false,\r\n statusGen47: action.status,\r\n };\r\n }\r\n //orgs params\r\n if (action.type === requestOrgsParamAction) {\r\n return {\r\n ...state,\r\n isLoading: true,\r\n orgsParam: undefined,\r\n statusGen47: undefined,\r\n };\r\n }\r\n if (action.type === receiveOrgsParamAction) {\r\n return {\r\n ...state,\r\n isLoading: false,\r\n statusGen47: { successed: action.data.successed, error: action.data.error},\r\n orgsParam: action.data.rows\r\n };\r\n }\r\n //update org\r\n if (action.type === requestGen47UpdateOrgAction) {\r\n return {\r\n ...state,\r\n isLoading: true,\r\n statusGen47: undefined,\r\n };\r\n }\r\n if (action.type === receiveGen47UpdateOrgAction) {\r\n if (action.status.error == null) {\r\n let orgsParam = cloneDeep(state.orgsParam);\r\n let index = orgsParam.map(e => e.kod).indexOf(action.status.orgParam.kod);\r\n orgsParam.splice(index, 1, action.status.orgParam);\r\n return {\r\n ...state,\r\n isLoading: false,\r\n orgsParam,\r\n statusGen47: action.status,\r\n };\r\n } else {\r\n return {\r\n ...state,\r\n isLoading: false,\r\n statusGen47: action.status,\r\n };\r\n }\r\n }\r\n return state;\r\n}\r\n\r\n","import { getToken } from './UserInfo';\r\nconst requestLoadLog = 'REQUEST_LOAD_LOG';\r\nconst receiveLoadLog = 'RECEIVE_LOAD_LOG';\r\n\r\nconst initialState = { isLoading: false }\r\n\r\nexport const actionCreators = {\r\n getLog: (params) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestLoadLog });\r\n let json = JSON.stringify(params);\r\n const url = \"api/LogApi/LoadLog\";\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body: json\r\n });\r\n const listLog = await response.json();\r\n dispatch({ type: receiveLoadLog });\r\n return listLog;\r\n },\r\n}\r\nexport const reducer = (state, action) => {\r\n state = state || initialState;\r\n\r\n if (action.type === requestLoadLog) {\r\n return {\r\n ...state,\r\n isLoading: true\r\n };\r\n }\r\n if (action.type === receiveLoadLog) {\r\n return {\r\n ...state,\r\n isLoading: false,\r\n };\r\n }\r\n return state;\r\n}","//import { cloneDeep } from 'lodash';\r\nimport { getToken } from '../UserInfo';\r\nconst requestUploadTemplateAction = 'REQUEST_MEDSTAT_UPLOAD_TEMPLATE';\r\nconst receiveUploadTemplateAction = 'RECEIVE_MEDSTAT_UPLOAD_TEMPLATE';\r\nconst requestDownloadTemplateAction = 'REQUEST_MEDSTAT_DOWNLOAD_TEMPLATE';\r\nconst receiveDownloadTemplateAction = 'RECEIVE_MEDSTAT_DOWNLOAD_TEMPLATE';\r\nconst requestLoadTemplatesAction = 'REQUEST_MEDSTAT_LOAD_TEMPLATES';\r\nconst receiveLoadTemplatesAction = 'RECEIVE_MEDSTAT_LOAD_TEMPLATES';\r\n\r\n\r\nconst initialState = { isLoading: false }\r\n\r\nexport const actionCreators = {\r\n UploadTemplate: (formData, year, kf, lang) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestUploadTemplateAction });\r\n const response = await fetch(`api/MedstatTemplates/UploadTemplate?year=${year}&kf=${kf}&lang=${lang}`, {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`,\r\n // \"Content-Type\": \"multipart/form-data\"\r\n },\r\n body: formData\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n dispatch({ type: receiveUploadTemplateAction });\r\n return await response.json();\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n return null;\r\n },\r\n UploadTemplateTable: (formData, year, kf, ktab, lang) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestUploadTemplateAction });\r\n const response = await fetch(`api/MedstatTemplates/UploadTemplateTable?year=${year}&kf=${kf}&ktab=${ktab}&lang=${lang}`, {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`,\r\n // \"Content-Type\": \"multipart/form-data\"\r\n },\r\n body: formData\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n dispatch({ type: receiveUploadTemplateAction });\r\n return await response.json();\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n return null;\r\n },\r\n DownloadTemplate: (year, kf, lang) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestDownloadTemplateAction });\r\n const response = await fetch(`api/MedstatTemplates/DownloadTemplate/${year}/${kf}/${lang}`, {\r\n credentials: 'include',\r\n method: 'GET',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n dispatch({ type: receiveDownloadTemplateAction });\r\n return await response.blob();\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n return null;\r\n },\r\n DownloadTemplateTable: (year, kf, ktab, lang) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestDownloadTemplateAction });\r\n const response = await fetch(`api/MedstatTemplates/DownloadTemplateTable/${year}/${kf}/${ktab}/${lang}`, {\r\n credentials: 'include',\r\n method: 'GET',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n dispatch({ type: receiveDownloadTemplateAction });\r\n return await response.blob();\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n return null;\r\n },\r\n LoadTemplates: (year, kf) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestLoadTemplatesAction });\r\n const response = await fetch(`api/MedstatTemplates/LoadTemplates/${year}/${kf}`, {\r\n credentials: 'include',\r\n method: 'GET',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n dispatch({ type: receiveLoadTemplatesAction });\r\n return await response.json();\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n return null;\r\n },\r\n LoadTablesMonthsTemplates: (year, kf, ktab) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestLoadTemplatesAction });\r\n const response = await fetch(`api/MedstatTemplates/LoadTablesTemplates/${year}/${kf}/${ktab}`, {\r\n credentials: 'include',\r\n method: 'GET',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n dispatch({ type: receiveLoadTemplatesAction });\r\n return await response.json();\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n return null;\r\n },\r\n ChangeFld: (year, kf, ktab, fld, vl) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestLoadTemplatesAction });\r\n let body = JSON.stringify({ year, kf, ktab, fld, vl});\r\n const response = await fetch(\"api/MedstatTemplates/ChangeFldTables\", {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n dispatch({ type: receiveLoadTemplatesAction });\r\n return await response.json();\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n return null;\r\n },\r\n changeFormulExcel: (year, kf, ktab, cell, formul, isNew) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestLoadTemplatesAction });\r\n let body = JSON.stringify({ year, kf, ktab, cell, formul, isNew });\r\n const response = await fetch(\"api/MedstatTemplates/ChangeFormulExcel\", {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n dispatch({ type: receiveLoadTemplatesAction });\r\n return await response.json();\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n return null;\r\n },\r\n deleteFormulExcel: (year, kf, ktab, cell) => async (dispatch, getState) => {\r\n var token = await getToken(dispatch, getState().userInfo);\r\n if (token === undefined) return;\r\n dispatch({ type: requestLoadTemplatesAction });\r\n let body = JSON.stringify({ year, kf, ktab, cell});\r\n const response = await fetch(\"api/MedstatTemplates/DeleteFormulExcel\", {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${token}`\r\n },\r\n body\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n dispatch({ type: receiveLoadTemplatesAction });\r\n return await response.json();\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n return null;\r\n }\r\n}\r\nexport const reducer = (state, action) => {\r\n state = state || initialState;\r\n if (action.type === requestLoadTemplatesAction || action.type === requestDownloadTemplateAction || action.type === requestUploadTemplateAction) {\r\n return {\r\n ...state,\r\n isLoading: true,\r\n };\r\n }\r\n if (action.type === receiveLoadTemplatesAction || action.type === receiveDownloadTemplateAction || action.type === receiveUploadTemplateAction) {\r\n return {\r\n isLoading: false,\r\n };\r\n }\r\n return state;\r\n}","const requestRegisterType = 'REQUEST_REGISTER';\r\nconst receiveRegisterType = 'RECEIVE_REGISTER';\r\nconst initialState = { result: undefined, isLoading: false };\r\n\r\nexport const actionCreators = {\r\n register: (data) => async (dispatch) => {\r\n dispatch({ type: requestRegisterType });\r\n let json = JSON.stringify(data);\r\n const url = 'api/Users/Register';\r\n const response = await fetch(url, {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json'\r\n },\r\n body: json\r\n });\r\n const status = await response.json();\r\n dispatch({ type: receiveRegisterType, status });\r\n },\r\n};\r\n\r\nexport const reducer = (state, action) => {\r\n state = state || initialState;\r\n\r\n if (action.type === requestRegisterType) {\r\n return {\r\n ...state,\r\n result: undefined,\r\n isLoading: true\r\n };\r\n }\r\n\r\n if (action.type === receiveRegisterType) {\r\n return {\r\n ...state,\r\n result: action.status,\r\n isLoading: false\r\n };\r\n }\r\n\r\n return state;\r\n};\r\n","const requestWeatherForecastsType = 'REQUEST_WEATHER_FORECASTS';\r\nconst receiveWeatherForecastsType = 'RECEIVE_WEATHER_FORECASTS';\r\nconst initialState = { forecasts: [], isLoading: false };\r\n\r\nexport const actionCreators = {\r\n requestWeatherForecasts: startDateIndex => async (dispatch, getState) => { \r\n if (startDateIndex === getState().weatherForecasts.startDateIndex) {\r\n // Don't issue a duplicate request (we already have or are loading the requested data)\r\n return;\r\n }\r\n\r\n dispatch({ type: requestWeatherForecastsType, startDateIndex });\r\n\r\n const url = `api/SampleData/WeatherForecasts?startDateIndex=${startDateIndex}`;\r\n const response = await fetch(url);\r\n const forecasts = await response.json();\r\n\r\n dispatch({ type: receiveWeatherForecastsType, startDateIndex, forecasts });\r\n }\r\n};\r\n\r\nexport const reducer = (state, action) => {\r\n state = state || initialState;\r\n\r\n if (action.type === requestWeatherForecastsType) {\r\n return {\r\n ...state,\r\n startDateIndex: action.startDateIndex,\r\n isLoading: true\r\n };\r\n }\r\n\r\n if (action.type === receiveWeatherForecastsType) {\r\n return {\r\n ...state,\r\n startDateIndex: action.startDateIndex,\r\n forecasts: action.forecasts,\r\n isLoading: false\r\n };\r\n }\r\n\r\n return state;\r\n};\r\n","export const translationsObject = {\r\n ru: {\r\n application: {\r\n title: 'Awesome app with i18n!',\r\n hello: 'Hello, %{name}!'\r\n },\r\n warningPaidDays0: \"Истекает срок лицензионного договора. Сегодня последний день. Обратитесь в ТОО \\\"Мединформ\\\": разработчик 8(727) 241-12-16, фин.отдел 8(727) 241-13-07\",\r\n warningPaidDays: \"Истекает срок лицензионного договора. У вас доступ к программе будет еще %{days} дней. Обратитесь в ТОО \\\"Мединформ\\\": разработчик 8(727) 241-12-16, фин.отдел 8(727) 241-13-07\",\r\n date: {\r\n short: 'D.MM.YYYY',\r\n shorttime: 'D.MM.YYYY h:mm',\r\n long: 'D MMMM YYYY',\r\n longtime: 'D MMMM YYYY h:mm'\r\n },\r\n msgButtons: {\r\n OK: \"OK\",\r\n Yes: \"Да\",\r\n No: \"Нет\",\r\n Retry: \"Повтор\",\r\n Cancel: \"Отмена\",\r\n Request: \"Заявка на открепления карты\",\r\n Submit: \"Сохранить изменения\",\r\n Save: \"Сохранить\",\r\n Change: \"Изменить\",\r\n Load: \"Загрузить\"\r\n },\r\n lang: 'Язык',\r\n hello: 'Здравствуйте %{fio}',\r\n policy: \"Политика конфиденциальности и обработки персональных данных\",\r\n year3: \"за %{year} год\",\r\n yearMonth: \"за %{month} %{year} года\",\r\n home: 'Медстат, Мединфо',\r\n nameRu: 'Наименование (рус)',\r\n nameKz: 'Наименование (каз)',\r\n shortNameRu: 'Короткое наименование (рус)',\r\n shortNameKz: 'Короткое наименование (каз)',\r\n notinclude: \"Исключить\",\r\n orgIsNomenkl: \"Организации с номенклатурой\",\r\n deleteForm: \"Удаление форм\",\r\n rk: \"Республика казахстан\",\r\n blockRk: \"Данные формы заблокированны на уровне РК\",\r\n blockTableRk: \"Данные таблицы заблокированны на уровне РК\",\r\n blockTableObl: \"Данные таблицы заблокированны на уровне области\",\r\n btDeleteForm: \"Удалить форму\",\r\n deleteComplete: \"Форма удалена\",\r\n deleteYesOrNo: \"Вы действительно хотите удалить данные формы?\",\r\n indicatorsMap: {\r\n title: \"Индикаторы на карте\",\r\n run: \"Сформировать\"\r\n },\r\n genMedinfo: {\r\n yearsError1: 'Неправильное выражение',\r\n yearsError2: 'Количество годов больше 10',\r\n yearsError3: 'Год не должен быть меньше %{year}',\r\n yearsError4: 'Год не должен быть больше %{year}',\r\n forOrg: 'Выводить в разрезе организаций',\r\n },\r\n kod: \"Код\",\r\n nameOrgBr: \"Наименование организации\",\r\n login: {\r\n enter: 'Выполнить вход',\r\n comment1: 'Программа доступна, для пользователей, имеющих лицензионное соглашение',\r\n comment2: 'Если вы не являетесь авторизованным пользователем, отключитесь от системы.',\r\n comment3: 'Для заключения договора пакет документов скачать',\r\n comment4: 'здесь',\r\n licenseUrl: 'license',\r\n password: 'Пароль',\r\n username: 'Логин',\r\n passReq: 'Пароль обязательно',\r\n usrReq: 'Имя пользователя обязательно',\r\n userNamePassInvalid: 'Неправильное имя пользователя и пароль!',\r\n notPaid: 'Ваша организация не оплатила за использование программы',\r\n text1: 'Информационная система «МЕДСТАТ»',\r\n text2: 'Система формирования официальных статистических отчетных форм по деятельности медицинских организаций.',\r\n text3: 'Сравнительный анализ данных внутри самой статистической формы (внутриформенный контроль).',\r\n text4: 'Сопоставлять данные между разными формами (межформенный контроль).',\r\n text5: 'Сопоставлять данные между текущим и и предыдущим календарным годом (межгодовой контроль).',\r\n text6: 'Информационная система «МЕДИНФО»',\r\n text7: 'Система предназначена для сравнения и анализа медико-статистических показателей за различные периоды в виде таблиц, диаграмм и на карте в разрезе областей, районов и медицинских организаций.',\r\n text8: 'Показатели подразделяются на государственные, частные и ведомственные, также в разрезах городского и сельского здравоохранения.',\r\n text9: 'Система предназначена для организаторов здравоохранения и специалистов медицинских организаций.',\r\n appStore: \"Загрузить в App Store\",\r\n googlePlay: \"Скачать из Google Play\",\r\n mobileApp:\"Мобильное приложение \\\"Medinfo\\\"\"\r\n },\r\n license: {\r\n text1: \"Оформление лицензионного соглашения\",\r\n text2: \"Для заключения договора о лицензионном соглашении с ТОО “Мединформ” получателю необходимо:\",\r\n text3: \"Скачать, заполнить и подписать\",\r\n text4: \"договор о лицензионном соглашении\",\r\n text5: \"Скачать\",\r\n text6: \"авторское свидетельство\",\r\n text7: \"Оплатить стоимость Годовой Лицензии;\",\r\n text8: \"Отправить по электронной почте\",\r\n text9: \"электронные документы:\",\r\n text10: \"Копию договора о лицензионном соглашении;\",\r\n text11: \"Документ, подтверждающий оплату Годовой Лицензии(платежное поручение, банковская квитанция, чек или выписка из интернет-банкинга);\",\r\n text12: 'Доступ к порталу \"Медстат\" будет предоставлен после оплаты Годовой Лицензии',\r\n text13: \"Контактные телефоны:\"\r\n },\r\n formul: {\r\n header: 'Редактирование формул контроля',\r\n selform: 'Выберите форму',\r\n loadFormuls: 'Загрузить формулы'\r\n },\r\n filter: \"Фильтр\",\r\n register: \"Регистрация\",\r\n wait: 'Подождите...',\r\n waitsvod: 'Подождите формирование свода...',\r\n waitexcel: \"Подождите формирование файла Excel...\",\r\n loading: 'Загрузка...',\r\n enter: 'Выполнить вход',\r\n entered: 'Вход в систему...',\r\n exit: 'Выход',\r\n adm: 'Управление',\r\n admins: 'Управление %{tadm}',\r\n adminUsers: 'пользователями',\r\n adminAdmins: 'администраторами',\r\n textAdminAdmins: 'Управление администраторами. Добавление/редактирование свойств администраторов',\r\n textAdminUsers: 'Управление пользователями. Добавление/редактирвание свойств пользователей',\r\n nsi: 'Справочники',\r\n yes: \"Да\",\r\n no: \"Нет\",\r\n version: \"версия\",\r\n version2: \"Версия %{version}\",\r\n versions: {\r\n tit: \"Информация по версии\",\r\n versionNo: \"Номер\",\r\n dtVersion: \"Дата\",\r\n comment: \"Коментарий\",\r\n },\r\n info: {\r\n tit: \"Информация\",\r\n docs: \"Документы\",\r\n },\r\n versionInfo:\"Информация об изменениях в портале\",\r\n bud: 'Бюджетная отчетность ГУ',\r\n fin: 'Учет оплаты за использование портала',\r\n finTitle: 'Оплата',\r\n finPrivateOrg: 'Частная организация',\r\n finGovOrg: 'Государственная организация',\r\n fin50persOrg: 'Оплата 50%',\r\n debetkred: 'Кредиторская и дебиторская задолженность',\r\n reports: 'Отчеты',\r\n year: 'Год',\r\n year2: 'год',\r\n prog: 'Программа',\r\n podprog: 'Подпрограмма',\r\n userOrg: 'Ввод данных осуществляет:',\r\n svod: \"Получение сводов\",\r\n svod2: \"Свод\",\r\n svodSub: \"Свод подчиненых организаций\",\r\n svodSpecificOrg: {\r\n tit: \"Свод по конкретным организациям района\",\r\n btGetListOrgs: \"Пролучить список организаций, у которых есть данные\",\r\n btGenSvodExcel: \"Сгенерировать файл свода Excel по выбранным организациям\",\r\n },\r\n svodFormOrgRaz: {\r\n tit: \"Слияние разрезов форм по каждой организации\",\r\n comment: \"Сведение разрезов \\\"Город (свод)\\\" + \\\"Село (свод)\\\" в разрез \\\"Город+Село (свод)\\\" по каждой организации\"\r\n },\r\n InputInforForm: {\r\n tit: \"Информация о вводе по форме\"\r\n },\r\n InputInforObj: {\r\n tit: \"Информация о вводе по объекту\"\r\n },\r\n svodSubText: \"Будет произведен свод по подчиненым организациям в разрезе:\\\"%{srcRaz}\\\" и помещен в разрез:\\\"%{targetRaz}\\\" головной организации:\\\"%{org}\\\"\",\r\n svodComplete: \"Свод сформирован!\",\r\n copyDataComplete: \"Данные скопированы!\",\r\n object: \"Объект\",\r\n openForm: \"Открытие форм/таблиц\",\r\n openFormPstr: \"Построчка\",\r\n svodForm: \"Сведение форм\",\r\n svodFormQuart: \"Сведение форм по кварталам\",\r\n svodFormMonths: \"Сведение форм по выбранным месяцам\",\r\n svodFormRaz: \"Слияние форм по разрезам\",\r\n razChanged: \"Разрез изменен!\",\r\n periodChanged: \"Период изменен!\",\r\n execSvod: \"Получить свод\",\r\n copyData: \"Скопировать данные\",\r\n msgCopyData: \"Копирование данных\",\r\n textCopyData: \"Предупеждение: Перед копированием данных выбранного раздела и выбраных форм месячного отчета за декабрь %{year} года в годовой отчет %{year} года, данные выбранного раздела и выбраных форм в годовом отчете %{year} года будут удалены!\",\r\n textCopyData2: \"Выполнить копирование данных?\",\r\n copy12MonthYoYear: \"Копирование данных с декабря месячного отчета в годовой отчет\",\r\n copy12MonthYoYearComment: \"В результате выполнения данной операции данные месячного отчета за декабрь %{year} года будут скопированы в годовой отчет %{year} года\",\r\n control: \"Контроль\",\r\n controlInForm: \"Внутриформенный\",\r\n controlAllForm: \"Межформенный\",\r\n controlInYear: \"Межгодовой\",\r\n work: \"Работа\",\r\n forma: \"Форма\",\r\n razdelForm: \"Раздел форм\",\r\n allForms: \"Все формы\",\r\n filtrForma: \"Фильтр по Форме:\",\r\n filtrRaz: \"Фильтр по Разрезу:\",\r\n table: \"Таблица\",\r\n pstr: \"Построчка\",\r\n period: \"Период\",\r\n razres: \"Разрез\",\r\n typeobj: \"Тип объекта\",\r\n obj: \"Объект\",\r\n obj_no_select: \"Объект не выбран!\",\r\n obl: \"Область\",\r\n select: \"Выбрать\",\r\n selectObls: \"Выбор областей\",\r\n selectOrg: \"Выберите организацию\",\r\n selectOrgs: \"Выбор организаций\",\r\n selectOrgs2: \"Выберите организации\",\r\n selectAllObls: \"Выбрать все области\",\r\n selectForm: \"Выберите форму\",\r\n selectTable: \"Выберите таблицу\",\r\n raion: \"Район\",\r\n allRaions: \"все районы\",\r\n selectRaions: \"Выбор районов\",\r\n selectAllRaions: \"Выбрать все районы\",\r\n selectAllOrgs: \"Выбрать все организации\",\r\n org: \"Организация\",\r\n headOrg: \"Головная организация\",\r\n headOrg2: \"Головную организацию\",\r\n selHeadOrg: \"Выберите головную организацию\",\r\n onlyNomen: \"Включить только организации с номенклатурой\",\r\n viewData: \"Вид\",\r\n editcontrol: \"Редактирование формул контроля\",\r\n toExcel: \"Генерация Excel форм\",\r\n toExcel2: \"Генерация Excel формы\",\r\n fromExcel: \"Загрузка данных из Excel файла\",\r\n fromExcel2: \"Загрузка данных из Excel файла...\",\r\n resultFromExcel2Ok: \"Загрузка данных из Excel файла %{fileExcel} произведена успешно!\",\r\n selectExcelFile: \"Выберите файл Excel\",\r\n fileExcel: \"Файл с данными формы Excel\",\r\n inputInfor: \"Информация о вводе по разрезу\",\r\n noerror: \"Ошибок нет!\",\r\n error: \"Ошибка:\",\r\n generateExcel: \"Генерация Excel формы...\",\r\n save: \"Сохранить\",\r\n instruction: \"Руководство пользователя\",\r\n period1: \"1-й квартал\",\r\n period2: \"1-ое полугодие\",\r\n period3: \"9 месяцев\",\r\n period4: \"за год\",\r\n period10:\"1-й квартал\",\r\n period20:\"2-й квартал\",\r\n period21:\"1-ое полугодие\",\r\n period30:\"3-й квартал\",\r\n period31:\"9 месяцев\",\r\n period40:\"4-й квартал\",\r\n period101: \"Январь\",\r\n period102: \"Февраль\",\r\n period103: \"Март\",\r\n period104: \"Апрель\",\r\n period105: \"Май\",\r\n period106: \"Июнь\",\r\n period107: \"Июль\",\r\n period108: \"Август\",\r\n period109: \"Сентябрь\",\r\n period110: \"Октябрь\",\r\n period111: \"Ноябрь\",\r\n period112: \"Декабрь\",\r\n dataSaved: \"Данные сохранены!\",\r\n saving: \"Сохранение...\",\r\n closingPeriod: \"Закрытие периода\",\r\n closingOrgPeriod: \"Закрытие периода для организаций\",\r\n create: \"Создать\",\r\n loadDataFromExcel: \"Загрузить данные из файла Excel\",\r\n reportfin: \"Отчет об оплате\",\r\n reportfincrrz: \"Отчет о договорах организаций\",\r\n editOrgsOnObl: \"Редактирование справочника организаций\",\r\n summaDog: \"Сумма по договору\",\r\n dogovor: \"Договор\",\r\n str: \"Строка\",\r\n strItog: \"Итого по строке\",\r\n strocs: \"Строки\",\r\n raions: \"Районы\",\r\n orgs: \"Организации\",\r\n orgsraions: \"Организации района\",\r\n svodRaz: \"Получение сводов по разрезам\",\r\n razSource: \"Разрезы источника\",\r\n razSourceOne: \"Разрез источника\",\r\n razDest: \"Итоговый разрез\",\r\n createSvod: \"Получить свод\",\r\n createSvodRaz: \"Обьединить разрезы\",\r\n warning: \"Предупреждение\",\r\n razSvodConfirmMsg: \"В базе имеются данные в итоговом разрезе. Перед созданием свода данные итогового разреза будут удалены!\",\r\n razEditConfirmMsg: \"В базе имеются данные в итоговом разрезе. Перед переносом данных, данные итогового разреза будут удалены!\",\r\n perEditConfirmMsg: \"В базе имеются данные в итоговом периоде. Перед переносом данных, данные итогового периода будут удалены!\",\r\n svodRazBtCreate: \"Создать свод\",\r\n cancel: \"Отмена\",\r\n svodRazBtCancel: \"Не создавать свод\",\r\n editRazBtCreate: \"Перенести данные\",\r\n editRazBtCancel: \"Не переносить данные\",\r\n isAfterSvodDeleteSrc: \"Удалить данные разреза источника после свода(перноса) в итоговой разрез\",\r\n editFormRaz: \"Редактирование разреза\",\r\n editFormOrgRaz: \"Редактирование разреза по каждой организации\",\r\n editFormPeriod: \"Редактирование периода\",\r\n changeRazrez: \"Изменить разрез\",\r\n changePeriod:\"Изменить период\",\r\n nomenkl: \"Номенклатура\",\r\n typeorg: \"Тип организации\",\r\n gen47: \"Генерация 47 формы\",\r\n gen47Param: \"Параметры организаций для генерации 47 формы\",\r\n gen47Instr: \"Инструкция по генерации 47 формы\",\r\n medinfoTitle: \"Мединфо\",\r\n medinfoComment: \"Для работы с Мединфо данные по населению должны быть внесены в разрез Свод Здравоохранения. Данные Медстата должны быть сведены в разрезы Город + Село, МЗ+Ведомства, Свод здравоохранения.\",\r\n medinfoComment2:\"Данные Мединфо с 2008-2022 год выдаются в разрезе областей, с 2023 года выдаются в разрезе районов.\",\r\n editFormulMedinfo: \"Редактирование формул \\\"Мединфо\\\"\",\r\n generateTableMedinfo: \"Медико-статистические показатели\",\r\n page: \"Страница\",\r\n type_table: \"Тип таблицы\",\r\n type_per: \"Тип периода\",\r\n years: \"год\",\r\n quarter:\"квартал\",\r\n quarters: \"кварталы (все)\",\r\n quartersone: \"квартал (по выбору)\",\r\n months: \"месяц\",\r\n months2:\"Месяцы\",\r\n yearBeg: \"Первый год\",\r\n yearEnd: \"Второй год\",\r\n errorYears1: \"Первый год не должен быть равен или больше чем второй\",\r\n errorYears2: \"Количество лет не должно быть больше 10\",\r\n btGenMedinfoTable: \"Сгенерировать таблицу\",\r\n createDiagram: \"Создать диаграмму\",\r\n type_diagram: \"Тип диаграммы\",\r\n diagrGist: \"Гистограмма\",\r\n diagrGraph: \"График\",\r\n diagrCircle: \"Круговая диаграмма\",\r\n diagrline: \"Линейчатая диаграмма\",\r\n diagrMap: \"Карта\",\r\n editBokMkbMedinfo: \"Справочник боковиков для 2 генерации (МКБ)\",\r\n editBokDrMedinfo: \"Справочник боковиков для 2 генерации (другие)\",\r\n yearsExprStrings: \"Годы (пример - 2017-2018,2021)\",\r\n editPartsMedinfo: \"Редактирование разделов Мединфо\",\r\n part: \"Раздел\",\r\n indicator: \"Показатель\",\r\n showWarningDiagram: \"При выборе периода более трех лет данные на диаграмме могут сливаться. Желательно выбирать период меньше трех лет.\",\r\n openformtab: \"Открытие формы и таблицы\",\r\n pokazateli: \"Показатели\",\r\n kodstr: \"Код строки(код контроля)\",\r\n recalcItogs: \"Расчитать итоги\",\r\n edit: \"Редактировать\",\r\n delete: \"Удалить\",\r\n print: \"Печать\",\r\n deletedData: \"Данные удалены!\",\r\n deleteDataForm: \"Удаление данных таблицы\",\r\n deleteDataForm2: \"Удаление данных формы\",\r\n deleteQuestion: \"Удалить данные таблицы: %{table}, формы: %{form}, код обьекта: %{kobj}?\",\r\n deleteQuestion2: \"Удалить данные, формы: %{form}, обьект: %{obj}, год:%{year}, период:%{period}, разрез:%{raz}?\",\r\n noDataForm: \"Нет данных формы\",\r\n close: \"Закрыть\",\r\n accept: \"Принять\",\r\n search: \"Поиск\",\r\n exportToExcel: \"Экспорт в Excel\",\r\n object: \"Обьект\",\r\n selectParams: \"Выбор параметров\",\r\n selectedParams: \"Выбранные параметры\",\r\n load: \"Загрузить\",\r\n hide: \"Скрыть\",\r\n yearClose: \"Год для редактирования годового отчета\",\r\n yearCloseMonth: \"Год для редактирования месячного отчета\",\r\n monthClose: \"Месяц редактирования месячного отчета\",\r\n showRequiredSave: \"По данной организации нет данных в базе данных, необходимо сохранить данные\",\r\n childOrgs: {\r\n title: \"Подчиненые организации\",\r\n parentOrg: \"Головная организация\",\r\n kodOrg: \"Код\",\r\n nameOrg: \"Наименование\",\r\n del: \"Убрать подчинение\",\r\n addChild: \"Добавить дочернию организацию\",\r\n addSucces: \"Дочерняя организация добавлена!\",\r\n removeSucces: \"Подчинение убрано!\",\r\n addNoOrgFail: \"Нет организации\",\r\n warnOrgIsExistParent: \"У данной организации есть головная организация: %{kodOrg}\",\r\n addOrgToOkpolu: \"Добавить организацию в okpolu\",\r\n childOrg: \"Подчиненная организация\",\r\n users: \"Пользователи подчиненых организаций\",\r\n users2: \"Пользователи\",\r\n editNameOrg: \"Изменение наименования организации\",\r\n },\r\n forRaion: \"По району\",\r\n forSub: \"По ЦРБ и подчиненным организациям\",\r\n selectForms: \"Выберите формы\",\r\n selectMonths: \"Выберите месяцы\",\r\n razSrcEqDest: \"Разрез источника не должен быть равен итоговому разрезу\",\r\n selectObjs: \"Выберите обьекты\",\r\n selectRazSrc: \"Выберите разрезы источника\",\r\n statusForm: {\r\n title: \"Статус форм (блокировка)\",\r\n tit2: \"Организации и статусы форм\",\r\n titFormUncheck: \"- Форма не проверена(изменение данных организацией разрешено)\",\r\n titFormCheck: \"- Форма проверена(изменение данных организацией запрещено)\",\r\n titFormUncheckRk: \"- Форма не проверена(изменение данных на ниже лежащих уровнях(области/организации) разрешено)\",\r\n titFormCheckRk: \"- Форма проверена(изменение данных на ниже лежащих уровнях(области/организации) запрещено)\",\r\n },\r\n statusTable: {\r\n title: \"Статус таблиц (блокировка)\"\r\n },\r\n checked: \"Проверено\",\r\n noChecked: \"Не проверено\",\r\n infoData: {\r\n print: \"Печать\",\r\n printExcel: \"Сформировать файл Excel\",\r\n title: \"Состояние наличия данных\",\r\n period: \"Период:\",\r\n raz: \"В разрезе:\",\r\n form: \"Форма:\",\r\n obj: \"Объект:\",\r\n dt: \"Дата и время создания:\",\r\n },\r\n orgSubordinates: \"Подчиненые организации\",\r\n all: \"Все\",\r\n selectOrgDlg: {\r\n title: \"Выберите организацию\",\r\n comment: \"Для поиска организаций введите часть кода или наименования организации\"\r\n },\r\n packetDoc: {\r\n t1: \"Оформление лицензионного соглашения\",\r\n t2: \"Для заключения договора о лицензионном соглашении с ТОО “Мединформ” необходимо\",\r\n t3: \"Скачать, заполнить и подписать\",\r\n t4: \"договор о лицензионном соглашении\",\r\n t5: \"Скачать\",\r\n t6: \"авторское свидетельство\",\r\n t7: \"Оплатить стоимость Годовой Лицензии\",\r\n t8: \"Отправить по электронной почте\",\r\n t9: \"электронные документы\",\r\n t10: \"Копию подписанного договора о лицензионном соглашении\",\r\n t11: \"Документ, подтверждающий оплату Годовой Лицензии(платежное поручение, банковская квитанция, чек или выписка из интернет-банкинга)\",\r\n t12: \"Для заключения договора на портале Государственных закупок\",\r\n t13: \"Техническая спецификация\",\r\n t14: \"Коммерческое предложение\",\r\n t15: \"КТРУ 711211.000.000001 услуги консультационные технические\",\r\n t16: \"Доступ к порталу \\\"Медстат\\\" будет предоставлен после оплаты Годовой Лицензии\",\r\n t17: \"Контактные телефоны\",\r\n t18: \"Вход в портал\",\r\n t19: \"Скачать инструкцию по работе в портале \\\"Медстат\\\", \\\"Мединфо\\\"\",\r\n t20: \"Скачать \\\"Реквизиты ТОО Мединформ\\\"\",\r\n t21: \"Реквизиты и счет на оплату\",\r\n t22: \"Счет на оплату\",\r\n t150: \"Номер объявления отправить на электронную почту\",\r\n t151: \"Хабарландырудың номерін\",\r\n t152: \"электрондық поштаға жіберу керек.\",\r\n },\r\n editOrgs: {\r\n kod: \"Код\",\r\n nameRu: \"Наименование (рус)\",\r\n nameKz: \"Наименование (каз)\",\r\n parentOrg: \"Головная организация\",\r\n bin:\"БИН\",\r\n te: \"Территориальная единица (te)\",\r\n obl: \"Область (obl)\",\r\n raion: \"Район (raion)\",\r\n nasel: \"Населенный пункт, территориальная единица (te)\",\r\n adr: \"Адрес\",\r\n isMedstat: \"Организации разрешен ввод данных в Медстат\",\r\n edit: \"Редактирование\",\r\n loading: \"Загрузка...\",\r\n filt: \"Фильтр\",\r\n kodName: \"Код/Наименование\",\r\n notRaion: \"Не установлен район\",\r\n clearFilter: \"Очистить фильтр\",\r\n },\r\n accessRazd: {\r\n tit: \"Разрешения ввода по разрезам/формам\",\r\n titIsAccess: \"Разрезы/формы для ввода данных организацией:\",\r\n allRf: \"Все\",\r\n listRf: \"Списком\",\r\n razrs: \"Разрезы\",\r\n forms: \"Формы\",\r\n selRazs: \"Выберите разрезы\",\r\n selForms: \"Выберите формы\",\r\n createList: \"Создать список форм и разрезов на основе имеющихся данных данных за отчетный период:\",\r\n btCopyFromYear: \"Создать список\",\r\n isGod: \"Годовой отчет\",\r\n isMes: \"Месячный отчет\"\r\n },\r\n noAccess: \"Нет доступа\",\r\n audit: {\r\n tit: \"Аудит действий пользователей\",\r\n startDate: \"Период с\",\r\n endDate: \"по\",\r\n action: \"Действие пользователя\",\r\n actionDelete: \"Удаление форм/таблиц\",\r\n logged: \"Дата\",\r\n action: \"Действие\",\r\n message: \"Сообщение\",\r\n user: \"Пользователь\",\r\n ipAddress: \"IP адрес\"\r\n },\r\n classMkb: \"Класс МКБ-10\",\r\n templateExcel: {\r\n title: \"Шаблоны форм Excel\",\r\n load: \"Загрузить\",\r\n },\r\n quartsComments:{\r\n q10: \"= январь+февраль+март\",\r\n q20: \"= апрель+май+июнь\",\r\n q21: \"= январь+февраль+март+апрель+май+июнь\",\r\n q30: \"= июль+август+сентябрь\",\r\n q31: \"= январь+февраль+март+апрель+май+июнь+июль+август+сентябрь\",\r\n q40: \"= октябрь+ноябрь+декабрь\",\r\n q4: \"= январь+февраль+март+апрель+май+июнь+июль+август+сентябрь+октябрь+ноябрь+декабрь\",\r\n q400: \"= 1-квартал + 2-квартал + 3-квартал + 4-квартал\",\r\n q210: \"= 1-квартал + 2-квартал\",\r\n q310: \"= 1-квартал + 2-квартал + 3-квартал\",\r\n svodSrc: \"Сводить:\",\r\n error:\"Ошибка: %{err}\"\r\n\r\n },\r\n perSrcEqDest: \"Период источника не должен быть равен итоговому периоду\",\r\n periodSrc: \"Период источника:\",\r\n periodDest: \"Итоговый период:\",\r\n notExistsDataSrcPer: \"Нет данных в источнике по данноому периоду\",\r\n pstrCntObj: \"Объектов %{cnt}\",\r\n erMonthQuart: \"Данных по месяцам/кварталам за данный период/периоды нет\",\r\n erYear: \"Данных по районам/организациям за %{year} год нет\",\r\n erYear2: \"Данные по районам/организациям отсутствуют, формируются только по объекту РК\",\r\n svodMonthIsObjs: \"Сформировать по одной таблице в разрезе %{razrez}\",\r\n svodMonthIsObjs2: \"Сформировать по одной таблице \",\r\n razObjs: {\r\n tit:\" в разрезе: \",\r\n obls: \"Областей\",\r\n raions: \"Районов\",\r\n orgs:\"Организаций\"\r\n },\r\n templateTableExcel: {\r\n title: \"Шаблоны таблиц Excel\",\r\n cell: \"Колонка Excel\",\r\n formul: \"Формула Excel\",\r\n errors: {\r\n celReq:\"Введите колонку Excel\",\r\n celFormulaReq:\"Введите формулу Excel\",\r\n celExists:\"Такая колонка уже существует!\",\r\n },\r\n del:\"Удаление\",\r\n delFormlExcel:\"Удалить формулу Excel?\"\r\n }\r\n },\r\n kk: {\r\n application: {\r\n title: 'Toffe app met i18n!',\r\n hello: 'Hallo, %{name}!'\r\n },\r\n warningPaidDays0: \"Лицензиялық келісімнің мерзімі аяқталады. Бүгін соңғы күн. Байланыс \\\"Medinform\\\" ЖШС: әзірлеуші ​​8(727) 241-12-16, қаржы бөлімі 8(727) 241-13-07\",\r\n warningPaidDays: \"Лицензиялық келісімнің мерзімі аяқталады. Бағдарламаға тағы %{days} күн қол жеткізе аласыз. «Мединформ» ЖШС байланысы: әзірлеуші 8(727) 241-12-16, қаржы бөлімі 8(727) 241-13-07\",\r\n date: {\r\n short: 'D.MM.YYYY',\r\n shorttime: 'D.MM.YYYY h:mm',\r\n long: 'D MMMM YYYY',\r\n longtime: 'D MMMM YYYY h:mm'\r\n },\r\n msgButtons: {\r\n OK: \"OK\",\r\n Yes: \"Иа\",\r\n No: \"Жоқ\",\r\n Retry: \"Қайталау\",\r\n Cancel: \"Болдырмау\",\r\n Request: \"Картаны тіркеуден шығаруға өтінім\",\r\n Submit: \"Деректерді сақтау\",\r\n Save: \"Сақтау\",\r\n Change: \"Өзгерту\",\r\n },\r\n lang: 'Тіл',\r\n hello: 'Сәлеметсіз бе %{fio}',\r\n policy: \"Құпиялылық және жеке деректерді өңдеу саясаты\",\r\n year3: \"%{year} жылға\",\r\n yearMonth: \"%{year} жылдың %{month}\",\r\n home: 'Медстат, Мединфо',\r\n nameRu: 'Атауы (рус)',\r\n nameKz: 'Атауы (каз)',\r\n shortNameRu: 'Қысқа аты (орыс)',\r\n shortNameKz: 'Қысқа атау (қаз)',\r\n notinclude: \"Алып тастау\",\r\n orgIsNomenkl: \"Номенклатурасы бар ұйымдар\",\r\n deleteForm: \"Пішіндерді жою\",\r\n rk: \"Қазақстан Республикасы\",\r\n blockRk: \"Бұл формалар ҚР деңгейінде бұғатталған\",\r\n blockTableRk: \"Кесте деректері ҚР деңгейінде бұғатталған\",\r\n blockTableObl: \"Кесте деректері аймақ деңгейінде құлыпталған\",\r\n btDeleteForm: \"Пішінді жою\",\r\n deleteComplete: \"Пішін жойылды\",\r\n deleteYesOrNo: \"Пішін деректерін шынымен жойғыңыз келе ме?\",\r\n indicatorsMap: {\r\n title: \"Картадағы көрсеткіштер\",\r\n run: \"Пішін\"\r\n },\r\n genMedinfo: {\r\n yearsError1: 'Жарамсыз өрнек',\r\n yearsError2: 'Жылдар саны 10-нан асады',\r\n yearsError3: '%{year} - дан кем болмауы керек',\r\n yearsError4: '%{year} - дан аспауы керек',\r\n forOrg: 'Ұйымдар контекстінде көрсету',\r\n },\r\n kod: \"Код\",\r\n nameOrgBr: \"Ұйым атауы\",\r\n login: {\r\n enter: 'Кіру',\r\n comment1: 'Бағдарлама бар пайдаланушылар үшін қолжетімді',\r\n comment2: 'Егер сіз авторизацияланған пайдаланушы болмасаңыз, жүйеден ажыратыңыз.',\r\n comment3: 'Шарт жасасу үшін құжаттар пакетін жүктеп алуға болады',\r\n comment4: 'Мына жерде',\r\n licenseUrl: 'license',\r\n password: 'Құпия сөз',\r\n username: 'Логин',\r\n passReq: 'Құпия сөз қажет',\r\n usrReq: 'Пайдаланушы аты қажет',\r\n userNamePassInvalid: 'Пайдаланушы аты мен пароль дұрыс емес!',\r\n notPaid: 'Сіздің ұйым бағдарламаны пайдаланғаны үшін төлем жасады',\r\n text1: '«МЕДСТАТ» ақпараттық жүйесі',\r\n text2: 'Медициналық ұйымдардың қызметі туралы ресми статистикалық есептілік нысандарын қалыптастыру жүйесі.',\r\n text3: 'Статистикалық нысанның ішіндегі деректерді салыстырмалы талдау (ішілік бақылау).',\r\n text4: 'Мәліметтерді әртүрлі формалармен салыстырыңыз (интерформ бақылау).',\r\n text5: 'Ағымдағы және өткен күнтізбелік жыл арасындағы деректерді салыстырыңыз (жылдық бақылау).',\r\n text6: '«МЕДИНФО» ақпараттық жүйесі',\r\n text7: 'Жүйе әртүрлі кезеңдердегі медициналық-статистикалық көрсеткіштерді кестелер, диаграммалар түрінде және облыстардың, аудандардың және медициналық ұйымдардың жағдайында картада салыстыруға және талдауға арналған.',\r\n text8: 'Көрсеткіштер мемлекеттік, жеке және ведомстволық, сонымен қатар қалалық және ауылдық денсаулық сақтау тұрғысынан бөлінеді.',\r\n text9: 'Жүйе денсаулық сақтауды ұйымдастырушылар мен денсаулық сақтау мамандарына арналған.',\r\n appStore: \"App Store дүкеніне жүктеп салу\",\r\n googlePlay: \"ЖҮКТЕП АЛЫҢЫЗ: Google Play\",\r\n mobileApp: \"\\\"Medinfo\\\" мобильді қосымшасы\"\r\n },\r\n license: {\r\n text1: \"Оформление лицензионного соглашения\",\r\n text2: \"Для заключения договора о лицензионном соглашении с ТОО “Мединформ” получателю необходимо:\",\r\n text3: \"Скачать, заполнить и подписать\",\r\n text4: \"договор о лицензионном соглашении\",\r\n text5: \"Скачать\",\r\n text6: \"авторское свидетельство\",\r\n text7: \"Оплатить стоимость Годовой Лицензии;\",\r\n text8: \"Отправить по электронной почте\",\r\n text9: \"электронные документы:\",\r\n text10: \"Копию договора о лицензионном соглашении;\",\r\n text11: \"Документ, подтверждающий оплату Годовой Лицензии(платежное поручение, банковская квитанция, чек или выписка из интернет-банкинга);\",\r\n text12: 'Доступ к порталу \"Медстат\" будет предоставлен после оплаты Годовой Лицензии',\r\n text13: \"Контактные телефоны:\"\r\n },\r\n formul: {\r\n header: 'Басқару формулаларын өңдеу',\r\n selform: 'Пішінді таңдаңыз',\r\n loadFormuls: 'Формулаларды жүктеңіз'\r\n },\r\n filter: \"Сүзгі\",\r\n register: \"Тіркеу\",\r\n wait: 'Күтіңіз...',\r\n waitsvod: 'Қойма түзілуін күтіңіз...',\r\n waitexcel: \"Excel файлы жасалғанша күтіңіз...\",\r\n loading: 'Жүктеу...',\r\n enter: 'Кіру',\r\n entered: 'Кіруге ...',\r\n exit: 'Шығу',\r\n adm: 'Бақылау',\r\n admins: '%{tadm} басқару',\r\n adminUsers: 'Пайдаланушыларды',\r\n adminAdmins: 'Әкімшілерді',\r\n textAdminAdmins: 'Әкімшілік басқару. Әкімші қасиеттерін қосу / өңдеу',\r\n textAdminUsers: 'Пайдаланушыларды басқару. Пайдаланушы сипаттарын қосу / өңдеу',\r\n nsi: 'Анықтамалар',\r\n yes: \"Ия\",\r\n no: \"Жоқ\",\r\n version: \"нұсқасы\",\r\n version2: \"Нұсқасы %{version}\",\r\n versions: {\r\n tit: \"Нұсқа туралы ақпарат\",\r\n versionNo: \"Сан\",\r\n dtVersion: \"күні\",\r\n comment: \"Түсініктеме\"\r\n },\r\n info: {\r\n tit: \"Ақпарат\",\r\n docs: \"Құжаттар\",\r\n },\r\n versionInfo: \"Порталдағы өзгерістер туралы ақпарат\",\r\n bud: 'Бюджетная отчетность ГУ',\r\n fin: 'Порталды пайдаланғаны үшін төлемдерді есепке алу',\r\n finTitle: 'Төлем',\r\n finPrivateOrg: 'Жеке ұйым',\r\n finGovOrg: 'Мемлекеттік ұйым',\r\n fin50persOrg: 'Төлем 50%',\r\n debetkred: 'Берешек және дебиторлық берешек',\r\n reports: 'Есептер',\r\n year: 'Жыл',\r\n year2:'жыл',\r\n prog: 'Бағдарлама',\r\n podprog: 'Подпрограмма',\r\n userOrg: 'Деректерді енгізу:',\r\n svod: \"Қоймалар алу\",\r\n svod2: \"Қойма\",\r\n svodSub: \"Ведомстволық бағынысты ұйымдардың органы\",\r\n svodSpecificOrg: {\r\n tit: \"Аудандағы нақты ұйымдардың қысқаша мазмұны\",\r\n btGetListOrgs: \"Деректері бар ұйымдардың тізімін алыңыз\",\r\n btGenSvodExcel:\"Таңдалған ұйымдар үшін Excel жиынтық файлын жасаңыз\",\r\n },\r\n svodFormOrgRaz: {\r\n tit: \"Әрбір ұйым үшін пішін бөлімдерін біріктіру\",\r\n comment: \"\\\"Қала (арқа)\\\" + \\\"Ауыл (арка)\\\" бөлімдерін әрбір ұйым үшін \\\"Қала+Ауыл (арка)\\\" бөліміне біріктіру\"\r\n },\r\n InputInforForm: {\r\n tit:\"Пішін енгізу ақпараты\"\r\n },\r\n InputInforObj: {\r\n tit: \"Объектіні енгізу ақпараты\"\r\n },\r\n svodSubText: \"Ведомстволық бағынысты ұйымдардың қысқаша мазмұны:\\\"%{srcRaz}\\\" контекстінде жасалады және:\\\"%{org}\\\" негізгі ұйымының: \\\"%{targetRaz}\\\" бөлімінде орналастырылады.\",\r\n svodComplete: \"Қойма құрылды!\",\r\n copyDataComplete:\"Деректер көшірілді!\",\r\n object: \"Нысан\",\r\n svodFormRaz: \"Пішіндерді кесу арқылы біріктіру\",\r\n razChanged: \"Кесу өзгертілді!\",\r\n periodChanged: \"Мерзімі өзгертілді!\",\r\n execSvod: \"Қойма алыңыз\",\r\n copyData:\"Деректерді көшіру\",\r\n msgCopyData:\"\",\r\n textCopyData:\"Ескерту: Таңдалған бөлімнің деректерін және жылдың %{жыл} желтоқсанына арналған айлық есептің таңдалған пішіндерін %{year} жылдың жылдық есебіне көшірмес бұрын. strong>, таңдалған бөлімнің деректері және < strong>жылдық есептің %{year} жылына таңдалған пішіндер жойылады!\",\r\n textCopyData2: \"Деректерді көшіру керек пе?\",\r\n copy12MonthYoYear:\"Деректерді желтоқсан айындағы есеп беруден жылдық есепке көшіру\",\r\n copy12MonthYoYearComment:\"Осы операцияның нәтижесінде желтоқсан айының %{year} айлық есебі жылдық %{year} есебіне көшіріледі.\",\r\n openForm: \"Пішіндерді / кестелерді ашу\",\r\n openFormPstr: \"Түзу\",\r\n svodForm: \"Тегістеу формалары\",\r\n svodFormQuart: \"Тоқсан бойынша формаларды топтастыру\",\r\n svodFormMonths: \"Таңдалған айлар бойынша пішіндерді жинақтау\",\r\n svodFormrRaz: \"Пішіндерді кесу арқылы біріктіру\",\r\n control: \"Бақылау\",\r\n controlInForm: \"Ішкі\",\r\n controlAllForm: \"Интерфейс\",\r\n controlInYear: \"Жылдық\",\r\n work: \"Жұмыс\",\r\n forma: \"Пішін\",\r\n allForms: \"Барлық пішіндер\",\r\n razdelForm: \"Пішіндер бөлімі\",\r\n filtrForma: \"Пішін бойынша сүзу:\",\r\n filtrRaz: \"Бөлім бойынша сүзгілеу:\",\r\n table: \"Кесте\",\r\n pstr: \"Түзу\",\r\n period: \"Кезең\",\r\n razres: \"Қиық\",\r\n typeobj: \"Нысан түрі\",\r\n obj: \"Нысан\",\r\n obj_no_select: \"Нысан таңдалмаған!\",\r\n obl: \"Аймақ\",\r\n select: \"Таңдау\",\r\n selectObls: \"Аймақтар таңдау\",\r\n selectOrg: \"Ұйымды таңдаңыз\",\r\n selectOrgs: \"Ұйымдарды таңдау\",\r\n selectOrgs2: \"Ұйымдарды таңдаңыз\",\r\n selectAllObls: \"Барлық аймақтарды таңдаңыз\",\r\n selectForm: \"Пішінді таңдаңыз\",\r\n selectTable: \"Кестені таңдаңыз\",\r\n raion: \"Аудан\",\r\n allRaions: \"барлық аймақтар\",\r\n selectRaions: \"Аудандарды таңдау\",\r\n selectAllRaions: \"Барлық аймақтарды таңдаңыз\",\r\n selectAllOrgs: \"Барлық ұйымдарды таңдаңыз\",\r\n org: \"Ұйым\",\r\n headOrg: \"Бас ұйым\",\r\n headOrg2: \"Ата-ана ұйымы\",\r\n selHeadOrg: \"Негізгі ұйымды таңдаңыз\",\r\n onlyNomen: \"Тек номенклатурасы бар ұйымдарды қосыңыз\",\r\n viewData: \"Көру\",\r\n editcontrol: \"Басқару формулаларын редакциялау\",\r\n toExcel: \"Excel формаларын құру\",\r\n toExcel2: \"Excel пішіндерін жасау\",\r\n fromExcel: \"Excel файлынан деректерді жүктеу\",\r\n fromExcel2: \"Excel файлынан деректерді жүктеу...\",\r\n resultFromExcel2Ok: \"%{fileExcel} Excel файлынан деректерді жүктеу сәтті өтті!\",\r\n selectExcelFile: \"Excel файлын таңдаңыз\",\r\n fileExcel: \"Excel пішіміндегі мәліметтер файлы\",\r\n inputInfor: \"Бөлім енгізу ақпараты\",\r\n noerror: \"Қателер жоқ!\",\r\n error: \"Қате:\",\r\n generateExcel: \"Excel формасын құру...\",\r\n save: \"Сохранить\",\r\n instruction: \"Пайдаланушы нұсқаулығы\",\r\n period1: \"1 тоқсан\",\r\n period2: \"Жылдың 1 жартысы\",\r\n period3: \"9 ай\",\r\n period4: \"за год\",\r\n period10: \"1 тоқсан\",\r\n period20: \"2 тоқсан\",\r\n period21: \"Жылдың 1 жартысы\",\r\n period30: \"3 тоқсан\",\r\n period31: \"9 ай\",\r\n period40: \"4 тоқсан\",\r\n period101: \"Қаңтар\",\r\n period102: \"Ақпан\",\r\n period103: \"Наурыз\",\r\n period104: \"Сәуір\",\r\n period105: \"Мамыр\",\r\n period106: \"Маусым\",\r\n period107: \"Шілде\",\r\n period108: \"Тамыз\",\r\n period109: \"Қыркүйек\",\r\n period110: \"Қазан\",\r\n period111: \"Қараша\",\r\n period112: \"Желтоқсан\",\r\n dataSaved: \"Деректер сақталды!\",\r\n saving: \"Сохранение...\",\r\n closingPeriod: \"Мерзімнің аяқталуы\",\r\n closingOrgPeriod: \"Ұйымдар үшін кезеңнің аяқталуы\",\r\n create: \"А жасау\",\r\n loadDataFromExcel: \"Excel файлынан деректерді жүктеңіз\",\r\n reportfin: \"Төлем туралы есеп\",\r\n reportfincrrz: \"Ұйымдық келісімдер туралы есеп\",\r\n editOrgsOnObl: \"Ұйымдар анықтамалығын өңдеу\",\r\n summaDog: \"Келісімшарт сомасы\",\r\n dogovor: \"Келісімшарт\",\r\n str: \"Түзу\",\r\n strItog:\"Жалпы сызық\",\r\n strocs: \"Жолдар\",\r\n raions: \"Аймақтар\",\r\n orgs: \"Ұйым\",\r\n orgsraions: \"Аудандық ұйымдар\",\r\n svodRaz: \"Қоймаларды секциялар бойынша алу\",\r\n razSource: \"Бастапқы бөлімдер\",\r\n razSourceOne: \"Ақпарат көзі\",\r\n razDest: \"Соңғы кесу\",\r\n createSvod: \"Сақтау қоймасын алыңыз\",\r\n createSvodRaz: \"Кесулерді біріктіру\",\r\n warning: \"Ескерту\",\r\n razSvodConfirmMsg: \"Деректер қорында қорытынды бөлімдегі мәліметтер бар. Қойма жасамас бұрын жиынтық бөлімнің деректері жойылады!\",\r\n razEditConfirmMsg: \"Деректер қорында қорытынды бөлімдегі мәліметтер бар. Деректер берілмес бұрын, қорытынды бөлімнің деректері жойылады!\",\r\n perEditConfirmMsg: \"Мәліметтер қорында соңғы кезеңдегі деректер бар. Деректерді тасымалдау алдында соңғы кезең деректері жойылады!\",\r\n svodRazBtCreate: \"Қойма жаса\",\r\n cancel: \"Болдырмау\",\r\n svodRazBtCancel: \"Қойма жасамаңыз\",\r\n editRazBtCreate: \"Деректерді тасымалдау\",\r\n editRazBtCancel: \"Деректерді тасымалдамаңыз\",\r\n isAfterSvodDeleteSrc: \"Қойылғаннан кейін бастапқы бөлім деректерін соңғы бөлімге дейін алып тастаңыз (алып жүріңіз)\",\r\n editFormRaz: \"Бөлімді өңдеу\",\r\n editFormOrgRaz: \"Әрбір ұйым үшін бөлімді өңдеу\",\r\n editFormPeriod: \"Кезеңді өңдеу\",\r\n changeRazrez: \"Бөлімді өзгерту\",\r\n changePeriod: \"Кезеңді өзгерту\",\r\n nomenkl: \"Номенклатура\",\r\n typeorg: \"Ұйым түрі\",\r\n gen47: \"47 пішінді қалыптастыру\",\r\n gen47Param: \"47 форманы қалыптастырудың ұйымдастырушылық параметрлері\",\r\n gen47Instr: \"47 пішінді құру бойынша нұсқаулар\",\r\n medinfoTitle: \"Мединфо\",\r\n medinfoComment: \"Medinfo-мен жұмыс істеу үшін халық туралы деректер Денсаулық кодексі бөліміне енгізілуі керек. Медстат деректері қалалық + ауылдық, Денсаулық сақтау министрлігі + департаменттер, Денсаулық кодексі бөлімдеріне жинақталуы керек.\",\r\n medinfoComment2: \"2008-2022 жылдардағы Medinfo мәліметтері облыс бойынша, 2023 жылдан бастап аудан бойынша беріледі.\",\r\n editFormulMedinfo: \"\\\"Medinfo\\\" формулаларын өңдеу\",\r\n generateTableMedinfo: \"Медициналық-статистикалық көрсеткіштер\",\r\n page: \"Бет\",\r\n type_table: \"Кесте түрі\",\r\n type_per: \"Кезең түрі\",\r\n years: \"жыл\",\r\n quarter: \"тоқсан\",\r\n quarters: \"аудандар (барлығы)\",\r\n quartersone: \"тоқсан (міндетті емес)\",\r\n months: \"ай\",\r\n months2: \"Айлар\",\r\n yearBeg: \"Бірінші жыл\",\r\n yearEnd: \"Екінші жыл\",\r\n errorYears1: \"Бірінші жыл екінші жылға тең немесе одан үлкен болмауы керек\",\r\n errorYears2: \"Жылдар саны 10-нан аспауы керек\",\r\n btGenMedinfoTable: \"Кесте құру\",\r\n createDiagram: \"Диаграмма құру\",\r\n type_diagram:\"Диаграмма түрі\",\r\n diagrGist: \"Гистограмма\",\r\n diagrGraph: \"Кесте\",\r\n diagrCircle: \"Дөңгелек диаграмма\",\r\n diagrline: \"Штрих-диаграмма\",\r\n diagrMap: \"Карта\",\r\n editBokMkbMedinfo: \"Екінші буынға арналған нұсқаулық (ICD)\",\r\n editBokDrMedinfo: \"Екінші буынға арналған анықтамалық анықтама (басқалары)\",\r\n yearsExprStrings: \"Жылдар (мысал - 2017-2018,2021)\",\r\n editPartsMedinfo: \"Medinfo бөлімдерін өңдеу\",\r\n part: \"Бөлім\",\r\n indicator: \"Көрсеткіш\",\r\n showWarningDiagram: \"Егер сіз үш жылдан астам кезеңді таңдасаңыз, диаграммадағы деректер біріктірілуі мүмкін. Үш жылдан аз кезеңді таңдаған жөн.\",\r\n openformtab: \"Пішін мен кестені ашу\",\r\n pokazateli: \"Көрсеткіштер\",\r\n kodstr: \"Жол коды(басқару коды)\",\r\n recalcItogs: \"Қорытындыларды есептеңіз\",\r\n edit: \"Өңдеу\",\r\n delete: \"Жою\",\r\n print: \"Мөр\",\r\n deletedData:\"Деректер жойылды!\",\r\n deleteDataForm: \"Кесте деректерін жою\",\r\n deleteDataForm2: \"Пішін деректерін жою\",\r\n deleteQuestion: \"Кесте деректерін жою: %{table}, пішіндер:%{form}, нысан коды:%{kobj}?\",\r\n deleteQuestion2: \"Деректерді, пішіндерді жою: %{form}, нысан: %{obj}, жыл: %{year}, кезең: %{period}, кесу:%{raz}?\",\r\n noDataForm: \"Пішін деректері жоқ\",\r\n close: \"Жабық\",\r\n accept: \"Қабылдау\",\r\n search: \"Іздеу\",\r\n exportToExcel: \"Excel -ге экспорттау\",\r\n object: \"Объект\",\r\n selectParams: \"Параметр таңдау\",\r\n selectedParams: \"Таңдалған опциялар\",\r\n load: \"Жүктеу\",\r\n hide: \"Жасыру\",\r\n yearClose: \"Жылдық есепті өңдеу жылы\",\r\n yearCloseMonth: \"Айлық есепті өңдеу жылы\",\r\n monthClose: \"Ай сайынғы есепті өңдеу айы\",\r\n showRequiredSave: \"Деректер базасында бұл ұйымның деректері жоқ, деректерді сақтау керек\",\r\n childOrgs: {\r\n title: \"Ведомстволық бағынысты ұйымдар\",\r\n parentOrg: \"Бас ұйым\",\r\n kodOrg: \"Код\",\r\n nameOrg: \"Аты\",\r\n del: \"Бағыныштылықты жою\",\r\n addChild: \"Бала ұйымын қосыңыз\",\r\n addSucces: \"Еншілес компания қосылды!\",\r\n removeSucces: \"Жіберу жойылды!\",\r\n addNoOrgFail: \"Ұйым жоқ\",\r\n warnOrgIsExistParent: \"Бұл ұйымның бас ұйымы бар: %{kodOrg}\",\r\n addOrgToOkpolu: \"Добавить организацию в okpolu\",\r\n childOrg: \"Ведомстволық бағынысты ұйым\",\r\n users: \"Ведомстволық бағынысты ұйымдардың пайдаланушылары\",\r\n users2: \"Пайдаланушылар\",\r\n editNameOrg: \"Ұйымның атауын өзгерту\",\r\n },\r\n forRaion: \"Аудан бойынша\",\r\n forSub: \"ОКЖ және ведомстволық бағынысты ұйымдар бойынша\",\r\n selectForms: \"Пішіндерді таңдаңыз\",\r\n selectMonths: \"Айларды таңдаңыз\",\r\n razSrcEqDest: \"Бастапқы кесу соңғы кесуге тең болмауы керек\",\r\n selectObjs: \"Объектілерді таңдау\",\r\n selectRazSrc: \"Бастапқы кесулерді таңдаңыз\",\r\n statusForm: {\r\n title: \"Пішіндердің күйі (блоктау)\",\r\n tit2: \"Ұйымдар және форма статустары\",\r\n titFormUncheck: \"- Пішін тексерілмеген (ұйымның деректерін өзгертуге рұқсат етілген)\",\r\n titFormCheck: \"- Пішін тексерілді (ұйым деректерді өзгертуге тыйым салады)\",\r\n titFormUncheckRk: \"- Пішін расталмаған (төмен деңгейлердегі (аймақ/ұйым) деректерге өзгертулер рұқсат етіледі)\",\r\n titFormCheckRk: \"- Пішін тексерілді (төмен деңгейлерде (аймақ/ұйым) деректерді өзгертуге тыйым салынады))\",\r\n },\r\n statusTable: {\r\n title: \"Кесте күйі (құлыптаулы)\"\r\n },\r\n checked: \"Тексерілді\",\r\n noChecked: \"Тексерілмеген\",\r\n infoData: {\r\n print: \"Мөр\",\r\n printExcel: \"Excel файлын жасаңыз\",\r\n title: \"Деректердің қолжетімділігі күйі\",\r\n period: \"Период:\",\r\n raz: \"кесінді:\",\r\n form: \"Пішін:\",\r\n obj: \"Объект:\",\r\n dt: \"Жасалу күні мен уақыты:\",\r\n },\r\n orgSubordinates: \"Ведомстволық бағынысты ұйымдар\",\r\n all: \"Барлық\",\r\n selectOrgDlg: {\r\n title: \"Ұйым таңдаңыз\",\r\n comment: \"Ұйымдар тiзiмін қалыптастыру үшiн кодтың бiр бөлiгiн немесе ұйымның атын енгізіңіз\"\r\n },\r\n packetDoc: {\r\n t1: \"Лицензиалық келісімді тіркеу\",\r\n t2: \"«Мединформ» ЖШС-мен Лицензиалық келісім жасау үшін қажет»\",\r\n t3: \"Жүктеп алыңыз, толтырыңыз және қол қойыңыз\",\r\n t4: \"Лицензиалық келісім шарт\",\r\n t5: \"Жүктеп алу\",\r\n t6: \"Авторлық куәлік жүктеп алу\",\r\n t7: \"Жылдық Лицензианың құнын төлеңіз\",\r\n t8: \"Электрондық пошта арқылы жіберу\",\r\n t9: \"Электрондық пошта арқылы электрондық құжаттар жіберу\",\r\n t10: \"Қол қойылған Лицензиалық келісім шартының көшірмесі\",\r\n t11: \"Жылдық Лицензианың төленгенін растайтын құжат (төлем тапсырмасы, банктік түбіртек, интернет-банкинге үзіндісі)\",\r\n t12: \"Мемлекеттік сатып алу порталында шарт жасасу\",\r\n t13: \"Техникалық сипаттама\",\r\n t14: \"Коммерциалық ұсыныс\",\r\n t15: \"КТРУ 711211.000.000001 техникалық кеңес беру қызметтері\",\r\n t16: \"Портал \\\"Медстатқа\\\" кіру, жылдық Лицензианы төлегеннен кейін қамтамасыз етіледі\",\r\n t17: \"Байланыс телефоны\",\r\n t18: \"Порталға кіру\",\r\n t19: \"«Медстат», «Мединфо» порталында жұмыс істеу нұсқауларын жүктеп алыңыз\",\r\n t20: \"Жүктеп алу \\\"Мединформ ЖШС мәліметтері\\\"\",\r\n t21: \"Мәліметтер және төлеуге арналған шот-фактура\",\r\n t22: \"Төлеуге арналған шот-фактура\",\r\n t150: \"Номер объявления отправить на электронную почту\",\r\n t151: \"Хабарландырудың номерін\",\r\n t152: \"электрондық поштаға жіберу керек.\",\r\n },\r\n editOrgs: {\r\n kod: \"Код\",\r\n nameRu: \"Аты (орыс)\",\r\n nameKz: \"Аты (қаз.)\",\r\n parentOrg: \"Ата-ана ұйымы\",\r\n bin: \"БИН\",\r\n te: \"Аумақтық бірлік (te)\",\r\n obl: \"Облыс (obl)\",\r\n raion: \"Аудан (raion)\",\r\n nasel: \"Елді мекен, аумақтық бірлік (te)\",\r\n adr: \"Мекенжай\",\r\n isMedstat: \"Ұйымдарға Медстатқа деректерді енгізуге рұқсат етілген\",\r\n edit: \"Өңдеу\",\r\n loading: \"Жүктелуде...\",\r\n filt: \"Сүзгі\",\r\n kodName: \"Код/Аты\",\r\n notRaion: \"Аудан белгіленбеген\",\r\n clearFilter: \"Сүзгіні тазалау\",\r\n },\r\n accessRazd: {\r\n tit: \"Кесу/фигуралар үшін енгізу рұқсаттары\",\r\n titIsAccess: \"Ұйым деректерді енгізуге арналған бөлімдер/формалар:\",\r\n allRf: \"Барлық\",\r\n listRf: \"Тізім\",\r\n razrs: \"Кеседі\",\r\n forms: \"Пішіндер\",\r\n selRazs: \"Кесулерді таңдаңыз\",\r\n selForms: \"Пішіндерді таңдаңыз\",\r\n createList: \"Есепті кезеңдегі қолда бар деректер негізінде пішіндер мен бөлімдердің тізімін жасаңыз:\",\r\n btCopyFromYear: \"Тізім жасау\",\r\n isGod: \"Жылдық есеп\",\r\n isMes: \"Ай сайынғы есеп\"\r\n },\r\n noAccess: \"Кіру жоқ\",\r\n audit: {\r\n tit: \"Пайдаланушы әрекеттерінің аудиті\",\r\n startDate: \"Кезеңнен бастап\",\r\n endDate: \"Авторы\",\r\n action: \"Пайдаланушы әрекеті\",\r\n actionDelete: \"Пішіндерді/кестелерді жою\",\r\n logged: \"күні\",\r\n action: \"Әрекет\",\r\n message: \"Хабар\",\r\n user: \"Пайдаланушы\",\r\n ipAddress: \"IP мекенжайы\"\r\n },\r\n classMkb: \"Класс МКБ-10\",\r\n templateExcel: {\r\n title: \"Шаблоны форм Excel\",\r\n load: \"Загрузить\",\r\n },\r\n quartsComments: {\r\n q10: \"= қаңтар+ақпан+наурыз\",\r\n q20: \"= сәуір+мамыр+маусым\",\r\n q21: \"= қаңтар+ақпан+наурыз+сәуір+мамыр+маусым\",\r\n q30: \"= шілде+тамыз+қыркүйек\",\r\n q31: \"= қаңтар+ақпан+наурыз+сәуір+мамыр+маусым+шілде+тамыз+қыркүйек\",\r\n q40: \"= қазан+қараша+желтоқсан\",\r\n q4: \"= қаңтар+ақпан+наурыз+сәуір+мамыр+маусым+шілде+тамыз+қыркүйек+қазан+қараша+желтоқсан\",\r\n q40: \"= 1 тоқсан + 2 тоқсан + 3 тоқсан + 4 тоқсан\",\r\n q210: \"= 1-тоқсан + 2-тоқсан\",\r\n q310: \"= 1-тоқсан + 2-тоқсан + 3-тоқсан\",\r\n svodSrc: \"Аралас:\",\r\n error: \"Қате: %{err}\"\r\n },\r\n perSrcEqDest: \"Бастапқы кезең нәтиже кезеңге тең болмауы керек\",\r\n periodSrc: \"Бастапқы кезең:\",\r\n periodDest: \"Қорытынды кезең:\",\r\n notExistsDataSrcPer: \"Бұл кезеңге қатысты дереккөзде деректер жоқ\",\r\n pstrCntObj: \"Нысандар %{cnt}\",\r\n erMonthQuart: \"Осы кезең/кезеңдер үшін айлар/тоқсандар бойынша деректер жоқ\",\r\n erYear: \"%{year} жыл бойынша аудандар/ұйымдар бойынша деректер жоқ\",\r\n erYear2: \"Аудандар/ұйымдар бойынша деректер жоқ, олар тек Қазақстан Республикасының объектісі бойынша қалыптастырылады\",\r\n svodMonthIsObjs: \"%{razrez} бөліміне бір кесте жасау\",\r\n svodMonthIsObjs2: \"Бір уақытта бір кесте жасаңыз \",\r\n razObjs: {\r\n tit:\" бөлімінде: \",\r\n obls: \"Аймақтар\",\r\n raions: \"Аудандар\",\r\n orgs: \"Ұйымдар\"\r\n },\r\n templateTableExcel: {\r\n title: \"Excel кесте үлгілері\",\r\n cell: \"Excel бағанасы\",\r\n formul: \"Excel формуласы\",\r\n errors: {\r\n celReq: \"Excel бағанын енгізіңіз\",\r\n celFormulaReq: \"Excel формуласын енгізіңіз\",\r\n celExists: \"Мұндай баған бұрыннан бар!\",\r\n },\r\n del:\"Жою\",\r\n delFormlExcel:\"Excel формуласын жою керек пе?\"\r\n }\r\n }\r\n};","import React, { Component } from 'react'\r\nimport { connect } from 'react-redux';\r\nimport { setLocale } from 'react-redux-i18n'\r\nimport { setDefaultLocale } from \"react-datepicker\";\r\nimport ru from 'date-fns/locale/ru';\r\nimport kk from 'date-fns/locale/kk';\r\n\r\n//import './ChangeLanguageLink.css';\r\n\r\nclass ChangeLanguageLink extends Component {\r\n constructor(props) {\r\n super(props)\r\n this.changeLanguage = (e) => {\r\n e.preventDefault() // don't navigate\r\n this.props.changeLanguage(this.props.lang);\r\n if (this.props.lang[0] === 'r') {\r\n setDefaultLocale(ru);\r\n } else {\r\n setDefaultLocale(kk);\r\n }\r\n }\r\n }\r\n\r\n render() {\r\n return (\r\n \r\n )\r\n }\r\n}\r\n\r\n//ChangeLanguageLink.propTypes = {\r\n// lang: PropTypes.string.isRequired\r\n//}\r\n\r\n// this will make this.props.changeLanguage available\r\nconst mapDispatchToProps = dispatch => {\r\n // dispatch the react-redux-i18n setLocale action\r\n const changeLanguage = lang => dispatch(setLocale(lang))\r\n return { changeLanguage }\r\n}\r\n\r\n// using connect makes store.dispatch available for mapDispatchToProps\r\n// and makes sure changeLanguage is added to the component props\r\nexport default connect(null, mapDispatchToProps)(ChangeLanguageLink); \r\n//@connect(null, mapDispatchToProps)\r\n//export class ChangeLanguageLinkContainer extends ChangeLanguageLink { }","import { I18n } from 'react-redux-i18n';\r\nconst tikcs1970 = (new Date(1970, 0, 1)).getTime();\r\nexport function getTikcs() {\r\n return (new Date()).getTime() - tikcs1970;\r\n}\r\nexport const btnsMsgBox = {\r\n OK: 1,\r\n Yes: 2,\r\n No: 4,\r\n Retry: 8,\r\n Cancel: 16,\r\n Request: 32,\r\n Submit: 64,\r\n Save: 128\r\n}\r\nexport const SpObl = [\r\n { kod: '10', lat: 48.554943, lon: 58.527792, nameKz: 'Абай облысы', nameRu: 'Абайская область' },\r\n { kod: '15', lat: 48.554943, lon: 58.527792, nameKz: 'Ақтөбе облысы', nameRu: 'Актюбинская область' },\r\n { kod: '11', lat: 53.115914, lon: 72.34160, nameKz: 'Ақмола облысы', nameRu: 'Акмолинская область' },\r\n { kod: '19', lat: 44.932466, lon: 78.953177, nameKz: 'Алматы облысы', nameRu: 'Алматинская область' },\r\n { kod: '23', lat: 47.449727, lon: 52.093519, nameKz: 'Атырау облысы', nameRu: 'Атырауская область' },\r\n { kod: '27', lat: 49.710363, lon: 50.653474, nameKz: 'Батыс Қазақстан облысы', nameRu: 'Западно - Казахстанская область' },\r\n { kod: '31', lat: 44.260678, lon: 71.160436, nameKz: 'Жамбыл облысы', nameRu: 'Жамбылская область' },\r\n { kod: '33', lat: 44.260678, lon: 71.160436, nameKz: 'Жетысуская область', nameRu: 'Жетісу облысы' },\r\n { kod: '35', lat: 48.212600, lon: 70.978720, nameKz: 'Қарағанды облысы', nameRu: 'Карагандинская область' },\r\n { kod: '39', lat: 51.538478, lon: 63.984541, nameKz: 'Қостанай облысы', nameRu: 'Костанайская область' },\r\n { kod: '43', lat: 44.532092, lon: 65.794929, nameKz: 'Қызылорда облысы', nameRu: 'Кызылординская область' },\r\n { kod: '47', lat: 44.019581, lon: 53.743994, nameKz: 'Маңғыстау облысы', nameRu: 'Мангистауская область' },\r\n //{ kod: '51', lat: 43.123301, lon: 68.522537, nameKz: 'Оңтүстік Қазақстан облысы', nameRu: 'Южно - Казахстанская область' },\r\n { kod: '55', lat: 52.007516, lon: 76.264524, nameKz: 'Павлодар облысы', nameRu: 'Павлодарская область' },\r\n { kod: '59', lat: 54.645258, lon: 68.023873, nameKz: 'Солтүстік Қазақстан облысы', nameRu: 'Северо - Казахстанская область' },\r\n { kod: '61', lat: 43.259836, lon: 76.855078, nameRu: 'Түркістан', nameKz: 'Туркестанская' },\r\n { kod: '62', lat: 44.260678, lon: 71.160436, nameKz: 'Ұлытау облысы', nameRu: 'Улытауская область' },\r\n { kod: '63', lat: 48.684012, lon: 81.510883, nameKz: 'Шығыс Қазақстан облысы', nameRu: 'Восточно - Казахстанская область' },\r\n { kod: '71', lat: 51.148792, lon: 71.310570, nameRu: 'г.Астана', nameKz: 'Астана қ.' },\r\n { kod: '75', lat: 43.259836, lon: 76.855078, nameRu: 'Алматы', nameKz: 'қ.Алматы Г.А.' },\r\n { kod: '79', lat: 43.259836, lon: 76.855078, nameRu: 'Шымкент', nameKz: 'Шымкент қ.' },\r\n];\r\nexport const SpRoles = [\r\n { kod: 'EditAdmins', nameRu: 'Администраторы администраторов', nameKz: 'Әкімшілер әкімшілері', commentRu: \"Создание администраторов пользователей и данных\" },\r\n { kod: 'EditUsers', nameRu: 'Администраторы пользователей', nameKz: 'Пайдаланушы әкімшілері', commentRu: \"Создание простых пользователей\" },\r\n { kod: 'AdminEditData', nameRu: 'Администратор данных(Supervisor)', nameKz: 'Деректер әкімшісі(Supervisor)', commentRu: \"Администратор данных(ввод и редактипрование данных)\" },\r\n // { kod: 'CommonNsi', nameRu: 'Справочники', nameKz: 'Анықтамалар' },\r\n { kod: 'EditFin', nameRu: 'Учет оплаты за использование портала', nameKz: 'Порталды пайдаланғаны үшін төлемдерді есепке алу', commentRu: \"Учет оплаты за использование портала\" },\r\n { kod: 'UserEditData', nameRu: 'Ввод/Коорекция данных пользователем', nameKz: 'Пайдаланушы деректерді енгізу / түзету', commentRu: \"Ввод/Коорекция данных простым пользователем\" },\r\n { kod: 'UserReadData', nameRu: 'Только чтение данных простым пользователем', nameKz: 'Қарапайым пайдаланушының мәліметтерін ғана оқыңыз', commentRu: \"Только чтение данных простым пользователем\" }\r\n];\r\nexport const years = [/*2000, 2001, 2002,*/ 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025];\r\nexport const periods = [\r\n /* { kper: 1, nameT: \"period1\" },\r\n { kper: 2, nameT: \"period2\" },\r\n { kper: 3, nameT: \"period3\" },*/\r\n { kper: 4, nameT: \"period4\" },\r\n { kper: 10, nameT: \"period10\" },\r\n { kper: 20, nameT: \"period20\" },\r\n { kper: 21, nameT: \"period21\" },\r\n { kper: 30, nameT: \"period30\" },\r\n { kper: 31, nameT: \"period31\" },\r\n { kper: 40, nameT: \"period40\" },\r\n { kper: 101, nameT: \"period101\" },\r\n { kper: 102, nameT: \"period102\" },\r\n { kper: 103, nameT: \"period103\" },\r\n { kper: 104, nameT: \"period104\" },\r\n { kper: 105, nameT: \"period105\" },\r\n { kper: 106, nameT: \"period106\" },\r\n { kper: 107, nameT: \"period107\" },\r\n { kper: 108, nameT: \"period108\" },\r\n { kper: 109, nameT: \"period109\" },\r\n { kper: 110, nameT: \"period110\" },\r\n { kper: 111, nameT: \"period111\" },\r\n { kper: 112, nameT: \"period112\" }\r\n];\r\nexport const arTypePers = [\r\n { id: 1, nameT: \"years\" },\r\n { id: 2, nameT: \"quarter\" },\r\n { id: 3, nameT: \"months\" },\r\n { id: 4, nameT: \"quarters\" },\r\n { id: 5, nameT: \"quartersone\" }\r\n];\r\nexport const arTypeDiagram = [\r\n { id: 1, nameT: \"diagrGist\" },\r\n { id: 2, nameT: \"diagrGraph\" },\r\n { id: 3, nameT: \"diagrCircle\" },\r\n { id: 4, nameT: \"diagrline\" },\r\n { id: 5, nameT: \"diagrMap\" }\r\n];\r\nexport const version = \"2025.0.1\";\r\nexport function getTextVersion() {\r\n if (document.location.host === \"medstat.minzdrav.kz\") {\r\n return `Версия: ${version}`;\r\n } else {\r\n return `Тестовая версия: ${version}`;\r\n }\r\n}\r\nexport function getNameLocalize(i18n, object) {\r\n if (object == null) return '';\r\n if (i18n.locale[0] === 'r') {\r\n return object['nameRu'];\r\n } else {\r\n return object['nameKz'];\r\n }\r\n}\r\nexport function getNameSprLocalize(i18n, spr, kod, fldkey) {\r\n if (kod == null) return '';\r\n let k = \"kod\";\r\n if (fldkey != null)\r\n k = fldkey;\r\n let objs = spr.filter(f => f[k] === kod);\r\n if (objs.length === 0) return '';\r\n let object = objs[0];\r\n if (i18n.locale[0] === 'r') {\r\n return object['nameRu'];\r\n } else {\r\n return object['nameKz'];\r\n }\r\n}\r\nexport function getNamePeriod(kper) {\r\n if (kper == null) return '';\r\n let per = periods.filter(f => f.kper === kper);\r\n if (per.length === 0) return '';\r\n return I18n.t(per[0].nameT);\r\n}\r\nexport function getCurrentYear() {\r\n return parseInt(new Date().getFullYear(), 10);// - 1;\r\n}\r\nexport function formatDateYYYYDDMM(date) {\r\n if (date == null)\r\n return \"\";\r\n else if (date instanceof Date)\r\n ;\r\n else if (typeof date === \"string\" && date.length > 0)\r\n date = new Date(date);\r\n else\r\n return \"\";\r\n var yyyy = date.getFullYear().toString();\r\n var mm = (date.getMonth() + 1).toString();\r\n var dd = date.getDate().toString();\r\n\r\n var mmChars = mm.split('');\r\n var ddChars = dd.split('');\r\n\r\n return yyyy + '-' + (mmChars[1] ? mm : \"0\" + mmChars[0]) + '-' + (ddChars[1] ? dd : \"0\" + ddChars[0]);\r\n}\r\nexport function formatDate(date) {\r\n if (date == null)\r\n return \"\";\r\n if (date instanceof Date)\r\n return date.toLocaleDateString('ru-RU');\r\n if (typeof date === \"string\" && date.length > 0)\r\n return (new Date(date)).toLocaleDateString('ru-RU');\r\n return \"\";\r\n}\r\nexport function formatDateTime(date) {\r\n if (date == null)\r\n return \"\";\r\n if (date instanceof Date)\r\n return `${date.toLocaleDateString('ru-RU')} ${date.toLocaleTimeString('ru-RU')}`;\r\n if (typeof date === \"string\" && date.length > 0) {\r\n let dt = new Date(date);\r\n return `${dt.toLocaleDateString('ru-RU')} ${dt.toLocaleTimeString('ru-RU')}`;\r\n }\r\n return \"\";\r\n}\r\nexport const getFirstRaz = (kper, props) => {\r\n if (props.userInfo.user.accessRaz.length > 0) {\r\n if (kper === 4) {\r\n let arR = props.userInfo.user.accessRaz.filter(f => f.isGod === true);\r\n if (arR.length > 0) {\r\n return arR[0].raz;\r\n }\r\n } else {\r\n let arR = props.userInfo.user.accessRaz.filter(f => f.isMes === true);\r\n if (arR.length > 0) {\r\n return arR[0].raz;\r\n }\r\n }\r\n }\r\n return null;\r\n}\r\nexport const getFirstFormTable = (kper, props) => {\r\n let accessForm = props.userInfo.user.accessForm;\r\n if (accessForm.length > 0) {\r\n if (kper === 4) {\r\n let aform = accessForm.filter(f => f.isGod === true);\r\n if (aform.length > 0) {\r\n return { form: aform[0], table: props.nsi.allsprtab.filter(spr => spr.kf === aform[0].kf)[0] };\r\n } else {\r\n return { form: props.userInfo.user.firstFormTable.formGod, table: props.userInfo.user.firstFormTable.tableGod }\r\n }\r\n } else {\r\n let aform = accessForm.filter(f => f.isMes === true);\r\n if (aform.length > 0) {\r\n return { form: aform[0], table: props.nsi.allsprtab.filter(spr => spr.kf === aform[0].kf)[0] };\r\n } else {\r\n return { form: props.userInfo.user.firstFormTable.formMes, table: props.userInfo.user.firstFormTable.tableMes }\r\n }\r\n }\r\n } else {\r\n return { form: null, table: null };\r\n //if (kper === 4) {\r\n // return { form: props.userInfo.user.firstFormTable.formGod, table: props.userInfo.user.firstFormTable.tableGod }\r\n //} else {\r\n // return { form: props.userInfo.user.firstFormTable.formMes, table: props.userInfo.user.firstFormTable.tableMes }\r\n //}\r\n }\r\n}\r\nexport const getRazItems = (props, kper) => {\r\n const filterRaz = (accessRaz, kod) => {\r\n if (accessRaz.length > 0) {\r\n if (kper === 4) {\r\n return accessRaz.filter(f => f.isGod === true && f.raz === kod).length > 0;\r\n } else {\r\n return accessRaz.filter(f => f.isMes === true && f.raz === kod).length > 0;\r\n }\r\n }\r\n return true;\r\n }\r\n if (props.userInfo.user.accessRaz.length === 0) return props.nsi.sprraz.map(it => );\r\n if (kper === 4) {\r\n if (props.userInfo.user.accessRaz.filter(f => f.isGod === true).length === 0)\r\n return props.nsi.sprraz.map(it => );\r\n } else {\r\n if (props.userInfo.user.accessRaz.filter(f => f.isMes === true).length === 0)\r\n return props.nsi.sprraz.map(it => );\r\n }\r\n return props.nsi.sprraz.filter(f => filterRaz(props.userInfo.user.accessRaz, f.kod)).map(it => );\r\n}\r\nexport const filterForms = (accessForm, kf, kper) => {\r\n if (accessForm.length > 0) {\r\n if (kper === 4) {\r\n if (accessForm.filter(f => f.isGod === true).length === 0) return true;\r\n return accessForm.filter(f => f.isGod === true && f.kf === kf).length > 0;\r\n } else {\r\n if (accessForm.filter(f => f.isMes === true).length === 0) return true;\r\n return accessForm.filter(f => f.isMes === true && f.kf === kf).length > 0;\r\n }\r\n }\r\n return true;\r\n}\r\nexport const filterRazdels = (sprForm, accessForm, krazd, kper) => {\r\n if (accessForm.length > 0) {\r\n if (kper === 4) {\r\n return sprForm.filter(spr => spr.razdels.length > 0 && spr.razdels.includes(krazd) &&\r\n (accessForm.filter(f => f.isGod === true).length === 0 || accessForm.filter(f => f.isGod === true && f.kf === spr.kf).length > 0)\r\n ).length > 0;\r\n } else {\r\n return sprForm.filter(spr => spr.razdels.length > 0 && spr.razdels.includes(krazd) &&\r\n (accessForm.filter(f => f.isMes === true).length === 0 || accessForm.filter(f => f.isMes === true && f.kf === spr.kf).length > 0)\r\n ).length > 0;\r\n }\r\n } else {\r\n return sprForm.filter(spr => spr.razdels.length > 0 && spr.razdels.includes(krazd)).length > 0;\r\n }\r\n //return true;\r\n}\r\nexport const forms12Quart = [\"70\",\"71\",\"72\",\"73\",\"74\"];\r\n//export function filterRaz(kod){\r\n// return kod === 3 || kod === 4 || kod === 5 || kod === 6 || kod === 12;\r\n//}\r\n","export default __webpack_public_path__ + \"static/media/Download_on_the_App_Store_Badge_RU.2ac2876e.svg\";","export default __webpack_public_path__ + \"static/media/Download_on_the_App_Store_Badge_US.8c4986ee.svg\";","export default __webpack_public_path__ + \"static/media/GetItOnGooglePlay_Badge_Web_color_Kazakh.ad97d195.png\";","import React, { Component, Fragment } from 'react';\r\n//import { Link } from 'react-router-dom';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\n\r\nimport { Row, Col } from 'react-bootstrap';\r\n//import { Redirect } from 'react-router';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\n\r\nimport ChangeLanguageLink from './ChangeLanguageLink';\r\n\r\nimport { actionCreators } from '../store/UserInfo';\r\nimport './LoginPage.css';\r\nimport { getTextVersion } from './Constants';\r\nimport appStoreRu from '../images/Download_on_the_App_Store_Badge_RU.svg';\r\nimport appStoreEn from '../images/Download_on_the_App_Store_Badge_US.svg';\r\nimport goolePlayKz from '../images/GetItOnGooglePlay_Badge_Web_color_Kazakh.png';\r\nimport goolePlayRu from '../images/GetItOnGooglePlay_Badge_Web_color_Russian.png';\r\n\r\nimport './LoginPage.css';\r\n\r\nclass LoginPage extends Component {\r\n\r\n constructor(props) {\r\n super(props);\r\n // reset login status\r\n //this.props.logout();\r\n this.state = {\r\n username: '',\r\n password: '',\r\n submitted: false\r\n };\r\n this.handleChangePassword = this.handleChangePassword.bind(this);\r\n this.handleChangeUserName = this.handleChangeUserName.bind(this);\r\n this.handleSubmit = this.handleSubmit.bind(this);\r\n this.showHidePass = this.showHidePass.bind(this);\r\n this.getNomerObiav = this.getNomerObiav.bind(this);\r\n }\r\n componentWillMount() {\r\n document.body.style.backgroundImage = \"url('/images/statistics-1020319__340.png')\";\r\n }\r\n componentWillUnmount() {\r\n document.body.style.backgroundImage = \"none\";\r\n }\r\n handleChangeUserName(e) {\r\n let value = e.target.value;\r\n this.setState({ username: value });\r\n }\r\n handleChangePassword(e) {\r\n let value = e.target.value;\r\n this.setState({ password: value });\r\n }\r\n\r\n handleSubmit(e) {\r\n e.preventDefault();\r\n this.setState({ submitted: true });\r\n let { username, password } = this.state;\r\n //const { dispatch } = this.props;\r\n if (username && password) {\r\n //dispatch(userActions.login(username, password));\r\n this.props.login({ UserName: username, UserPassword: password });\r\n }\r\n }\r\n showHidePass(e) {\r\n e.preventDefault();\r\n var x = document.getElementById(\"password\");\r\n if (x.type === \"password\") {\r\n x.type = \"text\";\r\n } else {\r\n x.type = \"password\";\r\n }\r\n }\r\n getNomerObiav() {\r\n if (this.props.i18n.locale[0] === 'r')\r\n return <> office@medinfo.kz ;\r\n else\r\n return <> office@medinfo.kz ; \r\n }\r\n render() {\r\n //const loggingIn = this.props.user !== undefined ? true : false;\r\n /* if (this.props.loggingIn===true) {\r\n return ;\r\n }\r\n */\r\n const { username, password, submitted } = this.state;\r\n //className=\"col-md-6 col-md-offset-3 small\" className=\"text-right\" style={{ padding:'3px' }}\r\n //
\r\n return (\r\n \r\n \r\n
\r\n
\r\n
\r\n {' '}\r\n \r\n
\r\n {/*

*/}\r\n
\r\n
\r\n \r\n \r\n {submitted && !username &&\r\n
\r\n }\r\n
\r\n
\r\n \r\n
\r\n \r\n \r\n \r\n \r\n
\r\n {submitted && !password &&\r\n
\r\n }\r\n
\r\n {this.props.userInfo.isLoading ?
{I18n.t('wait')}{' '}
: ''}\r\n {this.props.userInfo.error !== undefined ?
{this.props.userInfo.error}
: ''}\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n {getTextVersion()}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

\r\n
\r\n {I18n.t('login.appStore')}\r\n {I18n.t('login.googlePlay')}\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n :\r\n
    \r\n
  1. ;
  2. \r\n
  3. ;
  4. \r\n
  5. ;
  6. \r\n
  7. \r\n office@medinfo.kz :\r\n
      \r\n
    • ;
    • \r\n
    • ;
    • \r\n
    \r\n
  8. \r\n
  9. \r\n :\r\n
      \r\n
    • \r\n
    • \r\n
    • \r\n
    • {this.getNomerObiav()}
    • \r\n
    \r\n
  10. \r\n
  11. \r\n :\r\n
      \r\n
    • \r\n
    • \r\n
    \r\n
  12. \r\n
\r\n
\r\n
: 8-727-241-13-07, 8-727-241-12-16
\r\n \r\n \r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n

\r\n
    \r\n
  • \r\n
  • \r\n
  • \r\n
  • \r\n
\r\n

\r\n
    \r\n
  • \r\n
  • \r\n
  • \r\n
\r\n
\r\n \r\n
\r\n
\r\n );\r\n }\r\n}\r\n/*\r\n *
\r\n \r\n
\r\n */\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators(actionCreators, dispatch)\r\n)(LoginPage);\r\n","export default \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQ4AAABQCAYAAADoQpuWAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAE09JREFUeNrsnV2MVVcVx/d8tOqUhqFCSUgIkNIYxlponT5oK9CWB2lqAemL88BHrLb60EJrfHIKiCZV0gDWtFRrClZHE21LjREfmgCN9EEnBaqCEeowJdbSwQwUilag4/kdWeNmzz5f955z59x71z/ZuR/nnH322Wev/15r7bX3bjEx6Ovrmxd8LAxSp1EoFM2EY0Ha09PTc8x3sCWCMFYFH+uCNFPrT6FoauwM0oaAQA5EEkdAGGgWu4OEpmEGBwdNf39/+Hnu3DmtQoWiCTB58mTT1dVluru7TUdHh/wNeawfQxwBaaBd7McsgSiee+45c+jQIa1FhaJJAWksXrzYLF++XP7aHpDH6lHisDUNNIxt27aphqFQKEL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Go9+DHy8LDbYcR5BenYDanaCEfZrjLtOhNpymQLET4a2wdDHEO19VltWccD1DFlr6Tc7tIK1G+RK+MHpkqYcneOfvbVR8yM6VMzXYNWgTnCSEmzoKjGnWfEYyWEJuHSxGhI1GzU3AubNKolznpeorGaZ6/lEGyhpsrTb2bzRxCHgR+jmUijUYF3n+FkGbZNWp3KVe0V2eBb3rFW2zPkThxibqTxY9zx+z+H59a7H0Pxf23HHoqFHNyFa/juW6Kw8OHDBoQbJFYrbaMQ4hAtYuXrR73zRoRYCBMnNkPROMCh55oMEMTw8HDozyBmge8uadRiN/pGg7sQscR01AqFBYAR4Um64eoOc8OEjlHSaAbHZzMDx5wvijUqElJ2uVNkgzuZrdaT+goPOUerQAMhKWk0h7mSdkWsssVY1At8i1zX0kwpVONQNDd5EO9BHAcN3LcCPKShm1VVR87271qvyaLEoSgMaVY4U1RGHOPtE2rV16BQKComjo6ODq0NhUKRmjhCz1RXV5fWhkKhiIUsCQlxhAsldHd3a60oFIpIYJWIggFxhDGq8+fPN1OmTNHaUSgUXixevFhcGttbe3p6MFXCte4eeOABrR2FQuE1USCOS9gqzlG2xDo2Z84cJQ+FQjGGNHp7e0Xb2BIoGwdGF0Do6+sjRpi1OToPHz5stm3bZoaGhrTWFIomBi6MFStWjJooAWmES5NdtnLKJfJgVZBwokF/f3+YTp48qTWoUDQRsD4cv+coaYwhjkvkwRxopi8yZ7dTq1ChaGrsCdKGgDT22H/+V4ABAE0QqlWriDsSAAAAAElFTkSuQmCC\"","import React, { Component, Fragment } from 'react';\r\nimport './License.css';\r\nexport default class License extends Component {\r\n render() {\r\n return \r\n
\r\n
\r\n
\r\n
Оформление лицензионного соглашения
\r\n
\r\n Для заключения договора о лицензионном соглашении с ТОО “Мединформ” необходимо:\r\n
    \r\n
  1. Скачать, заполнить и подписать договор о лицензионном соглашении;
  2. \r\n
  3. Скачать авторское свидетельство;
  4. \r\n
  5. Оплатить стоимость Годовой Лицензии;
  6. \r\n
  7. \r\n Отправить по электронной почте office@medinfo.kz электронные документы:\r\n
      \r\n
    • Копию подписанного договора о лицензионном соглашении;
    • \r\n
    • Документ, подтверждающий оплату Годовой Лицензии(платежное поручение, банковская квитанция, чек или выписка из интернет-банкинга);
    • \r\n
    \r\n
  8. \r\n
  9. \r\n Для заключения договора на портале Государственных закупок :\r\n \r\n
  10. \r\n
\r\n
Доступ к порталу \"Медстат\" будет предоставлен после оплаты Годовой Лицензии
\r\n
Контактные телефоны: 8-727-241-13-07, 8-727-241-12-16
\r\n
Вход в портал https://medstat.minzdrav.kz/
\r\n
Скачать инструкцию по работе в портале \"Медстат\", \"Мединфо\" https://medstat.minzdrav.kz/downloads/instruction.pdf
\r\n
\r\n
\r\n
\r\n
;\r\n }\r\n}\r\n////
ТОО \"Мединформ\"
\r\n","import React, { Component } from 'react';\r\n//import { createBrowserHistory } from 'history';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { Translate } from 'react-redux-i18n';\r\nimport ChangeLanguageLink from './ChangeLanguageLink';\r\nimport { Nav, NavItem, Navbar, MenuItem } from 'react-bootstrap';\r\nimport { Link } from 'react-router-dom';\r\nimport { LinkContainer } from 'react-router-bootstrap';\r\n\r\nimport { actionCreators } from '../store/UserInfo';\r\nimport { version } from '../components/Constants';\r\nimport './UserInfo.css';\r\n\r\nconst baseUrl = document.getElementsByTagName('base')[0].getAttribute('href');\r\n/*\r\nconst history = createBrowserHistory({ basename: baseUrl });\r\nconst location = {\r\n pathname: baseUrl,\r\n state: { fromDashboard: true }\r\n}\r\n*/\r\nclass UserInfo extends Component {\r\n handleOnClick(e) {\r\n e.preventDefault();\r\n this.props.logout();\r\n //history.push(location);\r\n // history.replace(location);\r\n //history.location = { pathname: '/' };\r\n window.location.href = baseUrl;\r\n //window.location.reload();\r\n }\r\n render() {\r\n return (\r\n \r\n );\r\n }\r\n}\r\n\r\n\r\nexport default connect(\r\n state => state.userInfo,\r\n dispatch => bindActionCreators(actionCreators, dispatch)\r\n)(UserInfo);\r\n\r\n/*\r\n style={{ textDecoration: \"none\", color: \"#777\", backgroundColor: \"#ffffff\" }}\r\n\r\n
\r\n

{this.props.user !== undefined ? :''}

\r\n

\r\n

\r\n \r\n
\r\n */","import React, { Fragment } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { Nav, NavDropdown, MenuItem/*, NavItem*/, Navbar } from 'react-bootstrap';\r\nimport { LinkContainer } from 'react-router-bootstrap';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\n//import { Link } from 'react-router-dom';\r\nimport { actionCreators as actionUserInfo } from '../store/UserInfo';\r\n//import { actionCreators as actionCreatorsNsi } from '../store/Nsi';\r\n\r\n//import './NavMenu.css';\r\nconst NavMainMenu = props => {\r\n let user = props.userInfo.user;\r\n //let accessLevel = props.userInfo.user.accessLevel;// 1 – РК; 2 – область; 3 - район; 4 - организация;\r\n let isAdmins = false;\r\n //let isEditAdmins = false;\r\n let isAdminAdmins = false;\r\n //let isEditUsers = false;\r\n let isAdminEditData = false;\r\n let isEditFin = false;\r\n let isCommonNsi = false;\r\n let isUserEditData = false;\r\n let typeUser = undefined;\r\n let isSvod = undefined;\r\n let isAdmChildOrgs = false;\r\n let serverDtMonth = -1;\r\n let isReadOnLy = false;\r\n let dt = props.userInfo.user.serverDt;\r\n if (dt instanceof Date)\r\n serverDtMonth = dt.getMonth() + 1;\r\n else if (typeof dt === \"string\" && dt.length > 0)\r\n serverDtMonth = new Date(dt).getMonth() + 1;\r\n if (user) {\r\n typeUser = user.typeUser\r\n for (var i in user.roles) {\r\n let role = user.roles[i];\r\n if (role === 'EditAdmins') {\r\n isAdminAdmins = true;\r\n }\r\n if (role === 'EditAdmins' ||\r\n role === 'EditUsers') {\r\n isAdmins = true;\r\n continue;\r\n }\r\n if (role === 'AdminEditData') {\r\n isAdminEditData = true;\r\n }\r\n if (role === 'CommonNsi') {\r\n isCommonNsi = true;\r\n }\r\n if (role === 'EditFin') {\r\n isEditFin = true;\r\n }\r\n if (role === 'UserEditData' || role === 'UserReadData') {\r\n isUserEditData = true;\r\n }\r\n }\r\n isReadOnLy = user.roles.filter(r => r === 'UserReadData').length > 0;\r\n isSvod = typeUser !== 4;\r\n isAdmChildOrgs = (user.nomenklKod === '008' || user.nomenklKod === '049' || user.nomenklKod === '043');//редактирование списка дочерних организаций ВА, СВА, ФП для ЦРБ\r\n } else\r\n isReadOnLy = true;\r\n /* if (isUserEditData === true || isAdminEditData === true) {\r\n if (props.nsi.allsprtab.length === 0) {\r\n props.getNs('allsprtab');\r\n }\r\n if (props.nsi.sprform.length === 0) {\r\n props.getNs('sprform');\r\n }\r\n if (props.nsi.periods.length === 0) {\r\n props.getNs('periods');\r\n }\r\n if (props.nsi.sprraz.length === 0) {\r\n props.getNs('sprraz');\r\n }\r\n }\r\n */\r\n // let admTitle = I18n.t('adm');\r\n // console.info(I18n.t('work'));\r\n let workTitle = I18n.t('work');\r\n let finTitle = I18n.t('finTitle');\r\n let medinfoTitle = I18n.t('medinfoTitle');\r\n return ();\r\n}\r\n/*\r\n * \r\n * \r\n * \r\n \r\n\r\n */\r\nexport default connect(\r\n state => state/*.userInfo*/,\r\n dispatch => bindActionCreators(/*{ ...*/actionUserInfo/*, ...actionCreatorsNsi }*/, dispatch)\r\n)(NavMainMenu);","import React, { Component, Fragment } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\n//import { Col, Grid, Row } from 'react-bootstrap';\r\nimport { Navbar } from 'react-bootstrap';\r\nimport { Link } from 'react-router-dom';\r\nimport { Translate } from 'react-redux-i18n';\r\n\r\nimport IdleTimer from 'react-idle-timer';\r\n\r\nimport { actionCreators } from '../store/UserInfo';\r\nimport LoginPage from './LoginPage';\r\nimport License from './License';\r\n//import Register from './Register';\r\nimport UserInfo from './UserInfo';\r\nimport NavMenu2 from './NavMenu2';\r\nimport './Layout.css';\r\nimport { getTextVersion } from './Constants';\r\n\r\nclass Layout extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.idleTimer = null;\r\n this.onIdle = this._onIdle.bind(this);\r\n }\r\n _onIdle(e) {\r\n this.props.logout();\r\n }\r\n /*\r\n login(data) {\r\n this.props.login(data);\r\n }\r\n logout() {\r\n //this.props.logout();\r\n localStorage.removeItem('user_medstat');\r\n }*/\r\n goToLoginOrLicense() {\r\n //console.dir(document.location.pathname);\r\n if (document.location.pathname === \"/license\") {\r\n return ;\r\n } /*else if (document.location.pathname === \"/register\") {\r\n return ;\r\n }\r\n */\r\n return ;\r\n }\r\n render() {\r\n let loggingIn = false;\r\n let userJson = localStorage.getItem('user_medstat');\r\n let user = undefined;\r\n if (userJson !== null) {\r\n user = JSON.parse(userJson);\r\n let expidred = new Date(user.tokenExpires);\r\n let now = new Date();\r\n if (expidred.getTime() - now.getTime() > 0) {\r\n loggingIn = true;\r\n } else {\r\n this.props.logout();\r\n }\r\n }\r\n\r\n //this.props.loggingIn\r\n return ( { this.idleTimer = ref }}\r\n element={document}\r\n onIdle={this.onIdle}\r\n timeout={1000 * 60 * 29}>\r\n {loggingIn === true ?\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n {this.props.children}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {user !== undefined ? {user.kodOrg} {user.nameOrg} : ''}
\r\n
\r\n
\r\n
{getTextVersion()}
\r\n
\r\n
\r\n
\r\n
\r\n
:\r\n
{this.goToLoginOrLicense()}
}\r\n
);\r\n }\r\n}\r\nexport default connect(\r\n state => state.userInfo,\r\n dispatch => bindActionCreators(actionCreators, dispatch)\r\n)(Layout);","import React, { Fragment }/*, { useEffect}*/ from 'react';\r\n//import { connect } from 'react-redux';\r\nimport { Link } from 'react-router-dom';\r\nimport { Translate/*, I18n*/ } from 'react-redux-i18n';\r\n\r\nimport './HomeMenu.css';\r\nconst HomeMenu = (props) => {\r\n //useEffect(() => {\r\n // document.body.style.backgroundImage = \"url('/images/home-background.png')\";\r\n // return () => {\r\n // document.body.style.backgroundImage = \"none\";\r\n // }\r\n //}, []);\r\n //style={{ backgroundImage: `url(${process.env.PUBLIC_URL +'/home-background.png'})`}}\r\n //style={{ backgroundImage: `url(${image})` }}\r\n let user = props.user;\r\n //let accessLevel = props.userInfo.user.accessLevel;// 1 – РК; 2 – область; 3 - район; 4 - организация;\r\n let isAdmins = false;\r\n //let isEditAdmins = false;\r\n let isAdminAdmins = false;\r\n //let isEditUsers = false;\r\n let isAdminEditData = false;\r\n let isEditFin = false;\r\n let isCommonNsi = false;\r\n let isUserEditData = false;\r\n let typeUser = undefined;\r\n let isSvod = undefined;\r\n let isAdmChildOrgs = false;\r\n let serverDtMonth = -1;\r\n let isReadOnLy = false;\r\n let dt = props.user.serverDt;\r\n if (dt instanceof Date)\r\n serverDtMonth = dt.getMonth() + 1;\r\n else if (typeof dt === \"string\" && dt.length > 0)\r\n serverDtMonth = new Date(dt).getMonth() + 1;\r\n if (user) {\r\n typeUser = user.typeUser\r\n for (var i in user.roles) {\r\n let role = user.roles[i];\r\n if (role === 'EditAdmins') {\r\n isAdminAdmins = true;\r\n }\r\n if (role === 'EditAdmins' ||\r\n role === 'EditUsers') {\r\n isAdmins = true;\r\n continue;\r\n }\r\n if (role === 'AdminEditData') {\r\n isAdminEditData = true;\r\n }\r\n if (role === 'CommonNsi') {\r\n isCommonNsi = true;\r\n }\r\n if (role === 'EditFin') {\r\n isEditFin = true;\r\n }\r\n if (role === 'UserEditData' || role === 'UserReadData') {\r\n isUserEditData = true;\r\n }\r\n }\r\n isSvod = typeUser !== 4;\r\n isReadOnLy = user.roles.filter(r => r === 'UserReadData').length > 0;\r\n isAdmChildOrgs = (user.nomenklKod === '008' || user.nomenklKod === '049' || user.nomenklKod === '043');//редактирование списка дочерних организаций ВА, СВА, ФП для ЦРБ\r\n } else\r\n isReadOnLy = true;\r\n return \r\n {isUserEditData === true || isAdminEditData === true ? \r\n
\r\n

\r\n
    \r\n\r\n
  • \r\n
  • \r\n
  • \r\n {isReadOnLy != true && user.accessLevel === 2 ? <>
  • \r\n
  • : \"\"}\r\n {isReadOnLy != true && (user.accessLevel === 1 && typeUser === 5) ? <>
  • \r\n
  • : \"\"}\r\n
  • \r\n
  • \r\n
  • \r\n {isReadOnLy != true ?
  • : \"\"}\r\n {isReadOnLy != true && (user.accessLevel === 2 || user.accessLevel === 3 || user.accessLevel === 4) ?
  • : \"\"}\r\n {/*{isAdmChildOrgs === true ?
  • : \"\"}*/}\r\n {user.accessLevel === 2 ?
  • : \"\"}\r\n {isReadOnLy != true && (user.accessLevel === 1 || user.accessLevel === 2) ?
  • : \"\"}\r\n {isReadOnLy != true && user.accessLevel === 2 ?
  • : \"\"}\r\n {isReadOnLy != true && (user.accessLevel === 1 || user.accessLevel === 2) ?
  • : \"\"}\r\n
\r\n
\r\n {isReadOnLy != true ?
\r\n

\r\n
    \r\n
  • \r\n
  • \r\n
  • \r\n
\r\n
: \"\"}\r\n {isReadOnLy != true && (user.accessLevel === 1 || user.accessLevel === 2) ?
\r\n

\r\n
    \r\n
  • \r\n
  • \r\n
\r\n
: \"\"}\r\n {isReadOnLy != true ?
\r\n

\r\n
    \r\n
  • \r\n {isSvod === true ? \r\n {user.accessLevel !== 4 ?
  • : \"\"}\r\n
  • \r\n {user.accessLevel < 4 ?
  • : \"\"}\r\n
  • \r\n {user.accessLevel < 4 ?
  • : \"\"}\r\n
  • \r\n {isAdmChildOrgs === true ?
  • : \"\"}\r\n {user.accessLevel === 2 ?
  • : \"\"}\r\n {user.accessLevel < 4 ?
  • : \"\"}\r\n
    : \"\"}\r\n
  • \r\n {((user.accessLevel === 4 || isAdmChildOrgs === true) && serverDtMonth === 1) ?
  • : \"\"}\r\n
\r\n
: \"\"}\r\n
\r\n

\r\n
    \r\n
  • \r\n
  • \r\n
\r\n
\r\n
: \"\"}\r\n {isAdmins === true || isCommonNsi === true || isAdminEditData === true /*|| accessLevel === 2*/ /*|| isAdmChildOrgs === true*/ ?
\r\n

\r\n
    \r\n {isAdmins === true ?
  • {isAdminAdmins === true ? : }
  • : \"\"}\r\n {isAdminEditData && user.accessLevel === 1 ? \r\n
  • \r\n
  • \r\n
  • \r\n
  • \r\n
  • \r\n
  • \r\n
    : \"\"}\r\n {/*{isAdmChildOrgs === true ?
  • : \"\"}*/}\r\n
: \"\"}\r\n {isAdminEditData && user.accessLevel === 1 ?
\r\n

\r\n
    \r\n
  • \r\n
  • \r\n
  • \r\n
  • \r\n
: \"\"}\r\n {isEditFin === true ?
\r\n

\r\n
    \r\n
  • \r\n
  • \r\n
  • \r\n
: \"\"}\r\n\r\n
\r\n};\r\nexport default HomeMenu;\r\n//export default connect(state => state.userInfo)(HomeMenu);\r\n","import React/*, { useEffect}*/ from 'react';\r\nimport { connect } from 'react-redux';\r\nimport { Alert } from 'react-bootstrap';\r\nimport { Translate/*, I18n*/ } from 'react-redux-i18n';\r\n//import image from \"../images/home-background.jpg\";\r\nimport HomeMenu from './HomeMenu';\r\nimport './Home.css';\r\nconst Home = (props) => {\r\n //useEffect(() => {\r\n // document.body.style.backgroundImage = \"url('/images/home-background.png')\";\r\n // return () => {\r\n // document.body.style.backgroundImage = \"none\";\r\n // }\r\n //}, []);\r\n //style={{ backgroundImage: `url(${process.env.PUBLIC_URL +'/home-background.png'})`}}\r\n //style={{ backgroundImage: `url(${image})` }}\r\n if (props.user.warningPaidDays === 0) return
;\r\n\r\n if (props.user.warningPaidDays === -1)\r\n return
\r\n {props.user.warningPaidDays != null ? : \"\"}\r\n
\r\n else\r\n return
\r\n {props.user.warningPaidDays != null ? : \"\"}\r\n
\r\n};\r\n\r\nexport default connect(state => state.userInfo)(Home);\r\n\r\n/*\r\n

�������

\r\n

\r\n ������� ������������ ����������� �������������� �������� ���� �� ������������ ����������� �����������.\r\n ������������� ������ ������ ������ ����� �������������� ����� (��������������� ��������).\r\n ������������ ������ ����� ������� ������� (������������ ��������).\r\n������������ ������ ����� ������� � � ���������� ����������� ����� (���������� ��������).

\r\n\r\n */","import React, { Component, Fragment } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { FormGroup, FormControl, ControlLabel, Row, Col, Checkbox } from 'react-bootstrap';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\n\r\n//import SelectOrgModal from '../Modals/SelectOrgModal';\r\nimport { Typeahead } from 'react-bootstrap-typeahead';\r\n\r\nimport { actionCreators } from '../../store/Nsi';\r\n\r\nimport { getNameLocalize } from '../Constants';\r\n\r\nclass SelectObject extends Component {\r\n constructor(props) {\r\n super(props);\r\n let kobl, kraion, korg;\r\n let accessLevel = props.userInfo.user.accessLevel;\r\n //var self = this;\r\n if (props.obl == null) {\r\n kobl = props.userInfo.user.kodObl;\r\n props.setObl({ kobl, nameRu: props.userInfo.user.nameObl, nameKz: props.userInfo.user.nameOblKz });\r\n if (props.userInfo.user.nomenklKod === \"008\" || props.userInfo.user.nomenklKod === \"049\" || props.userInfo.user.nomenklKod === \"043\") {\r\n this.props.getNs('orgs', [{ name: \"obl\", value: kobl }, { name: \"parent_kod\", value: props.userInfo.user.kodOrg }]);\r\n } else {\r\n this.props.getNs('orgs', [{ name: \"obl\", value: kobl }]);\r\n }\r\n } else {\r\n kobl = props.obl.kobl;\r\n }\r\n if (props.raion == null) {\r\n kraion = props.userInfo.user.kodRaion.substring(0, 4);\r\n props.setRaion({ kraion, nameRu: props.userInfo.user.nameRaion, nameKz: props.userInfo.user.nameRaionKz });\r\n } else {\r\n kraion = props.raion.kraion;\r\n }\r\n let org = null;\r\n if (props.isNotOrg !== true) {\r\n if (props.org == null) {\r\n korg = props.userInfo.user.kodOrg;\r\n org = { korg, nameRu: props.userInfo.user.nameOrg, nameKz: props.userInfo.user.nameOrgKz };\r\n props.setOrg(org);\r\n } else {\r\n korg = props.org.korg;\r\n }\r\n }\r\n /*\r\n tobj={this.state.tobj}\r\n obl={this.state.obl}\r\n raion={this.state.raion}\r\n org={this.state.org}\r\n */\r\n let tobj = props.tobj == null ? props.userInfo.user.accessLevel : props.tobj;\r\n this.state = {\r\n kobl,\r\n kraion,\r\n korg,\r\n accessLevel,\r\n selectOrg: org,\r\n tobj: tobj, // тип обьекта 1 – РК; 2 – область; 3 - район; 4 - организация (доступ зависит от пользователя)\r\n isAllRaions: false\r\n }\r\n\r\n this.typeahead = null;\r\n this.onSelectTobj = this.onSelectTobj.bind(this);\r\n this.onSelectKobl = this.onSelectKobl.bind(this);\r\n this.onSelectKraion = this.onSelectKraion.bind(this);\r\n this.filterObl = this.filterObl.bind(this);\r\n this.onChangeOrg = this.onChangeOrg.bind(this);\r\n this.onCheckIsAllRaions = this.onCheckIsAllRaions.bind(this);\r\n this.filterRaion = this.filterRaion.bind(this);\r\n if (props.nsi.allobls.length === 0) {\r\n props.getNs('allobls');\r\n }\r\n\r\n if (props.nsi.allraions.length === 0) {\r\n props.getNs('allraions');\r\n /*.finally(() => {\r\n self.setState({\r\n kobl: props.userInfo.user.kodObl,\r\n kraion: props.userInfo.user.kodRaion.substring(0, 4),\r\n korg: props.userInfo.user.kodOrg\r\n });\r\n });*/\r\n }\r\n }\r\n /*\r\n componentWillMount() {\r\n // This method runs when the component is first added to the page\r\n \r\n \r\n }\r\n */\r\n componentWillReceiveProps(nextProps) {\r\n // This method runs when incoming props (e.g., route params) change\r\n if (this.typeahead != null)\r\n this.typeahead.getInstance().clear();\r\n }\r\n filterRaion(rai, year) {\r\n if (year == null) return true;\r\n let ye = typeof year === 'string' ? parseInt(year, 10) : year;\r\n let dtBeg = rai.dtBeg == null ? null : new Date(rai.dtBeg);\r\n if (dtBeg != null && dtBeg.getFullYear() > ye) return false;\r\n let dtEnd = rai.dtEnd == null ? null : new Date(rai.dtEnd);\r\n if (dtEnd != null && ye >= dtEnd.getFullYear()) return false;\r\n return true;\r\n }\r\n onSelectTobj(e) {\r\n let tobj = parseInt(e.target.value, 10);\r\n if (tobj != 4)\r\n this.setState({ tobj, isAllRaions: false });\r\n else\r\n this.setState({ tobj });\r\n this.props.setTobj(tobj);\r\n }\r\n onSelectKobl(e) {\r\n let kobl = e.target.value;\r\n let first_raion = this.props.nsi.allraions.filter(r => r.obl === kobl);\r\n this.setState({\r\n kobl,\r\n kraion: first_raion === undefined || first_raion.length === 0 ? undefined : first_raion[0].idRaion,\r\n korg: undefined\r\n });\r\n if (first_raion != null || first_raion.length > 0) {\r\n this.props.setRaion({ kraion: first_raion[0].idRaion, nameRu: first_raion[0].nameRu });\r\n }\r\n let nameRu = this.props.nsi.allobls.filter(r => r.kod === kobl)[0].nameRu;\r\n this.props.setObl({ kobl, nameRu });\r\n if (this.state.tobj > 3) {\r\n this.typeahead.getInstance().clear();\r\n //загрузить организации\r\n if (this.props.userInfo.user.nomenklKod === \"008\" || this.props.userInfo.user.nomenklKod === \"049\" || this.props.userInfo.user.nomenklKod === \"043\") {\r\n this.props.getNs('orgs', [{ name: \"obl\", value: kobl }, { name: \"parent_kod\", value: this.props.userInfo.user.kodOrg }]);\r\n } else {\r\n this.props.getNs('orgs', [{ name: \"obl\", value: kobl }]);\r\n }\r\n }\r\n }\r\n onSelectKraion(e) {\r\n let kraion = e.target.value;\r\n this.setState({\r\n kraion,\r\n korg: undefined\r\n });\r\n if (this.state.tobj > 3) {\r\n this.typeahead.getInstance().clear();\r\n }\r\n let nameRu = this.props.nsi.allraions.filter(r => r.idRaion === kraion)[0].nameRu;\r\n this.props.setRaion({ kraion, nameRu });\r\n }\r\n onChangeOrg(selected) {\r\n if (selected.length > 0) {\r\n let korg = selected[0].kobj;\r\n let selectOrg = { korg, nameRu: selected[0].nameRu }\r\n let nameRu = this.props.nsi.allraions.filter(r => r.idRaion === selected[0].raion)[0].nameRu;\r\n this.setState({ korg, selectOrg, kraion: selected[0].raion });\r\n this.props.setRaion({ kraion: selected[0].raion, nameRu });\r\n this.props.setOrg(selectOrg);\r\n return;\r\n }\r\n this.setState({ korg: undefined, selectOrg: undefined });\r\n this.props.setOrg(undefined);\r\n }\r\n filterObl(f) {\r\n if (this.props.year == null) return true;\r\n let ye = typeof this.props.year === 'string' ? parseInt(this.props.year, 10) : this.props.year;\r\n let dtBeg = f.dtBeg == null ? null : new Date(f.dtBeg);\r\n if (dtBeg != null && dtBeg.getFullYear() > ye) return false;\r\n let dtEnd = f.dtEnd == null ? null : new Date(f.dtEnd);\r\n if (dtEnd != null && ye >= dtEnd.getFullYear()) return false;\r\n return true;\r\n }\r\n showSelectObl() {\r\n let cssDispl = this.state.tobj > 1 ? \"block\" : \"none\";\r\n return \r\n \r\n \r\n {':'}\r\n \r\n {this.state.accessLevel > 1 ?
{this.state.kobl} {this.props.i18n.locale[0] === 'r' ? this.props.userInfo.user.nameObl : this.props.userInfo.user.nameOblKz}
:\r\n \r\n {this.props.nsi.allobls.filter(f => this.filterObl(f)).map(it => )}\r\n }\r\n \r\n
\r\n
;\r\n }\r\n onCheckIsAllRaions(e) {\r\n this.setState({ isAllRaions: e.target.checked });\r\n }\r\n //showSelectRaions() {\r\n // let cssDispl = this.state.tobj > 2 ? \"block\" : \"none\";\r\n // return \r\n // \r\n // {':'}\r\n // \r\n // \r\n // {this.state.accessLevel > 2 ?
{this.state.kraion} {this.props.i18n.locale[0] === 'r' ? this.props.userInfo.user.nameRaion : this.props.userInfo.user.nameRaionKz}
:\r\n // \r\n // {this.props.nsi.allraions.filter(r => r.obl === this.state.kobl).map(it => )}\r\n // }\r\n //
\r\n // {this.state.tobj === 4 ? \r\n // \r\n // \r\n // : \"\"}\r\n // \r\n // \r\n //
;\r\n //}\r\n showSelectRaions() {\r\n let cssDispl = this.state.tobj > 2 ? \"block\" : \"none\";\r\n return \r\n \r\n \r\n {':'}\r\n \r\n {this.state.accessLevel > 2 ? {this.state.kraion} {this.props.i18n.locale[0] === 'r' ? this.props.userInfo.user.nameRaion : this.props.userInfo.user.nameRaionKz} :\r\n \r\n {this.props.nsi.allraions.filter(r => r.obl === this.state.kobl && this.filterRaion(r, this.props.year)).map(it => )}\r\n }\r\n {this.state.tobj === 4 && this.state.accessLevel < 3 ? \r\n : \"\"}\r\n \r\n \r\n ;\r\n }\r\n showSelectOrgs() {\r\n let cssDispl = (this.state.tobj > 3 || this.state.accessLevel > 3) ? \"block\" : \"none\";\r\n\r\n return \r\n \r\n \r\n {':'}\r\n \r\n {this.state.accessLevel > 3 ?
{this.state.korg} {this.props.i18n.locale[0] === 'r' ? this.props.userInfo.user.nameOrg : this.props.userInfo.user.nameOrgKz}
:\r\n this.typeahead = ref}\r\n labelKey={this.props.i18n.locale[0] === 'r' ? \"nameRu\" : \"nameKz\"}\r\n options={this.props.userInfo.user.nomenklKod === \"043\" || this.state.isAllRaions === true ? this.props.nsi.orgs : this.props.nsi.orgs.filter(o => o.raion === this.state.kraion)}\r\n placeholder={`${I18n.t(\"selectOrg\")}...`}\r\n onChange={this.onChangeOrg} />

{this.props.org == null ? \"\" : this.props.org.nameRu}

\r\n }\r\n \r\n
\r\n
;\r\n }\r\n render() {\r\n let isOrg = this.props.isNotOrg === true ? false : true;\r\n return (\r\n \r\n \r\n \r\n \r\n {':'}\r\n \r\n {this.props.userInfo.user.accessLevel != 4 && this.props.hideTorg != true ?\r\n \r\n {this.props.userInfo.user.accessLevel === 1 ? : ''}\r\n {this.props.userInfo.user.accessLevel < 3 ? : ''}\r\n {this.props.userInfo.user.accessLevel < 4 ? : ''}\r\n {isOrg ? : ''}\r\n : }\r\n \r\n \r\n {this.showSelectObl()}\r\n {this.showSelectRaions()}\r\n {isOrg || this.props.userInfo.user.accessLevel === 4 ? this.showSelectOrgs() : ''}\r\n \r\n );\r\n }\r\n}\r\n\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators(actionCreators, dispatch)\r\n)(SelectObject);","import React, { Component } from 'react';\r\nimport './UserItemList.css';\r\n\r\nexport class UserItemList extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.selectClick = this.selectClick.bind(this);\r\n this.deleteOnClick = this.deleteOnClick.bind(this);\r\n }\r\n selectClick(event){\r\n this.props.selectUser(this.props.user.id);\r\n }\r\n deleteOnClick(event) {\r\n this.props.deleteUser({ id: this.props.user.id, fio: this.props.user.fio });\r\n }\r\n render() {\r\n return (
  • \r\n
    {this.props.user.fio}
    {this.props.user.username != 'adminData' && this.props.user.username != 'adminUsers' ?
    :\"\"}
  • );\r\n }\r\n}","import React, { Component } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { Form, FormGroup, FormControl, ControlLabel, Modal, Button, ButtonGroup } from 'react-bootstrap';\r\n\r\nimport { actionCreators } from '../../store/Nsi';\r\n\r\nclass SelectOrgModal extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n orgNameSearch: undefined,\r\n selectOrg: undefined,\r\n foundOrgs:[],\r\n };\r\n this.onChangeOrgNameSearch = this.onChangeOrgNameSearch.bind(this);\r\n this.onSearchOrg = this.onSearchOrg.bind(this);\r\n this.handleSelectOrg = this.handleSelectOrg.bind(this);\r\n this.onSelectOrg = this.onSelectOrg.bind(this);\r\n }\r\n /*\r\n componentWillMount() {\r\n // This method runs when the component is first added to the page\r\n }\r\n */\r\n componentWillReceiveProps(nextProps) {\r\n // This method runs when incoming props (e.g., route params) change\r\n this.setState({ foundOrgs: []});\r\n }\r\n \r\n onChangeOrgNameSearch(e) {\r\n var val = e.target.value;\r\n this.setState({ orgNameSearch: val });\r\n }\r\n async onSearchOrg(e) {\r\n e.preventDefault();\r\n if (this.state.orgNameSearch === undefined && this.state.orgNameSearch==='') {\r\n alert('Введите подстроку для поиска организации');\r\n return;\r\n }\r\n if (this.props.raion == null) return;\r\n let data = await this.props.searchOrgRaion(this.props.raion.kod.substring(0, 4), this.state.orgNameSearch);\r\n this.setState({\r\n selectOrg: undefined,\r\n foundOrgs: data\r\n });\r\n }\r\n orgItem(org) {\r\n return
  • \r\n {org.nameRu}
  • ;\r\n }\r\n onSelectOrg(e) {\r\n let val = e.target.id;\r\n let selectOrg;\r\n if (!Array.prototype.find)\r\n selectOrg = this.state.foundOrgs.filter((itm) => itm.kod === val)[0];\r\n else\r\n selectOrg = this.state.foundOrgs.find((itm) => itm.kod === val);\r\n this.setState({ selectOrg });\r\n }\r\n handleSelectOrg() {\r\n if (this.state.selectOrg !== undefined) {\r\n this.props.setOrg(this.state.selectOrg);\r\n } else {\r\n alert(\"Выбирете организацию из списка\");\r\n }\r\n }\r\n render() {\r\n return (\r\n \r\n \r\n Выбор организации\r\n \r\n \r\n
    \r\n \r\n Организация:{' '}\r\n \r\n {' '}\r\n \r\n {this.props.raion != null && (this.props.raion.kod.startsWith(\"71\") || this.props.raion.kod.startsWith(\"75\") || this.props.raion.kod.startsWith(\"79\")) ? Поиск по всем районам : \"\"}\r\n
    \r\n
      \r\n {this.state.foundOrgs.map(org => this.orgItem(org))}\r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n );\r\n }\r\n}\r\nexport default connect(\r\n state => state.nsi,\r\n dispatch => bindActionCreators(actionCreators, dispatch)\r\n)(SelectOrgModal);","import React, { useState,useEffect } from 'react';\r\nimport { Button, Row, Col } from 'react-bootstrap';\r\n\r\nconst charset = \"0123456789abcdefghijklmnopqrstuvwxyz!@#$%^&*ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\r\n//const charset0 = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\r\n//const charset1= \"abcdefghijklmnopqrstuvwxyz\";\r\n//const charset2= \"0123456789\";\r\n//const charset3= \"!@#$%^&*\";\r\nfunction generatePassword() {\r\n let password = \"\";\r\n //let ac = [];\r\n for (let i = 0; i < 9; i++) {\r\n /*\r\n let c = Math.floor(Math.random() * 4) % 4;\r\n if (ac.length < 5) {\r\n if (ac.filter(f => f === c).length === 0) {\r\n ac.push(c);\r\n } else {\r\n if (c === 3) {\r\n c = 0;\r\n } else {\r\n c++;\r\n }\r\n }\r\n } else if (ac.filter(f => f === c).length > 0) {\r\n if (c === 3) {\r\n c = 0;\r\n }else {\r\n c++;\r\n }\r\n }\r\n switch (c) {\r\n case 0:\r\n password += charset0.charAt(Math.floor(Math.random() * charset0.length));\r\n break;\r\n case 1:\r\n password += charset1.charAt(Math.floor(Math.random() * charset1.length));\r\n break;\r\n case 2:\r\n password += charset2.charAt(Math.floor(Math.random() * charset2.length));\r\n break;\r\n case 3:\r\n password += charset3.charAt(Math.floor(Math.random() * charset3.length));\r\n break;\r\n default:\r\n password += charset3.charAt(Math.floor(Math.random() * charset3.length));\r\n }\r\n */\r\n password += charset.charAt(Math.floor(Math.random() * charset.length));\r\n //var randomNumber = Math.floor(Math.random() * charset.length);\r\n //password += charset.substring(randomNumber, randomNumber + 1);\r\n }\r\n return password;\r\n}\r\nfunction checkPassword(password) {\r\n var strength = 0;\r\n if (password.match(/[a-z]+/)) {\r\n strength += 1;\r\n }\r\n if (password.match(/[A-Z]+/)) {\r\n strength += 1;\r\n }\r\n if (password.match(/[0-9]+/)) {\r\n strength += 1;\r\n }\r\n if (password.match(/[!@#$%^&*]+/)) {\r\n strength += 1;\r\n\r\n }\r\n\r\n //if (password.length < 6) {\r\n // display.innerHTML = \"minimum number of characters is 6\";\r\n //}\r\n\r\n //if (password.length > 12) {\r\n // display.innerHTML = \"maximum number of characters is 12\";\r\n //}\r\n\r\n switch (strength) {\r\n case 0:\r\n return 0;\r\n case 1:\r\n return 25;\r\n case 2:\r\n return 50;\r\n case 3:\r\n return 75;\r\n case 4:\r\n return 100;\r\n }\r\n return 0; \r\n}\r\n\r\nexport default function GenPssw(props) {\r\n useEffect(() => {\r\n setPass(null);\r\n }, [props.tiks])\r\n const [pass, setPass] = useState();\r\n const [checkPass, setCheckPass] = useState(0)\r\n const genPass = (evt) => {\r\n evt.preventDefault();\r\n let pss = generatePassword(); \r\n setCheckPass(checkPassword(pss));\r\n setPass(pss);\r\n }\r\n const getSt = (strength) => {\r\n let cs = {};\r\n if (strength < 100)\r\n cs[\"color\"] = \"red\";\r\n else\r\n cs[\"color\"] = \"green\";\r\n /*\r\n switch (strength) {\r\n case 0:\r\n cs[\"color\"] = \"red\";\r\n case 25:\r\n cs[\"color\"] = \"red\";\r\n case 50:\r\n cs[\"color\"] = \"red\";\r\n case 75:\r\n cs[\"color\"] = \"red\";\r\n case 100:\r\n cs[\"color\"] = \"green\";\r\n }\r\n */\r\n return cs;\r\n }\r\n return
    \r\n Пароль должен содержать 8 символов и содержать в себе цифры, маленькие и заглавные буквы и хотя бы один специальный символ из !@#$%^&*\r\n \r\n {pass != null ? {pass} {checkPass < 100 ? слабый не подходящий пароль! Сгенерируйте еще раз : Строгий пароль! Можно использовать}\r\n : \"\"}\r\n \r\n
    \r\n}","import React, { Component, Fragment } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { Modal, Button, ButtonGroup,FormControl } from 'react-bootstrap';\r\n//import { Typeahead } from 'react-bootstrap-typeahead';\r\n\r\n//import 'react-bootstrap-typeahead/css/Typeahead.css';\r\n\r\n\r\nimport { actionCreators as actionCreatorsNsi } from '../../store/Nsi';\r\n//import { actionCreators as actionCreatorsNsi } from '../../store/Nsi';\r\n\r\n\r\nimport SelectOrgModal from '../Modals/SelectOrgModal';\r\nimport GenPssw from './genPssw';\r\nimport { SpObl, SpRoles, getTikcs } from '../Constants';\r\nconst strongPassword = new RegExp('(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[^A-Za-z0-9])(?=.{8,})');\r\nconst dtNow = new Date();\r\nclass UserEdit extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.setOrg = this.setOrg.bind(this);\r\n this.roleItem = this.roleItem.bind(this);\r\n this.handleSubmit = this.handleSubmit.bind(this);\r\n this.handleChangePassSubmit = this.handleChangePassSubmit.bind(this);\r\n this.onShowModalChangeUserNameClick = this.onShowModalChangeUserNameClick.bind(this);\r\n this.onChangeUserNameClick = this.onChangeUserNameClick.bind(this);\r\n this.handleCloseChangeUserName = this.handleCloseChangeUserName.bind(this);\r\n this.onChangeFio = this.onChangeFio.bind(this);\r\n this.onChangeEmail = this.onChangeEmail.bind(this);\r\n this.accessLevelHandleChange = this.accessLevelHandleChange.bind(this);\r\n //this.accessSectorHandleChange = this.accessSectorHandleChange.bind(this);\r\n this.accessOblHandleChange = this.accessOblHandleChange.bind(this);\r\n this.accessRaionHandleChange = this.accessRaionHandleChange.bind(this);\r\n this.checkboxsRolesInputChange = this.checkboxsRolesInputChange.bind(this);\r\n this.onChangePassword = this.onChangePassword.bind(this);\r\n this.onChangePasswordConfirm = this.onChangePasswordConfirm.bind(this);\r\n this.onChangeOldPassword = this.onChangeOldPassword.bind(this);\r\n this.onChangeNewPassword = this.onChangeNewPassword.bind(this);\r\n this.onChangeNewUserName = this.onChangeNewUserName.bind(this);\r\n this.onChangeOrg2 = this.onChangeOrg2.bind(this);\r\n this.typeUserHandleChange = this.typeUserHandleChange.bind(this);\r\n this.showHideInputPassword = this.showHideInputPassword.bind(this);\r\n this.showHideInputPasswordConfirm = this.showHideInputPasswordConfirm.bind(this);\r\n this.showHideInputOldPassword = this.showHideInputOldPassword.bind(this);\r\n //this.eInput = React.createRef();\r\n //this.pInput = React.createRef();\r\n }\r\n //componentDidMount() {\r\n // if (this.eInput.current != null) this.eInput.current.value = \"\";\r\n // if (this.pInput.current != null) this.pInput.current.value = \"\";\r\n //}\r\n componentWillMount() {\r\n let obl, raion, props = this.props;\r\n if (!Array.prototype.find)\r\n obl = SpObl.filter(o => o !== undefined && o.kod === props.user.obl.kod)[0];\r\n else\r\n obl = SpObl.find(o => o !== undefined && o.kod === props.user.obl.kod);\r\n this.setState({\r\n id: props.user.id,\r\n accessLevel: props.user.accessLevel,\r\n username: props.user.username,\r\n email: props.user.email,\r\n fio: props.user.fio,\r\n obl: obl ? obl : { kod: props.user.obl.kod, nameKz: props.user.obl.nameKz, nameRu: props.user.obl.nameRu },\r\n raion: raion ? raion : { kod: props.user.raion.kod, nameKz: props.user.raion.nameKz, nameRu: props.user.raion.nameRu },\r\n typeUser: props.user.typeUser,\r\n org: { kod: props.user.org.kod, nameKz: props.user.org.nameKz, nameRu: props.user.org.nameRu },\r\n roles: props.user.roles.map(val => val),\r\n isNew: props.user.isNew,\r\n password: '',//undefined,\r\n passwordConfirm: '',//undefined,\r\n oldPassword: '',//undefined,\r\n newPassword: '',//undefined,\r\n showChangeUserName: false,\r\n showSelectOrgModal: false,\r\n newUserName: '',//undefined\r\n tiks: getTikcs()\r\n });\r\n //if (this.eInput.current != null) this.eInput.current.value = \"\";\r\n //if (this.pInput.current != null) this.pInput.current.value = \"\";\r\n \r\n }\r\n componentWillReceiveProps(nextProps) {\r\n let obl, raion;\r\n //if (!Array.prototype.find) {\r\n obl = SpObl.filter(o => o !== undefined && o.kod === nextProps.user.obl.kod)[0];\r\n raion = this.props.nsi.allraions.filter(o => o !== undefined && o.kod === nextProps.user.raion.kod)[0];\r\n //} else {\r\n // obl = SpObl.find(o => o !== undefined && o.kod === nextProps.user.obl.kod);\r\n // raion = this.props.nsi.allraions.find(o => o !== undefined && o.kod === nextProps.user.raion.kod);\r\n //}\r\n let org = {\r\n kod: nextProps.user.org.kod, nameKz: nextProps.user.org.nameKz, nameRu: nextProps.user.org.nameRu\r\n };\r\n //this.props.getNs('orgs', [{ name: \"raion\", value: raion.kod}]);\r\n this.setState({\r\n id: nextProps.user.id, \r\n accessLevel: nextProps.user.accessLevel,\r\n username: nextProps.user.username,\r\n email: nextProps.user.email,\r\n fio: nextProps.user.fio,\r\n obl: obl ? obl : { kod: nextProps.user.obl.kod, nameKz: nextProps.user.obl.nameKz, nameRu: nextProps.user.obl.nameRu },\r\n raion: raion ? raion : { kod: nextProps.user.raion.kod, nameKz: nextProps.user.raion.nameKz, nameRu: nextProps.user.raion.nameRu },\r\n typeUser: nextProps.user.typeUser,\r\n org: org,\r\n roles: nextProps.user.roles.map(val => val),\r\n isNew: nextProps.user.isNew,\r\n password: '',//undefined,\r\n passwordConfirm: '',//undefined,\r\n oldPassword: '',//undefined,\r\n newPassword: '',//undefined,\r\n tiks: getTikcs()\r\n });\r\n //if (this.eInput.current !=null && (nextProps.user.email == null || nextProps.user.email === \"\")) {\r\n // this.eInput.current.value = \"\";\r\n //}\r\n //if (this.pInput.current != null && (nextProps.user.password == null || nextProps.user.password === \"\")) {\r\n // this.pInput.current.value = \"\";\r\n //}\r\n //console.dir(this.refs.myEml);\r\n }\r\n //orgs = [];\r\n setOrg(org) {\r\n var praion = this.props.nsi.allraions.filter(o => o.idRaion === org.raion)[0];\r\n this.setState({ org: org, raion: praion, showSelectOrgModal: false });\r\n //this.forceUpdate();\r\n }\r\n onChangePassword(e){\r\n var val = e.target.value;\r\n this.setState({ password: val });\r\n }\r\n onChangePasswordConfirm(e){\r\n var val = e.target.value;\r\n this.setState({ passwordConfirm: val });\r\n }\r\n onChangeOldPassword(e) {\r\n var val = e.target.value;\r\n this.setState({ oldPassword: val });\r\n }\r\n onChangeNewPassword(e) {\r\n var val = e.target.value;\r\n this.setState({ newPassword: val });\r\n }\r\n onChangeFio(e){\r\n var val = e.target.value;\r\n this.setState({ fio: val });\r\n }\r\n onChangeEmail(e){\r\n var val = e.target.value;\r\n //TODO check email\r\n this.setState({ email: val });\r\n }\r\n accessLevelHandleChange(e){\r\n var val = e.target.value;\r\n this.setState({ accessLevel: val });\r\n }\r\n typeUserHandleChange(e) {\r\n let val = e.target.value;\r\n let roles = [];\r\n switch (val) {\r\n case \"1\"://EditAdmins Администратор администраторов\r\n //roles.push(SpRoles.filter(it => it.kod === \"EditAdmins\")[0]);\r\n roles.push(\"EditAdmins\");\r\n break;\r\n case \"2\"://EditUsers Администратор пользователей\r\n //roles.push(SpRoles.filter(it => it.kod === \"EditUsers\")[0]);\r\n roles.push(\"EditUsers\");\r\n break;\r\n case \"3\": //AdminEditData Администратор данных\r\n //roles.push(SpRoles.filter(it => it.kod === \"AdminEditData\")[0]);\r\n roles.push(\"AdminEditData\");\r\n break;\r\n case \"4\"://EditFin Финансовый администратор\r\n //roles.push(SpRoles.filter(it => it.kod === \"EditFin\")[0]);\r\n roles.push(\"EditFin\");\r\n break;\r\n case \"5\"://UserEditData пользователь (чтение/запись)\r\n //roles.push(SpRoles.filter(it => it.kod === \"UserEditData\")[0]);\r\n roles.push(\"UserEditData\");\r\n break;\r\n case \"6\"://UserReadData пользователь (только чтение)\r\n //roles.push(SpRoles.filter(it => it.kod === \"UserReadData\")[0]);\r\n roles.push(\"UserReadData\");\r\n break;\r\n default:\r\n break;\r\n }\r\n this.setState({ typeUser: val, roles });\r\n }\r\n //accessSectorHandleChange(e){\r\n // var val = e.target.value;\r\n // this.setState({ accessSector: val });\r\n //}\r\n accessOblHandleChange(e){\r\n var val = e.target.value;\r\n var pobl;\r\n if (!Array.prototype.find)\r\n pobl = SpObl.filter(o => o !== undefined && o.kod === val)[0];\r\n else \r\n pobl = SpObl.find(o => o !== undefined && o.kod === val);\r\n if (pobl !== undefined) {\r\n var praion = this.props.nsi.allraions.filter(o => o !== undefined && o.obl === val && (o.dtBeg == null || dtNow >= new Date(o.dtBeg)) && (o.dtEnd == null || dtNow <= new Date(o.dtEnd)))[0];\r\n this.setState({\r\n obl: { kod: pobl.kod, nameKz: pobl.nameKz, nameRu: pobl.nameRu },\r\n raion: { kod: praion.kod, nameKz: praion.nameKz, nameRu: praion.nameRu, idRaion: praion.idRaion },\r\n org: undefined\r\n });\r\n //this.props.getNs('orgs', [{ name: \"obl\", value: val }]);\r\n }\r\n }\r\n accessRaionHandleChange(e) {\r\n var val = e.target.value;\r\n var praion;\r\n if (!Array.prototype.find)\r\n praion = this.props.nsi.allraions.filter(o => o !== undefined && o.kod === val)[0];\r\n else\r\n praion = this.props.nsi.allraions.find(o => o !== undefined && o.kod === val);\r\n if (praion !== undefined) {\r\n this.setState({ raion: { kod: praion.kod, nameKz: praion.nameKz, nameRu: praion.nameRu, idRaion: praion.idRaion }, org: undefined });\r\n //this.props.getNs('orgs', [{ name: \"raion\", value: val }]);\r\n }\r\n }\r\n checkboxsRolesInputChange(e) {\r\n var val = e.target.checked;\r\n var id = e.target.id;\r\n var rls = this.state.roles.map(r => r);\r\n if (val) {\r\n //если роль нач. Admin удалить все роли начинающиеся с Admin \r\n if (id.substring(0, 5) === 'Admin') {\r\n let adms = rls.filter((v) => v.substring(0, 5) === 'Admin');\r\n for (var i in adms) {\r\n let r = adms[i];\r\n let index = rls.indexOf(r, 0);\r\n if (index > -1) {\r\n rls.splice(index, 1);\r\n }\r\n }\r\n //добавить\r\n rls.push(id);\r\n this.setState({ roles: rls });\r\n return;\r\n }\r\n //если нет добавить\r\n if (rls.indexOf(id, 0) < 0) {\r\n rls.push(id);\r\n this.setState({ roles: rls });\r\n }\r\n } else {\r\n //если есть удалить\r\n let index = rls.indexOf(id, 0);\r\n if (index > -1) {\r\n rls.splice(index, 1);\r\n this.setState({ roles: rls });\r\n }\r\n }\r\n }\r\n handleSubmit(e) {\r\n e.preventDefault();\r\n \r\n if (this.state.org === undefined) {\r\n alert('Выберите организацию');\r\n return;\r\n }\r\n\r\n if (this.state.isNew) {\r\n if (this.state.email == null || this.state.email === '') {\r\n alert('Введите логин(Email)');\r\n return;\r\n }\r\n if (this.state.password == null || this.state.password==='') {\r\n alert('Введите пароль');\r\n return;\r\n }\r\n if (!strongPassword.test(this.state.password)) {\r\n alert('Пароль должен содержать 8 символов и содержать в себе цифры, маленькие и заглавные буквы и хотя бы один специальный символ из !@#$%^&*');\r\n return;\r\n }\r\n if (this.state.password !== this.state.passwordConfirm) {\r\n alert('Пароли не совпадают');\r\n return;\r\n }\r\n }\r\n // console.trace();\r\n this.props.updateUser({ ...this.state });\r\n }\r\n handleChangePassSubmit(e) {\r\n e.preventDefault();\r\n if (this.state.oldPassword === undefined || this.state.newPassword === undefined) {\r\n alert('Введите пароли');\r\n return;\r\n }\r\n if (!strongPassword.test(this.state.newPassword)) {\r\n alert('Пароль должен содержать 8 символов и содержать в себе цифры, маленькие и заглавные буквы и хотя бы один специальный символ из !@#$%^&*');\r\n return;\r\n }\r\n this.props.changePass(this.state.username, this.state.oldPassword, this.state.newPassword);\r\n }\r\n /*\r\n handleHideSelectOrgModal(e) {\r\n e.preventDefault();\r\n this.setState({ showSelectOrgModal: false });\r\n }\r\n */\r\n handleCloseChangeUserName(e) {\r\n e.preventDefault();\r\n this.setState({ showChangeUserName: false });\r\n }\r\n onShowModalChangeUserNameClick(e) {\r\n e.preventDefault();\r\n this.setState({ showChangeUserName: true, newUserName: this.state.username });\r\n }\r\n onChangeUserNameClick(e) {\r\n e.preventDefault();\r\n if (this.state.username === undefined || this.state.newUserName === undefined || this.state.username === this.state.newUserName) {\r\n return;\r\n }\r\n this.setState({ showChangeUserName: false });\r\n //изменить имя пользователя\r\n this.props.changeUserName({ userNameOld: this.state.username, userNameNew: this.state.newUserName });\r\n }\r\n onChangeNewUserName(e) {\r\n var val = e.target.value;\r\n this.setState({ newUserName: val });\r\n }\r\n onChangeOrg = (e) => {\r\n let orgs = this.props.nsi.orgs.filter((f) => f.kobj === e.target.value);\r\n if (orgs.length === 0) return;\r\n let o = orgs[0];\r\n this.setState({ org: { kod: o.kobj, nameRu: o.nobj, nameKz: o.nobj_kaz, kobl: o.kobl } });\r\n }\r\n onChangeOrg2 = (sel) => {\r\n if (sel.length > 0) {\r\n this.setState({ org: { kod: sel[0].id, nameRu: sel[0].label, nameKz: sel[0].label/*, kobl: o.kobl*/ } });\r\n }\r\n }\r\n //public btSelectOrgClick(e: any) {\r\n // e.preventDefault();\r\n // //TODO: show dialog select org\r\n //}\r\n roleItem(o) {\r\n /*\r\n if ((!this.props.isAdminAdmin && o.kod.substring(0, 5) !== 'Admin') ||\r\n (this.props.isAdminAdmin && o.kod.substring(0, 5) === 'Admin')) {\r\n let IsCheck = false;\r\n if (!Array.prototype.find)\r\n IsCheck = this.state.roles.filter((r) => r === o.kod)[0] !== undefined;\r\n else\r\n IsCheck = this.state.roles.find((r) => r === o.kod) !== undefined;\r\n return
  • ;\r\n };\r\n return '';\r\n */\r\n let IsCheck = false;\r\n if (!Array.prototype.find)\r\n IsCheck = this.state.roles.filter((r) => r === o.kod)[0] !== undefined;\r\n else\r\n IsCheck = this.state.roles.find((r) => r === o.kod) !== undefined;\r\n if (IsCheck) {\r\n return
  • {o.commentRu}
  • \r\n } else {\r\n return '';\r\n }\r\n \r\n }\r\n showHideInputPassword(e) {\r\n e.preventDefault();\r\n var x = document.getElementById(\"inputPassword\");\r\n if (x.type === \"password\") {\r\n x.type = \"text\";\r\n } else {\r\n x.type = \"password\";\r\n }\r\n }\r\n showHideInputPasswordConfirm(e) {\r\n e.preventDefault();\r\n var x = document.getElementById(\"inputPasswordConfirm\");\r\n if (x.type === \"password\") {\r\n x.type = \"text\";\r\n } else {\r\n x.type = \"password\";\r\n }\r\n }\r\n showHideInputOldPassword(e) {\r\n e.preventDefault();\r\n var x = document.getElementById(\"inputOldPassword\");\r\n if (x.type === \"password\") {\r\n x.type = \"text\";\r\n } else {\r\n x.type = \"password\";\r\n }\r\n }\r\n showHideInputNewPassword(e) {\r\n e.preventDefault();\r\n var x = document.getElementById(\"inputNewPassword\");\r\n if (x.type === \"password\") {\r\n x.type = \"text\";\r\n } else {\r\n x.type = \"password\";\r\n }\r\n }\r\n render() {//marginTop: \"15px!important\", verticalAlign:\"middle!important\"\r\n // \r\n /*\r\n \r\n \r\n Изменить имя пользователя(логин)\r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n {\r\n this.onChangeOrg2(selected);\r\n }}\r\n options={orgs}\r\n />\r\n */\r\n let raions = this.props.nsi.allraions.filter(f => f.obl === this.state.obl.kod).map(o => { return { ...o, dtBeg: o.dtBeg == null ? null : new Date(o.dtBeg), dtEnd: o.dtEnd == null ? null : new Date(o.dtEnd)};});\r\n //let orgs = this.props.orgs.filter(f => f.raion === this.state.raion.kod.substring(0,4)).map(o => { return { id: o.kod, label: o.nameRu } });\r\n return
    \r\n
    {this.state.fio} ({this.state.email})
    \r\n
    \r\n
    \r\n {!this.state.isNew ?\r\n
    \r\n \r\n
    \r\n
    {this.props.nsi.userNameUpdateResult === true ? this.props.nsi.userNameNew:this.state.username}
       \r\n \r\n
    \r\n \r\n \r\n Изменить Логин\r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n : ''}\r\n {this.props.nsi.errorsChangeUserName !== undefined ?\r\n
    \r\n \r\n Ошибка Логина! {this.props.nsi.errorsChangeUserName}.\r\n
    : ''}\r\n {this.props.nsi.userNameUpdateResult === true ?
    \r\n
    \r\n \r\n Логин изменен!\r\n
    \r\n
    : ''}\r\n
    \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    {this.state.org ? this.state.org.nameRu : Выберите организацию}
    \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
      \r\n {SpRoles.map(o => this.roleItem(o))}\r\n
    \r\n
    \r\n
    \r\n {this.state.isNew ?\r\n
    \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n {this.state.password !== this.state.passwordConfirm ?
    Пароли не совпадают!
    : ''}\r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n : ''}\r\n \r\n
    \r\n {!this.state.isNew ?\r\n
    \r\n

    Смена пароля

    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n {this.props.errorsChangePass !== undefined ?\r\n
    \r\n \r\n Ошибка смены пароля! {this.props.errorsChangePass}.\r\n
    : ''}\r\n {this.props.nsi.passUpdateResult === true ?
    \r\n
    \r\n \r\n Пароль изменен!\r\n
    \r\n
    :''}\r\n \r\n : ''}\r\n
    \r\n this.setState({ showSelectOrgModal: false })} />\r\n
    ;\r\n }\r\n \r\n}\r\nexport default connect(\r\n state => state,//,.nsi,\r\n dispatch => bindActionCreators(actionCreatorsNsi, dispatch)\r\n)(UserEdit);\r\n\r\n//\r\n/*\r\n\r\n \r\n {orgs.map(it => )}\r\n \r\n\r\n\r\n\r\n f.kobl === this.state.obl.kod).map(o => { return { kod: o.kobj, nameRu: o.nobj, nameKz: o.nobj_kaz, kobl: o.kobl }; })}\r\n placeholder=\"Выберите организацию...\"\r\n onChange={this.onChangeOrg} />\r\n */","export default __webpack_public_path__ + \"static/media/loading.d5d7d7b1.gif\";","import React, { Component } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { Alert, Row, Modal, Button, Col } from 'react-bootstrap';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\n\r\n\r\nimport { actionCreators as actionCreatorsAdminUsers } from '../../store/AdminUsers';\r\nimport { actionCreators as actionCreatorsNsi } from '../../store/Nsi';\r\nimport SelectObject from '../common/SelectObject';\r\nimport { UserItemList } from './UserItemList';\r\nimport UserEdit from './UserEdit';\r\nimport loadingImg from '../../images/loading.gif';//'../images/loading.gif';\r\n\r\n\r\nclass AdminUsersPage extends Component {\r\n\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n searchText: \"\",\r\n currentPage: 1,\r\n selectedUserId: undefined,\r\n selectedUser: undefined,\r\n showModalDelete: false,\r\n userDelete: undefined,\r\n tobj: props.userInfo.user.accessLevel, // тип обьекта 1 – РК; 2 – область; 3 - район; 4 - организация (доступ зависит от пользователя)\r\n obl: undefined,\r\n raion: undefined,\r\n org: undefined,\r\n };\r\n\r\n this.onChange = this.onChange.bind(this);\r\n this.seacrhOnClick = this.seacrhOnClick.bind(this);\r\n this.AddOnClick = this.AddOnClick.bind(this);\r\n this.selectUser = this.selectUser.bind(this);\r\n this.updateUser = this.updateUser.bind(this);\r\n this.changePassUser = this.changePassUser.bind(this);\r\n this.changeUserName = this.changeUserName.bind(this);\r\n\r\n this.deleteUser = this.deleteUser.bind(this);\r\n this.handleCloseModalDeleteUser = this.handleCloseModalDeleteUser.bind(this);\r\n this.handleDeleteUserFromModal = this.handleDeleteUserFromModal.bind(this);\r\n this.props.getNs('allraions');\r\n }\r\n componentWillMount() {\r\n // This method runs when the component is first added to the page\r\n this.props.requestGetUsers(this.state.searchText, this.state.currentPage, 10);\r\n }\r\n onChange(e) {\r\n var val = e.target.value;\r\n this.setState({ searchText: val });\r\n }\r\n seacrhOnClick(event) {\r\n this.props.ClearUserUpdateResult();\r\n this.setState({ selectedUserId: undefined, selectedUser: undefined })\r\n if (this.state.tobj === 1) {\r\n this.props.requestGetUsers(this.state.searchText, this.state.currentPage, 10);\r\n } else {\r\n this.props.requestSearchUsers({\r\n searchText: this.state.searchText,\r\n startPage: this.state.currentPage,\r\n sizePage: 10,\r\n tobj: this.state.tobj,\r\n kobl: this.state.obl != null ? this.state.obl.kobl : null,\r\n kraion: this.state.raion != null ? this.state.raion.kraion : null,\r\n korg: this.state.org != null ? this.state.org.korg : null,\r\n });\r\n }\r\n }\r\n AddOnClick(event) {\r\n this.props.ClearUserUpdateResult();\r\n this.setState({\r\n selectedUserId: undefined,\r\n selectedUser: {\r\n id: undefined,\r\n accessLevel: 4,\r\n typeUser: 5,\r\n username: '',\r\n email: '',\r\n fio: '',\r\n obl: this.props.userInfo.user.kodObl ?\r\n { kod: this.props.userInfo.user.kodObl, nameRu: this.props.userInfo.user.nameObl, nameKz: this.props.userInfo.user.nameOblKz }\r\n : { kod: '75', nameKz: 'Алматы қ.', nameRu: 'г.Алматы' },\r\n org: this.props.userInfo.user.kodOrg ?\r\n { kod: this.props.userInfo.user.kodOrg, nameRu: this.props.userInfo.user.nameOrg, nameKz: this.props.userInfo.user.nameOrgKz }\r\n : { kod: '028W', nameKz: 'ГККП \"ГОРОДСКАЯ ПОЛИКЛИHИКА N7\"', nameRu: 'ГККП \"ГОРОДСКАЯ ПОЛИКЛИHИКА N7\"' },\r\n raion: this.props.userInfo.user.kodRaion ?\r\n { kod: this.props.userInfo.user.kodRaion, nameRu: this.props.userInfo.user.nameRaion, nameKz: this.props.userInfo.user.nameRaionKz }\r\n : { kod: '751110000', nameKz: 'Алмалинский район', nameRu: 'Алмалинский район' },\r\n roles: [\"UserEditData\"],\r\n isNew: true,\r\n password: '',//undefined,\r\n passwordConfirm: '',//undefined,\r\n oldPassword: '',//undefined,\r\n newPassword: '',//undefined,\r\n }\r\n });\r\n }\r\n selectUser(userId) {\r\n this.props.ClearUserUpdateResult();\r\n let selUser = undefined;\r\n if (this.props.adminUsers.usersResult) {\r\n let findUs;\r\n if (!Array.prototype.find) //iE11\r\n findUs = this.props.adminUsers.usersResult.users.filter(u => u.id === userId)[0];\r\n else\r\n findUs = this.props.adminUsers.usersResult.users.find(u => u.id === userId);\r\n if (findUs !== undefined) {\r\n selUser = { ...findUs, isNew: false, password: undefined, passwordConfirm: undefined };\r\n }\r\n }\r\n this.setState({\r\n selectedUserId: userId, selectedUser: selUser,\r\n password: undefined,\r\n passwordConfirm: undefined\r\n });\r\n }\r\n\r\n updateUser(user) {\r\n //using add or update store\r\n this.props.requestInsertOrUpdateUser(user);\r\n this.setState({ selectedUser: user });\r\n }\r\n changePassUser(username, oldPassword, newPassword) {\r\n this.props.changePassUser({ username, oldPassword, newPassword });\r\n }\r\n changeUserName(data) {\r\n this.props.changeUserName(data);\r\n }\r\n renderUpdateResult(userUpdateResult) {\r\n if (userUpdateResult) {\r\n if (userUpdateResult.result) {\r\n return
    \r\n
    \r\n \r\n Данные сохранены!\r\n
    \r\n
    ;\r\n } else {\r\n return
    \r\n \r\n Ошибка сохранения! {userUpdateResult.error}.\r\n
    ;\r\n //
    Произошла ошибка: {userUpdateResult.error}
    \r\n }\r\n }\r\n return '';\r\n }\r\n deleteUser(userDelete) {\r\n this.setState({ showModalDelete: true, userDelete });\r\n }\r\n handleCloseModalDeleteUser() {\r\n this.setState({ showModalDelete: false, userDelete: undefined });\r\n }\r\n handleDeleteUserFromModal() {\r\n this.setState({ showModalDelete: false, selectedUserId: undefined, selectedUser: undefined });\r\n this.props.deleteUser(this.state.userDelete.id);\r\n this.setState({ userDelete: undefined });\r\n }\r\n render() {\r\n let adminInfo = this.props.userInfo.user;\r\n let isAdminAdmin = false; //Админисратор админисраторов?\r\n if (adminInfo) {\r\n if (adminInfo.roles.indexOf('Administrators') > -1) {\r\n isAdminAdmin = true;\r\n }\r\n }\r\n let errorsChangePass = this.props.adminUsers.errorsChangePass;\r\n let passUpdateResult = this.props.adminUsers.passUpdateResult;\r\n let errorsChangeUserName = this.props.adminUsers.errorsChangeUserName;\r\n let userNameUpdateResult = this.props.adminUsers.userNameUpdateResult;\r\n let userNameNew = this.props.adminUsers.userNameNew;\r\n return (
    \r\n \r\n

    \r\n {isAdminAdmin ? : }

    \r\n \r\n
    \r\n \r\n \r\n this.setState({ tobj })}\r\n setObl={(obl) => this.setState({ obl })}\r\n setRaion={(raion) => this.setState({ raion })}\r\n setOrg={(org) => this.setState({ org })}\r\n />\r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n \r\n \r\n
    \r\n \r\n {this.props.adminUsers.isLoading ? {I18n.t('wait')}{' '}ПодождитеИдет загрузка данных... : ''}\r\n
    \r\n
    \r\n
    \r\n
      \r\n {this.props.adminUsers.usersResult ? this.props.adminUsers.usersResult.users.map(user =>\r\n \r\n ) : ''}\r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n {this.renderUpdateResult(this.props.adminUsers.userUpdateResult)}\r\n {this.state.selectedUser ? : ''}\r\n
    \r\n \r\n \r\n Удаление пользователя\r\n \r\n \r\n

    \r\n Вы дествительно хотите удалить пользователя {this.state.userDelete !== undefined ? this.state.userDelete.fio : ''}?\r\n

    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n
    );\r\n }\r\n\r\n}\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators(Object.assign({}, actionCreatorsAdminUsers, actionCreatorsNsi), dispatch)\r\n)(AdminUsersPage);","import React, { Component } from 'react';\r\nimport { Button, Modal, Form, Table } from 'react-bootstrap';\r\n\r\nexport default class NsiModalFilter extends Component {\r\n constructor(props, context) {\r\n super(props, context);\r\n this.state = { filter: this.props.filter || this.initFilter(props) }\r\n }\r\n componentWillReceiveProps(nextProps) {\r\n this.setState({ filter: nextProps.filter || this.initFilter(nextProps) });\r\n }\r\n initFilter = (props) => {\r\n let filtr = [];\r\n for (var i = 0; i < props.meta.filter.length; i++) {\r\n filtr.push(undefined);\r\n }\r\n return filtr;\r\n }\r\n onSubmit = (e) => {\r\n e.preventDefault();\r\n if (e.target.id === 'btSetFilter')\r\n this.props.setFilter(this.state.filter);\r\n else\r\n this.props.clearFilter();\r\n }\r\n getFunc = (f) => {\r\n switch (f) {\r\n case 1:\r\n return 'точное совпадение';\r\n case 2:\r\n return 'совпадение с начала';\r\n case 3:\r\n return 'вхождение строки';\r\n default:\r\n return undefined;\r\n }\r\n }\r\n onChangeVal = (e) => {\r\n let ind = parseInt(e.target.id, 10);\r\n let val = e.target.value;\r\n let filter = Object.assign(this.state.filter);\r\n filter.splice(ind, 1, val);\r\n this.setState(filter);\r\n }\r\n render() {\r\n return (
    \r\n \r\n \r\n Установка фильтра справочника {this.props.meta.nameRu}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {this.props.meta.filter.map((cl, ind) => {\r\n return (\r\n );\r\n })}\r\n \r\n
    КолонкаЗначение
    {cl.col} ({this.getFunc(cl.func)})
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n
    );\r\n }\r\n}\r\n//onSubmit={this.onSubmit}","import React, { Component } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { Table, Button, ButtonGroup } from 'react-bootstrap';\r\n\r\nimport NsiModalFilter from './NsiModalFilter';\r\nimport { actionCreators } from '../../store/UserInfo';\r\n\r\nclass DataTable extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = { rows: this.props.data, pk: this.getPKey(this.props.meta.columns), newRow: this.getNewRow(this.props.meta.columns), errorNew: undefined, filter: undefined, isShowModalFilter: false };\r\n this.renderHeaderTable = this.renderHeaderTable.bind(this);\r\n this.renderBodyTable = this.renderBodyTable.bind(this);\r\n this.renderRow = this.renderRow.bind(this);\r\n this.renderField = this.renderField.bind(this);\r\n //this.getPKkeyValue = this.getPKkeyValue.bind(this);\r\n this.getNewRow = this.getNewRow.bind(this);\r\n this.onChangeNewRow = this.onChangeNewRow.bind(this);\r\n this.getPKey = this.getPKey.bind(this);\r\n this.onChangeValueRow = this.onChangeValueRow.bind(this);\r\n this.deleteRow = this.deleteRow.bind(this);\r\n this.restoreRow = this.restoreRow.bind(this);\r\n this.AddRow = this.AddRow.bind(this);\r\n this.saveData = this.saveData.bind(this);\r\n this.setEditMode = this.setEditMode.bind(this);\r\n this.cancelData = this.cancelData.bind(this);\r\n }\r\n componentWillReceiveProps(nextProps) {\r\n if (this.state.filter === undefined)\r\n this.setState({ rows: nextProps.data, pk: this.getPKey(nextProps.meta.columns), newRow: this.state.newRow || this.getNewRow(nextProps.meta.columns) });\r\n else\r\n this.setState({pk: this.getPKey(nextProps.meta.columns), newRow: this.state.newRow || this.getNewRow(nextProps.meta.columns) });\r\n }\r\n saveData(e) {\r\n e.preventDefault();\r\n this.props.saveDataTable(this.state.rows);\r\n }\r\n setEditMode(e) {\r\n e.preventDefault();\r\n this.props.editTable();\r\n }\r\n cancelData(e) {\r\n e.preventDefault();\r\n this.props.cancelData();\r\n }\r\n onChangeValueRow(e) {\r\n let rowColKey = e.target.id;\r\n const rows = Object.assign(this.state.rows);//[...this.state.rows];\r\n //console.dir(rows);\r\n let keys = rowColKey.split('_');//numRow_numCol\r\n let ind_row = parseInt(keys[0],10);\r\n let ind_col = parseInt(keys[1],10);\r\n let val = e.target.value;\r\n let col = this.props.meta.columns[ind_col];\r\n if (val.length <= col.length) {\r\n if (val !== /*this.props.data*/rows[ind_row].values[ind_col]/*val.localeCompare(this.props.data[ind_row].values[ind_col]) !== 0*/) {\r\n rows[ind_row].values.splice(ind_col, 1, val);\r\n if (rows[ind_row].status !==1 )\r\n rows[ind_row].status = 2;\r\n } else {\r\n if (this.state.rows[ind_row].status !== 1) {\r\n rows[ind_row].status = 1;\r\n }\r\n }\r\n rows[ind_row].values.splice(ind_col, 1, val);\r\n this.setState({ rows });\r\n }\r\n }\r\n deleteRow(e) {\r\n e.preventDefault();\r\n let numRow = e.target.id;\r\n const rows = Object.assign(this.state.rows);\r\n let row = rows[numRow];\r\n let delrow = { ...row };\r\n if (delrow.status === 1) {\r\n rows.splice(numRow, 1);\r\n } else {\r\n delrow.status = 3;\r\n rows.splice(numRow, 1, delrow);\r\n }\r\n this.setState({ rows });\r\n }\r\n restoreRow(e) {\r\n e.preventDefault();\r\n let numRow = e.target.id;\r\n const rows = Object.assign(this.state.rows);\r\n let row = rows[numRow];\r\n let delrow = { ...row };\r\n delrow.status = 2;\r\n rows.splice(numRow, 1, delrow);\r\n this.setState({ rows });\r\n }\r\n AddRow(e) {\r\n e.preventDefault();\r\n this.setState({ errorNew: undefined })\r\n //проверить pk\r\n let valsPkNew = []; //зн. рк новой записи\r\n for (let i in this.state.pk) {\r\n let col = this.state.pk[i];\r\n valsPkNew.push(this.state.newRow[col.name]);\r\n }\r\n for (let n in this.state.rows) {\r\n let row = this.state.rows[n];\r\n let valsPk = [];\r\n for (let m in this.state.pk) {\r\n let colIndex = this.state.pk[m].index;\r\n valsPk.push(row.values[colIndex]);\r\n }\r\n let isDbl = true;\r\n for (var k in valsPk) {\r\n isDbl = isDbl && (valsPkNew[k] === valsPk[k]);\r\n }\r\n if (isDbl === true) {\r\n this.setState({ errorNew: \"Данная запись существует\" })\r\n alert(\"Данная запись существует\");\r\n return;\r\n }\r\n }\r\n //добавить запись\r\n const rows = Object.assign(this.state.rows);//[...this.state.rows];\r\n const nr = { status: 1, values: [] };\r\n for (let prop in this.state.newRow) {\r\n nr.values.push(this.state.newRow[prop]);\r\n }\r\n rows.push(nr);\r\n this.setState({ rows, newRow: this.getNewRow(this.props.meta.columns) });\r\n }\r\n onChangeNewRow(e) {\r\n let colName = e.target.id.substr(5);\r\n let val = e.target.value;\r\n let newRow = Object.assign(this.state.newRow);\r\n newRow[colName] = val;\r\n this.setState({ newRow });\r\n }\r\n getNewRow(columns) {\r\n let newRow = {};\r\n for (var i in columns) {\r\n let col = columns[i];\r\n newRow[col.name] = '';\r\n }\r\n return newRow; \r\n }\r\n renderHeaderTable(meta, isEdit) {\r\n return (\r\n {meta.nameRu}\r\n {meta.columns.map((col) => {col.name})}{isEdit === true ? : undefined}\r\n );\r\n }\r\n renderBodyTable(rows, isEdit) {\r\n return (\r\n \r\n {rows.map((row, numRow) => this.renderRow(numRow, row, isEdit))}\r\n {isEdit === true ? {this.props.meta.columns.map((col) => \r\n )}\r\n : undefined} \r\n \r\n );\r\n }\r\n renderRow(numRow, row, isEdit) {\r\n let rowKey = `${numRow}`;//this.getPKkeyValue(pk, numRow);\r\n return (\r\n {row.values.map((val, i) => {\r\n let rowColKey = `${rowKey}_${i}`;\r\n return ({this.renderField(rowColKey, numRow, i, val || '', isEdit)});\r\n })}{isEdit === true ? {this.renderButtomDeleteRestore(numRow, row)} : undefined}\r\n );\r\n }\r\n renderButtomDeleteRestore(rowKey, row) {\r\n if (row.status === 3)\r\n return ();\r\n else\r\n return ();\r\n }\r\n renderField(rowColKey, numRow, indCol, val, isEdit) {\r\n var col = this.props.meta.columns[indCol];\r\n if (isEdit === true && col.isKey !== true) {\r\n if (this.state.rows[numRow].status === 2) {//запись изменена\r\n return ();\r\n } else if (this.state.rows[numRow].status === 3) {// запись будет удалена\r\n return ({val});\r\n } else { //запись не изменна\r\n return ();\r\n }\r\n } else {\r\n if (this.state.rows[numRow].status === 3) // запись будет удалена\r\n return ({val});\r\n else\r\n return ({val});\r\n }\r\n }\r\n getPKey(columns) {\r\n let cols = columns.map((col, index) => { let p = { ...col, index }; return p; });\r\n return cols.filter(col => col.isKey === true);\r\n }\r\n showModalFilter=(e)=>{\r\n e.preventDefault();\r\n this.setState({ isShowModalFilter: true});\r\n }\r\n hideModalFilter = () => {\r\n this.setState({ isShowModalFilter: false });\r\n }\r\n setFilter = (filter) => {\r\n if (filter === undefined || filter.length === 0) {\r\n this.setState({ isShowModalFilter: false, filter: undefined });\r\n return;\r\n }\r\n const rows = Object.assign(this.props.data);\r\n //let regex1 = /^\\w+/;\r\n let filteredRows = rows.filter((r) => {\r\n for (var i in this.props.meta.filter) {\r\n if (filter[i] === undefined) continue;\r\n let itf = this.props.meta.filter[i];\r\n let indexCol = this.getIndexCol(itf.col);\r\n let val = r.values[indexCol];\r\n switch (itf.func) {\r\n case 1:\r\n if (val !== filter[i])\r\n return false;\r\n break;\r\n case 2:\r\n let valUp = val.toUpperCase()\r\n let flUp = filter[i].toUpperCase();\r\n if (valUp.indexOf(flUp) !== 0)\r\n return false;\r\n break;\r\n case 3:\r\n let valUp2 = val.toUpperCase()\r\n let flUp2 = filter[i].toUpperCase();\r\n if (valUp2.indexOf(flUp2) < 0)\r\n return false;\r\n break;\r\n default:\r\n break;\r\n }\r\n }\r\n return true;\r\n });\r\n this.setState({ isShowModalFilter: false, filter ,rows: filteredRows });\r\n }\r\n getIndexCol=(name) => {\r\n for (var i = 0; i < this.props.meta.columns.length; i++) {\r\n if (this.props.meta.columns[i].name === name)\r\n return i;\r\n }\r\n return NaN;\r\n }\r\n clearFilter = () => {\r\n const rows = Object.assign(this.props.data);\r\n this.setState({ isShowModalFilter: false, filter: undefined, rows });\r\n }\r\n\r\n render() {\r\n //let pk = this.getPKey(this.props.meta.columns);\r\n return (\r\n
    \r\n {this.props.mode !== 'load' ? \r\n {this.props.meta.filter.length > 0 ? : undefined}\r\n {' '}\r\n {' '}\r\n : undefined}\r\n \r\n {this.renderHeaderTable(this.props.meta, this.props.mode === 'edit')}\r\n {this.renderBodyTable(this.state.rows, this.props.mode === 'edit')}\r\n
    \r\n \r\n
    \r\n );\r\n }\r\n}\r\nexport default connect(\r\n state => state.userInfo,\r\n dispatch => bindActionCreators(actionCreators, dispatch)\r\n)(DataTable);\r\n/*\r\n {props.forecasts.map(forecast =>\r\n \r\n {forecast.dateFormatted}\r\n {forecast.temperatureC}\r\n {forecast.temperatureF}\r\n {forecast.summary}\r\n \r\n )}\r\n */","import React, { Component } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { Form, Button, FormGroup, FormControl, ControlLabel, Row, Col } from 'react-bootstrap';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\n\r\nimport { actionCreators } from '../../store/Nsi';\r\nimport DataTable from './DataTable';\r\nimport { years } from '../Constants';\r\n\r\nclass Nsi extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = { mode: 'load', selTable: 'kopf', selTableExt:null, selYear: (new Date()).getFullYear() };\r\n this.handleSelectNsiSubmit = this.handleSelectNsiSubmit.bind(this);\r\n this.setEditMode = this.setEditMode.bind(this);\r\n this.saveDataTable = this.saveDataTable.bind(this);\r\n this.cancelData = this.cancelData.bind(this);\r\n this.changeTable = this.changeTable.bind(this);\r\n this.onSelectYear = this.onSelectYear.bind(this);\r\n this.getTableExt = this.getTableExt.bind(this);\r\n\r\n this.props.requestNsiMetadata();\r\n }\r\n handleSelectNsiSubmit(e) {\r\n e.preventDefault();\r\n //тодо загрузить справочник\r\n if (this.state.selTable === \"sprstr\" || this.state.selTable === \"sprgraf\" || this.state.selTable === \"tmp_med\" || this.state.selTable === \"tmp_med_titul\")\r\n this.props.getDataTable(this.state.selTableExt);\r\n else\r\n this.props.getDataTable(this.state.selTable);\r\n this.setState({ mode: 'view' });\r\n }\r\n setEditMode(e) {\r\n //e.preventDefault();\r\n this.setState({ mode: 'edit' });\r\n }\r\n saveDataTable(dataTable) {\r\n if (this.state.selTable === \"sprstr\" || this.state.selTable === \"sprgraf\" || this.state.selTable === \"tmp_med\" || this.state.selTable === \"tmp_med_titul\")\r\n this.props.saveDataTable(this.state.selTableExt, dataTable.filter((row) => row.status === 1 || row.status === 2 || row.status === 3));\r\n else\r\n this.props.saveDataTable(this.state.selTable, dataTable.filter((row) => row.status === 1 || row.status === 2 || row.status === 3));\r\n this.setState({ mode: 'load' });\r\n }\r\n cancelData(e) {\r\n //e.preventDefault();\r\n this.setState({ mode: 'load' });\r\n }\r\n changeTable(e) {\r\n e.preventDefault();\r\n let table = e.target.value;\r\n if (table === \"sprstr\" || table === \"sprgraf\" || table === \"tmp_med\" || table === \"tmp_med_titul\") {\r\n let selTableExt = this.getTableExt(table, this.state.selYear);\r\n this.setState({ selTable: table, selTableExt, mode: 'load' });\r\n }\r\n else\r\n this.setState({ selTable: table, selTableExt:null, mode: 'load' });\r\n }\r\n renderUpdateStatus = () => {\r\n if (this.props.updateStatus === undefined)\r\n return undefined;\r\n if (this.props.updateStatus.successed === true)\r\n return (

    {this.props.updateStatus.message}

    );\r\n else\r\n return (

    {this.props.updateStatus.error}

    );\r\n }\r\n onSelectYear = (e) => {\r\n let year = parseInt(e.target.value, 10);\r\n let selTableExt = this.getTableExt(this.state.selTable,year);\r\n this.setState({ selYear: year, selTableExt, mode: 'load'});\r\n }\r\n getTableExt=(table, year)=>{\r\n let sye = `${year}`;\r\n return table + sye.substr(2);\r\n }\r\n render() {\r\n let selMetaData;\r\n if (!Array.prototype.find)\r\n selMetaData = this.props.nsimeta.filter(el => el.nameTable === this.state.selTable)[0];\r\n else\r\n selMetaData= this.props.nsimeta.find(el => el.nameTable === this.state.selTable);\r\n return (
    \r\n
    \r\n \r\n Справочник:{' '}\r\n \r\n {this.props.nsimeta.map((it) => )}\r\n \r\n {' '}\r\n {this.state.selTable === \"sprstr\" || this.state.selTable === \"sprgraf\" || this.state.selTable === \"tmp_med\" || this.state.selTable === \"tmp_med_titul\"? \r\n \r\n {':'}\r\n \r\n {years.map(it => )}\r\n \r\n :\"\"}\r\n {this.state.mode === 'load' ?\r\n : ''}\r\n
    \r\n {this.props.isLoading === true ? \r\n \r\n
    {I18n.t('loading')}{' '}
    \r\n \r\n
    : ''}\r\n {this.renderUpdateStatus()}\r\n {this.state.mode !== 'load' && this.props.dataTable !== undefined && this.props.isLoading === false ?\r\n :\r\n ''}\r\n
    )\r\n }\r\n}\r\nexport default connect(\r\n state => state.nsi,\r\n dispatch => bindActionCreators(actionCreators, dispatch)\r\n)(Nsi);\r\n//nameRu nameKz nameTable","export function getDateString(today) {\r\n if (today == null) return \"\";\r\n var dd = today.getDate();\r\n\r\n var mm = today.getMonth() + 1;\r\n var yyyy = today.getFullYear();\r\n if (dd < 10) {\r\n dd = '0' + dd;\r\n }\r\n\r\n if (mm < 10) {\r\n mm = '0' + mm;\r\n }\r\n return dd + '.' + mm + '.' + yyyy;\r\n}\r\nexport function formatDateISO(date) {\r\n if (date == null) return null;\r\n var d = new Date(date),\r\n month = '' + (d.getMonth() + 1),\r\n day = '' + d.getDate(),\r\n year = d.getFullYear();\r\n\r\n if (month.length < 2)\r\n month = '0' + month;\r\n if (day.length < 2)\r\n day = '0' + day;\r\n\r\n return [year, month, day].join('-');\r\n}","import React, { Component, Fragment } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { cloneDeep } from 'lodash';\r\n\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport { Row, Col, FormGroup/*, FormControl*/, ControlLabel, Form, Button, Panel, Table } from 'react-bootstrap';\r\nimport DatePicker from 'react-date-picker';\r\nimport { actionCreators as actionClosingPeriod} from '../../store/ClosingPeriod';\r\nimport { actionCreators as actionCreatorsNsi } from '../../store/Nsi';\r\nimport { formatDateISO } from '../common/DateFunctions';\r\n\r\n\r\nimport { years, periods, getCurrentYear } from '../Constants';\r\nclass ClosingPeriod extends Component {\r\n constructor(props) {\r\n super(props);\r\n var self = this;\r\n let nowYear = getCurrentYear();\r\n this.state = {\r\n year: props.year != null ? props.year : nowYear,\r\n kper: props.period !=null ? props.period.kper:4,//4,\r\n oblsClosings: [],\r\n isDataSaved:false\r\n };\r\n //props.getNs('periods');\r\n self.props.getClosingData();\r\n // .finally(() => {\r\n // self.setState({\r\n // year: self.props.closingPeriod.dataClosing.year,\r\n // kper: self.props.closingPeriod.dataClosing.period.kper\r\n // });\r\n //});\r\n }\r\n componentWillReceiveProps(nextProps) {\r\n if (nextProps.closingPeriod.dataClosing !== undefined) {\r\n let dataClosing = cloneDeep(nextProps.closingPeriod.dataClosing);\r\n //let year = years.filter(y => y === dataClosing.year)[0];\r\n this.setState({\r\n year: dataClosing.year,//parseInt(dataClosing.year, 10),// \r\n kper: dataClosing.period.kper,//parseInt(dataClosing.period.kper,10),//\r\n oblsClosings: dataClosing.oblsClosings.map(it => {\r\n return {\r\n ...it,\r\n dtEndLevelRk: new Date(it.dtEndLevelRk),\r\n dtEndLevelObl: new Date(it.dtEndLevelObl),\r\n dtEndLevelRaion: new Date(it.dtEndLevelRaion),\r\n dtEndLevelOrg: new Date(it.dtEndLevelOrg)\r\n }\r\n })\r\n });\r\n }\r\n }\r\n onSelectYear = (e) => {\r\n let year = parseInt(e.target.value, 10);\r\n this.setState({ year });\r\n }\r\n onSelectKper = (e) => {\r\n let kper = parseInt(e.target.value, 10);\r\n this.setState({ kper });\r\n }\r\n onSubmit = (e) => {\r\n e.preventDefault();\r\n var self = this;\r\n self.setState({ isDataSaved: false });\r\n let oblsClosings = self.state.oblsClosings.map((it) => {\r\n return {\r\n ...it,\r\n dtEndLevelRk: formatDateISO(it.dtEndLevelRk),\r\n dtEndLevelObl: formatDateISO(it.dtEndLevelObl),\r\n dtEndLevelRaion: formatDateISO(it.dtEndLevelRaion),\r\n dtEndLevelOrg: formatDateISO(it.dtEndLevelOrg)\r\n };\r\n });\r\n self.props.setClosingData({\r\n year: self.state.year,\r\n period: { kper: self.state.kper },\r\n oblsClosings\r\n }).finally(() => {\r\n self.setState({ isDataSaved: true });\r\n self.props.getClosingData();\r\n });\r\n }\r\n render() {\r\n return \r\n

    \r\n
    Период редактирования (редактирование форм возможно только по этому периоду):
    \r\n
    \r\n \r\n {':'}\r\n \r\n \r\n \r\n \r\n \r\n {':'}\r\n \r\n \r\n \r\n \r\n \r\n Даты закрытия периодов редактирования по областям и уровням\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {this.state.oblsClosings.map((o,i) => {\r\n return \r\n \r\n \r\n \r\n \r\n ;\r\n })}\r\n \r\n
    дата закрытия уровень Организациидата закрытия уровень Районадата закрытия уровень Областидата закрытия уровень РК
    {o.obl.nameRu} {\r\n let oblsClosings = cloneDeep(this.state.oblsClosings);\r\n let o1 = oblsClosings[i];\r\n o1.dtEndLevelOrg = date;\r\n this.state.oblsClosings.splice(i, 1, o1);\r\n this.setState({ oblsClosings });\r\n }} /> {\r\n let oblsClosings = cloneDeep(this.state.oblsClosings);\r\n let o1 = oblsClosings[i];\r\n o1.dtEndLevelRaion = date;\r\n this.state.oblsClosings.splice(i, 1, o1);\r\n this.setState({ oblsClosings });\r\n }} /> {\r\n let oblsClosings = cloneDeep(this.state.oblsClosings);\r\n let o1 = oblsClosings[i];\r\n o1.dtEndLevelObl = date;\r\n this.state.oblsClosings.splice(i, 1, o1);\r\n this.setState({ oblsClosings });\r\n }} />\r\n {\r\n let oblsClosings = cloneDeep(this.state.oblsClosings);\r\n let o1 = oblsClosings[i];\r\n o1.dtEndLevelRk = date;\r\n this.state.oblsClosings.splice(i, 1, o1);\r\n this.setState({ oblsClosings });\r\n }} />\r\n
    \r\n
    \r\n
    \r\n \r\n {this.state.isDataSaved === true ?    : ''}\r\n {this.props.closingPeriod.isLoading === true ? \r\n \r\n
    {I18n.t('wait')}{' '}
    \r\n \r\n
    : ''}\r\n
    \r\n
    ;\r\n }\r\n}\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators({ ...actionCreatorsNsi, ...actionClosingPeriod }, dispatch)\r\n)(ClosingPeriod);","import React, { Component, Fragment } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport { Row, Col, FormGroup, FormControl, ControlLabel, Form, Button, Panel, Alert } from 'react-bootstrap';\r\nimport { actionCreators as actionClosingPeriod } from '../../store/ClosingPeriod';\r\nimport { actionCreators as actionCreatorsNsi } from '../../store/Nsi';\r\nimport { years, periods, getNameLocalize } from '../Constants';\r\nimport SelectObject from '../common/SelectObject';\r\n\r\nclass ClosingOrgPeriod extends Component {\r\n constructor(props) {\r\n super(props);\r\n var self = this;\r\n let dtNow = new Date();\r\n let yeCyr = dtNow.getFullYear();\r\n let yePr = yeCyr - 1;\r\n let month = dtNow.getMonth() + 1;\r\n this.state = {\r\n tobj: 4,//props.userInfo.user.accessLevel,\r\n obl: { kobl: props.userInfo.user.kodObl, nameRu: props.userInfo.user.nameObl, nameKz: props.userInfo.user.nameOblKz },\r\n raion: { kraion: props.userInfo.user.kodRaion.substring(0, 4), nameRu: props.userInfo.user.nameRaion, nameKz: props.userInfo.user.nameRaionKz },\r\n org: { korg: props.userInfo.user.kodOrg, nameRu: props.userInfo.user.nameOrg, nameKz: props.userInfo.user.nameOrgKz },\r\n yearClose: `${yePr}`,\r\n yearCloseMonth: `${yeCyr}`,\r\n monthClose: `${month}`,\r\n updateStatus: null,\r\n isLoading: false,\r\n requiredSave: false\r\n }\r\n this.onLoadDataOrg = this.onLoadDataOrg.bind(this);\r\n this.onSubmitForm = this.onSubmitForm.bind(this);\r\n this.showStatus = this.showStatus.bind(this);\r\n this.showRequiredSave = this.showRequiredSave.bind(this);\r\n // this.getData(props, self);\r\n props.getNs('orgs', [{ name: \"obl\", value: props.userInfo.user.kodObl }]);\r\n }\r\n componentWillMount() {\r\n this.getData(this.props, this);\r\n }\r\n getData(props, self) {\r\n const fetchData = async () => {\r\n let ret = await props.getCloseOrg(self.state.org.korg);\r\n let cl = ret.closingOrg;\r\n if (cl != null) {\r\n self.setState({ yearClose: `${cl.yearClose}`, yearCloseMonth: `${cl.yearCloseMonth}`, monthClose: `${cl.monthClose}`, updateStatus: null, isLoading: false, requiredSave: false });\r\n } else {\r\n self.setState({ isLoading: false, requiredSave: true });\r\n }\r\n }\r\n self.setState({ isLoading: true });\r\n fetchData();\r\n }\r\n onLoadDataOrg(evt) {\r\n evt.preventDefault();\r\n if (this.state.org == null) return;\r\n var self = this;\r\n this.getData(this.props, self);\r\n }\r\n onSubmitForm(evt) {\r\n evt.preventDefault();\r\n var self = this;\r\n self.setState({ updateStatus: undefined, isLoading: true });\r\n const fechUpdate = async () => {\r\n let updateStatus = await self.props.saveCloseOrg(self.state.org.korg, self.state.yearClose, self.state.yearCloseMonth, self.state.monthClose);\r\n if (updateStatus != null) {\r\n self.setState({ updateStatus, isLoading: false, requiredSave: updateStatus.successed===false });\r\n } else {\r\n self.setState({ isLoading: false, requiredSave: true });\r\n }\r\n }\r\n fechUpdate();\r\n }\r\n showStatus() {\r\n if (this.state.updateStatus.successed === true) {\r\n return \r\n \r\n \r\n \r\n ;\r\n } else {\r\n return \r\n \r\n {':'}{this.state.updateStatus.error} \r\n \r\n ;\r\n }\r\n }\r\n showRequiredSave() {\r\n return \r\n \r\n \r\n \r\n ;\r\n }\r\n render() {\r\n let disabledBt = this.state.isLoading === true || this.state.org == null;\r\n return \r\n

    \r\n \r\n this.setState({ tobj })}\r\n setObl={(obl) => this.setState({ obl })}\r\n setRaion={(raion) => this.setState({ raion })}\r\n setOrg={(org) => this.setState({ org })}\r\n hideTorg={true}\r\n year={this.state.yearClose}\r\n />\r\n \r\n \r\n \r\n\r\n \r\n {getNameLocalize(this.props.i18n, this.state.org)}\r\n \r\n
    \r\n\r\n\r\n \r\n \r\n {':'}\r\n this.setState({ yearClose: evt.target.value })} style={{ minWidth: '100%' }} disabled={disabledBt === true}>\r\n {years.map(ye => )}\r\n \r\n \r\n \r\n
    \r\n \r\n \r\n \r\n {':'}\r\n this.setState({ yearCloseMonth: evt.target.value })} style={{ minWidth: '100%' }} disabled={disabledBt === true}>\r\n {years.map(ye => )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {':'}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n {this.state.requiredSave===true?this.showRequiredSave():\"\"}\r\n {this.state.updateStatus!=null?this.showStatus():''}\r\n
    \r\n
    \r\n }\r\n}\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators({ ...actionCreatorsNsi, ...actionClosingPeriod }, dispatch)\r\n)(ClosingOrgPeriod);\r\n/*\r\n {getNameLocalize(this.props.i18n, this.state.org)}\r\n */","import React, { Component } from 'react';\r\nimport Tree from '@naisutech/react-tree'\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { actionCreators } from '../../store/FinPaidData';\r\nconst myTheme = {\r\n 'my-theme': {\r\n text: '#000',\r\n bg: '#fff',\r\n highlight: 'lightgray', // the colours used for selected and hover items\r\n decal: 'darkgray', // the colours used for open folder indicators and icons\r\n accent: '#999' // the colour used for row borders and empty file indicators\r\n }\r\n}\r\n/*\r\nconst data = [\r\n {\r\n \"id\": \"00\",\r\n \"parentId\": null,\r\n \"label\": \"Республика казахстан\",\r\n },\r\n {\r\n \"id\": \"01\",\r\n \"label\": \"Респ. организации г.Алматы\",\r\n \"parentId\": \"00\"\r\n },\r\n {\r\n \"id\": \"11\",\r\n \"label\": \"Акмолинская\",\r\n \"parentId\": \"00\",\r\n \"items\": [\r\n { \"id\": \"1110\", \"label\": \"Кокшетау Г.А.\", \"parentId\": \"11\" },\r\n { \"id\": \"1118\", \"label\": \"Степногорск Г.А.\", \"parentId\": \"11\" },\r\n { \"id\": \"1132\", \"label\": \"Аккольский район\", \"parentId\": \"11\" }\r\n ]\r\n },\r\n {\r\n \"id\": \"15\",\r\n \"label\": \"Актюбинская\",\r\n \"parentId\": \"00\",\r\n \"items\": [\r\n { \"id\": \"1510\", \"label\": \"Кокшетау Г.А.\", \"parentId\": \"15\" },\r\n { \"id\": \"1532\", \"label\": \"Степногорск Г.А.\", \"parentId\": \"15\" },\r\n { \"id\": \"1534\", \"label\": \"Аккольский район\", \"parentId\": \"15\" }\r\n ]\r\n }\r\n];\r\n*/\r\nclass ObjsTree extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.onSelect = this.onSelect.bind(this);\r\n }\r\n componentWillMount() {\r\n this.props.getAllObjects(this.props.year);\r\n }\r\n componentWillReceiveProps(nextProps) {\r\n if (nextProps.year != this.props.year)\r\n nextProps.getAllObjects(nextProps.year/*parseInt(nextProps.year,10)*/);\r\n }\r\n onSelect(selectedNode) {\r\n this.props.onSelectObj(selectedNode);\r\n }\r\n render() {\r\n return (\r\n \r\n );\r\n }\r\n}\r\nexport default connect(\r\n state => state.finPaidData,\r\n dispatch => bindActionCreators(actionCreators, dispatch)\r\n)(ObjsTree);","import React, { Component,Fragment } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { Modal, Button, Panel, Col, FormGroup, FormControl, ControlLabel, Form } from 'react-bootstrap';\r\nimport NumberFormat from 'react-number-format';\r\nimport DatePicker from 'react-date-picker';\r\nimport { getDateString, formatDateISO } from '../common/DateFunctions';\r\n\r\nimport { actionCreators } from '../../store/FinPaidData';\r\nimport './DogovorModal.css';\r\nclass SelectOrgModal extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n showModalDeleteDogovor: false,\r\n showModalDeleteBill: false,\r\n showModalEditBill: false,\r\n showModalEditDogovor: false,\r\n \r\n selectedDogovor: undefined,\r\n editDogovor: undefined,\r\n deleteDogovor: undefined,\r\n\r\n selectedBill: undefined,\r\n editBill: undefined,\r\n deleteBill: undefined,\r\n\r\n }\r\n this.addDogovor = this.addDogovor.bind(this);\r\n\r\n this.editDogovor = this.editDogovor.bind(this);\r\n this.deleteDogovor = this.deleteDogovor.bind(this);\r\n this.handleDeleteDogovor = this.handleDeleteDogovor.bind(this);\r\n this.handleHideDeleteDogovor = this.handleHideDeleteDogovor.bind(this);\r\n this.handleEditDogovor = this.handleEditDogovor.bind(this);\r\n this.handleHideEditDogovor = this.handleHideEditDogovor.bind(this);\r\n this.onSubmitDogovorForm = this.onSubmitDogovorForm.bind(this);\r\n\r\n this.addBill = this.addBill.bind(this);\r\n this.selectBill = this.selectBill.bind(this);\r\n this.editBill = this.editBill.bind(this);\r\n this.deleteBill = this.deleteBill.bind(this);\r\n this.handleDeleteBill = this.handleDeleteBill.bind(this);\r\n this.handleHideDeleteBill = this.handleHideDeleteBill.bind(this);\r\n this.handleEditBill = this.handleEditBill.bind(this);\r\n this.handleHideEditBill = this.handleHideEditBill.bind(this);\r\n this.onSubmitBillForm = this.onSubmitBillForm.bind(this);\r\n }\r\n componentWillReceiveProps(nextProps) {\r\n if (nextProps.obj != null && (this.props.obj==null || (this.props.obj.kod !== nextProps.obj.kod))) {\r\n this.props.getDogovors({ typeObj: nextProps.obj.typeObj, kodObj: nextProps.obj.kod });\r\n this.setState({ selectedDogovor: undefined, selectedBill: undefined });\r\n }\r\n }\r\n addDogovor = () => {\r\n this.setState({\r\n editDogovor: { id: undefined, obj: this.props.obj, nom: \"\", dt: new Date(), srokOt: new Date(), srokDo: new Date(), summa: 0.0, isNew: true },\r\n showModalEditDogovor: true\r\n });\r\n }\r\n\r\n editDogovor = (editDogovor) => {\r\n this.setState({ showModalEditDogovor: true, editDogovor: { ...editDogovor }});\r\n }\r\n deleteDogovor = (deleteDogovor) => {\r\n this.setState({ deleteDogovor, showModalDeleteDogovor: true });\r\n }\r\n handleHideDeleteDogovor = () => {\r\n this.setState({ showModalDeleteDogovor: false, deleteDogovor: undefined });\r\n }\r\n handleDeleteDogovor = () => {\r\n this.props.DeleteDogovor(this.state.deleteDogovor.id);\r\n this.setState({ deleteDogovor: undefined, showModalDeleteDogovor: false });\r\n }\r\n handleEditDogovor = () => {\r\n if (this.state.editDogovor.id === undefined) {\r\n //новый договор\r\n this.props.AddDogovor({\r\n paidLevel:this.props.obj.typeObj,\r\n kodObj:this.props.obj.kod,\r\n dt:formatDateISO(this.state.editDogovor.dt),\r\n nom:this.state.editDogovor.nom,\r\n srokOt:formatDateISO(this.state.editDogovor.srokOt),\r\n srokDo:formatDateISO(this.state.editDogovor.srokDo),\r\n summa:this.state.editDogovor.summa\r\n });\r\n this.setState({ showModalEditDogovor: false, editDogovor: undefined });\r\n } else {\r\n //редактирование договора\r\n this.props.UpdateDogovor({\r\n id: this.state.editDogovor.id,\r\n paidLevel: this.state.editDogovor.paidLevel,\r\n kodObj: this.state.editDogovor.kodObj,\r\n dt: formatDateISO(this.state.editDogovor.dt),\r\n nom: this.state.editDogovor.nom,\r\n srokOt: formatDateISO(this.state.editDogovor.srokOt),\r\n srokDo: formatDateISO(this.state.editDogovor.srokDo),\r\n summa: this.state.editDogovor.summa\r\n })\r\n this.setState({ selectedDogovor: this.state.editDogovor , showModalEditDogovor: false, editDogovor: undefined });\r\n }\r\n }\r\n handleHideEditDogovor = () => {\r\n this.setState({ showModalEditDogovor: false, editDogovor: undefined });\r\n }\r\n onSubmitDogovorForm = () => {\r\n\r\n }\r\n\r\n addBill = () => {\r\n this.setState({\r\n editBill: { id: undefined, dogovorId: this.state.selectedDogovor.id, nom: \"\", dtFrom: new Date(), dtTo: new Date(), summa: 0.00 },\r\n showModalEditBill: true\r\n });\r\n }\r\n editBill = (editBill) => {\r\n this.setState({ showModalEditBill: true, editBill: { ...editBill } });\r\n }\r\n deleteBill = (deleteBill) => {\r\n this.setState({ deleteBill, showModalDeleteBill: true });\r\n }\r\n handleHideDeleteBill = () => {\r\n this.setState({ showModalDeleteBill: false, deleteBill: undefined });\r\n }\r\n handleDeleteBill = () => {\r\n this.props.DeleteBill(this.state.deleteBill.id,\r\n (dg) => {\r\n this.setState({ selectedDogovor: dg });\r\n });\r\n this.setState({ deleteBill: undefined, showModalDeleteBill: false });\r\n }\r\n selectBill = (selectedBill) => {\r\n this.setState({ selectedBill });\r\n }\r\n handleEditBill = () => {\r\n if (this.state.editBill.id === undefined) {\r\n //новая платежка\r\n this.props.AddBill({\r\n dogovorId: this.state.editBill.dogovorId,\r\n nom: this.state.editBill.nom,\r\n dtFrom: formatDateISO(this.state.editBill.dtFrom),\r\n dtTo: formatDateISO(this.state.editBill.dtTo),\r\n summa: this.state.editBill.summa\r\n }, (dg) => {\r\n this.setState({ selectedDogovor: dg });\r\n });\r\n this.setState({ showModalEditBill: false, editBill: undefined });\r\n\r\n } else {\r\n //редактирование платежки\r\n this.props.UpdateBill({\r\n id: this.state.editBill.id,\r\n dogovorId: this.state.editBill.dogovorId,\r\n nom: this.state.editBill.nom,\r\n dtFrom: formatDateISO(this.state.editBill.dtFrom),\r\n dtTo: formatDateISO(this.state.editBill.dtTo),\r\n summa: this.state.editBill.summa\r\n }, (dg) => {\r\n this.setState({ selectedDogovor: dg });\r\n });\r\n this.setState({ showModalEditBill: false, editBill: undefined });\r\n }\r\n }\r\n handleHideEditBill= () => {\r\n this.setState({ showModalEditBill: false, editBill: undefined });\r\n }\r\n onSubmitBillForm = () => {\r\n\r\n }\r\n\r\n \r\n render() {\r\n return (\r\n \r\n \r\n Договора\r\n \r\n \r\n
    {this.props.obj != null ? this.props.obj.nameRu : \"\"}
    \r\n \r\n \r\n Договора\r\n \r\n
      \r\n {this.props.dogovors.map(dogovor =>\r\n
    • this.setState({ selectedDogovor: dogovor })}\r\n className={'list-group-item' + (this.state.selectedDogovor != null && this.state.selectedDogovor.id === dogovor.id ? ' list-group-item-success' : '')}>\r\n
      Договор № {dogovor.nom} дата: {getDateString(dogovor.dt)} сумма: {dogovor.summa}
      \r\n
      \r\n
    • )}\r\n
    \r\n
    \r\n
    \r\n \r\n \r\n Платежки:\r\n {this.state.selectedDogovor != null ?  Договор № {this.state.selectedDogovor.nom} дата: {getDateString(this.state.selectedDogovor.dt)} сумма: {this.state.selectedDogovor.summa} : ''}\r\n \r\n \r\n
      \r\n {this.state.selectedDogovor != null && this.state.selectedDogovor.bills != null ?\r\n this.state.selectedDogovor.bills.map(bill =>\r\n
    • this.setState({ selectedBill: bill })}\r\n className={'list-group-item' + (this.state.selectedBill != null && this.state.selectedBill.id === bill.id ? ' list-group-item-success' : '')}>\r\n
      Платежка № {bill.nom} дата: {getDateString(bill.dtFrom)} сумма: {bill.summa}
      \r\n
      \r\n
    • ):' '}\r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n Удаление договора\r\n \r\n \r\n

    \r\n Вы дествительно хотите удалить договор {this.state.deleteDogovor !== undefined ? `договор № ${this.state.deleteDogovor.nom} от ${getDateString(this.state.deleteDogovor.dt)}` : ''}?\r\n

    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n Удаление платежки\r\n \r\n \r\n

    \r\n Вы дествительно хотите удалить платежку {this.state.deleteBill !== undefined ? `договор № ${this.state.deleteBill.nom} от ${getDateString(this.state.deleteBill.dtFrom)}` : ''}?\r\n

    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n Добавление/редактирование договора\r\n \r\n \r\n {this.state.editDogovor != null ?\r\n
    \r\n \r\n №\r\n {\r\n var editDogovor = { ...this.state.editDogovor };\r\n editDogovor.nom = e.target.value;\r\n this.setState({ editDogovor });\r\n }}\r\n />\r\n \r\n \r\n Дата договора\r\n \r\n {\r\n var editDogovor = { ...this.state.editDogovor };\r\n editDogovor.dt = date;\r\n this.setState({ editDogovor });\r\n }}/>\r\n \r\n \r\n \r\n с\r\n \r\n {\r\n var editDogovor = { ...this.state.editDogovor };\r\n editDogovor.srokOt = date;\r\n this.setState({ editDogovor });\r\n }} />\r\n \r\n \r\n \r\n по\r\n \r\n {\r\n var editDogovor = { ...this.state.editDogovor };\r\n editDogovor.srokDo = date;\r\n this.setState({ editDogovor });\r\n }} />\r\n \r\n \r\n \r\n Сумма\r\n \r\n {\r\n var editDogovor = { ...this.state.editDogovor };\r\n editDogovor.summa = e.target.value;\r\n this.setState({ editDogovor });\r\n }}/>\r\n \r\n \r\n
    : ''}\r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n Добавление/редактирование платежки\r\n \r\n \r\n {this.state.editBill!=null?\r\n
    \r\n \r\n №\r\n {\r\n var editBill = { ...this.state.editBill };\r\n editBill.nom = e.target.value;\r\n this.setState({ editBill });\r\n }}\r\n />\r\n \r\n \r\n с\r\n \r\n {\r\n var editBill = { ...this.state.editBill };\r\n editBill.dtFrom = date;\r\n this.setState({ editBill });\r\n }} />\r\n \r\n \r\n \r\n по\r\n \r\n {\r\n var editBill = { ...this.state.editBill };\r\n editBill.dtTo = date;\r\n this.setState({ editBill });\r\n }} />\r\n \r\n \r\n \r\n Сумма\r\n \r\n {\r\n var editBill = { ...this.state.editBill };\r\n editBill.summa = e.target.value;\r\n this.setState({ editBill });\r\n }} />\r\n \r\n \r\n
    : ''}\r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n );\r\n }\r\n}\r\nexport default connect(\r\n state => state.finPaidData,\r\n dispatch => bindActionCreators(actionCreators, dispatch)\r\n)(SelectOrgModal);\r\n","import React, { useState, Fragment, useEffect } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { cloneDeep } from 'lodash';\r\n//import * as FileSaver from 'file-saver';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport { Button, FormGroup, Table, Modal, Row, Col, Checkbox, ControlLabel } from 'react-bootstrap';\r\nimport TableScrollbar from 'react-table-scrollbar';\r\n//import * from 'bootstrap-icons';\r\n//import { LinkContainer } from 'react-router-bootstrap';\r\n//import NumberFormat from 'react-number-format';\r\n\r\nimport { actionCreators as actionFinPaidData } from '../../store/FinPaidData';\r\nimport { actionCreators as actionNsi } from '../../store/Nsi';\r\nimport { getNameLocalize } from '../Constants';\r\n\r\nfunction FormsModal(props) {\r\n const [] = useState(() => {\r\n if (props.nsi.sprform.length === 0) props.getNs('sprform');\r\n return true;\r\n }, props.nsi.torg.length > 0);\r\n const [isAllForms, setIsAllForms] = useState(true);\r\n const [forms, setForms] = useState([]);\r\n useEffect(() => {\r\n if (props.showModal === false) {\r\n setForms([]);\r\n setIsAllForms(true);\r\n } else {\r\n //todo load avariable forms by org id\r\n const getForms = async (korg, year) => {\r\n let ret = await props.getFormsByOrg(korg, year);\r\n if (ret.successed === true) {\r\n if (ret.isAllForms === true) {\r\n setForms([]);\r\n setIsAllForms(true);\r\n } else {\r\n setForms(ret.forms);\r\n setIsAllForms(false);\r\n }\r\n } else {\r\n alert(ret.error);\r\n setForms([]);\r\n setIsAllForms(true);\r\n }\r\n }\r\n getForms(props.objKod, props.year);\r\n }\r\n }, [props.showModal, props.objKod, props.year]);\r\n const setAllForms = (check) => {\r\n if (check === true) setForms([]);\r\n setIsAllForms(check);\r\n }\r\n const checkForm = (ch, kf) => {\r\n let incl = forms.includes(kf);\r\n if (ch === true && incl === false) {\r\n let frms = cloneDeep(forms);\r\n frms.push(kf);\r\n setForms(frms);\r\n } else if (incl === true) {\r\n let frms = cloneDeep(forms);\r\n let ind = frms.indexOf(kf);\r\n frms.splice(ind, 1);\r\n setForms(frms);\r\n }\r\n }\r\n const commitBt = (e) => {\r\n e.preventDefault();\r\n //save forms by org id\r\n const saveForms = async () => {\r\n let ret = await props.setFormsByOrg({ year: props.year, kodOrg: props.objKod, isAllForms, forms });\r\n if (ret.successed === true) {\r\n props.commitBt(forms);\r\n } else {\r\n alert(ret.error);\r\n }\r\n }\r\n saveForms();\r\n }\r\n return props.showModal ? \r\n \r\n \r\n {props.year}\r\n \r\n \r\n {props.obj.kod} {getNameLocalize(props.i18n, props.obj)}\r\n \r\n \r\n \r\n setAllForms(e.target.checked)}>\r\n \r\n \r\n {isAllForms != true ? \r\n \r\n \r\n {props.nsi.sprform.map(r => \r\n \r\n \r\n )}\r\n \r\n
    checkForm(e.target.checked, r.kf)}>{/*{r.kf} {getNameLocalize(props.i18n, r)}*/}{r.kf} {getNameLocalize(props.i18n, r)}
    \r\n
    : \"\"}\r\n
    \r\n \r\n \r\n \r\n \r\n
    : \"\"\r\n}\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators({ ...actionFinPaidData, ...actionNsi }, dispatch)\r\n)(FormsModal);","import React, { Fragment } from 'react';\r\n\r\nexport default function CheckBoxQuarter(props) {\r\n const onOk = (evt) => {\r\n evt.preventDefault();\r\n props.onChange({ kod: props.kod, typeObj: props.typeObj, quarter: props.quarter, value: false});\r\n }\r\n const onMinus = (evt) => {\r\n evt.preventDefault();\r\n props.onChange({ kod: props.kod, typeObj: props.typeObj, quarter: props.quarter, value: true });\r\n }\r\n return \r\n {props.checked === true ? : }\r\n \r\n ;\r\n}","import React, { Fragment } from 'react';\r\nimport { Translate } from 'react-redux-i18n';\r\n\r\nexport default function CheckBoxIsPrivateOrg(props) {\r\n const onGov = (evt) => {\r\n evt.preventDefault();\r\n props.onChange({ kod: props.kod, isPrivateOrg: 0});\r\n }\r\n const onPrivate = (evt) => {\r\n evt.preventDefault();\r\n props.onChange({ kod: props.kod, isPrivateOrg:1 });\r\n }\r\n return
    \r\n {props.checked === true ? :\r\n }\r\n
    ;\r\n}","import React, { Fragment } from 'react';\r\n\r\n\r\nexport default function CheckBox50pers(props) {\r\n const on50pers = (vl) => {\r\n props.onChange({ kod: props.kod, is50pers: vl === true? 1: 0});\r\n }\r\n return
    \r\n on50pers(!props.checked)} style={{ cursor: \"pointer\" }}>\r\n
    ;\r\n}","import React, { Component, Fragment } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\n\r\nimport { Translate } from 'react-redux-i18n';\r\n\r\nimport { actionCreators } from '../../store/FinPaidData';\r\nimport DogovorModal from '../Modals/DogovorModal';\r\nimport FormsModal from '../Modals/FormsModal';\r\nimport CheckBoxQuarter from '../common/CheckBoxQuarter';\r\nimport CheckBoxIsPrivateOrg from '../common/CheckBoxIsPrivateOrg';\r\nimport CheckBox50pers from '../common/CheckBox50pers';\r\nimport './PaidsTable.css';\r\n//import { Translate } from 'react-redux-i18n';\r\nclass PaidsTable extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = { searchNameOrg: undefined, showDogovorModal: false, showFormsModal: false, selectObj: undefined };\r\n this.changeOrgNameFilter = this.changeOrgNameFilter.bind(this);\r\n //this.setPaid = this.setPaid.bind(this);\r\n this.setPaid4 = this.setPaid4.bind(this);\r\n this.setPaid3 = this.setPaid3.bind(this);\r\n this.handleHideDogovorModal = this.handleHideDogovorModal.bind(this);\r\n this.btShowDogovors = this.btShowDogovors.bind(this);\r\n this.btShowDogovorsObj = this.btShowDogovorsObj.bind(this);\r\n this.showObjPaids = this.showObjPaids.bind(this);\r\n this.setIsPrivateOrg = this.setIsPrivateOrg.bind(this);\r\n this.setIs50pers = this.setIs50pers.bind(this);\r\n this.btShowFormsObj = this.btShowFormsObj.bind(this);\r\n this.handleHideFormsModal = this.handleHideFormsModal.bind(this);\r\n this.handleCommitBtFormsModal = this.handleCommitBtFormsModal.bind(this)\r\n }\r\n /*\r\n componentWillMount() {\r\n // This method runs when the component is first added to the page\r\n }\r\n */\r\n componentWillReceiveProps(nextProps) {\r\n // This method runs when incoming props (e.g., route params) change\r\n if (this.props.paids.year != nextProps.paids.year || this.props.selectedObj.id != nextProps.selectedObj.id)\r\n this.setState({ searchNameOrg: undefined });\r\n }\r\n changeOrgNameFilter(e) {\r\n var searchNameOrg = e.target.value;\r\n this.setState({ searchNameOrg });\r\n }\r\n setPaid3(d) {\r\n if (d.typeObj/*this.props.paids.typeObj*/ === 4) {\r\n this.props.setPaidOrg(this.props.paids.year, d.kod, d.quarter, d.value);\r\n } else /*if (this.props.paids.typeObj === 2)*/ {\r\n this.props.setPaidTer(this.props.paids.year, d.kod, d.quarter, d.value);\r\n }\r\n }\r\n setPaid4(d) {\r\n this.props.setPaidTer(this.props.paids.year, d.kod, d.quarter, d.value);\r\n }\r\n handleHideDogovorModal() {\r\n this.setState({ showDogovorModal: false, selectObj: undefined });\r\n }\r\n handleHideFormsModal(forms) {\r\n this.setState({ showFormsModal: false, selectObj: undefined });\r\n } \r\n handleCommitBtFormsModal(forms) {\r\n if (forms != null) {\r\n this.props.setPaidFormsOrg(this.props.paids.year, this.state.selectObj.kod, forms);\r\n }\r\n this.setState({ showFormsModal: false, selectObj: undefined });\r\n }\r\n btShowDogovors() {\r\n this.setState({\r\n showDogovorModal: true,\r\n selectObj: { kod: this.props.selectedObj.id, nameRu: this.props.selectedObj.label, typeObj: this.props.paids.typeObj }\r\n });\r\n }\r\n btShowDogovorsObj(obj) {\r\n this.setState({\r\n showDogovorModal: true,\r\n selectObj: obj//{ kod: this.props.selectedObj.id, nameRu: this.props.selectedObj.label, typeObj: this.props.paids.typeObj }\r\n });\r\n }\r\n btShowFormsObj(obj) {\r\n this.setState({\r\n showFormsModal: true,\r\n selectObj: obj//{ kod: this.props.selectedObj.id, nameRu: this.props.selectedObj.label, typeObj: this.props.paids.typeObj }\r\n });\r\n }\r\n showObjPaids() {\r\n return '';\r\n /*\r\n var obj = this.props.paids.obj;\r\n return obj != null ?\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    1 квартал2 квартал3 квартал4 квартал
    \r\n
    : '';\r\n */\r\n }\r\n setIsPrivateOrg(d) {\r\n //if (d.typeObj === 4) {\r\n this.props.setIsPrivateOrg(d.kod, d.isPrivateOrg);\r\n //}\r\n }\r\n setIs50pers(d) {\r\n this.props.setIs50persOrg(d.kod, this.props.paids.year, d.is50pers);\r\n }\r\n render() {\r\n var objsItems = [];\r\n if (this.props.selectedObj !== undefined) {\r\n if (this.props.isLoading === false && this.props.paids !== undefined && this.props.paids.objsItems !== undefined) {\r\n objsItems = this.props.paids.objsItems;\r\n if (this.state.searchNameOrg !== undefined) {\r\n let nameOrgS = this.state.searchNameOrg.toUpperCase();\r\n objsItems = this.props.paids.objsItems.filter(itm => itm.obj.nameRu.toUpperCase().includes(nameOrgS) || itm.obj.kod.startsWith(nameOrgS) || (itm.obj.bin != null && itm.obj.bin.startsWith(nameOrgS)));\r\n }\r\n }\r\n return (\r\n
    {this.props.paids !== undefined && this.props.paids.year !== undefined ? this.props.paids.year + \" год\" : ''}
    \r\n
    \r\n
    \r\n {this.props.selectedParentObj.label} {this.props.selectedObj.label}\r\n \r\n
    \r\n {this.showObjPaids()}\r\n
    \r\n {this.props.isLoading === true ?
    Загрузка...
    :
    \r\n {/*
    \r\n
    */}\r\n {/*
    Фильтр Наименование/Код/Бин
    */}\r\n
    Фильтр Наименование/Код/Бин:
    \r\n
    \r\n {/*
    \r\n
    \r\n
    \r\n
    \r\n
    Бин
    \r\n
    \r\n
    \r\n
    */}\r\n
    }\r\n {this.props.paids !== undefined && this.props.paids.objsItems !== undefined ? \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {objsItems.map(item => \r\n \r\n \r\n \r\n \r\n \r\n )}\r\n \r\n
    Организация1 квартал2 квартал3 квартал4 квартал
    \r\n
    {item.obj.kod} {item.obj.nameRu}
    \r\n {/* {item.obj.typeObj === 4 ?
    this.setIsPrivateOrg(item.obj)} />
    : \"\"}*/}\r\n {item.obj.typeObj === 4 ? <>\r\n
       Бин:{item.obj.bin}    Формы: {item.forms != null && item.forms.length > 0 ? item.forms : \"Все\"}
       \r\n : \"\"}\r\n
    \r\n
    \r\n {item.obj.typeObj === 4 ? : \"\"}\r\n
    \r\n : ''}\r\n \r\n {this.state.selectObj != null ? : \"\"}\r\n
    );\r\n } else {\r\n return (
    Выберите область, район
    );\r\n }\r\n }\r\n}\r\nexport default connect(\r\n state => state.finPaidData,\r\n dispatch => bindActionCreators(actionCreators, dispatch)\r\n)(PaidsTable);\r\n\r\n","import React, { Component, Fragment } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { actionCreators } from '../../store/FinPaidData';\r\n\r\nimport ObjsTree from './ObjsTree';\r\nimport PaidsTable from './PaidsTable';\r\nconst fye = (new Date()).getFullYear();\r\nconst years = [`${fye}`, `${fye+1}`];\r\nclass FinPaidData extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.onSelect = this.onSelect.bind(this);\r\n this.onChangeYear = this.onChangeYear.bind(this);\r\n }\r\n componentWillMount() {\r\n let year =years[0];\r\n // This method runs when the component is first added to the page\r\n this.setState({\r\n selYear: year,\r\n selectedObj: undefined,\r\n selectedParentObj: undefined,\r\n selectTypeObj: undefined, //1-область, 2- район, 3- организация\r\n });\r\n\r\n }\r\n /*\r\n componentWillReceiveProps(nextProps) {\r\n // This method runs when incoming props (e.g., route params) change\r\n }\r\n */\r\n onSelect(selectedObj) {\r\n var selectedParentObj = undefined;\r\n if (selectedObj.id.length === 4) {\r\n //организация\r\n var parents = this.props.obj_data.filter(p => p.id === selectedObj.parentId);\r\n if (parents.length > 0) {\r\n selectedParentObj = parents[0];\r\n }\r\n this.setState({ selectedObj, selectedParentObj });\r\n this.props.getOrgsPaid(selectedObj.id, this.state.selYear);\r\n\r\n } else if (selectedObj.id.length === 2) {\r\n //область\r\n selectedParentObj = {\r\n \"id\": \"00\",\r\n \"parentId\": null,\r\n \"label\": \"Республика казахстан\",\r\n };\r\n this.setState({selectedObj, selectedParentObj});\r\n this.props.getOrgsPaid(selectedObj.id, this.state.selYear);\r\n } else {\r\n this.setState({ selectedObj: undefined, selectedParentObj: undefined });\r\n }\r\n }\r\n onChangeYear(year) {\r\n this.setState({ selYear: year })\r\n if (this.state.selectedObj != null) {\r\n let selectedObj = this.state.selectedObj;\r\n if (selectedObj.id.length === 4 || selectedObj.id.length === 2) {\r\n this.props.getOrgsPaid(selectedObj.id, year);\r\n }\r\n }\r\n }\r\n render() {\r\n return (\r\n \r\n

    Учет оплаты за использование портала год:{' '}

    \r\n

    Укажите организации, которые оплатили доступ на портал по кварталам

    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n {this.state.selectedObj !== undefined ?\r\n \r\n :
    Выберите область, район
    }\r\n
    \r\n
    \r\n
    \r\n );\r\n }\r\n}\r\nexport default connect(\r\n state => state.finPaidData,\r\n dispatch => bindActionCreators(actionCreators, dispatch)\r\n)(FinPaidData);\r\n","import React, { Component, Fragment } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport * as FileSaver from 'file-saver';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport { Button, Col, FormGroup, FormControl, ControlLabel, Form, Row, Table } from 'react-bootstrap';\r\n\r\nimport './ReportFin.css';\r\n//import { ExportCSV } from '../Work/ExportCSV';\r\n\r\nimport { actionCreators } from '../../store/FinPaidData';\r\nimport { years, getCurrentYear } from '../Constants';\r\n\r\nclass FinPaidData extends Component {\r\n constructor(props) {\r\n super(props);\r\n let nowYear = getCurrentYear() + 1;\r\n this.state = {\r\n year: props.year !== undefined ? props.year : nowYear, isLoading: false,\r\n }\r\n this.onCreateReport = this.onCreateReport.bind(this);\r\n this.toExcel = this.toExcel.bind(this);\r\n }\r\n onSelectYear = (e) => {\r\n let year = parseInt(e.target.value, 10);\r\n this.setState({ year });\r\n }\r\n onCreateReport = (e) => {\r\n e.preventDefault();\r\n this.props.getReport1(this.state.year);\r\n }\r\n renderPrivateOrg = (isPrivateOrg) => {\r\n if (isPrivateOrg === 1)\r\n return ()\r\n else\r\n return \"\";\r\n }\r\n renderRowsTable = (it, i) => {\r\n return \r\n {it.oblName}\r\n {it.teName}\r\n {it.orgKod} {this.renderPrivateOrg(it.isPrivateOrg)} {it.orgName}\r\n \r\n
    {it.strDog}
    \r\n
    {it.strPlat}
    \r\n {it.is50pers === true ?
    : \"\"}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    1 квартал2 квартал3 квартал4 квартал
    {it.paidQ1 === true ? Да : Нет}{it.paidQ2 === true ? Да : Нет}{it.paidQ3 === true ? Да : Нет}{it.paidQ4 === true ? Да : Нет}
    \r\n \r\n \r\n }\r\n renderReduceRowsTable = () => {\r\n let ret = [];\r\n let last = this.props.finPaidData.rep1data.items[0];//this.props.finPaidData.rep1data.items[this.props.finPaidData.rep1data.items.length - 1];\r\n this.props.finPaidData.rep1data.items.reduce((last, it, i) => {\r\n if (last.oblKod !== it.oblKod) {\r\n try {\r\n //найти итог по области\r\n let ar_itog = this.props.finPaidData.rep1data.oblsCnts.filter(f => f.kod === last.oblKod);\r\n let cnt_pl = this.props.finPaidData.rep1data.items.filter(f => f.oblKod === last.oblKod).length;\r\n let cnt_private = this.props.finPaidData.rep1data.items.filter(f => f.oblKod === last.oblKod && f.isPrivateOrg===1).length;\r\n let cnt_50pers = this.props.finPaidData.rep1data.items.filter(f => f.oblKod === last.oblKod && f.is50pers === true).length;\r\n if (ar_itog.length > 0) {\r\n ret.push(\r\n {last.oblName}\r\n Организаций всего: {ar_itog[0].cnt} , из них оплатили: {cnt_pl}, из них частные: {cnt_private}, из них оплатили 50%: {cnt_50pers}\r\n );\r\n }\r\n } catch (er) {\r\n console.error(er);\r\n }\r\n }\r\n ret.push(this.renderRowsTable(it, i));\r\n if (i === this.props.finPaidData.rep1data.items.length - 1) {\r\n //поместить итог по последней области\r\n let ar_itog = this.props.finPaidData.rep1data.oblsCnts.filter(f => f.kod === it.oblKod);\r\n let cnt_pl = this.props.finPaidData.rep1data.items.filter(f => f.oblKod === it.oblKod).length;\r\n let cnt_private = this.props.finPaidData.rep1data.items.filter(f => f.oblKod === it.oblKod && f.isPrivateOrg === 1).length;\r\n let cnt_50pers = this.props.finPaidData.rep1data.items.filter(f => f.oblKod === last.oblKod && f.is50pers === true).length;\r\n if (ar_itog.length > 0) {\r\n ret.push(\r\n {it.oblName}\r\n Организаций всего: {ar_itog[0].cnt} , из них оплатили: {cnt_pl}, из них частные: {cnt_private}, из них оплатили 50%: {cnt_50pers}\r\n );\r\n }\r\n }\r\n return it;\r\n }, last);\r\n return ret;\r\n }\r\n renderItog = () => {\r\n let cnt_private = this.props.finPaidData.rep1data.items.filter(f => f.isPrivateOrg === 1).length;\r\n let cnt_50pers = this.props.finPaidData.rep1data.items.filter(f => f.is50pers === true).length;\r\n return \r\n \r\n Организаций всего: {this.props.finPaidData.rep1data.allOrgs}, из них оплатили: {this.props.finPaidData.rep1data.items.length}, из них частные: {cnt_private}, из них оплатили 50%: {cnt_50pers}\r\n \r\n ;\r\n }\r\n /*\r\n excelDataCSV = () => {\r\n let dataCSV = [];\r\n let last = this.props.finPaidData.rep1data.items[0];//this.props.finPaidData.rep1data.items[this.props.finPaidData.rep1data.items.length - 1];\r\n this.props.finPaidData.rep1data.items.reduce((last, s, i) => {\r\n let row = {};\r\n if (last.oblKod !== s.oblKod) {\r\n try {\r\n //найти итог по области\r\n let ar_itog = this.props.finPaidData.rep1data.oblsCnts.filter(f => f.kod === last.oblKod);\r\n let cnt_pl = this.props.finPaidData.rep1data.items.filter(f => f.oblKod === last.oblKod).length;\r\n let cnt_private = this.props.finPaidData.rep1data.items.filter(f => f.oblKod === last.oblKod && f.isPrivateOrg === 1).length;\r\n if (ar_itog.length > 0) {\r\n row[\"Область\"] = last.oblName;\r\n row[\"Район\"] = `Организаций всего: ${ar_itog[0].cnt}, из них оплатили: ${cnt_pl}, из них частные: ${cnt_private}`;\r\n dataCSV.push(row);\r\n }\r\n } catch (er) {\r\n console.error(er);\r\n }\r\n }\r\n row = {};\r\n row[\"Область\"] = s.oblName;\r\n row[\"Район\"] = s.teName;\r\n row[\"Организация\"] = s.orgKod + ' ' + s.orgName;\r\n row[\"Договор\"] = s.strDog;\r\n row[\"Платежка\"] = s.strPlat;\r\n row[\"1 квартал\"] = s.paidQ1 === true ? 'Да' : 'Нет';\r\n row[\"2 квартал\"] = s.paidQ2 === true ? 'Да' : 'Нет';\r\n row[\"3 квартал\"] = s.paidQ3 === true ? 'Да' : 'Нет';\r\n row[\"4 квартал\"] = s.paidQ4 === true ? 'Да' : 'Нет';\r\n dataCSV.push(row);\r\n\r\n if (i === this.props.finPaidData.rep1data.items.length - 1) {\r\n //поместить итог по последней области\r\n let ar_itog = this.props.finPaidData.rep1data.oblsCnts.filter(f => f.kod === s.oblKod);\r\n let cnt_pl = this.props.finPaidData.rep1data.items.filter(f => f.oblKod === s.oblKod).length;\r\n let cnt_private = this.props.finPaidData.rep1data.items.filter(f => f.oblKod === s.oblKod && f.isPrivateOrg === 1).length;\r\n if (ar_itog.length > 0) {\r\n row = {};\r\n row[\"Область\"] = s.oblName;\r\n row[\"Район\"] = `Организаций всего: ${ar_itog[0].cnt}, из них оплатили: ${cnt_pl}, из них частные: ${cnt_private}`;\r\n dataCSV.push(row);\r\n }\r\n }\r\n return s;\r\n }, last);\r\n let cnt_private = this.props.finPaidData.rep1data.items.filter(f => f.isPrivateOrg === 1).length;\r\n dataCSV.push({ \"Область\": `Организаций всего: ${this.props.finPaidData.rep1data.allOrgs}, из них оплатили: ${this.props.finPaidData.rep1data.items.length}, из них частные: ${cnt_private}` });\r\n return dataCSV;\r\n }\r\n */\r\n printData = (e) => {\r\n e.preventDefault();\r\n window.print();\r\n }\r\n toExcel = (e) => {\r\n e.preventDefault();\r\n const execRep = async () => {\r\n this.setState({ isLoading: true });\r\n let absoluteUrl = `${document.location.protocol}//${document.location.host}/FinRepExcel?year=${this.state.year}`;\r\n let fileName = `medstat-finreport-${this.state.year}.xlsx`;\r\n var token = this.props.userInfo.user.token;\r\n const response = await fetch(absoluteUrl, {\r\n credentials: 'include',\r\n method: 'GET',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const blob = await response.blob();\r\n FileSaver.saveAs(blob, fileName);\r\n this.setState({ isLoading: false });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n this.setState({ isLoading: false });\r\n };\r\n execRep();\r\n }\r\n render() {\r\n var nextYear = getCurrentYear() + 1;\r\n return (\r\n \r\n

    \r\n
    \r\n \r\n \r\n \r\n {':'}\r\n \r\n \r\n {years.filter(f=>f>2018).map(it => )}\r\n {/**/}\r\n \r\n \r\n \r\n \r\n
    \r\n {this.props.finPaidData.isLoading === true || this.state.isLoading === true ?
    {I18n.t('wait')}{' '}
    : ''}\r\n {this.props.finPaidData.rep1data != null ? \r\n \r\n \r\n {/**/}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {this.renderReduceRowsTable()}\r\n {this.renderItog()}\r\n \r\n
    {this.state.year} год
    ОбластьРайонОрганизацияОплата
    : ''}\r\n
    \r\n );\r\n }\r\n}\r\n// {this.props.finPaidData.rep1data.items.map((it, i) => this.renderRowsTable(it, i))}\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators(actionCreators, dispatch)\r\n)(FinPaidData);\r\n","import React from 'react'\r\nimport { Translate } from 'react-redux-i18n';\r\nimport { Button } from 'react-bootstrap';\r\nimport * as FileSaver from 'file-saver';\r\nimport * as XLSX from 'xlsx';\r\n\r\nexport const ExportCSV = ({ csvData, fileName, disabled }) => {\r\n\r\n const fileType = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8';\r\n const fileExtension = '.xlsx';\r\n\r\n const exportToCSV = (csvData, fileName) => {\r\n const ws = XLSX.utils.json_to_sheet(csvData);\r\n const wb = { Sheets: { 'data': ws }, SheetNames: ['data'] };\r\n const excelBuffer = XLSX.write(wb, { bookType: 'xlsx', type: 'array' });\r\n const data = new Blob([excelBuffer], { type: fileType });\r\n FileSaver.saveAs(data, fileName + fileExtension);\r\n }\r\n\r\n return (\r\n \r\n )\r\n}","import React, { Component, Fragment } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport { Button, Col, FormGroup, FormControl, ControlLabel, Form, Row, Table } from 'react-bootstrap';\r\n\r\nimport './ReportFin.css';\r\nimport { ExportCSV } from '../Work/ExportCSV';\r\n\r\nimport { actionCreators } from '../../store/Work';\r\nimport { years, getCurrentYear } from '../Constants';\r\n\r\nclass FinPaidDataRCRZ extends Component {\r\n constructor(props) {\r\n super(props);\r\n let nowYear = getCurrentYear()+1;\r\n this.state = {\r\n year: props.year !== undefined ? props.year : nowYear,\r\n }\r\n this.onCreateReport = this.onCreateReport.bind(this)\r\n }\r\n onSelectYear = (e) => {\r\n let year = parseInt(e.target.value, 10);\r\n this.setState({ year });\r\n }\r\n onCreateReport = (e) => {\r\n e.preventDefault();\r\n this.props.getReport1(this.state.year);\r\n }\r\n renderRowsTable = (it, i) => {\r\n return \r\n {it.oblName}\r\n {it.teName}\r\n {it.orgKod} {it.orgName}\r\n \r\n
    {it.strDog}
    \r\n \r\n \r\n }\r\n //renderReduceRowsTable = () => {\r\n // let ret = [];\r\n // let last = this.props.rep1data.items[this.props.rep1data.items - 1];\r\n // this.props.rep1data.items.reduce((last, it, i) => {\r\n // if (last.OblKod != it.OblKod) {\r\n // //найти итог по области\r\n // //var itog = this.props.rep1data\r\n // ret.push(\r\n // {it.oblName}\r\n // {it.teName}\r\n // );\r\n // }\r\n // ret.push(this.renderRowsTable(it,i));\r\n // return it;\r\n // }, last);\r\n // //поместить итог по последней области\r\n // return ret;\r\n //}\r\n renderItog = () => {\r\n return \r\n \r\n Организаций всего: {this.props.rep1data.allOrgs}, из них заключили договор: {this.props.rep1data.items.length}\r\n \r\n ;\r\n }\r\n /*\r\n getCountOrgsOpl() {\r\n var count = 0;\r\n //for (var i = 0; i < this.props.rep1data.items.length; ++i) {\r\n // let it = this.props.rep1data.items[i];\r\n // if (it.paidQ1 === true && it.paidQ2 === true && it.paidQ3 === true && it.paidQ4 === true)\r\n // count++;\r\n //}\r\n return count;\r\n }\r\n */\r\n excelDataCSV = () => {\r\n let dataCSV = [];\r\n let tobl = I18n.t('obl');\r\n let traion = I18n.t('raion');\r\n let torg = I18n.t('org');\r\n let tdog = I18n.t('dogovor');\r\n for (var i = 0; i < this.props.rep1data.items.length; i++) {\r\n let row = {};\r\n let s = this.props.rep1data.items[i];\r\n row[tobl] = s.oblName;\r\n row[traion] = s.teName;\r\n row[torg] = s.orgKod + ' ' + s.orgName;\r\n row[tdog] = s.strDog;\r\n dataCSV.push(row);\r\n }\r\n let itog = {};\r\n itog[tobl] = `Организаций всего: ${this.props.rep1data.allOrgs}, из них заключили договор: ${this.props.rep1data.items.length}`;\r\n dataCSV.push(itog);\r\n return dataCSV;\r\n }\r\n printData = (e) => {\r\n e.preventDefault();\r\n window.print();\r\n }\r\n render() {\r\n var nextYear = getCurrentYear() + 1;\r\n return (\r\n \r\n

    \r\n
    \r\n \r\n \r\n \r\n {':'}\r\n \r\n \r\n {years.filter(f => f > 2018).map(it => )}\r\n {/**/}\r\n \r\n \r\n \r\n \r\n
    \r\n {this.props.rep1data != null && this.props.rep1data.success === true?\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {this.props.rep1data.items.map((it, i) => this.renderRowsTable(it, i))}\r\n {this.renderItog()}\r\n \r\n
    {this.state.year}
    \r\n
    : ''}\r\n {this.props.rep1data != null && this.props.rep1data.success === true ?
    {this.props.rep1data.error}
    : ''}\r\n
    \r\n );\r\n }\r\n}\r\n// {this.props.rep1data.items.map((it, i) => this.renderRowsTable(it, i))}\r\nexport default connect(\r\n state => state.work,\r\n dispatch => bindActionCreators(actionCreators, dispatch)\r\n)(FinPaidDataRCRZ);\r\n","import React, { Fragment } from 'react';\r\nimport { Row, Col} from 'react-bootstrap';\r\nimport { Translate } from 'react-redux-i18n';\r\nimport { getNameLocalize } from '../Constants';\r\n\r\nimport './InfoSelectedForEdit.css';\r\n\r\nconst InfoSelectedForEdit = props => {\r\n let nameObj = '';\r\n switch (props.tobj.kod) {\r\n case 1:\r\n nameObj = \"РК\";\r\n break;\r\n case 2:\r\n nameObj = getNameLocalize(props.i18n, props.obl);\r\n break;\r\n case 3:\r\n nameObj = `${getNameLocalize(props.i18n, props.obl)}, ${getNameLocalize(props.i18n, props.raion)}`;\r\n break;\r\n case 4:\r\n nameObj = `${getNameLocalize(props.i18n, props.obl)}, ${getNameLocalize(props.i18n, props.raion)}, ${getNameLocalize(props.i18n, props.org)}`;\r\n break;\r\n default:\r\n }\r\n return \r\n \r\n :{props.year}\r\n {props.period != null ? :{getNameLocalize(props.i18n, props.period)}: ''}\r\n {props.raz != null ? :{getNameLocalize(props.i18n, props.raz)} : ''}\r\n {props.tobj != null ? {getNameLocalize(props.i18n, props.tobj)}:{nameObj} : ''}\r\n :{props.isPostr ? : }
    \r\n {props.form != null ? :{props.form.kf} {getNameLocalize(props.i18n, props.form)} : ''}\r\n {props.table != null ? :{props.table.ktab} {getNameLocalize(props.i18n, props.table)} : ''}\r\n \r\n \r\n
    ;\r\n};\r\nexport default InfoSelectedForEdit;","import React, { Component, Fragment } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { FormGroup, FormControl, ControlLabel, Row, Col } from 'react-bootstrap';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport { getNameLocalize, filterForms, filterRazdels } from '../Constants';\r\n\r\nimport { actionCreators } from '../../store/Nsi';\r\n\r\nclass SelectFormTable extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n krazd: props.krazd != null ? props.krazd: undefined,//:\"01\",//то до first krazd\r\n form: props.form != null ? props.form : props.userInfo.user.firstFormTable.formGod /*{ kf: \"01\", nameRu: \"Численность постоянного населения РК\", nameKz: \"Қазақстан Республикасының тұрақты тұрғындары\" }*/,\r\n table: props.table != null ? props.table : props.userInfo.user.firstFormTable.tableGod/*{ kf: \"01\", ktab: \"0001\", nameRu: \"Постоянное население Республики Казахстан\", nameKz: \"Қазақстан Республикасының тұрақты тұрғындары\" }*/,\r\n kper: props.kper != null ? props.kper:4\r\n }\r\n this.onSelectRazdel = this.onSelectRazdel.bind(this);\r\n this.onSelectForm = this.onSelectForm.bind(this);\r\n this.onSelectTab = this.onSelectTab.bind(this);\r\n //if (props.nsi.sprform.length === 0) {\r\n // props.getNs('sprform');\r\n //}\r\n //if (props.nsi.allsprtab.length === 0) {\r\n // props.getNs('allsprtab');\r\n //}\r\n }\r\n componentWillReceiveProps(nextProps) {\r\n if (!(this.state.form.kf === nextProps.form.kf && this.state.table.ktab === nextProps.table.ktab))\r\n this.setState({ /*...this.state,*/form: nextProps.form, table: nextProps.table });\r\n if (this.state.kper != nextProps.kper && this.state.table.planYear === 1 && nextProps.kper != 4) {\r\n let ar = this.props.nsi.allsprtab.filter(spr => spr.kf === this.state.form.kf && spr.planYear === 0);\r\n if (ar.length > 0) {\r\n this.props.setTable(ar[0]);\r\n }\r\n }\r\n }\r\n onSelectRazdel(e) {\r\n let krazd = e.target.value;\r\n if (krazd === \"\") {\r\n let form = this.props.userInfo.user.firstFormTable.formGod;\r\n let table = this.props.userInfo.user.firstFormTable.tableGod;\r\n this.setState({ krazd: undefined, form, table });\r\n this.props.setForm(form);\r\n this.props.setTable(table);\r\n this.props.setKrazd(undefined)\r\n } else {\r\n if (this.props.userInfo.user.accessForm.length > 0) {\r\n let form = this.props.nsi.sprform.filter(spr => filterForms(this.props.userInfo.user.accessForm, spr.kf, this.props.kper)\r\n && spr.razdels.length > 0 && spr.razdels.includes(krazd))[0];\r\n let table = this.props.nsi.allsprtab.filter(spr => spr.kf === form.kf)[0];\r\n this.setState({ krazd, form, table });\r\n this.props.setForm(form);\r\n this.props.setTable(table);\r\n } else {\r\n let form = this.props.nsi.sprform.filter(spr => spr.razdels.length > 0 && spr.razdels.includes(krazd))[0];\r\n let table = this.props.nsi.allsprtab.filter(spr => spr.kf === form.kf)[0];\r\n this.setState({ krazd, form, table });\r\n this.props.setForm(form);\r\n this.props.setTable(table);\r\n }\r\n this.props.setKrazd(krazd);\r\n }\r\n }\r\n\r\n onSelectForm(e) {\r\n let kf = e.target.value;\r\n let form = this.props.nsi.sprform.filter(spr => spr.kf === kf)[0];\r\n let table = this.props.nsi.allsprtab.filter(spr => spr.kf === kf)[0];\r\n this.setState({ form, table });\r\n this.props.setForm(form);\r\n this.props.setTable(table);\r\n }\r\n onSelectTab = (e) => {\r\n let ktab = e.target.value;\r\n let table = this.props.nsi.allsprtab.filter(spr => spr.kf === this.state.form.kf && spr.ktab === ktab)[0];\r\n this.setState({ table });\r\n this.props.setTable(table);\r\n }\r\n\r\n render() {\r\n return (\r\n \r\n \r\n \r\n \r\n {':'}\r\n \r\n \r\n {this.props.nsi.sprrazdel.filter(f => filterRazdels(this.props.nsi.sprform, this.props.userInfo.user.accessForm, f.krazd, this.props.kper)).map(it => )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {':'}\r\n \r\n {this.props.noFilter === true ? this.props.nsi.sprform.filter(f => this.state.krazd == null ? true : f.razdels.includes(this.state.krazd)).map(it => ) :\r\n this.props.nsi.sprform.filter(f => filterForms(this.props.userInfo.user.accessForm, f.kf, this.props.kper) && (this.state.krazd == null ? true : f.razdels.includes(this.state.krazd))).map(it => )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {':'}\r\n \r\n {this.props.nsi.allsprtab.filter(spr => spr.kf === this.state.form.kf && !(this.props.kper != 4 && spr.planYear===1)).map(it => )}\r\n \r\n \r\n \r\n );\r\n }\r\n}\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators(actionCreators, dispatch)\r\n)(SelectFormTable);","import React, { Component } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { Form, FormGroup, FormControl, ControlLabel, Modal, Button, ButtonGroup, Row, Col, Radio } from 'react-bootstrap';\r\nimport { Translate } from 'react-redux-i18n';\r\n//import { Typeahead } from 'react-bootstrap-typeahead';\r\nimport { getNameLocalize, years, getCurrentYear, getFirstRaz, getFirstFormTable, getRazItems } from '../Constants';\r\n//import FilterRazOptions from '../common/FilterRazOptions';\r\nimport SelectFormTable from '../common/SelectFormTable';\r\nimport SelectObject from '../common/SelectObject';\r\nimport { actionCreators } from '../../store/Nsi';\r\nimport './SelectTableForEdit.css';\r\n\r\nclass SelectTableForEdit extends Component {\r\n constructor(props) {\r\n super(props);\r\n let nowYear = getCurrentYear();\r\n let kper = 4;\r\n let raz = getFirstRaz(kper, props);\r\n this.state = {\r\n year: nowYear,//props.year !== undefined ? props.year : nowYear,\r\n kper,//период\r\n kraz: raz != null ? raz:1,//разрез\r\n tobj: props.userInfo.user.accessLevel, // тип обьекта 1 – РК; 2 – область; 3 - район; 4 - организация (доступ зависит от пользователя)\r\n obl: undefined,\r\n raion: undefined,\r\n org: undefined,\r\n form: kper === 4 ? props.userInfo.user.firstFormTable.formGod : props.userInfo.user.firstFormTable.formMes/*{ kf: \"01\", nameRu: \"Численность постоянного населения РК\", nameKz: \"Қазақстан Республикасының тұрақты тұрғындары\" }*/,\r\n table: kper === 4 ? props.userInfo.user.firstFormTable.tableGod : props.userInfo.user.firstFormTable.tableMess /*{ kf: \"01\", ktab: \"0001\", nameRu: \"Постоянное население Республики Казахстан\", nameKz: \"Қазақстан Республикасының тұрақты тұрғындары\" }*/,\r\n isPostr: false, //Построчка\r\n krazd: undefined\r\n };\r\n this.onOpenTable = this.onOpenTable.bind(this);\r\n\r\n if (props.nsi.allsprtab.length === 0) {\r\n props.getNs('allsprtab');\r\n }\r\n if (props.nsi.sprform.length === 0) {\r\n props.getNs('sprform');\r\n }\r\n if (props.nsi.periods.length === 0) {\r\n props.getNs('periods');\r\n }\r\n if (props.nsi.sprraz.length === 0) {\r\n props.getNs('sprraz');\r\n }\r\n if (props.nsi.sprrazdel.length === 0) {\r\n props.getNs('sprrazdel');\r\n }\r\n }\r\n /* \r\n componentWillMount() {\r\n // This method runs when the component is first added to the page\r\n //this.props.getNs('sprform');\r\n if (this.props.userInfo.user.accessRaz.length > 0) {\r\n this.setState({ kraz: this.props.userInfo.user.accessRaz[0]});\r\n }\r\n }\r\n */\r\n\r\n componentWillReceiveProps(nextProps) {\r\n // This method runs when incoming props (e.g., route params) change\r\n if (nextProps.selectParam != null) {\r\n this.setState({\r\n year: nextProps.selectParam.year,\r\n kper: nextProps.selectParam.period.kper,\r\n kraz: nextProps.selectParam.raz.kod,\r\n tobj: nextProps.selectParam.tobj.kod,\r\n obl: nextProps.selectParam.obl,\r\n raion: nextProps.selectParam.raion,\r\n org: nextProps.selectParam.org,\r\n form: nextProps.selectParam.form,\r\n table: nextProps.selectParam.table,\r\n isPostr: nextProps.selectParam.isPostr\r\n });\r\n } /*else if (this.props.userInfo.user.accessRaz.length > 0 || this.props.userInfo.user.accessForm.length > 0) {\r\n if (this.props.userInfo.user.accessRaz.length > 0 && this.props.userInfo.user.accessForm.length === 0)\r\n this.setState({ kraz: this.props.userInfo.user.accessRaz[0] });\r\n else if (this.props.userInfo.user.accessRaz.length === 0 && this.props.userInfo.user.accessForm.length > 0)\r\n ;// ttodo set form table \r\n else if (this.props.userInfo.user.accessRaz.length > 0 && this.props.userInfo.user.accessForm.length > 0) {\r\n let kraz = this.props.userInfo.user.accessRaz[0];\r\n let kform = this.props.userInfo.user.accessForm[0];\r\n this.setState({ kraz });\r\n }\r\n }*/\r\n }\r\n onOpenTable = (e) => {\r\n e.preventDefault();\r\n let ntobj = {};\r\n switch (this.state.tobj) {\r\n case 1:\r\n ntobj = { nameRu: \"РК\", nameKz: \"РК\" };\r\n break;\r\n case 2:\r\n ntobj = { nameRu: \"Область\", nameKz: \"Облысы\" };\r\n break;\r\n case 3:\r\n ntobj = { nameRu: \"Район\", nameKz: \"Ауданы\" };\r\n break;\r\n case 4:\r\n ntobj = { nameRu: \"Организация\", nameKz: \"Ұйымдастыру\" };\r\n break;\r\n default:\r\n }\r\n this.props.handleCommit({\r\n year: this.state.year,\r\n period: this.props.nsi.periods.filter(p => p.kper === this.state.kper)[0],\r\n raz: this.props.nsi.sprraz.filter(p => p.kod === this.state.kraz)[0],\r\n tobj: { kod: this.state.tobj, ...ntobj },\r\n obl: this.state.obl,\r\n raion: this.state.raion,\r\n org: this.state.org,\r\n form: this.state.form,\r\n table: this.state.table,\r\n isPostr: this.state.isPostr\r\n });\r\n this.props.handleHide();\r\n }\r\n onSelectYear = (e) => {\r\n let year = parseInt(e.target.value, 10);\r\n this.setState({ year });\r\n }\r\n onSelectKper = (e) => {\r\n let kper = parseInt(e.target.value, 10);\r\n let kraz = getFirstRaz(kper, this.props);\r\n let { form, table } = getFirstFormTable(kper, this.props);\r\n if (kraz == null) {\r\n if (form == null) {\r\n this.setState({ kper });\r\n } else {\r\n this.setState({ kper, form, table });\r\n }\r\n } else {\r\n if (form == null) {\r\n this.setState({ kper, kraz });\r\n } else {\r\n this.setState({ kper, kraz, form, table });\r\n }\r\n }\r\n }\r\n onSelectKraz = (e) => {\r\n let kraz = parseInt(e.target.value, 10);\r\n this.setState({ kraz });\r\n }\r\n onChangeIsPostr = (e) => {\r\n let isPostr = e.target.value === 'true';\r\n this.setState({ isPostr });\r\n }\r\n /*\r\n filterRaz = (accessRaz, kod) => {\r\n if (accessRaz.length > 0) {\r\n if (this.state.kraz === 4) {\r\n return accessRaz.filter(f => f.isGod===true && f.raz === kod).length > 0;\r\n } else {\r\n return accessRaz.filter(f => f.isMes === true && f.raz === kod).length > 0;\r\n }\r\n }\r\n return true;\r\n }\r\n */\r\n render() {\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n \r\n {':'}\r\n \r\n \r\n {years.map(it => )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {':'}\r\n \r\n {this.props.nsi.periods.map(it => )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {':'}\r\n \r\n {getRazItems(this.props, this.state.kper)}\r\n \r\n \r\n \r\n\r\n this.setState({ form })}\r\n setTable={(table) => this.setState({ table })}\r\n kper={this.state.kper}\r\n form={this.state.form} table={this.state.table}\r\n krazd={this.state.krazd}\r\n setKrazd={(krazd) => this.setState({ krazd })}\r\n />\r\n\r\n this.setState({ tobj })}\r\n setObl={(obl) => this.setState({ obl })}\r\n setRaion={(raion) => this.setState({ raion })}\r\n setOrg={(org) => this.setState({ org })}\r\n year={this.state.year}\r\n />\r\n \r\n \r\n \r\n {' '}\r\n {' '}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n );\r\n }\r\n}\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators(actionCreators, dispatch)\r\n)(SelectTableForEdit);\r\n","import React, { useState, Fragment, useEffect } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { cloneDeep } from 'lodash';\r\nimport * as FileSaver from 'file-saver';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport { Button, ButtonGroup, Table, Modal, Row, Col, Alert, OverlayTrigger, Tooltip } from 'react-bootstrap';\r\n\r\n//import * from 'bootstrap-icons';\r\n//import { LinkContainer } from 'react-router-bootstrap';\r\nimport NumberFormat from 'react-number-format';\r\n\r\nimport { actionCreators as actionUsrInfo } from '../../store/UserInfo';\r\nimport { actionCreators as actionNsi } from '../../store/Nsi';\r\nimport { getNameLocalize } from '../Constants';\r\n\r\nimport './TableView.css';\r\n\r\nfunction TableView2(props) {\r\n const [mode, setMode] = useState('view');\r\n const [activeTabKey, setActiveTabKey] = useState('data');\r\n const [isLoading, setIsLoading] = useState(false);\r\n const [dataStore, setDataStore] = useState();\r\n const [showConfirmDelete, setShowConfirmDelete] = useState(false);\r\n const [isAutoCalc, setIsAutoCalc] = useState(true);\r\n //const [showWait, setShowWait] = useState(false);\r\n useEffect(() => {\r\n setDataStore(props.storeData);\r\n setIsAutoCalc(props.storeData.kf != \"70\" && props.storeData.kf != \"71\" && props.storeData.kf != \"72\" && props.storeData.kf != \"73\" && props.storeData.kf != \"74\"); \r\n }, [props.tiks]);\r\n\r\n const setEditMode = (e) => {\r\n e.preventDefault();\r\n setMode(\"edit\");\r\n setActiveTabKey('data');\r\n }\r\n const saveData = (e) => {\r\n e.preventDefault();\r\n props.saveData(dataStore);\r\n setMode(\"view\");\r\n }\r\n const cancelData = (e) => {\r\n e.preventDefault();\r\n setMode(\"view\");\r\n setDataStore(cloneDeep(props.storeData));\r\n // this.setState({ mode: 'view', dataStore: this.cloneRows(this.props.storeData) });\r\n }\r\n const printData = (e) => {\r\n e.preventDefault();\r\n if (activeTabKey === 'data') {\r\n //печать данных формы\r\n props.printData();\r\n } else {\r\n //печать результатов контроля\r\n props.printControl();\r\n }\r\n }\r\n const createExcelForm = (e) => {\r\n e.preventDefault();\r\n fetchExcel(dataStore);\r\n }\r\n const fetchExcel = async (p) => {\r\n setIsLoading(true);\r\n let absoluteUrl = `${document.location.protocol}//${document.location.host}/generate/Excel/${p.year}/${p.period}/${p.raz}/${p.tobj}/${p.kobj}/${p.kf}/${props.i18n.locale.substr(0, 2)}`;\r\n let fileName = `${p.year}_${p.period}_${p.raz}_${p.tobj}_${p.kobj}_${p.kf}.xlsx`;\r\n const response = await fetch(absoluteUrl, {\r\n credentials: 'include',\r\n method: 'GET',\r\n headers: {\r\n 'Authorization': `Bearer ${props.userInfo.user.token}`\r\n }\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const blob = await response.blob();\r\n FileSaver.saveAs(blob, fileName);\r\n setIsLoading(false);\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n setIsLoading(false);\r\n }\r\n }\r\n const statusUpdate = () => {\r\n if (props.storeData.statusUpdate !== undefined) {\r\n if (props.storeData.statusUpdate.successed)\r\n return (
    );\r\n else\r\n return (
    {':'}{props.storeData.statusUpdate.error}
    );\r\n }\r\n return ('');\r\n }\r\n const statusDelete = () => {\r\n if (props.work.statusDelete != null) {\r\n if (props.work.statusDelete.successed===true)\r\n return ('')//(
    );\r\n else\r\n return (
    {props.work.statusDelete.error}
    );\r\n }\r\n return ('');\r\n }\r\n\r\n const confirmDelete = (e) => {\r\n e.preventDefault();\r\n setShowConfirmDelete(true);\r\n }\r\n const handleCloseConfirmDelete = (e) => {\r\n e.preventDefault();\r\n setShowConfirmDelete(false);\r\n }\r\n const deleteData = (e) => {\r\n e.preventDefault();\r\n props.deleteData();\r\n setShowConfirmDelete(false);\r\n }\r\n\r\n const renderPostr = () => {\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {dataStore.rows.map(r => renderRowPostr(r))}\r\n \r\n
    Строка {mode === 'edit' && dataStore != null && dataStore.controlCells.length > 0 ? <>
    \r\n : \"\"}\r\n {dataStore != null && dataStore.controlCells.length > 0 ? <>
    \r\n - Итог правильно\r\n - Итог не правильно:\"\"}\r\n
    КолонкаЗначение
    );\r\n }\r\n const renderRowPostr = (r) => {\r\n let strs = dataStore.strs;\r\n let str = strs.filter((s) => r.kstr === s.kstr)[0];\r\n let isNotHeader = str.kstr !== ' ' && str.kstr !== ' ' && str.kstr !== ' ';\r\n if (isNotHeader === true) {\r\n let countCol = r.values.length;\r\n return r.values.map((v, i) => renderColPostr(v, i, str, countCol));\r\n } else\r\n return ({`${str.nstr == null ? \" \" : str.nstr + \" \"}(${str.kstr})`} {getNameLocalize(props.i18n, str)})\r\n }\r\n const renderColPostr = (v, i, str, countCol) => {\r\n let gr = dataStore.grs.filter((g) => g.kgr === v.kgr)[0];\r\n return ({i === 0 ? {`${str.nstr == null ? \" \" : str.nstr + \" \"}(${str.kstr})`} {getNameLocalize(props.i18n, str)} : undefined}{gr.kgr} {getNameLocalize(props.i18n, gr)}\r\n {getControlNumber(v, str.kstr, v.kgr)});\r\n }\r\n\r\n const renderTable = () => {\r\n return (
    \r\n
    \r\n
    \r\n {mode === 'edit' && dataStore != null && dataStore.controlCells.length > 0 ? <>
    \r\n : \"\"}\r\n {dataStore != null && dataStore.controlCells.length > 0 ? <>
    \r\n - Итог правильно\r\n - Итог не правильно : \"\"}\r\n
    \r\n
    \r\n {dataStore.grs.map((g) => {\r\n let name = getNameLocalize(props.i18n, g);\r\n return
    {g.kgr} {name}
    \r\n })}\r\n
    \r\n {dataStore.rows.map(r => renderRowTable(r))}\r\n
    );\r\n }\r\n const recalcItogs = (evt) => {\r\n evt.preventDefault();\r\n //setShowWait(true);\r\n calculateAllItogs();\r\n //setShowWait(false);\r\n }\r\n const calculateAllItogs = () => {\r\n //первый проход\r\n let ds = cloneDeep(dataStore);//this.cloneRows(this.state.dataStore);\r\n /*ds.rows = *///clearItogs(ds);\r\n /*ds.rows = */recalcPart(ds);\r\n setDataStore(ds);\r\n }\r\n /*\r\n const clearItogs = (ds) => {\r\n for (var i in ds.rows) {\r\n let row = ds.rows[i];\r\n for (var j in row.values.filter(f => f.controlCell != null && f.controlCell.length > 0)) {\r\n let val = row.values[j];\r\n val.vl = 0;\r\n }\r\n }\r\n }\r\n */\r\n const recalcPart = (ds) => {\r\n for (var i in ds.controlCells) {\r\n let cont = ds.controlCells[i];\r\n let s = 0;\r\n for (var j in cont.srcCells) {\r\n let cell = cont.srcCells[j];\r\n let dr = ds.rows.filter(r => r.kstr === cell.r);\r\n if (dr.length > 0) {\r\n let dc = dr[0].values.filter(c => c.kgr === cell.c);\r\n if (dc.length > 0 && dc[0].vl > 0) {\r\n if (cell.s===\"-\")\r\n s = s - Number(dc[0].vl);\r\n else\r\n s = s + Number(dc[0].vl);\r\n }\r\n }\r\n }\r\n let dr = ds.rows.filter(r => r.kstr === cont.cellItog.r);\r\n s = s.toFixed(3);\r\n if (dr.length > 0) {\r\n let dc = dr[0].values.filter(c => c.kgr === cont.cellItog.c);\r\n if (dc.length > 0)\r\n dc[0].vl = s;\r\n else\r\n dc.push({ vl: s, originalVl: s, kstr: cont.cellItog.r, kgr: cont.cellItog.c, controlCells: cont });\r\n } else {\r\n ds.rows.push({\r\n kstr: cont.cellItog.r,\r\n values: [{ vl: s, originalVl: s, kstr: cont.cellItog.r, kgr: cont.cellItog.c, controlCells: cont }]\r\n });\r\n }\r\n }\r\n }\r\n\r\n const renderRowTable = (r) => {\r\n let strs = dataStore.strs;\r\n let str = strs.filter((s) => r.kstr === s.kstr)[0];\r\n let isNotHeader = str.kstr !== ' ' && str.kstr !== ' ' && str.kstr !== ' ';\r\n return (
    \r\n {isNotHeader === true ?
    {getNameLocalize(props.i18n, str)}
    :\r\n
    {str.nstr}
    }\r\n {isNotHeader === true ?
    {`${str.nstr == null ? \" \" : str.nstr + \" \"}(${str.kstr})`}
    :
    {`${str.nstr == null ? \" \" : str.nstr + \" \"}(${str.kstr})`}
    }\r\n {dataStore.grs.map((gr) => {\r\n let agraf = r.values.filter(f => f.str === str.kstr && f.kgr === gr.kgr);\r\n if (agraf != null && agraf.length > 0) {\r\n let v = agraf[0];\r\n return
    {getControlNumber(v, str.kstr, v.kgr)}
    ;\r\n } else\r\n return (
    );\r\n })}\r\n
    );\r\n }\r\n\r\n const getControlNumber = (v, str, kgr) => {\r\n let keyinput = `${str}_${kgr}`;\r\n //игнорировать блокируемые ячейки\r\n if (dataStore.blockCells.filter(f => f.r === str && f.c === kgr).length > 0) {\r\n return X;\r\n }\r\n let style = { color: v.vl === v.originalVl ? 'black' : 'blue' };\r\n if (v.controlCell == null || v.controlCell.length === 0) {\r\n return NumberCtrl(v.vl, keyinput, style);\r\n } else {\r\n let noError = true;\r\n var itogs = calcItog(v.controlCell);\r\n let nv = v.vl === null ? 0 : Number(v.vl).toFixed(3);\r\n let aSylesFormuls = [];\r\n for (var i in itogs) {\r\n if (itogs[i] != nv) {\r\n noError = false;\r\n aSylesFormuls.push({ color: \"white\", backgroundColor: \"red\" });\r\n } else {\r\n aSylesFormuls.push({ color: \"black\", backgroundColor: \"lightgreen\" });\r\n }\r\n }\r\n //let cls = itogs[i] === v.vl || (v.vl == null && itogs[i]===0)? \"tooltip-success\" : \"tooltip-danger\";\r\n if (noError === false)\r\n style = { color: \"white\", backgroundColor: \"red\" };\r\n else\r\n style = { color: \"black\", backgroundColor: \"lightgreen\" };\r\n return \r\n
    \r\n {v.controlCell.map((m, i) =>
    {m.k2}
    {m.formul}
    \r\n {nv != itogs[i] ?
    {nv}!={itogs[i]}
    : \"\"}\r\n
    )}\r\n
    \r\n }>\r\n {NumberCtrl(v.vl, keyinput, style)}\r\n
    \r\n }\r\n }\r\n const NumberCtrl = (vl, keyinput, style) => {\r\n if (mode === \"edit\") {\r\n if (isAutoCalc === true)\r\n return valueChange(values, keyinput)} onKeyDown={handleKeyPress}\r\n key={keyinput} id={keyinput} value={vl} style={style} />\r\n else\r\n return onBlur(evt, keyinput)} onKeyDown={handleKeyPress}\r\n key={keyinput} id={keyinput} value={vl} style={style} />\r\n } else {\r\n return
    {vl > 0 ? new Intl.NumberFormat(\"ru-RU\").format(vl):vl}
    //{/**/ };\r\n }\r\n //thousandSeparator={' '}\r\n }\r\n const calcItog = (controlCell, data) => {\r\n let sum = [];\r\n let ds = data != null ? data : dataStore;\r\n for (var j in controlCell) {\r\n let srcCells = controlCell[j].srcCells;\r\n let s = 0;\r\n for (var i in srcCells) {\r\n let cell = srcCells[i];\r\n let dr = ds.rows.filter(r => r.kstr === cell.r);\r\n if (dr.length > 0) {\r\n let dc = dr[0].values.filter(c => c.kgr === cell.c);\r\n if (dc.length > 0 && dc[0].vl > 0)\r\n if (cell.s === \"-\")\r\n s = s - Number(dc[0].vl);\r\n else\r\n s = s + Number(dc[0].vl);\r\n }\r\n }\r\n sum.push(s.toFixed(3));\r\n }\r\n return sum;\r\n }\r\n const onBlur = (evt, id) => {\r\n let vstr = evt.target.value == null ? \"0.0\" : evt.target.value.trim();\r\n var vl = parseFloat(vstr);\r\n let ar = id.split('_');\r\n let kstr = ar[0];\r\n let kgr = ar[1];\r\n let ds = cloneDeep(dataStore);\r\n let row;\r\n let col;\r\n row = ds.rows.filter((r) => r.kstr === kstr)[0];\r\n col = row.values.filter((c) => c.kgr === kgr && c.str === kstr)[0];\r\n col.vl = vl;\r\n if (isAutoCalc === true && (col.controlCell == null || col.controlCell.length === 0)) {\r\n recalcPart(ds);\r\n }\r\n setDataStore(ds);\r\n }\r\n const valueChange = (values, id) => {\r\n let vl = values.floatValue === undefined ? 0.0 : values.floatValue;\r\n let ar = id.split('_');\r\n let kstr = ar[0];\r\n let kgr = ar[1];\r\n let ds = cloneDeep(dataStore);//this.cloneRows(this.state.dataStore);\r\n let row;\r\n let col;\r\n row = ds.rows.filter((r) => r.kstr === kstr)[0];\r\n col = row.values.filter((c) => c.kgr === kgr && c.str === kstr)[0];\r\n col.vl = vl;\r\n if (isAutoCalc===true && (col.controlCell == null || col.controlCell.length === 0)) {\r\n recalcPart(ds);\r\n }\r\n setDataStore(ds);\r\n }\r\n const handleKeyPress = (e) => {\r\n if (e.keyCode === 13) {\r\n e.preventDefault(); // Prevent form submission if button present\r\n let next = e.target.parentNode.nextSibling;\r\n if (next != null) {\r\n e.target.blur();\r\n next.firstChild.focus();\r\n return;\r\n } else {\r\n let nextRow = e.target.parentNode.parentNode.nextSibling;\r\n if (nextRow != null) {\r\n if (props.isPostr === true) {\r\n if (nextRow.children[1].children[0] != null) {\r\n if (nextRow.children[1].children[0].focus != null) {\r\n e.target.blur();\r\n nextRow.children[1].children[0].focus();\r\n return;\r\n }\r\n } else if (nextRow.children[2].children[0] != null) {\r\n if (nextRow.children[2].children[0].focus != null) {\r\n e.target.blur();\r\n nextRow.children[2].children[0].focus();\r\n return;\r\n }\r\n }/*else {\r\n\r\n }*/\r\n } else {\r\n if (nextRow.children[2].firstChild.focus != null) {\r\n e.target.blur();\r\n nextRow.children[2].firstChild.focus();\r\n return;\r\n } /*else {\r\n\r\n }*/\r\n }\r\n }\r\n }\r\n }\r\n }\r\n const IsVisibleEdit = (ds) => {\r\n switch (props.userInfo.user.accessLevel) {\r\n case 1://РК\r\n return ds.statusRk != 2 && ds.statusTableRk != 2 && ds.statusTableObl != 2;\r\n case 2://Область\r\n if (ds.tobj === 4 && ds.kobj === props.userInfo.user.kodOrg)\r\n return ds.statusRk != 2 && ds.statusTableRk != 2 && ds.statusTableObl != 2;\r\n //11.02.2025 форма 30 область может редактировать только себя если не readonly и не заболокирована РК\r\n //18.02.2025 форма 47 область может редактировать только себя если не readonly и не заболокирована РК\r\n else if (ds.tobj === 2 && ds.kobj === props.userInfo.user.kodObl && (ds.kf == \"30\" || ds.kf == \"47\") && ds.year==2024) \r\n return ds.statusRk != 2 && ds.statusTableRk != 2;\r\n //else if (ds.tobj === 3)//районы не редактруются\r\n // return false;\r\n else //редактрование организаций\r\n return ds.statusRk != 2 && ds.statusTableRk != 2 && (ds.statusTableObl === 2 || ds.statusObl === 2);\r\n default:\r\n return ds.statusRk != 2 && ds.statusTableRk != 2 && ds.statusTableObl != 2;\r\n }\r\n return true;\r\n }\r\n if (dataStore == null || dataStore.rows == undefined)\r\n return ('');\r\n let isAdminData = props.userInfo.user.roles.filter(r => r === 'AdminEditData').length > 0 ? true : false;\r\n let isReadData = props.userInfo.user.roles.filter(r => r === 'UserReadData').length > 0 ? true : dataStore.readOnly;\r\n let visibleEdit = IsVisibleEdit(dataStore);\r\n\r\n return
    \r\n {statusUpdate()}\r\n {statusDelete()}\r\n \r\n {mode === 'view' ? \r\n {' '}\r\n {isReadData === false && visibleEdit === true ? : ''}\r\n {' '} : ''}\r\n {mode === 'edit' ? \r\n {' '}\r\n : ''}\r\n \r\n \r\n {((props.isAvariableDelete === true && visibleEdit === true) || (isAdminData === true && mode === 'view')) ? : ''}\r\n {mode === 'view' ? \r\n \r\n {dataStore.year > 2016 ? : \"\"}\r\n {/**/}\r\n : ''}\r\n \r\n {isReadData === false && dataStore.statusTableRk === 2 && props.userInfo.user.accessLevel!=1 ? <>
    : \"\"}\r\n {isReadData === false && dataStore.statusTableObl === 2 && props.userInfo.user.accessLevel != 2 ? <>
    : \"\"}\r\n {isReadData === false && dataStore.statusRk === 2 && props.userInfo.user.accessLevel != 1? : \"\"}\r\n {isLoading ?
    {I18n.t('wait')}{' '}
    : ''}\r\n {/*{props.storeData.statusUpdate != null && props.storeData.statusUpdate.error != null ? \r\n \r\n {props.storeData.statusUpdate.error}\r\n \r\n : ''}\r\n {props.storeData.statusDelete != null && props.storeData.statusDelete.error != null ? \r\n \r\n {props.storeData.statusDelete.error}\r\n \r\n : ''}*/}\r\n {props.isPostr === true ? renderPostr() : renderTable()}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {/*{showWait ? \r\n \r\n
    {I18n.t('wait')}
    \r\n
    \r\n : \"\"}*/}\r\n
    \r\n}\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators({ ...actionUsrInfo, ...actionNsi }, dispatch)\r\n)(TableView2);","import React, { Component, Fragment, useState } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { Translate } from 'react-redux-i18n';\r\nimport { Button } from 'react-bootstrap';\r\nimport { actionCreators as actionCreatorsWork } from '../../store/Work';\r\nimport { actionCreators as actionCreatorsNsi } from '../../store/Nsi';\r\n\r\nimport { getTikcs } from '../Constants';\r\n\r\nimport InfoSelectedForEdit from '../common/InfoSelectedForEdit';\r\nimport SelectTableForEdit from '../Modals/SelectTableForEdit';\r\nimport TableView2 from './TableView2';\r\nclass OpenForm extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n showSelectTable: true,\r\n selectParam: undefined,\r\n isAvariableDelete: false,\r\n childOrgs: [],\r\n tiks: getTikcs()\r\n };\r\n this.showModalSelect = this.showModalSelect.bind(this);\r\n this.onHideSelectModal = this.onHideSelectModal.bind(this);\r\n this.fetchFunc = this.fetchFunc.bind(this);\r\n this.commitModal = this.commitModal.bind(this);\r\n if (props.userInfo.user.nomenklKod === '008' || props.userInfo.user.nomenklKod === '049' || props.userInfo.user.nomenklKod === '043') {\r\n this.getSubOrgs();\r\n }\r\n }\r\n getSubOrgs() {\r\n var self = this;\r\n const fetchData = async () => {\r\n const childOrgs = await self.props.getSubOrgs();\r\n self.setState({ childOrgs });\r\n }\r\n fetchData();\r\n }\r\n showModalSelect() {\r\n this.setState({ showSelectTable: true });\r\n }\r\n onHideSelectModal() {\r\n this.setState({ showSelectTable: false });\r\n }\r\n getKobj = (selectParam) => {\r\n switch (selectParam.tobj.kod) {\r\n case 1://РК\r\n return \"00\";\r\n case 2://Область\r\n return selectParam.obl.kobl;\r\n case 3://Район\r\n return selectParam.raion.kraion;\r\n case 4://Организация\r\n return selectParam.org.korg;\r\n default:\r\n }\r\n return null;\r\n }\r\n commitModal(selectParam) {\r\n const com = async () => {\r\n let kobj = this.getKobj(selectParam);\r\n /*\r\n let isAvariableDelete = false;\r\n if (this.props.userInfo.user.accessLevel === 4 ||\r\n (this.props.userInfo.user.accessLevel === 3 && this.props.userInfo.user.nomenklKod === '008' || this.props.userInfo.user.nomenklKod === '049' || this.props.userInfo.user.nomenklKod === '043')) {\r\n if (selectParam.tobj.kod === 4 && (this.props.userInfo.user.kodOrg === kobj || this.state.childOrgs.filter(f => f.kod === kobj).length > 0)) {\r\n isAvariableDelete = true;\r\n }\r\n } else if (this.props.userInfo.user.accessLevel === 2) {\r\n if (this.props.userInfo.user.kodOrg === kobj) {\r\n isAvariableDelete = true;\r\n } else if (selectParam.year === 2022) {\r\n if (selectParam.tobj.kod === 2 && kobj === this.props.userInfo.user.kodObl) {\r\n isAvariableDelete = true;\r\n } else if (selectParam.tobj.kod === 3 && kobj === this.props.userInfo.user.kodRaion) {\r\n isAvariableDelete = true;\r\n }\r\n } else {\r\n isAvariableDelete= await props.getIsAvariableDelete({\r\n year: selectParam.year,\r\n period: selectParam.period.kper,\r\n raz: selectParam.raz.kod,\r\n tobj: selectParam.tobj.kod,\r\n kobj: kobj,\r\n kf: selectParam.form.kf,\r\n kt: selectParam.table.ktab\r\n });\r\n }\r\n }\r\n */\r\n let isAvariableDelete = await this.props.getIsAvariableDelete({\r\n year: selectParam.year,\r\n period: selectParam.period.kper,\r\n raz: selectParam.raz.kod,\r\n tobj: selectParam.tobj.kod,\r\n kobj: kobj,\r\n kf: selectParam.form.kf,\r\n kt: selectParam.table.ktab\r\n });\r\n this.setState({ selectParam, isAvariableDelete });\r\n await this.fetchFunc({\r\n year: selectParam.year,\r\n period: selectParam.period.kper,\r\n raz: selectParam.raz.kod,\r\n tobj: selectParam.tobj.kod,\r\n kobj: kobj,\r\n kf: selectParam.form.kf,\r\n kt: selectParam.table.ktab\r\n }, \"getData\");\r\n }\r\n com();\r\n }\r\n fetchFunc = async (p, func) => {\r\n await this.props[func](p);\r\n this.setState({ tiks: getTikcs() });\r\n }\r\n saveDataTable = (dataStore) => {\r\n this.props.updateData(dataStore);\r\n }\r\n printData = () => {\r\n window.print();\r\n }\r\n deleteDataTable = () => {\r\n let kobj = this.getKobj(this.state.selectParam);\r\n this.fetchFunc({\r\n Year: this.state.selectParam.year,\r\n Raz: this.state.selectParam.raz.kod,\r\n Period: this.state.selectParam.period.kper,\r\n Tobj: this.state.selectParam.tobj.kod,\r\n Kobj: kobj,\r\n Kf: this.state.selectParam.form.kf,\r\n Kt: this.state.selectParam.table.ktab\r\n }, \"deleteData\");\r\n this.setState({ tiks: getTikcs() });\r\n /*this.props.deleteData({\r\n Year: this.state.selectParam.year,\r\n Raz: this.state.selectParam.raz.kod,\r\n Period: this.state.selectParam.period.kper,\r\n Tobj: this.state.selectParam.tobj.kod,\r\n Kobj: kobj,\r\n Kf: this.state.selectParam.form.kf,\r\n Kt: this.state.selectParam.table.ktab\r\n });\r\n */\r\n }\r\n render() {\r\n return \r\n

    \r\n {this.state.selectParam == null ? '' :\r\n }\r\n {this.props.work.data !== undefined && this.props.work.data.rows !== null ?\r\n : }\r\n\r\n \r\n
    ;\r\n }\r\n}\r\nexport default connect(\r\n state => state,\r\n //dispatch => bindActionCreators(actionCreators, dispatch)\r\n dispatch => bindActionCreators({ ...actionCreatorsNsi, ...actionCreatorsWork }, dispatch)\r\n)(OpenForm);","import React, { Fragment, useState, useEffect } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { Form, ControlLabel, FormControl, Row, Col, Button, FormGroup } from 'react-bootstrap';\r\nimport { Translate } from 'react-redux-i18n';\r\nimport { actionCreators } from '../../store/Nsi';\r\n//import { getNameLocalize } from '../Constants';\r\n\r\nfunction SelectClassMkb(props) {\r\n const [classMkb, setClassMkb] = useState();\r\n const [listClassMkbs, setListClassMkbs] = useState([]);\r\n useEffect(() => {\r\n let fetch = async () => {\r\n if (props.kf != null && props.ktab != null) {\r\n let clMkbs = await props.getClassMkb(props.kf,props.ktab);\r\n if (clMkbs != null && clMkbs.length>0) {\r\n setListClassMkbs(clMkbs);\r\n setClassMkb(clMkbs[0]);\r\n props.selectMkbClass(clMkbs[0]);\r\n return;\r\n }\r\n }\r\n setListClassMkbs([]);\r\n setClassMkb(null);\r\n props.selectMkbClass(null);\r\n }\r\n fetch();\r\n }, [props.kf, props.ktab]);\r\n const onSelectClassMkb = (evt) => {\r\n let classMkb = evt.target.value;\r\n setClassMkb(classMkb);\r\n props.selectMkbClass(classMkb);\r\n }\r\n return \r\n \r\n \r\n {':'}\r\n \r\n {listClassMkbs.map((c) => )}\r\n \r\n \r\n \r\n}\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators(actionCreators, dispatch)\r\n)(SelectClassMkb);","import React, { Component, Fragment } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport { Button, ButtonGroup, Table, Modal, Row, Col, Alert } from 'react-bootstrap';\r\nimport NumberFormat from 'react-number-format';\r\n\r\nimport { actionCreators } from '../../store/UserInfo';\r\nimport { getNameLocalize } from '../Constants';\r\n\r\nimport './TableViewPstr.css';\r\n//import ResultControl from './ResultControl';\r\n//import { ExportCSV } from './ExportCSV';\r\n//import { ExportReactCSV } from './ExportReactCSV';\r\n\r\nclass TableViewPstr extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n mode: 'view', dataStore: this.props.storeData, statusUpdate: this.props.statusUpdate, activeTabKey: 'data', showConfirmDelete: false\r\n };\r\n }\r\n componentWillReceiveProps(nextProps) {\r\n this.setState({ dataStore: nextProps.storeData, statusUpdate: nextProps.statusUpdate });\r\n }\r\n saveData = (e) => {\r\n e.preventDefault();\r\n this.props.saveDataTable(this.state.dataStore);\r\n this.setState({ mode: 'view' });\r\n }\r\n deleteData = (e) => {\r\n e.preventDefault();\r\n this.props.deleteDataTable();\r\n this.setState({ showConfirmDelete: false });\r\n }\r\n setEditMode = (e) => {\r\n e.preventDefault();\r\n this.setState({ mode: 'edit', activeTabKey: 'data' });\r\n }\r\n cancelData = (e) => {\r\n e.preventDefault();\r\n this.setState({ mode: 'view', dataStore: this.cloneRows(this.props.storeData) });\r\n }\r\n controlData = (e) => {\r\n e.preventDefault();\r\n this.setState({ activeTabKey: 'control' });\r\n this.props.controlData(/*this.state.dataStore*/);\r\n }\r\n printData = (e) => {\r\n e.preventDefault();\r\n if (this.state.activeTabKey === 'data') {\r\n //печать данных формы\r\n this.props.printData();\r\n } else {\r\n //печать результатов контроля\r\n this.props.printControl();\r\n }\r\n }\r\n cloneRows = (dataStore) => {\r\n let rows = dataStore.rows.map(r => {\r\n let values = r.values.map(v => { return { vl: v.vl, originalVl: v.originalVl, kgr: v.kgr, str: v.str }; });\r\n return { kstr: r.kstr, values: values };\r\n });\r\n let dataStoreM = { ...dataStore, rows };\r\n return dataStoreM;\r\n }\r\n changeValue = (e) => {\r\n if (e.target.value === '-') {\r\n return;\r\n }\r\n let id = e.target.id;\r\n let vl = e.target.value !== '' ? parseFloat(e.target.value) : NaN;\r\n let ar = id.split('_');\r\n let kstr = ar[0];\r\n let kgr = ar[1];\r\n let dataStore = this.cloneRows(this.state.dataStore);\r\n let row;\r\n let col;\r\n if (!Array.prototype.find) {\r\n row = dataStore.rows.filter((r) => r.kstr === kstr)[0];\r\n col = row.values.filter((c) => c.kgr === kgr && c.str === kstr)[0];\r\n } else {\r\n row = dataStore.rows.find((r) => r.kstr === kstr);\r\n col = row.values.find((c) => c.kgr === kgr && c.str === kstr);\r\n }\r\n col.vl = vl;\r\n this.setState({ dataStore });\r\n }\r\n valueChange = (values, id) => {\r\n let vl = values.floatValue === undefined ? 0.0 : values.floatValue;\r\n let ar = id.split('_');\r\n let kstr = ar[0];\r\n let kgr = ar[1];\r\n let dataStore = this.cloneRows(this.state.dataStore);\r\n let row;\r\n let col;\r\n if (!Array.prototype.find) {\r\n row = dataStore.rows.filter((r) => r.kstr === kstr)[0];\r\n col = row.values.filter((c) => c.kgr === kgr && c.str === kstr)[0];\r\n } else {\r\n row = dataStore.rows.find((r) => r.kstr === kstr);\r\n col = row.values.find((c) => c.kgr === kgr && c.str === kstr);\r\n }\r\n col.vl = vl;\r\n this.setState({ dataStore });\r\n }\r\n statusUpdate = () => {\r\n if (this.props.storeData.statusUpdate !== undefined) {\r\n if (this.props.storeData.statusUpdate.successed)\r\n return (
    );\r\n else\r\n return (
    {':'}{this.props.storeData.statusUpdate.error}
    );\r\n }\r\n return ('');\r\n }\r\n renderRowTable = (r) => {\r\n let strs = this.state.dataStore.strs;\r\n let str = strs.filter((s) => r.kstr === s.kstr)[0];\r\n let isNotHeader = str.kstr !== ' ' && str.kstr !== ' ' && str.kstr !== ' ';\r\n return (
    \r\n {isNotHeader === true ?
    {getNameLocalize(this.props.i18n, str)}
    :\r\n
    {str.nstr}
    }\r\n {isNotHeader === true ?
    {str.kstr}
    :
    {str.kstr}
    }\r\n {this.state.dataStore.grs.map((gr) => {\r\n let agraf = r.values.filter(f => f.str === str.kstr && f.kgr === gr.kgr);\r\n if (agraf != null && agraf.length > 0) {\r\n let v = agraf[0];\r\n let keyinput = `${str.kstr}_${v.kgr}`;\r\n return (
    {this.state.mode === 'edit' ?\r\n this.valueChange(values, keyinput)}\r\n key={keyinput} id={keyinput} value={v.vl} style={{ color: v.vl === v.originalVl ? 'black' : 'blue' }} /> :\r\n }
    );\r\n } else\r\n return (
    );\r\n })}\r\n
    );\r\n }\r\n renderObjStr = (param) => {\r\n var ob = this.state.dataStore.objs.filter(o => o.kod === param.r.kObj)[0];\r\n if (ob == null) return '';\r\n return
    \r\n
    {getNameLocalize(this.props.i18n, ob)}
    \r\n {this.state.dataStore.grs.map((gr) => {\r\n let agraf = param.r.values.filter(f => f.str === param.kstr && f.kgr === gr.kgr);\r\n if (agraf != null && agraf.length > 0) {\r\n let v = agraf[0];\r\n let keyinput = `${param.kstr}_${param.r.kObj}_${v.kgr}`;\r\n return (
    \r\n {this.state.mode === 'edit' ?\r\n this.valueChange(values, keyinput)}\r\n key={keyinput} id={keyinput} value={v.vl} style={{ color: v.vl === v.originalVl ? 'black' : 'blue' }} /> :\r\n }\r\n
    );\r\n } else {\r\n return
    \r\n }\r\n })}\r\n
    ; \r\n }//
    {param.kstr}
    \r\n renderItog = (params) => {\r\n return (
    : {`${params.no_str == null ? \" \" : params.no_str + \" \"}(${params.kstr})`} {params.nstr} -
    \r\n {this.state.dataStore.grs.map((gr) => {\r\n return
    {this.renderGrItog({ kstr: params.kstr, kgr: gr.kgr })}
    ;\r\n })}\r\n
    );\r\n }\r\n renderGrItog = (params) => {\r\n /* let objValues = this.state.dataStore.rows.filter(r => r.kstr === params.kstr)[0].objValues;\r\n const reduce2 = (acc0, colValue) => acc0 + (colValue.kgr === params.kgr ? parseFloat(colValue.vl) : 0.0);\r\n const reduce1 = (acc, objValue) => acc + objValue.values.reduce(reduce2, 0.0);\r\n let ret = objValues.reduce(reduce1, 0.0).toFixed(3);\r\n */\r\n let row = this.state.dataStore.rows.filter(r => r.kstr === params.kstr)[0]\r\n let ret = row.itogValues.filter(c => c.kgr === params.kgr);\r\n if (ret.length === 0) return \"\";\r\n return parseFloat(ret[0].vl).toFixed(3);\r\n }\r\n renderStrs = (params) => {\r\n let str = this.state.dataStore.strs.filter(r => r.kstr === params.str)[0];\r\n var rowsStr = this.state.dataStore.rows.filter(r => r.kstr === params.str);\r\n return rowsStr.map(r => {\r\n return
    : {`${str.nstr == null ? \" \" : str.nstr + \" \"}(${str.kstr})`} {params.nstr}
    \r\n {r.objValues.map((sr) => { return this.renderObjStr({ r: sr, kstr: params.str, nstr: params.nstr }); })}\r\n {this.renderItog({ kstr: params.str, nstr: params.nstr, no_str: str.nstr, cnt_obj: r.objValues.length })}\r\n
    ;\r\n });\r\n }\r\n /*\r\n {this.renderItog({ kstr: params.str, nstr: params.nstr })}\r\n */\r\n renderTable = () => {\r\n return (
    \r\n
    \r\n
    \r\n {this.state.dataStore.grs.map((g) => {\r\n return
    {g.kgr} {getNameLocalize(this.props.i18n, g)}
    \r\n })}\r\n
    \r\n {this.state.dataStore.strs.map(s => this.renderStrs({ str: s.kstr, nstr: getNameLocalize(this.props.i18n, s) }))}\r\n
    );\r\n }//
    Код стр.
    \r\n\r\n excelDataCSV = () => {\r\n let dataCSV = [];\r\n /*for (var i = 0; i < this.state.dataStore.rows.length; i++) {\r\n let row = {};\r\n let r = this.state.dataStore.rows[i];\r\n let s = this.state.dataStore.strs[i];\r\n let isNotHeader = s.kstr !== ' ' && s.kstr !== ' ' && s.kstr !== ' ';\r\n row[\"Показатели\"] = s.nameRu;\r\n row[\"Код стр.\"] = s.kstr;\r\n for (var j in this.state.dataStore.grs) {\r\n let g = this.state.dataStore.grs[j];\r\n let gr = g.kgr + ' ' + g.nameRu;\r\n let agraf = r.values.filter(f => f.str === s.kstr && f.kgr === g.kgr);\r\n if (agraf != null && agraf.length > 0 && isNotHeader === true && agraf[0].vl != null) {\r\n row[gr] = agraf[0].vl;\r\n } else {\r\n row[gr] = '';\r\n }\r\n\r\n }\r\n dataCSV.push(row);\r\n }\r\n */\r\n return dataCSV;\r\n }\r\n fileName = () => {\r\n let d = this.state.dataStore;\r\n return `b_ ${d.raz}_${d.year}_${d.period}_${d.tobj}_${d.kobj}_${d.kf}_${d.kt}`;\r\n }\r\n fileNamePstr = () => {\r\n let d = this.state.dataStore;\r\n return `s_ ${d.raz}_${d.year}_${d.period}_${d.tobj}_${d.kobj}_${d.kf}_${d.kt}`;\r\n }\r\n renderPostr = () => {\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {this.state.dataStore.rows.map(r => this.renderRowPostr(r))}\r\n \r\n
    СтрокаКолонкаЗначение
    );\r\n }\r\n excelDataCSVPstr = () => {\r\n let dataCSV = [];\r\n for (var i = 0; i < this.state.dataStore.rows.length; i++) {\r\n let r = this.state.dataStore.rows[i];\r\n let s = this.state.dataStore.strs[i];\r\n let isNotHeader = s.kstr !== ' ' && s.kstr !== ' ' && s.kstr !== ' ';\r\n for (var j = 0; j < this.state.dataStore.grs.length; j++) {\r\n let row = {};\r\n row[\"Строка\"] = j === 0 ? s.nameRu : '';\r\n let g = this.state.dataStore.grs[j];\r\n let gr = g.kgr + ' ' + g.nameRu;\r\n row[\"Колонка\"] = gr;\r\n let agraf = r.values.filter(f => f.str === s.kstr && f.kgr === g.kgr);\r\n if (agraf != null && agraf.length > 0 && isNotHeader === true && agraf[0].vl != null) {\r\n row[\"Значение\"] = agraf[0].vl;\r\n } else {\r\n row[\"Значение\"] = '';\r\n }\r\n dataCSV.push(row);\r\n }\r\n }\r\n return dataCSV;\r\n }\r\n renderRowPostr = (r) => {\r\n let strs = this.state.dataStore.strs;\r\n let str = strs.filter((s) => r.kstr === s.kstr)[0];\r\n let isNotHeader = str.kstr !== ' ' && str.kstr !== ' ' && str.kstr !== ' ';\r\n if (isNotHeader === true) {\r\n let countCol = r.values.length;\r\n return r.values.map((v, i) => this.renderColPostr(v, i, str, countCol));\r\n } else\r\n return ({str.kstr} {getNameLocalize(this.props.i18n, str)})\r\n }\r\n renderColPostr = (v, i, str, countCol) => {\r\n let gr = this.state.dataStore.grs.filter((g) => g.kgr === v.kgr)[0];\r\n let keyinput = `${str.kstr}_${v.kgr}`;\r\n return ({i === 0 ? {str.kstr} {getNameLocalize(this.props.i18n, str)} : undefined}{gr.kgr} {getNameLocalize(this.props.i18n, gr)}{this.state.mode === 'edit' ?\r\n this.changeValue(values, keyinput)} key={`${str.kstr}_${v.kgr}`} id={`${str.kstr}_${v.kgr}`}\r\n className=\"inputData\" value={v.vl} style={{ color: v.vl === v.originalVl ? 'black' : 'blue' }} /> :\r\n });\r\n }\r\n\r\n handleCloseConfirmDelete = (e) => {\r\n e.preventDefault();\r\n this.setState({ showConfirmDelete: false });\r\n }\r\n ConfirmDelete = (e) => {\r\n e.preventDefault();\r\n this.setState({ showConfirmDelete: true });\r\n }\r\n render() {\r\n if (this.state.dataStore == null /*|| this.state.dataStore.rows === undefined*/) {\r\n return ('');\r\n }\r\n //let isAdminData = this.props.user.roles.filter(r => r === 'AdminEditData').length > 0 ? true : false;\r\n //let isReadData = this.props.user.roles.filter(r => r === 'UserReadData').length > 0 ? true : this.state.dataStore.readOnly;\r\n return (\r\n
    \r\n {this.statusUpdate()}\r\n \r\n \r\n \r\n {this.props.isLoadingExcel === true ? {I18n.t('waitexcel')}  : ''}\r\n \r\n {this.state.statusUpdate != null && this.state.statusUpdate.error != null ? \r\n \r\n {this.state.statusUpdate.error}\r\n \r\n : ''}\r\n {this.props.isPostr === true ? this.renderPostr() : this.renderTable()}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    );\r\n }\r\n}\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators(actionCreators, dispatch)\r\n)(TableViewPstr);\r\n// : \r\n/*\r\n \r\n {this.state.mode === 'view' ? \r\n {' '}\r\n {isReadData === false ? : ''}\r\n {' '} : ''}\r\n {this.state.mode === 'edit' ? \r\n {' '}\r\n : ''}\r\n \r\n \r\n {isAdminData === true && this.state.mode === 'view' ? : ''}\r\n {this.state.mode === 'view' ? \r\n \r\n {this.props.isPostr === true ? : }\r\n : ''}\r\n \r\n */ ","import React, { Fragment } from 'react';\r\nimport { connect } from 'react-redux';\r\nimport { getNameLocalize } from '../Constants';\r\n\r\n//const filterRaz = (user, kod) => {\r\n// return user.accessLevel !== 4 || kod === 3 || kod === 4 || kod === 5 || kod === 6 || kod === 12 || kod === 23 || kod === 24 || kod === 25;\r\n//};\r\nconst FilterRazOptions = props => (\r\n \r\n {props.nsi.sprraz/*.filter(f => filterRaz(props.userInfo.user, f.kod))*/.map(it => )}\r\n \r\n);\r\n\r\nexport default connect(\r\n state => state,\r\n)(FilterRazOptions);\r\n","import React, { Component, Fragment } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport * as FileSaver from 'file-saver';\r\nimport { Collapse, Form, Panel, Row, Col, FormGroup, FormControl, ControlLabel, Button, ButtonGroup } from 'react-bootstrap';\r\n\r\nimport SelectFormTable from '../common/SelectFormTable';\r\nimport SelectObject from '../common/SelectObject';\r\nimport SelectClassMkb from '../common/SelectClassMkb';\r\nimport { actionCreators as actionCreatorsWorkPstr } from '../../store/WorkPstr';\r\nimport { actionCreators as actionCreatorsNsi } from '../../store/Nsi';\r\nimport TableViewPstr from './TableViewPstr';\r\nimport { getNameLocalize, /*periods,*/ years, getCurrentYear, forms12Quart } from '../Constants';\r\n\r\nimport FilterRazOptions from '../common/FilterRazOptions';\r\nimport { string } from 'prop-types';\r\n\r\n\r\nclass OpenFormPstr extends Component {\r\n constructor(props) {\r\n super(props);\r\n let nowYear = getCurrentYear();\r\n this.state = {\r\n year: props.year !== undefined ? props.year : nowYear,\r\n kper: 4,//период\r\n kraz: 1,//this.props.userInfo.user.accessLevel !== 4 ? 1 : 3, //разрез\r\n form: { kf: \"01\", nameRu: \"Численность постоянного населения РК\", nameKz: \"Қазақстан Республикасының тұрақты тұрғындары\" },\r\n table: { kf: \"01\", ktab: \"0001\", nameRu: \"Постоянное население Республики Казахстан\", nameKz: \"Қазақстан Республикасының тұрақты тұрғындары\" },\r\n tobj: props.userInfo.user.accessLevel, // тип обьекта 1 – РК; 2 – область; 3 - район; 4 - организация (доступ зависит от пользователя)\r\n obl: undefined,\r\n raion: undefined,\r\n strObj: 0, //0- районы, 1- организации, построчку показывать в разрезе организаций, иначе в разрезе районов, только для tobj=2 - область \r\n isChilds: 0, //0- по району, 1- по подчиненым организациям\r\n isShowParams: true,\r\n isLoadingExcel: false,\r\n krazd: undefined,\r\n classMkb: undefined\r\n };\r\n if (props.nsi.allsprtab.length === 0) {\r\n props.getNs('allsprtab');\r\n }\r\n if (props.nsi.sprform.length === 0) {\r\n props.getNs('sprform');\r\n }\r\n if (props.nsi.periods.length === 0) {\r\n props.getNs('periods');\r\n }\r\n if (props.nsi.sprraz.length === 0) {\r\n props.getNs('sprraz');\r\n }\r\n if (props.nsi.sprrazdel.length === 0) {\r\n props.getNs('sprrazdel');\r\n }\r\n this.onOpenTable = this.onOpenTable.bind(this);\r\n this.handleShow = this.handleShow.bind(this);\r\n this.handleHide = this.handleHide.bind(this);\r\n this.printExcel = this.printExcel.bind(this);\r\n this.selectMkbClass = this.selectMkbClass.bind(this);\r\n this.selTable = this.selTable.bind(this);\r\n this.setTobj = this.setTobj.bind(this);\r\n //this.onControlForm = this.onControlForm.bind(this)\r\n //this.onSelectForm = this.onSelectForm.bind(this);\r\n }\r\n mode() {\r\n if (this.state.isShowParams === true) {\r\n return \"show\";\r\n }\r\n return \"hide\";\r\n }\r\n handleShow() {\r\n let isShowParams = !this.state.isShowParams;\r\n this.setState({ isShowParams });\r\n }\r\n handleHide() {\r\n this.setState({ isShowParams: false });\r\n }\r\n getNamePeriod = () => {\r\n switch (this.state.kper) {\r\n case 1:\r\n return {':'}за 1-й квартал {this.state.year} года;\r\n case 2:\r\n return {':'}за 1-ое полугодие {this.state.year} года;\r\n case 3:\r\n return {':'}за 9 месяцев {this.state.year} года;\r\n case 4:\r\n return {':'};\r\n default:\r\n var per = this.props.nsi.periods.filter(it => it.kper === this.state.kper)[0];\r\n var month = getNameLocalize(this.props.i18n, per);\r\n return {':'} ;\r\n }\r\n return '';\r\n }\r\n getNameRazres = () => {\r\n if (this.props.nsi.sprraz != null && this.props.nsi.sprraz.length > 0) {\r\n return this.props.nsi.sprraz.filter(p => p.kod === this.state.kraz)[0];\r\n }\r\n return null;\r\n }\r\n /*this.props.nsi.sprraz.*/\r\n showSelected() {\r\n let ntobj = \"\";\r\n switch (this.state.tobj) {\r\n case 1:\r\n ntobj = {':'}РК;\r\n break;\r\n case 2:\r\n ntobj = {':'}{this.state.obl != null ? getNameLocalize(this.props.i18n, this.state.obl) : ''};\r\n break;\r\n case 3:\r\n if (this.state.isChilds === 1)\r\n ntobj = {':'}{this.state.raion != null ? getNameLocalize(this.props.i18n, this.state.raion) : ''},   \r\n {this.props.i18n.locale[0] === 'r' ? this.props.userInfo.user.nameOrg : this.props.userInfo.user.nameOrgKz};\r\n else\r\n ntobj = {':'}{this.state.raion != null ? getNameLocalize(this.props.i18n, this.state.raion) : ''};\r\n break;\r\n default:\r\n }\r\n return {':'}\r\n  {this.getNamePeriod()} {':'}{getNameLocalize(this.props.i18n, this.getNameRazres())} {ntobj} 
    \r\n {':'}{this.state.form.kf} {getNameLocalize(this.props.i18n, this.state.form)} \r\n {':'}{this.state.table.ktab} {getNameLocalize(this.props.i18n, this.state.table)} \r\n {forms12Quart.indexOf(this.state.table.kf) > -1 ? <>{':'}{this.state.classMkb} : \"\"}\r\n {this.state.isChilds === 1 ? <>
    : \"\"}\r\n
    ;\r\n }\r\n onOpenTable = (e) => {\r\n e.preventDefault();\r\n let kobj = \"\";\r\n switch (this.state.tobj) {\r\n case 1:\r\n kobj = \"00\";\r\n break;\r\n case 2:\r\n kobj = this.state.obl.kobl;\r\n break;\r\n case 3:\r\n kobj = this.state.raion.kraion;\r\n break;\r\n case 4:\r\n kobj = this.props.userInfo.user.accessLevel === 4 ? this.props.userInfo.user.kodOrg : this.state.org.korg;\r\n break;\r\n default:\r\n }\r\n if (forms12Quart.indexOf(this.state.table.kf) > -1)\r\n this.props.getDataF12(\r\n {\r\n year: this.state.year,\r\n period: this.state.kper,\r\n raz: this.state.kraz,\r\n tobj: this.state.tobj,\r\n kobj,\r\n kf: this.state.form.kf,\r\n kt: this.state.table.ktab,\r\n strObj: this.state.strObj,\r\n isChilds: this.state.isChilds,\r\n korg: this.props.userInfo.user.kodOrg,\r\n classMkb: this.state.classMkb\r\n }\r\n );\r\n else\r\n this.props.getData(\r\n {\r\n year: this.state.year,\r\n period: this.state.kper,\r\n raz: this.state.kraz,\r\n tobj: this.state.tobj,\r\n kobj,\r\n kf: this.state.form.kf,\r\n kt: this.state.table.ktab,\r\n strObj: this.state.strObj,\r\n isChilds: this.state.isChilds,\r\n korg: this.props.userInfo.user.kodOrg,\r\n }\r\n );\r\n this.setState({ isShowParams: false });\r\n }\r\n printExcel = async () => {\r\n let kobj = \"\";\r\n switch (this.state.tobj) {\r\n case 1://РК\r\n kobj = \"00\";\r\n break;\r\n case 2://Область\r\n kobj = this.state.obl.kobl;\r\n break;\r\n case 3://Район\r\n kobj = this.state.raion.kraion;\r\n break;\r\n case 4://Организация\r\n kobj = this.props.userInfo.user.accessLevel === 4 ? this.props.userInfo.user.kodOrg : this.state.org.korg;\r\n break;\r\n default:\r\n break;\r\n\r\n }\r\n let korg = this.props.userInfo.user.kodOrg;\r\n let absoluteUrl = `${document.location.protocol}//${document.location.host}/generate/Excel/Pstr/${this.state.year}/${this.state.kper}/${this.state.kraz}/${this.state.tobj}/${kobj}/${this.state.strObj}/${this.state.form.kf}/${this.state.table.ktab}/${this.state.isChilds}/${korg}`;\r\n let fileName = `pstr_${this.state.year}_${this.state.kper}_${this.state.kraz}_${this.state.tobj}_${kobj}_${this.state.strObj}_${this.state.form.kf}_${this.state.table.ktab}_${this.state.isChilds}.xlsx`;\r\n\r\n if (forms12Quart.indexOf(this.state.table.kf) > -1) {\r\n absoluteUrl = `${document.location.protocol}//${document.location.host}/generate/Excel/PstrF12/${this.state.year}/${this.state.kper}/${this.state.kraz}/${this.state.tobj}/${kobj}/${this.state.strObj}/${this.state.form.kf}/${this.state.table.ktab}/${this.state.isChilds}/${korg}/${this.state.classMkb}`;\r\n fileName = `pstr_${this.state.year}_${this.state.kper}_${this.state.kraz}_${this.state.tobj}_${kobj}_${this.state.strObj}_${this.state.form.kf}_${this.state.table.ktab}_${this.state.classMkb}_${this.state.isChilds}.xlsx`;\r\n }\r\n var token = this.props.userInfo.user.token;\r\n this.setState({ isLoadingExcel: true });\r\n const response = await fetch(absoluteUrl, {\r\n credentials: 'include',\r\n method: 'GET',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n this.setState({ isLoadingExcel: false });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const blob = await response.blob();\r\n FileSaver.saveAs(blob, fileName);\r\n //this.setState({ isLoading: false });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n }\r\n onSelectYear = (e) => {\r\n let year = parseInt(e.target.value, 10);\r\n this.setState({ year });\r\n }\r\n onSelectKper = (e) => {\r\n let kper = parseInt(e.target.value, 10);\r\n this.setState({ kper });\r\n }\r\n onSelectKraz = (e) => {\r\n let kraz = parseInt(e.target.value, 10);\r\n this.setState({ kraz });\r\n }\r\n printData = () => {\r\n window.print();\r\n }\r\n selectMkbClass = (classMkb) => {\r\n this.setState({ classMkb });\r\n }\r\n selTable = (table) => {\r\n if (forms12Quart.indexOf(table.kf) > -1) {\r\n this.setState({ table });\r\n } else {\r\n this.setState({ table, classMkb: undefined });\r\n }\r\n }\r\n setTobj = (tobj) => {\r\n this.setState({ tobj, isChilds:0 })\r\n }\r\n render() {\r\n return \r\n

    \r\n \r\n \r\n \r\n \r\n {this.showSelected()}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n \r\n {':'}\r\n \r\n \r\n {years.map(it => )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {':'}\r\n \r\n {this.props.nsi.periods.map(it => )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {':'}\r\n \r\n \r\n \r\n \r\n \r\n this.setState({ form })}\r\n setTable={this.selTable}\r\n kper={this.state.kper}\r\n form={this.state.form} table={this.state.table}\r\n noFilter={true}\r\n krazd={this.state.krazd}\r\n setKrazd={(krazd) => this.setState({ krazd })}\r\n />\r\n {forms12Quart.indexOf(this.state.table.kf) > -1 ? : \"\"}\r\n this.setTobj(tobj)/*this.setState({ tobj })*/}\r\n setObl={(obl) => this.setState({ obl })}\r\n setRaion={(raion) => this.setState({ raion })} org={this.state.org}\r\n isNotOrg={true}\r\n year={this.state.year}\r\n />\r\n {this.state.tobj === 2 ? \r\n \r\n this.setState({ strObj: parseInt(e.target.value, 10) })}>\r\n {':'}\r\n \r\n      \r\n  \r\n \r\n \r\n \r\n : ''}\r\n {this.state.tobj === 3 && (this.props.userInfo.user.nomenklKod === '008' || this.props.userInfo.user.nomenklKod === '049' || this.props.userInfo.user.nomenklKod === '043') ? \r\n \r\n this.setState({ isChilds: parseInt(e.target.value, 10) })}>\r\n {/*{':'}*/}\r\n \r\n      \r\n  \r\n \r\n \r\n \r\n : \"\"}\r\n {this.state.tobj === 1 && this.props.userInfo.user.nomenklKod === '039' ? \r\n \r\n this.setState({ isChilds: e.target.checked===true?1:0})}>\r\n {/*{':'}*/}\r\n \r\n  \r\n \r\n \r\n : \"\"}\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n {this.props.workPstr.isLoading === true ? \r\n \r\n
    {I18n.t('wait')}{' '}
    \r\n \r\n
    : ''}\r\n
    ;\r\n }\r\n}\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators({ ...actionCreatorsNsi, ...actionCreatorsWorkPstr }, dispatch)\r\n)(OpenFormPstr);","import React, { Component, Fragment } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { FormGroup, FormControl, ControlLabel, Row, Col, Checkbox, Radio } from 'react-bootstrap';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\n\r\n//import SelectOrgModal from '../Modals/SelectOrgModal';\r\nimport { Typeahead } from 'react-bootstrap-typeahead';\r\n\r\nimport { actionCreators } from '../../store/Nsi';\r\n//import { getNameLocalize } from '../Constants';\r\n\r\nclass SelectMultiObjects extends Component {\r\n constructor(props) {\r\n super(props);\r\n let kobl, kraion, korg;\r\n let accessLevel = props.userInfo.user.accessLevel;\r\n kobl = props.userInfo.user.kodObl;\r\n props.setObl({ kobl, nameRu: props.userInfo.user.nameObl });\r\n kraion = props.userInfo.user.kodRaion.substring(0, 4);\r\n props.setRaion({ kraion, nameRu: props.userInfo.user.nameRaion });\r\n let korgs = [];\r\n let org = null;\r\n //if (props.userInfo.user.accessLevel === 4) {\r\n korgs.push(props.userInfo.user.kodOrg);\r\n org = { korg: props.userInfo.user.kodOrg, nameRu: props.userInfo.user.nameOrg };\r\n if (props.setOrg != null) props.setOrg(org);\r\n if (props.setOrgs != null) props.setOrgs(korgs);\r\n //}\r\n this.state = {\r\n kobl,\r\n kraion,\r\n kobls:[],\r\n kraions:[],\r\n korgs: korgs,\r\n selectOrg: org,\r\n accessLevel,\r\n tobj: props.userInfo.user.accessLevel,// тип обьекта 1 – РК; 2 – область; 3 - район; 4 - организация (доступ зависит от пользователя)\r\n isSelectAllObls: false,\r\n isSelectAllRaions:false\r\n }\r\n this.typeahead = null;\r\n this.onSelectTobj = this.onSelectTobj.bind(this);\r\n this.onSelectKobl = this.onSelectKobl.bind(this);\r\n this.onSelectKraion = this.onSelectKraion.bind(this);\r\n this.onCheckObl = this.onCheckObl.bind(this);\r\n this.onCheckRaion = this.onCheckRaion.bind(this);\r\n this.onChangeIsAllObls = this.onChangeIsAllObls.bind(this);\r\n this.onChangeIsAllRaions = this.onChangeIsAllRaions.bind(this);\r\n this.onChangeOrg = this.onChangeOrg.bind(this);\r\n this.filterRaion = this.filterRaion.bind(this);\r\n if (props.nsi.allobls.length === 0) props.getNs('allobls');\r\n if (props.nsi.allraions.length === 0) props.getNs('allraions');\r\n if (props.userInfo.user.accessLevel < 4) {\r\n //загрузить организации\r\n if (props.userInfo.user.nomenklKod === \"008\" || props.userInfo.user.nomenklKod === \"049\" || props.userInfo.user.nomenklKod === \"043\") {\r\n props.getNs('orgs', [{ name: \"obl\", value: kobl }, { name: \"parent_kod\", value: props.userInfo.user.kodOrg }]);\r\n } else {\r\n props.getNs('orgs', [{ name: \"obl\", value: kobl }]);\r\n }\r\n }\r\n }\r\n componentWillReceiveProps(nextProps) {\r\n // This method runs when incoming props (e.g., route params) change\r\n if (this.typeahead != null)\r\n this.typeahead.getInstance().clear();\r\n }\r\n onSelectTobj(e) {\r\n let tobj = parseInt(e.target.value, 10);\r\n let kobls = [];\r\n let kraions = [];\r\n let korgs = [];\r\n let org = null;\r\n if (tobj === 2 && this.state.isSelectAllObls === true) {\r\n let obls = this.props.nsi.allobls.filter(o => o.kod !== '01');\r\n for (var i in obls) {\r\n kobls.push(obls[i].kod)\r\n }\r\n this.props.setObls(kobls);\r\n }\r\n if (tobj === 3 && this.state.isSelectAllRaions === true) {\r\n let raions = this.props.nsi.allraions.filter(r => r.obl === this.state.kobl);\r\n for (var i in raions) {\r\n kraions.push(raions[i].idRaion)\r\n }\r\n this.props.setRaions(kraions);\r\n }\r\n if (tobj === 4) {\r\n korgs.push(this.props.userInfo.user.kodOrg);\r\n org = { korg: this.props.userInfo.user.kodOrg, nameRu: this.props.userInfo.user.nameOrg };\r\n if (this.props.setOrg != null) {\r\n this.props.setOrg(org);\r\n }\r\n }\r\n this.setState({ tobj, kobls, kraions, korgs, selectOrg: org });\r\n this.props.setTobj(tobj);\r\n }\r\n onSelectKobl(e) {\r\n let kobl = e.target.value;\r\n let first_raion = this.props.nsi.allraions.filter(r => r.obl === kobl);\r\n let kraions = [];\r\n if (this.state.isSelectAllRaions === true) {\r\n for (var i in first_raion) {\r\n kraions.push(first_raion[i].idRaion);\r\n }\r\n this.props.setRaions(kraions);\r\n }\r\n this.setState({\r\n kobl,\r\n kraion: first_raion === undefined || first_raion.length === 0 ? undefined : first_raion[0].idRaion,\r\n kobls: [], kraions\r\n });\r\n let nameRu = this.props.nsi.allobls.filter(r => r.kod === kobl)[0].nameRu;\r\n this.props.setObl({ kobl, nameRu });\r\n if (this.state.tobj > 3) {\r\n this.typeahead.getInstance().clear();\r\n //загрузить организации\r\n if (this.props.userInfo.user.nomenklKod === \"008\" || this.props.userInfo.user.nomenklKod === \"049\" || this.props.userInfo.user.nomenklKod === \"043\") {\r\n this.props.getNs('orgs', [{ name: \"obl\", value: kobl }, { name: \"parent_kod\", value: this.props.userInfo.user.kodOrg }]);\r\n } else {\r\n this.props.getNs('orgs', [{ name: \"obl\", value: kobl }]);\r\n }\r\n }\r\n }\r\n onSelectKraion(e) {\r\n let kraion = e.target.value;\r\n this.setState({\r\n kraion,\r\n korg: undefined\r\n });\r\n if (this.state.tobj > 3) {\r\n this.typeahead.getInstance().clear();\r\n }\r\n let nameRu = this.props.nsi.allraions.filter(r => r.idRaion === kraion)[0].nameRu;\r\n this.props.setRaion({ kraion, nameRu });\r\n }\r\n getValidationStateObls() {\r\n const length = this.state.kobls.length;\r\n if (length > 0)\r\n return 'success';\r\n if (length === 0) {\r\n return 'error';\r\n }\r\n return null;\r\n }\r\n onCheckObl = (e) => {\r\n let checked = e.target.checked;\r\n let kobl = e.target.value;\r\n let kobls = [...this.state.kobls];\r\n if (checked) {\r\n kobls.push(kobl);\r\n } else {\r\n let ind = kobls.indexOf(kobl);\r\n kobls.splice(ind, 1);\r\n }\r\n this.setState({ kobls });\r\n this.props.setObls(kobls);\r\n }\r\n getValidationStateRaions() {\r\n const length = this.state.kraions.length;\r\n if (length > 0)\r\n return 'success';\r\n if (length === 0) {\r\n return 'error';\r\n }\r\n return null;\r\n }\r\n onCheckRaion = (e) => {\r\n let checked = e.target.checked;\r\n let kraion = e.target.value;\r\n let kraions = [...this.state.kraions];\r\n if (checked) {\r\n kraions.push(kraion);\r\n } else {\r\n let ind = kraions.indexOf(kraion);\r\n kraions.splice(ind, 1);\r\n }\r\n this.setState({ kraions });\r\n this.props.setRaions(kraions);\r\n }\r\n onChangeIsAllObls(e) {\r\n let vl = e.target.value;\r\n let checked = e.target.checked;\r\n if (vl === \"1\" && checked)\r\n this.setState({ isSelectAllObls: false, kobls: [] });\r\n else {\r\n let kobls = [];\r\n let obls = this.props.nsi.allobls.filter(o => o.kod !== '01');\r\n for (var i in obls) {\r\n kobls.push(obls[i].kod);\r\n }\r\n this.setState({ isSelectAllObls: true, kobls });\r\n this.props.setObls(kobls);\r\n }\r\n }\r\n onChangeIsAllRaions(e) {\r\n let vl = e.target.value;\r\n let checked = e.target.checked;\r\n if (vl === \"1\" && checked)\r\n this.setState({ isSelectAllRaions: false, kraions: [] });\r\n else {\r\n let kraions = [];\r\n let raions = this.props.nsi.allraions.filter(r => r.obl === this.state.kobl);\r\n for (var i in raions) {\r\n kraions.push(raions[i].idRaion);\r\n }\r\n this.setState({ isSelectAllRaions: true, kraions });\r\n this.props.setRaions(kraions);\r\n }\r\n }\r\n onChangeOrg(selected) {\r\n if (selected.length > 0) {\r\n let korg = selected[0].kobj;\r\n let selectOrg = { korg, nameRu: selected[0].nameRu }\r\n let nameRu = this.props.nsi.allraions.filter(r => r.idRaion === selected[0].raion)[0].nameRu;\r\n this.setState({ korg, selectOrg, korgs: [selectOrg], kraion: selected[0].raion });\r\n this.props.setRaion({ kraion: selected[0].raion, nameRu });\r\n if (this.props.setOrg != null) this.props.setOrg(selectOrg);\r\n if (this.props.setOrgs != null) this.props.setOrgs([korg]);\r\n return;\r\n }\r\n this.setState({ korg: undefined, selectOrg: undefined });\r\n if (this.props.setOrg != null) this.props.setOrg(undefined);\r\n if (this.props.setOrgs != null) this.props.setOrgs([]);\r\n }\r\n showSelectObl() {\r\n let cssDispl = this.state.tobj > 1 ? \"block\" : \"none\";\r\n if (this.state.tobj === 2) \r\n return \r\n \r\n \r\n {':'}\r\n \r\n {this.state.accessLevel > 1 ?
    {this.state.kobl} {this.props.userInfo.user.nameObl}
    :\r\n \r\n \r\n {' '}\r\n {' '}\r\n \r\n {this.state.isSelectAllObls === true || this.props.nsi.allobls.filter(o=>o.kod!=='01').map(it =>\r\n {it.nameRu})}}\r\n \r\n
    \r\n
    ;\r\n else\r\n return \r\n \r\n \r\n {':'}\r\n \r\n {this.state.accessLevel > 1 ?
    {this.state.kobl} {this.props.userInfo.user.nameObl}
    :\r\n \r\n {this.props.nsi.allobls.filter(o => o.kod !== '01').map(it => )}\r\n }\r\n \r\n
    \r\n
    ;\r\n }\r\n filterRaion(rai, year) {\r\n if (year == null) return true;\r\n let ye = typeof year === 'string' ? parseInt(year, 10) : year;\r\n let dtBeg = rai.dtBeg == null ? null : new Date(rai.dtBeg);\r\n if (dtBeg != null && dtBeg.getFullYear() > ye) return false;\r\n let dtEnd = rai.dtEnd == null ? null : new Date(rai.dtEnd);\r\n if (dtEnd != null && ye >= dtEnd.getFullYear()) return false;\r\n return true;\r\n }\r\n showSelectRaions() {\r\n if (this.state.tobj < 3 || this.state.tobj===4)\r\n return ' ';\r\n return \r\n \r\n \r\n {':'}\r\n \r\n {this.props.userInfo.user.accessLevel > 2 ?
    {this.state.kraion} {this.props.userInfo.user.nameRaion}
    :\r\n \r\n \r\n {' '}\r\n {' '}\r\n \r\n {this.state.isSelectAllRaions === true || this.props.nsi.allraions.filter(r => r.obl === this.state.kobl && this.filterRaion(r, this.props.year)).map(it =>\r\n {it.nameRu}\r\n )}\r\n }\r\n \r\n
    \r\n
    ;\r\n }\r\n showSelectOrg() {\r\n if (this.state.tobj < 4) {\r\n return ' ';\r\n }\r\n if (this.state.tobj === 4 && this.props.userInfo.user.accessLevel < 4) {\r\n //показать выбор организации\r\n let cssDispl = (this.state.tobj > 3 || this.state.accessLevel > 3) ? \"block\" : \"none\";\r\n let korg = this.state.korgs[0];\r\n return \r\n \r\n \r\n {':'}\r\n \r\n {this.state.accessLevel > 3 ?
    {korg} {this.props.i18n.locale[0] === 'r' ? this.props.userInfo.user.nameOrg : this.props.userInfo.user.nameOrgKz}
    :\r\n this.typeahead = ref}\r\n labelKey={this.props.i18n.locale[0] === 'r' ? \"nameRu\" : \"nameKz\"}\r\n options={(this.props.isSelOrg === true && this.props.userInfo.user.accessLevel < 3) || this.props.userInfo.user.nomenklKod === \"043\" || this.state.isAllRaions === true ? this.props.nsi.orgs : this.props.nsi.orgs.filter(o => o.raion === this.state.kraion)}\r\n placeholder={`${I18n.t(\"selectOrg\")}...`}\r\n onChange={this.onChangeOrg} />

    {this.state.selectOrg == null ? \"\" : this.state.selectOrg.nameRu/*getNameLocalize(this.props.i18n, this.state.selectOrg)}*/}

    \r\n }\r\n \r\n
    \r\n
    ;\r\n }else\r\n return \r\n \r\n \r\n {':'}\r\n {this.props.userInfo.user.kodOrg} {this.props.userInfo.user.nameOrg}\r\n \r\n \r\n ;\r\n }\r\n render() {\r\n return (\r\n \r\n {this.props.userInfo.user.accessLevel !== 4 ? \r\n \r\n \r\n {':'}\r\n \r\n {this.props.userInfo.user.accessLevel === 1 ? : ''}\r\n {this.props.userInfo.user.accessLevel < 3 ? : ''}\r\n {this.props.userInfo.user.accessLevel < 4 ? : ''}\r\n {this.props.isSelOrg === true && (this.props.userInfo.user.accessLevel === 1 || this.props.userInfo.user.accessLevel === 2)? : ''}\r\n \r\n \r\n : ''}\r\n {this.showSelectObl()}\r\n {this.showSelectRaions()}\r\n {this.showSelectOrg()}\r\n \r\n );\r\n }\r\n}\r\n\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators(actionCreators, dispatch)\r\n)(SelectMultiObjects);","import React, { Component} from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { FormGroup, ControlLabel, Row, Col, Checkbox } from 'react-bootstrap';\r\nimport { Translate } from 'react-redux-i18n';\r\n\r\n//import SelectOrgModal from '../Modals/SelectOrgModal';\r\n//import { Typeahead } from 'react-bootstrap-typeahead';\r\nimport { getNameLocalize } from '../Constants';\r\nimport { actionCreators } from '../../store/Nsi';\r\n\r\nclass SelectMultiForms extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = { kforms: [] };\r\n this.onCheckForm = this.onCheckForm.bind(this);\r\n this.getForms = this.getForms.bind(this);\r\n if (props.nsi.sprform.length === 0) props.getNs('sprform');\r\n }\r\n onCheckForm = (e) => {\r\n let checked = e.target.checked;\r\n let kf = e.target.value;\r\n let kforms = [...this.state.kforms];\r\n if (checked) {\r\n kforms.push(kf);\r\n } else {\r\n let ind = kforms.indexOf(kf);\r\n kforms.splice(ind, 1);\r\n }\r\n this.setState({ kforms });\r\n this.props.setForms(kforms);\r\n }\r\n getValidationStateForms() {\r\n const length = this.state.kforms.length;\r\n if (length > 0)\r\n return 'success';\r\n if (length === 0) {\r\n return 'error';\r\n }\r\n return null;\r\n }\r\n getForms = () => {\r\n if (this.props.no47 != null && this.props.no47 === true) {\r\n if (this.props.isNotMonthWithInc != null && this.props.isNotMonthWithInc === true) {\r\n return this.props.nsi.sprform.filter(f => f.monthWithInc === 1 && f.kf !== '47' && f.kf !== '01').map(it => {it.kf} {getNameLocalize(this.props.i18n, it)});\r\n }else {\r\n return this.props.nsi.sprform.filter(f => f.kf !== '47' && f.kf !== '01').map(it => {it.kf} {getNameLocalize(this.props.i18n, it)});\r\n }\r\n } else {\r\n if (this.props.isNotMonthWithInc != null && this.props.isNotMonthWithInc === true) {\r\n return this.props.nsi.sprform.filter(f => f.monthWithInc === 1).map(it => {it.kf} {getNameLocalize(this.props.i18n, it)});\r\n } else {\r\n return this.props.nsi.sprform.map(it => {it.kf} {getNameLocalize(this.props.i18n, it)});\r\n }\r\n }\r\n }\r\n render() {\r\n return (\r\n \r\n \r\n {':'}\r\n \r\n {this.getForms()}\r\n \r\n \r\n );\r\n }\r\n}\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators(actionCreators, dispatch)\r\n)(SelectMultiForms);","import React, { Component } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport { Button, Col, FormGroup, FormControl, ControlLabel, Form, Row, Alert } from 'react-bootstrap';\r\n\r\nimport { actionCreators as actionCreatorsSvod } from '../../store/Svod';\r\nimport { actionCreators as actionCreatorsNsi } from '../../store/Nsi';\r\nimport SelectMultiObjects from '../common/SelectMultiObjects';\r\nimport SelectMultiForms from '../common/SelectMultiForms';\r\n\r\nimport { years, getCurrentYear } from '../Constants';\r\nimport FilterRazOptions from '../common/FilterRazOptions';\r\n\r\nclass SvodForm extends Component {\r\n constructor(props) {\r\n super(props);\r\n let nowYear = getCurrentYear();\r\n this.state = {\r\n year: props.year !== undefined ? props.year : nowYear,\r\n kper: 4,//период\r\n kraz: 1,//this.props.userInfo.user.accessLevel !== 4 ? 1 : 3, //разрез\r\n tobj: props.userInfo.user.accessLevel, // тип обьекта 1 – РК; 2 – область; 3 - район; 4 - организация (доступ зависит от пользователя)\r\n obl: undefined,\r\n raion: undefined,\r\n kobls: [],\r\n kraions: [],\r\n kforms: [],\r\n isSvodComplete:false\r\n };\r\n if (props.nsi.sprraz.length === 0) props.getNs('sprraz');\r\n if (props.nsi.periods.length === 0) props.getNs('periods');\r\n this.onSvodForm = this.onSvodForm.bind(this)\r\n }\r\n onSvodForm = (e) => {\r\n e.preventDefault();\r\n this.setState({ isSvodComplete: false });\r\n let kobjs = null;\r\n switch (this.state.tobj) {\r\n case 1:\r\n kobjs = [\"00\"];\r\n break;\r\n case 2:\r\n if (this.props.userInfo.user.accessLevel === 2) {\r\n kobjs = [];\r\n kobjs.push(this.state.obl.kobl);\r\n } else {\r\n kobjs = this.state.kobls;\r\n }\r\n break;\r\n case 3:\r\n if (this.props.userInfo.user.accessLevel === 3) {\r\n kobjs = [];\r\n kobjs.push(this.state.raion.kraion);\r\n } else {\r\n kobjs = this.state.kraions;\r\n }\r\n break;\r\n default:\r\n }\r\n if (kobjs.length === 0) {\r\n alert(I18n.t(\"selectObjs\"));\r\n return;\r\n }\r\n if (this.state.kforms.length === 0) {\r\n alert(I18n.t(\"selectForms\"));\r\n return;\r\n }\r\n this.props.svodForm({\r\n year: this.state.year,\r\n kper: this.state.kper,\r\n kraz: this.state.kraz,\r\n tobj: this.state.tobj,\r\n kobjs,\r\n kforms: this.state.kforms,\r\n });\r\n this.setState({ isSvodComplete: true });\r\n }\r\n onSelectYear = (e) => {\r\n let year = parseInt(e.target.value, 10);\r\n this.setState({ year });\r\n }\r\n onSelectKper = (e) => {\r\n let kper = parseInt(e.target.value, 10);\r\n this.setState({ kper });\r\n }\r\n onSelectKraz = (e) => {\r\n let kraz = parseInt(e.target.value, 10);\r\n this.setState({ kraz });\r\n }\r\n \r\n render() {\r\n let isReadOnLy = this.props.userInfo.user.roles.filter(r => r === 'UserReadData').length > 0;\r\n if (isReadOnLy === true)\r\n return \r\n else\r\n return
    \r\n
    \r\n \r\n {':'}\r\n \r\n \r\n {years.map(it => )}\r\n \r\n \r\n \r\n {':'}\r\n \r\n {this.props.nsi.periods.map(it => )}\r\n \r\n \r\n \r\n {':'}\r\n \r\n \r\n \r\n \r\n this.setState({ tobj })}\r\n setObl={(obl) => this.setState({ obl })} setObls={(kobls) => this.setState({ kobls})}\r\n setRaion={(raion) => this.setState({ raion })} setRaions={(kraions) => this.setState({ kraions })} year={this.state.year}/>\r\n this.setState({ kforms })} no47={false/*this.state.tobj===3*/} />\r\n \r\n \r\n \r\n \r\n \r\n {this.props.svod.isLoading === true ? \r\n \r\n
    {I18n.t('waitsvod')}{' '}
    \r\n \r\n
    : ''}\r\n {this.state.isSvodComplete === true && this.props.svod.statusSvod != null && this.props.svod.statusSvod.successed===true ? \r\n \r\n \r\n \r\n : ''}\r\n {this.state.isSvodComplete === true && this.props.svod.statusSvod != null && this.props.svod.statusSvod.error != null?\r\n \r\n {this.props.svod.statusSvod.error}\r\n \r\n :''}\r\n ;\r\n }\r\n}\r\n\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators({ ...actionCreatorsNsi, ...actionCreatorsSvod }, dispatch)\r\n)(SvodForm);","import React, { Fragment, useState } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { cloneDeep } from 'lodash';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport { Button, Col, FormGroup, FormControl, ControlLabel, Form, Checkbox, Radio, HelpBlock, Row, Alert, Modal } from 'react-bootstrap';\r\n\r\nimport { actionCreators as actionCreatorsSvod } from '../../store/Svod';\r\nimport { actionCreators as actionCreatorsNsi } from '../../store/Nsi';\r\n//import SelectMultiObjects from '../common/SelectMultiObjects';\r\n//import SelectMultiForms from '../common/SelectMultiForms';\r\nimport SelectMultiForms from '../common/SelectMultiForms';\r\nimport SelectMultiObjects from '../common/SelectMultiObjects';\r\n\r\nimport FilterRazOptions from '../common/FilterRazOptions';\r\nimport { years, getCurrentYear, getNameLocalize } from '../Constants';\r\n\r\nconst SvodFormQuarts = (props) => {\r\n useState(() => {\r\n if (props.nsi.allobls.length === 0) props.getNs('allobls');\r\n if (props.nsi.sprraz.length === 0) props.getNs('sprraz');\r\n if (props.nsi.sprform.length === 0) props.getNs('sprform');\r\n if (props.nsi.periods.length === 0) props.getNs('periods');\r\n if (props.nsi.allraions.length === 0) props.getNs('allraions');\r\n if (props.userInfo.user.nomenklKod === '008' || props.userInfo.user.nomenklKod === '049' || props.userInfo.user.nomenklKod === '043') {\r\n const fetchData = async () => {\r\n const chOrgs = await props.getSubOrgs();\r\n setChildOrgs(chOrgs);\r\n }\r\n fetchData();\r\n }\r\n });\r\n const [year, setYear] = useState(() => getCurrentYear());\r\n const [kper, setKper] = useState(4);\r\n const [krazSrc, setKrazSrc] = useState(1);\r\n const [svodSrc, setSvodSrc] = useState(1); //1- сводятся месяцы, 2 - сводятся кварталы\r\n const [tobj, setTobj] = useState(props.userInfo.user.accessLevel); // тип обьекта 1 – РК; 2 – область; 3 - район; 4 - организация (доступ зависит от пользователя)\r\n const [kobl, setKobl] = useState(props.userInfo.user.kodObl);\r\n const [kraion, setKraion] = useState(props.userInfo.user.kodRaion.substring(0, 4));\r\n const [korg, setKorg] = useState(props.userInfo.user.kodOrg);\r\n const [kobls, setKobls] = useState([props.userInfo.user.kodObl]);\r\n const [kraions, setKraions] = useState([props.userInfo.user.kodRaion.substring(0, 4)]);\r\n const [korgs, setKorgs] = useState([]);\r\n const [kforms, setKforms] = useState([]);\r\n const [forOrgs, setForOrgs] = useState(false);\r\n const [isSelectOrgAll, setIsSelectOrgAll] = useState();\r\n const [childOrgs, setChildOrgs] = useState();\r\n const [errors, setErrors] = useState([]);\r\n const [successMessage, setSuccessMessage] = useState();\r\n const [svodRunning, setSvodRunning] = useState(false);\r\n const setParam = (param, value) => {\r\n //setSelOrgs([]);\r\n //setOrgs([]);\r\n switch (param) {\r\n case \"year\":\r\n setYear(value);\r\n break;\r\n case \"kper\":\r\n setSvodSrc(1);\r\n setKper(value);\r\n break;\r\n case \"krazSrc\":\r\n setKrazSrc(value);\r\n break;\r\n case \"tobj\":\r\n setTobj(value);\r\n break;\r\n case \"kobl\":\r\n setKobl(value.kobl);\r\n let ra = props.nsi.allraions.filter(r => r.obl === value.kobl);\r\n if (ra.length > 0) {\r\n setKraion(ra[0].idRaion);\r\n } break;\r\n case \"kraion\":\r\n setKraion(value.kraion);\r\n break;\r\n case \"korg\":\r\n setKorg(value.korg);\r\n break;\r\n case \"kobls\":\r\n setKobls(value);\r\n if (value.length > 0 && errors.length > 0) {\r\n let ind = errors.indexOf(\"selectObjs\");\r\n if (ind > -1) {\r\n let ar = [...errors];\r\n ar.splice(ind, 1);\r\n setErrors(ar);\r\n }\r\n }\r\n break;\r\n case \"kraions\":\r\n setKraions(value);\r\n if (value.length > 0 && errors.length > 0) {\r\n let ind = errors.indexOf(\"selectObjs\");\r\n if (ind > -1) {\r\n let ar = [...errors];\r\n ar.splice(ind, 1);\r\n setErrors(ar);\r\n }\r\n }\r\n break;\r\n case \"korgs\":\r\n setKorgs(value);\r\n if (value.length > 0 && errors.length > 0) {\r\n let ind = errors.indexOf(\"selectObjs\");\r\n if (ind > -1) {\r\n let ar = [...errors];\r\n ar.splice(ind, 1);\r\n setErrors(ar);\r\n }\r\n }\r\n break;\r\n //case \"isAllRaions\":\r\n // setIsAllRaions(value);\r\n // break;\r\n case \"kforms\":\r\n setKforms(value);\r\n if (value.length > 0 && errors.length > 0) {\r\n let ind = errors.indexOf(\"selectForms\");\r\n if (ind > -1) {\r\n let ar = [...errors];\r\n ar.splice(ind, 1);\r\n setErrors(ar);\r\n }\r\n }\r\n break;\r\n default:\r\n }\r\n }\r\n const getSvodParams = (fnErr) => {\r\n setErrors([]);\r\n setSuccessMessage(null);\r\n let errs = [];\r\n let kobjs = [];\r\n switch (tobj) {\r\n case 1:\r\n kobjs = [\"99\"];\r\n break;\r\n case 2:\r\n kobjs = kobls;\r\n break;\r\n case 3:\r\n //kobjs = kraions;\r\n if (props.userInfo.user.accessLevel === 3) {\r\n if (forOrgs != true) {\r\n kobjs = kraions;\r\n } else {\r\n kobjs = korgs;\r\n }\r\n } else {\r\n kobjs = kraions;\r\n }\r\n break;\r\n case 4:\r\n kobjs = [korg];\r\n break;\r\n default:\r\n }\r\n if (kobjs.length === 0) {\r\n errs.push(\"selectObjs\");\r\n }\r\n if (kforms.length === 0) {\r\n errs.push(\"selectForms\");\r\n }\r\n if (errs.length > 0)\r\n fnErr(errs);\r\n return {\r\n year,\r\n kper,\r\n kraz:krazSrc,\r\n tobj: forOrgs === true ? 4 : tobj,\r\n kobjs,\r\n kforms,\r\n svodSrc\r\n };\r\n }\r\n const onSvodFormQuarts = (e) => {\r\n e.preventDefault();\r\n const svodQuarts = async () => {\r\n let errs = [];\r\n let param = getSvodParams((ers) => errs = ers);\r\n if (errs.length > 0) {\r\n setErrors(errs);\r\n return;\r\n };\r\n setSvodRunning(true);\r\n var ret = await props.svodFormQuarts(param);\r\n if (ret.successed === false) {\r\n let err = []; err.push(ret.error);\r\n setErrors(err);\r\n } else {\r\n setSuccessMessage(I18n.t(\"svodComplete\"));\r\n }\r\n setSvodRunning(false);\r\n }\r\n svodQuarts();\r\n }\r\n const showCommentPeriod = (per) => {\r\n switch (per) {\r\n case 10:\r\n return ;\r\n case 20:\r\n return ;\r\n case 21:\r\n return ;\r\n case 30:\r\n return ;\r\n case 31:\r\n return ;\r\n case 40:\r\n return ;\r\n case 4:\r\n return ;\r\n default:\r\n return \"\";\r\n }\r\n }\r\n const isSelectOrgAllChange = (evt) =>{\r\n //evt.preventDefault();\r\n if (evt.target.checked === true) {\r\n setIsSelectOrgAll(true)\r\n setKorgs(cloneDeep(childOrgs.map(m => m.kod)));\r\n } else {\r\n setIsSelectOrgAll(false);\r\n setKorgs([props.userInfo.user.kodOrg]);\r\n }\r\n }\r\n const showSubOrgs= () => {\r\n if ((props.userInfo.user.nomenklKod === '008' || props.userInfo.user.nomenklKod === '049' || props.userInfo.user.nomenklKod === '043') && tobj === 3) {\r\n return \r\n \r\n { setForOrgs(false); setIsSelectOrgAll(false); setKorgs([props.userInfo.user.kodOrg]); }} defaultChecked={forOrgs === false} inline>{' '}\r\n { setForOrgs(true); setIsSelectOrgAll(false); setKorgs([props.userInfo.user.kodOrg]); }} defaultChecked={forOrgs === true} inline>{' '}   \r\n {forOrgs === true ? : ''}\r\n \r\n \r\n {showListSub()}\r\n \r\n } else {\r\n return '';\r\n }\r\n }\r\n const getValidationChildOrgs= () => {\r\n if (forOrgs != true) return null;\r\n const length = korgs.length;\r\n if (length > 0)\r\n return 'success';\r\n if (length === 0) {\r\n return 'error';\r\n }\r\n return null;\r\n }\r\n const showListSub = () => {\r\n if (forOrgs != true) return '';\r\n return \r\n \r\n {childOrgs.map(it => {it.kod} {getNameLocalize(props.i18n, it)})}\r\n \r\n ;\r\n }\r\n const onCheckChildOrg = (e) => {\r\n //e.preventDefault();\r\n let checked = e.target.checked;\r\n let org = e.target.value;\r\n let krgs = [...korgs];\r\n if (checked) {\r\n krgs.push(org);\r\n } else {\r\n let ind = krgs.indexOf(org);\r\n krgs.splice(ind, 1);\r\n }\r\n setKorgs(krgs);\r\n }\r\n const getTitleSvodSrc = (kp, s) => {\r\n if (s === 1) //1- сводятся месяцы \r\n {\r\n return showCommentPeriod(kp);\r\n\r\n } else {//2 - сводятся кварталы\r\n switch (kp) {\r\n case 4: //1-квартал + 2-квартал + 3-квартал + 4-квартал \r\n return ;\r\n case 21://1-квартал + 2-квартал\r\n return ;\r\n case 31://1-квартал + 2-квартал + 3-квартал\r\n return ;\r\n default:\r\n return \"\";\r\n }\r\n }\r\n }\r\n let isReadOnLy = props.userInfo.user.roles.filter(r => r === 'UserReadData').length > 0;\r\n if (isReadOnLy === true)\r\n return \r\n else\r\n return <>
    \r\n
    \r\n \r\n {':'}\r\n \r\n setParam(\"year\", parseInt(e.target.value, 10))} bsSize=\"small\" style={{ width: \"auto\" }}>\r\n {years.filter(f=>f>2019).map(it => )}\r\n \r\n \r\n {/*defaultValue={`${kper}`}*/}\r\n {':'}\r\n setParam(\"kper\", parseInt(e.target.value, 10))} bsSize='small' style={{ width: \"auto\" }}>\r\n {props.nsi.periods.filter(f => f.kper === 4 || f.kper === 10 || f.kper === 20 || f.kper === 21 || f.kper === 30 || f.kper === 31 || f.kper === 40).map(it => )}\r\n {/* */}\r\n {kper === 4 || kper === 21 || kper === 31?\"\":showCommentPeriod(kper)}\r\n \r\n {kper === 4 || kper === 21 || kper === 31 ? \r\n \r\n \r\n setSvodSrc(1)} checked={svodSrc === 1}>{getTitleSvodSrc(kper, 1)}\r\n setSvodSrc(2)} checked={svodSrc === 2}>{getTitleSvodSrc(kper, 2)}\r\n \r\n : \"\"}\r\n \r\n {':'}\r\n setParam(\"krazSrc\", parseInt(e.target.value, 10))} bsSize='small' style={{ width: \"auto\" }}>\r\n \r\n \r\n \r\n {props.userInfo.user.accessLevel < 4 ? setParam(\"tobj\", tobj )}\r\n setObl={(kobl) => setParam(\"kobl\", kobl )} setObls={(kobls) => setParam(\"kobls\", kobls )}\r\n setRaion={(kraion) => setParam(\"kraion\", { kraion })} setRaions={(kraions) => setParam(\"kraions\", kraions )}\r\n setOrg={(korg) => setParam(\"korg\", korg)} setOrgs={(korgs) => setParam(\"korgs\", korgs)} year={year}\r\n /> : \"\"}\r\n {showSubOrgs()}\r\n {props.userInfo.user.accessLevel === 4 ? \r\n {':'}\r\n {props.userInfo.user.kodOrg} {props.i18n.locale[0] === 'r' ? props.userInfo.user.nameOrg : props.userInfo.user.nameOrgKz}\r\n : \"\"}\r\n setParam(\"kforms\", kforms)} no47={false} isNotMonthWithInc={true} />\r\n {errors.length > 0 ? \r\n
      {errors.map(m =>
    • {I18n.t(\"quartsComments.error\", {err:m})}
    • )}
    \r\n
    : \"\"}\r\n {svodRunning === true ? \r\n \r\n
    {I18n.t('waitsvod')}{' '}
    \r\n \r\n
    : ''}\r\n {svodRunning === false && successMessage != null ? \r\n \r\n \r\n \r\n : ''}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n}\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators({ ...actionCreatorsNsi, ...actionCreatorsSvod }, dispatch)\r\n)(SvodFormQuarts);","import React, { Fragment, useState } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { cloneDeep } from 'lodash';\r\nimport * as FileSaver from 'file-saver';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport { Button, Col, FormGroup, FormControl, ControlLabel, Form, Checkbox, Radio, HelpBlock, Row, Alert, Modal } from 'react-bootstrap';\r\n\r\nimport { actionCreators as actionCreatorsSvod } from '../../store/Svod';\r\nimport { actionCreators as actionCreatorsNsi } from '../../store/Nsi';\r\n//import SelectMultiObjects from '../common/SelectMultiObjects';\r\n//import SelectMultiForms from '../common/SelectMultiForms';\r\n//import SelectMultiForms from '../common/SelectMultiForms';\r\n//import SelectMultiObjects from '../common/SelectMultiObjects';\r\nimport SelectObject from '../common/SelectObject'\r\n\r\nimport FilterRazOptions from '../common/FilterRazOptions';\r\nimport { years, getCurrentYear, getNameLocalize } from '../Constants';\r\n\r\nconst SvodFormMonths = (props) => {\r\n useState(() => {\r\n if (props.nsi.periods.length === 0) props.getNs('periods');\r\n if (props.nsi.allobls.length === 0) props.getNs('allobls');\r\n if (props.nsi.sprraz.length === 0) props.getNs('sprraz');\r\n if (props.nsi.sprform.length === 0) props.getNs('sprform');\r\n if (props.nsi.allsprtab.length === 0) props.getNs('allsprtab');\r\n if (props.nsi.allraions.length === 0) props.getNs('allraions');\r\n if (props.userInfo.user.nomenklKod === '008' || props.userInfo.user.nomenklKod === '049' || props.userInfo.user.nomenklKod === '043') {\r\n const fetchData = async () => {\r\n const chOrgs = await props.getSubOrgs();\r\n setChildOrgs(chOrgs);\r\n }\r\n fetchData();\r\n }\r\n });\r\n const [year, setYear] = useState(() => getCurrentYear());\r\n const [kpers, setKpers] = useState([]);\r\n const [krazSrc, setKrazSrc] = useState(1);\r\n const [tobj, setTobj] = useState(props.userInfo.user.accessLevel); // тип обьекта 1 – РК; 2 – область; 3 - район; 4 - организация (доступ зависит от пользователя)\r\n const [obl, setObl] = useState();\r\n const [raion, setRaion] = useState();\r\n const [org, setOrg] = useState();\r\n const [kf, setKf] = useState(\"56\");\r\n const [ktab, setKtab] = useState(\"0001\");\r\n const [isObj, setIsObj] = useState(false);\r\n const [isOrgs, setIsOrgs] = useState(false);\r\n const [errors, setErrors] = useState([]);\r\n const [successMessage, setSuccessMessage] = useState();\r\n const [svodRunning, setSvodRunning] = useState(false);\r\n const setParam = (param, value, checked) => {\r\n //setSelOrgs([]);\r\n //setOrgs([]);\r\n switch (param) {\r\n case \"year\":\r\n setYear(value);\r\n break;\r\n case \"kpers\":\r\n //setKper(value);\r\n let pers = cloneDeep(kpers);\r\n if (checked == true) {\r\n pers.push(value);\r\n } else {\r\n let ind = pers.indexOf(value);\r\n pers.splice(ind, 1);\r\n }\r\n setKpers(pers);\r\n break;\r\n case \"krazSrc\":\r\n setKrazSrc(value);\r\n break;\r\n case \"kf\":\r\n setKf(value);\r\n let kt = props.nsi.allsprtab.filter(f => f.kf === value)[0].ktab;\r\n setKtab(kt);\r\n if (kf === '70' || kf === '71' || kf === '72' || kf === '73' || kf === '74') {\r\n setIsObj(false);\r\n }\r\n break;\r\n case \"ktab\":\r\n setKtab(value);\r\n break;\r\n case \"isObj\":\r\n setIsObj(checked);\r\n break;\r\n case \"isOrgs\":\r\n setIsOrgs(checked);\r\n break;\r\n default:\r\n }\r\n }\r\n const setTob = (tob) => {\r\n if (tob === 4)\r\n setIsObj(false);\r\n setTobj(tob);\r\n }\r\n const getSvodParams = (fnErr) => {\r\n setErrors([]);\r\n setSuccessMessage(null);\r\n let errs = [];\r\n let kobjs = [];\r\n switch (tobj) {\r\n case 1:\r\n kobjs = [\"99\"];\r\n break;\r\n case 2:\r\n if (props.userInfo.user.accessLevel === 2)\r\n kobjs = [props.userInfo.user.kodObl];\r\n else\r\n kobjs = [obl.kobl];\r\n break;\r\n case 3:\r\n if (props.userInfo.user.accessLevel === 3)\r\n kobjs = [props.userInfo.user.kodRaion];\r\n else\r\n kobjs = [raion.kraion];\r\n break;\r\n case 4:\r\n if (props.userInfo.user.accessLevel === 4)\r\n kobjs = [props.userInfo.user.kodOrg];\r\n else\r\n kobjs = [org.korg];\r\n break;\r\n default:\r\n }\r\n if (kf == null || kf === \"\") {\r\n errs.push(\"selectForm\");\r\n }\r\n if (kpers.length === 0) {\r\n errs.push(\"selectMonths\");\r\n }\r\n if (errs.length > 0)\r\n fnErr(errs);\r\n if (isObj == true) {\r\n if (ktab == null || ktab === \"\") {\r\n errs.push(\"selectTable\");\r\n }\r\n return {\r\n year,\r\n kpers,\r\n kraz: krazSrc,\r\n tobj,\r\n kobjs,\r\n kf,\r\n ktab,\r\n isOrgs,\r\n lang: props.i18n.locale.substr(0,2)\r\n };\r\n }else\r\n return {\r\n year,\r\n kpers,\r\n kraz: krazSrc,\r\n tobj,\r\n kobjs,\r\n kf,\r\n lang: props.i18n.locale.substr(0, 2)\r\n };\r\n\r\n }\r\n const onSvodFormQuarts = (e) => {\r\n e.preventDefault();\r\n if (isObj === true) {\r\n svodFormQuarts2();\r\n } else {\r\n svodFormQuarts();\r\n }\r\n }\r\n const svodFormQuarts2 = () => {\r\n const svodMonths2 = async () => {\r\n let errs = [];\r\n let param = getSvodParams((ers) => errs = ers);\r\n if (errs.length > 0) {\r\n setErrors(errs);\r\n return;\r\n };\r\n setSvodRunning(true);\r\n var ret = await props.existsSvodFormMonths2(param);\r\n if (ret.successed === false) {\r\n setErrors([ret.error]);\r\n } else {\r\n if (ret.isExists === true) {\r\n //generate Excel\r\n let absoluteUrl = `${document.location.protocol}//${document.location.host}/generate/Excel/SvodFormMonths2`;\r\n let fileName = `months_${param.year}_${param.kraz}_${param.kf}_${param.ktab}_p${param.kpers.join(\"_\")}_t${param.tobj}_o${param.kobjs.join(\"_\")}.xlsx`;\r\n let json = JSON.stringify(param);\r\n const response = await fetch(absoluteUrl, {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${props.userInfo.user.token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const blob = await response.blob();\r\n FileSaver.saveAs(blob, fileName);\r\n props.setIsLoading(false);\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n props.setIsLoading(false);\r\n }\r\n } else {\r\n setSuccessMessage(I18n.t(\"noDataForm\"));\r\n }\r\n }\r\n setSvodRunning(false);\r\n }\r\n svodMonths2();\r\n }\r\n const svodFormQuarts = () => {\r\n const svodMonths = async () => {\r\n let errs = [];\r\n let param = getSvodParams((ers) => errs = ers);\r\n if (errs.length > 0) {\r\n setErrors(errs);\r\n return;\r\n };\r\n setSvodRunning(true);\r\n var ret = await props.existsSvodFormMonths(param);\r\n if (ret.successed === false) {\r\n setErrors([ret.error]);\r\n } else {\r\n if (ret.isExists === true) {\r\n //generate Excel\r\n let absoluteUrl = `${document.location.protocol}//${document.location.host}/generate/Excel/SvodFormMonths`;\r\n let fileName = `months_${param.year}_${param.kraz}_${param.kf}_p${param.kpers.join(\"_\")}_t${param.tobj}_o${param.kobjs.join(\"_\")}.xlsx`;\r\n let json = JSON.stringify(param);\r\n const response = await fetch(absoluteUrl, {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${props.userInfo.user.token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const blob = await response.blob();\r\n FileSaver.saveAs(blob, fileName);\r\n props.setIsLoading(false);\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n props.setIsLoading(false);\r\n }\r\n } else {\r\n setSuccessMessage(I18n.t(\"noDataForm\"));\r\n }\r\n }\r\n setSvodRunning(false);\r\n }\r\n svodMonths();\r\n }\r\n const getRazrezName = (tp) => {\r\n switch (tp) {\r\n case 1:\r\n return I18n.t(\"svodMonthIsObjs\", { razrez: I18n.t(\"razObjs.obls\") }) \r\n case 2:\r\n //return I18n.t(\"svodMonthIsObjs\", { razrez: I18n.t(\"razObjs.raions\") });\r\n //return I18n.t(\"svodMonthIsObjs\", { razrez: \": \" });\r\n return I18n.t(\"svodMonthIsObjs2\");\r\n case 3:\r\n return I18n.t(\"svodMonthIsObjs\", { razrez: I18n.t(\"razObjs.orgs\") });\r\n default:\r\n }\r\n return \"\";\r\n }\r\n let isReadOnLy = props.userInfo.user.roles.filter(r => r === 'UserReadData').length > 0;\r\n if (isReadOnLy === true)\r\n return \r\n else\r\n return <>
    \r\n
    \r\n \r\n {':'}\r\n \r\n setParam(\"year\", parseInt(e.target.value, 10))} bsSize=\"small\" style={{ width: \"auto\" }}>\r\n {years.map(it => )}\r\n \r\n \r\n \r\n {':'}\r\n \r\n {props.nsi.periods.filter(f => f.kper > 100).map(it => setParam(\"kpers\", parseInt(e.target.value, 10), e.target.checked)}\r\n disabled={props.svod.isLoading} name=\"groupMonths\">{getNameLocalize(props.i18n, it)})}\r\n \r\n \r\n \r\n {':'}\r\n setParam(\"krazSrc\", parseInt(e.target.value, 10))} bsSize='small' style={{ width: \"auto\" }}>\r\n \r\n \r\n \r\n \r\n \r\n {':'}\r\n \r\n setParam(\"kf\", e.target.value)} bsSize='small' style={{ width: \"auto\" }}>\r\n {props.nsi.sprform.filter(f => f.monthWithInc === 1).map(it => )}\r\n \r\n \r\n \r\n {tobj < 4 && kf!='70' && kf!='71' && kf!='72' && kf!='73' && kf!='74'? <>\r\n \r\n setParam(\"isObj\", e.target.checked, e.target.checked)}\r\n disabled={props.svod.isLoading}>{getRazrezName(tobj)}\r\n {isObj === true && tobj === 2 ? <>  setParam(\"isOrgs\", e.target.checked, !e.target.checked)}\r\n disabled={props.svod.isLoading}>\r\n setParam(\"isOrgs\", e.target.checked, e.target.checked)}\r\n disabled={props.svod.isLoading}>\r\n \r\n :\"\"}\r\n \r\n \r\n {isObj == true ? \r\n {':'}\r\n \r\n setParam(\"ktab\", e.target.value)} bsSize='small' style={{ width: \"auto\" }}>\r\n {props.nsi.allsprtab.filter(f => f.kf === kf).map(it => )}\r\n \r\n \r\n : \"\"} : \"\"}\r\n {errors.length > 0 ? \r\n
      {errors.map(m =>
    • {I18n.t(m)}
    • )}
    \r\n
    : \"\"}\r\n {svodRunning === true ? \r\n \r\n
    {I18n.t('waitsvod')}{' '}
    \r\n \r\n
    : ''}\r\n {svodRunning === false && successMessage != null ? \r\n \r\n {successMessage}\r\n \r\n : ''}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n}\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators({ ...actionCreatorsNsi, ...actionCreatorsSvod }, dispatch)\r\n)(SvodFormMonths);","import React, { Component, Fragment } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport { Button, Col, FormGroup, FormControl, ControlLabel, Form, Checkbox, Radio, HelpBlock, Row, Alert, Modal } from 'react-bootstrap';\r\n\r\nimport { actionCreators as actionCreatorsSvod } from '../../store/Svod';\r\nimport { actionCreators as actionCreatorsNsi } from '../../store/Nsi';\r\nimport SelectMultiObjects from '../common/SelectMultiObjects';\r\nimport SelectMultiForms from '../common/SelectMultiForms';\r\nimport { getNameLocalize } from '../Constants';\r\n\r\nimport { years, getCurrentYear } from '../Constants';\r\nimport FilterRazOptions from '../common/FilterRazOptions';\r\n\r\nclass SvodFormRaz extends Component {\r\n\r\n constructor(props) {\r\n super(props);\r\n let nowYear = getCurrentYear();\r\n this.state = {\r\n year: props.year !== undefined ? props.year : nowYear,\r\n kper: 4,//период\r\n kraz_src: [], //разрезы источники\r\n kraz: 1,//this.props.userInfo.user.accessLevel !== 4 ? 1 : 3, //разрез назначения\r\n tobj: props.userInfo.user.accessLevel, // тип обьекта 1 – РК; 2 – область; 3 - район; 4 - организация (доступ зависит от пользователя)\r\n obl: undefined,\r\n raion: undefined,\r\n org: undefined,\r\n kobls: [],\r\n kraions: [],\r\n korgs: [],\r\n forOrgs: false,\r\n kforms: [],\r\n isAfterSvodDeleteSrc: false,//Удалить данные раздела источника после свода(перноса) в итоговой разрез, для слияния разрезов источник всегда остается! \r\n errors: [],\r\n isSvodComplete: false,\r\n showConfirm: false,\r\n childOrgs:[]\r\n };\r\n //props.getNs('periods');\r\n //props.getNs('sprraz');\r\n if (props.nsi.periods.length === 0) props.getNs('periods');\r\n if (props.nsi.sprraz.length === 0) props.getNs('sprraz');\r\n this.onSvodForm = this.onSvodForm.bind(this);\r\n this.handleConfirmClose = this.handleConfirmClose.bind(this);\r\n this.handleConfirmSvod = this.handleConfirmSvod.bind(this);\r\n this.showSubOrgs = this.showSubOrgs.bind(this);\r\n this.showListSub = this.showListSub.bind(this);\r\n this.onCheckChildOrg = this.onCheckChildOrg.bind(this);\r\n this.getValidationChildOrgs = this.getValidationChildOrgs.bind(this);\r\n this.getSubOrgs = this.getSubOrgs.bind(this);\r\n if (props.userInfo.user.nomenklKod === '008' || props.userInfo.user.nomenklKod === '049' || props.userInfo.user.nomenklKod === \"043\") {\r\n this.getSubOrgs();\r\n }\r\n }\r\n getSubOrgs() {\r\n var self = this;\r\n const fetchData = async () => {\r\n const childOrgs = await self.props.getSubOrgs();\r\n self.setState({ childOrgs });\r\n }\r\n fetchData();\r\n }\r\n handleIsAfterSvodDeleteSrc = (e) => {\r\n e.preventDefault();\r\n this.setState({ isAfterSvodDeleteSrc: e.target.checked != null ? e.target.checked: false });\r\n }\r\n handleConfirmClose = (e) => {\r\n e.preventDefault();\r\n this.setState({ showConfirm: false });\r\n }\r\n handleConfirmSvod = (e) => {\r\n e.preventDefault();\r\n this.setState({ showConfirm: false });\r\n this.setState({ isSvodComplete: false });\r\n let param = this.getSvodParams();\r\n this.props.svodFormRaz(param);\r\n this.setState({ isSvodComplete: true });\r\n }\r\n getSvodParams = () => {\r\n let kobjs = null;\r\n switch (this.state.tobj) {\r\n case 1:\r\n kobjs = [\"00\"];\r\n break;\r\n case 2:\r\n if (this.props.userInfo.user.accessLevel === 2) {\r\n kobjs = [];\r\n kobjs.push(this.state.obl.kobl);\r\n } else {\r\n kobjs = this.state.kobls;\r\n }\r\n break;\r\n case 3:\r\n if (this.props.userInfo.user.accessLevel === 3) {\r\n if (this.state.forOrgs != true) {\r\n kobjs = [];\r\n kobjs.push(this.state.raion.kraion);\r\n } else {\r\n kobjs = [...this.state.korgs];\r\n }\r\n } else {\r\n kobjs = this.state.kraions;\r\n }\r\n break;\r\n case 4://организации\r\n if (this.props.userInfo.user.accessLevel === 4) {\r\n kobjs = [];\r\n if (this.state.org == null) {\r\n kobjs.push(this.props.userInfo.user.kodOrg);\r\n } else {\r\n kobjs.push(this.state.org.korg);\r\n }\r\n } else {\r\n kobjs = this.state.korgs;\r\n }\r\n break;\r\n default:\r\n }\r\n if (kobjs.length === 0) {\r\n alert(I18n.t(\"selectObjs\"));\r\n return null;\r\n }\r\n if (this.state.kforms.length === 0) {\r\n alert(I18n.t(\"selectForms\"));\r\n return null;\r\n }\r\n if (this.state.kraz_src.length === 0) {\r\n alert(I18n.t(\"selectRazSrc\"));\r\n return null;\r\n }\r\n let kr = this.state.kraz;\r\n if (this.state.kraz_src.filter(f => f === kr).length > 0) {\r\n alert(I18n.t(\"razSrcEqDest\"));\r\n return null;\r\n }\r\n this.setState({ isSvodComplete: false });\r\n return {\r\n year: this.state.year,\r\n kper: this.state.kper,\r\n krazSrc: this.state.kraz_src,\r\n kraz: kr,\r\n tobj: this.state.forOrgs===true?4:this.state.tobj,\r\n kobjs,\r\n kforms: this.state.kforms,\r\n isAfterSvodDeleteSrc: this.state.isAfterSvodDeleteSrc\r\n };\r\n }\r\n async onSvodForm(e){\r\n e.preventDefault();\r\n this.setState({ isSvodComplete: false });\r\n let param = this.getSvodParams();\r\n if (param == null) return;\r\n let retData = await this.props.isExistSvodRaz(param);\r\n if (retData.successed === true) {\r\n if (retData.isExists === true) {\r\n //данные уже есть в базе данных, спросить создать свод?\r\n this.setState({ showConfirm: true });\r\n return;\r\n } else {\r\n await this.props.svodFormRaz(param);\r\n this.setState({ isSvodComplete: true });\r\n }\r\n } else {\r\n this.setState({ isSvodComplete: true });\r\n }\r\n }\r\n onSelectYear = (e) => {\r\n let year = parseInt(e.target.value, 10);\r\n this.setState({ year });\r\n }\r\n onSelectKper = (e) => {\r\n let kper = parseInt(e.target.value, 10);\r\n this.setState({ kper });\r\n }\r\n onSelectKraz = (e) => {\r\n let kraz = parseInt(e.target.value, 10);\r\n this.setState({ kraz });\r\n }\r\n onSelectKrazSrc = (e) => {\r\n let checked = e.target.checked;\r\n let kraz = parseInt(e.target.value, 10);\r\n let kraz_src = [ ...this.state.kraz_src];\r\n if (checked) {\r\n kraz_src.push(kraz);\r\n } else {\r\n let ind = kraz_src.indexOf(kraz);\r\n kraz_src.splice(ind, 1);\r\n }\r\n this.setState({ kraz_src });\r\n }\r\n getValidationStateRaz() {\r\n const length = this.state.kraz_src.length;\r\n let errors = [];\r\n if (length > 0)\r\n return 'success';\r\n // if (length > 5) return 'warning';\r\n if (length === 0) {\r\n errors.push(\"Выберите разрезы источника\");\r\n //this.setState({ errors });\r\n return 'error';\r\n }\r\n return null;\r\n }\r\n showSubOrgs() {\r\n if ((this.props.userInfo.user.nomenklKod === '008' || this.props.userInfo.user.nomenklKod === '049' || this.props.userInfo.user.nomenklKod === '043') && this.state.tobj === 3/*&& this.state.kraz_src.filter(r => r === 23 || r === 24 || r === 25).length > 0*/) {\r\n return \r\n \r\n this.setState({ forOrgs: false })} checked={this.state.forOrgs === false} inline>{' '}\r\n this.setState({ forOrgs: true })} checked={this.state.forOrgs === true} inline>{' '}\r\n \r\n \r\n {this.showListSub()}\r\n \r\n } else {\r\n return '';\r\n }\r\n }\r\n onCheckChildOrg = (e) => {\r\n let checked = e.target.checked;\r\n let org = e.target.value;\r\n let korgs = [...this.state.korgs];\r\n if (checked) {\r\n korgs.push(org);\r\n } else {\r\n let ind = korgs.indexOf(org);\r\n korgs.splice(ind, 1);\r\n }\r\n this.setState({ korgs });\r\n }\r\n getValidationChildOrgs() {\r\n if (this.state.forOrgs != true) return null;\r\n const length = this.state.korgs.length;\r\n if (length > 0)\r\n return 'success';\r\n if (length === 0) {\r\n return 'error';\r\n }\r\n return null;\r\n }\r\n showListSub() {\r\n if (this.state.forOrgs != true) return '';\r\n return \r\n \r\n {this.state.childOrgs.map(it => {it.kod} {getNameLocalize(this.props.i18n, it)})}\r\n \r\n ;\r\n }\r\n render() {\r\n let isReadOnLy = this.props.userInfo.user.roles.filter(r => r === 'UserReadData').length > 0;\r\n if (isReadOnLy === true)\r\n return \r\n else\r\n return
    \r\n
    \r\n \r\n {':'}\r\n \r\n \r\n {years.map(it => )}\r\n \r\n \r\n \r\n {':'}\r\n \r\n {this.props.nsi.periods.map(it => )}\r\n \r\n \r\n \r\n {':'}\r\n \r\n
    \r\n {this.props.nsi.sprraz/*.filter(f => this.props.userInfo.user.accessLevel !== 4 || f.kod === 3 || f.kod === 4 || f.kod === 5 || f.kod === 6 || f.kod === 12 || f.kod === 23 || f.kod === 24 || f.kod === 25)*/.map(it => {it.nameRu})}\r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n this.setState({ tobj, forOrgs:false })}\r\n setObl={(obl) => this.setState({ obl })} setObls={(kobls) => this.setState({ kobls })}\r\n setRaion={(raion) => this.setState({ raion })} setRaions={(kraions) => this.setState({ kraions })}\r\n year={this.state.year}\r\n />\r\n {/*setOrg={(org) => this.setState({ org })} setOrgs={(korgs) => this.setState({ korgs })}*/}\r\n {this.showSubOrgs()}\r\n this.setState({ kforms })} />\r\n
      {this.state.errors.map(msg =>
    • {msg}
    • )}
    \r\n {this.props.svod.isLoading === true ? \r\n \r\n
    {I18n.t('waitsvod')}{' '}
    \r\n \r\n
    : ''}\r\n {this.state.isSvodComplete === true && this.props.svod.statusSvod != null && this.props.svod.statusSvod.successed === true ? \r\n \r\n \r\n \r\n : ''}\r\n {this.state.isSvodComplete === true && this.props.svod.statusSvod != null && this.props.svod.statusSvod.error != null ? \r\n \r\n {this.props.svod.statusSvod.error}\r\n \r\n : ''}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    ;\r\n }\r\n}\r\n\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators({ ...actionCreatorsNsi, ...actionCreatorsSvod }, dispatch)\r\n)(SvodFormRaz);\r\n\r\n/*\r\n \r\n \r\n \r\n \r\n \r\n */","import React, { Component } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport { Button, Col, FormGroup, FormControl, ControlLabel, Form, Row, Alert, Checkbox } from 'react-bootstrap';\r\n\r\nimport { actionCreators as actionCreatorsSvod } from '../../store/Svod';\r\nimport { actionCreators as actionCreatorsNsi } from '../../store/Nsi';\r\nimport SelectMultiForms from '../common/SelectMultiForms';\r\nimport { years, getNameLocalize, getCurrentYear } from '../Constants';\r\n\r\nclass SvodSubOrg extends Component {\r\n constructor(props) {\r\n super(props);\r\n let nowYear = getCurrentYear();\r\n this.state = {\r\n year: props.year !== undefined ? props.year : nowYear,\r\n kper: 4,//период\r\n kraz: 23, //разрез\r\n kforms: [],\r\n isNotParent: false,//исключить ЦРБ\r\n excludeNomenkl:[],\r\n isSvodComplete: false\r\n }\r\n if (props.nsi.periods.length === 0) props.getNs('periods');\r\n if (props.nsi.sprraz.length === 0) props.getNs('sprraz');\r\n if (props.nsi.nomenkl.length === 0) props.getNs('nomenkl');\r\n this.onSvodForm = this.onSvodForm.bind(this);\r\n this.textTargetRaz = this.textTargetRaz.bind(this);\r\n this.textIsNotParent = this.textIsNotParent.bind(this);\r\n this.onCheckIsNotParent = this.onCheckIsNotParent.bind(this);\r\n this.onCheckNomen = this.onCheckNomen.bind(this);\r\n };\r\n onSelectYear = (e) => {\r\n let year = parseInt(e.target.value, 10);\r\n this.setState({ year });\r\n }\r\n onSelectKper = (e) => {\r\n let kper = parseInt(e.target.value, 10);\r\n this.setState({ kper });\r\n }\r\n onSelectKraz = (e) => {\r\n let kraz = parseInt(e.target.value, 10);\r\n this.setState({ kraz });\r\n }\r\n textTargetRaz(){\r\n // getNameLocalize(this.props.i18n, it)\r\n let org = getNameLocalize(this.props.i18n, { nameRu: this.props.userInfo.user.nameOrg, nameKz: this.props.userInfo.user.nameOrgKz });\r\n let srcRaz = getNameLocalize(this.props.i18n, this.props.nsi.sprraz.filter(f => f.kod === this.state.kraz)[0]);\r\n let ti = this.state.kraz - 20;\r\n let targetRaz = getNameLocalize(this.props.i18n, this.props.nsi.sprraz.filter(f => f.kod === ti)[0]);\r\n return I18n.t(\"svodSubText\", { srcRaz, targetRaz, org });//\r\n }\r\n textIsNotParent() {\r\n // getNameLocalize(this.props.i18n, it)\r\n let org = getNameLocalize(this.props.i18n, { nameRu: this.props.userInfo.user.nameOrg, nameKz: this.props.userInfo.user.nameOrgKz });\r\n //let srcRaz = getNameLocalize(this.props.i18n, this.props.nsi.sprraz.filter(f => f.kod === this.state.kraz)[0]);\r\n //let ti = this.state.kraz - 20;\r\n //let targetRaz = getNameLocalize(this.props.i18n, this.props.nsi.sprraz.filter(f => f.kod === ti)[0]);\r\n return org;//\r\n }\r\n onCheckIsNotParent= (e) => {\r\n let isNotParent = e.target.checked;\r\n this.setState({ isNotParent });\r\n }\r\n onCheckNomen = (e) => {\r\n let checked = e.target.checked;\r\n let nomen = e.target.value;\r\n let excludeNomenkl = [...this.state.excludeNomenkl];\r\n if (checked) {\r\n excludeNomenkl.push(nomen);\r\n } else {\r\n let ind = excludeNomenkl.indexOf(nomen);\r\n excludeNomenkl.splice(ind, 1);\r\n }\r\n this.setState({ excludeNomenkl });\r\n }\r\n onSvodForm(e) {\r\n e.preventDefault();\r\n this.setState({ isSvodComplete: false });\r\n if (this.state.kforms.length === 0) {\r\n alert(\"Выберте формы\");\r\n return;\r\n }\r\n this.props.svodSubForm({\r\n year: this.state.year,\r\n kper: this.state.kper,\r\n kraz: this.state.kraz,\r\n kforms: this.state.kforms,\r\n isNotParent: this.state.isNotParent,\r\n excludeNomenkl: this.state.excludeNomenkl\r\n });\r\n this.setState({ isSvodComplete: true });\r\n }\r\n render() {\r\n let isReadOnLy = this.props.userInfo.user.roles.filter(r => r === 'UserReadData').length > 0;\r\n if (isReadOnLy === true)\r\n return \r\n else\r\n return
    \r\n
    \r\n \r\n {':'}\r\n \r\n \r\n {years.filter(y=> y > 2020).map(it => )}\r\n \r\n \r\n \r\n {':'}\r\n \r\n {this.props.nsi.periods.map(it => )}\r\n \r\n \r\n \r\n {':'}\r\n \r\n {this.props.nsi.sprraz.filter(f => f.kod === 23 || f.kod === 24 || f.kod === 25).map(it => )}\r\n \r\n
    {this.textTargetRaz()}
    \r\n \r\n
    \r\n \r\n {':'}\r\n {this.textIsNotParent()}\r\n
    :
    \r\n {this.props.nsi.nomenkl.filter(f=>f.kod==='052' || f.kod==='053').map(it => {it.kod} {getNameLocalize(this.props.i18n, it)})}\r\n \r\n
    \r\n this.setState({ kforms })} no47={false/*true*/} />\r\n {this.props.svod.isLoading === true ? \r\n \r\n
    {I18n.t('waitsvod')}{' '}
    \r\n \r\n
    : ''}\r\n {this.state.isSvodComplete === true && this.props.svod.statusSvod != null && this.props.svod.statusSvod.successed === true ? \r\n \r\n \r\n \r\n : ''}\r\n {this.state.isSvodComplete === true && this.props.svod.statusSvod != null && this.props.svod.statusSvod.error != null ? \r\n \r\n {this.props.svod.statusSvod.error}\r\n \r\n : ''}\r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n}\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators({ ...actionCreatorsNsi, ...actionCreatorsSvod }, dispatch)\r\n)(SvodSubOrg);","import React, { Component, Fragment } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { cloneDeep } from 'lodash';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport { Button, Col, FormGroup, FormControl, ControlLabel, Form, Radio, Checkbox, HelpBlock, Row, Alert, Modal } from 'react-bootstrap';\r\n\r\nimport { actionCreators as actionCreatorsSvod } from '../../store/Svod';\r\nimport { actionCreators as actionCreatorsNsi } from '../../store/Nsi';\r\nimport SelectMultiObjects from '../common/SelectMultiObjects';\r\nimport SelectMultiForms from '../common/SelectMultiForms';\r\nimport { getNameLocalize } from '../Constants';\r\n//import { getToken } from './UserInfo';\r\n\r\n\r\nimport { years, getCurrentYear } from '../Constants';\r\nimport FilterRazOptions from '../common/FilterRazOptions';\r\n\r\nclass EditFormRaz extends Component {\r\n\r\n constructor(props) {\r\n super(props);\r\n let nowYear = getCurrentYear();\r\n this.state = {\r\n year: props.year !== undefined ? props.year : nowYear,\r\n kper: 4,//период\r\n kraz_src: 1,//this.props.userInfo.user.accessLevel !== 4 ? 1 : 3, //разрез источника\r\n kraz: 1,//this.props.userInfo.user.accessLevel !== 4 ? 1 : 3, //разрез назначения\r\n tobj: props.userInfo.user.accessLevel, // тип обьекта 1 – РК; 2 – область; 3 - район; 4 - организация (доступ зависит от пользователя)\r\n obl: undefined,\r\n raion: undefined,\r\n org: undefined,\r\n kobls: [],\r\n kraions: [],\r\n korgs: [],\r\n forOrgs: false,\r\n kforms: [],\r\n isAfterSvodDeleteSrc: true,//Удалить данные раздела источника после свода(перноса) в итоговой разрез, для редактрования разрезов источник всегда удаляется! \r\n errors: [],\r\n isSvodComplete: false,\r\n showConfirm: false,\r\n isSelectOrgAll: false\r\n };\r\n if (props.nsi.periods.length === 0) props.getNs('periods');\r\n if (props.nsi.sprraz.length === 0) props.getNs('sprraz');\r\n this.onSvodForm = this.onSvodForm.bind(this);\r\n this.handleConfirmClose = this.handleConfirmClose.bind(this);\r\n this.handleConfirmSvod = this.handleConfirmSvod.bind(this);\r\n this.showSubOrgs = this.showSubOrgs.bind(this);\r\n this.showListSub = this.showListSub.bind(this);\r\n this.onCheckChildOrg = this.onCheckChildOrg.bind(this);\r\n this.getValidationChildOrgs = this.getValidationChildOrgs.bind(this);\r\n this.getSubOrgs = this.getSubOrgs.bind(this);\r\n this.isSelectOrgAllChange = this.isSelectOrgAllChange.bind(this);\r\n if (props.userInfo.user.nomenklKod === '008' || props.userInfo.user.nomenklKod === '049' || props.userInfo.user.nomenklKod === '043') {\r\n this.getSubOrgs();\r\n }\r\n }\r\n getSubOrgs() {\r\n var self = this;\r\n const fetchData = async () => {\r\n const childOrgs = await self.props.getSubOrgs();\r\n self.setState({ childOrgs });\r\n }\r\n fetchData();\r\n }\r\n handleIsAfterSvodDeleteSrc = (e) => {\r\n e.preventDefault();\r\n this.setState({ isAfterSvodDeleteSrc: e.target.checked != null ? e.target.checked: false });\r\n }\r\n handleConfirmClose = (e) => {\r\n e.preventDefault();\r\n this.setState({ showConfirm: false });\r\n }\r\n handleConfirmSvod = (e) => {\r\n e.preventDefault();\r\n this.setState({ showConfirm: false });\r\n this.setState({ isSvodComplete: false });\r\n let param = this.getSvodParams();\r\n this.props.svodFormRaz(param);\r\n this.setState({ isSvodComplete: true });\r\n }\r\n getSvodParams = () => {\r\n let kobjs = null;\r\n switch (this.state.tobj) {\r\n case 1:\r\n kobjs = [\"00\"];\r\n break;\r\n case 2:\r\n if (this.props.userInfo.user.accessLevel === 2) {\r\n kobjs = [];\r\n kobjs.push(this.state.obl.kobl);\r\n } else {\r\n kobjs = this.state.kobls;\r\n }\r\n break;\r\n case 3:\r\n if (this.props.userInfo.user.accessLevel === 3) {\r\n if (this.state.forOrgs != true) {\r\n kobjs = [];\r\n kobjs.push(this.state.raion.kraion);\r\n } else {\r\n kobjs = [...this.state.korgs];\r\n }\r\n } else {\r\n kobjs = this.state.kraions;\r\n }\r\n break;\r\n case 4://организации\r\n if (this.props.userInfo.user.accessLevel === 4) {\r\n kobjs = [];\r\n kobjs.push(this.state.org.korg);\r\n } else {\r\n kobjs = this.state.korgs;\r\n }\r\n break;\r\n default:\r\n }\r\n if (kobjs.length === 0) {\r\n alert(I18n.t(\"selectObjs\"));\r\n return null;\r\n }\r\n if (this.state.kforms.length === 0) {\r\n alert(I18n.t(\"selectForms\"));\r\n return null;\r\n }\r\n if (this.state.kraz_src === this.state.kraz) {\r\n alert(I18n.t(\"razSrcEqDest\"));\r\n return null;\r\n }\r\n let kraz_src = [];\r\n kraz_src.push(this.state.kraz_src);\r\n this.setState({ isSvodComplete: false });\r\n return {\r\n year: this.state.year,\r\n kper: this.state.kper,\r\n krazSrc: kraz_src,\r\n kraz: this.state.kraz,\r\n tobj: this.state.forOrgs === true ? 4 : this.state.tobj,\r\n kobjs,\r\n kforms: this.state.kforms,\r\n isAfterSvodDeleteSrc: this.state.isAfterSvodDeleteSrc\r\n };\r\n }\r\n async onSvodForm(e){\r\n e.preventDefault();\r\n this.setState({ isSvodComplete: false });\r\n let param = this.getSvodParams();\r\n if (param == null) return;\r\n let retData = await this.props.isExistSvodRaz(param);\r\n if (retData.successed === true) {\r\n if (retData.isExists === true) {\r\n //данные уже есть в базе данных, спросить создать свод?\r\n this.setState({ showConfirm: true });\r\n return;\r\n } else {\r\n await this.props.svodFormRaz(param);\r\n this.setState({ isSvodComplete: true });\r\n }\r\n } else {\r\n this.setState({ isSvodComplete: true });\r\n }\r\n }\r\n onSelectYear = (e) => {\r\n let year = parseInt(e.target.value, 10);\r\n this.setState({ year });\r\n }\r\n onSelectKper = (e) => {\r\n let kper = parseInt(e.target.value, 10);\r\n this.setState({ kper });\r\n }\r\n onSelectKraz = (e) => {\r\n let kraz = parseInt(e.target.value, 10);\r\n this.setState({ kraz });\r\n }\r\n onSelectKrazSrc = (e) => {\r\n let kraz_src = parseInt(e.target.value, 10);\r\n this.setState({ kraz_src});\r\n }\r\n getValidationStateRaz() {\r\n let errors = [];\r\n if (this.state.kraz_src != null) {\r\n return 'success';\r\n }else {\r\n errors.push(\"Выберите разрезы источника\");\r\n return 'error';\r\n }\r\n //return null;\r\n }\r\n isSelectOrgAllChange(evt) {\r\n //evt.preventDefault();\r\n if (evt.target.checked === true) {\r\n //this.state.childOrgs.map(m => m.kod);\r\n this.setState({ isSelectOrgAll: true, korgs: cloneDeep(this.state.childOrgs.map(m => m.kod))})\r\n } else {\r\n this.setState({ isSelectOrgAll: false, korgs: [] })\r\n }\r\n }\r\n showSubOrgs() {\r\n if ((this.props.userInfo.user.nomenklKod === '008' || this.props.userInfo.user.nomenklKod === '049' || this.props.userInfo.user.nomenklKod === '043') && this.state.tobj === 3/*&& this.state.kraz_src.filter(r => r === 23 || r === 24 || r === 25).length > 0*/) {\r\n return \r\n \r\n this.setState({ forOrgs: false, isSelectOrgAll: false, korgs: [] })} checked={this.state.forOrgs === false} inline>{' '}\r\n this.setState({ forOrgs: true, isSelectOrgAll: false, korgs: [] })} checked={this.state.forOrgs === true} inline>{' '}   \r\n {this.state.forOrgs === true ? : ''}\r\n \r\n \r\n {this.showListSub()}\r\n \r\n } else {\r\n return '';\r\n }\r\n }\r\n showListSub() {\r\n if (this.state.forOrgs != true) return '';\r\n return \r\n \r\n {this.state.childOrgs.map(it => {it.kod} {getNameLocalize(this.props.i18n, it)})}\r\n \r\n ;\r\n }\r\n onCheckChildOrg = (e) => {\r\n //e.preventDefault();\r\n let checked = e.target.checked;\r\n let org = e.target.value;\r\n let korgs = [...this.state.korgs];\r\n if (checked) {\r\n korgs.push(org);\r\n } else {\r\n let ind = korgs.indexOf(org);\r\n korgs.splice(ind, 1);\r\n }\r\n this.setState({ korgs });\r\n }\r\n getValidationChildOrgs() {\r\n if (this.state.forOrgs != true) return null;\r\n const length = this.state.korgs.length;\r\n if (length > 0)\r\n return 'success';\r\n if (length === 0) {\r\n return 'error';\r\n }\r\n return null;\r\n }\r\n render() {\r\n let isReadOnLy = this.props.userInfo.user.roles.filter(r => r === 'UserReadData').length > 0;\r\n if (isReadOnLy === true)\r\n return \r\n else\r\n return
    \r\n
    \r\n \r\n {':'}\r\n \r\n \r\n {years.map(it => )}\r\n \r\n \r\n \r\n {':'}\r\n \r\n {this.props.nsi.periods.map(it => )}\r\n \r\n \r\n \r\n {':'}\r\n \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n this.setState({ tobj })}\r\n setObl={(obl) => this.setState({ obl })} setObls={(kobls) => this.setState({ kobls })}\r\n setRaion={(raion) => this.setState({ raion })} setRaions={(kraions) => this.setState({ kraions })}\r\n setOrg={(org) => this.setState({ org })} setOrgs={(korgs) => this.setState({ korgs })}\r\n isSelOrg={true} year={this.state.year}\r\n />\r\n {this.showSubOrgs()}\r\n this.setState({ kforms })} />\r\n
      {this.state.errors.map(msg =>
    • {msg}
    • )}
    \r\n {this.props.svod.isLoading === true ? \r\n \r\n
    {I18n.t('waitsvod')}{' '}
    \r\n \r\n
    : ''}\r\n {this.state.isSvodComplete === true && this.props.svod.statusSvod != null && this.props.svod.statusSvod.successed === true ? \r\n \r\n \r\n \r\n : ''}\r\n {this.state.isSvodComplete === true && this.props.svod.statusSvod != null && this.props.svod.statusSvod.error != null ? \r\n \r\n {this.props.svod.statusSvod.error}\r\n \r\n : ''}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    ;\r\n }\r\n}\r\n\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators({ ...actionCreatorsNsi, ...actionCreatorsSvod }, dispatch)\r\n)(EditFormRaz);\r\n\r\n/*\r\n \r\n \r\n \r\n \r\n \r\n */","import React, { useEffect, useState } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { cloneDeep } from 'lodash';\r\nimport * as FileSaver from 'file-saver';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport { Modal, Button, Col, FormGroup, FormControl, ControlLabel, Form, Row, Alert, ListGroup, ListGroupItem, Checkbox } from 'react-bootstrap';\r\n\r\nimport { actionCreators as actionCreatorsSvod } from '../../store/Svod';\r\nimport { actionCreators as actionCreatorsNsi } from '../../store/Nsi';\r\n\r\nimport FilterRazOptions from '../common/FilterRazOptions';\r\nimport { years, getNameLocalize, getCurrentYear } from '../Constants';\r\n\r\nconst EditFormOrgRaz = (props) => {\r\n useState(() => {\r\n if (props.nsi.allobls.length === 0) props.getNs('allobls');\r\n if (props.nsi.sprraz.length === 0) props.getNs('sprraz');\r\n if (props.nsi.sprform.length === 0) props.getNs('sprform');\r\n if (props.nsi.periods.length === 0) props.getNs('periods');\r\n if (props.nsi.allraions.length === 0) props.getNs('allraions');\r\n //let year = new Date().getFullYear();\r\n //setYearsCopy([year - 1, year]);\r\n //setSelYear(year - 1);\r\n });\r\n const [year, setYear] = useState(() => getCurrentYear());\r\n const [kper, setKper] = useState(4);\r\n const [krazSrc, setKrazSrc] = useState(1);\r\n const [kraz, setKraz] = useState(1);\r\n const [tobj, setTobj] = useState(props.userInfo.user.accessLevel); // тип обьекта 1 – РК; 2 – область; 3 - район; 4 - организация (доступ зависит от пользователя)\r\n const [kobl, setKobl] = useState(props.userInfo.user.kodObl);\r\n const [kraion, setKraion] = useState(props.userInfo.user.kodRaion.substring(0, 4));\r\n // const [isAllRaions, setIsAllRaions] = useState(false);\r\n const [kf, setKf] = useState(\"01\");\r\n const [orgs, setOrgs] = useState([]);\r\n const [selOrgs, setSelOrgs] = useState([]);\r\n const [isNotdata, setIsNotdata] = useState(false);\r\n const [isSvodComplete, setIsSvodComplete] = useState(false);\r\n const [showConfirm, setShowConfirm] = useState(false);\r\n const setParam = (param, value) => {\r\n setSelOrgs([]);\r\n setOrgs([]);\r\n switch (param) {\r\n case \"year\":\r\n setYear(value);\r\n let rai = props.nsi.allraions.filter(r => r.obl === kobl && filterRaion(r, year));\r\n if (rai.length > 0) {\r\n setKraion(rai[0].idRaion);\r\n }\r\n break;\r\n case \"kper\":\r\n setKper(value);\r\n break;\r\n case \"krazSrc\":\r\n setKrazSrc(value);\r\n break;\r\n case \"tobj\":\r\n setTobj(value);\r\n break;\r\n case \"kobl\":\r\n setKobl(value);\r\n let ra = props.nsi.allraions.filter(r => r.obl === value && filterRaion(r, year));\r\n if (ra.length > 0) {\r\n setKraion(ra[0].idRaion);\r\n }\r\n break;\r\n case \"kraion\":\r\n setKraion(value);\r\n break;\r\n //case \"isAllRaions\":\r\n // setIsAllRaions(value);\r\n // break;\r\n case \"kf\":\r\n setKf(value);\r\n break;\r\n default:\r\n }\r\n }\r\n const filterObl = (f) => {\r\n if (year == null) return true;\r\n let ye = typeof year === 'string' ? parseInt(year, 10) : year;\r\n let dtBeg = f.dtBeg == null ? null : new Date(f.dtBeg);\r\n if (dtBeg != null && dtBeg.getFullYear() > ye) return false;\r\n let dtEnd = f.dtEnd == null ? null : new Date(f.dtEnd);\r\n if (dtEnd != null && ye >= dtEnd.getFullYear()) return false;\r\n return true;\r\n }\r\n const onGetListOrgs = (e) => {\r\n e.preventDefault();\r\n setOrgs([]);\r\n setSelOrgs([]);\r\n setIsNotdata(false);\r\n const loadList = async () => {\r\n let ret = await props.loadListOrgData({\r\n year, kper, kraz: krazSrc, kobl, kraion, kf, isAllRaions: tobj === 2 ? true : false\r\n });\r\n if (ret.successed === true) {\r\n setOrgs(ret.orgs);\r\n if (ret.orgs.length === 0) setIsNotdata(true);\r\n } else\r\n alert(ret.error);\r\n }\r\n loadList();\r\n }\r\n const onClickOrg = (korg, check) => {\r\n let sel = cloneDeep(selOrgs);\r\n if (check === true) {\r\n if (sel.filter(f => f == korg).length === 0) {\r\n sel.push(korg);\r\n setSelOrgs(sel);\r\n }\r\n } else {\r\n let ind = sel.map(m => m).indexOf(korg);\r\n if (ind > -1) {\r\n sel.splice(ind, 1);\r\n setSelOrgs(sel);\r\n }\r\n }\r\n }\r\n const getListItem = (m) => {\r\n if (selOrgs.filter(f => f === m.kod).length > 0)\r\n return onClickOrg(evt.target.value, evt.target.checked)}>{m.kod} {getNameLocalize(props.i18n, m)}\r\n else\r\n return onClickOrg(evt.target.value, evt.target.checked)}>{m.kod} {getNameLocalize(props.i18n, m)}\r\n }\r\n const handleConfirmClose = (evt) => {\r\n evt.preventDefault();\r\n setShowConfirm(false);\r\n }\r\n const getSvodParams = () => {\r\n if (selOrgs.length === 0) {\r\n alert(I18n.t(\"selectOrgs2\"));\r\n return null;\r\n }\r\n if (kf === null || kf.length===0) {\r\n alert(I18n.t(\"selectForm\"));\r\n return null;\r\n }\r\n if (krazSrc === kraz) {\r\n alert(I18n.t(\"razSrcEqDest\"));\r\n return null;\r\n }\r\n setIsSvodComplete(false);\r\n return {\r\n year, \r\n kper, \r\n krazSrc,\r\n kraz,\r\n orgs: selOrgs,\r\n kf\r\n };\r\n }\r\n const onSvodFormCheck = async (e) => {\r\n e.preventDefault();\r\n setIsSvodComplete(false);\r\n let param = getSvodParams();\r\n if (param == null) return;\r\n let retData = await props.isExistSvodOrgRaz(param);\r\n if (retData.successed === true) {\r\n if (retData.isExists === true) {\r\n //данные уже есть в базе данных, спросить создать свод?\r\n setShowConfirm(true);\r\n return;\r\n } else {\r\n await props.svodFormOrgRaz3(param);\r\n setShowConfirm(false);\r\n setIsSvodComplete(true);\r\n }\r\n } else {\r\n setIsSvodComplete(true);\r\n }\r\n }\r\n const onSvodForm = async (e) => {\r\n e.preventDefault();\r\n let param = getSvodParams();\r\n await props.svodFormOrgRaz3(param);\r\n setShowConfirm(false);\r\n setIsSvodComplete(true);\r\n }\r\n const filterRaion=(rai, year) => {\r\n if (year == null) return true;\r\n let ye = typeof year === 'string' ? parseInt(year, 10) : year;\r\n let dtBeg = rai.dtBeg == null ? null : new Date(rai.dtBeg);\r\n if (dtBeg != null && dtBeg.getFullYear() > ye) return false;\r\n let dtEnd = rai.dtEnd == null ? null : new Date(rai.dtEnd);\r\n if (dtEnd != null && ye >= dtEnd.getFullYear()) return false;\r\n return true;\r\n }\r\n let isReadOnLy = props.userInfo.user.roles.filter(r => r === 'UserReadData').length > 0;\r\n if (isReadOnLy === true)\r\n return \r\n else\r\n return <>
    \r\n
    \r\n \r\n {':'}\r\n \r\n setParam(\"year\",parseInt(e.target.value, 10))} bsSize=\"small\" style={{ width: \"auto\" }}>\r\n {years.map(it => )}\r\n \r\n \r\n \r\n {':'}\r\n setParam(\"kper\",parseInt(e.target.value, 10))} bsSize='small' style={{ width: \"auto\" }}>\r\n {props.nsi.periods.map(it => )}\r\n \r\n \r\n \r\n {':'}\r\n setParam(\"krazSrc\",parseInt(e.target.value, 10))} bsSize='small' style={{ width: \"auto\" }}>\r\n \r\n \r\n \r\n \r\n {':'}\r\n setParam(\"tobj\", parseInt(e.target.value))} style={{ width: \"auto\" }}>\r\n {props.userInfo.user.accessLevel < 3 ? : ''}\r\n {props.userInfo.user.accessLevel < 4 ? : ''}\r\n \r\n \r\n {tobj > 1 ? \r\n {':'}\r\n \r\n {props.userInfo.user.accessLevel > 1 ?
    {kobl} {props.i18n.locale[0] === 'r' ? props.userInfo.user.nameObl : props.userInfo.user.nameOblKz}
    :\r\n setParam(\"kobl\", e.target.value)} style={{ width: \"auto\" }}>\r\n {props.nsi.allobls.filter(f => filterObl(f)).map(it => )}\r\n }\r\n \r\n
    : \"\"}\r\n {tobj > 2 ? \r\n {':'}\r\n \r\n {props.userInfo.user.accessLevel > 2 ? {kraion} {props.i18n.locale[0] === 'r' ? props.userInfo.user.nameRaion : props.userInfo.user.nameRaionKz} : <>\r\n setParam(\"kraion\", e.target.value)} style={{ width: \"auto\" }} style={{ display: \"inline-block\", width: \"auto\", marginRight: \"5px\" }}>\r\n {props.nsi.allraions.filter(r => r.obl === kobl && filterRaion(r, year)).map(it => )}\r\n \r\n {/* setParam(\"isAllRaions\", e.target.checked)} checked={isAllRaions} inline>*/}\r\n }\r\n \r\n : \"\"}\r\n \r\n {':'}\r\n setParam(\"kf\",e.target.value)} style={{ minWidth: '100%' }}>\r\n {props.nsi.sprform.map(it => )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n {props.svod.isLoading === true ?
    {I18n.t('wait')}{' '}
    : ''}\r\n {isNotdata === true ? : \"\"}\r\n {orgs.length > 0 ?
    \r\n
    \r\n {orgs.map(m => getListItem(m))}\r\n \r\n {':'}\r\n setKraz(parseInt(e.target.value, 10))} bsSize='small' style={{ width: \"auto\" }}>\r\n \r\n \r\n \r\n {isSvodComplete === true && props.svod.statusSvod != null && props.svod.statusSvod.successed === true ? \r\n \r\n \r\n \r\n : ''}\r\n {isSvodComplete === true && props.svod.statusSvod != null && props.svod.statusSvod.error != null ? \r\n \r\n {props.svod.statusSvod.error}\r\n \r\n : ''}\r\n \r\n \r\n \r\n \r\n \r\n
    : \"\"}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n}\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators({ ...actionCreatorsNsi, ...actionCreatorsSvod }, dispatch)\r\n)(EditFormOrgRaz);","import React from 'react';\r\nimport { Button, Modal, Alert } from 'react-bootstrap';\r\nimport { Translate } from 'react-redux-i18n';\r\nimport { btnsMsgBox } from '../Constants';\r\n\r\n\r\nexport default function MessageBox(props) {\r\n const handleClose = (tpBtn) => {\r\n props.close(tpBtn);\r\n }\r\n return handleClose(btnsMsgBox.Cancel)}\r\n backdrop=\"static\"\r\n keyboard={false}\r\n aria-labelledby={`add-message-box-sizes-title-${props.size != null ? props.size : \"lg\"}`}\r\n >\r\n \r\n {props.titleMsg}\r\n \r\n \r\n {props.warningHtml!=null?

    :\"\"}\r\n

    {props.message}

    \r\n
    \r\n \r\n {props.buttons & btnsMsgBox.OK ? : ''}\r\n {props.buttons & btnsMsgBox.Yes ? : ''}\r\n {props.buttons & btnsMsgBox.No ? : ''}\r\n {props.buttons & btnsMsgBox.Retry ? : ''}\r\n {props.buttons & btnsMsgBox.Cancel ? : ''}\r\n {props.buttons & btnsMsgBox.Request ? : ''}\r\n {props.buttons & btnsMsgBox.Submit ? : ''}\r\n \r\n \r\n}","import React, { Component } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport { Button, Col, FormGroup, FormControl, ControlLabel, Form, Row, Alert } from 'react-bootstrap';\r\n\r\nimport { actionCreators as actionCreatorsSvod } from '../../store/Svod';\r\nimport { actionCreators as actionCreatorsNsi } from '../../store/Nsi';\r\nimport SelectMultiObjects from '../common/SelectMultiObjects';\r\nimport SelectMultiForms from '../common/SelectMultiForms';\r\n\r\n\r\nimport { getNameLocalize, btnsMsgBox } from '../Constants';\r\nimport FilterRazOptions from '../common/FilterRazOptions';\r\nimport MessageBox from '../common/MessageBox';\r\n\r\nclass Copy12MonthToYear extends Component {\r\n constructor(props) {\r\n super(props);\r\n let nowYear = parseInt(new Date().getFullYear(), 10);//-1;\r\n this.state = {\r\n year: props.year !== undefined ? props.year : nowYear-1,\r\n kraz: 1,//this.props.userInfo.user.accessLevel !== 4 ? 1 : 3, //разрез\r\n org:{ kod: props.userInfo.user.kodOrg, nameRu: props.userInfo.user.nameOrg, nameKz: props.userInfo.user.nameOrgKz },\r\n kforms: [],\r\n isSvodComplete: false,\r\n showMsg:false\r\n };\r\n //props.getNs('periods');\r\n if (props.nsi.sprraz.length === 0) props.getNs('sprraz');\r\n this.onSvodForm = this.onSvodForm.bind(this)\r\n }\r\n onSvodForm = (e) => {\r\n e.preventDefault();\r\n this.setState({ isSvodComplete: false });\r\n if (this.state.kforms.length === 0) {\r\n alert(I18n.t(\"selectForms\"));\r\n return;\r\n }\r\n this.setState({ showMsg: true });\r\n }\r\n messageAction = (act) => { \r\n switch(act){\r\n case btnsMsgBox.Yes:\r\n this.props.copyData12MonthToYear({\r\n year: this.state.year,\r\n kraz: this.state.kraz,\r\n korg:this.state.org.kod,\r\n kforms: this.state.kforms,\r\n });\r\n this.setState({ isSvodComplete: true });\r\n break;\r\n default:\r\n break;\r\n } \r\n this.setState({ showMsg: false });\r\n }\r\n onSelectKraz = (e) => {\r\n let kraz = parseInt(e.target.value, 10);\r\n this.setState({ kraz });\r\n }\r\n\r\n render() {\r\n let isReadOnLy = this.props.userInfo.user.roles.filter(r => r === 'UserReadData').length > 0;\r\n if (isReadOnLy === true)\r\n return \r\n else\r\n return
    \r\n
    \r\n \r\n \r\n

    \r\n \r\n
    \r\n \r\n {':'}\r\n \r\n \r\n \r\n \r\n \r\n {':'}\r\n {this.state.org.kod} {getNameLocalize(this.props.i18n, this.state.org)}\r\n \r\n this.setState({ kforms })} no47={this.state.tobj === 3} />\r\n \r\n \r\n \r\n \r\n \r\n {this.props.isLoading === true ? \r\n \r\n
    {I18n.t('waitsvod')}{' '}
    \r\n \r\n
    : ''}\r\n {this.state.isSvodComplete === true && this.props.svod.statusSvod != null && this.props.svod.statusSvod.successed === true ? \r\n \r\n \r\n \r\n : ''}\r\n {this.state.isSvodComplete === true && this.props.svod.statusSvod != null && this.props.svod.statusSvod.error != null ? \r\n \r\n {this.props.svod.statusSvod.error}\r\n \r\n : ''}\r\n this.messageAction(action)} />\r\n ;\r\n }\r\n}\r\n\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators({ ...actionCreatorsNsi, ...actionCreatorsSvod }, dispatch)\r\n)(Copy12MonthToYear);","import React, { Component } from 'react';\r\nimport { ListGroupItem } from 'react-bootstrap';\r\n//import './UserItemList.css';\r\n\r\nexport class ContrItemlist extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.selectClick = this.selectClick.bind(this);\r\n //this.deleteOnClick = this.deleteOnClick.bind(this);\r\n }\r\n selectClick() {\r\n this.props.selectControl(this.props.control);\r\n }\r\n /*deleteOnClick(event) {\r\n this.props.deleteUser({ id: this.props.user.id, fio: this.props.user.fio });\r\n }*/\r\n render() {\r\n /*\r\n return (
  • \r\n
    {this.props.user.fio}
  • );\r\n*/\r\n if (this.props.selectedControl === this.props.control) {\r\n return (\r\n {this.props.control.k1} {this.props.control.k2} );\r\n } else {\r\n return (\r\n {this.props.control.k1} {this.props.control.k2});\r\n }\r\n }\r\n}","import React, { Component, Fragment } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport {\r\n Form, Button, FormGroup, FormControl, ControlLabel/*, Panel*/, Modal, Row, Col,\r\n Checkbox, /*Glyphicon,*/ ListGroup/*, ListGroupItem*/\r\n} from 'react-bootstrap';\r\nimport { Translate } from 'react-redux-i18n';\r\n\r\nimport { actionCreators as formulActions } from '../../store/EditControl';\r\nimport { actionCreators as nsiActions } from '../../store/Nsi';\r\nimport { ContrItemlist } from './ContrltemList';\r\nimport { years, getCurrentYear } from '../Constants';\r\n\r\nconst divStyle = {\r\n height: \"600px\",\r\n overflowY: \"auto\"\r\n};\r\nclass EditControl extends Component {\r\n constructor(props, context) {\r\n super(props, context);\r\n let nowYear = getCurrentYear();\r\n this.state = {\r\n kf: '01', isShowEdit: false, isShowConfirmRemove: false, indexRemove: undefined, selectControl: undefined,\r\n isMejform: false,\r\n curCmd: 1, inputErrors: undefined, inputErrors2: undefined, newFormul: { k1: \"\", k2: \"\", p: \"\" },\r\n year: nowYear\r\n };\r\n // this.onSelectFormul = this.onSelectFormul.bind(this);\r\n this.onChangeSelControlFormul = this.onChangeSelControlFormul.bind(this);\r\n this.onChangeSelControlP = this.onChangeSelControlP.bind(this);\r\n this.onChangeIsMejform = this.onChangeIsMejform.bind(this);\r\n this.onAddFormul = this.onAddFormul.bind(this);\r\n this.onChangeNewFormulK1 = this.onChangeNewFormulK1.bind(this);\r\n this.onChangeNewFormulK2 = this.onChangeNewFormulK2.bind(this);\r\n this.onChangeNewFormulP = this.onChangeNewFormulP.bind(this);\r\n this.onAddFormul = this.onAddFormul.bind(this);\r\n this.onSelectYear = this.onSelectYear.bind(this);\r\n props.getNs('sprform');\r\n }\r\n onSelectYear = (e) => {\r\n let year = parseInt(e.target.value, 10);\r\n this.setState({ year });\r\n }\r\n onChangeNewFormulK1 = (e) => {\r\n e.preventDefault();\r\n let newFormul = Object.assign(this.state.newFormul);\r\n newFormul.k1 = e.target.value;\r\n this.setState({ newFormul });\r\n }\r\n onChangeNewFormulK2 = (e) => {\r\n e.preventDefault();\r\n let newFormul = Object.assign(this.state.newFormul);\r\n newFormul.k2 = e.target.value;\r\n this.setState({ newFormul });\r\n }\r\n onChangeNewFormulP = (e) => {\r\n e.preventDefault();\r\n let newFormul = Object.assign(this.state.newFormul);\r\n newFormul.p = e.target.checked ? \"g\" : \"\";\r\n this.setState({ newFormul });\r\n }\r\n onAddFormul = async (e) => {\r\n e.preventDefault();\r\n this.setState({ inputErrors2: undefined });\r\n let inputErrors = [];\r\n if (this.state.newFormul.k1 === undefined || this.state.newFormul.k1 === '')\r\n inputErrors.push('Введите код формулы');\r\n if (this.state.newFormul.k2 === undefined || this.state.newFormul.k2 === '')\r\n inputErrors.push('Введите формулу');\r\n if (inputErrors.length > 0) {\r\n this.setState({ inputErrors2: inputErrors });\r\n return;\r\n }\r\n let status = await this.props.AddFormul({ ...this.state.newFormul, kform: this.state.kf, year: this.state.year });\r\n if (status.successed === false) {\r\n inputErrors.push(status.error);\r\n this.setState({ inputErrors2: inputErrors });\r\n }\r\n }\r\n onSelectForm = (e) => {\r\n let kf = e.target.value;\r\n this.setState({ kf });\r\n }\r\n handleSelFormSubmit = (e) => {\r\n e.preventDefault();\r\n this.props.getFormul(this.state.year, this.state.kf, this.state.isMejform);\r\n }\r\n clickAdd = (e) => {\r\n e.preventDefault();\r\n //this.setState({ selectControl: { uid: undefined, lexpr: '', rexpr: '', fu: 1 }, isShowEdit: true, curCmd: 1 });\r\n }\r\n clickEdit = (e) => {\r\n e.preventDefault();\r\n let ind = parseInt(e.target.id, 10);\r\n let frml = this.props.editFormul.controlData[ind];\r\n this.setState({ selectControl: { uid: frml.uid, lexpr: frml.lexpr, rexpr: frml.rexpr, fu: frml.fu }, isShowEdit: true, curCmd: 2 });\r\n }\r\n clickRemove = (e) => {\r\n e.preventDefault();\r\n this.setState({ isShowConfirmRemove: true, indexRemove: parseInt(e.target.id, 10) });\r\n }\r\n hideConfirmRemove = () => {\r\n this.setState({ isShowConfirmRemove: true, indexRemove: undefined });\r\n }\r\n renderConfirmDelete = () => {\r\n if (this.state.indexRemove === undefined)\r\n return undefined;\r\n let frml = this.props.editFormul.controlData[this.state.indexRemove];\r\n return (
    \r\n \r\n Удалить формулу контроля\r\n \r\n \r\n

    Вы действительно хотите удалить формулу контроля:
    {frml.lexpr} {this.getFunc(frml.fu)} {frml.rexpr}?

    \r\n
    \r\n \r\n \r\n \r\n
    );\r\n }\r\n /*\r\n onSelectFormul = (e) => {\r\n e.preventDefault();\r\n let ind = parseInt(e.target.id, 10);\r\n let frml = this.props.editFormul.controlData[ind];\r\n this.setState({ selectControl: { k1: frml.k1, k2: frml.k2, p: frml.p }, isShowEdit: true, curCmd: 2 });\r\n }\r\n */\r\n onChangeSelControlFormul = (e) => {\r\n let selectControl = Object.assign(this.state.selectControl);\r\n selectControl.k2 = e.target.value;\r\n this.setState(selectControl)\r\n this.props.UpdateFormul({\r\n k1: this.state.selectControl.k1,\r\n k2: selectControl.k2,\r\n p: this.state.selectControl.p,\r\n year: this.state.year\r\n });\r\n }\r\n onChangeSelControlP = (e) => {\r\n let selectControl = Object.assign(this.state.selectControl);\r\n selectControl.p = e.target.checked ? \"g\" : \"\";\r\n this.setState(selectControl)\r\n this.props.UpdateFormul({\r\n k1: this.state.selectControl.k1,\r\n k2: this.state.selectControl.k2,\r\n p: selectControl.p,\r\n year: this.state.year\r\n });\r\n }\r\n onChangeIsMejform = (e) => {\r\n this.setState({ isMejform: e.target.checked })\r\n }\r\n editFormul = () => {\r\n if (this.state.selectControl === undefined) {\r\n return '';\r\n }\r\n return (
    \r\n \r\n Формула контроля: {this.state.selectControl.k1}
    \r\n \r\n
    \r\n {/*Формула для межгодового контроля*/}\r\n
    );\r\n }// \r\n renderTableControl = () => {\r\n let formuls = this.props.editFormul.controlData;\r\n if (formuls === undefined || formuls.length === 0)\r\n return undefined;\r\n var title;\r\n if (this.state.isMejform) {\r\n title = \"Межформенный контроль\";\r\n } else {\r\n let form = this.props.nsi.sprform.filter(f => f.kf === this.state.kf)[0]\r\n title = `Формулы контроля форма: ${form.kf} ${form.nameRu}`;\r\n }\r\n //
    \r\n return (\r\n \r\n \r\n

    {title}

    \r\n \r\n
    \r\n \r\n {this.renderStatusUpdate()}{this.renderStatusRemove()}\r\n \r\n \r\n \r\n
    \r\n \r\n {formuls.map((f) => this.setState({ selectControl: { k1: ctrl.k1, k2: ctrl.k2, p: ctrl.p } })}>)}\r\n \r\n
    \r\n \r\n \r\n {this.editFormul()}\r\n \r\n
    \r\n \r\n Добавить формулу контроля:\r\n
    \r\n \r\n Формула контроля:
    \r\n
    \r\n \r\n \r\n \r\n {/*\r\n Формула для межгодового контроля\r\n */}\r\n {this.state.inputErrors2 !== undefined ?
      {this.state.inputErrors2.map((er, i) =>
        {er}
      )}
    : undefined}\r\n \r\n
    \r\n
    \r\n
    );\r\n }\r\n /*\r\n \r\n \r\n {title}\r\n \r\n \r\n {this.renderStatusUpdate()}{this.renderStatusRemove()}\r\n \r\n \r\n
    \r\n \r\n {formuls.map((f) => this.setState({ selectControl: { k1: ctrl.k1, k2:ctrl.k2, p: ctrl.p }})}>)}\r\n \r\n
    \r\n \r\n \r\n {this.editFormul()}\r\n \r\n
    \r\n
    \r\n
    \r\n */\r\n getFunc = (fu) => {\r\n switch (fu) {\r\n case 1:\r\n return '=';\r\n case 2:\r\n return '<';\r\n case 3:\r\n return '>';\r\n case 4:\r\n return '<=';\r\n case 5:\r\n return '>=';\r\n default:\r\n return '';\r\n }\r\n }\r\n hideDialogEdit = () => {\r\n this.setState({ isShowEdit: false, selectControl: undefined });\r\n }\r\n handleFormulSubmit = (e) => {\r\n e.preventDefault();\r\n let inputErrors = [];\r\n if (this.state.selectControl.lexpr === undefined || this.state.selectControl.lexpr === '')\r\n inputErrors.push('Введите левое выражение');\r\n if (this.state.selectControl.rexpr === undefined || this.state.selectControl.rexpr === '')\r\n inputErrors.push('Введите правое выражение');\r\n if (inputErrors.length > 0) {\r\n this.setState({ inputErrors });\r\n return;\r\n }\r\n if (this.state.curCmd === 1)\r\n this.props.AddFormul({ ...this.state.selectControl, kform: this.state.kf, year: this.state.year });\r\n else\r\n this.props.UpdateFormul({ ...this.state.selectControl, kform: this.state.kf, year: this.state.year });\r\n this.setState({ isShowEdit: false, selectControl: undefined, curCmd: 1, inputErrors: undefined });\r\n }\r\n handleRemoveSubmit = (e) => {\r\n e.preventDefault();\r\n let frml = this.props.editFormul.controlData[this.state.indexRemove];\r\n this.props.RemoveFormul({ uid: frml.uid, index: this.state.indexRemove, year: this.state.year });\r\n this.setState({ indexRemove: undefined });\r\n }\r\n changeRexpr = (e) => {\r\n let selectControl = Object.assign(this.state.selectControl);\r\n selectControl.rexpr = e.target.value;\r\n this.setState(selectControl)\r\n }\r\n changeLexpr = (e) => {\r\n let selectControl = Object.assign(this.state.selectControl);\r\n selectControl.lexpr = e.target.value;\r\n this.setState(selectControl)\r\n }\r\n changeFu = (e) => {\r\n let selectControl = Object.assign(this.state.selectControl);\r\n selectControl.fu = parseInt(e.target.value, 10);\r\n this.setState(selectControl)\r\n }\r\n renderModalEdit = () => {\r\n if (this.state.selectControl === undefined)\r\n return '';\r\n return (
    \r\n \r\n {this.state.curCmd === 1 ? 'Добавить' : 'Редактировать'} формулу контроля\r\n \r\n \r\n \r\n Левое выражение\r\n \r\n \r\n \r\n Функция\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Правое выражение\r\n \r\n \r\n {this.state.inputErrors !== undefined ?
      {this.state.inputErrors.map((er, i) =>
        {er}
      )}
    : undefined}\r\n
    \r\n \r\n \r\n \r\n
    );\r\n }\r\n renderStatusUpdate = () => {\r\n if (this.props.editFormul.statusUpdate === undefined) return undefined;\r\n if (this.props.editFormul.statusUpdate.successed === true) {\r\n if (this.props.editFormul.statusUpdate.isAdd === true)\r\n return (
    Формула контроля добавлена!
    )\r\n else\r\n return (
    Формула контроля обновлена!
    )\r\n } else {\r\n return (
    {this.props.editFormul.statusUpdate.error}
    )\r\n }\r\n }\r\n renderStatusRemove = () => {\r\n //statusRemove\r\n if (this.props.editFormul.statusRemove === undefined) return undefined;\r\n if (this.props.editFormul.statusRemove.successed === true) {\r\n return (
    Формула контроля удалена!
    )\r\n } else {\r\n return (
    {this.props.editFormul.statusRemove.error}
    )\r\n }\r\n }\r\n render() {\r\n return (

    \r\n
    \r\n \r\n \r\n \r\n {':'}\r\n \r\n \r\n {years.map(it => )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {this.props.nsi.sprform.map(it => )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n Межформенный контроль\r\n \r\n \r\n \r\n \r\n
    \r\n {this.renderTableControl()}\r\n {this.renderConfirmDelete()}\r\n
    );\r\n }\r\n}\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators({ ...formulActions, ...nsiActions }, dispatch)\r\n)(EditControl);","import React, { Component,Fragment } from 'react';\r\nimport { Button,/* Col, FormGroup, FormControl, ControlLabel, Form,*/ Table, ButtonGroup } from 'react-bootstrap';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport { ExportCSV } from '../Work/ExportCSV';\r\nimport './ControlResultTable.css';\r\n\r\nexport default class ControlResultTable extends Component {\r\n excelDataCSV = () => {\r\n let dataCSV = [];\r\n for (var ri in this.props.control.controlResult.protocol) {\r\n let r = this.props.control.controlResult.protocol[ri];\r\n dataCSV.push({\r\n \"№ условия\": r.nusl,\r\n \"Код формулы\": r.p,\r\n \"Ошибка\": `${r.ider != null ? r.ider:\"\"} ${r.zamech}`,\r\n \"Формула контроля\": r.formul,\r\n \"№ строки\": r.nstr,\r\n \"№ графы\": r.ngr,\r\n \"Левая часть выражения\": r.leftch,\r\n \"Правая часть выражения\": r.rightch,\r\n \"Результат сравнения\": r.result\r\n });\r\n }\r\n return dataCSV;\r\n }\r\n fileName = () => {\r\n let d = this.props.control.controlResult;\r\n return `c_${d.typeContr}_${d.raz}_${d.year}_${d.period}_${d.tobj}_${d.kobj}_${d.kf}`;\r\n }\r\n printData = (e) => {\r\n e.preventDefault();\r\n window.print();\r\n }\r\n render() {\r\n return \r\n {this.props.control.isLoading ?
    {I18n.t('wait')}{' '}
    : ''}\r\n {renderTableResult(this.props.control.controlResult, this.excelDataCSV, this.fileName, this.printData)}\r\n
    ;\r\n }\r\n}\r\nfunction renderTableResult(controlResult, excelDataCSV, fileName, printData) {\r\n if (controlResult !== undefined && controlResult.protocol !== undefined) {\r\n if (controlResult.notExistData) {\r\n return
    ;\r\n }\r\n return (\r\n \r\n \r\n \r\n \r\n
    Ведомость контроля и анализа отчета по форме {controlResult.kf} {controlResult.typeContrName}
    \r\n
    за {controlResult.periodName}
    \r\n
    Объект {controlResult.objName}
    \r\n
    Разрез {controlResult.razName}
    \r\n
    Дата и время контроля {controlResult.dtEval}
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {controlResult.protocol.map((r,i) => )}\r\n
    № условияКод формулыОшибкаФормула контроля№ строки№ графыЛевая часть выраженияПравая часть выраженияРезультат сравнения
    {r.nusl}{r.p}{r.ider} {r.zamech}{r.formul === 'noerror' ? {I18n.t('noerror')} : r.formul}{r.nstr}{r.ngr}{r.leftch}{r.rightch}{r.result}
    );\r\n }\r\n return '';\r\n}","import React, { Component, Fragment } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { Translate} from 'react-redux-i18n';\r\nimport { Button, Col, FormGroup, FormControl, ControlLabel, Form} from 'react-bootstrap';\r\n\r\nimport { actionCreators as actionCreatorsControl } from '../../store/ControlForm';\r\nimport { actionCreators as actionCreatorsNsi } from '../../store/Nsi';\r\nimport SelectObject from '../common/SelectObject';\r\nimport ControlResultTable from './ControlResultTable'\r\n\r\n\r\nimport { years, getCurrentYear } from '../Constants';\r\nimport FilterRazOptions from '../common/FilterRazOptions';\r\n\r\nclass ControlForm extends Component {\r\n constructor(props) {\r\n super(props);\r\n let nowYear = getCurrentYear();\r\n let pathname = this.props.location.pathname, typeContr;\r\n if (pathname === '/controlInYear') {\r\n typeContr = { kod: 3, name: \"Межгодовой контроль\" };//Межгодовой контроль\r\n }else if (pathname === '/controlAllForm'){\r\n typeContr = { kod: 2, name: \"Межформенный контроль\" };//Межформенный контроль\r\n } else {\r\n typeContr = { kod: 1, name:\"Внутриформенный контроль\" };//Внутриформенный контроль\r\n }\r\n this.state = {\r\n year: props.year !== undefined ? props.year : nowYear,\r\n kper: 4,//период\r\n kraz: 1,//this.props.userInfo.user.accessLevel !== 4?1:3, //разрез\r\n form: { kf: \"01\", nameRu: \"Численность постоянного населения РК\" },\r\n tobj: props.userInfo.user.accessLevel, // тип обьекта 1 – РК; 2 – область; 3 - район; 4 - организация (доступ зависит от пользователя)\r\n obl: undefined,\r\n raion: undefined,\r\n org: undefined,\r\n typeContr,\r\n };\r\n if (props.nsi.sprform.length === 0) {\r\n props.getNs('sprform');\r\n }\r\n if (props.nsi.periods.length === 0) {\r\n props.getNs('periods');\r\n }\r\n if (props.nsi.sprraz.length === 0) {\r\n props.getNs('sprraz');\r\n }\r\n this.onControlForm = this.onControlForm.bind(this)\r\n this.onSelectForm = this.onSelectForm.bind(this);\r\n }\r\n onControlForm = (e) => {\r\n e.preventDefault();\r\n let kobj = null;\r\n switch (this.state.tobj) {\r\n case 1:\r\n kobj = \"00\";\r\n break;\r\n case 2:\r\n kobj = this.state.obl.kobl;\r\n break;\r\n case 3:\r\n kobj = this.state.raion.kraion;\r\n break;\r\n case 4:\r\n kobj = this.state.org.korg;\r\n break;\r\n default:\r\n }\r\n this.props.controlForm({\r\n year: this.state.year,\r\n period: this.state.kper,\r\n raz: this.state.kraz,\r\n tobj: this.state.tobj,\r\n kobj,\r\n kf: this.state.form.kf,\r\n typeContr: this.state.typeContr.kod\r\n });\r\n }\r\n onSelectYear = (e) => {\r\n let year = parseInt(e.target.value, 10);\r\n this.setState({ year });\r\n }\r\n onSelectKper = (e) => {\r\n let kper = parseInt(e.target.value, 10);\r\n this.setState({ kper });\r\n }\r\n onSelectKraz = (e) => {\r\n let kraz = parseInt(e.target.value, 10);\r\n this.setState({ kraz });\r\n }\r\n onSelectForm(e) {\r\n let kf = e.target.value;\r\n let form = this.props.nsi.sprform.filter(spr => spr.kf === kf)[0];\r\n this.setState({ form });\r\n }\r\n render() {\r\n let isReadOnLy = this.props.userInfo.user.roles.filter(r => r === 'UserReadData').length > 0;\r\n if (isReadOnLy === true)\r\n return \r\n else\r\n return
    \r\n
    {this.state.typeContr.name}
    \r\n \r\n {':'}\r\n \r\n \r\n {years.filter(y=>y>2007).map(it => )}\r\n \r\n \r\n \r\n {':'}\r\n \r\n {this.props.nsi.periods.map(it => )}\r\n \r\n \r\n \r\n {':'}\r\n \r\n \r\n \r\n \r\n this.setState({ tobj })}\r\n setObl={(obl) => this.setState({ obl })}\r\n setRaion={(raion) => this.setState({ raion })}\r\n setOrg={(org) => this.setState({ org })} org={this.state.org}\r\n year={this.state.year} />\r\n {this.state.typeContr.kod !== 2 ?\r\n \r\n {':'}\r\n \r\n {this.props.nsi.sprform.map(it => )}\r\n \r\n : ''}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    ;\r\n }\r\n}\r\n\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators({ ...actionCreatorsNsi, ...actionCreatorsControl }, dispatch)\r\n)(ControlForm);","import React, { Component, Fragment } from 'react';\r\nimport { Panel, Button, Form, Row, Col, FormGroup, ControlLabel, FormControl } from 'react-bootstrap';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport * as FileSaver from 'file-saver';\r\n\r\nimport { actionCreators } from '../../store/Nsi';\r\nimport SelectObject from '../common/SelectObject';\r\nimport FilterRazOptions from '../common/FilterRazOptions';\r\nimport { getNameLocalize, years, getCurrentYear } from '../Constants';\r\n\r\nclass ToExcel extends Component {\r\n constructor(props) {\r\n super(props);\r\n let nowYear = getCurrentYear();\r\n this.state = {\r\n year: nowYear,//props.year !== undefined ? props.year : nowYear,\r\n kper: 4,//период\r\n kraz: 1,//this.props.userInfo.user.accessLevel !== 4 ? 1 : 3, //разрез\r\n tobj: props.userInfo.user.accessLevel, // тип обьекта 1 – РК; 2 – область; 3 - район; 4 - организация (доступ зависит от пользователя)\r\n obl: undefined,\r\n raion: undefined,\r\n org: undefined,\r\n form: { kf: \"01\", nameRu: \"Численность постоянного населения\", nameKz: \"Қазақстан Республикасының тұрақты тұрғындары\" },\r\n isLoading: false\r\n }\r\n this.onCreateFileExcel = this.onCreateFileExcel.bind(this);\r\n this.onSelectForm = this.onSelectForm.bind(this);\r\n if (props.nsi.sprform.length === 0) {\r\n props.getNs('sprform');\r\n }\r\n if (props.nsi.periods.length === 0) {\r\n props.getNs('periods');\r\n }\r\n if (props.nsi.sprraz.length === 0) {\r\n props.getNs('sprraz');\r\n }\r\n }\r\n async onCreateFileExcel() {\r\n // alert(\"generate excel\");\r\n var kobj = \"\";\r\n switch (this.state.tobj) {\r\n case 1:\r\n kobj = \"0\";\r\n break;\r\n case 2:\r\n kobj = this.state.obl.kobl;\r\n break;\r\n case 3:\r\n kobj = this.state.raion.kraion;\r\n break;\r\n case 4:\r\n kobj = this.state.org.korg;\r\n break;\r\n default:\r\n kobj = \"\";\r\n }\r\n this.setState({ isLoading: true });\r\n let absoluteUrl = `${document.location.protocol}//${document.location.host}/generate/Excel/${this.state.year}/${this.state.kper}/${this.state.kraz}/${this.state.tobj}/${kobj}/${this.state.form.kf}/${this.props.i18n.locale.substr(0,2)}`;\r\n let fileName = `${this.state.year}_${this.state.kper}_${this.state.kraz}_${this.state.tobj}_${kobj}_${this.state.form.kf}.xlsx`;\r\n var token = this.props.userInfo.user.token;\r\n const response = await fetch(absoluteUrl, {\r\n credentials: 'include',\r\n method: 'GET',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const blob = await response.blob();\r\n FileSaver.saveAs(blob, fileName);\r\n this.setState({ isLoading: false });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n }\r\n onSelectForm(e) {\r\n let kf = e.target.value;\r\n let form = this.props.nsi.sprform.filter(spr => spr.kf === kf)[0];\r\n this.setState({ form });\r\n }\r\n onSelectYear = (e) => {\r\n let year = parseInt(e.target.value, 10);\r\n this.setState({ year });\r\n }\r\n onSelectKper = (e) => {\r\n let kper = parseInt(e.target.value, 10);\r\n this.setState({ kper });\r\n }\r\n onSelectKraz = (e) => {\r\n let kraz = parseInt(e.target.value, 10);\r\n this.setState({ kraz });\r\n }\r\n render() {\r\n return (
    \r\n
    \r\n \r\n {':'}\r\n \r\n \r\n {years.filter(f => f > 2016).map(it => )}\r\n \r\n \r\n \r\n {':'}\r\n \r\n {this.props.nsi.periods.map(it => )}\r\n \r\n \r\n \r\n {':'}\r\n \r\n \r\n \r\n \r\n \r\n {':'}\r\n \r\n {this.props.nsi.sprform/*.filter(it => it.kf !== '01')*/.map(it => )}\r\n \r\n \r\n this.setState({ tobj })}\r\n setObl={(obl) => this.setState({ obl })}\r\n setRaion={(raion) => this.setState({ raion })}\r\n setOrg={(org) => this.setState({ org })} disabled={this.state.isLoading === true}\r\n year={this.state.year}\r\n />\r\n \r\n \r\n \r\n {this.state.isLoading ?
    {I18n.t('wait')}{' '}
    : ''}\r\n \r\n
    \r\n \r\n
    );\r\n }\r\n}\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators(actionCreators, dispatch)\r\n)(ToExcel);","import React, { Component, Fragment } from 'react';\r\nimport { Panel, Button, Form, Row, Col, FormGroup, ControlLabel, FormControl } from 'react-bootstrap';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\n\r\nimport { actionCreators } from '../../store/Nsi';\r\nimport SelectObject from '../common/SelectObject';\r\n\r\n\r\nimport { years, getCurrentYear, getFirstRaz, getFirstFormTable, getRazItems, filterForms } from '../Constants';\r\n//import FilterRazOptions from '../common/FilterRazOptions';\r\n\r\nclass FromExcel extends Component {\r\n constructor(props) {\r\n super(props);\r\n let nowYear = getCurrentYear();\r\n let kper = 4;\r\n let raz = getFirstRaz(kper, props);\r\n this.state = {\r\n year: nowYear,//props.year !== undefined ? props.year : nowYear,\r\n kper,//период\r\n kraz: raz != null ? raz : 1,//разрез\r\n tobj: props.userInfo.user.accessLevel, // тип обьекта 1 – РК; 2 – область; 3 - район; 4 - организация (доступ зависит от пользователя)\r\n obl: undefined,\r\n raion: undefined,\r\n org: undefined,\r\n form: kper === 4 ? props.userInfo.user.firstFormTable.formGod : props.userInfo.user.firstFormTable.formMes,//{ kf: \"01\", nameRu: \"Численность постоянного населения\" },\r\n isLoading: false,\r\n isSuccess: null,\r\n error: null\r\n }\r\n this.onUploadFileExcel = this.onUploadFileExcel.bind(this);\r\n this.onSelectForm = this.onSelectForm.bind(this);\r\n if (props.nsi.sprraz.length === 0) props.getNs('sprraz');\r\n if (props.nsi.sprform.length === 0) props.getNs('sprform');\r\n if (props.nsi.periods.length === 0) props.getNs('periods');\r\n }\r\n async onUploadFileExcel(e) {\r\n e.preventDefault();\r\n this.setState({ isSuccess: null, error: null });\r\n var kobj = \"\";\r\n switch (this.state.tobj) {\r\n case 1:\r\n kobj = \"00\";\r\n break;\r\n case 2:\r\n kobj = this.state.obl.kobl;\r\n break;\r\n case 3:\r\n kobj = this.state.raion.kraion;\r\n break;\r\n case 4:\r\n kobj = this.state.org.korg;\r\n break;\r\n default:\r\n kobj = \"\";\r\n }\r\n //let absoluteUrl = `${document.location.protocol}//${document.location.host}/UploadExcel/${this.state.year}/${this.state.kper}/${this.state.kraz}/${this.state.tobj}/${kobj}/${this.state.form.kf}`;\r\n let absoluteUrl = `${document.location.protocol}//${document.location.host}/UploadExcel`;\r\n let input = document.getElementById('fileinput');\r\n if (input.files.length === 0) {\r\n this.setState({\r\n error: I18n.t('selectExcelFile')\r\n });\r\n return;\r\n }\r\n //let formFile = document.getElementById('formFile');\r\n let formData = new FormData();\r\n // let formData = new FormData(formFile);\r\n formData.append(\"year\", this.state.year);\r\n formData.append(\"kper\", this.state.kper);\r\n formData.append(\"kraz\", this.state.kraz);\r\n formData.append(\"tobj\", this.state.tobj);\r\n formData.append(\"kobj\", kobj);\r\n formData.append(\"kf\", this.state.form.kf);\r\n formData.append(\"fileExcel\", input.files[0]);\r\n var token = this.props.userInfo.user.token;\r\n this.setState({ isLoading: true });\r\n fetch(`${absoluteUrl}?year=${this.state.year}&kper=${this.state.kper}&kraz=${this.state.kraz}&tobj=${this.state.tobj}&kobj=${this.state.kobj}&kf=${this.state.kf}`, {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`,\r\n //'Content-Type': undefined\r\n //\"Content-Type\": \"multipart/form-data\"\r\n //\"Content-Type\":\"application/x-www-form-urlencoded\"\r\n },\r\n body: formData\r\n }).then(response => response.json()).then(\r\n result => {\r\n this.setState({ isLoading: false, isSuccess: result.successed, error: result.successed === true ? null : result.error });\r\n }\r\n ).catch(\r\n error => {\r\n console.log(error);\r\n alert(error);\r\n this.setState({ isLoading: false, isSuccess: false, error });\r\n }\r\n );\r\n }\r\n onSelectForm(e) {\r\n let kf = e.target.value;\r\n let form = this.props.nsi.sprform.filter(spr => spr.kf === kf)[0];\r\n this.setState({ form });\r\n }\r\n onSelectYear = (e) => {\r\n let year = parseInt(e.target.value, 10);\r\n this.setState({ year });\r\n }\r\n onSelectKper = (e) => {\r\n let kper = parseInt(e.target.value, 10);\r\n let kraz = getFirstRaz(kper, this.props);\r\n let { form, table } = getFirstFormTable(kper, this.props);\r\n if (kraz == null) {\r\n if (form == null) {\r\n this.setState({ kper });\r\n } else {\r\n this.setState({ kper, form });\r\n }\r\n } else {\r\n if (form == null) {\r\n this.setState({ kper, kraz });\r\n } else {\r\n this.setState({ kper, kraz, form });\r\n }\r\n }\r\n }\r\n onSelectKraz = (e) => {\r\n let kraz = parseInt(e.target.value, 10);\r\n this.setState({ kraz });\r\n }\r\n render() {\r\n let isReadOnLy = this.props.userInfo.user.roles.filter(r => r === 'UserReadData').length > 0;\r\n if (isReadOnLy === true)\r\n return \r\n else\r\n return (\r\n
    \r\n \r\n {':'}\r\n \r\n \r\n {years.filter(f=>f>2016).map(it => )}\r\n \r\n \r\n \r\n {':'}\r\n \r\n {this.props.nsi.periods.map(it => )}\r\n \r\n \r\n \r\n {':'}\r\n \r\n {getRazItems(this.props, this.state.kper)}\r\n \r\n \r\n \r\n {':'}\r\n \r\n {this.props.nsi.sprform.filter(f => filterForms(this.props.userInfo.user.accessForm, f.kf, this.state.kper)).map(it => )}\r\n \r\n \r\n this.setState({ tobj })}\r\n setObl={(obl) => this.setState({ obl })}\r\n setRaion={(raion) => this.setState({ raion })}\r\n setOrg={(org) => this.setState({ org })} disabled={this.state.isLoading === true}\r\n year={this.state.year}\r\n />\r\n \r\n \r\n Требования к файлу Excel\r\n \r\n \r\n
    \r\n \r\n {':'}\r\n \r\n \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n {this.state.isLoading ?
    {I18n.t('wait')}{' '}
    : ''}\r\n {this.state.isSuccess === true ?
    : ''}\r\n {this.state.error != null ?
    {this.state.error}
    : ''}\r\n
    );\r\n }\r\n}\r\n/* \r\n * {this.state.error != null?
    {this.state.error}
    : ''}\r\n * */\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators(actionCreators, dispatch)\r\n)(FromExcel);","import React, { Component, Fragment } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport * as FileSaver from 'file-saver';\r\nimport { Row, Col, FormGroup, FormControl, ControlLabel, Form, Button, ButtonGroup, Panel } from 'react-bootstrap';\r\n\r\nimport { actionCreators as actionCreatorsWork } from '../../store/Work';\r\nimport { actionCreators as actionCreatorsNsi } from '../../store/Nsi';\r\nimport SelectObject from '../common/SelectObject';\r\nimport './InputInfor.css';\r\n\r\nimport { years, getNameLocalize, getCurrentYear } from '../Constants';\r\nimport FilterRazOptions from '../common/FilterRazOptions';\r\n\r\nclass InputInfor extends Component {\r\n constructor(props) {\r\n super(props);\r\n let nowYear = getCurrentYear();\r\n this.state = {\r\n year: props.year !== undefined ? props.year : nowYear,\r\n kper: 4,//период\r\n kraz: 1,//this.props.userInfo.user.accessLevel !== 4 ? 1 : 3, //разрез\r\n tobj: props.userInfo.user.accessLevel, // тип обьекта 1 – РК; 2 – область; 3 - район; 4 - организация (доступ зависит от пользователя)\r\n obl: undefined,\r\n raion: undefined,\r\n org: undefined,\r\n strObj: 0, //0- районы, 1- организации, построчку показывать в разрезе организаций, иначе в разрезе районов, только для tobj=2 - область \r\n isShowParams: true,\r\n kfFiltr: \"\"\r\n };\r\n this.showInfoData = this.showInfoData.bind(this);\r\n this.showKf = this.showKf.bind(this);\r\n this.printExcel = this.printExcel.bind(this);\r\n this.filtrKf = this.filtrKf.bind(this);\r\n if (props.nsi.sprform.length === 0) {\r\n props.getNs('sprform');\r\n }\r\n if (props.nsi.periods.length === 0) {\r\n props.getNs('periods');\r\n }\r\n if (props.nsi.sprraz.length === 0) {\r\n props.getNs('sprraz');\r\n }\r\n }\r\n\r\n onSelectYear = (e) => {\r\n let year = parseInt(e.target.value, 10);\r\n this.setState({ year });\r\n }\r\n onSelectKper = (e) => {\r\n let kper = parseInt(e.target.value, 10);\r\n this.setState({ kper });\r\n }\r\n onSelectKraz = (e) => {\r\n let kraz = parseInt(e.target.value, 10);\r\n this.setState({ kraz });\r\n }\r\n onOpenTable = (e) => {\r\n e.preventDefault();\r\n let kobj = \"\";\r\n switch (this.state.tobj) {\r\n case 1://РК\r\n kobj = \"00\";\r\n break;\r\n case 2://Область\r\n kobj = this.state.obl.kobl;\r\n break;\r\n case 3://Район\r\n kobj = this.state.raion.kraion;\r\n break;\r\n case 4://Организация\r\n kobj = this.state.org.korg;\r\n break;\r\n default:\r\n break;\r\n\r\n }\r\n this.props.getInfoData({\r\n year: this.state.year,\r\n period: this.state.kper,\r\n raz: this.state.kraz,\r\n tobj: this.state.tobj,\r\n kobj,\r\n strObj: this.state.strObj\r\n });\r\n }\r\n getObjectTypeName(tobj) {\r\n switch (tobj) {\r\n //case 1://РК\r\n // return \"Республика:\";\r\n case 2://Область\r\n return `${I18n.t(\"obl\")}:`;\r\n case 3://Район\r\n return `${I18n.t(\"raion\")}:`;\r\n case 4://Организация\r\n return `${I18n.t(\"org\")}:`;\r\n default:\r\n break;\r\n }\r\n return \"\";\r\n }\r\n // \r\n filtrKf(r) {\r\n let kodKf = this.state.kfFiltr;\r\n if (kodKf == null || kodKf === \"\" || kodKf === \"all\") return true;\r\n if (r.forms.filter(f => f.kf === kodKf).length === 0) return false;\r\n return true;\r\n }\r\n showInfoData() {\r\n if (this.props.work.dataInfo === undefined) return '';\r\n let dataInfo = this.props.work.dataInfo;\r\n return \r\n \r\n \r\n \r\n \r\n

    \r\n \r\n {dataInfo.namePeriod}\r\n \r\n \r\n {dataInfo.nameRaz}\r\n \r\n \r\n {dataInfo.strCreateDateTime}\r\n \r\n {this.state.strObj === 1 || this.state.tobj === 4 ? \r\n \r\n
    \r\n \r\n \r\n
    \r\n \r\n
    : \"\"}\r\n
    \r\n \r\n \r\n \r\n this.setState({ kfFiltr: evt.target.value })} style={{ minWidth: '100%' }}>\r\n \r\n {this.props.nsi.sprform.map(it => )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n {dataInfo.rows.filter(f => this.filtrKf(f)).map(r => \r\n \r\n {this.getObjectTypeName(r.obj.typeObj)} {r.obj.kod} {getNameLocalize(this.props.i18n, r.obj)}\r\n \r\n \r\n {this.showKf(r)}\r\n \r\n )}\r\n
    ;\r\n }\r\n showKf(r) {\r\n if (r.obj.typeObj === 4/* && this.props.userInfo.user.accessLevel===2 */)\r\n return r.forms.map(f => f.status === 2 ? {f.kf}{' '} : {f.kf}{' '})\r\n else\r\n return r.forms.map(f => {f.kf}{' '})\r\n }\r\n printData = () => {\r\n window.print();\r\n }\r\n printExcel = async () => {\r\n let kobj = \"\";\r\n switch (this.state.tobj) {\r\n case 1://РК\r\n kobj = \"00\";\r\n break;\r\n case 2://Область\r\n kobj = this.state.obl.kobl;\r\n break;\r\n case 3://Район\r\n kobj = this.state.raion.kraion;\r\n break;\r\n case 4://Организация\r\n kobj = this.state.org.korg;\r\n break;\r\n default:\r\n break;\r\n\r\n }\r\n let absoluteUrl = `${document.location.protocol}//${document.location.host}/generate/Excel/InputInfo/${this.state.year}/${this.state.kper}/${this.state.kraz}/${this.state.tobj}/${kobj}/${this.state.strObj}`;\r\n let fileName = `inf_${this.state.year}_${this.state.kper}_${this.state.kraz}_${this.state.tobj}_${kobj}_${this.state.strObj}.xlsx`;\r\n var token = this.props.userInfo.user.token;\r\n const response = await fetch(absoluteUrl, {\r\n credentials: 'include',\r\n method: 'GET',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const blob = await response.blob();\r\n FileSaver.saveAs(blob, fileName);\r\n //this.setState({ isLoading: false });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n }\r\n render() {\r\n return \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n {':'}\r\n \r\n \r\n {years.map(it => )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {':'}\r\n \r\n {this.props.nsi.periods.map(it => )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {':'}\r\n \r\n \r\n \r\n \r\n \r\n this.setState({ tobj, strObj: 0 })}\r\n setObl={(obl) => this.setState({ obl })}\r\n setRaion={(raion) => this.setState({ raion })}\r\n setOrg={(org) => this.setState({ org })}\r\n year={this.state.year}\r\n />\r\n {this.state.tobj === 2 ? \r\n \r\n this.setState({ strObj: parseInt(e.target.value, 10) })}>\r\n {':'}\r\n \r\n      \r\n      \r\n \r\n \r\n \r\n : ''}\r\n {(this.state.tobj === 3 && this.props.userInfo.user.accessLevel === 3) ? \r\n \r\n (e.target.checked === true ? this.setState({ strObj: 2 }) : this.setState({ strObj: 0 }))}>\r\n {':'}\r\n \r\n  \r\n \r\n \r\n \r\n : ''}\r\n \r\n
    \r\n {this.showInfoData()}\r\n
    ;\r\n }\r\n}\r\n// isNotOrg={true}\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators({ ...actionCreatorsNsi, ...actionCreatorsWork }, dispatch)\r\n)(InputInfor);","import React, { Component, Fragment, useState } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport * as FileSaver from 'file-saver';\r\nimport { Row, Col, FormGroup, FormControl, ControlLabel, Form, Button, ButtonGroup, Panel } from 'react-bootstrap';\r\n\r\nimport { actionCreators as actionCreatorsWork } from '../../store/Work';\r\nimport { actionCreators as actionCreatorsNsi } from '../../store/Nsi';\r\nimport SelectObject from '../common/SelectObject';\r\nimport './InputInfor.css';\r\n\r\nimport { years, getNameLocalize, getNameSprLocalize, getCurrentYear } from '../Constants';\r\n\r\n\r\n\r\n\r\nconst InputInforForm = (props) => {\r\n useState(() => {\r\n if (props.nsi.allobls.length === 0) props.getNs('allobls');\r\n if (props.nsi.sprraz.length === 0) props.getNs('sprraz');\r\n if (props.nsi.sprform.length === 0) props.getNs('sprform');\r\n if (props.nsi.periods.length === 0) props.getNs('periods');\r\n if (props.nsi.allraions.length === 0) props.getNs('allraions');\r\n //let year = new Date().getFullYear();\r\n //setYearsCopy([year - 1, year]);\r\n //setSelYear(year - 1);\r\n });\r\n const [year, setYear] = useState(() => getCurrentYear());\r\n const [kper, setKper] = useState(4);\r\n const [kf, setKf] = useState(\"01\");\r\n const [tobj, setTobj] = useState(props.userInfo.user.accessLevel);\r\n const [obl, setObl] = useState();\r\n const [raion, setRaion] = useState();\r\n const [org, setOrg] = useState();\r\n const [strObj, setStrObj] = useState(0);\r\n const [razFiltr, setRazFiltr] = useState(0);\r\n const onOpenTable = (e) => {\r\n e.preventDefault();\r\n let kobj = \"\";\r\n switch (tobj) {\r\n case 1://РК\r\n kobj = \"00\";\r\n break;\r\n case 2://Область\r\n kobj = obl.kobl;\r\n break;\r\n case 3://Район\r\n kobj = raion.kraion;\r\n break;\r\n case 4://Организация\r\n kobj = org.korg;\r\n break;\r\n default:\r\n break;\r\n\r\n }\r\n props.getInfoDataForm({\r\n year: year,\r\n period: kper,\r\n kf: kf,\r\n tobj: tobj,\r\n kobj,\r\n strObj: strObj\r\n });\r\n }\r\n const filtrRaz = (r) => {\r\n if (razFiltr == null || razFiltr === 0) return true;\r\n //if (parseInt(r.kod, 10) != razFiltr) return false;\r\n if (r.razrs.filter(f => f.kraz === razFiltr).length === 0) return false;\r\n return true;\r\n }\r\n const getObjectTypeName= (tobj) => {\r\n switch (tobj) {\r\n //case 1://РК\r\n // return \"Республика:\";\r\n case 2://Область\r\n return `${I18n.t(\"obl\")}:`;\r\n case 3://Район\r\n return `${I18n.t(\"raion\")}:`;\r\n case 4://Организация\r\n return `${I18n.t(\"org\")}:`;\r\n default:\r\n break;\r\n }\r\n return \"\";\r\n }\r\n const showInfoData= ()=> {\r\n if (props.work.dataInfoForm === undefined) return '';\r\n let dataInfo = props.work.dataInfoForm;\r\n return \r\n \r\n \r\n \r\n \r\n

    \r\n \r\n {dataInfo.namePeriod}\r\n \r\n \r\n {dataInfo.nameForm}\r\n \r\n \r\n {dataInfo.strCreateDateTime}\r\n \r\n {strObj === 1 || tobj === 4 ? \r\n \r\n
    \r\n \r\n \r\n
    \r\n \r\n
    : \"\"}\r\n
    \r\n \r\n \r\n \r\n setRazFiltr(parseInt(evt.target.value,10))} style={{ minWidth: '100%' }}>\r\n \r\n {props.nsi.sprraz/*.filter(f => filterRaz(props.userInfo.user, f.kod))*/.map(it => )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n {dataInfo.rows.filter(f => filtrRaz(f)).map(r => \r\n \r\n {getObjectTypeName(r.obj.typeObj)} {r.obj.kod} {getNameLocalize(props.i18n, r.obj)}\r\n \r\n \r\n {showRaz(r)}\r\n \r\n )}\r\n
    ;\r\n }\r\n const showRaz= (r) => {\r\n if (r.obj.typeObj === 4/* && this.props.userInfo.user.accessLevel===2 */)\r\n return r.razrs.map(f => f.status === 2 ? {getNameSprLocalize(props.i18n, props.nsi.sprraz,f.kraz)}{' '} :\r\n {getNameSprLocalize(props.i18n, props.nsi.sprraz, f.kraz)}{' '})\r\n else\r\n return r.razrs.map(f => {getNameSprLocalize(props.i18n, props.nsi.sprraz, f.kraz)}{' '})\r\n }\r\n const printData = () => {\r\n window.print();\r\n }\r\n const printExcel = async () => {\r\n let kobj = \"\";\r\n switch (tobj) {\r\n case 1://РК\r\n kobj = \"00\";\r\n break;\r\n case 2://Область\r\n kobj = obl.kobl;\r\n break;\r\n case 3://Район\r\n kobj = raion.kraion;\r\n break;\r\n case 4://Организация\r\n kobj = org.korg;\r\n break;\r\n default:\r\n break;\r\n\r\n }\r\n let absoluteUrl = `${document.location.protocol}//${document.location.host}/generate/Excel/InputInfoForm/${year}/${kper}/${kf}/${tobj}/${kobj}/${strObj}`;\r\n let fileName = `inf2_${year}_${kper}_${kf}_${tobj}_${kobj}_${strObj}.xlsx`;\r\n var token = props.userInfo.user.token;\r\n const response = await fetch(absoluteUrl, {\r\n credentials: 'include',\r\n method: 'GET',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const blob = await response.blob();\r\n FileSaver.saveAs(blob, fileName);\r\n //this.setState({ isLoading: false });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n }\r\n return
    \r\n
    \r\n \r\n {':'}\r\n \r\n setYear(parseInt(e.target.value, 10))} bsSize=\"small\" style={{ width: \"auto\" }}>\r\n {years.map(it => )}\r\n \r\n \r\n \r\n {':'}\r\n setKper(parseInt(e.target.value, 10))} bsSize='small' style={{ width: \"auto\" }}>\r\n {props.nsi.periods.map(it => )}\r\n \r\n \r\n \r\n {':'}\r\n setKf(e.target.value)} style={{ minWidth: '100%' }}>\r\n {props.nsi.sprform.map(it => )}\r\n \r\n \r\n { setTobj(tobj); setStrObj(0); }}\r\n setObl={setObl}\r\n setRaion={setRaion}\r\n setOrg={setOrg}\r\n year={year}\r\n />\r\n {tobj === 2 ? setStrObj(parseInt(e.target.value, 10))}>\r\n {':'}\r\n \r\n      \r\n      \r\n \r\n : ''}\r\n {(tobj === 3 && props.userInfo.user.accessLevel === 3) ? (e.target.checked === true ? setStrObj(2) : setStrObj(0))}>\r\n {':'}\r\n \r\n  \r\n \r\n : ''}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {showInfoData()}\r\n
    \r\n}\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators({ ...actionCreatorsNsi, ...actionCreatorsWork }, dispatch)\r\n)(InputInforForm);","import React, { Component, Fragment, useState } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport * as FileSaver from 'file-saver';\r\nimport { Row, Col, FormGroup, FormControl, ControlLabel, Form, Button, ButtonGroup, Panel } from 'react-bootstrap';\r\n\r\nimport { actionCreators as actionCreatorsWork } from '../../store/Work';\r\nimport { actionCreators as actionCreatorsNsi } from '../../store/Nsi';\r\nimport SelectObject from '../common/SelectObject';\r\nimport './InputInfor.css';\r\n\r\nimport { years, getNameLocalize, getNameSprLocalize, getCurrentYear } from '../Constants';\r\n\r\n\r\n\r\n\r\nconst InputInforObj = (props) => {\r\n useState(() => {\r\n if (props.nsi.allobls.length === 0) props.getNs('allobls');\r\n if (props.nsi.sprraz.length === 0) props.getNs('sprraz');\r\n if (props.nsi.sprform.length === 0) props.getNs('sprform');\r\n if (props.nsi.periods.length === 0) props.getNs('periods');\r\n if (props.nsi.allraions.length === 0) props.getNs('allraions');\r\n //let year = new Date().getFullYear();\r\n //setYearsCopy([year - 1, year]);\r\n //setSelYear(year - 1);\r\n });\r\n const [year, setYear] = useState(() => getCurrentYear());\r\n const [kper, setKper] = useState(4);\r\n //const [kf, setKf] = useState(\"01\");\r\n const [tobj, setTobj] = useState(props.userInfo.user.accessLevel);\r\n const [obl, setObl] = useState();\r\n const [raion, setRaion] = useState();\r\n const [org, setOrg] = useState();\r\n const [strObj, setStrObj] = useState(0);\r\n //const [razFiltr, setRazFiltr] = useState(0);\r\n const onOpenTable = (e) => {\r\n e.preventDefault();\r\n let kobj = \"\";\r\n switch (tobj) {\r\n case 1://РК\r\n kobj = \"00\";\r\n break;\r\n case 2://Область\r\n kobj = obl.kobl;\r\n break;\r\n case 3://Район\r\n kobj = raion.kraion;\r\n break;\r\n case 4://Организация\r\n kobj = org.korg;\r\n break;\r\n default:\r\n break;\r\n\r\n }\r\n props.getInfoDataObj({\r\n year: year,\r\n period: kper,\r\n //kf: kf,\r\n tobj: tobj,\r\n kobj,\r\n strObj: strObj\r\n });\r\n }\r\n //const filtrRaz = (r) => {\r\n // if (razFiltr == null || razFiltr === 0) return true;\r\n // //if (parseInt(r.kod, 10) != razFiltr) return false;\r\n // if (r.razrs.filter(f => f.kraz === razFiltr).length === 0) return false;\r\n // return true;\r\n //}\r\n const getObjectTypeName= (tobj) => {\r\n switch (tobj) {\r\n //case 1://РК\r\n // return \"Республика:\";\r\n case 2://Область\r\n return `${I18n.t(\"obl\")}:`;\r\n case 3://Район\r\n return `${I18n.t(\"raion\")}:`;\r\n case 4://Организация\r\n return `${I18n.t(\"org\")}:`;\r\n default:\r\n break;\r\n }\r\n return \"\";\r\n }\r\n const showInfoData= ()=> {\r\n if (props.work.dataInfoObj === undefined) return '';\r\n let dataInfo = props.work.dataInfoObj;\r\n return \r\n \r\n \r\n \r\n \r\n

    \r\n \r\n {dataInfo.namePeriod}\r\n \r\n \r\n {getObjectTypeName(dataInfo.tobj)} {dataInfo.obj.kod} {getNameLocalize(props.i18n, dataInfo.obj)}\r\n \r\n \r\n {dataInfo.strCreateDateTime}\r\n \r\n {strObj === 1 || tobj === 4 ? \r\n \r\n
    \r\n \r\n \r\n
    \r\n \r\n
    : \"\"}\r\n {/*
    \r\n \r\n \r\n \r\n setRazFiltr(parseInt(evt.target.value,10))} style={{ minWidth: '100%' }}>\r\n \r\n {props.nsi.sprraz.map(it => )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n
    */}\r\n
    \r\n {dataInfo.rows.map(r => \r\n \r\n {r.form.kf} {getNameLocalize(props.i18n, r.form)}\r\n \r\n \r\n {showRaz(r, dataInfo.tobj)}\r\n \r\n )}\r\n
    ;\r\n }\r\n const showRaz = (r, typeObj) => {\r\n if (typeObj === 4/* && this.props.userInfo.user.accessLevel===2 */)\r\n return r.razrs.map(f => f.status === 2 ? {getNameSprLocalize(props.i18n, props.nsi.sprraz,f.kraz)}{' '} :\r\n {getNameSprLocalize(props.i18n, props.nsi.sprraz, f.kraz)}{' '})\r\n else\r\n return r.razrs.map(f => {getNameSprLocalize(props.i18n, props.nsi.sprraz, f.kraz)}{' '})\r\n }\r\n const printData = () => {\r\n window.print();\r\n }\r\n const printExcel = async () => {\r\n let kobj = \"\";\r\n switch (tobj) {\r\n case 1://РК\r\n kobj = \"00\";\r\n break;\r\n case 2://Область\r\n kobj = obl.kobl;\r\n break;\r\n case 3://Район\r\n kobj = raion.kraion;\r\n break;\r\n case 4://Организация\r\n kobj = org.korg;\r\n break;\r\n default:\r\n break;\r\n\r\n }\r\n let absoluteUrl = `${document.location.protocol}//${document.location.host}/generate/Excel/InputInfoObj/${year}/${kper}/${tobj}/${kobj}/${strObj}`;\r\n let fileName = `inf3_${year}_${kper}_${tobj}_${kobj}_${strObj}.xlsx`;\r\n var token = props.userInfo.user.token;\r\n const response = await fetch(absoluteUrl, {\r\n credentials: 'include',\r\n method: 'GET',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const blob = await response.blob();\r\n FileSaver.saveAs(blob, fileName);\r\n //this.setState({ isLoading: false });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n }\r\n return
    \r\n
    \r\n \r\n {':'}\r\n \r\n setYear(parseInt(e.target.value, 10))} bsSize=\"small\" style={{ width: \"auto\" }}>\r\n {years.map(it => )}\r\n \r\n \r\n \r\n {':'}\r\n setKper(parseInt(e.target.value, 10))} bsSize='small' style={{ width: \"auto\" }}>\r\n {props.nsi.periods.map(it => )}\r\n \r\n \r\n {/*\r\n {':'}\r\n setKf(e.target.value)} style={{ minWidth: '100%' }}>\r\n {props.nsi.sprform.map(it => )}\r\n \r\n */}\r\n { setTobj(tobj); setStrObj(0); }}\r\n setObl={setObl}\r\n setRaion={setRaion}\r\n setOrg={setOrg}\r\n year={year}\r\n />\r\n {/*{tobj === 2 ? setStrObj(parseInt(e.target.value, 10))}>\r\n {':'}\r\n \r\n      \r\n      \r\n \r\n : ''}\r\n {(tobj === 3 && props.userInfo.user.accessLevel === 3) ? (e.target.checked === true ? setStrObj(2) : setStrObj(0))}>\r\n {':'}\r\n \r\n  \r\n \r\n : ''}\r\n */}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {showInfoData()}\r\n
    \r\n}\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators({ ...actionCreatorsNsi, ...actionCreatorsWork }, dispatch)\r\n)(InputInforObj);","import React, { Component, Fragment } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { /*Form,*/ Button, FormGroup, FormControl, ControlLabel, Row, Col, ListGroup, ListGroupItem, Modal } from 'react-bootstrap';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport * as FileSaver from 'file-saver';\r\n//import { cloneDeep } from 'lodash';\r\n\r\nimport { actionCreators } from '../../store/Medinfo/FormulMedinfo';\r\nclass EditMedinfoFormul extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n type_page: 1,//1,2\r\n pages: [],\r\n selectedTable: undefined,\r\n selectedPage: undefined,\r\n selectedFormul: undefined,\r\n selectedFormulYear: undefined,\r\n isCopyYearFormul: true,\r\n showGetYearOfFormul: false,\r\n yearFormulInsert: undefined,\r\n errorInsertYear: undefined\r\n };\r\n /*\r\n this.handleSelectNsiSubmit = this.handleSelectNsiSubmit.bind(this);\r\n this.setEditMode = this.setEditMode.bind(this);\r\n this.saveDataTable = this.saveDataTable.bind(this);\r\n this.cancelData = this.cancelData.bind(this);\r\n this.changeTable = this.changeTable.bind(this);\r\n\r\n this.props. getTablesPages();\r\n */\r\n this.showListTables = this.showListTables.bind(this);\r\n this.onClickTable = this.onClickTable.bind(this);\r\n this.showListPages = this.showListPages.bind(this);\r\n this.onClickPage = this.onClickPage.bind(this);\r\n this.onClickFormul = this.onClickFormul.bind(this);\r\n this.handleChangeNpp = this.handleChangeNpp.bind(this);\r\n this.handleChangeNumberAfterPoint = this.handleChangeNumberAfterPoint.bind(this);\r\n this.handleChangeFormulNameRu = this.handleChangeFormulNameRu.bind(this);\r\n this.handleChangeFormulNameKz = this.handleChangeFormulNameKz.bind(this);\r\n this.onSelectFormulYear = this.onSelectFormulYear.bind(this);\r\n this.handleChangeFormulText = this.handleChangeFormulText.bind(this);\r\n this.showEditNameTable = this.showEditNameTable.bind(this);\r\n this.handleChangeTableNameRu = this.handleChangeTableNameRu.bind(this);\r\n this.handleChangeTableNameKz = this.handleChangeTableNameKz.bind(this);\r\n //this.showEditNamePage = this.showEditNamePage.bind(this);\r\n this.handleChangePageNameRu = this.handleChangePageNameRu.bind(this);\r\n this.handleChangePageNameKz = this.handleChangePageNameKz.bind(this);\r\n this.handleChangePageNameRazdRu = this.handleChangePageNameRazdRu.bind(this);\r\n this.handleChangePageNameRazdKz = this.handleChangePageNameRazdKz.bind(this);\r\n this.handleChangeTableInPageNameRu = this.handleChangeTableInPageNameRu.bind(this);\r\n this.handleChangeTableInPageNameKz = this.handleChangeTableInPageNameKz.bind(this);\r\n this.handleChangeSubHeaderRu = this.handleChangeSubHeaderRu.bind(this);\r\n this.handleChangeSubHeaderKz = this.handleChangeSubHeaderKz.bind(this);\r\n this.handleChangeSubHeader2Ru = this.handleChangeSubHeader2Ru.bind(this);\r\n this.handleChangeSubHeader2Kz = this.handleChangeSubHeader2Kz.bind(this);\r\n this.handleChangeSubHeader2RangeExcl = this.handleChangeSubHeader2RangeExcl.bind(this);\r\n this.handleChangeSubHeader2RangeExclOne = this.handleChangeSubHeader2RangeExclOne.bind(this);\r\n this.handleChangeSubHeader3Ru = this.handleChangeSubHeader3Ru.bind(this);\r\n this.handleChangeSubHeader3Kz = this.handleChangeSubHeader3Kz.bind(this);\r\n this.handleChangePageNote1 = this.handleChangePageNote1.bind(this);\r\n this.handleChangePageNote2 = this.handleChangePageNote2.bind(this);\r\n this.uploadExcel = this.uploadExcel.bind(this);\r\n this.downloadExcel = this.downloadExcel.bind(this);\r\n this.uploadExcelOneYear = this.uploadExcelOneYear.bind(this);\r\n this.downloadExcelOneYear = this.downloadExcelOneYear.bind(this);\r\n this.handleChangeStartRangePeriodsExcl = this.handleChangeStartRangePeriodsExcl.bind(this);\r\n this.handleChangeStartRangeDataExcl = this.handleChangeStartRangeDataExcl.bind(this);\r\n this.handleChangeRangesPeriodExcl = this.handleChangeRangesPeriodExcl.bind(this);\r\n this.showTemplatePageEdit = this.showTemplatePageEdit.bind(this);\r\n this.btCopyFormulYear = this.btCopyFormulYear.bind(this);\r\n this.btInsertFormulYear = this.btInsertFormulYear.bind(this);\r\n this.AddOrCopyFormulYear = this.AddOrCopyFormulYear.bind(this);\r\n\r\n this.props.getTablesPages(this.state.type_page);\r\n }\r\n btCopyFormulYear = (e) => {\r\n this.setState({\r\n isCopyYearFormul: true,\r\n showGetYearOfFormul: true,\r\n errorInsertYear: undefined,\r\n yearFormulInsert: undefined\r\n });\r\n }\r\n btInsertFormulYear = (e) => {\r\n this.setState({\r\n isCopyYearFormul: false,\r\n showGetYearOfFormul: true,\r\n errorInsertYear: undefined,\r\n yearFormulInsert: undefined\r\n });\r\n }\r\n hideDialogInsertFormulYear = (e) => {\r\n this.setState({\r\n showGetYearOfFormul: false,\r\n errorInsertYear: undefined,\r\n yearFormulInsert: undefined\r\n });\r\n }\r\n AddOrCopyFormulYear = async (e) => {\r\n if (this.state.yearFormulInsert == null || this.state.yearFormulInsert < 2000) {\r\n this.setState({ errorInsertYear: \"Не правильный год\" });\r\n return;\r\n }\r\n if (this.props.formulYears.years.filter(f => f.year === this.state.yearFormulInsert).length > 0) {\r\n this.setState({ errorInsertYear: \"Формула за данный год существует\" });\r\n return;\r\n }\r\n await this.props.copyOrInsertFormulYear({\r\n year: this.state.yearFormulInsert,\r\n formulIdSrc: this.state.selectedFormul.formulId,\r\n formulIdYearSrc: this.state.isCopyYearFormul === true ? this.state.selectedFormulYear.formulId : null\r\n })\r\n let selectedFormulYear = this.props.formulYears.years.filter(f => f.year === this.state.yearFormulInsert)[0];\r\n this.setState({\r\n showGetYearOfFormul: false,\r\n errorInsertYear: undefined,\r\n yearFormulInsert: undefined,\r\n selectedFormulYear\r\n });\r\n }\r\n onSelectTypePage = (e) => {\r\n let type_page = parseInt(e.target.value, 10);\r\n this.props.getTablesPages(type_page);\r\n this.setState({\r\n type_page, selectedTable: undefined, selectedPage: undefined, selectedFormul: undefined,\r\n selectedFormulYear: undefined\r\n });\r\n }\r\n onClickTable = (e) => {\r\n let tableId = parseInt(e.target.id, 10);\r\n let selectedTable = this.props.tablesPages.tables.filter(t => t.tableId === tableId)[0];\r\n this.setState({\r\n selectedTable, selectedPage: undefined, selectedFormul: undefined,\r\n selectedFormulYear: undefined\r\n });\r\n }\r\n showListTables() {\r\n if (this.props.tablesPages == null) return '';\r\n return \r\n {this.props.tablesPages.tables.map(l => {\r\n if (this.state.selectedTable != null && this.state.selectedTable.tableId === l.tableId)\r\n return {l.kod};\r\n else\r\n return {l.kod};\r\n })}\r\n ;\r\n }\r\n handleChangeTableNameRu(e) {\r\n let selectedTable = { ...this.state.selectedTable };\r\n selectedTable.nameRu = e.target.value;\r\n //todo update table\r\n this.setState({ selectedTable });\r\n }\r\n handleChangeTableNameKz(e) {\r\n let selectedTable = { ...this.state.selectedTable };\r\n selectedTable.nameKz = e.target.value;\r\n //todo update table\r\n this.setState({ selectedTable });\r\n }\r\n showEditNameTable() {\r\n if (this.state.selectedTable == null) return '';\r\n return \r\n \r\n Наименование(рус){':'}\r\n \r\n \r\n \r\n Наименование(каз){':'}\r\n \r\n ;\r\n }\r\n onClickPage = (e) => {\r\n let pageId = parseInt(e.target.id, 10);\r\n let selectedPage = this.state.selectedTable.pages.filter(t => t.pageId === pageId)[0];\r\n this.setState({\r\n selectedPage, selectedFormul: undefined,\r\n selectedFormulYear: undefined\r\n });\r\n this.props.getFormuls(pageId);\r\n }\r\n handleChangePageNameRu = async (e) => {\r\n let selectedPage = { ...this.state.selectedPage };\r\n selectedPage.nameRu = e.target.value;\r\n //update page\r\n await this.props.updatePageInfo(selectedPage);\r\n this.refreshSelectedPage(selectedPage.pageId);\r\n }\r\n handleChangePageNameKz = async (e) => {\r\n let selectedPage = { ...this.state.selectedPage };\r\n selectedPage.nameKz = e.target.value;\r\n //update page\r\n await this.props.updatePageInfo(selectedPage);\r\n this.refreshSelectedPage(selectedPage.pageId);\r\n }\r\n handleChangePageNameRazdRu = async (e) => {\r\n let selectedPage = { ...this.state.selectedPage };\r\n selectedPage.nameRazdRu = e.target.value;\r\n //update page\r\n await this.props.updatePageInfo(selectedPage);\r\n this.refreshSelectedPage(selectedPage.pageId);\r\n }\r\n handleChangePageNameRazdKz = async (e) => {\r\n let selectedPage = { ...this.state.selectedPage };\r\n selectedPage.nameRazdKz = e.target.value;\r\n //update page\r\n await this.props.updatePageInfo(selectedPage);\r\n this.refreshSelectedPage(selectedPage.pageId);\r\n }\r\n\r\n handleChangeTableInPageNameRu = async (e) => {\r\n let selectedPage = { ...this.state.selectedPage };\r\n selectedPage.nameTableRu = e.target.value;\r\n //update page\r\n await this.props.updatePageInfo(selectedPage);\r\n this.refreshSelectedPage(selectedPage.pageId);\r\n }\r\n handleChangeTableInPageNameKz = async (e) => {\r\n let selectedPage = { ...this.state.selectedPage };\r\n selectedPage.nameTableKz = e.target.value;\r\n //update page\r\n await this.props.updatePageInfo(selectedPage);\r\n this.refreshSelectedPage(selectedPage.pageId);\r\n }\r\n handleChangeSubHeaderRu = async (e) => {\r\n let selectedPage = { ...this.state.selectedPage };\r\n selectedPage.subHeaderRu = e.target.value;\r\n //update page\r\n await this.props.updatePageInfo(selectedPage);\r\n this.refreshSelectedPage(selectedPage.pageId);\r\n }\r\n handleChangeSubHeaderKz = async (e) => {\r\n let selectedPage = { ...this.state.selectedPage };\r\n selectedPage.subHeaderKz = e.target.value;\r\n //update page\r\n await this.props.updatePageInfo(selectedPage);\r\n this.refreshSelectedPage(selectedPage.pageId);\r\n }\r\n handleChangeSubHeader2Ru = async (e) => {\r\n let selectedPage = { ...this.state.selectedPage };\r\n selectedPage.subHeader2Ru = e.target.value;\r\n //update page\r\n await this.props.updatePageInfo(selectedPage);\r\n this.refreshSelectedPage(selectedPage.pageId);\r\n }\r\n handleChangeSubHeader2Kz = async (e) => {\r\n let selectedPage = { ...this.state.selectedPage };\r\n selectedPage.subHeader2Kz = e.target.value;\r\n //update page\r\n await this.props.updatePageInfo(selectedPage);\r\n this.refreshSelectedPage(selectedPage.pageId);\r\n }\r\n handleChangeSubHeader2RangeExcl = async (e) => {\r\n let selectedPage = { ...this.state.selectedPage };\r\n selectedPage.subHeader2RangeExcl = e.target.value;\r\n //update page\r\n await this.props.updatePageInfo(selectedPage);\r\n this.refreshSelectedPage(selectedPage.pageId);\r\n }\r\n handleChangeSubHeader2RangeExclOne = async (e) => {\r\n let selectedPage = { ...this.state.selectedPage };\r\n selectedPage.subHeader2RangeExclOne = e.target.value;\r\n //update page\r\n await this.props.updatePageInfo(selectedPage);\r\n this.refreshSelectedPage(selectedPage.pageId);\r\n } \r\n handleChangeSubHeader3Ru = async (e) => {\r\n let selectedPage = { ...this.state.selectedPage };\r\n selectedPage.subHeader3Ru = e.target.value;\r\n //update page\r\n await this.props.updatePageInfo(selectedPage);\r\n this.refreshSelectedPage(selectedPage.pageId);\r\n }\r\n handleChangeSubHeader3Kz = async (e) => {\r\n let selectedPage = { ...this.state.selectedPage };\r\n selectedPage.subHeader3Kz = e.target.value;\r\n //update page\r\n await this.props.updatePageInfo(selectedPage);\r\n this.refreshSelectedPage(selectedPage.pageId);\r\n }\r\n handleChangeStartRangePeriodsExcl = async (e) => {\r\n let selectedPage = { ...this.state.selectedPage };\r\n selectedPage.startRangePeriodsExcl = e.target.value\r\n //update page\r\n await this.props.updatePageInfo(selectedPage);\r\n this.refreshSelectedPage(selectedPage.pageId);\r\n }\r\n handleChangeStartRangeDataExcl = async (e) => {\r\n let selectedPage = { ...this.state.selectedPage };\r\n selectedPage.startRangeDataExcl = e.target.value;\r\n //update page\r\n await this.props.updatePageInfo(selectedPage);\r\n this.refreshSelectedPage(selectedPage.pageId);\r\n }\r\n handleChangeRangesPeriodExcl = async (e) => {\r\n let selectedPage = { ...this.state.selectedPage };\r\n selectedPage.rangesPeriodExcl = e.target.value;\r\n //update page\r\n await this.props.updatePageInfo(selectedPage);\r\n this.refreshSelectedPage(selectedPage.pageId);\r\n }\r\n handleChangePageNote1 = async (e) => {\r\n let selectedPage = { ...this.state.selectedPage };\r\n selectedPage.note1 = e.target.value;\r\n //update page\r\n await this.props.updatePageInfo(selectedPage);\r\n this.refreshSelectedPage(selectedPage.pageId);\r\n }\r\n handleChangePageNote2 = async (e) => {\r\n let selectedPage = { ...this.state.selectedPage };\r\n selectedPage.note2 = e.target.value;\r\n //update page\r\n await this.props.updatePageInfo(selectedPage);\r\n this.refreshSelectedPage(selectedPage.pageId);\r\n }\r\n showListPages() {\r\n if (this.state.selectedTable == null) return '';\r\n return \r\n {this.state.selectedTable.pages.map(p => {\r\n if (this.state.selectedPage != null && this.state.selectedPage.pageId === p.pageId)\r\n return {p.kod};\r\n else\r\n return {p.kod};\r\n })}\r\n ;\r\n }\r\n getTablePageKod() {\r\n if (this.state.selectedTable == null || this.state.selectedPage == null) return '';\r\n return `${this.state.selectedTable.kod}${this.state.selectedPage.kod}`;\r\n }\r\n showListFormuls() {\r\n if (this.props.formuls == null) return '';\r\n return \r\n {this.props.formuls.formuls.sort((a, b) => a.npp - b.npp).map(f => {\r\n if (this.state.selectedFormul != null && this.state.selectedFormul.formulId === f.formulId)\r\n return ${f.npp};\r\n else\r\n return ${f.npp};\r\n })}\r\n ;\r\n }\r\n onClickFormul = async (e) => {\r\n let formulId = parseInt(e.target.id, 10);\r\n let selectedFormul = this.props.formuls.formuls.filter(t => t.formulId === formulId)[0];\r\n await this.props.getFormulYears(formulId);\r\n let selectedFormulYear = undefined;\r\n if (this.props.formulYears != null && this.props.formulYears.years.length > 0) {\r\n selectedFormulYear = this.props.formulYears.years[0];\r\n }\r\n this.setState({ selectedFormul, selectedFormulYear });\r\n\r\n }\r\n handleChangeNpp(e) {\r\n let selectedFormul = { ...this.state.selectedFormul };\r\n selectedFormul.npp = parseInt(e.target.value, 10);\r\n //todo update formul\r\n this.setState({ selectedFormul });\r\n }\r\n handleChangeNumberAfterPoint(e) {\r\n let selectedFormul = { ...this.state.selectedFormul };\r\n selectedFormul.numberAfterPoint = parseInt(e.target.value, 10);\r\n //update formul\r\n this.props.updateFormul(selectedFormul);\r\n this.setState({ selectedFormul });\r\n }\r\n handleChangeFormulNameRu(e) {\r\n let selectedFormul = { ...this.state.selectedFormul };\r\n selectedFormul.nameRu = e.target.value;\r\n //todo update formul\r\n this.props.updateFormul(selectedFormul);\r\n this.setState({ selectedFormul });\r\n }\r\n handleChangeFormulNameKz(e) {\r\n let selectedFormul = { ...this.state.selectedFormul };\r\n selectedFormul.nameKz = e.target.value;\r\n //update formul\r\n this.props.updateFormul(selectedFormul);\r\n this.setState({ selectedFormul });\r\n }\r\n /*\r\n * \r\n */\r\n showFormulDetail() {\r\n if (this.state.selectedFormul == null) return '';\r\n return \r\n \r\n Порядковый номер формулы(${this.state.selectedFormul.npp}){':'}\r\n ${this.state.selectedFormul.npp}\r\n \r\n \r\n Количество знаков после запятой{':'}\r\n \r\n \r\n \r\n Наименование(рус){':'}\r\n \r\n \r\n \r\n Наименование(каз){':'}\r\n \r\n \r\n ;\r\n }\r\n onSelectFormulYear(e) {\r\n let yearFormulId = parseInt(e.target.value, 10);\r\n let selectedFormulYear = this.props.formulYears.years.filter(y => y.yearFormulId === yearFormulId)[0];\r\n this.setState({ selectedFormulYear });\r\n }\r\n handleChangeFormulText = async (e) => {\r\n let selectedFormulYear = { ...this.state.selectedFormulYear };\r\n selectedFormulYear.formulText = e.target.value;\r\n //update formul year\r\n await this.props.updateFormulYear(selectedFormulYear);\r\n this.setState({ selectedFormulYear });\r\n }\r\n showFormulYearDetail() {\r\n if (this.state.selectedFormulYear == null) return '';\r\n return \r\n \r\n Год{':'}\r\n \r\n \r\n \r\n Формула{':'}\r\n \r\n \r\n ;\r\n }\r\n uploadExcel = async (e) => {\r\n e.preventDefault();\r\n let input = document.getElementById('fileTemplate');\r\n if (input.files.length === 0) {\r\n alert(\"Выберите файл\");\r\n return;\r\n }\r\n let formData = new FormData();\r\n let pageId = this.state.selectedPage.pageId;\r\n formData.append(\"pageId\", pageId);\r\n formData.append(\"fileExcel\", input.files[0]);\r\n await this.props.UploadTemplate(formData, pageId);\r\n this.refreshSelectedPage(pageId);\r\n }\r\n uploadExcelOneYear = async (e) => {\r\n e.preventDefault();\r\n let input = document.getElementById('fileTemplateOneYear');\r\n if (input.files.length === 0) {\r\n alert(\"Выберите файл\");\r\n return;\r\n }\r\n let formData = new FormData();\r\n let pageId = this.state.selectedPage.pageId;\r\n formData.append(\"pageId\", pageId);\r\n formData.append(\"fileExcel\", input.files[0]);\r\n await this.props.UploadTemplateOneYear(formData, pageId);\r\n this.refreshSelectedPage(pageId);\r\n }\r\n refreshSelectedPage(pageId) {\r\n let index = this.state.selectedTable.pages.map(e => e.pageId).indexOf(pageId);\r\n let table = this.props.tablesPages.tables.filter(t => t.tableId === this.state.selectedPage.tableId)[0];\r\n let page = table.pages.filter(p => p.pageId === pageId)[0];\r\n this.state.selectedTable.pages.splice(index, 1, page);\r\n this.setState({ selectedPage: page });\r\n }\r\n async downloadExcel(e) {\r\n e.preventDefault();\r\n const blob = await this.props.DownloadTemplate(this.state.selectedPage.pageId);\r\n FileSaver.saveAs(blob, this.state.selectedPage.fileTemplate);\r\n }\r\n async downloadExcelOneYear(e) {\r\n e.preventDefault();\r\n const blob = await this.props.DownloadTemplateOneYear(this.state.selectedPage.pageId);\r\n FileSaver.saveAs(blob, this.state.selectedPage.fileTemplateOneYear);\r\n }\r\n showTemplatePageEdit() {\r\n if (this.state.selectedPage == null) return '';\r\n return \r\n \r\n \r\n Шаблон Excel(2-периода){':'}\r\n \r\n \r\n {this.state.selectedPage != null && this.state.selectedPage.fileTemplate != null ? : ''}\r\n \r\n \r\n \r\n \r\n Шаблон Excel(1-период){':'}\r\n \r\n \r\n {this.state.selectedPage != null && this.state.selectedPage.fileTemplateOneYear != null ? : ''}\r\n \r\n \r\n \r\n \r\n \r\n Наименование таблицы(рус){':'}\r\n \r\n \r\n \r\n \r\n Наименование таблицы(каз){':'}\r\n \r\n \r\n \r\n \r\n \r\n Наименование страницы(рус){':'}\r\n \r\n \r\n \r\n \r\n Наименование страницы(каз){':'}\r\n \r\n \r\n \r\n \r\n \r\n Наименование страницы в разделе \"Мединфо\"(рус){':'}\r\n \r\n \r\n \r\n \r\n Наименование страницы в разделе \"Мединфо\"(каз){':'}\r\n \r\n \r\n \r\n \r\n \r\n Подзаголовок 1(рус){':'}\r\n \r\n \r\n \r\n \r\n Подзаголовок 1(каз){':'}\r\n \r\n \r\n \r\n \r\n \r\n Подзаголовок 2(рус){':'}\r\n \r\n \r\n \r\n \r\n Подзаголовок 2(каз){':'}\r\n \r\n \r\n \r\n {this.state.selectedPage.typePage === 2 ? \r\n \r\n Ячейка подзаголовока 2(2-периода){':'}\r\n \r\n \r\n \r\n \r\n Ячейка подзаголовока 2(1-период){':'}\r\n \r\n \r\n : ''}\r\n \r\n \r\n Подзаголовок 3(рус){':'}\r\n \r\n \r\n \r\n \r\n Подзаголовок 3(каз){':'}\r\n \r\n \r\n \r\n \r\n \r\n \r\n Стартовая ячейка периодов{':'}\r\n \r\n \r\n \r\n \r\n Стартовая ячейка данных{':'}\r\n \r\n \r\n \r\n \r\n \r\n Ячейки для замены {период}, когда 1-период{':'}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Примечание1{':'}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Примечание2{':'}\r\n \r\n \r\n \r\n \r\n ;\r\n }\r\n render() {\r\n return \r\n

    \r\n {this.props.isLoading === true ? \r\n \r\n
    {I18n.t('wait')}{' '}
    \r\n \r\n
    : ''}\r\n \r\n \r\n \r\n Тип таблицы{':'}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Таблица\r\n Страница\r\n \r\n \r\n \r\n {this.showListTables()}\r\n \r\n \r\n {this.showListPages()}\r\n \r\n \r\n \r\n {this.state.selectedPage != null ? \r\n {this.showTemplatePageEdit()}\r\n Формулы {this.getTablePageKod()}\r\n {this.showListFormuls()}{this.showFormulDetail()}\r\n {this.props.formulYears != null ? \r\n \r\n \r\n \r\n Год{':'}\r\n \r\n \r\n {this.props.formulYears.years.map(y => )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {this.showFormulYearDetail()}\r\n : ''}\r\n \r\n : ''}\r\n \r\n this.setState({ showGetYearOfFormul: false })}>\r\n \r\n Modal title\r\n \r\n\r\n \r\n \r\n Год формулы{':'}\r\n this.setState({ yearFormulInsert: parseInt(e.target.value, 10) })}\r\n />\r\n \r\n

    {this.state.errorInsertYear}

    \r\n
    \r\n\r\n \r\n \r\n \r\n \r\n
    \r\n\r\n
    ;\r\n }\r\n}\r\nexport default connect(\r\n state => state.formulmedinfo,\r\n dispatch => bindActionCreators(actionCreators, dispatch)\r\n)(EditMedinfoFormul);\r\n// {this.showEditNameTable()}\r\n//{this.showEditNamePage()}","import React, { Component, Fragment } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { Table } from 'react-bootstrap';\r\nimport { Translate/*, I18n*/ } from 'react-redux-i18n';\r\nimport NumberFormat from 'react-number-format';\r\n\r\nimport { actionCreators } from '../../store/Medinfo/FormulMedinfo';\r\nimport './editBokMkb.css';\r\n\r\nclass EditBokMkb extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.props.getBokMkb();\r\n }\r\n nppChange = (values, bokMkbId) => {\r\n //let vl = parseInt(values.value);\r\n this.props.updateFieldBokMkb({ bokMkbId, field: 'Npp', value: values.value });\r\n }\r\n /*\r\n nameRuChange = (nameRu, bokMkbId) => {\r\n this.props.updateFieldBokMkb({ bokMkbId, field: 'NameRu', value: nameRu });\r\n }\r\n nameKzChange = (nameKz, bokMkbId) => {\r\n this.props.updateFieldBokMkb({ bokMkbId, field: 'NameKz', value: nameKz });\r\n }\r\n */\r\n nameChange = (name, bokMkbId, fld) => {\r\n this.props.updateFieldBokMkb({ bokMkbId, field: fld, value: name });\r\n }\r\n showTable = () => {\r\n if (this.props.bokMkb === undefined) {\r\n return '';\r\n }\r\n return \r\n {this.props.error !== undefined ?
    {this.props.error}
    : ''}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {this.props.bokMkb.map(b =>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n )}\r\n \r\n
    № п/п
    this.nppChange(values, b.bokMkbId)} \r\n key={b.bokMkbId} ref={b.bokMkbId} id={b.bokMkbId} value={b.npp} />\r\n this.nameChange(e.target.value, b.bokMkbId, 'NameRu')} /> this.nameChange(e.target.value, b.bokMkbId, 'NameShortRu')} /> this.nameChange(e.target.value, b.bokMkbId, 'NameKz')} /> this.nameChange(e.target.value, b.bokMkbId, 'NameShortKz')} />
    \r\n
    ;\r\n }\r\n render() {\r\n return \r\n

    \r\n {this.showTable()}\r\n
    ;\r\n }\r\n}\r\nexport default connect(\r\n state => state.formulmedinfo,\r\n dispatch => bindActionCreators(actionCreators, dispatch)\r\n)(EditBokMkb);","import React, { Component, Fragment } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { Table, FormGroup, FormControl, ControlLabel, Row, Col} from 'react-bootstrap';\r\nimport { Translate/*, I18n*/ } from 'react-redux-i18n';\r\nimport NumberFormat from 'react-number-format';\r\n\r\nimport { actionCreators } from '../../store/Medinfo/FormulMedinfo';\r\nimport './editBokMkb.css';\r\n\r\nclass EditBokDr extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n pages: [],\r\n selectedTable: undefined,\r\n seletedPageId: undefined,\r\n };\r\n this.showListTables = this.showListTables.bind(this);\r\n this.onSelectTable = this.onSelectTable.bind(this);\r\n this.showListPages = this.showListPages.bind(this);\r\n this.onSelectPage = this.onSelectPage.bind(this);\r\n this.props.getTablesPagesOnlyBokDr().finally(() => {\r\n let selectedTable = this.props.tablesPages.tables[0];\r\n let seletedPageId = selectedTable.pages[0].pageId;\r\n this.setState({ selectedTable, seletedPageId});\r\n this.props.getBokDr(seletedPageId);\r\n });\r\n }\r\n onSelectTable = (e) => {\r\n let tableId = parseInt(e.target.value, 10);\r\n let selectedTable = this.props.tablesPages.tables.filter(f => f.tableId === tableId)[0];\r\n let seletedPageId = selectedTable.pages[0].pageId;\r\n this.setState({ selectedTable, seletedPageId });\r\n this.props.getBokDr(seletedPageId);\r\n }\r\n showListTables() {\r\n if (this.props.tablesPages == null) return '';\r\n return \r\n Таблица{':'}\r\n \r\n \r\n {this.props.tablesPages.tables.map(l => )}\r\n \r\n ;\r\n }\r\n showListPages() {\r\n if (this.state.selectedTable == null) return '';\r\n return \r\n Страница{':'}\r\n \r\n \r\n {this.state.selectedTable.pages.map(l => )}\r\n \r\n ;\r\n }\r\n onSelectPage = (e) => {\r\n let seletedPageId = e.target.value;\r\n this.setState({ seletedPageId });\r\n //load BokDr\r\n this.props.getBokDr(seletedPageId);\r\n }\r\n nppChange = (values, bokMkbId) => {\r\n this.props.updateFieldBokDr({ bokMkbId, field: 'Npp', value: values.value });\r\n }\r\n /*\r\n nameRuChange = (nameRu, bokMkbId) => {\r\n this.props.updateFieldBokDr({ bokMkbId, field: 'NameRu', value: nameRu });\r\n }\r\n nameKzChange = (nameKz, bokMkbId) => {\r\n this.props.updateFieldBokDr({ bokMkbId, field: 'NameKz', value: nameKz });\r\n }\r\n */\r\n nameChange = (name, bokMkbId, fld) => {\r\n this.props.updateFieldBokDr({ bokMkbId, field: fld, value: name });\r\n }\r\n showTable = () => {\r\n if (this.props.bokDr === undefined) {\r\n return undefined;\r\n }\r\n return \r\n {this.props.error !== undefined ?
    {this.props.error}
    : ''}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {this.props.bokDr.map(b =>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n )}\r\n \r\n
    № п/п
    this.nppChange(values, b.bokMkbId)}\r\n key={b.bokMkbId} ref={b.bokMkbId} id={b.bokMkbId} value={b.npp} />\r\n this.nameChange(e.target.value, b.bokMkbId, 'NameRu')} /> this.nameChange(e.target.value, b.bokMkbId, 'NameShortRu')} /> this.nameChange(e.target.value, b.bokMkbId, 'NameKz')} /> this.nameChange(e.target.value, b.bokMkbId, 'NameShortKz')} />
    \r\n
    ;\r\n }\r\n render() {\r\n return \r\n

    \r\n \r\n \r\n {this.showListTables()}\r\n \r\n \r\n \r\n \r\n {this.showListPages()}\r\n \r\n \r\n {this.showTable()}\r\n
    ;\r\n }\r\n}\r\nexport default connect(\r\n state => state.formulmedinfo,\r\n dispatch => bindActionCreators(actionCreators, dispatch)\r\n)(EditBokDr);","import React, { Component, Fragment } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { ListGroup, ListGroupItem, FormGroup, FormControl, ControlLabel, Row, Col } from 'react-bootstrap';\r\nimport { Translate/*, I18n*/ } from 'react-redux-i18n';\r\n\r\nimport { actionCreators } from '../../store/Medinfo/FormulMedinfo';\r\nclass EditParts extends Component {\r\n constructor(props) {\r\n super(props);\r\n var self = this;\r\n this.state = {\r\n parts: [],\r\n selectedPart: undefined\r\n };\r\n this.showListParts = this.showListParts.bind(this);\r\n this.showSelectPart = this.showSelectPart.bind(this);\r\n this.handleChangePartNameRu = this.handleChangePartNameRu.bind(this);\r\n this.handleChangePartNameKz = this.handleChangePartNameKz.bind(this);\r\n this.handleChangeListPages = this.handleChangeListPages.bind(this);\r\n this.onClickPart = this.onClickPart.bind(this);\r\n this.refreshSelectedPart = this.refreshSelectedPart.bind(this);\r\n this.props.getParts().finally(() => {\r\n let selectedPart = (self.props.parts!=null && self.props.parts.length > 0) ? self.props.parts[0] : undefined;\r\n self.setState({ parts: self.props.parts, selectedPart});\r\n });\r\n }\r\n onClickPart = (e) => {\r\n let partId = parseInt(e.target.id, 10);\r\n let selectedPart = this.state.parts.filter(t => t.partId === partId)[0];\r\n this.setState({selectedPart});\r\n }\r\n refreshSelectedPart(selectedPart) {\r\n let index = this.state.parts.map(e => e.partId).indexOf(selectedPart.partId);\r\n this.state.parts.splice(index, 1, selectedPart);\r\n this.setState({ selectedPart });\r\n }\r\n handleChangePartNameRu = async (e) => {\r\n let selectedPart = { ...this.state.selectedPart };\r\n selectedPart.nameRu = e.target.value;\r\n //update part\r\n await this.props.updatePart(selectedPart);\r\n this.refreshSelectedPart(selectedPart);\r\n }\r\n handleChangePartNameKz = async (e) => {\r\n let selectedPart = { ...this.state.selectedPart };\r\n selectedPart.nameKz = e.target.value;\r\n //update part\r\n await this.props.updatePart(selectedPart);\r\n this.refreshSelectedPart(selectedPart);\r\n }\r\n handleChangeListPages = async (e) => {\r\n let selectedPart = { ...this.state.selectedPart };\r\n selectedPart.listPages = e.target.value;\r\n //update part\r\n await this.props.updatePart(selectedPart);\r\n this.refreshSelectedPart(selectedPart);\r\n }\r\n\r\n showListParts() {\r\n if (this.state.parts != null && this.state.parts.length > 0) {\r\n // style={{ maxHeight: 600, overflowY: \"auto\" }}\r\n return \r\n {this.state.parts.map(p => {\r\n if (this.state.selectedPart != null && this.state.selectedPart.partId === p.partId)\r\n return {p.kod} {p.nameRu} ;\r\n else\r\n return {p.kod} {p.nameRu};\r\n })}\r\n ;\r\n }\r\n return '';\r\n }\r\n showSelectPart() {\r\n if (this.state.selectedPart == null) {\r\n return '';\r\n }\r\n return \r\n \r\n Наименование(рус){':'}\r\n \r\n \r\n \r\n Наименование(каз){':'}\r\n \r\n \r\n \r\n Список страниц{':'}\r\n \r\n \r\n ;\r\n }\r\n render() {\r\n return \r\n

    \r\n \r\n \r\n {this.showListParts()}\r\n \r\n \r\n \r\n \r\n {this.showSelectPart()}\r\n \r\n \r\n
    ;\r\n }\r\n}\r\nexport default connect(\r\n state => state.formulmedinfo,\r\n dispatch => bindActionCreators(actionCreators, dispatch)\r\n)(EditParts);","import React, { Component/*, Fragment*/ } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { Form, Button, FormGroup, FormControl, ControlLabel, Row, Col, Alert, Checkbox } from 'react-bootstrap';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport NumberFormat from 'react-number-format';\r\nimport * as FileSaver from 'file-saver';\r\nimport { actionCreators } from '../../store/Medinfo/FormulMedinfo';\r\n//import SelectMultiObjects from '../common/SelectMultiObjects'\r\nimport SelectObject from '../common/SelectObject';\r\nimport { arTypePers, arTypeDiagram } from '../Constants';\r\nclass GenMedinfoTable extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n type_page: 1,//1,2\r\n selectedTable: undefined,\r\n seletedPage: undefined,\r\n type_per: 1,\r\n begYear: 2017,\r\n endYear: 2018,\r\n //isCustomYears: false,//если используется строка годов\r\n yearsExprStrings: \"2017-2018\",//строка годов (например - 2017-2018,2021)\r\n years: [2017,2018], //массив годов из строки yearsExprStrings \r\n tobj: props.userInfo.user.accessLevel, // тип обьекта 1 – РК; 2 – область; 3 - район; 4 - организация (доступ зависит от пользователя)\r\n obl: undefined,\r\n raion: undefined,\r\n org: { korg: this.props.userInfo.user.kodOrg },//, undefined,\r\n //kobls: [],\r\n //kraions: [],\r\n //korgs: [],\r\n isCreateDiagram: false,\r\n type_diagram: 1,\r\n isLoading: false\r\n };\r\n this.onClickTable = this.onClickTable.bind(this);\r\n this.onSelectTypePage = this.onSelectTypePage.bind(this);\r\n this.onClickPage = this.onClickPage.bind(this);\r\n this.showListPages = this.showListPages.bind(this);\r\n this.begYearChange = this.begYearChange.bind(this);\r\n this.endYearChange = this.endYearChange.bind(this);\r\n this.onGenerateTable = this.onGenerateTable.bind(this);\r\n this.yearsExprStringsChange = this.yearsExprStringsChange.bind(this);\r\n this.yearsList = this.yearsList.bind(this);\r\n this.props.getTablesPages(this.state.type_page).finally(() => {\r\n let selectedTable = this.props.formulmedinfo.tablesPages.tables[0];\r\n this.setState({\r\n selectedTable: selectedTable, selectedPage: selectedTable.pages[0]\r\n });\r\n });\r\n }\r\n onSelectTypePage = async (e) => {\r\n let type_page = parseInt(e.target.value, 10);\r\n await this.props.getTablesPages(type_page);\r\n let selectedTable = this.props.formulmedinfo.tablesPages.tables[0];\r\n this.setState({\r\n type_page, selectedTable: selectedTable, selectedPage: selectedTable.pages[0]\r\n });\r\n }\r\n onClickTable = (e) => {\r\n let tableId = parseInt(e.target.value, 10);\r\n let selectedTable = this.props.formulmedinfo.tablesPages.tables.filter(t => t.tableId === tableId)[0];\r\n this.setState({\r\n selectedTable,\r\n selectedPage: selectedTable.pages[0]\r\n });\r\n }\r\n showListTables() {\r\n if (this.props.formulmedinfo.tablesPages == null) return '';\r\n return \r\n {':'}\r\n \r\n \r\n {this.props.formulmedinfo.tablesPages.tables.map(l => )}\r\n \r\n ;\r\n }\r\n onClickPage = (e) => {\r\n let pageId = parseInt(e.target.value, 10);\r\n let selectedPage = this.state.selectedTable.pages.filter(t => t.pageId === pageId)[0];\r\n this.setState({selectedPage});\r\n }\r\n showListPages() {\r\n if (this.state.selectedTable == null) return '';\r\n return \r\n {':'}\r\n \r\n \r\n {this.state.selectedTable.pages.map(p => )}\r\n \r\n ;\r\n }\r\n begYearChange(values) {\r\n let vl = parseInt(values.value, 10); //values.intValue === undefined ? 2017 : values.intValue;\r\n this.setState({ begYear:vl });\r\n }\r\n endYearChange(values) {\r\n let vl = parseInt(values.value, 10); // values.intValue === undefined ? 2018 : values.intValue;\r\n this.setState({ endYear: vl });\r\n }\r\n validYearsMessage() {\r\n if (this.state.type_per > 1) return '';\r\n if (this.state.begYear >= this.state.endYear) {\r\n return
    Первый год не должен быть равен или больше чем второй
    ;\r\n }\r\n if ( this.state.endYear - this.state.begYear > 10) {\r\n return
    Количество лет не должно быть больше 10
    ;\r\n }\r\n }\r\n validYearsExprStrings() {\r\n if (this.state.type_per > 1) return '';\r\n if (this.state.yearsExprStrings == null || this.state.yearsExprStrings.length === 0)\r\n return
    Введите выражение
    ;\r\n //проверка регулярного выражения\r\n //let regexp = /(\\d{4}(,)?|\\d{4}-\\d{4}(,)?)+/;\r\n let regexp = /\\d{4,4}-\\d{4,4}|\\d{4,4}/gi;\r\n let test = regexp.test(this.state.yearsExprStrings);\r\n if (!test)\r\n return
    Неправильное выражение
    ;\r\n if (this.state.years.length>10)\r\n return
    Количество годов больше 10
    ;\r\n //let ar =this.state.yearsExprStrings.match(regexp);\r\n //return
    test={test?'true':'false'} {ar.join(',')}
    \r\n }\r\n yearsList() {\r\n if (this.state.years.length > 0)\r\n return {this.state.years.join(',')}\r\n }\r\n yearsExprStringsChange = (e) => {\r\n //получить масив годов\r\n let yearsExprStrings = e.target.value;\r\n let years = [];\r\n let regexp = /(\\d{4,4}-\\d{4,4})|(\\d{4,4})/gi;\r\n let test = regexp.test(yearsExprStrings);\r\n if (test) {\r\n let ar = yearsExprStrings.match(regexp);\r\n for (var i = 0; i < ar.length; i++) {\r\n let it = ar[i];\r\n if (it.indexOf('-')!==-1) {\r\n let ar1 = it.split('-');\r\n let yy1 = parseInt(ar1[0], 10);\r\n let yy2 = parseInt(ar1[1], 10);\r\n //eslint-disable-next-line\r\n for (var yi = yy1; yi <= yy2; yi++) {\r\n //eslint-disable-next-line\r\n if (years.filter(y1 => y1 === yi).length === 0) {\r\n years.push(yi);\r\n }\r\n }\r\n } else {\r\n let ye = parseInt(it, 10);\r\n if (years.filter(y1 => y1 === ye).length === 0) {\r\n years.push(ye);\r\n }\r\n }\r\n }\r\n years=years.sort();\r\n }\r\n this.setState({ yearsExprStrings, years});\r\n }\r\n showRangeYears() {\r\n if (this.state.type_per === 1) {\r\n return \r\n \r\n \r\n {':'}\r\n \r\n  \r\n {this.yearsList()}\r\n {this.validYearsExprStrings()}\r\n \r\n \r\n \r\n ;\r\n /*\r\n return \r\n \r\n \r\n \r\n {':'}\r\n \r\n this.begYearChange(values)} />\r\n \r\n \r\n \r\n \r\n \r\n \r\n {':'}\r\n \r\n this.endYearChange(values)} />\r\n \r\n {this.validYearsMessage()}\r\n \r\n ;\r\n */\r\n } else {\r\n return \r\n \r\n \r\n {':'}\r\n \r\n this.begYearChange(values)} />\r\n \r\n \r\n ;\r\n }\r\n }\r\n onGenerateTable = async (e) => {\r\n e.preventDefault();\r\n let kobjs = null;\r\n switch (this.state.tobj) {\r\n case 1:\r\n kobjs = [\"00\"];\r\n break;\r\n case 2:\r\n // if (this.props.userInfo.user.accessLevel === 2) {\r\n kobjs = [];\r\n kobjs.push(this.state.obl.kobl);\r\n // } else {\r\n // kobjs = this.state.kobls;\r\n // }\r\n break;\r\n case 3:\r\n //if (this.props.userInfo.user.accessLevel === 3) {\r\n kobjs = [];\r\n kobjs.push(this.state.raion.kraion);\r\n //} else {\r\n // kobjs = this.state.kraions;\r\n //}\r\n break;\r\n case 4:\r\n kobjs = [];\r\n kobjs.push(this.state.org.korg/*this.props.userInfo.user.kodOrg*/);\r\n break;\r\n default:\r\n }\r\n if (this.state.type_per === 1 && this.state.years.length === 0) {\r\n alert(\"Выберте года\");\r\n return;\r\n } else if (this.state.begYear == null || this.state.begYear===0) {\r\n alert(\"Выберте год\");\r\n return;\r\n }\r\n if (kobjs.length === 0) {\r\n alert(\"Выберте обьекты\");\r\n return;\r\n }\r\n let body = {\r\n typePage: this.state.type_page,//1,2\r\n tableId: this.state.selectedTable.tableId,\r\n pageId: this.state.selectedPage.pageId,\r\n typePer: this.state.type_per,\r\n years: this.state.years,\r\n begYear: this.state.begYear,\r\n endYear: this.state.endYear,\r\n tobj: this.state.tobj,\r\n kobjs,\r\n isCreateDiagram: this.state.isCreateDiagram,\r\n typeDiagram: this.state.type_diagram\r\n }; \r\n this.setState({ isLoading: true });\r\n let absoluteUrl = `${document.location.protocol}//${document.location.host}/Medinfo/generate/Excel`;\r\n let fileName = `${this.state.begYear}_${this.state.type_page}_${this.state.selectedTable.kod}_${this.state.selectedPage.kod}_${this.state.type_per}_${this.state.tobj}.xlsx`;\r\n var token = this.props.userInfo.user.token;\r\n const response = await fetch(absoluteUrl, {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`,\r\n 'Content-Type': 'application/json'\r\n },\r\n body: JSON.stringify(body)\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const blob = await response.blob();\r\n FileSaver.saveAs(blob, fileName);\r\n this.setState({ isLoading: false });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n }\r\n showTypesDiagram(){\r\n if (this.state.isCreateDiagram === false) return '';\r\n return \r\n \r\n \r\n {':'}\r\n \r\n this.setState({ type_diagram: parseInt(e.target.value, 10) })}>\r\n {arTypeDiagram.filter(f => !(this.state.type_page === 2 && f.id === 5) && this.state.tobj<3).map(it => )}\r\n \r\n \r\n \r\n ;\r\n }\r\n render() {\r\n return
    \r\n

    \r\n {this.props.formulmedinfo.isLoading === true ? \r\n \r\n
    {I18n.t('wait')}{' '}
    \r\n \r\n
    : ''}\r\n \r\n \r\n \r\n {':'}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {this.showListTables()}\r\n \r\n \r\n \r\n \r\n {this.showListPages()}\r\n \r\n \r\n \r\n \r\n \r\n {':'}\r\n \r\n this.setState({ type_per: parseInt(e.target.value, 10) })}>\r\n {arTypePers.map(it => )}\r\n \r\n \r\n \r\n \r\n {this.showRangeYears()}\r\n this.setState({ tobj })}\r\n setObl={(obl) => this.setState({ obl })}\r\n setRaion={(raion) => this.setState({ raion })}\r\n setOrg={(org) => this.setState({ org })}\r\n />\r\n \r\n \r\n \r\n \r\n {':'}\r\n \r\n this.setState({ isCreateDiagram: e.target.checked })}>\r\n \r\n \r\n \r\n \r\n {this.showTypesDiagram()}\r\n {this.state.isLoading === true ? \r\n \r\n
    {I18n.t('wait')}{' '}
    \r\n \r\n
    : ''}\r\n {this.props.formulmedinfo.error != null ? \r\n \r\n {this.props.formulmedinfo.error}\r\n \r\n : ''}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n ;\r\n }\r\n}//\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators(actionCreators, dispatch)\r\n)(GenMedinfoTable);","import React, { Component, Fragment } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { FormGroup, FormControl, ControlLabel, Row, Col } from 'react-bootstrap';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\n\r\n//import SelectOrgModal from '../Modals/SelectOrgModal';\r\nimport { Typeahead } from 'react-bootstrap-typeahead';\r\n\r\nimport { actionCreators } from '../../store/Nsi';\r\nimport { getNameLocalize } from '../Constants';\r\n\r\nclass SelectObject2 extends Component {\r\n constructor(props) {\r\n super(props);\r\n let kobl, kraion, korg, selectOrg;\r\n let accessLevel = props.userInfo.user.accessLevel;\r\n //var self = this;\r\n if (props.obl == null) {\r\n kobl = props.userInfo.user.kodObl;\r\n props.setObl({ kobl, nameRu: props.userInfo.user.nameObl, nameKz: props.userInfo.user.nameOblKz});\r\n this.props.getNs('orgs', [{ name: \"obl\", value: kobl }]);\r\n } else {\r\n kobl = props.obl.kobl;\r\n }\r\n if (props.raion == null) {\r\n kraion = props.userInfo.user.kodRaion.substring(0, 4);\r\n props.setRaion({ kraion, nameRu: props.userInfo.user.nameRaion, nameKz: props.userInfo.user.nameRaionKz});\r\n } else {\r\n kraion = props.raion.kraion;\r\n }\r\n if (props.isNotOrg !== true) {\r\n if (props.org == null) {\r\n korg = props.userInfo.user.kodOrg;\r\n selectOrg = { korg, nameRu: props.userInfo.user.nameOrg, nameKz: props.userInfo.user.nameOrgKz};\r\n props.setOrg(selectOrg);\r\n } else {\r\n korg = props.org.korg;\r\n if (props.userInfo.user.kodOrg === props.org.korg) {\r\n selectOrg = { korg, nameRu: props.userInfo.user.nameOrg, nameKz: props.userInfo.user.nameOrgKz};\r\n }\r\n }\r\n }\r\n /*\r\n tobj={this.state.tobj}\r\n obl={this.state.obl}\r\n raion={this.state.raion}\r\n org={this.state.org}\r\n */\r\n let tobj = props.tobj == null ? /*props.userInfo.user.accessLevel*/1 : props.tobj;\r\n this.state = {\r\n kobl,\r\n kraion,\r\n korg,\r\n accessLevel,\r\n selectOrg,\r\n tobj: tobj, // тип обьекта 1 – РК; 2 – область; 3 - район; 4 - организация (доступ зависит от пользователя)\r\n }\r\n\r\n this.typeahead = null;\r\n this.onSelectTobj = this.onSelectTobj.bind(this);\r\n this.onSelectKobl = this.onSelectKobl.bind(this);\r\n this.onSelectKraion = this.onSelectKraion.bind(this);\r\n this.onChangeOrg = this.onChangeOrg.bind(this);\r\n this.filterRaion = this.filterRaion.bind(this);\r\n if (props.nsi.allobls.length === 0) {\r\n props.getNs('allobls');\r\n }\r\n\r\n if (props.nsi.allraions.length === 0) {\r\n props.getNs('allraions');\r\n /*.finally(() => {\r\n self.setState({\r\n kobl: props.userInfo.user.kodObl,\r\n kraion: props.userInfo.user.kodRaion.substring(0, 4),\r\n korg: props.userInfo.user.kodOrg\r\n });\r\n });*/\r\n }\r\n }\r\n /*\r\n componentWillMount() {\r\n // This method runs when the component is first added to the page\r\n \r\n \r\n }\r\n */\r\n componentWillReceiveProps(nextProps) {\r\n // This method runs when incoming props (e.g., route params) change\r\n if (this.typeahead != null)\r\n this.typeahead.getInstance().clear();\r\n }\r\n onSelectTobj(e) {\r\n let tobj = parseInt(e.target.value, 10);\r\n this.setState({ tobj });\r\n this.props.setTobj(tobj);\r\n }\r\n onSelectKobl(e) {\r\n let kobl = e.target.value;\r\n let first_raion = this.props.nsi.allraions.filter(r => r.obl === kobl);\r\n this.setState({\r\n kobl,\r\n kraion: first_raion === undefined || first_raion.length === 0 ? undefined : first_raion[0].idRaion,\r\n korg: undefined\r\n });\r\n if (first_raion != null || first_raion.length > 0) {\r\n this.props.setRaion({ kraion: first_raion[0].idRaion, nameRu: first_raion[0].nameRu });\r\n }\r\n let nameRu = this.props.nsi.allobls.filter(r => r.kod === kobl)[0].nameRu;\r\n this.props.setObl({ kobl, nameRu });\r\n if (this.state.tobj > 3) {\r\n this.typeahead.getInstance().clear();\r\n //загрузить организации\r\n this.props.getNs('orgs', [{ name: \"obl\", value: kobl }]);\r\n }\r\n }\r\n onSelectKraion(e) {\r\n let kraion = e.target.value;\r\n this.setState({\r\n kraion,\r\n korg: undefined\r\n });\r\n if (this.state.tobj > 3) {\r\n this.typeahead.getInstance().clear();\r\n }\r\n let nameRu = this.props.nsi.allraions.filter(r => r.idRaion === kraion)[0].nameRu;\r\n this.props.setRaion({ kraion, nameRu });\r\n }\r\n onChangeOrg(selected) {\r\n if (selected.length > 0) {\r\n let korg = selected[0].kobj;\r\n let selectOrg = { korg, nameRu: selected[0].nameRu }\r\n this.setState({ korg, selectOrg });\r\n this.props.setOrg(selectOrg);\r\n return;\r\n }\r\n this.setState({ korg: undefined, selectOrg: undefined });\r\n this.props.setOrg(undefined);\r\n }\r\n showSelectObl() {\r\n let cssDispl = this.state.tobj > 1 ? \"block\" : \"none\";\r\n return \r\n \r\n \r\n {':'}\r\n \r\n \r\n \r\n \r\n ;\r\n }\r\n filterRaion(rai, year) {\r\n if (year == null) return true;\r\n let ye = typeof year === 'string' ? parseInt(year, 10) : year;\r\n let dtBeg = rai.dtBeg == null ? null : new Date(rai.dtBeg);\r\n if (dtBeg != null && dtBeg.getFullYear() > ye) return false;\r\n let dtEnd = rai.dtEnd == null ? null : new Date(rai.dtEnd);\r\n if (dtEnd != null && ye >= dtEnd.getFullYear()) return false;\r\n return true;\r\n }\r\n showSelectRaions() {\r\n let cssDispl = this.state.tobj > 2 ? \"block\" : \"none\";\r\n return \r\n \r\n \r\n {':'}\r\n \r\n \r\n \r\n \r\n ;\r\n }\r\n showSelectOrgs() {\r\n let cssDispl = (this.state.tobj > 3 /*|| this.state.accessLevel > 3*/) ? \"block\" : \"none\";\r\n\r\n return \r\n \r\n \r\n {':'}\r\n \r\n this.typeahead = ref}\r\n labelKey={this.props.i18n.locale[0] === 'r' ? \"nameRu\" : \"nameKz\"}\r\n options={this.props.nsi.orgs.filter(o => o.raion === this.state.kraion)}\r\n placeholder={`${I18n.t(\"selectOrg\")}...`}\r\n onChange={this.onChangeOrg} />

    {this.state.selectOrg == null ? \"\" : getNameLocalize(this.props.i18n, this.state.selectOrg)}

    \r\n \r\n
    \r\n
    ;\r\n }\r\n render() {\r\n let isOrg = this.props.isNotOrg === true ? false : true;\r\n return (\r\n \r\n \r\n \r\n \r\n {':'}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {this.showSelectObl()}\r\n {this.showSelectRaions()}\r\n {isOrg ? this.showSelectOrgs() : ''}\r\n \r\n );\r\n }\r\n}\r\n\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators(actionCreators, dispatch)\r\n)(SelectObject2);","import React, { Component, Fragment } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { Form, Button, FormGroup, FormControl, ControlLabel, Row, Col, Alert, Checkbox } from 'react-bootstrap';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport NumberFormat from 'react-number-format';\r\nimport * as FileSaver from 'file-saver';\r\nimport { actionCreators } from '../../store/Medinfo/FormulMedinfo';\r\n//import SelectMultiObjects from '../common/SelectMultiObjects'\r\nimport SelectObject2 from '../common/SelectObject2';\r\nimport { arTypePers, arTypeDiagram, getNameLocalize, periods, years as arYears } from '../Constants';\r\n//import loading from '../../images/loading.gif';\r\nconst cyrYear = (new Date()).getFullYear();\r\nclass GenMedinfoTable2 extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n type_page: 1,//1,2\r\n selectedPart: undefined,\r\n selectedTable: undefined,\r\n selectedPage: undefined,\r\n type_per: 1,\r\n begYear: cyrYear,\r\n endYear: cyrYear-1,\r\n //isCustomYears: false,//если используется строка годов\r\n yearsExprStrings: `${cyrYear - 1},${cyrYear}`,//\"2017-2018\",//строка годов (например - 2017-2018,2021)\r\n years: [cyrYear-1, cyrYear], //массив годов из строки yearsExprStrings \r\n tobj: 1,//props.userInfo.user.accessLevel, // тип обьекта 1 – РК; 2 – область; 3 - район; 4 - организация (доступ зависит от пользователя)\r\n obl: undefined,\r\n raion: undefined,\r\n org: { korg: this.props.userInfo.user.kodOrg },//, undefined,\r\n //kobls: [],\r\n //kraions: [],\r\n //korgs: [],\r\n isOneMonth: true,\r\n isForOrgs: false,\r\n oneMonth: \"101\",\r\n isCreateDiagram: false,\r\n type_diagram: 1,\r\n diagramColumn: 1,\r\n diagramPeriod: cyrYear,\r\n diagramLang: 'kk',\r\n isLoading: false,\r\n erMonthQuart: undefined\r\n };\r\n //this.onClickTable = this.onClickTable.bind(this);\r\n this.onClickPart = this.onClickPart.bind(this);\r\n this.onClickPage = this.onClickPage.bind(this);\r\n this.showListPages = this.showListPages.bind(this);\r\n this.begYearChange = this.begYearChange.bind(this);\r\n this.endYearChange = this.endYearChange.bind(this);\r\n this.onGenerateTable = this.onGenerateTable.bind(this);\r\n this.yearsExprStringsChange = this.yearsExprStringsChange.bind(this);\r\n this.yearsList = this.yearsList.bind(this);\r\n this.showSelectColumn = this.showSelectColumn.bind(this);\r\n this.onSelectDiagramColumn = this.onSelectDiagramColumn.bind(this);\r\n this.showSelectDiagramPeriod = this.showSelectDiagramPeriod.bind(this);\r\n this.onSelectDiagramPeriod = this.onSelectDiagramPeriod.bind(this);\r\n this.showSelectDiagramLang = this.showSelectDiagramLang.bind(this);\r\n this.onSelectDiagramLang = this.onSelectDiagramLang.bind(this);\r\n this.showWarningDiagram = this.showWarningDiagram.bind(this);\r\n this.onSetTobj = this.onSetTobj.bind(this);\r\n this.setIsForOrgs = this.setIsForOrgs.bind(this);\r\n this.changeTypePer = this.changeTypePer.bind(this);\r\n\r\n /*this.props.getTablesPages(this.state.type_page).finally(() => {\r\n let selectedTable = this.props.formulmedinfo.tablesPages.tables[0];\r\n this.setState({\r\n selectedTable: selectedTable, selectedPage: selectedTable.pages[0]\r\n });\r\n });\r\n */\r\n //if (I18nState.locale == 'ru') {\r\n\r\n //}\r\n this.props.getParts().finally(() => {\r\n let selectedPart = (this.props.formulmedinfo.parts != null && this.props.formulmedinfo.parts.length > 0) ? this.props.formulmedinfo.parts[0] : undefined;\r\n //this.setState({ selectedPart });\r\n this.props.getPagesOfPart(selectedPart.partId).finally(() => {\r\n let selectedPage = (this.props.formulmedinfo.partPages != null && this.props.formulmedinfo.partPages.length > 0) ? this.props.formulmedinfo.partPages[0] : undefined;\r\n this.setState({ selectedPart, selectedPage, type_page: selectedPage.typePage, diagramColumn: 1, type_per: 1 });\r\n });\r\n });\r\n }\r\n //onSelectPart = async (e) => {\r\n // /*\r\n // let type_page = parseInt(e.target.value, 10);\r\n // await this.props.getTablesPages(type_page);\r\n // let selectedTable = this.props.formulmedinfo.tablesPages.tables[0];\r\n // this.setState({\r\n // type_page, selectedTable: selectedTable, selectedPage: selectedTable.pages[0]\r\n // });\r\n // */\r\n //}\r\n onClickPart = (e) => {\r\n let partId = parseInt(e.target.value, 10);\r\n let selectedPart = this.props.formulmedinfo.parts.filter(t => t.partId === partId)[0];\r\n //this.setState({ selectedPart });\r\n //todo load pages for part\r\n this.props.getPagesOfPart(partId).finally(() => {\r\n let selectedPage = (this.props.formulmedinfo.partPages != null && this.props.formulmedinfo.partPages.length > 0) ? this.props.formulmedinfo.partPages[0] : undefined;\r\n this.setState({ selectedPart, selectedPage, type_page: selectedPage.typePage, diagramColumn: 1, type_per: 1 });\r\n });\r\n }\r\n showListParts() {\r\n if (this.props.formulmedinfo.parts == null || this.props.formulmedinfo.parts.length === 0) return '';\r\n return \r\n {':'}\r\n \r\n \r\n {this.props.formulmedinfo.parts.map(l => )}\r\n \r\n ;\r\n }\r\n onClickPage = (e) => {\r\n let pageId = parseInt(e.target.value, 10);\r\n let selectedPage = this.props.formulmedinfo.partPages.filter(t => t.pageId === pageId)[0];\r\n this.setState({ selectedPage, type_page: selectedPage.typePage, diagramColumn: 1 });\r\n }\r\n showListPages() {\r\n if (this.state.selectedPart == null || this.props.formulmedinfo.partPages == null || this.props.formulmedinfo.partPages.length === 0) return '';\r\n return \r\n {':'}\r\n \r\n \r\n {this.props.formulmedinfo.partPages.map(p => )}\r\n \r\n ;\r\n }\r\n begYearChange(values) {\r\n let vl = parseInt(values.value, 10); //values.intValue === undefined ? 2017 : values.intValue;\r\n this.setState({ begYear: vl, erMonthQuart: undefined });\r\n }\r\n endYearChange(values) {\r\n let vl = parseInt(values.value, 10); // values.intValue === undefined ? 2018 : values.intValue;\r\n this.setState({ endYear: vl });\r\n }\r\n /*\r\n validYearsMessage() {\r\n if (this.state.type_per > 1) return '';\r\n if (this.state.begYear >= this.state.endYear) {\r\n return
    Первый год не должен быть равен или больше чем второй
    ;\r\n }\r\n if (this.state.endYear - this.state.begYear > 10) {\r\n return
    Количество лет не должно быть больше 10
    ;\r\n }\r\n }\r\n */\r\n validYearsExprStrings() {\r\n if (this.state.type_per > 1) return '';\r\n if (this.state.yearsExprStrings == null || this.state.yearsExprStrings.length === 0)\r\n return
    Введите выражение
    ;\r\n //проверка регулярного выражения\r\n //let regexp = /(\\d{4}(,)?|\\d{4}-\\d{4}(,)?)+/;\r\n let regexp = /\\d{4,4}-\\d{4,4}|\\d{4,4}/gi;\r\n let test = regexp.test(this.state.yearsExprStrings);\r\n if (!test)\r\n return
    ;\r\n if (this.state.years.length > 10)\r\n return
    ;\r\n if (this.state.years.length === 0)\r\n return '';\r\n if (this.state.years[0] < arYears[0]) {\r\n return
    ;\r\n }\r\n let lastPos = arYears.length - 1;\r\n let lastPos0 = this.state.years.length - 1;\r\n if (this.state.years[lastPos0] > arYears[lastPos]) {\r\n return
    ;\r\n }\r\n //let ar =this.state.yearsExprStrings.match(regexp);\r\n //return
    test={test?'true':'false'} {ar.join(',')}
    \r\n }\r\n yearsList() {\r\n if (this.state.years.length > 0)\r\n return {this.state.years.join(',')}\r\n }\r\n yearsExprStringsChange = (e) => {\r\n //получить масив годов\r\n let yearsExprStrings = e.target.value;\r\n let years = [];\r\n let regexp = /(\\d{4,4}-\\d{4,4})|(\\d{4,4})/gi;\r\n let test = regexp.test(yearsExprStrings);\r\n let diagramPeriod = this.state.diagramPeriod;\r\n if (test) {\r\n let ar = yearsExprStrings.match(regexp);\r\n for (var i = 0; i < ar.length; i++) {\r\n let it = ar[i];\r\n if (it.indexOf('-') !== -1) {\r\n let ar1 = it.split('-');\r\n let yy1 = parseInt(ar1[0], 10);\r\n let yy2 = parseInt(ar1[1], 10);\r\n //eslint-disable-next-line\r\n for (var yi = yy1; yi <= yy2; yi++) {\r\n //eslint-disable-next-line\r\n if (years.filter(y1 => y1 === yi).length === 0) {\r\n years.push(yi);\r\n }\r\n }\r\n } else {\r\n let ye = parseInt(it, 10);\r\n if (years.filter(y1 => y1 === ye).length === 0) {\r\n years.push(ye);\r\n }\r\n }\r\n }\r\n years = years.sort();\r\n if (years.length > 0)\r\n diagramPeriod = years[0];\r\n }\r\n this.setState({ yearsExprStrings, years, diagramPeriod, erMonthQuart: undefined });\r\n }\r\n showRangeYears() {\r\n if (this.state.type_per === 1 || this.state.type_per === 3) {\r\n return \r\n \r\n \r\n {':'}\r\n \r\n  \r\n {this.yearsList()}\r\n {this.validYearsExprStrings()}\r\n \r\n \r\n \r\n \r\n {this.state.type_per === 3 ? \r\n \r\n \r\n {':'}\r\n \r\n \r\n \r\n \r\n \r\n : ''}\r\n ;\r\n /*\r\n return \r\n \r\n \r\n \r\n {':'}\r\n \r\n this.begYearChange(values)} />\r\n \r\n \r\n \r\n \r\n \r\n \r\n {':'}\r\n \r\n this.endYearChange(values)} />\r\n \r\n {this.validYearsMessage()}\r\n \r\n ;\r\n */\r\n } else {\r\n return \r\n \r\n \r\n {':'}\r\n \r\n this.begYearChange(values)} autoComplete=\"off\" />\r\n \r\n \r\n \r\n {this.state.type_per === 3 ? \r\n \r\n \r\n {':'}\r\n \r\n \r\n \r\n \r\n \r\n : ''}\r\n {this.state.type_per === 5 ? \r\n \r\n \r\n {':'}\r\n \r\n \r\n \r\n \r\n \r\n : ''}\r\n ;\r\n }\r\n }\r\n onGenerateTable = async (e) => {\r\n e.preventDefault();\r\n let kobjs = null;\r\n this.setState({ erMonthQuart: undefined });\r\n switch (this.state.tobj) {\r\n case 1:\r\n kobjs = [\"00\"];\r\n break;\r\n case 2:\r\n // if (this.props.userInfo.user.accessLevel === 2) {\r\n kobjs = [];\r\n kobjs.push(this.state.obl.kobl);\r\n // } else {\r\n // kobjs = this.state.kobls;\r\n // }\r\n break;\r\n case 3:\r\n //if (this.props.userInfo.user.accessLevel === 3) {\r\n kobjs = [];\r\n kobjs.push(this.state.raion.kraion);\r\n //} else {\r\n // kobjs = this.state.kraions;\r\n //}\r\n break;\r\n case 4:\r\n kobjs = [];\r\n kobjs.push(this.state.org.korg/*this.props.userInfo.user.kodOrg*/);\r\n break;\r\n default:\r\n }\r\n if (this.state.type_per === 1 && this.state.years.length === 0) {\r\n alert(\"Выберте года\");\r\n return;\r\n } else if (this.state.begYear == null || this.state.begYear === 0) {\r\n alert(\"Выберте год\");\r\n return;\r\n }\r\n if (kobjs.length === 0) {\r\n alert(\"Выберте обьекты\");\r\n return;\r\n }\r\n //if (this.state.type_per != 1) {\r\n switch (this.state.type_per) {\r\n case 1:\r\n if (this.state.tobj != 1) {\r\n for (var i in this.state.years) {\r\n if (this.state.years[i] < 2023) {\r\n // let ery = I18n.t(\"erYear\", { year: this.state.years[i] });\r\n // console.log(ery);\r\n //this.setState({ erMonthQuart: I18n.t(\"erYear\", { year: this.state.years[i] }) });\r\n this.setState({ erMonthQuart: I18n.t(\"erYear2\") });\r\n return;\r\n }\r\n }\r\n }\r\n break;\r\n case 3: //по одному месяцу за несколько лет\r\n for (var i in this.state.years) {\r\n if (this.state.years[i] < 2024) {\r\n this.setState({ erMonthQuart: I18n.t(\"erMonthQuart\") });\r\n return;\r\n }\r\n }\r\n break;\r\n case 2://квартал данные месяцев без наростания с начала года\r\n case 4://квартал данные месяцев с наростанием с начала года\r\n case 5://квартал по выбору\r\n if (this.state.begYear < 2024) {\r\n this.setState({ erMonthQuart: I18n.t(\"erMonthQuart\") });\r\n return;\r\n }\r\n break;\r\n default:\r\n }\r\n //}\r\n let years = this.state.years;\r\n //if (this.state.type_per === 3) {\r\n // years = [];\r\n // years.push(this.state.years[0]);\r\n //}\r\n let body = {\r\n typePage: this.state.type_page,//1,2\r\n tableId: this.state.selectedPage.tableId,//this.state.selectedTable.tableId,\r\n pageId: this.state.selectedPage.pageId,\r\n typePer: this.state.type_per,\r\n years: years,\r\n begYear: this.state.begYear,\r\n endYear: this.state.endYear,\r\n tobj: this.state.tobj,\r\n kobjs,\r\n isOneMonth: this.state.isOneMonth,\r\n isForOrgs: this.state.isForOrgs,\r\n oneMonth: this.state.oneMonth,\r\n isCreateDiagram: this.state.isCreateDiagram,\r\n typeDiagram: this.state.type_diagram,\r\n diagramColumn: this.state.diagramColumn,\r\n diagramPeriod: this.state.diagramPeriod,\r\n diagramLang: this.state.diagramLang\r\n };\r\n this.setState({ isLoading: true });\r\n let absoluteUrl = `${document.location.protocol}//${document.location.host}/Medinfo/generate/Excel`;\r\n let fileName = `${this.state.type_per === 1 || this.state.type_per === 3 ? years[0] : this.state.begYear}_${this.state.type_page}_${this.state.selectedPage.tableKod}_${this.state.selectedPage.pageKod}_${this.state.type_per}_${this.state.tobj}.xlsx`;\r\n var token = this.props.userInfo.user.token;\r\n const response = await fetch(absoluteUrl, {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`,\r\n 'Content-Type': 'application/json'\r\n },\r\n body: JSON.stringify(body)\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const blob = await response.blob();\r\n FileSaver.saveAs(blob, fileName);\r\n this.setState({ isLoading: false });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n }\r\n onSelectDiagramColumn = (e) => {\r\n let diagramColumn = parseInt(e.target.value, 10);\r\n this.setState({ diagramColumn });\r\n }\r\n showSelectColumn() {\r\n if (this.state.selectedPage == null)\r\n return '';\r\n return \r\n \r\n \r\n {':'}\r\n \r\n \r\n \r\n \r\n \r\n ;\r\n }\r\n onSelectDiagramPeriod = (e) => {\r\n let diagramPeriod = parseInt(e.target.value, 10);\r\n this.setState({ diagramPeriod });\r\n }\r\n showSelectDiagramPeriod() {\r\n if (this.state.selectedPage == null)\r\n return '';\r\n if (this.state.type_diagram !== 3 && this.state.type_diagram !== 5)\r\n return '';\r\n switch (this.state.type_per) {\r\n case 1:\r\n return \r\n \r\n \r\n {':'}\r\n \r\n \r\n \r\n \r\n \r\n ;\r\n //break;\r\n case 2://квартал данные месяцев с наростанием с начала года\r\n return \r\n \r\n \r\n {':'}\r\n \r\n \r\n \r\n \r\n \r\n ;\r\n // break;\r\n case 3:\r\n return \r\n \r\n \r\n {':'}\r\n \r\n \r\n \r\n \r\n \r\n ;\r\n //break;\r\n case 4://квартал данные месяцев без наростания с начала года\r\n return \r\n \r\n \r\n {':'}\r\n \r\n \r\n \r\n \r\n \r\n ;\r\n default:\r\n return '';\r\n }\r\n }\r\n onSelectDiagramLang = (e) => {\r\n let diagramLang = e.target.value;\r\n this.setState({ diagramLang });\r\n }\r\n showWarningDiagram() {\r\n if (this.state.type_diagram === 3 || this.state.type_diagram === 5 || this.state.years.length < 4)\r\n return '';\r\n return \r\n \r\n \r\n \r\n ;\r\n }\r\n showSelectDiagramLang() {\r\n return \r\n \r\n \r\n {':'}\r\n \r\n \r\n \r\n \r\n \r\n {this.showWarningDiagram()}\r\n ;\r\n }\r\n onSetTobj = (tobj) => {\r\n if (tobj < 3 && tobj != 2) {\r\n this.setState({ tobj, isForOrgs: false });\r\n } else {\r\n this.setState({ tobj, isCreateDiagram: false, isForOrgs: false });\r\n }\r\n }\r\n showTypesDiagram() {\r\n if (this.state.isCreateDiagram === false/* && this.state.tobj > 3*/) return '';\r\n return \r\n \r\n \r\n {':'}\r\n \r\n this.setState({ type_diagram: parseInt(e.target.value, 10) })}>\r\n {arTypeDiagram.filter(f => !(this.state.type_page === 2 && f.id === 5) /*&& this.state.tobj<3*/).map(it => )}\r\n \r\n \r\n \r\n \r\n {this.showSelectDiagramPeriod()}\r\n {this.showSelectColumn()}\r\n {this.showSelectDiagramLang()}\r\n ;\r\n }\r\n setIsForOrgs(value) {\r\n if (this.state.tobj === 2 && value === true)\r\n this.setState({ isForOrgs: value, isCreateDiagram: false });\r\n else {\r\n this.setState({ isForOrgs: value });\r\n }\r\n }\r\n changeTypePer(e) {\r\n let type_per = parseInt(e.target.value, 10);\r\n let diagramPeriod = 0;//\r\n switch (type_per) {\r\n case 1://за год\r\n if (this.state.years.length > 0)\r\n diagramPeriod = this.state.years[0];\r\n break;\r\n case 2://за квартал данные по месяцам с наростания с начала года \r\n diagramPeriod = 1;\r\n break;\r\n case 3:\r\n diagramPeriod = 101;\r\n break;\r\n case 4://за квартал данные по месяцам только за месяц \r\n diagramPeriod = 1;\r\n break;\r\n case 5://за квартал данные по месяцам только за месяц \r\n diagramPeriod = 10;\r\n let oneMonth = \"10\";\r\n this.setState({ type_per, oneMonth, diagramPeriod });\r\n return;\r\n default:\r\n this.setState({ type_per });\r\n return;\r\n }\r\n this.setState({ type_per, diagramPeriod, erMonthQuart: undefined });\r\n }\r\n render() {\r\n return
    \r\n

    \r\n
    \r\n {this.props.formulmedinfo.isLoading === true ? \r\n \r\n
    {I18n.t('wait')}{' '}
    \r\n \r\n
    : ''}\r\n \r\n \r\n {this.showListParts()}\r\n \r\n \r\n \r\n \r\n {this.showListPages()}\r\n \r\n \r\n \r\n \r\n \r\n {':'}\r\n \r\n this.changeTypePer(e)}>\r\n {/*{arTypePers.filter(f => f.id === 1 || f.id === 3 || (this.state.selectedPart != null && this.state.selectedPart.partId != 20 && f.id === 2) || (this.state.selectedPart != null && this.state.selectedPart.partId === 20 && (f.id === 4 || f.id === 5 )))\r\n .map(it => )}*/}\r\n {arTypePers.filter(f => f.id === 1 || (this.state.selectedPart != null && this.state.selectedPart.partId === 20 && (f.id === 3 || f.id === 4 || f.id === 5)))\r\n .map(it => )}\r\n \r\n \r\n \r\n \r\n {this.showRangeYears()}\r\n {this.state.erMonthQuart != null ? \r\n \r\n {this.state.erMonthQuart}\r\n \r\n : \"\"}\r\n this.onSetTobj(tobj)}\r\n setObl={(obl) => this.setState({ obl })}\r\n setRaion={(raion) => this.setState({ raion })}\r\n setOrg={(org) => this.setState({ org })}\r\n />\r\n {this.state.tobj === 2 && this.state.selectedPage.typePage === 1 ?\r\n \r\n \r\n \r\n {':'}\r\n \r\n this.setIsForOrgs(e.target.checked)}>\r\n \r\n \r\n \r\n : ''}\r\n {(this.state.tobj < 3 && this.state.isForOrgs === false) || (this.state.selectedPage != null && this.state.selectedPage.typePage === 2) ?\r\n \r\n \r\n \r\n {':'}\r\n \r\n this.setState({ isCreateDiagram: e.target.checked })}>\r\n \r\n \r\n \r\n \r\n {this.showTypesDiagram()}\r\n : ''}\r\n {this.state.isLoading === true ? \r\n \r\n
    {' '}
    \r\n \r\n
    : ''}\r\n {this.props.formulmedinfo.error != null ? \r\n \r\n {this.props.formulmedinfo.error}\r\n \r\n : ''}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n ;\r\n }\r\n}//\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators(actionCreators, dispatch)\r\n)(GenMedinfoTable2);\r\n/*\r\n \r\n \r\n \r\n {':'}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {this.showListTables()}\r\n \r\n \r\n \r\n \r\n {this.showListPages()}\r\n \r\n \r\n */","import React, { Component } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport { Button, Col, FormGroup, FormControl, ControlLabel, Form, Row, Alert, Checkbox, Radio } from 'react-bootstrap';\r\n\r\nimport { actionCreators as actionCreatorsGen47 } from '../../store/Gen47';\r\nimport { actionCreators as actionCreatorsNsi } from '../../store/Nsi';\r\n\r\n\r\n\r\nimport { years, getCurrentYear } from '../Constants';\r\n\r\nclass Gen47Form extends Component {\r\n constructor(props) {\r\n super(props);\r\n let nowYear = getCurrentYear();\r\n this.state = {\r\n year: props.year !== undefined ? props.year : nowYear,\r\n kper: 4,//период\r\n kraz: 1, //разрез\r\n tobj: 3,//props.userInfo.user.accessLevel, // тип обьекта 1 – РК; 2 – область; 3 - район; 4 - организация (доступ зависит от пользователя)\r\n obl: undefined,\r\n kobl: props.userInfo.user.kodObl,\r\n raion: undefined,\r\n kobls: [],\r\n kraions: [],\r\n kform: '47',\r\n ktabs: [],\r\n isAllTabs:false,\r\n isGen47Complete: false\r\n };\r\n if (props.nsi.allobls.length === 0) props.getNs('allobls');\r\n if (props.nsi.allraions.length === 0) props.getNs('allraions');\r\n //if (props.nsi.sprform.length === 0) {\r\n // props.getNs('sprform');\r\n //}\r\n if (props.nsi.allsprtab.length === 0) {\r\n props.getNs('allsprtab');\r\n }\r\n if (props.nsi.sprraz.length === 0) props.getNs('sprraz');\r\n if (props.nsi.periods.length === 0) props.getNs('periods');\r\n this.onGen47Form = this.onGen47Form.bind(this);\r\n this.onSelectKobl = this.onSelectKobl.bind(this);\r\n this.onCheckRaion = this.onCheckRaion.bind(this);\r\n this.onCheckTab = this.onCheckTab.bind(this);\r\n this.onChangeIsAllTabs = this.onChangeIsAllTabs.bind(this);\r\n this.filterRaion = this.filterRaion.bind(this);\r\n }\r\n onGen47Form = (e) => {\r\n e.preventDefault();\r\n this.setState({ isSvodComplete: false });\r\n /*\r\n let kobjs = null;\r\n switch (this.state.tobj) {\r\n case 1:\r\n kobjs = [\"00\"];\r\n break;\r\n case 2:\r\n if (this.props.userInfo.user.accessLevel === 2) {\r\n kobjs = [];\r\n kobjs.push(this.state.obl.kobl);\r\n } else {\r\n kobjs = this.state.kobls;\r\n }\r\n break;\r\n case 3:\r\n if (this.props.userInfo.user.accessLevel === 3) {\r\n kobjs = [];\r\n kobjs.push(this.state.raion.kraion);\r\n } else {\r\n kobjs = this.state.kraions;\r\n }\r\n break;\r\n default:\r\n }\r\n */\r\n if (this.state.kraions.length === 0) {\r\n alert(\"Выберте районы\");\r\n return;\r\n }\r\n \r\n if (this.state.ktabs.length === 0 && this.state.isAllTabs === false) {\r\n alert(\"Выберте таблицы\");\r\n return;\r\n }\r\n this.props.gen47Form({\r\n year: this.state.year,\r\n kper: this.state.kper,\r\n kraz: this.state.kraz,\r\n tobj: this.state.tobj,//всегда 3 - районы\r\n kobjs: this.state.kraions,\r\n kform: this.state.kform,\r\n ktabs: this.state.ktabs,\r\n isAllTabs: this.state.isAllTabs\r\n });\r\n this.setState({ isGen47Complete: true });\r\n }\r\n onSelectYear = (e) => {\r\n let year = parseInt(e.target.value, 10);\r\n this.setState({ year });\r\n }\r\n onSelectKper = (e) => {\r\n let kper = parseInt(e.target.value, 10);\r\n this.setState({ kper });\r\n }\r\n onSelectKraz = (e) => {\r\n let kraz = parseInt(e.target.value, 10);\r\n this.setState({ kraz });\r\n }\r\n onSelectKobl(e) {\r\n let kobl = e.target.value;\r\n let first_raion = this.props.nsi.allraions.filter(r => r.obl === kobl);\r\n let nameRu = this.props.nsi.allobls.filter(r => r.kod === kobl)[0].nameRu;\r\n this.setState({\r\n kobl,\r\n obl: { kobl, nameRu },\r\n kraion: first_raion === undefined || first_raion.length === 0 ? undefined : first_raion[0].idRaion,\r\n kobls: [], kraions: []\r\n });\r\n }\r\n onSelectKForm = (e) => {\r\n let kform = e.target.value;\r\n this.setState({ kform, ktabs:[] });\r\n }\r\n getValidationStateRaions() {\r\n const length = this.state.kraions.length;\r\n if (length > 0)\r\n return 'success';\r\n if (length === 0) {\r\n return 'error';\r\n }\r\n return null;\r\n }\r\n onCheckRaion = (e) => {\r\n let checked = e.target.checked;\r\n let kraion = e.target.value;\r\n let kraions = [...this.state.kraions];\r\n if (checked) {\r\n kraions.push(kraion);\r\n } else {\r\n let ind = kraions.indexOf(kraion);\r\n kraions.splice(ind, 1);\r\n }\r\n this.setState({ kraions });\r\n }\r\n getValidationStateTables() {\r\n const length = this.state.ktabs.length;\r\n if (length > 0 || this.state.isAllTabs===true)\r\n return 'success';\r\n if (length === 0) {\r\n return 'error';\r\n }\r\n return null;\r\n }\r\n onCheckTab = (e) => {\r\n let checked = e.target.checked;\r\n let kf = e.target.value;\r\n let ktabs = [...this.state.ktabs];\r\n if (checked) {\r\n ktabs.push(kf);\r\n } else {\r\n let ind = ktabs.indexOf(kf);\r\n ktabs.splice(ind, 1);\r\n }\r\n this.setState({ ktabs });\r\n }\r\n onChangeIsAllTabs(e) {\r\n let vl = e.target.value;\r\n let checked = e.target.checked;\r\n if (vl === \"1\" && checked)\r\n this.setState({ isAllTabs: true, ktabs: [] });\r\n else\r\n this.setState({ isAllTabs: false });\r\n }\r\n renderErrors = () => {\r\n //console.dir(this.props.gen47.statusGen47);\r\n if (this.props.gen47.statusGen47 != null && this.props.gen47.statusGen47.dictErrors != null\r\n && Object.entries(this.props.gen47.statusGen47.dictErrors).length>0\r\n /*this.props.gen47.statusGen47.successed === false*/) {\r\n return (\r\n \r\n
    При генерации были обнаружены следующие ошибки в формулах (обратитесь к разаботчику):
    \r\n {Object.entries(this.props.gen47.statusGen47.dictErrors).map((val) =>
    {val[0]} ошибка: {val[1]}
    )}\r\n \r\n
    );\r\n } else {\r\n return '';\r\n }\r\n }\r\n filterRaion(rai, year) {\r\n if (year == null) return true;\r\n let ye = typeof year === 'string' ? parseInt(year, 10) : year;\r\n let dtBeg = rai.dtBeg == null ? null : new Date(rai.dtBeg);\r\n if (dtBeg != null && dtBeg.getFullYear() > ye) return false;\r\n let dtEnd = rai.dtEnd == null ? null : new Date(rai.dtEnd);\r\n if (dtEnd != null && ye >= dtEnd.getFullYear()) return false;\r\n return true;\r\n }\r\n //\r\n render() {\r\n let isReadOnLy = this.props.userInfo.user.roles.filter(r => r === 'UserReadData').length > 0;\r\n if (isReadOnLy === true)\r\n return \r\n else\r\n return
    \r\n
    Генерация 47 формы
    \r\n \r\n {':'}\r\n \r\n \r\n {years.map(it => )}\r\n \r\n \r\n \r\n {':'}\r\n \r\n {this.props.nsi.periods.map(it => )}\r\n \r\n \r\n \r\n {':'}\r\n \r\n {this.props.nsi.sprraz.map(it => )}\r\n \r\n \r\n \r\n {':'}\r\n \r\n {this.props.userInfo.user.accessLevel > 1 ?
    {this.state.kobl} {this.props.userInfo.user.nameObl}
    :\r\n }\r\n \r\n
    \r\n \r\n {':'}\r\n \r\n {this.props.userInfo.user.accessLevel > 2 ?
    {this.state.kraion} {this.props.userInfo.user.nameRaion}
    :\r\n this.props.nsi.allraions.filter(r => r.obl === this.state.kobl && this.filterRaion(r, this.state.year)).map(it => {it.nameRu})}\r\n \r\n
    \r\n \r\n {':'}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Все таблицы{' '}\r\n Выбор таблицы{' '}\r\n \r\n \r\n \r\n {':'}\r\n \r\n {this.props.nsi.allsprtab.filter(f => f.kf === this.state.kform).map(it => {it.ktab} {it.nameRu})}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {this.props.gen47.isLoading === true ? \r\n \r\n
    {I18n.t('wait')}{' '}
    \r\n \r\n
    : ''}\r\n {this.state.isGen47Complete === true && this.props.gen47.statusGen47 != null && this.props.gen47.statusGen47.successed === true ? \r\n \r\n Форма сфомирована!\r\n \r\n : ''}\r\n {this.renderErrors()}\r\n
    ;\r\n }\r\n}\r\n\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators({ ...actionCreatorsNsi, ...actionCreatorsGen47 }, dispatch)\r\n)(Gen47Form);\r\n/*\r\n \r\n Инструкция по генерации 47 формы\r\n \r\n */","import React, { Component, Fragment } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport { Button, Col, FormGroup, FormControl, ControlLabel, Row, Alert, Modal/*, Checkbox, Radio*/ } from 'react-bootstrap';\r\n\r\nimport { Typeahead } from 'react-bootstrap-typeahead';\r\n\r\nimport { actionCreators as actionCreatorsGen47 } from '../../store/Gen47';\r\nimport { actionCreators as actionCreatorsNsi } from '../../store/Nsi';\r\n\r\nimport './gen47OrgParam.css';\r\nclass Gen47OrgParam extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n kobl: props.userInfo.user.kodObl,\r\n korg: undefined, nomenkl:\"0\",\r\n editOrg: undefined,\r\n showEditDialog: false,\r\n searchText:\"\"\r\n };\r\n this.typeaheadNomen = null;\r\n this.typeaheadTorg = null;\r\n if (props.nsi.allobls.length === 0) props.getNs('allobls');\r\n if (props.nsi.torg.length === 0) props.getNs('torg');\r\n if (props.nsi.nomenkl.length === 0) props.getNs('nomenkl');\r\n this.onSelectKobl = this.onSelectKobl.bind(this);\r\n this.onSelectNomenkl = this.onSelectNomenkl.bind(this);\r\n this.onChangeNomen = this.onChangeNomen.bind(this);\r\n this.clearNomen = this.clearNomen.bind(this);\r\n this.onChangeTorg = this.onChangeTorg.bind(this);\r\n this.clearTorg = this.clearTorg.bind(this);\r\n this.btEditClick = this.btEditClick.bind(this);\r\n this.setKodName = this.setKodName.bind(this);\r\n this.filtrOrg = this.filtrOrg.bind(this);\r\n }\r\n setKodName(searchText) {\r\n this.setState({ searchText });\r\n }\r\n filtrOrg(org) {\r\n if (this.state.nomenkl === \"0\") {\r\n if (this.state.searchText == null || this.state.searchText === \"\") return true;\r\n if (this.state.searchText != '' && (org.kod != this.state.searchText && !org.nameRu.toLowerCase().includes(this.state.searchText.toLowerCase()) && !org.nameKz.toLowerCase().includes(this.state.searchText.toLowerCase()))) return false;\r\n } else {\r\n if (this.state.searchText == null || this.state.searchText === \"\") return org.nomenKod === this.state.nomenkl;\r\n if (this.state.searchText != '' && (org.kod != this.state.searchText && !org.nameRu.toLowerCase().includes(this.state.searchText.toLowerCase()) && !org.nameKz.toLowerCase().includes(this.state.searchText.toLowerCase())))\r\n return false;\r\n else\r\n return org.nomenKod === this.state.nomenkl;\r\n }\r\n return true;\r\n }\r\n componentWillMount() {\r\n this.props.loadParamOrgsByObl(this.state.kobl);\r\n }\r\n onSelectKobl(e) {\r\n let kobl = e.target.value;\r\n this.setState({ kobl, searchText: \"\", nomenkl: \"0\"});\r\n this.props.loadParamOrgsByObl(kobl);\r\n }\r\n onSelectNomenkl(e) {\r\n let nomenkl = e.target.value === \"\" ? \"0\" : e.target.value.substr(0,3);\r\n this.setState({ nomenkl });\r\n }\r\n onChangeNomen(selected) {\r\n let editOrg = { ...this.state.editOrg };\r\n if (selected.length > 0) {\r\n editOrg.nomenKod = selected[0].kod;\r\n editOrg.nomenNameRu = selected[0].nameRu;\r\n editOrg.nomenNameKz = selected[0].nameRu;\r\n } else {\r\n editOrg.nomenKod = undefined;\r\n editOrg.nomenNameRu = undefined;\r\n editOrg.nomenNameKz = undefined;\r\n if (this.typeaheadNomen != null)\r\n this.typeaheadNomen.getInstance().clear();\r\n }\r\n this.setState({ editOrg });\r\n }\r\n clearNomen() {\r\n let editOrg = { ...this.state.editOrg };\r\n editOrg.nomenKod = undefined;\r\n editOrg.nomenNameRu = undefined;\r\n editOrg.nomenNameKz = undefined;\r\n if (this.typeaheadNomen != null)\r\n this.typeaheadNomen.getInstance().clear();\r\n this.setState({ editOrg });\r\n }\r\n onChangeTorg(selected) {\r\n let editOrg = { ...this.state.editOrg };\r\n if (selected.length > 0) {\r\n editOrg.torgKod = selected[0].kod;\r\n editOrg.torgNameRu = selected[0].nameRu;\r\n editOrg.torgNameKz = selected[0].nameRu;\r\n } else {\r\n editOrg.torgKod = undefined;\r\n editOrg.torgNameRu = undefined;\r\n editOrg.torgNameKz = undefined;\r\n if (this.typeaheadTorg != null)\r\n this.typeaheadTorg.getInstance().clear();\r\n }\r\n this.setState({ editOrg });\r\n }\r\n clearTorg() {\r\n let editOrg = { ...this.state.editOrg };\r\n editOrg.torgKod = undefined;\r\n editOrg.torgNameRu = undefined;\r\n editOrg.torgNameKz = undefined;\r\n if (this.typeaheadTorg != null)\r\n this.typeaheadTorg.getInstance().clear();\r\n this.setState({ editOrg });\r\n }\r\n\r\n renderRow(row) {\r\n return (
    \r\n
    {row.kod} {row.nameRu}
    \r\n
    {row.nomenKod} {row.nomenNameRu}
    \r\n
    {row.torgKod} {row.torgNameRu}
    \r\n
    \r\n
    );\r\n }\r\n renderTableOrgs() {\r\n if (this.props.gen47.orgsParam == null) return '';\r\n return (
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n {this.props.gen47.orgsParam.filter(this.filtrOrg).map(r => this.renderRow(r))}\r\n
    );\r\n }\r\n handleCloseEditDialog = (e) => {\r\n e.preventDefault();\r\n this.setState({ showEditDialog: false });\r\n }\r\n saveData = (e) => {\r\n e.preventDefault();\r\n this.setState({ showEditDialog: false });\r\n this.props.updateOrg(this.state.editOrg);\r\n }\r\n btEditClick = (kodorg) => {\r\n let org = this.props.gen47.orgsParam.filter(o => o.kod === kodorg)[0];\r\n if (this.typeaheadNomen != null) this.typeaheadNomen.getInstance().clear();\r\n if (this.typeaheadTorg != null) this.typeaheadTorg.getInstance().clear();\r\n this.setState({ editOrg: org, showEditDialog: true });\r\n }\r\n render() {\r\n let isReadOnLy = this.props.userInfo.user.roles.filter(r => r === 'UserReadData').length > 0;\r\n if (isReadOnLy === true)\r\n return \r\n else\r\n return \r\n
    \r\n \r\n \r\n {':'}\r\n \r\n {this.props.userInfo.user.accessLevel > 1 ? {this.state.kobl} {this.props.userInfo.user.nameObl} :\r\n \r\n {this.props.nsi.allobls.map(it => )}\r\n }\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n this.setKodName(evt.target.value != null ? evt.target.value.trim() : '')} />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {this.props.nsi.nomenkl.map(it => )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {this.props.isLoading === true ? \r\n \r\n
    {I18n.t('wait')}{' '}
    \r\n \r\n
    : ''}\r\n {this.state.isGen47Complete === true && this.props.gen47.statusGen47 != null && this.props.gen47.statusGen47.error != null ? \r\n \r\n {this.props.gen47.statusGen47.error}\r\n \r\n : ''}\r\n {this.renderTableOrgs()}\r\n \r\n \r\n Изменение параметров организации\r\n \r\n \r\n {this.state.editOrg != null ? \r\n Организация: {this.state.editOrg.kod} {this.state.editOrg.nameRu}\r\n \r\n \r\n {':'}\r\n \r\n this.typeaheadNomen = ref}\r\n labelKey=\"nameRu\"\r\n options={this.props.nsi.nomenkl}\r\n placeholder=\"Выберите номенклатуру...\"\r\n onChange={this.onChangeNomen} />\r\n

    {this.state.editOrg.nomenKod} {this.state.editOrg.nomenNameRu}\r\n {this.state.editOrg.nomenKod != null ? : \"\"}\r\n

    \r\n \r\n
    \r\n
    \r\n \r\n \r\n {':'}\r\n \r\n this.typeaheadTorg = ref}\r\n labelKey=\"nameRu\"\r\n options={this.props.nsi.torg}\r\n placeholder=\"Выберите тип организации...\"\r\n onChange={this.onChangeTorg} />\r\n

    {this.state.editOrg.torgKod} {this.state.editOrg.torgNameRu}\r\n {this.state.editOrg.torgKod != null ? : \"\"}\r\n

    \r\n \r\n
    \r\n
    : \"\"}\r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n
    ;\r\n }\r\n}\r\n\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators({ ...actionCreatorsNsi, ...actionCreatorsGen47 }, dispatch)\r\n)(Gen47OrgParam);","import React, { Component, Fragment } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\n//import { Link } from 'react-router-dom';\r\n\r\nimport './Register.css';\r\n//import { actionCreators } from '../store/Register';\r\nimport { actionCreators as actionCreatorsNsi } from '../store/Nsi';\r\nimport SelectOrgModal from './Modals/SelectOrgModal';\r\nimport { SpObl} from './Constants';\r\nclass Register extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n accessLevel: 4,\r\n typeUser: 5,\r\n email: undefined,\r\n fio: undefined,\r\n obl: SpObl[0],\r\n raion: undefined,\r\n org: undefined,\r\n password: undefined,\r\n passwordConfirm: undefined,\r\n showSelectOrgModal: false\r\n };\r\n this.handleSubmit = this.handleSubmit.bind(this);\r\n this.onChangeEmail = this.onChangeEmail.bind(this);\r\n this.onChangeFio = this.onChangeFio.bind(this);\r\n this.accessOblHandleChange = this.accessOblHandleChange.bind(this);\r\n this.accessRaionHandleChange = this.accessRaionHandleChange.bind(this);\r\n this.onChangePassword = this.onChangePassword.bind(this);\r\n this.onChangePasswordConfirm = this.onChangePasswordConfirm.bind(this);\r\n this.setOrg = this.setOrg.bind(this);\r\n }\r\n componentWillReceiveProps(nextProps) {\r\n let obl, raion;\r\n if (!Array.prototype.find) {\r\n obl = SpObl.filter(o => o !== undefined && o.kod === nextProps.user.obl.kod)[0];\r\n raion = this.props.nsi.allraions.filter(o => o !== undefined && o.kod === nextProps.user.raion.kod)[0];\r\n } else {\r\n obl = SpObl.find(o => o !== undefined && o.kod === nextProps.user.obl.kod);\r\n raion = this.props.nsi.allraions.find(o => o !== undefined && o.kod === nextProps.user.raion.kod);\r\n }/*\r\n let org = {\r\n kod: nextProps.user.org.kod, nameKz: nextProps.user.org.nameKz, nameRu: nextProps.user.org.nameRu\r\n };\r\n */\r\n this.setState({\r\n email: nextProps.user.email,\r\n fio: nextProps.user.fio,\r\n obl: obl ? obl : { kod: nextProps.user.obl.kod, nameKz: nextProps.user.obl.nameKz, nameRu: nextProps.user.obl.nameRu },\r\n raion: raion ? raion : { kod: nextProps.user.raion.kod, nameKz: nextProps.user.raion.nameKz, nameRu: nextProps.user.raion.nameRu },\r\n //org: org\r\n });\r\n }\r\n setOrg(org) {\r\n this.setState({ org: org, showSelectOrgModal: false });\r\n //this.forceUpdate();\r\n }\r\n onChangeEmail(e) {\r\n var val = e.target.value;\r\n //TODO check email\r\n this.setState({ email: val });\r\n }\r\n onChangeFio(e) {\r\n var val = e.target.value;\r\n this.setState({ fio: val });\r\n }\r\n accessOblHandleChange(e) {\r\n var val = e.target.value;\r\n var pobl;\r\n if (!Array.prototype.find)\r\n pobl = SpObl.filter(o => o !== undefined && o.kod === val)[0];\r\n else\r\n pobl = SpObl.find(o => o !== undefined && o.kod === val);\r\n if (pobl !== undefined) {\r\n this.setState({ obl: { kod: pobl.kod, nameKz: pobl.nameKz, nameRu: pobl.nameRu }, raion: undefined, org: undefined });\r\n //this.props.getNs('orgs', [{ name: \"obl\", value: val }]);\r\n }\r\n }\r\n accessRaionHandleChange(e) {\r\n var val = e.target.value;\r\n var praion;\r\n if (!Array.prototype.find)\r\n praion = this.props.nsi.allraions.filter(o => o !== undefined && o.kod === val)[0];\r\n else\r\n praion = this.props.nsi.allraions.find(o => o !== undefined && o.kod === val);\r\n if (praion !== undefined) {\r\n this.setState({ raion: { kod: praion.kod, nameKz: praion.nameKz, nameRu: praion.nameRu, idRaion: praion.idRaion }, org: undefined });\r\n //this.props.getNs('orgs', [{ name: \"raion\", value: val }]);\r\n }\r\n }\r\n onChangePassword(e) {\r\n var val = e.target.value;\r\n this.setState({ password: val });\r\n }\r\n onChangePasswordConfirm(e) {\r\n var val = e.target.value;\r\n this.setState({ passwordConfirm: val });\r\n }\r\n handleSubmit(e) {\r\n e.preventDefault();\r\n if (this.state.org === undefined) {\r\n alert('Выберите организацию');\r\n return;\r\n }\r\n if (this.state.isNew && this.state.password !== this.state.passwordConfirm) {\r\n alert('Пароли не совпадают');\r\n return;\r\n }\r\n // console.trace();\r\n // this.props.updateUser({ ...this.state });\r\n }\r\n render() {\r\n let raions = this.props.nsi.allraions.filter(f => f.obl === this.state.obl.kod).map(o => { return { kod: o.kod, nameRu: o.nameRu, nameKz: o.nameKz }; });\r\n return \r\n
    \r\n
    \r\n
    \r\n
    Регистрация
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    {this.state.org ? this.state.org.nameRu : Выберите организацию}
    \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n {this.state.password !== this.state.passwordConfirm ?
    Пароли не совпадают!
    : ''}\r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n this.setState({ showSelectOrgModal: false })} />\r\n
    ;\r\n }\r\n}\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators(actionCreatorsNsi, dispatch)\r\n)(Register);\r\n","import React, { Component } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { Alert, Row, Table, Button, Col, Panel } from 'react-bootstrap';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport { actionCreators as actionCreatorsNsi } from '../../store/Nsi';\r\nimport SelectObject from '../common/SelectObject';\r\nimport { getNameLocalize } from '../Constants';\r\n\r\nclass AdminChildsOrg extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n tobj: 4,//props.userInfo.user.accessLevel, // тип обьекта 1 – РК; 2 – область; 3 - район; 4 - организация (доступ зависит от пользователя)\r\n obl: undefined,\r\n raion: undefined,\r\n org: undefined,\r\n }\r\n this.showRow = this.showRow.bind(this);\r\n this.addChild = this.addChild.bind(this);\r\n this.removeChild = this.removeChild.bind(this);\r\n }\r\n componentWillMount() {\r\n // This method runs when the component is first added to the page\r\n this.props.requestGetChildsOrgs();\r\n }\r\n removeChild(evt) {\r\n evt.preventDefault();\r\n let kod = evt.currentTarget.id.substr(5);\r\n this.props.removeChildOrg(kod);\r\n }\r\n showRow(r) {\r\n return {r.kod}{getNameLocalize(this.props.i18n, r)};\r\n }\r\n addChild() {\r\n if (this.state.org.korg !=null && this.state.org.korg != this.props.userInfo.user.kodOrg) {\r\n this.props.addChildOrg(this.state.org.korg);\r\n }\r\n }\r\n render() {\r\n return (
    \r\n \r\n

    \r\n

    \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n this.setState({ tobj })}\r\n setObl={(obl) => this.setState({ obl })}\r\n setRaion={(raion) => this.setState({ raion })}\r\n setOrg={(org) => this.setState({ org })} disabled={this.props.nsi.isLoading === true} />\r\n \r\n \r\n \r\n {this.props.nsi.updateStatus!=null?\r\n \r\n \r\n {this.props.nsi.updateStatus.successed === true ?\r\n \r\n : }\r\n \r\n : ''}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {this.props.nsi.childsOrgs.map(r => this.showRow(r))}\r\n \r\n
    \r\n \r\n
    \r\n
    );\r\n }\r\n}\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators(actionCreatorsNsi, dispatch)\r\n)(AdminChildsOrg);","import React, { Fragment } from 'react';\r\nimport { I18n } from 'react-redux-i18n';\r\nimport { Label } from 'react-bootstrap';\r\n\r\n\r\nexport default function CheckBoxStatus(props) {\r\n const onOk = (evt) => {\r\n evt.preventDefault();\r\n props.onChange({ korg:props.korg, kf: props.kf, status: 1 });\r\n }\r\n const onMinus = (evt) => {\r\n evt.preventDefault();\r\n props.onChange({ korg: props.korg, kf: props.kf, status: 2 });\r\n }\r\n return \r\n {props.checked === 2 ? :\r\n }{' '}\r\n ;\r\n}","import React, { Component, Fragment } from 'react'\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport * as FileSaver from 'file-saver';\r\nimport { Row, Col, FormGroup, FormControl, ControlLabel, Form, Button, Table } from 'react-bootstrap';\r\n\r\nimport { actionCreators as actionCreatorsWork } from '../../store/Work';\r\nimport { actionCreators as actionCreatorsNsi } from '../../store/Nsi';\r\n\r\nimport SelectObject from '../common/SelectObject';\r\n\r\nimport { years, getNameLocalize, getCurrentYear } from '../Constants';\r\nimport FilterRazOptions from '../common/FilterRazOptions';\r\nimport CheckBoxStatus from '../common/CheckBoxStatus';\r\n\r\nclass StatusForm extends Component {\r\n constructor(props) {\r\n super(props);\r\n let nowYear = getCurrentYear();\r\n this.state = {\r\n year: props.year !== undefined ? props.year : nowYear,\r\n kper: 4,//период\r\n kraz: 1,//this.props.userInfo.user.accessLevel !== 4 ? 1 : 3, //разрез\r\n tobj: props.userInfo.user.accessLevel,\r\n obl: undefined,\r\n raion: undefined,\r\n org: undefined,\r\n kodNameSearch: undefined\r\n };\r\n this.showStatusData = this.showStatusData.bind(this);\r\n this.renderRowStatus = this.renderRowStatus.bind(this);\r\n this.onChangeStatusKf = this.onChangeStatusKf.bind(this);\r\n this.printExcel = this.printExcel.bind(this);\r\n this.filtrOrg = this.filtrOrg.bind(this);\r\n if (props.nsi.periods.length === 0) props.getNs('periods');\r\n if (props.nsi.sprraz.length === 0) props.getNs('sprraz');\r\n if (props.nsi.sprform.length === 0) props.getNs('sprform');\r\n }\r\n\r\n onSelectYear = (e) => {\r\n let year = parseInt(e.target.value, 10);\r\n this.setState({ year });\r\n }\r\n onSelectKper = (e) => {\r\n let kper = parseInt(e.target.value, 10);\r\n this.setState({ kper });\r\n }\r\n onSelectKraz = (e) => {\r\n let kraz = parseInt(e.target.value, 10);\r\n this.setState({ kraz });\r\n }\r\n onOpenStatus = (e) => {\r\n e.preventDefault();\r\n let kobj = \"\";\r\n switch (this.state.tobj) {\r\n case 1://РК\r\n kobj = \"00\";\r\n break;\r\n case 2://Область\r\n kobj = this.state.obl.kobl;\r\n break;\r\n case 3://Район\r\n kobj = this.state.raion.kraion;\r\n break;\r\n case 4://Организация\r\n kobj = this.state.org.korg;\r\n break;\r\n default:\r\n break;\r\n }\r\n this.props.getStatusInfoData({\r\n year: this.state.year,\r\n period: this.state.kper,\r\n raz: this.state.kraz,\r\n tobj: this.state.tobj,\r\n kobj\r\n });\r\n }\r\n getObjectTypeName(tobj) {\r\n switch (tobj) {\r\n //case 1://РК\r\n // return \"Республика:\"f;\r\n case 2://Область\r\n return `${I18n.t(\"obl\")}:`;\r\n case 3://Район\r\n return `${I18n.t(\"raion\")}:`;\r\n case 4://Организация\r\n return `${I18n.t(\"org\")}:`;\r\n default:\r\n break;\r\n }\r\n return \"\";\r\n }\r\n filtrOrg(org) {\r\n let kodName = this.state.kodNameSearch;\r\n if (kodName == null || kodName === \"\") return true;\r\n if (kodName != '' && (org.kod != kodName && !org.nameRu.toLowerCase().includes(kodName.toLowerCase()) && !org.nameKz.toLowerCase().includes(kodName.toLowerCase()))) return false;\r\n return true;\r\n }\r\n showStatusData() {\r\n if (this.props.work.statusInfo === undefined) return '';\r\n let statusInfo = this.props.work.statusInfo;\r\n //let statusInfo = {\r\n // namePeriod: \"за 2021 год\",\r\n // nameRaz: \"Село\",\r\n // dtRun:\"18.01.2022 12:00\",\r\n // rows: [{kod:\"0286\", nameRu: \"Поликлиника 10\", nameKz: \"Поликлинника 10\", status: [{ kf: '12', status: 1 }, { kf: '30', status: 2 }] }]\r\n // };\r\n return \r\n \r\n
    \r\n
    \r\n \r\n Период: {statusInfo.namePeriod}\r\n \r\n \r\n Разрез: {statusInfo.nameRaz}\r\n \r\n \r\n Дата и время создания: {statusInfo.dtRun}\r\n \r\n {statusInfo.rows.length > 0 ? \r\n \r\n \r\n {this.state.tobj < 4 ?
    \r\n \r\n \r\n this.setState({ kodNameSearch: evt.target.value != null ? evt.target.value : '' })}\r\n />\r\n \r\n \r\n
    : \"\"}\r\n
    : \"\"}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {statusInfo.rows.filter(f => this.filtrOrg(f)).map(r => this.renderRowStatus(r))}\r\n \r\n
    \r\n {' '}\r\n {' '}
    \r\n
    ;\r\n }\r\n renderRowStatus(r) {\r\n return {r.kod} {getNameLocalize(this.props.i18n, r)}
    \r\n {r.status.map(s => )}\r\n \r\n }\r\n onChangeStatusKf(d) {\r\n //console.dir(d);\r\n this.props.updateStatusInfoData({ year: this.state.year, kraz: this.state.kraz, kper: this.state.kper, kod: d.korg, kf: d.kf, status: d.status });\r\n }\r\n printExcel = async () => {\r\n let kobj = \"\";\r\n let strObj = 0;\r\n switch (this.state.tobj) {\r\n case 1://РК\r\n kobj = \"00\";\r\n break;\r\n case 2://Область\r\n kobj = this.state.obl.kobl;\r\n strObj = 1;\r\n break;\r\n case 3://Район\r\n kobj = this.state.raion.kraion;\r\n break;\r\n case 4://Организация\r\n kobj = this.state.org.korg;\r\n break;\r\n default:\r\n break;\r\n\r\n }\r\n let absoluteUrl = `${document.location.protocol}//${document.location.host}/generate/Excel/InputInfo/${this.state.year}/${this.state.kper}/${this.state.kraz}/${this.state.tobj}/${kobj}/${strObj}`;\r\n let fileName = `inf_${this.state.year}_${this.state.kper}_${this.state.kraz}_${this.state.tobj}_${kobj}_${strObj}.xlsx`;\r\n var token = this.props.userInfo.user.token;\r\n const response = await fetch(absoluteUrl, {\r\n credentials: 'include',\r\n method: 'GET',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const blob = await response.blob();\r\n FileSaver.saveAs(blob, fileName);\r\n //this.setState({ isLoading: false });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n }\r\n render() {\r\n let isReadOnLy = this.props.userInfo.user.roles.filter(r => r === 'UserReadData').length > 0;\r\n if (isReadOnLy === true)\r\n return \r\n else\r\n return \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n {':'}\r\n \r\n \r\n {years.map(it => )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {':'}\r\n \r\n {this.props.nsi.periods.map(it => )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {':'}\r\n \r\n \r\n \r\n \r\n \r\n\r\n this.setState({ tobj, strObj: 0 })}\r\n setObl={(obl) => this.setState({ obl })}\r\n setRaion={(raion) => this.setState({ raion })}\r\n setOrg={(org) => this.setState({ org })}\r\n isNotOrg={true}\r\n year={this.state.year}\r\n />\r\n {this.props.work.isLoading === true ? \r\n \r\n
    {I18n.t('waitsvod')}{' '}
    \r\n \r\n
    : ''}\r\n \r\n \r\n {this.showStatusData()}\r\n
    ;\r\n }\r\n}\r\n// isNotOrg={true}\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators({ ...actionCreatorsNsi, ...actionCreatorsWork }, dispatch)\r\n)(StatusForm);\r\n/*\r\n \r\n\r\n \r\n \r\n {':'}\r\n {this.props.i18n.locale[0] === 'r' ? this.props.userInfo.user.nameObl : this.props.userInfo.user.nameOblKz}\r\n \r\n \r\n */","import React, { Component, Fragment, useState } from 'react'\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport * as FileSaver from 'file-saver';\r\nimport { Row, Col, FormGroup, FormControl, ControlLabel, Form, Button, Table } from 'react-bootstrap';\r\n\r\nimport { actionCreators as actionCreatorsWork } from '../../store/Work';\r\nimport { actionCreators as actionCreatorsNsi } from '../../store/Nsi';\r\n\r\nimport { years, getNameLocalize, getCurrentYear } from '../Constants';\r\nimport FilterRazOptions from '../common/FilterRazOptions';\r\nimport CheckBoxStatus from '../common/CheckBoxStatus';\r\n\r\nconst StatusFormRk = (props) => {\r\n useState(() => {\r\n if (props.nsi.periods.length === 0) props.getNs('periods');\r\n if (props.nsi.sprraz.length === 0) props.getNs('sprraz');\r\n if (props.nsi.sprform.length === 0) props.getNs('sprform');\r\n });\r\n const [year, setYear] = useState(props.year !== undefined ? props.year : getCurrentYear());\r\n const [kper, setKper] = useState(4);\r\n const [kraz, setKraz] = useState(1);\r\n const showStatusData=() => {\r\n if (props.work.statusInfoRk === undefined) return '';\r\n let statusInfoRk = props.work.statusInfoRk;\r\n return \r\n \r\n
    \r\n
    \r\n \r\n Период: {statusInfoRk.namePeriod}\r\n \r\n \r\n Разрез: {statusInfoRk.nameRaz}\r\n \r\n \r\n Дата и время создания: {statusInfoRk.dtRun}\r\n \r\n {statusInfoRk.rows.length > 0 ? \r\n \r\n \r\n : \"\"}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {statusInfoRk.rows.map(r => renderRowStatus(r))}\r\n \r\n
    \r\n {' '}\r\n {' '}
    \r\n
    ;\r\n }\r\n const renderRowStatus= (r) => {\r\n return {r.kod} {getNameLocalize(props.i18n, r)}
    \r\n {r.status.map(s => )}\r\n \r\n }\r\n const onChangeStatusKf=(d) => {\r\n //console.dir(d);\r\n props.updateStatusInfoDataRk({ year, kraz, kper, kod: d.korg, kf: d.kf, status: d.status });\r\n }\r\n const printExcel = async () => {\r\n let absoluteUrl = `${document.location.protocol}//${document.location.host}/generate/Excel/InputInfoRk/${year}/${kper}/${kraz}`;\r\n let fileName = `infRk_${year}_${kper}_${kraz}.xlsx`;\r\n var token = props.userInfo.user.token;\r\n const response = await fetch(absoluteUrl, {\r\n credentials: 'include',\r\n method: 'GET',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const blob = await response.blob();\r\n FileSaver.saveAs(blob, fileName);\r\n //this.setState({ isLoading: false });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n }\r\n const onOpenStatus = (e) => {\r\n e.preventDefault();\r\n props.getStatusInfoDataRk({\r\n year: year,\r\n period: kper,\r\n raz: kraz,\r\n });\r\n }\r\n if (props.userInfo.user.accessLevel != 1 || props.userInfo.user.roles.filter(r => r === 'UserReadData').length > 0) return
    ;\r\n return \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n {':'}\r\n \r\n setYear(parseInt(e.target.value, 10))}>\r\n {years.map(it => )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {':'}\r\n setKper(parseInt(e.target.value, 10))} style={{ minWidth: '100%' }}>\r\n {props.nsi.periods.map(it => )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {':'}\r\n setKraz(parseInt(e.target.value, 10))} style={{ minWidth: '100%' }}>\r\n \r\n \r\n \r\n \r\n {props.work.isLoading === true ? \r\n \r\n
    {I18n.t('waitsvod')}{' '}
    \r\n \r\n
    : ''}\r\n \r\n
    \r\n {showStatusData()}\r\n
    ;\r\n}\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators({ ...actionCreatorsNsi, ...actionCreatorsWork }, dispatch)\r\n)(StatusFormRk);","import React, { useEffect, useState, Fragment } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport * as FileSaver from 'file-saver';\r\nimport { Row, Col, FormGroup, FormControl, ControlLabel, Form, Button, Table } from 'react-bootstrap';\r\n\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\n\r\nimport { actionCreators as actionCreatorsWork } from '../../store/Work';\r\nimport { actionCreators as actionCreatorsNsi } from '../../store/Nsi';\r\n\r\nimport { years, getNameLocalize, getCurrentYear } from '../Constants';\r\nimport FilterRazOptions from '../common/FilterRazOptions';\r\nimport CheckBoxStatus from '../common/CheckBoxStatus';\r\n\r\nconst StatusTableRk = (props) => {\r\n useState(() => {\r\n if (props.nsi.periods.length === 0) props.getNs('periods');\r\n if (props.nsi.sprraz.length === 0) props.getNs('sprraz');\r\n if (props.nsi.sprform.length === 0) props.getNs('sprform');\r\n //if (props.nsi.allsprtab.length === 0) props.getNs('allsprtab');\r\n });\r\n const [year, setYear] = useState(props.year !== undefined ? props.year : getCurrentYear());\r\n const [kper, setKper] = useState(4);\r\n const [kraz, setKraz] = useState(1);\r\n const [kf, setKf] = useState(\"01\");\r\n\r\n const showStatusData = () => {\r\n if (props.work.statusInfoTablesRk === undefined) return '';\r\n let statusInfoTablesRk = props.work.statusInfoTablesRk;\r\n return \r\n \r\n
    \r\n
    \r\n \r\n : {statusInfoTablesRk.namePeriod}\r\n \r\n \r\n : {statusInfoTablesRk.nameRaz}\r\n \r\n \r\n {statusInfoTablesRk.nameForm}\r\n \r\n \r\n {statusInfoTablesRk.dtRun}\r\n \r\n {statusInfoTablesRk.rows.length > 0 ? \r\n \r\n \r\n : \"\"}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {statusInfoTablesRk.rows.map(r => renderRowStatus(r))}\r\n \r\n
    \r\n {' '}\r\n {' '}
    \r\n
    ;\r\n }\r\n const renderRowStatus = (r) => {\r\n return {r.kod} {getNameLocalize(props.i18n, r)}
    \r\n {r.status.map((s, i) => )}\r\n \r\n }\r\n const onChangeStatusKt = (d) => {\r\n //console.dir(d);\r\n props.updateStatusInfoDataTablesRk({ year, kraz, kper, kod: d.korg, kf: kf, kt: d.kf, status: d.status });\r\n }\r\n const printExcel = async () => {\r\n let absoluteUrl = `${document.location.protocol}//${document.location.host}/generate/Excel/InputInfoTablesRk/${year}/${kper}/${kraz}/${kf}`;\r\n let fileName = `infTabRk_${year}_${kper}_${kraz}_${kf}.xlsx`;\r\n var token = props.userInfo.user.token;\r\n const response = await fetch(absoluteUrl, {\r\n credentials: 'include',\r\n method: 'GET',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const blob = await response.blob();\r\n FileSaver.saveAs(blob, fileName);\r\n //this.setState({ isLoading: false });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n }\r\n const onOpenStatus = (e) => {\r\n e.preventDefault();\r\n props.getStatusInfoDataTablesRk({\r\n year: year,\r\n period: kper,\r\n raz: kraz,\r\n kf\r\n });\r\n }\r\n if (props.userInfo.user.accessLevel != 1 || props.userInfo.user.roles.filter(r => r === 'UserReadData').length > 0) return
    ;\r\n return \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n {':'}\r\n \r\n setYear(parseInt(e.target.value, 10))}>\r\n {years.map(it => )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {':'}\r\n setKper(parseInt(e.target.value, 10))} style={{ minWidth: '100%' }}>\r\n {props.nsi.periods.map(it => )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {':'}\r\n setKraz(parseInt(e.target.value, 10))} style={{ minWidth: '100%' }}>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {':'}\r\n setKf(e.target.value)} style={{ minWidth: '100%' }}>\r\n {props.nsi.sprform.map(it => )}\r\n \r\n \r\n \r\n {props.work.isLoading === true ? \r\n \r\n
    {I18n.t('waitsvod')}{' '}
    \r\n \r\n
    : ''}\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n {showStatusData()}\r\n
    ;\r\n}\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators({ ...actionCreatorsNsi, ...actionCreatorsWork }, dispatch)\r\n)(StatusTableRk);","import React, { useEffect, useState, Fragment } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport * as FileSaver from 'file-saver';\r\nimport { Row, Col, FormGroup, FormControl, ControlLabel, Form, Button, Table } from 'react-bootstrap';\r\n\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\n\r\nimport { actionCreators as actionCreatorsWork } from '../../store/Work';\r\nimport { actionCreators as actionCreatorsNsi } from '../../store/Nsi';\r\n\r\nimport { years, getNameLocalize, getCurrentYear } from '../Constants';\r\nimport FilterRazOptions from '../common/FilterRazOptions';\r\nimport CheckBoxStatus from '../common/CheckBoxStatus';\r\n\r\nconst StatusTableObl = (props) => {\r\n useState(() => {\r\n if (props.nsi.periods.length === 0) props.getNs('periods');\r\n if (props.nsi.sprraz.length === 0) props.getNs('sprraz');\r\n if (props.nsi.sprform.length === 0) props.getNs('sprform');\r\n //if (props.nsi.allsprtab.length === 0) props.getNs('allsprtab');\r\n });\r\n const [year, setYear] = useState(props.year !== undefined ? props.year : getCurrentYear());\r\n const [kper, setKper] = useState(4);\r\n const [kraz, setKraz] = useState(1);\r\n const [kf, setKf] = useState(\"01\");\r\n const [kodNameSearch, setKodNameSearch] = useState();\r\n const filtrOrg=(org) => {\r\n let kodName = kodNameSearch;\r\n if (kodName == null || kodName === \"\") return true;\r\n if (kodName != '' && (org.kod != kodName && !org.nameRu.toLowerCase().includes(kodName.toLowerCase()) && !org.nameKz.toLowerCase().includes(kodName.toLowerCase()))) return false;\r\n return true;\r\n }\r\n const showStatusData = () => {\r\n if (props.work.statusInfoTablesObl === undefined) return '';\r\n let statusInfoTablesObl = props.work.statusInfoTablesObl;\r\n return \r\n \r\n
    \r\n
    \r\n \r\n : {props.i18n.locale[0] === 'r' ? props.userInfo.user.nameObl : props.userInfo.user.nameOblKz}\r\n \r\n \r\n : {statusInfoTablesObl.namePeriod}\r\n \r\n \r\n : {statusInfoTablesObl.nameRaz}\r\n \r\n \r\n {statusInfoTablesObl.nameForm}\r\n \r\n \r\n {statusInfoTablesObl.dtRun}\r\n \r\n {statusInfoTablesObl.rows.length > 0 ? \r\n \r\n \r\n : \"\"}\r\n
    \r\n \r\n \r\n evt.target.value != null ? setKodNameSearch(evt.target.value) : setKodNameSearch(\"\")}\r\n />\r\n \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {statusInfoTablesObl.rows.filter(f => filtrOrg(f)).map(r => renderRowStatus(r))}\r\n \r\n
    \r\n {' '}\r\n {' '}
    \r\n
    ;\r\n }\r\n const renderRowStatus = (r) => {\r\n return {r.kod} {getNameLocalize(props.i18n, r)}
    \r\n {r.status.map((s, i) => )}\r\n \r\n }\r\n const onChangeStatusKt = (d) => {\r\n //console.dir(d);\r\n props.updateStatusInfoDataTablesObl({ year, kraz, kper, kod: d.korg, kf: kf, kt: d.kf, status: d.status });\r\n }\r\n const printExcel = async () => {\r\n let absoluteUrl = `${document.location.protocol}//${document.location.host}/generate/Excel/InputInfoTablesObl/${year}/${kper}/${kraz}/${kf}`;\r\n let fileName = `infTabObl_${year}_${kper}_${kraz}_${kf}_${props.userInfo.user.kodObl}.xlsx`;\r\n var token = props.userInfo.user.token;\r\n const response = await fetch(absoluteUrl, {\r\n credentials: 'include',\r\n method: 'GET',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const blob = await response.blob();\r\n FileSaver.saveAs(blob, fileName);\r\n //this.setState({ isLoading: false });\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n }\r\n const onOpenStatus = (e) => {\r\n e.preventDefault();\r\n props.getStatusInfoDataTablesObl({\r\n year: year,\r\n period: kper,\r\n raz: kraz,\r\n kobl: props.userInfo.user.kodObl,\r\n kf\r\n });\r\n }\r\n if (props.userInfo.user.accessLevel != 2 || props.userInfo.user.roles.filter(r => r === 'UserReadData').length > 0) return
    ;\r\n return \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n {':'}\r\n \r\n setYear(parseInt(e.target.value, 10))}>\r\n {years.map(it => )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {':'}\r\n setKper(parseInt(e.target.value, 10))} style={{ minWidth: '100%' }}>\r\n {props.nsi.periods.map(it => )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {':'}\r\n setKraz(parseInt(e.target.value, 10))} style={{ minWidth: '100%' }}>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {':'}\r\n setKf(e.target.value)} style={{ minWidth: '100%' }}>\r\n {props.nsi.sprform.map(it => )}\r\n \r\n \r\n \r\n {props.work.isLoading === true ? \r\n \r\n
    {I18n.t('waitsvod')}{' '}
    \r\n \r\n
    : ''}\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n {showStatusData()}\r\n
    ;\r\n}\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators({ ...actionCreatorsNsi, ...actionCreatorsWork }, dispatch)\r\n)(StatusTableObl);","import React, { Component, Fragment } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport { Button, Col, FormGroup, FormControl, ControlLabel, Form, Row, Alert, Modal } from 'react-bootstrap';\r\n\r\nimport { actionCreators as actionCreatorsWork } from '../../store/Work';\r\nimport { actionCreators as actionCreatorsNsi } from '../../store/Nsi';\r\nimport SelectObject from '../common/SelectObject';\r\nimport { years, getNameLocalize, getNamePeriod, getCurrentYear } from '../Constants';\r\n\r\nclass DeleteForm extends Component {\r\n constructor(props) {\r\n super(props);\r\n let nowYear = getCurrentYear();\r\n this.state = {\r\n year: props.year !== undefined ? props.year : nowYear,\r\n kper: 4,//период\r\n kraz: 1, //разрез\r\n kform: '01',\r\n tobj: props.userInfo.user.accessLevel, // тип обьекта 1 – РК; 2 – область; 3 - район; 4 - организация (доступ зависит от пользователя)\r\n obl: undefined,\r\n raion: undefined,\r\n org: undefined,\r\n showConfirmDelete: false,\r\n showNodata:false,\r\n }\r\n props.getNs('periods');\r\n props.getNs('sprraz');\r\n props.getNs('sprform');\r\n this.onDeleteForm = this.onDeleteForm.bind(this);\r\n this.handleCloseConfirmDelete = this.handleCloseConfirmDelete.bind(this);\r\n this.deleteData = this.deleteData.bind(this);\r\n this.handleCloseNodata = this.handleCloseNodata.bind(this);\r\n this.getNameKf = this.getNameKf.bind(this);\r\n this.getNameObj = this.getNameObj.bind(this);\r\n this.getNameRaz = this.getNameRaz.bind(this);\r\n };\r\n handleCloseNodata() {\r\n this.setState({ showNodata: false });\r\n }\r\n handleCloseConfirmDelete() {\r\n this.setState({ showConfirmDelete: false });\r\n }\r\n deleteData() {\r\n let kobj = null;\r\n switch (this.state.tobj) {\r\n case 1:\r\n kobj = \"00\";\r\n break;\r\n case 2:\r\n kobj = this.state.obl.kobl;\r\n break;\r\n case 3:\r\n kobj = this.state.raion.kraion;\r\n break;\r\n case 4:\r\n kobj = this.props.userInfo.user.accessLevel === 4 ? this.props.userInfo.user.kodOrg : this.state.org.korg;\r\n break;\r\n default:\r\n }\r\n this.props.deleteForm({\r\n year: this.state.year,\r\n period: this.state.kper,\r\n raz: this.state.kraz,\r\n kf: this.state.kform,\r\n kt: \"*\",\r\n tobj: this.state.tobj,\r\n kobj\r\n });\r\n this.setState({ showConfirmDelete: false });\r\n }\r\n async onDeleteForm(e) {\r\n e.preventDefault();\r\n let kobj = null;\r\n switch (this.state.tobj) {\r\n case 1:\r\n kobj = \"00\";\r\n break;\r\n case 2:\r\n kobj=this.state.obl.kobl;\r\n break;\r\n case 3:\r\n kobj=this.state.raion.kraion;\r\n break;\r\n case 4:\r\n kobj = this.props.userInfo.user.accessLevel === 4 ? this.props.userInfo.user.kodOrg:this.state.org.korg;\r\n break;\r\n default:\r\n }\r\n //проверить есть ли данные по данной форме\r\n let ret=await this.props.isExistsForm({\r\n year: this.state.year,\r\n period: this.state.kper,\r\n raz: this.state.kraz,\r\n kf: this.state.kform,\r\n kt:\"*\",\r\n tobj: this.state.tobj,\r\n kobj\r\n });\r\n if (ret != null) {\r\n if (ret.isExists === true) {\r\n //данные есть\r\n this.setState({ showConfirmDelete: true});\r\n } else {\r\n //данных нет\r\n this.setState({ showNodata: true });\r\n }\r\n }\r\n }\r\n getNameKf(){\r\n let kform = this.state.kform;\r\n let form = this.props.nsi.sprform.filter(f => f.kf === kform);\r\n if (form.length === 0) return kform;\r\n return `${kform} ${getNameLocalize(this.props.i18n, form[0])}`;\r\n }\r\n getNameObj(){\r\n switch (this.state.tobj) {\r\n case 1:\r\n return \"РК\";\r\n case 2:\r\n return getNameLocalize(this.props.i18n, this.state.obl);\r\n case 3:\r\n return `${getNameLocalize(this.props.i18n, this.state.obl)}, ${getNameLocalize(this.props.i18n, this.state.raion)}`;\r\n case 4:\r\n return this.props.userInfo.user.accessLevel === 4 ? `${this.props.userInfo.user.kodOrg} ${this.props.userInfo.user.nameOrg}` : `${this.state.org.korg} ${this.state.org.nameRu}`;\r\n default:\r\n }\r\n return \"\";\r\n }\r\n getNameRaz() {\r\n let kraz = this.state.kraz;\r\n let raz = this.props.nsi.sprraz.filter(r => r.kod === kraz);\r\n if (raz.length === 0) return kraz\r\n return getNameLocalize(this.props.i18n, raz[0]);\r\n }\r\n render() {\r\n return
    \r\n
    \r\n \r\n {':'}\r\n \r\n this.setState({ year: parseInt(e.target.value, 10)})} bsSize=\"small\" style = {{ width: \"auto\" }}>\r\n {years.filter(y => y > 2020).map(it => )}\r\n \r\n \r\n \r\n {':'}\r\n this.setState({ kper: parseInt(e.target.value, 10) })} bsSize='small' style={{ width: \"auto\" }}>\r\n {this.props.nsi.periods.map(it => )}\r\n \r\n \r\n \r\n {':'}\r\n this.setState({ kraz: parseInt(e.target.value, 10) })} bsSize='small' style={{ width: \"auto\" }}>\r\n {this.props.nsi.sprraz.map(it => )}\r\n \r\n \r\n \r\n \r\n {':'}\r\n this.setState({ kform: e.target.value })} style={{ minWidth: '100%' }}>\r\n {this.props.nsi.sprform.map(it => )}\r\n \r\n \r\n this.setState({ tobj })}\r\n setObl={(obl) => this.setState({ obl })}\r\n setRaion={(raion) => this.setState({ raion })}\r\n setOrg={(org) => this.setState({ org })} org={this.state.org}\r\n year={this.state.year}\r\n />\r\n {this.props.work.isLoading === true ? \r\n \r\n
    {I18n.t('waitsvod')}{' '}
    \r\n \r\n
    : ''}\r\n {this.props.work.statusDelete != null && this.props.work.statusDelete.successed === true ? \r\n \r\n \r\n \r\n : ''}\r\n {this.props.work.statusDelete != null && this.props.work.statusDelete.error != null ? \r\n \r\n {this.props.work.statusDelete.error}\r\n \r\n : ''}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n

    \r\n
    \r\n {':'}{this.state.year}
    \r\n {':'}{getNamePeriod(this.state.kper)}
    \r\n {':'}{this.getNameRaz()}
    \r\n {':'}{this.getNameKf()}
    \r\n {':'}{this.getNameObj()}\r\n

    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n }\r\n}\r\n\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators({ ...actionCreatorsNsi, ...actionCreatorsWork }, dispatch)\r\n)(DeleteForm);\r\n\r\n//isNotOrg={true}","import React, { Component, Fragment } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport { Button, Col, FormGroup, FormControl, ControlLabel, Form, Row, Table } from 'react-bootstrap';\r\n\r\n//import './ReportFin.css';\r\nimport * as FileSaver from 'file-saver';\r\n\r\nimport { actionCreators as actionFinPaidData } from '../../store/FinPaidData';\r\nimport { actionCreators as actionCreatorsNsi } from '../../store/Nsi';\r\n//import { years, getCurrentYear } from '../Constants';\r\nimport { getNameLocalize } from '../Constants';\r\n\r\nclass RepSubordinates extends Component {\r\n constructor(props) {\r\n super(props);\r\n if (props.nsi.allobls.length === 0) {\r\n props.getNs('allobls');\r\n }\r\n this.state = {\r\n kobl: /*props.userInfo.user.kodObl*/\"all\",\r\n lang: \"ru\"\r\n }\r\n this.onGenerateRep = this.onGenerateRep.bind(this);\r\n this.onSelectKobl = this.onSelectKobl.bind(this);\r\n this.onSelectLang = this.onSelectLang.bind(this);\r\n }\r\n onSelectKobl(e) {\r\n this.setState({ kobl: e.target.value });\r\n }\r\n onSelectLang = (e) => {\r\n let lang = e.target.value;\r\n this.setState({ lang });\r\n }\r\n onGenerateRep = async (e) => {\r\n e.preventDefault();\r\n let body = {\r\n Obl: this.state.kobl === \"all\" ? null : this.state.kobl,\r\n Lang: this.state.lang\r\n };\r\n this.setState({ isLoading: true });\r\n let absoluteUrl = `${document.location.protocol}//${document.location.host}/Medinfo/generate/Excel/Subordinates`;\r\n //let fileName = `${this.state.begYear}_${this.state.type_page}_${this.state.selectedTable.kod}_${this.state.selectedPage.kod}_${this.state.type_per}_${this.state.tobj}.xlsx`;\r\n let fileName = \"orgSubordinates.xlsx\"\r\n var token = this.props.userInfo.user.token;\r\n const response = await fetch(absoluteUrl, {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`,\r\n 'Content-Type': 'application/json'\r\n },\r\n body: JSON.stringify(body)\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const blob = await response.blob();\r\n FileSaver.saveAs(blob, fileName);\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n this.setState({ isLoading: false });\r\n }\r\n render() {\r\n return
    \r\n

    \r\n \r\n \r\n {':'}\r\n \r\n {this.state.accessLevel > 1 ?
    {this.state.kobl} {this.props.i18n.locale[0] === 'r' ? this.props.userInfo.user.nameObl : this.props.userInfo.user.nameOblKz}
    :\r\n \r\n \r\n {this.props.nsi.allobls.map(it => )}\r\n }\r\n \r\n
    \r\n
    \r\n \r\n \r\n {':'}\r\n \r\n \r\n )\r\n )\r\n \r\n \r\n \r\n \r\n {this.state.isLoading === true ? \r\n \r\n
    {I18n.t('wait')}{' '}
    \r\n \r\n
    : ''}\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n }\r\n}\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators({ ...actionCreatorsNsi, ...actionFinPaidData }, dispatch)\r\n)(RepSubordinates);\r\n","import React, { /*useEffect,*/ useState } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { Form, FormControl, ControlLabel, Row, Col, Button, Modal, ListGroup, FormGroup, ListGroupItem } from 'react-bootstrap';\r\nimport { Translate } from 'react-redux-i18n';\r\nimport { actionCreators } from '../../store/Nsi';\r\nimport { getNameLocalize } from '../Constants';\r\n\r\nfunction SelectOrgModal(props) {\r\n const [] = useState(() => {\r\n if (props.nsi.allobls.length === 0) {\r\n props.getNs('allobls');\r\n return false;\r\n } else\r\n return true;\r\n }, props.nsi.allobls.length > 0);\r\n const [kodOrg, setKodOrg] = useState(\"\");\r\n const [nameOrg, setNameOrg] = useState(\"\");\r\n const [kodObl, setKodObl] = useState(\"\");\r\n const [org, setOrg] = useState();\r\n\r\n const handleCloseDlg = (isNotCancel) => {\r\n if (isNotCancel === false)\r\n props.handleCloseDlg({ isNotCancel, org: null });\r\n else if (org != undefined) {\r\n let selorg = props.nsi.orgs.find((it) => it.kobj == org.kod);\r\n props.handleCloseDlg({ isNotCancel, org: selorg });\r\n } //else {\r\n\r\n //}\r\n };\r\n const handleSelectKodObl = (kod) => {\r\n setOrg(null);\r\n setKodObl(kod);\r\n if (kodOrg !== '' || nameOrg !== '') {\r\n setOrg(null);\r\n props.getOrgsByOblKodName({ KodObl: kod, KodOrg: kodOrg, NameOrg: nameOrg });\r\n }\r\n }\r\n const handleSearchOrgsClick = () => {\r\n if (kodObl !== '' || kodOrg !== '' || nameOrg !== '') {\r\n setOrg(null);\r\n props.getOrgsByOblKodName({ KodObl: kodObl, KodOrg: kodOrg, NameOrg: nameOrg });\r\n }\r\n }\r\n const handleSelectOrg = async (org) => {\r\n //setOrg(org);\r\n let kod = org.kobj;\r\n let name = getNameLocalize(props.i18n, org);\r\n setOrg({ kod, name });\r\n }\r\n\r\n return handleCloseDlg(false)}\r\n backdrop=\"static\"\r\n keyboard={false}\r\n bsSize=\"large\">\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n {' '}\r\n setKodOrg(evt.target.value.trim())} />\r\n {' '}\r\n \r\n {' '}\r\n setNameOrg(evt.target.value.trim())} />\r\n {' '}\r\n \r\n
    \r\n \r\n \r\n handleSelectKodObl(evt.target.value)}>\r\n {props.nsi.allobls.map((obl) => )}\r\n \r\n \r\n \r\n \r\n {props.nsi.orgs.map((o) => {\r\n if (org != null && o.kobj === org.kod)\r\n return handleSelectOrg(o)}>{getNameLocalize(props.i18n, o)}\r\n else\r\n return handleSelectOrg(o)}>{getNameLocalize(props.i18n, o)}\r\n })\r\n }\r\n \r\n \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n}\r\n\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators(actionCreators, dispatch)\r\n)(SelectOrgModal);","import React, { Fragment, useState, useEffect } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { Form, ControlLabel, FormControl, Row, Col, Button, FormGroup } from 'react-bootstrap';\r\nimport { Translate } from 'react-redux-i18n';\r\nimport { actionCreators } from '../../store/Nsi';\r\nimport SelectOrgModal from './SelectOrgModal'\r\nimport { getNameLocalize } from '../Constants';\r\n\r\nfunction SelectOrg(props) {\r\n const [org, setOrg] = useState({});\r\n const [show, setShow] = useState(false);\r\n /*\r\n const [isReadOnly, setIsReadOnly] = useState(false);\r\n useEffect(async () => {\r\n setIsReadOnly(props.isReadOnly === true);\r\n }, [props.isReadOnly]);\r\n */\r\n useEffect(() => {\r\n let fetch = async () => {\r\n if (props.org != null) {\r\n let org1 = await props.getOrgByKod(props.org.kod);\r\n if (org1 != null) {\r\n setOrg({ kod: org1.kobj, nameRu: org1.nameRu, nameKz: org1.nameKz, nomenklKod: org1.nomenklKod, parentKod: org1.parentKod });\r\n return;\r\n }\r\n }\r\n setOrg({});\r\n }\r\n fetch();\r\n }, [props.org]);\r\n const handleChangeKod = async (evt) => {\r\n let kod = evt.target.value.trim();\r\n if (kod.length === 4) {\r\n //todo search org by kod\r\n let org1 = await props.getOrgByKod(kod);\r\n if (org1 != null) {\r\n let o = { kod: org1.kobj, nameRu: org1.nameRu, nameKz: org1.nameKz, nomenklKod: org1.nomenklKod, parentKod: org1.parentKod };\r\n //setOrg(org);\r\n props.setOrg(o);\r\n } else {\r\n //setOrg({});\r\n props.setOrg(null);\r\n }\r\n } else if (kod.length > 4) {\r\n evt.preventDefault();\r\n } else {\r\n ///setOrg({});\r\n props.setOrg(null);\r\n }\r\n }\r\n const handleCloseDlg = (data) => {\r\n if (data.isNotCancel === true) {\r\n let org1 = { kod: data.org.kobj, nameRu: data.org.nameRu, nameKz: data.org.nameKz, nomenklKod: data.org.nomenklKod, parentKod:data.org.parentKod};\r\n setShow(false);\r\n setOrg(org1);\r\n props.setOrg(org1);\r\n } else\r\n setShow(false);\r\n }\r\n return \r\n
    \r\n \r\n \r\n {' '}\r\n \r\n \r\n \r\n {org.kod != null ? getNameLocalize(props.i18n, org) : ''}\r\n
    \r\n \r\n
    \r\n}\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators(actionCreators, dispatch)\r\n)(SelectOrg);","import React, { useEffect, useState } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { cloneDeep } from 'lodash';\r\nimport { Alert, Row, Table, Button, Col, Modal, ControlLabel, Form, FormGroup, FormControl, ListGroup, ListGroupItem } from 'react-bootstrap';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport TableScrollbar from 'react-table-scrollbar';\r\nimport { Typeahead } from 'react-bootstrap-typeahead';\r\nimport { actionCreators as actionCreatorsNsi } from '../../store/Nsi';\r\nimport { getNameLocalize } from '../Constants';\r\n//import SelectOrg from '../common/SelectOrg';\r\n\r\nconst ListChildsOrgs = (props) => {\r\n const [] = useState(() => {\r\n if (props.nsi.torg.length === 0) {\r\n props.getNs('torg');\r\n }\r\n return true;\r\n }, props.nsi.torg.length > 0);\r\n const [] = useState(() => {\r\n if (props.nsi.nomenkl.length === 0) {\r\n props.getNs('nomenkl');\r\n }\r\n return true;\r\n }, props.nsi.nomenkl.length > 0);\r\n const [parentOrg, setParentOrg] = useState([]);\r\n useEffect(() => {\r\n if (props.kodParentOrg != null) {\r\n const fetch = async () => {\r\n let orgs = await props.getChildsOrgsByParent(props.kodParentOrg);\r\n if (orgs != null)\r\n setChildsOrgs(orgs);\r\n else\r\n setChildsOrgs([]);\r\n let orgP = await props.getOrgByKod(props.kodParentOrg);\r\n setParentOrg(orgP);\r\n }\r\n fetch();\r\n } else\r\n setChildsOrgs([]);\r\n }, [props.kodParentOrg]);\r\n const [childsOrgs, setChildsOrgs] = useState([]);\r\n const [showModalAdd, setShowModalAdd] = useState(false);\r\n const [childAddOrg, setChildAddOrg] = useState();\r\n const addChild = (evt) => {\r\n evt.preventDefault();\r\n setChildAddOrg(null);\r\n setShowModalAdd(true);\r\n }\r\n const removeChild = (evt, org) => {\r\n evt.preventDefault();\r\n const fetch = async () => {\r\n let ret = await props.removeChildOrgByParent(org.kod, props.kodParentOrg);\r\n if (ret.successed === false) {\r\n alert(ret.error)\r\n } else {\r\n let ar = cloneDeep(childsOrgs);\r\n let index1 = ar.map(e => e.kod).indexOf(org.kod);\r\n ar.splice(index1, 1);\r\n setChildsOrgs(ar);\r\n }\r\n }\r\n fetch();\r\n }\r\n const handleCloseDlg = (isNotCancel) => {\r\n if (isNotCancel === false) {\r\n setShowModalAdd(false);\r\n } else if (childAddOrg != undefined) {\r\n const fetch = async () => {\r\n let ret = await props.addChildOrgByParent(childAddOrg.kod, props.kodParentOrg);\r\n if (ret.successed === false) {\r\n alert(ret.error)\r\n } else {\r\n let ar = cloneDeep(childsOrgs);\r\n ar.push(childAddOrg);\r\n setChildsOrgs(ar);\r\n }\r\n setChildAddOrg(null);\r\n }\r\n fetch();\r\n setShowModalAdd(false);\r\n }\r\n };\r\n const [kodOrg, setKodOrg] = useState();\r\n const [nameOrg, setNameOrg] = useState();\r\n const [foundOrgs, setFoundOrgs] = useState([]);\r\n const btSubmitSearcOrg = (evt) => {\r\n evt.preventDefault();\r\n const fetch = async () => {\r\n setChildAddOrg(null);\r\n setFoundOrgs([]);\r\n try {\r\n let ret = await props.getOrgsParentKodAndKodName({ kodParentOrg: props.kodParentOrg, kodOrg: kodOrg != null ? kodOrg : \"\", nameOrg: nameOrg != null ? nameOrg : \"\" });\r\n setFoundOrgs(ret);\r\n } catch (e) {\r\n alert(e);\r\n }\r\n }\r\n fetch();\r\n }\r\n const [showAddNew, setShowAddNew] = useState(false);\r\n const [newOrg, setNewOrg] = useState({});\r\n const [errorsNewOrg, setErrorsNewOrg] = useState([]);\r\n const handleAddNewOrg = (evt) => {\r\n evt.preventDefault();\r\n setChildAddOrg(null);\r\n setNewOrg({\r\n kod: \"\",\r\n parentKod: props.kodParentOrg,\r\n te: parentOrg.te,\r\n obl: parentOrg.kobl,\r\n raion: parentOrg.raion,\r\n /* rnn: \"\",\r\n bin: \"\",\r\n idSur: \"\",\r\n */\r\n rusName: \"\",\r\n kazName: \"\",\r\n adr: \"\",\r\n isMedstat: true,\r\n torgKod: null,\r\n nomenKod: null\r\n });\r\n setShowAddNew(true);\r\n }\r\n const onChangeNomen = (selected) => {\r\n let editOrg = cloneDeep(newOrg);\r\n if (selected.length > 0) {\r\n editOrg.nomenKod = {\r\n kod: selected[0].kod,\r\n nameRu: selected[0].nameRu,\r\n nameKz: selected[0].nameRu,\r\n }\r\n } else {\r\n editOrg.nomenKod = null;\r\n }\r\n setNewOrg(editOrg);\r\n }\r\n const onChangeTorg = (selected) => {\r\n let editOrg = cloneDeep(newOrg);\r\n if (selected.length > 0) {\r\n editOrg.torgKod = {\r\n kod: selected[0].kod,\r\n nameRu: selected[0].nameRu,\r\n nameKz: selected[0].nameRu,\r\n }\r\n } else {\r\n editOrg.torgKod = null;\r\n }\r\n setNewOrg(editOrg);\r\n }\r\n const changeNewOrgFld = (fld, value) => {\r\n let editOrg = cloneDeep(newOrg);\r\n editOrg[fld] = value;\r\n setNewOrg(editOrg);\r\n }\r\n const handleAddOrgToOkpolu = (evt,isNotCancel) => {\r\n evt.preventDefault();\r\n if (isNotCancel === true) {\r\n setErrorsNewOrg([]);\r\n let validate = async () => {\r\n let errors = [];\r\n //validate\r\n let kod = newOrg.kod != null ? newOrg.kod.trim() : null;\r\n if (kod == null || kod === \"\") {\r\n errors.push(\"Введите код организации\");\r\n } else if (!await verifyKodOrg()) {\r\n errors.push(`Данный код организации:${kod} уже используется! Введите другой`);\r\n }\r\n let rus = newOrg.rusName != null ? newOrg.rusName.trim() : null;\r\n if (rus==null || rus===\"\") {\r\n errors.push(\"Введите наименование на русском\");\r\n }\r\n let kaz = newOrg.kazName != null ? newOrg.kazName.trim() : null;\r\n if (kaz == null || kaz === \"\") {\r\n errors.push(\"Введите наименование на казахском\");\r\n }\r\n let adr = newOrg.adr != null ? newOrg.adr.trim() : null;\r\n if (adr == null || adr === \"\") {\r\n errors.push(\"Введите адрес организации\");\r\n }\r\n let nomenKod = newOrg.nomenKod != null ? newOrg.nomenKod.kod : null;\r\n if (nomenKod == null) {\r\n errors.push(\"Введите номенклатуру организации\");\r\n }\r\n let torgKod = newOrg.torgKod != null ? newOrg.torgKod.kod : null;\r\n //if (torgKod == null) {\r\n // errors.push(\"Введите тип организации\");\r\n //}\r\n if (errors.length === 0) {\r\n //todo add org to okpolu\r\n let ret = await props.addOkpoluItem({\r\n kod, parentKod: newOrg.parentKod, nameRu: rus, nameKz: kaz, adr, te: newOrg.te\r\n , obl: newOrg.obl, raion: newOrg.raion, isMedstat: newOrg.isMedstat\r\n , nomenKod: newOrg.nomenKod.kod, torgKod: newOrg.torgKod != null ? newOrg.torgKod.kod : undefined\r\n });\r\n if (ret.isOk) {\r\n let orgs = await props.getChildsOrgsByParent(newOrg.parentKod);\r\n if (orgs != null)\r\n setChildsOrgs(orgs);\r\n else\r\n setChildsOrgs([]);\r\n setShowAddNew(false);\r\n setShowModalAdd(false);\r\n setChildAddOrg(null);\r\n } else {\r\n errors.push(ret.error);\r\n setErrorsNewOrg(errors);\r\n }\r\n } else {\r\n setErrorsNewOrg(errors);\r\n }\r\n }\r\n validate();\r\n } else\r\n setShowAddNew(false);\r\n }\r\n const [showEditNameOrg, setShowEditNameOrg] = useState(false)\r\n const [editOrg, setEditOrg] = useState({});\r\n const [errorsEditOrg, setErrorsEditOrg] = useState([])\r\n const editChild = (evt, org) => {\r\n evt.preventDefault();\r\n setEditOrg(cloneDeep(org));\r\n setShowEditNameOrg(true);\r\n }\r\n const changeEditOrgFld = (fld, value) => {\r\n let edOrg = cloneDeep(editOrg);\r\n edOrg[fld] = value;\r\n setEditOrg(edOrg);\r\n }\r\n const handleEditNameOrg = (evt, isNotCancel) => {\r\n evt.preventDefault();\r\n if (isNotCancel === true) {\r\n setErrorsEditOrg([]);\r\n let valid = async () => {\r\n let errors = [];\r\n //validate\r\n let rus = editOrg.nameRu != null ? editOrg.nameRu.trim() : null;\r\n if (rus == null || rus === \"\") {\r\n errors.push(\"Введите наименование на русском\");\r\n }\r\n let kaz = editOrg.nameKz != null ? editOrg.nameKz.trim() : null;\r\n if (kaz == null || kaz === \"\") {\r\n errors.push(\"Введите наименование на казахском\");\r\n }\r\n if (errors.length === 0) {\r\n let ret = await props.editNameOkpoluItem({\r\n kod: editOrg.kod, nameRu: rus, nameKz: kaz});\r\n if (ret.isOk) {\r\n let orgs = await props.getChildsOrgsByParent(editOrg.parentKod);\r\n if (orgs != null)\r\n setChildsOrgs(orgs);\r\n else\r\n setChildsOrgs([]);\r\n setShowEditNameOrg(false);\r\n } else {\r\n errors.push(ret.error);\r\n setErrorsEditOrg(errors);\r\n }\r\n } else {\r\n setErrorsEditOrg(errors);\r\n }\r\n }\r\n valid();\r\n } else\r\n setShowEditNameOrg(false);\r\n }\r\n const verifyKodOrg = async () => {\r\n //evt.preventDefault();\r\n try {\r\n let ret = await props.checkKodOrg(newOrg.kod);\r\n if (ret.exists === true) {\r\n return false;//alert(\"Данный код организации уже используется! Введите другой\");\r\n } else {\r\n return true//alert(\"Данный код можно использовать!\");\r\n }\r\n } catch (e) {\r\n alert(e);\r\n return false;\r\n }\r\n }\r\n return <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {childsOrgs.map(r => \r\n \r\n \r\n \r\n )}\r\n \r\n
    {r.kod} {getNameLocalize(props.i18n, r)}\r\n
    \r\n \r\n
    \r\n handleCloseDlg(false)}\r\n backdrop=\"static\"\r\n keyboard={false}\r\n bsSize=\"large\">\r\n \r\n \r\n \r\n \r\n {' '}\r\n
    \r\n \r\n {' '}\r\n setKodOrg(evt.target.value)} />\r\n {' '}\r\n \r\n {' '}\r\n setNameOrg(evt.target.value.trim())} />\r\n {' '}\r\n \r\n
    \r\n\r\n {/* \r\n \r\n */}\r\n \r\n \r\n {/* \r\n \r\n \r\n \r\n \r\n */}\r\n \r\n {foundOrgs != null && foundOrgs.map(r => setChildAddOrg({ ...r, kod: r.kobj })}\r\n className={childAddOrg != null && childAddOrg.kod === r.kobj ? \"success\" : \"\"}>\r\n \r\n \r\n )}\r\n \r\n
    {r.kobj}{getNameLocalize(props.i18n, r)}
    \r\n
    \r\n {childAddOrg != null && childAddOrg.parentKod != null ?

    : \"\"}\r\n
    \r\n \r\n {props.userInfo.user.accessLevel === 1 ? : \"\"}\r\n \r\n \r\n \r\n \r\n handleAddOrgToOkpolu(evt,false)}\r\n backdrop=\"static\"\r\n keyboard={false}\r\n bsSize=\"large\">\r\n \r\n \r\n \r\n \r\n
    \r\n \r\n Kod (4 - значный)\r\n \r\n changeNewOrgFld(\"kod\", evt.target.value)} style={{ maxWidth: \"60px\" }} />\r\n {/**/}\r\n \r\n \r\n \r\n RU\r\n \r\n changeNewOrgFld(\"rusName\", evt.target.value)} />\r\n \r\n \r\n \r\n KZ\r\n \r\n changeNewOrgFld(\"kazName\", evt.target.value)} />\r\n \r\n \r\n \r\n \r\n {newOrg.obl}\r\n \r\n \r\n \r\n {newOrg.raion}\r\n \r\n \r\n \r\n {newOrg.te}\r\n \r\n \r\n \r\n \r\n changeNewOrgFld(\"adr\", evt.target.value)} />\r\n \r\n \r\n \r\n {':'}\r\n \r\n `${option.kod} ${option.nameRu}`}\r\n options={props.nsi.nomenkl}\r\n placeholder=\"Выберите номенклатуру...\"\r\n onChange={onChangeNomen} />\r\n

    {newOrg != null && newOrg.nomenKod != null ? `${newOrg.nomenKod.kod} ${newOrg.nomenKod.nameRu}` : \"\"}

    \r\n \r\n
    \r\n \r\n {':'}\r\n \r\n `${option.kod} ${option.nameRu}`}\r\n options={props.nsi.torg}\r\n placeholder=\"Выберите тип организации...\"\r\n onChange={onChangeTorg} />\r\n

    {newOrg != null && newOrg.torgKod != null ? `${newOrg.torgKod.kod} ${newOrg.torgKod.nameRu}` : \"\"}

    \r\n \r\n
    \r\n
    \r\n {errorsNewOrg.length > 0 ? <>

    Ошибки:

    {errorsNewOrg.map((m, i) =>\r\n {m})} : \"\"}\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n handleEditNameOrg(evt, false)}\r\n backdrop=\"static\"\r\n keyboard={false}\r\n bsSize=\"large\">\r\n \r\n \r\n \r\n \r\n
    \r\n \r\n RU\r\n \r\n changeEditOrgFld(\"nameRu\", evt.target.value)} />\r\n \r\n \r\n \r\n KZ\r\n \r\n changeEditOrgFld(\"nameKz\", evt.target.value)} />\r\n \r\n \r\n
    \r\n {errorsEditOrg.length > 0 ? <>

    Ошибки:

    {errorsEditOrg.map((m, i) =>\r\n {m})} : \"\"}\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n ;\r\n}\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators(actionCreatorsNsi, dispatch)\r\n)(ListChildsOrgs);","import React, { useState } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { Row, Col} from 'react-bootstrap';\r\nimport { Translate} from 'react-redux-i18n';\r\nimport { actionCreators as actionCreatorsNsi } from '../../store/Nsi';\r\nimport SelectOrg from '../common/SelectOrg';\r\nimport ListChildsOrgs from './ListChildsOrgs';\r\n\r\nconst AdminEditChildOrg = (props) => {\r\n const [org, setOrg] = useState();\r\n return <>\r\n \r\n

    \r\n

    \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n {org != null ? : \"\"}\r\n \r\n}\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators(actionCreatorsNsi, dispatch)\r\n)(AdminEditChildOrg);","import React, { useEffect, useState, useMemo } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { cloneDeep } from 'lodash';\r\nimport { Alert, Row, Table, Button, Col, Modal, FormGroup, FormControl, Checkbox, ControlLabel, Form } from 'react-bootstrap';\r\n//import { useTable, useGlobalFilter } from 'react-table'\r\n//import ReactTable from 'react-table';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport { actionCreators as actionCreatorsNsi } from '../../store/Nsi';\r\nimport { getNameLocalize } from '../Constants';\r\n\r\nconst SelectTeModal = (props) => {\r\n const [nasels, setNasels] = useState([]);\r\n const [te, setTe] = useState();\r\n useEffect(() => {\r\n if (props.te != null) {\r\n let o = cloneDeep(props.te);\r\n const lNas = async (raion) => {\r\n setNasels(await getNasels(raion));\r\n }\r\n lNas(o.raion);\r\n setTe(o);\r\n } else {\r\n setTe(null);\r\n }\r\n }, [props.te]);\r\n\r\n const handleCloseDlg = (isNotCancel) => {\r\n if (isNotCancel === false)\r\n props.handleCloseDlg({ isNotCancel, te: null });\r\n else /*if (org != undefined)*/ {\r\n props.handleCloseDlg({ isNotCancel, te });\r\n }\r\n };\r\n const changeFld = (fld, value) => {\r\n let o = cloneDeep(te);\r\n o[fld] = value;\r\n if (fld == \"obl\") {\r\n //попробуем заменить область в районе\r\n let ra = `${value}${o.raion.substring(2)}`;\r\n if (props.nsi.allraions.filter(r => r.idRaion === ra).length > 0) {\r\n o.raion = ra;\r\n //попробуем заменить область в te\r\n let t = `${value}${o.te.substring(2)}`;\r\n let getN = async (ra) => {\r\n let nas = await getNasels(ra);\r\n if (nas.length > 0) {\r\n let nn = nas.filter(n => n.te == t)\r\n if (nn.length > 0) {\r\n o.te = nn[0].te;\r\n } else {\r\n o.te = nas[0].te;\r\n }\r\n } \r\n setNasels(nas);\r\n setTe(o);\r\n }\r\n getN(ra);\r\n return;\r\n } else {\r\n let ra = props.nsi.allraions.filter(r => r.obl === o.obl)[0].idRaion;\r\n o.raion = ra;\r\n getNas(ra,o);\r\n return;\r\n }\r\n }else if (fld == \"raion\") {\r\n getNas(value,o);\r\n return;\r\n } else {//nas te\r\n setTe(o);\r\n }\r\n }\r\n const getNas = async (kodRaion,o) => {\r\n let nas = await getNasels(kodRaion);\r\n o.te = nas[0].te;\r\n setNasels(nas);\r\n setTe(o);\r\n }\r\n const getNasels = async (kodRaion) => {\r\n let nls = await props.getNaselRaion(kodRaion);\r\n if (nls != null && nls.length > 0) {\r\n return nls;\r\n } else {\r\n return [];\r\n }\r\n }\r\n return ( handleCloseDlg(false)}\r\n backdrop=\"static\"\r\n keyboard={false}\r\n bsSize=\"large\">\r\n \r\n \r\n \r\n \r\n {te != null ?\r\n
    \r\n \r\n \r\n \r\n changeFld(\"obl\",evt.target.value)} style={{ width: \"auto\" }} style={{ display: \"inline-block\", width: \"auto\", marginRight: \"5px\" }}>\r\n {props.nsi.allobls.map(it => )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n changeFld(\"raion\", evt.target.value)} style={{ width: \"auto\" }} style={{ display: \"inline-block\", width: \"auto\", marginRight: \"5px\" }}>\r\n {props.nsi.allraions.filter(r => r.obl === te.obl).map(it => )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n changeFld(\"te\", evt.target.value)} style={{ width: \"auto\" }} style={{ display: \"inline-block\", width: \"auto\", marginRight: \"5px\" }}>\r\n {nasels != null ? nasels.map((nas) => ) : ''}\r\n \r\n \r\n \r\n
    \r\n :\"\"}\r\n
    \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators(actionCreatorsNsi, dispatch)\r\n)(SelectTeModal);","import React, { useEffect, useState, useMemo } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { cloneDeep } from 'lodash';\r\nimport { Alert, Row, Table, Button, Col, Modal, FormGroup, FormControl, Checkbox, ControlLabel, Form } from 'react-bootstrap';\r\n//import { useTable, useGlobalFilter } from 'react-table'\r\n//import ReactTable from 'react-table';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport { actionCreators as actionCreatorsNsi } from '../../store/Nsi';\r\nimport { getNameLocalize } from '../Constants';\r\n\r\nimport SelectTeModal from './SelectTeModal';\r\n\r\nconst EditOrgModal = (props) => {\r\n const [nasels, setNasels] = useState([]);\r\n const [org, setOrg] = useState();\r\n useEffect(() => {\r\n if (props.org != null) {\r\n let o = cloneDeep(props.org);\r\n let fRa = props.nsi.allraions.filter(r => r.obl === o.obl)[0];\r\n if (o.raion.substr(2, 2) === \"00\") {\r\n o.raion = fRa.idRaion;\r\n o.te = fRa.te;\r\n } else {\r\n let fRa2 = props.nsi.allraions.filter(r => r.kod.substr(0, 4) === o.te.substr(0, 4));\r\n if (fRa2.length === 0) {\r\n o.raion = fRa.idRaion;\r\n o.te = fRa.te;\r\n }\r\n }\r\n setOrg(o);\r\n let getNas = async (kodRaion) => {\r\n let nas = await getNasels(kodRaion);\r\n setNasels(nas);\r\n }\r\n getNas(o.raion);\r\n } else {\r\n setOrg(null);\r\n setNasels([]);\r\n }\r\n }, [props.org]);\r\n const getNasels = async (kodRaion) => {\r\n let nls = await props.getNaselRaion(kodRaion);\r\n if (nls != null && nls.length > 0) {\r\n return nls;\r\n } else {\r\n return [];\r\n }\r\n }\r\n const handleCloseDlg = (isNotCancel) => {\r\n if (isNotCancel === false)\r\n props.handleCloseDlg({ isNotCancel, org: null });\r\n else if (org != undefined) {\r\n props.handleCloseDlg({ isNotCancel, org});\r\n } \r\n };\r\n const changeFld = (fld, value) => {\r\n let o = cloneDeep(org);\r\n o[fld] = value;\r\n if (fld ==\"raion\") {\r\n let getNas = async (kodRaion) => {\r\n let nas = await getNasels(kodRaion);\r\n if (nas.length > 0 && nas.filter(n => n.te == org.te).length === 0) {\r\n o.te = nas[0].te;\r\n }\r\n setNasels(nas);\r\n setOrg(o);\r\n }\r\n getNas(value);\r\n return;\r\n }\r\n setOrg(o);\r\n }\r\n const [showChangeObl, setShowChangeObl] = useState(false);\r\n const [newTe, setNewTe] = useState({});\r\n const btChangeObl = (evt) => {\r\n evt.preventDefault();\r\n setNewTe({ obl: org.obl, raion: org.raion, te: org.te });\r\n setShowChangeObl(true);\r\n }\r\n const closeChangeObl = (param) => {\r\n setShowChangeObl(false);\r\n if (param.isNotCancel === true) {\r\n let o = cloneDeep(org);\r\n o.obl = param.te.obl;\r\n o.raion = param.te.raion;\r\n o.te = param.te.te;\r\n let getNas = async (kodRaion) => {\r\n let nas = await getNasels(kodRaion);\r\n if (nas.length > 0 && nas.filter(n => n.te == o.te).length === 0) {\r\n o.te = nas[0].te;\r\n }\r\n setNasels(nas);\r\n setOrg(o);\r\n }\r\n getNas(o.raion);\r\n }\r\n }\r\n return (<> handleCloseDlg(false)}\r\n backdrop=\"static\"\r\n keyboard={false}\r\n bsSize=\"large\">\r\n \r\n \r\n \r\n \r\n {org != null ?\r\n
    \r\n \r\n \r\n \r\n changeFld(\"nameRu\", evt.target.value)} />\r\n \r\n \r\n \r\n \r\n \r\n changeFld(\"nameKz\", evt.target.value)} />\r\n \r\n \r\n \r\n \r\n \r\n changeFld(\"bin\", evt.target.value)} />\r\n \r\n \r\n \r\n \r\n \r\n \r\n {props.nsi.allobls.map(it => )}\r\n \r\n {props.userInfo.user.accessLevel === 1 ? :\"\"}\r\n \r\n \r\n \r\n \r\n \r\n changeFld(\"raion\", evt.target.value)} style={{ width: \"auto\" }} style={{ display: \"inline-block\", width: \"auto\", marginRight: \"5px\" }}>\r\n {props.nsi.allraions.filter(r => r.obl === org.obl).map(it => )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n changeFld(\"te\", evt.target.value)} style={{ width: \"auto\" }} style={{ display: \"inline-block\", width: \"auto\", marginRight: \"5px\" }}>\r\n {nasels != null ? nasels.map((nas) => ) : ''}\r\n \r\n \r\n \r\n \r\n \r\n changeFld(\"isMedstat\", evt.target.checked)}>\r\n \r\n \r\n
    : \"\"}\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators(actionCreatorsNsi, dispatch)\r\n)(EditOrgModal);\r\n//disabled={props.userInfo.user.accessLevel != 1}","import React, { useEffect, useState, Fragment } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { cloneDeep } from 'lodash';\r\nimport { Row, Button, Col, FormGroup, FormControl, ControlLabel, Panel, Form } from 'react-bootstrap';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport { actionCreators as actionCreatorsNsi } from '../../store/Nsi';\r\nimport { getNameLocalize } from '../Constants';\r\nimport EditOrgModal from './EditOrgModal'; \r\nimport './EditOrgsOnObl.css';\r\n\r\n\r\nconst EditOrgsOnObl = (props) => {\r\n const [kobl, setKobl] = useState(() => props.userInfo.user.kodObl);\r\n const [loading, setLoading] = useState(false);\r\n const [data, setData] = useState([]);\r\n const [selRa, setRa] = useState('');\r\n const [kodName, setKodName] = useState('');\r\n const [binOrg, setBinOrg] = useState('');\r\n const [isMedstat, setIsMedstat] = useState('');\r\n const [] = useState(() => {\r\n if (props.nsi.allobls.length === 0) {\r\n props.getNs('allobls');\r\n }\r\n //if (props.nsi.allraions.length === 0) {\r\n // getAllRaions();\r\n // //props.getNs('allraions');\r\n //}\r\n return true;\r\n }, props.nsi.allobls.length > 0);\r\n useEffect(() => {\r\n //загрузка организаций\r\n getOrgs(props.userInfo.user.kodObl);\r\n }, [props.userInfo.kodObl]);\r\n //const getAllRaions = async () => {\r\n // //загрузка районов\r\n // setLoading(true);\r\n // await props.getNs('allraions');\r\n // setLoading(false);\r\n //}\r\n const getOrgs = async (kobl) => {\r\n setData([]);\r\n setLoading(true);\r\n if (props.nsi.allraions.length === 0) {\r\n await props.getNs('allraions');\r\n }\r\n let orgs = await props.getOkpolus(kobl);\r\n setData(orgs);\r\n setLoading(false);\r\n }\r\n const changeObl = (kodObl) => {\r\n setKobl(kodObl);\r\n getOrgs(kodObl);\r\n }\r\n\r\n const [selOrg, setSelOrg] = useState();\r\n const [showEditOrg, setShowEditOrg] = useState(false);\r\n const btEditItem = (evt, kod) => {\r\n evt.preventDefault();\r\n let o = data.filter(f => f.kod === kod)[0];\r\n setSelOrg(o);\r\n setShowEditOrg(true);\r\n }\r\n const closeOrgEdit = (param) => {\r\n if (param.isNotCancel == true) {\r\n updateOrg(param.org);\r\n }\r\n setShowEditOrg(false);\r\n setSelOrg(null);\r\n }\r\n const updateOrg = async (org) => {\r\n setLoading(true);\r\n let ret = await props.updateOkpoluItem(org);\r\n if (ret.isOk === true) {\r\n let d = cloneDeep(data)\r\n let ind = d.map(m => m.kod).indexOf(org.kod);\r\n d.splice(ind, 1, org);\r\n setData(d);\r\n } else {\r\n alert(ret.error);\r\n }\r\n setLoading(false);\r\n }\r\n const getRaionName = (kodObl, kodRaion) => {\r\n let ra = props.nsi.allraions.filter(r => r.obl === kodObl && r.idRaion === kodRaion);\r\n if (ra.length > 0) return getNameLocalize(props.i18n, ra[0]);\r\n return \"\";\r\n }\r\n const getOblName = (kodObl) => {\r\n let ob = props.nsi.allobls.filter(o => o.kod === kodObl);\r\n if (ob.length > 0) return getNameLocalize(props.i18n, ob[0]);\r\n return \"\";\r\n }\r\n const filtrOrg = (org) => {\r\n if (selRa === '' && kodName === '' && isMedstat === '' && binOrg === '') return true;\r\n if (isMedstat != '') {\r\n let bIsMedstat = isMedstat === \"1\" ? true : false;\r\n if(org.isMedstat != bIsMedstat) return false;\r\n }\r\n if (selRa != '' && org.raion != selRa) return false;\r\n if (kodName != '' && (org.kod != kodName && !org.nameRu.toLowerCase().includes(kodName.toLowerCase()) && !org.nameKz.toLowerCase().includes(kodName.toLowerCase()))) return false;\r\n if (org.bin == null && binOrg != '') return false;\r\n if (binOrg != '' && org.bin != binOrg && !org.bin.startsWith(binOrg)) return false;\r\n return true;\r\n }\r\n const btClearFiltr = (evt) => {\r\n evt.preventDefault();\r\n setRa('');\r\n setKodName('');\r\n setBinOrg('');\r\n }\r\n const getStyleTe = (te) => {\r\n try {\r\n if (te.substr(2, 2) === \"00\") {\r\n return { color: \"red\" };\r\n } else {\r\n return {color: \"green\"};\r\n }\r\n }\r\n catch (e) {\r\n return { color: \"red\" };\r\n }\r\n }\r\n if ((props.userInfo.user.accessLevel != 1 && props.userInfo.user.accessLevel != 2) || props.userInfo.user.roles.filter(r => r === 'UserReadData').length > 0) return
    ;\r\n\r\n return (
    \r\n \r\n \r\n \r\n 1 || loading===true}\r\n onChange={(evt) => changeObl(evt.target.value)} style={{ width: \"auto\" }}>\r\n {props.nsi.allobls.map(it => )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n setRa(evt.target.value)} style={{ width: \"auto\" }} style={{ display: \"inline-block\", width: \"auto\", marginRight: \"5px\" }}>\r\n \r\n \r\n {props.nsi.allraions.filter(r => r.obl === kobl).map(it => )}\r\n \r\n \r\n \r\n \r\n setKodName(evt.target.value != null ? evt.target.value : '')} disabled={loading === true}/>\r\n \r\n \r\n \r\n setBinOrg(evt.target.value != null ? evt.target.value : '')} disabled={loading === true} />\r\n \r\n \r\n \r\n setIsMedstat(evt.target.value)} style={{ width: \"auto\" }} style={{ display: \"inline-block\", width: \"auto\", marginRight: \"5px\" }}>\r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n {loading === true ? \r\n \r\n
    {I18n.t('editOrgs.loading')}{' '}
    \r\n \r\n
    : ''}\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {data != null ? data.filter(filtrOrg).map(it => \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n ) : \"\"}\r\n \r\n
    {it.kod}{it.nameRu}{it.nameKz}{it.parentOrg != null ? {it.parentOrg.kod} {getNameLocalize(props.i18n, it.parentOrg)} : \"\"}{it.bin}{it.te}{it.obl} {getOblName(it.obl)}{it.raion} {getRaionName(it.obl, it.raion)}{it.isMedstat === true ? I18n.t(\"yes\") : I18n.t(\"no\")}
    \r\n
    \r\n {selOrg != null ? : \"\"}\r\n
    \r\n );\r\n}\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators(actionCreatorsNsi, dispatch)\r\n)(EditOrgsOnObl);","import React, { useState, useEffect } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { actionCreators as actionCreatorsNsi } from '../../store/Nsi';\r\nimport { actionCreators as actionCreatorsAdminUsers } from '../../store/AdminUsers';\r\n\r\nimport { Alert, Row, Modal, Button, Col, FormGroup, ControlLabel, FormControl } from 'react-bootstrap';\r\n\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\n\r\nimport { getNameLocalize } from '../Constants';\r\n\r\nimport { UserItemList } from './UserItemList';\r\nimport UserEdit from './UserEdit';\r\nimport loadingImg from '../../images/loading.gif';//'../images/loading.gif';\r\n\r\nconst AdminChildsUsers = (props) => {\r\n const [] = useState(() => {\r\n if (props.nsi.allobls.length === 0) {\r\n props.getNs('allobls');\r\n }\r\n if (props.nsi.allraions.length === 0) {\r\n props.getNs('allraions');\r\n }\r\n return true;\r\n }, props.nsi.allobls.length > 0);\r\n useEffect(() => {\r\n const getChilds = async () => {\r\n const orgs = await props.getChildsOrgsByParent(props.userInfo.user.kodOrg);\r\n if (orgs.length > 0) {\r\n setChilds(orgs);\r\n let kodOrg = orgs[0].kod;\r\n setSelChild(kodOrg);\r\n await props.requestSearchUsersChildOrgs({\r\n searchText: null,\r\n startPage: 1,\r\n sizePage: 100,\r\n tobj: 4,\r\n kobl: null,\r\n kraion: null,\r\n korg: kodOrg,\r\n });\r\n }\r\n }\r\n getChilds();\r\n }, [props.userInfo.user.kodOrg]);\r\n const [childs, setChilds] = useState([]);\r\n const [selChild, setSelChild] = useState();\r\n const [selectedUserId, setSelectedUserId] = useState();\r\n const [selectedUser, setSelectedUser] = useState();\r\n const [password, setPassword] = useState();\r\n const [passwordConfirm, setPasswordConfirm] = useState();\r\n\r\n const selectUser = (userId) => {\r\n props.ClearUserUpdateResult();\r\n let selUser = undefined;\r\n if (props.adminUsers.usersResult) {\r\n let findUs;\r\n if (!Array.prototype.find) //iE11\r\n findUs = props.adminUsers.usersResult.users.filter(u => u.id === userId)[0];\r\n else\r\n findUs = props.adminUsers.usersResult.users.find(u => u.id === userId);\r\n if (findUs !== undefined) {\r\n selUser = { ...findUs, isNew: false, password: undefined, passwordConfirm: undefined };\r\n }\r\n }\r\n setSelectedUserId(userId);\r\n setSelectedUser(selUser);\r\n setPassword(null);\r\n setPasswordConfirm(null);\r\n }\r\n const selectChild = (kod) => {\r\n setSelChild(kod);\r\n setSelectedUser(null);\r\n //load child users\r\n props.requestSearchUsersChildOrgs({\r\n searchText: null,\r\n startPage: 1,\r\n sizePage: 100,\r\n tobj: 4,\r\n kobl: null,\r\n kraion: null,\r\n korg: kod,\r\n });\r\n }\r\n\r\n const renderUpdateResult = (userUpdateResult) => {\r\n if (userUpdateResult) {\r\n if (userUpdateResult.result) {\r\n return
    \r\n
    \r\n \r\n Данные сохранены!\r\n
    \r\n
    ;\r\n } else {\r\n return
    \r\n \r\n Ошибка сохранения! {userUpdateResult.error}.\r\n
    ;\r\n //
    Произошла ошибка: {userUpdateResult.error}
    \r\n }\r\n }\r\n return '';\r\n }\r\n const updateUser = (user) => {\r\n //using add or update store\r\n props.requestInsertOrUpdateUserChildOrgs(user);\r\n setSelectedUser(user);\r\n }\r\n const changePassUser = (username, oldPassword, newPassword) => {\r\n props.changePassUserChildOrgs({ username, oldPassword, newPassword });\r\n }\r\n const changeUserName = (data) => {\r\n props.changeUserNameChildOrgs(data);\r\n }\r\n const [showModalDelete, setShowModalDelete] = useState();\r\n const [userDelete, setUserDelete] = useState();\r\n const deleteUser = (user) => {\r\n setUserDelete(user)\r\n setShowModalDelete(true);\r\n }\r\n const handleCloseModalDeleteUser = () => {\r\n setShowModalDelete(false)\r\n setUserDelete(null);\r\n }\r\n const handleDeleteUserFromModal = () => {\r\n setShowModalDelete(false);\r\n setSelectedUserId(null);\r\n setSelectedUser(null);\r\n props.deleteUserChildOrgs(userDelete.id);\r\n setUserDelete(null);\r\n }\r\n const AddOnClick = (event) => {\r\n event.preventDefault();\r\n props.ClearUserUpdateResult();\r\n setSelectedUserId(null);\r\n let org = childs.filter(f => f.kod === selChild)[0];\r\n setSelectedUser({\r\n id: undefined,\r\n accessLevel: 4,\r\n typeUser: 5,\r\n username: '',\r\n email: '',\r\n fio: '',\r\n obl: props.userInfo.user.kodObl ?\r\n { kod: props.userInfo.user.kodObl, nameRu: props.userInfo.user.nameObl, nameKz: props.userInfo.user.nameOblKz }\r\n : { kod: '75', nameKz: 'Алматы қ.', nameRu: 'г.Алматы' },\r\n org: { kod: org.kod, nameRu: org.nameRu, nameKz: org.nameKz }/*props.userInfo.user.kodOrg ?\r\n { kod: props.userInfo.user.kodOrg, nameRu: props.userInfo.user.nameOrg, nameKz: props.userInfo.user.nameOrgKz }\r\n : { kod: '028W', nameKz: 'ГККП \"ГОРОДСКАЯ ПОЛИКЛИHИКА N7\"', nameRu: 'ГККП \"ГОРОДСКАЯ ПОЛИКЛИHИКА N7\"' }*/,\r\n raion: props.userInfo.user.kodRaion ?\r\n { kod: props.userInfo.user.kodRaion, nameRu: props.userInfo.user.nameRaion, nameKz: props.userInfo.user.nameRaionKz }\r\n : { kod: '751110000', nameKz: 'Алмалинский район', nameRu: 'Алмалинский район' },\r\n roles: [\"UserEditData\"],\r\n isNew: true,\r\n password: '',//undefined,\r\n passwordConfirm: '',//undefined,\r\n oldPassword: '',//undefined,\r\n newPassword: '',//undefined,\r\n });\r\n }\r\n return <>\r\n

    \r\n \r\n \r\n selectChild(evt.target.value)}>\r\n {childs.map(m => )}\r\n \r\n \r\n {props.adminUsers.isLoading ? {I18n.t('wait')}{' '}ПодождитеИдет загрузка данных... : ''}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
      \r\n {props.adminUsers.usersResult ? props.adminUsers.usersResult.users.map((user,i) =>\r\n \r\n ) : ''}\r\n
    \r\n
    \r\n
    \r\n \r\n \r\n {renderUpdateResult(props.adminUsers.userUpdateResult)}\r\n {selectedUser ? : ''}\r\n \r\n
    \r\n \r\n \r\n Удаление пользователя\r\n \r\n \r\n

    \r\n Вы дествительно хотите удалить пользователя {userDelete != undefined ? userDelete.fio : ''}?\r\n

    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n}\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators(Object.assign({}, actionCreatorsAdminUsers, actionCreatorsNsi), dispatch)\r\n)(AdminChildsUsers);","import React, { useEffect, Fragment, useState } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { cloneDeep } from 'lodash';\r\nimport { Alert, Row, Table, Button, ButtonGroup, Col, Modal, FormGroup, FormControl, ListGroup, ListGroupItem, ControlLabel, Form, Radio, Checkbox, Panel } from 'react-bootstrap';\r\n//import { useTable, useGlobalFilter } from 'react-table'\r\n//import ReactTable from 'react-table';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport { actionCreators as actionCreatorsNsi } from '../../store/Nsi';\r\nimport { actionCreators as actionCreatorsWork } from '../../store/Work';\r\n\r\nimport { Typeahead } from 'react-bootstrap-typeahead';\r\nimport { getNameLocalize } from '../Constants';\r\n\r\n\r\n\r\nconst AccessRazdOrg = (props) => {\r\n useEffect(() => {\r\n props.getNs('orgs', [{ name: \"obl\", value: props.userInfo.user.kodObl }]);\r\n }, [props.userInfo.user.kodObl])\r\n const refTypeahead = React.createRef();\r\n const [yearsCopy, setYearsCopy] = useState();\r\n const [selYear, setSelYear] = useState();\r\n useState(() => {\r\n if (props.nsi.sprraz.length === 0) props.getNs('sprraz');\r\n if (props.nsi.sprform.length === 0) props.getNs('sprform');\r\n let year = new Date().getFullYear();\r\n setYearsCopy([year - 1, year]);\r\n setSelYear(year - 1);\r\n });\r\n const onSelectYear = (e) => {\r\n setSelYear(parseInt(e.target.value, 10));\r\n }\r\n const btCopyFromYear = (evt) => {\r\n evt.preventDefault();\r\n const getL = async () => {\r\n setLoadingText(\"editOrgs.loading\");\r\n setIsLoading(true);\r\n let resp = await props.getAccesRazdFromYear(orgParam.korg, selYear);\r\n if (resp.successed == true) {\r\n if (resp.isAll === true || (resp.listRaz.length === 0 && resp.listForm.length === 0)) { setIsLoading(false); return; }\r\n let op = cloneDeep(orgParam);\r\n if (resp.listRaz.length > 0) {\r\n //разрезы\r\n for (var i in resp.listRaz) {\r\n let r = resp.listRaz[i];\r\n if (op.listRaz.filter(f => f.raz === r.raz).length > 0) continue;\r\n op.listRaz.push(r);\r\n }\r\n }\r\n if (resp.listForm.length > 0) {\r\n //формы\r\n for (var j in resp.listForm) {\r\n let fo = resp.listForm[j];\r\n if (op.listForm.filter(f => f.kf === fo.kf).length > 0) continue;\r\n op.listForm.push(fo);\r\n }\r\n }\r\n setOrgParam(op);\r\n } else {\r\n alert(resp.message);\r\n }\r\n setIsLoading(false);\r\n }\r\n getL();\r\n }\r\n const [selectOrg, setSelectOrg] = useState();\r\n const [orgParam, setOrgParam] = useState();\r\n const [orgParamOriginal, setOrgParamOriginal] = useState();\r\n const [isLoading, setIsLoading] = useState(false);\r\n const [loadingText, setLoadingText] = useState(\"editOrgs.loading\");\r\n const [isDataSaved, setIsDataSaved] = useState(false);\r\n const [mode, setMode] = useState(\"show\");\r\n const onChangeOrg = (selected) => {\r\n setIsDataSaved(false);\r\n if (selected.length > 0) {\r\n let korg = selected[0].kobj;\r\n setSelectOrg({ korg, nameRu: selected[0].nameRu });\r\n loadOrgParam(korg);\r\n } else {\r\n setSelectOrg(null);\r\n setOrgParam(null);\r\n }\r\n }\r\n const btClearClick = (evt) => {\r\n evt.preventDefault();\r\n refTypeahead.current.clear();\r\n setIsDataSaved(false);\r\n setSelectOrg(null);\r\n setOrgParam(null);\r\n }\r\n const loadOrgParam = async (korg) => {\r\n setOrgParam(null);\r\n setIsLoading(true);\r\n let resp = await props.loadAccesRazdOrgParam(korg);\r\n if (resp.successed == true) {\r\n setOrgParam({ korg, isAll: resp.isAll, listRaz: resp.listRaz, listForm: resp.listForm });\r\n setIsDataSaved(false);\r\n } else {\r\n alert(resp.message);\r\n }\r\n setIsLoading(false);\r\n }\r\n const btSaveClick = (evt) => {\r\n evt.preventDefault();\r\n setMode(\"show\");\r\n const saveAcRazdOrg = async () => {\r\n setLoadingText(\"saving\");\r\n setIsLoading(true);\r\n let resp = await props.saveAccesRazdOrgParam(orgParam);\r\n setIsLoading(false);\r\n if (resp.successed == true) {\r\n setOrgParamOriginal(null);\r\n setIsDataSaved(true);\r\n } else {\r\n alert(resp.message);\r\n }\r\n }\r\n saveAcRazdOrg();\r\n }\r\n const changeFieldParamOrg = (fldName, value) => {\r\n let updateValues = {};\r\n updateValues[fldName] = value;\r\n let p = cloneDeep(orgParam);\r\n let ar = { ...p, ...updateValues };\r\n setOrgParam(ar);\r\n }\r\n const changeIsAllParamOrg = (nm, target) => {\r\n if (nm === \"all\") {\r\n //let op = cloneDeep(orgParam);\r\n //op.listRaz = [];\r\n //op.listForm = [];\r\n //setOrgParam(op);\r\n //setSelRazrs([]);\r\n //setSelForms([]);\r\n if (target.checked === true) {\r\n changeFieldParamOrg(\"isAll\", true);\r\n } else {\r\n changeFieldParamOrg(\"isAll\", false);\r\n }\r\n } else if (nm === \"list\") {\r\n if (target.checked === true) {\r\n changeFieldParamOrg(\"isAll\", false);\r\n } else {\r\n changeFieldParamOrg(\"isAll\", true);\r\n }\r\n }\r\n }\r\n const btEditClick = (evt) => {\r\n evt.preventDefault();\r\n setIsDataSaved(false);\r\n setOrgParamOriginal(cloneDeep(orgParam));\r\n setMode(\"edit\");\r\n }\r\n const btCancelClick = (evt) => {\r\n evt.preventDefault();\r\n setOrgParam(cloneDeep(orgParamOriginal));\r\n setOrgParamOriginal(null);\r\n setMode(\"show\");\r\n }\r\n\r\n const [showRazModal, setShowRazModal] = useState(false);\r\n const [selRazrs, setSelRazrs] = useState([]);\r\n const btEditRaz = (evt) => {\r\n evt.preventDefault();\r\n if (orgParam.listRaz != null && orgParam.listRaz.length > 0) {\r\n setSelRazrs(cloneDeep(orgParam.listRaz));\r\n } else\r\n setSelRazrs([]);\r\n setShowRazModal(true);\r\n }\r\n const btSubmitRazds = (evt) => {\r\n evt.preventDefault();\r\n let p = cloneDeep(orgParam);\r\n p.listRaz = cloneDeep(selRazrs);\r\n setOrgParam(p);\r\n setShowRazModal(false);\r\n setSelRazrs([]);\r\n }\r\n const checkRazrez = (evt) => {\r\n let kod = parseInt(evt.target.value);\r\n if (evt.target.checked === true) {\r\n let i1 = selRazrs.map(r => r.raz).indexOf(kod);\r\n if (i1 < 0) {\r\n let p0 = cloneDeep(selRazrs);\r\n p0.push({ raz: kod, isGod:true, isMes:true });\r\n setSelRazrs(p0);\r\n }\r\n } else {\r\n let i2 = selRazrs.map(r=>r.raz).indexOf(kod);\r\n if (i2 > -1) {\r\n let p1 = cloneDeep(selRazrs);\r\n p1.splice(i2, 1);\r\n setSelRazrs(p1);\r\n }\r\n }\r\n }\r\n const getNameRaz = (r) => {\r\n let razs = props.nsi.sprraz.filter(f => f.kod === r);\r\n if (razs != null && razs.length > 0)\r\n return getNameLocalize(props.i18n, razs[0]);\r\n else\r\n return \"\";\r\n }\r\n const delRaz = (evt, kod) => {\r\n evt.preventDefault();\r\n let op = cloneDeep(orgParam);\r\n let i2 = op.listRaz.map(r=>r.raz).indexOf(kod);\r\n if (i2 > -1) {\r\n op.listRaz.splice(i2, 1);\r\n setOrgParam(op);\r\n }\r\n }\r\n\r\n const [showFormModal, setShowFormModal] = useState(false);\r\n const [selForms, setSelForms] = useState([]);\r\n const btEditForm = (evt) => {\r\n evt.preventDefault();\r\n if (orgParam.listForm != null && orgParam.listForm.length > 0) {\r\n setSelForms(cloneDeep(orgParam.listForm));\r\n } else\r\n setSelForms([]);\r\n setShowFormModal(true);\r\n }\r\n const btSubmitForms = (evt) => {\r\n evt.preventDefault();\r\n let p = cloneDeep(orgParam);\r\n p.listForm = cloneDeep(selForms);\r\n setOrgParam(p);\r\n setShowFormModal(false);\r\n setSelForms([]);\r\n }\r\n const checkForm = (evt) => {\r\n let kod = evt.target.value;\r\n if (evt.target.checked === true) {\r\n let i1 = selForms.map(f => f.kf).indexOf(kod);\r\n if (i1 < 0) {\r\n let p0 = cloneDeep(selForms);\r\n p0.push({ kf: kod, isGod: true, isMes: true });\r\n setSelForms(p0);\r\n }\r\n } else {\r\n let i2 = selForms.map(f => f.kf).indexOf(kod);\r\n if (i2 > -1) {\r\n let p1 = cloneDeep(selForms);\r\n p1.splice(i2, 1);\r\n setSelForms(p1);\r\n }\r\n }\r\n }\r\n const getNameForm = (m) => {\r\n let fo = props.nsi.sprform.filter(f => f.kf === m);\r\n if (fo != null && fo.length > 0)\r\n return props.i18n.locale[0] === 'r' ? fo[0].nameRu : fo[0].nameKz;\r\n else\r\n return \"\";\r\n }\r\n const delForm = (evt, kod) => {\r\n evt.preventDefault();\r\n let op = cloneDeep(orgParam);\r\n let i2 = op.listForm.map(m=>m.kf).indexOf(kod);\r\n if (i2 > -1) {\r\n op.listForm.splice(i2, 1);\r\n setOrgParam(op);\r\n }\r\n }\r\n const changeIs = (evt, list, tp, m) => {\r\n let op = cloneDeep(orgParam);\r\n if (list === \"raz\") {\r\n let i2 = op.listRaz.map(m => m.raz).indexOf(m.raz);\r\n if (i2 === -1) return;\r\n if (tp == \"god\") {\r\n op.listRaz[i2].isGod = evt.target.checked;\r\n } else if (tp == \"mes\") {\r\n op.listRaz[i2].isMes = evt.target.checked;\r\n }\r\n setOrgParam(op);\r\n } else if (list === \"form\") {\r\n let i2 = op.listForm.map(m => m.kf).indexOf(m.kf);\r\n if (i2 === -1) return;\r\n if (tp == \"god\") {\r\n op.listForm[i2].isGod = evt.target.checked;\r\n } else if (tp == \"mes\") {\r\n op.listForm[i2].isMes = evt.target.checked;\r\n }\r\n setOrgParam(op);\r\n }\r\n }\r\n\r\n if (props.userInfo.user.accessLevel != 2 || props.userInfo.user.roles.filter(r => r === 'UserReadData').length > 0) {\r\n return
    ;\r\n }\r\n return (\r\n

    \r\n
    \r\n \r\n {':'}\r\n \r\n

    {selectOrg == null ? \"\" : selectOrg.nameRu}

    \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n {isLoading === true ? \r\n \r\n
    {I18n.t(loadingText)}{' '}
    \r\n \r\n
    : ''}\r\n {selectOrg != null && orgParam != null && isLoading != true ?\r\n \r\n \r\n {selectOrg.korg} {selectOrg.nameRu}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {isDataSaved === true ? : \"\"}\r\n \r\n
    \r\n\r\n \r\n \r\n \r\n changeIsAllParamOrg(\"all\", evt.target)}>\r\n changeIsAllParamOrg(\"list\", evt.target)}>\r\n \r\n \r\n {orgParam.isAll === false ? <>\r\n \r\n \r\n \r\n \r\n {yearsCopy.map(m => )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {orgParam.listRaz != null && orgParam.listRaz.length > 0 ? \r\n {orgParam.listRaz.map(m => {' '}{getNameRaz(m.raz)}\r\n changeIs(evt, \"raz\", \"god\", m)} inline disabled={mode === \"show\"}> changeIs(evt, \"raz\", \"mes\", m)} inline disabled={mode === \"show\"}>)}\r\n : \"\"}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {orgParam.listForm != null && orgParam.listForm.length > 0 ? \r\n {orgParam.listForm.map(m => {' '}{m.kf} {getNameForm(m.kf)}\r\n changeIs(evt, \"form\", \"god\", m)} disabled={mode === \"show\"}> changeIs(evt, \"form\", \"mes\", m)} disabled={mode === \"show\"}>)}\r\n : \"\"}\r\n \r\n \r\n \r\n : \"\"}\r\n
    \r\n
    : \"\"}\r\n setShowRazModal(false)} bsSize=\"lg\" backdrop=\"static\"\r\n dialogClassName=\"select-razdel\">\r\n \r\n \r\n \r\n \r\n \r\n {props.nsi.sprraz.map(m => m.raz).indexOf(m.kod) > -1} onChange={checkRazrez} style={{ margin: \"2px\", border: \"1px solid lightgray\" }} inline>{getNameLocalize(props.i18n, m)}{' '})}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n setShowFormModal(false)} bsSize=\"lg\" backdrop=\"static\"\r\n dialogClassName=\"select-forms\">\r\n \r\n \r\n \r\n \r\n \r\n {props.nsi.sprform.map(m => f.kf).indexOf(m.kf) > -1} onChange={checkForm} style={{ margin: \"2px\", border: \"1px solid lightgray\" }} inline>{m.kf} {getNameLocalize(props.i18n, m)}{' '})}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    );\r\n}\r\n\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators({ ...actionCreatorsNsi, ...actionCreatorsWork }, dispatch)\r\n)(AccessRazdOrg);","import React, { useEffect, useState } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { cloneDeep } from 'lodash';\r\nimport * as FileSaver from 'file-saver';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport { Button, Col, FormGroup, FormControl, ControlLabel, Form, Row, Alert, ListGroup, ListGroupItem, Checkbox } from 'react-bootstrap';\r\n\r\nimport { actionCreators as actionCreatorsSvod } from '../../store/Svod';\r\nimport { actionCreators as actionCreatorsNsi } from '../../store/Nsi';\r\n\r\nimport FilterRazOptions from '../common/FilterRazOptions';\r\nimport { years, getNameLocalize, getCurrentYear } from '../Constants';\r\n\r\nimport './SvodSpecificOrg.css';\r\n/*\r\n Сделаем отдельный режим \"Свод по конкретным организациям района\":\r\n1. Пользователь выбирает: год, период, разрез, область, район, форму\r\n2. Показывается список организаций района у которых введены данные по введенным параметрам\r\n3. Пользователь выбирает из списка организаций нужные.\r\n4. Пользователь Нажимает кнопку \"Сформировать Excel файл свода выбранных организаций\"\r\n5. Формируется файл Excel\r\nПри этом данные свода не сохраняются в базе данных, просто формируется файл Excel свода формы\r\n*/\r\nconst SvodSpecificOrg = (props) => {\r\n useState(() => {\r\n if (props.nsi.allobls.length === 0) props.getNs('allobls');\r\n if (props.nsi.sprraz.length === 0) props.getNs('sprraz');\r\n if (props.nsi.sprform.length === 0) props.getNs('sprform');\r\n if (props.nsi.periods.length === 0) props.getNs('periods');\r\n if (props.nsi.allraions.length === 0) props.getNs('allraions');\r\n //let year = new Date().getFullYear();\r\n //setYearsCopy([year - 1, year]);\r\n //setSelYear(year - 1);\r\n });\r\n const [year, setYear] = useState(() => getCurrentYear());\r\n const [kper, setKper] = useState(4);\r\n const [kraz, setKraz] = useState(1);\r\n const [kobl, setKobl] = useState(props.userInfo.user.kodObl);\r\n const [kraion, setKraion] = useState(props.userInfo.user.kodRaion.substring(0, 4));\r\n const [isAllRaions, setIsAllRaions] = useState(false);\r\n const [kf, setKf] = useState(\"01\");\r\n const [orgs, setOrgs] = useState([]);\r\n const [selOrgs, setSelOrgs] = useState([]);\r\n const [isNotdata, setIsNotdata] = useState(false);\r\n const selKobl = (obl) => {\r\n setKobl(obl)\r\n let ra = props.nsi.allraions.filter(r => r.obl === obl);\r\n if (ra.length > 0) {\r\n setKraion(ra[0].idRaion);\r\n }\r\n }\r\n const filterObl = (f) => {\r\n if (year == null) return true;\r\n let ye = typeof year === 'string' ? parseInt(year, 10) : year;\r\n let dtBeg = f.dtBeg == null ? null : new Date(f.dtBeg);\r\n if (dtBeg != null && dtBeg.getFullYear() > ye) return false;\r\n let dtEnd = f.dtEnd == null ? null : new Date(f.dtEnd);\r\n if (dtEnd != null && ye >= dtEnd.getFullYear()) return false;\r\n return true;\r\n }\r\n const onGetListOrgs = (e) => {\r\n e.preventDefault();\r\n setOrgs([]);\r\n setSelOrgs([]);\r\n setIsNotdata(false);\r\n const loadList = async () => {\r\n let ret = await props.loadListOrgData({\r\n year, kper, kraz, kobl, kraion, kf, isAllRaions\r\n });\r\n if (ret.successed === true) {\r\n setOrgs(ret.orgs);\r\n if (ret.orgs.length === 0) setIsNotdata(true);\r\n } else\r\n alert(ret.error);\r\n }\r\n loadList();\r\n }\r\n const onClickOrg = (korg, check) => {\r\n let sel = cloneDeep(selOrgs);\r\n if (check === true) {\r\n if (sel.filter(f => f == korg).length === 0) {\r\n sel.push(korg);\r\n setSelOrgs(sel);\r\n }\r\n } else {\r\n let ind = sel.map(m => m).indexOf(korg);\r\n if (ind > -1) {\r\n sel.splice(ind, 1);\r\n setSelOrgs(sel);\r\n }\r\n }\r\n }\r\n const getListItem = (m) => {\r\n if (selOrgs.filter(f => f === m.kod).length > 0)\r\n return onClickOrg(evt.target.value, evt.target.checked)}>{m.kod} {getNameLocalize(props.i18n, m)}\r\n else\r\n return onClickOrg(evt.target.value, evt.target.checked)}>{m.kod} {getNameLocalize(props.i18n, m)}\r\n }\r\n const onGenSvodExcel = (e) => {\r\n e.preventDefault();\r\n const toExcel = async () => {\r\n props.setIsLoading(true);\r\n let absoluteUrl = `${document.location.protocol}//${document.location.host}/generate/Excel/SpecificOrgs`;\r\n let fileName = `s${isAllRaions?'ar':''}_${year}_${kper}_${kraz}_${kobl}_${kraion}_${kf}.xlsx`;\r\n let json = JSON.stringify({ year, kper, kraz, kobl, kraion, kf, orgs: selOrgs });\r\n const response = await fetch(absoluteUrl, {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${props.userInfo.user.token}`\r\n },\r\n body: json\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const blob = await response.blob();\r\n FileSaver.saveAs(blob, fileName);\r\n props.setIsLoading(false);\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n props.setIsLoading(false);\r\n }\r\n }\r\n toExcel();\r\n }\r\n const filterRaion = (rai, year) => {\r\n if (year == null) return true;\r\n let ye = typeof year === 'string' ? parseInt(year, 10) : year;\r\n let dtBeg = rai.dtBeg == null ? null : new Date(rai.dtBeg);\r\n if (dtBeg != null && dtBeg.getFullYear() > ye) return false;\r\n let dtEnd = rai.dtEnd == null ? null : new Date(rai.dtEnd);\r\n if (dtEnd != null && ye >= dtEnd.getFullYear()) return false;\r\n return true;\r\n }\r\n let isReadOnLy = props.userInfo.user.roles.filter(r => r === 'UserReadData').length > 0;\r\n if (isReadOnLy === true)\r\n return \r\n else\r\n return <>
    \r\n
    \r\n \r\n {':'}\r\n \r\n setYear(parseInt(e.target.value, 10))} bsSize=\"small\" style={{ width: \"auto\" }}>\r\n {years.map(it => )}\r\n \r\n \r\n \r\n {':'}\r\n setKper(parseInt(e.target.value, 10))} bsSize='small' style={{ width: \"auto\" }}>\r\n {props.nsi.periods.map(it => )}\r\n \r\n \r\n \r\n {':'}\r\n setKraz(parseInt(e.target.value, 10))} bsSize='small' style={{ width: \"auto\" }}>\r\n \r\n \r\n \r\n \r\n {':'}\r\n \r\n {props.userInfo.user.accessLevel > 1 ?
    {kobl} {props.i18n.locale[0] === 'r' ? props.userInfo.user.nameObl : props.userInfo.user.nameOblKz}
    :\r\n selKobl(e.target.value)} style={{ width: \"auto\" }}>\r\n {props.nsi.allobls.filter(f => filterObl(f)).map(it => )}\r\n }\r\n \r\n
    \r\n \r\n {':'}\r\n \r\n {props.userInfo.user.accessLevel > 2 ? {kraion} {props.i18n.locale[0] === 'r' ? props.userInfo.user.nameRaion : props.userInfo.user.nameRaionKz} :<>\r\n setKraion(e.target.value)} style={{ width: \"auto\" }} style={{ display: \"inline-block\", width: \"auto\", marginRight: \"5px\" }}>\r\n {props.nsi.allraions.filter(r => r.obl === kobl && filterRaion(r, year)).map(it => )}\r\n \r\n setIsAllRaions(e.target.checked)} checked={isAllRaions} inline>\r\n }\r\n \r\n \r\n \r\n {':'}\r\n setKf(e.target.value)} style={{ minWidth: '100%' }}>\r\n {props.nsi.sprform.map(it => )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n {props.svod.isLoading === true ?
    {I18n.t('wait')}{' '}
    : ''}\r\n {isNotdata === true ? : \"\"}\r\n {orgs.length > 0 ?
    \r\n {orgs.map(m => getListItem(m))}\r\n \r\n \r\n \r\n \r\n \r\n \r\n
    : \"\"}\r\n \r\n}\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators({ ...actionCreatorsNsi, ...actionCreatorsSvod }, dispatch)\r\n)(SvodSpecificOrg);\r\n\r\n//{this.state.tobj === 4 && this.state.accessLevel < 3 ? \r\n//disabled={this.state.isAllRaions === true}\r\n/*\r\n {this.props.noFilter === true ? this.props.nsi.sprform.map(it => ) :\r\n props.nsi.sprform.filter(f => filterForms(props.userInfo.user.accessForm, f.kf)).map(it => )}\r\n */","import React, { useEffect, useState } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { cloneDeep } from 'lodash';\r\nimport * as FileSaver from 'file-saver';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport { Button, Col, FormGroup, FormControl, ControlLabel, Form, Row, Alert, Checkbox} from 'react-bootstrap';\r\n\r\nimport { actionCreators as actionCreatorsSvod } from '../../store/Svod';\r\nimport { actionCreators as actionCreatorsNsi } from '../../store/Nsi';\r\n\r\nimport FilterRazOptions from '../common/FilterRazOptions';\r\nimport { years, getNameLocalize, getCurrentYear } from '../Constants';\r\n\r\n//import SelectMultiObjects from '../common/SelectMultiObjects';\r\nimport SelectMultiForms from '../common/SelectMultiForms';\r\nimport SelectObject from '../common/SelectObject';\r\n\r\nconst SvodFormOrgRaz2 = (props) => {\r\n useState(() => {\r\n if (props.nsi.allobls.length === 0) props.getNs('allobls');\r\n if (props.nsi.sprraz.length === 0) props.getNs('sprraz');\r\n if (props.nsi.sprform.length === 0) props.getNs('sprform');\r\n if (props.nsi.periods.length === 0) props.getNs('periods');\r\n if (props.nsi.allraions.length === 0) props.getNs('allraions');\r\n });\r\n const [year, setYear] = useState(() => getCurrentYear());\r\n const [tobj, setTobj] = useState(props.userInfo.user.accessLevel);\r\n const [kper, setKper] = useState(4);\r\n const [kraz_src, setKraz_src] = useState([]);\r\n const [kraz, setKraz] = useState(1);\r\n const [obl, setObl] = useState();\r\n const [raion, setRaion] = useState();\r\n const [org, setOrg] = useState();\r\n const [kforms, setKforms] = useState([]);\r\n //const [errors, setErrors] = useState([]);\r\n const [isSvodComplete, setIsSvodComplete] = useState(false)\r\n /*\r\n const getValidationStateRaz= () =>{\r\n const length = kraz_src.length;\r\n setErrors([]);\r\n let er=[]\r\n if (length > 0)\r\n return 'success';\r\n if (length === 0) {\r\n er.push(\"Выберите разрезы источника\");\r\n setErrors(er);\r\n return 'error';\r\n }\r\n return null;\r\n }\r\n */\r\n const onSelectKrazSrc = (e) => {\r\n let checked = e.target.checked;\r\n let kraz = parseInt(e.target.value, 10);\r\n let kraz_s = cloneDeep(kraz_src);\r\n if (checked) {\r\n kraz_s.push(kraz);\r\n } else {\r\n let ind = kraz_s.indexOf(kraz);\r\n kraz_s.splice(ind, 1);\r\n }\r\n setKraz_src(kraz_s);\r\n }\r\n const getSvodParams = () => {\r\n let kobjs = null;\r\n switch (tobj) {\r\n case 1:\r\n kobjs = [\"00\"];\r\n break;\r\n case 2: //по области\r\n if (props.userInfo.user.accessLevel === 2) \r\n kobjs = [props.userInfo.user.kodObl];\r\n else\r\n kobjs = [obl.kod];\r\n break;\r\n case 3: //по району\r\n if (props.userInfo.user.accessLevel === 3) \r\n kobjs = [props.userInfo.user.kodRaion];\r\n else \r\n kobjs=[raion.kraion];\r\n break;\r\n case 4://организация\r\n if (props.userInfo.user.accessLevel === 4) \r\n kobjs = [props.userInfo.user.kodOrg];\r\n else\r\n kobjs = [org.korg];\r\n break;\r\n default:\r\n }\r\n if (kobjs.length === 0) {\r\n alert(I18n.t(\"selectObjs\"));\r\n return null;\r\n }\r\n if (kforms.length === 0) {\r\n alert(I18n.t(\"selectForms\"));\r\n return null;\r\n }\r\n if (kraz_src.length === 0) {\r\n alert(I18n.t(\"selectRazSrc\"));\r\n return null;\r\n }\r\n if (kraz_src.filter(f => f === kraz).length > 0) {\r\n alert(I18n.t(\"razSrcEqDest\"));\r\n return null;\r\n }\r\n //this.setState({ isSvodComplete: false });\r\n return {\r\n year: year,\r\n kper: kper,\r\n krazSrc: kraz_src,\r\n kraz,\r\n tobj,\r\n kobjs,\r\n kforms\r\n };\r\n }\r\n const onSvodFormOrgRaz = async (e) => {\r\n e.preventDefault();\r\n setIsSvodComplete(false);\r\n let param = getSvodParams();\r\n if (param == null) return;\r\n await props.svodFormOrgRaz2(param);\r\n setIsSvodComplete(true);\r\n }\r\n let isReadOnLy = props.userInfo.user.roles.filter(r => r === 'UserReadData').length > 0;\r\n if (isReadOnLy === true)\r\n return \r\n else\r\n return <>
    \r\n
    \r\n \r\n {':'}\r\n \r\n setYear(parseInt(e.target.value, 10))} bsSize=\"small\" style={{ width: \"auto\" }}>\r\n {years.map(it => )}\r\n \r\n \r\n \r\n {':'}\r\n setKper(parseInt(e.target.value, 10))} bsSize='small' style={{ width: \"auto\" }}>\r\n {props.nsi.periods.map(it => )}\r\n \r\n \r\n \r\n {':'}\r\n \r\n
    \r\n {props.nsi.sprraz/*.filter(f => this.props.userInfo.user.accessLevel !== 4 || f.kod === 3 || f.kod === 4 || f.kod === 5 || f.kod === 6 || f.kod === 12 || f.kod === 23 || f.kod === 24 || f.kod === 25)*/\r\n .map(it => {it.nameRu})}\r\n
    \r\n
    \r\n setKraz(parseInt(e.target.value, 10))} bsSize='small' style={{ width: \"auto\" }}>\r\n \r\n \r\n
    \r\n \r\n
    \r\n \r\n setKforms(kforms)} />\r\n {isSvodComplete === true && props.svod.statusSvod != null && props.svod.statusSvod.successed === true ? \r\n \r\n \r\n \r\n : ''}\r\n {isSvodComplete === true && props.svod.statusSvod != null && props.svod.statusSvod.error != null ? \r\n \r\n {props.svod.statusSvod.error}\r\n \r\n : ''}\r\n \r\n \r\n \r\n \r\n \r\n \r\n}\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators({ ...actionCreatorsNsi, ...actionCreatorsSvod }, dispatch)\r\n)(SvodFormOrgRaz2);","import React, { useEffect, useState } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { cloneDeep } from 'lodash';\r\nimport * as FileSaver from 'file-saver';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport { Button, Col, FormGroup, FormControl, ControlLabel, Form, Row, Alert, Checkbox } from 'react-bootstrap';\r\n\r\nimport { actionCreators as actionCreatorsSvod } from '../../store/Svod';\r\nimport { actionCreators as actionCreatorsNsi } from '../../store/Nsi';\r\n\r\nimport { years, getNameLocalize, getCurrentYear } from '../Constants';\r\n\r\nimport SelectMultiForms from '../common/SelectMultiForms';\r\n\r\n\r\nconst SvodSubOrgObl = (props) => {\r\n useState(() => {\r\n const loadHeadOrgs = async () => {\r\n let ret = await props.loadHeadOrgs();\r\n if (ret.successed) {\r\n setHeadOrgs(ret.data);\r\n } else {\r\n alert(ret.error);\r\n }\r\n };\r\n loadHeadOrgs();\r\n if (props.nsi.allobls.length === 0) props.getNs('allobls');\r\n if (props.nsi.sprraz.length === 0) props.getNs('sprraz');\r\n if (props.nsi.sprform.length === 0) props.getNs('sprform');\r\n if (props.nsi.periods.length === 0) props.getNs('periods');\r\n if (props.nsi.allraions.length === 0) props.getNs('allraions');\r\n if (props.nsi.nomenkl.length === 0) props.getNs('nomenkl');\r\n });\r\n const [headOrgs, setHeadOrgs] = useState([]);\r\n const [isSvodComplete, setIsSvodComplete] = useState(false);\r\n const [error, setError] = useState([]);\r\n const [isLoading, setIsLoading] = useState(false);\r\n const [year, setYear] = useState(() => getCurrentYear());\r\n const [kper, setKper] = useState(4);\r\n const [kraz, setKraz] = useState(23);\r\n const [orgs, setOrgs] = useState([]);\r\n const [kforms, setKforms] = useState([]);\r\n const [isNotParent, setIsNotParent] = useState(false)\r\n const [excludeNomenkl, setExcludeNomenkl] = useState([]);\r\n const onCheckOrg = (e) => {\r\n let checked = e.target.checked;\r\n let ko = e.target.value;\r\n let korgs = cloneDeep(orgs);\r\n if (checked) {\r\n korgs.push(ko);\r\n } else {\r\n let ind = korgs.indexOf(ko);\r\n korgs.splice(ind, 1);\r\n }\r\n setOrgs(korgs);\r\n }\r\n const onCheckNomen = (e) => {\r\n let checked = e.target.checked;\r\n let nomen = e.target.value;\r\n let excNomenkl = cloneDeep(excludeNomenkl);\r\n if (checked) {\r\n excNomenkl.push(nomen);\r\n } else {\r\n let ind = excNomenkl.indexOf(nomen);\r\n excNomenkl.splice(ind, 1);\r\n }\r\n setExcludeNomenkl(exclNomenkl);\r\n }\r\n const onSvodForm = (e) => {\r\n e.preventDefault();\r\n setIsSvodComplete(false);\r\n setError([]);\r\n if (orgs.length === 0) {\r\n setError([I18n.t(\"selHeadOrg\")]);\r\n return;\r\n }\r\n if (kforms.length === 0) {\r\n setError([I18n.t(\"selectForms\")]);\r\n return;\r\n }\r\n const svodFn = async () => {\r\n setIsLoading(true);\r\n let ret = await props.svodSubOblForm({\r\n year: year,\r\n kper: kper,\r\n kraz: kraz,\r\n orgs,\r\n kforms: kforms,\r\n isNotParent,\r\n excludeNomenkl\r\n });\r\n setIsLoading(false);\r\n if (ret.successed == true) {\r\n setIsSvodComplete(true);\r\n } else {\r\n setError([ret.error]);\r\n }\r\n }\r\n svodFn();\r\n }\r\n const textTargetRaz = () => {\r\n //let org = getNameLocalize(props.i18n, { nameRu: props.userInfo.user.nameOrg, nameKz: props.userInfo.user.nameOrgKz });\r\n let srcRaz = getNameLocalize(props.i18n, props.nsi.sprraz.filter(f => f.kod === kraz)[0]);\r\n let ti = kraz - 20;\r\n let targetRaz = getNameLocalize(props.i18n, props.nsi.sprraz.filter(f => f.kod === ti)[0]);\r\n return I18n.t(\"svodSubText\", { srcRaz, targetRaz, org: \"\" });//\r\n }\r\n let isReadOnLy = props.userInfo.user.roles.filter(r => r === 'UserReadData').length > 0;\r\n if (isReadOnLy === true)\r\n return \r\n else\r\n return
    \r\n
    \r\n \r\n {':'}\r\n \r\n setYear(parseInt(e.target.value, 10))} bsSize=\"small\" style={{ width: \"auto\" }}>\r\n {years.filter(y => y > 2020).map(it => )}\r\n \r\n \r\n \r\n {':'}\r\n setKper(parseInt(e.target.value, 10))} bsSize='small' style={{ width: \"auto\" }}>\r\n {props.nsi.periods.map(it => )}\r\n \r\n \r\n \r\n {':'}\r\n setKraz(parseInt(e.target.value, 10))} bsSize='small' style={{ width: \"auto\" }}>\r\n {props.nsi.sprraz.filter(f => f.kod === 23 || f.kod === 24 || f.kod === 25).map(it => )}\r\n \r\n
    {textTargetRaz()}
    \r\n \r\n
    \r\n \r\n {':'}\r\n \r\n setIsNotParent(e.target.checked)} checked={isNotParent}>\r\n \r\n \r\n \r\n {':'}\r\n \r\n {props.nsi.nomenkl.filter(f => f.kod === '052' || f.kod === '053').map(it => {it.kod} {getNameLocalize(props.i18n, it)})}\r\n \r\n \r\n \r\n {':'}\r\n \r\n {headOrgs.map(it => {it.kod} {getNameLocalize(props.i18n, it)})}\r\n \r\n \r\n \r\n {isSvodComplete === true ? \r\n \r\n \r\n \r\n : ''}\r\n {error.length > 0 ? \r\n \r\n
      {error.map(m =>
    • {m}
    • )}
    \r\n \r\n
    : ''}\r\n \r\n \r\n \r\n \r\n \r\n \r\n}\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators({ ...actionCreatorsNsi, ...actionCreatorsSvod }, dispatch)\r\n)(SvodSubOrgObl);","import React, { useEffect, useState } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { cloneDeep } from 'lodash';\r\nimport * as FileSaver from 'file-saver';\r\nimport DatePicker from \"react-datepicker\";\r\nimport \"react-datepicker/dist/react-datepicker.css\";\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport { Table, Button, Col, FormGroup, FormControl, ControlLabel, Form, Row, Alert, Checkbox } from 'react-bootstrap';\r\n\r\nimport { actionCreators as actionCreatorsLog } from '../../store/Log';\r\nimport { actionCreators as actionCreatorsNsi } from '../../store/Nsi';\r\n\r\nimport { formatDateYYYYDDMM, formatDateTime, getNameLocalize } from '../Constants';\r\n\r\nconst LogAudit = (props) => {\r\n const [] = useState(() => {\r\n if (props.nsi.allobls.length === 0) {\r\n props.getNs('allobls');\r\n }\r\n if (props.nsi.allraions.length === 0) {\r\n props.getNs('allraions');\r\n }\r\n return true;\r\n }, props.nsi.allobls.length > 0);\r\n const [startDate, setStartDate] = useState(new Date());\r\n const [endDate, setEndDate] = useState(new Date());\r\n const [action, setAction] = useState(\"1\");\r\n const [list, setList] = useState([]);\r\n const [koblFlt, setKodlFlt] = useState(\"-1\");\r\n const [error, setError] = useState();\r\n const onLoadAudit = (e) => {\r\n e.preventDefault();\r\n const loadLogs = async () => {\r\n setList([]);\r\n setError(null);\r\n var ret = await props.getLog({ startDate: formatDateYYYYDDMM(startDate), endDate: formatDateYYYYDDMM(endDate), action, obl: props.userInfo.user.kodObl });\r\n if (ret.success == true) {\r\n setList(ret.logItems);\r\n } else {\r\n setError(ret.error);\r\n }\r\n }\r\n loadLogs();\r\n }\r\n const setTableBody = () => {\r\n if (props.userInfo.user.accessLevel === 1)\r\n return \r\n {list.filter(f => koblFlt===\"-1\" || f.obj.obl === koblFlt).map((m, i) => \r\n {formatDateTime(m.logged)}\r\n {m.action}\r\n {m.message}
    {getNameLocalize(props.i18n, m.obj)}\r\n {m.user}\r\n {m.ipAddress}\r\n )}\r\n \r\n else\r\n return \r\n {list.map((m, i) => \r\n {formatDateTime(m.logged)}\r\n {m.action}\r\n {m.message}
    {getNameLocalize(props.i18n, m.obj)}\r\n {m.user}\r\n {m.ipAddress}\r\n )}\r\n \r\n }\r\n const filterObl=(f) => {\r\n if (startDate == null) return true;\r\n let ye = startDate.getFullYear();\r\n let dtBeg = f.dtBeg == null ? null : new Date(f.dtBeg);\r\n if (dtBeg != null && dtBeg.getFullYear() > ye) return false;\r\n let dtEnd = f.dtEnd == null ? null : new Date(f.dtEnd);\r\n if (dtEnd != null && ye >= dtEnd.getFullYear()) return false;\r\n return true;\r\n }\r\n let ac = props.userInfo.user.accessLevel;\r\n if (!(ac === 1 || ac === 2) || props.userInfo.user.roles.filter(r => r === 'UserReadData').length > 0) return
    ;\r\n return <>
    \r\n
    \r\n \r\n {':'}\r\n \r\n setStartDate(date)} dateFormat=\"dd.MM.yyyy\" id=\"formStartDt\" disabled={props.log.isLoading === true} />\r\n \r\n \r\n \r\n {':'}\r\n \r\n setEndDate(date)} dateFormat=\"dd.MM.yyyy\" id=\"formEndDt\" disabled={props.log.isLoading === true} />\r\n \r\n \r\n \r\n {':'}\r\n \r\n setAction(evt.target.value)} style={{ minWidth: '100%' }} disabled={props.log.isLoading === true}>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n {error != null ? \r\n \r\n {error}\r\n \r\n : \"\"}\r\n {list.length > 0 ? <>\r\n \r\n {':'}\r\n \r\n {ac > 1 ? {props.i18n.locale[0] === 'r' ? props.userInfo.user.nameObl : props.userInfo.user.nameOblKz} :\r\n setKodlFlt(evt.target.value)} style={{ width: \"auto\" }}>\r\n \r\n \r\n {props.nsi.allobls.filter(f => filterObl(f)).map(it => )}\r\n }\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {setTableBody()}\r\n
    : \"\"}\r\n \r\n}\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators({ ...actionCreatorsNsi, ...actionCreatorsLog }, dispatch)\r\n)(LogAudit);","import React, { useEffect, useState } from 'react';\r\nimport { connect } from 'react-redux';\r\nimport renderHTML from 'react-render-html';\r\n//import { ReactSVG } from 'react-svg';\r\n\r\nfunction MapSvgItem(props) {\r\n const [textSvg, setTextSvg] = useState()\r\n useEffect(() => {\r\n const loadSvg = async () => {\r\n const response = await fetch(props.urlMap, {\r\n credentials: 'include',\r\n method: 'GET',\r\n headers: {\r\n /* \"Accept\": \"application/xml\",*/\r\n \"Authorization\": `Bearer ${props.userInfo.user.token}`,\r\n //\"Content-Type\": \"application/json\"\r\n }\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const text = await response.text();\r\n setTextSvg(text);\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n }\r\n loadSvg();\r\n }, [props.urlMap]);\r\n return textSvg!=null?renderHTML(textSvg):\"\";\r\n //const [urlMap, setUrlMap] = useState()\r\n //useEffect(() => {\r\n // setUrlMap(`${document.location.protocol}//${document.location.host}/api/MedinfoApi/GetMapSvg2/${props.year}/${props.pageId}/${props.typePer}/${props.tobj}/${props.kobj}/${props.columnNo}/${props.bokNo}/${props.lang}`);\r\n //}, [props.year, props.pageId, props.typePer, props.tobj, props.kobj, props.columnNo, props.bokNo, props.lang]);\r\n /*\r\n const attachClickEvent = (elements = []) => {\r\n elements.forEach((element) => {\r\n element.addEventListener('click', (e) => {\r\n console.log('clicked', e);\r\n });\r\n });\r\n };\r\n return props.urlMap != null ? {\r\n console.info(\"afterInjection\");\r\n const anchors = svg != null ? svg.querySelectorAll('path') : [];\r\n console.dir(anchors);\r\n attachClickEvent(anchors);\r\n }\r\n } /> : \"\";\r\n */\r\n\r\n}\r\nexport default connect(\r\n state => state\r\n)(MapSvgItem);","import React, { useState, Fragment } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\n\r\nimport { Button, Form, Table, Modal, Row, Col, Alert, OverlayTrigger, Tooltip, FormGroup, FormControl, ControlLabel } from 'react-bootstrap';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport * as FileSaver from 'file-saver';\r\nimport { arTypePers, arTypeDiagram, getNameLocalize, periods, years, getCurrentYear } from './Constants';\r\n\r\nimport { actionCreators } from '../store/Medinfo/FormulMedinfo';\r\nimport { actionCreators as actionCreatorsNsi } from '../store/Nsi';\r\n\r\n\r\nimport MapSvgItem from './Map/MapSvgItem';\r\n\r\nfunction MapSvg(props) {\r\n const [isLoading, setIsLoading] = useState(false);\r\n useState(() => {\r\n const loadParts = async () => {\r\n setIsLoading(true);\r\n let parts = await props.getParts();\r\n let selPart = (parts != null && parts.length > 0) ? parts[0] : undefined;\r\n setSelectPart(selPart);\r\n let pages = await props.getPagesOfPart(selPart.partId);\r\n let page0 = (pages != null && pages.length > 0) ? pages[0] : undefined;\r\n setSelectPage(page0);\r\n setIsLoading(false);\r\n }\r\n if (props.nsi.allobls.length === 0) {\r\n props.getNs('allobls');\r\n }\r\n loadParts();\r\n });\r\n /*const [] = useState(() => {\r\n if (props.nsi.allobls.length === 0) {\r\n props.getNs('allobls');\r\n }\r\n if (props.nsi.allraions.length === 0) {\r\n props.getNs('allraions');\r\n }\r\n return true;\r\n }, props.nsi.allobls.length > 0);*/\r\n \r\n const [selectPart, setSelectPart] = useState();\r\n const [selectPage, setSelectPage] = useState();\r\n //const [pageId, setPageId] = useState(630/*1026*/);//533,552, 553, 554, 630\r\n const [year, setYear] = useState(getCurrentYear());\r\n const [typePer, setTypePer] = useState(4);//4-год, 101- январь\r\n //const [oneMonth, setOneMonth] = useState(\"101\");\r\n //const [tobj, setTobj] = useState(1);\r\n const [obl, setObl] = useState(props.userInfo.user.kodObl);\r\n //const [raion, setRaion] = useState(null);\r\n const [columnNo, setColumnNo] = useState(1);\r\n const [bokNo, setBokNo] = useState(1);\r\n const [lang, setLang] = useState(props.i18n.locale.substr(0, 2));\r\n const [urlMapRk, setUrlMapRk] = useState();\r\n const [urlMapObl, setUrlMapObl] = useState();\r\n const [orgsData, setOrgsData] = useState();\r\n const saveDataSvg = (e) => {\r\n e.preventDefault();\r\n //fetchExcel();\r\n setParamsRk();\r\n }\r\n const setParamsRk = () => {\r\n let url = `${document.location.protocol}//${document.location.host}/api/MedinfoApi/GetMapSvg2/${year}/${selectPage.pageId}/${typePer}/1/99/${columnNo}/${bokNo}/${lang}`;\r\n setUrlMapRk(url);\r\n let kobl = obl == null ? props.nsi.allobls.filter(f => filterObl(f))[0].kod : obl;\r\n setObl(kobl);\r\n let urlObl = `${document.location.protocol}//${document.location.host}/api/MedinfoApi/GetMapSvg2/${year}/${selectPage.pageId}/${typePer}/2/${kobl}/${columnNo}/${bokNo}/${lang}`;\r\n setUrlMapObl(urlObl);\r\n //getOblsData(kobl);\r\n }\r\n const changeObl = (kobl) => {\r\n setObl(kobl);\r\n let urlObl = `${document.location.protocol}//${document.location.host}/api/MedinfoApi/GetMapSvg2/${year}/${selectPage.pageId}/${typePer}/2/${kobl}/${columnNo}/${bokNo}/${lang}`;\r\n setUrlMapObl(urlObl);\r\n //getOblsData(kobl);\r\n }\r\n const savePngRk = (e) => {\r\n e.preventDefault();\r\n fetchPng(1);\r\n }\r\n const savePngObl = (e) => {\r\n e.preventDefault();\r\n fetchPng(2);\r\n }\r\n const getOblsData = async (kobl) => {\r\n setOrgsData(null);\r\n let oData = await props.getDataOrgsByObl({ pageId: selectPage.pageId, year, kobl, columnNo: columnNo, typePer, lang });\r\n setOrgsData(oData);\r\n }\r\n const fetchPng = async (tobj) => {\r\n let colCnt = columnNo - 1;\r\n if (selectPage.typePage === 2) {\r\n colCnt = (bokNo - 1) * selectPage.columns.length + columnNo - 1;//selectPage.columns.lenght\r\n }\r\n let absoluteUrl = `${document.location.protocol}//${document.location.host}/api/MedinfoApi/GetMapPng`;\r\n let kodObj = null;\r\n switch (tobj) {\r\n case 1:\r\n kodObj = \"99\";\r\n break;\r\n case 2:\r\n kodObj = obl;\r\n break;\r\n //case 3:\r\n // kodObj = raion.kraion;\r\n // break;\r\n default:\r\n }\r\n let fileName = `${selectPage.pageId}_${year}_${tobj}_${kodObj}_${colCnt}_${lang}.png`;\r\n let json = JSON.stringify({\r\n PageId: selectPage.pageId,\r\n Year: year,\r\n Tobj: tobj,\r\n Kobj: kodObj,\r\n ColumnNo: colCnt,\r\n Lang: lang//,\r\n //TypePer: typePer\r\n });\r\n const response = await fetch(absoluteUrl, {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n /* \"Accept\": \"application/xml\",*/\r\n \"Authorization\": `Bearer ${props.userInfo.user.token}`,\r\n \"Content-Type\": \"application/json\"\r\n },\r\n body: json,\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const blob = await response.blob();\r\n FileSaver.saveAs(blob, fileName);\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n }\r\n const fetchExcel = async (tobj) => {\r\n let colCnt = columnNo - 1;\r\n if (selectPage.typePage === 2) {\r\n colCnt = (bokNo - 1) * selectPage.columns.length + columnNo - 1;//selectPage.columns.lenght\r\n }\r\n let absoluteUrl = `${document.location.protocol}//${document.location.host}/api/MedinfoApi/GetMapSvg`;\r\n let kodObj = null;\r\n switch (tobj) {\r\n case 1:\r\n kodObj = \"99\";\r\n break;\r\n case 2:\r\n kodObj = obl;\r\n break;\r\n //case 3:\r\n // kodObj = raion.kraion;\r\n // break;\r\n default:\r\n }\r\n let fileName = `${selectPage.pageId}_${year}_${tobj}_${kodObj}_${colCnt}_${lang}.svg`;\r\n let json = JSON.stringify({\r\n PageId: selectPage.pageId,\r\n Year: year,\r\n Tobj: tobj,\r\n Kobj: kodObj,\r\n ColumnNo: colCnt,\r\n Lang: lang//,\r\n //TypePer: typePer\r\n });\r\n const response = await fetch(absoluteUrl, {\r\n credentials: 'include',\r\n method: 'POST',\r\n headers: {\r\n /* \"Accept\": \"application/xml\",*/\r\n \"Authorization\": `Bearer ${props.userInfo.user.token}`,\r\n \"Content-Type\": \"application/json\"\r\n },\r\n body: json,\r\n });\r\n if (response.ok) { // если HTTP-статус в диапазоне 200-299\r\n // получаем тело ответа (см. про этот метод ниже)\r\n const blob = await response.blob();\r\n FileSaver.saveAs(blob, fileName);\r\n } else {\r\n alert(\"Ошибка HTTP: \" + response.status);\r\n }\r\n }\r\n const onClickPart = (e) => {\r\n let partId = parseInt(e.target.value, 10);\r\n setSelectPart(props.formulmedinfo.parts.filter(t => t.partId === partId)[0]);\r\n const loadPages = async () => {\r\n setIsLoading(true);\r\n let pages = await props.getPagesOfPart(partId);\r\n let page0 = (pages != null && pages.length > 0) ? pages[0] : undefined;\r\n setSelectPage(page0);\r\n if (page0 != null) {\r\n let bno = 0;\r\n if (page0.typePage === 2)\r\n bno = 1;\r\n setBokNo(bno);\r\n setColumnNo(1);\r\n }\r\n setIsLoading(false);\r\n }\r\n loadPages();\r\n }\r\n const showListParts = () => {\r\n if (props.formulmedinfo.parts == null || props.formulmedinfo.parts.length === 0) return '';\r\n return \r\n {':'}\r\n \r\n \r\n {props.formulmedinfo.parts.map(l => )}\r\n \r\n ;\r\n }\r\n const onClickPage = (e) => {\r\n let pageId = parseInt(e.target.value, 10);\r\n let page = props.formulmedinfo.partPages.filter(t => t.pageId === pageId)[0];\r\n let bno = 0;\r\n if (page.typePage === 2)\r\n bno = 1;\r\n setBokNo(bno);\r\n setColumnNo(1);\r\n setSelectPage(page);\r\n }\r\n const showListPages = () => {\r\n if (selectPart == null || props.formulmedinfo.partPages == null || props.formulmedinfo.partPages.length === 0) return '';\r\n return \r\n {':'}\r\n \r\n \r\n {props.formulmedinfo.partPages.map(p => )}\r\n \r\n ;\r\n }\r\n const filterObl = (f) => {\r\n if (f.kod === \"01\") return false;\r\n if (year == null) return true;\r\n let ye = typeof year === 'string' ? parseInt(year, 10) : year;\r\n let dtBeg = f.dtBeg == null ? null : new Date(f.dtBeg);\r\n if (dtBeg != null && dtBeg.getFullYear() > ye) return false;\r\n let dtEnd = f.dtEnd == null ? null : new Date(f.dtEnd);\r\n if (dtEnd != null && ye >= dtEnd.getFullYear()) return false;\r\n return true;\r\n }\r\n return \r\n \r\n \r\n
    \r\n \r\n \r\n \r\n {':'}\r\n \r\n setYear(parseInt(e.target.value, 10))} bsSize=\"small\" style={{ width: \"auto\" }}>\r\n {years.map(it => )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {':'}\r\n \r\n setTypePer(e.target.value)}>\r\n {periods.filter(p => p.kper == 4 || p.kper > 100).map(it => )}\r\n \r\n \r\n \r\n \r\n \r\n {/* setTobj(typetobj)}\r\n setObl={(obl) => setObl({ obl })}\r\n setRaion={(raion) => setRaion({ raion })}\r\n />*/}\r\n \r\n \r\n {showListParts()}\r\n \r\n \r\n \r\n \r\n {showListPages()}\r\n \r\n \r\n {selectPage != null ? \r\n \r\n \r\n \r\n {':'}\r\n \r\n setColumnNo(parseInt(e.target.value,10))}>\r\n {selectPage.columns.map(it => )}\r\n \r\n \r\n \r\n \r\n \r\n {selectPage.typePage === 2 ? \r\n \r\n \r\n {/*{':'}*/}\r\n \r\n setBokNo(parseInt(e.target.value, 10))}>\r\n {selectPage.boks.map(it => )}\r\n \r\n \r\n \r\n \r\n : \"\"}\r\n : \"\"}\r\n \r\n \r\n \r\n {':'}\r\n \r\n setLang(e.target.value)}>\r\n )\r\n )\r\n \r\n \r\n \r\n \r\n \r\n {' '}\r\n \r\n \r\n \r\n {urlMapRk != null ?
    : \"\"}\r\n \r\n
    \r\n {urlMapRk != null ? \r\n \r\n
    \r\n \r\n {':'}\r\n \r\n changeObl(e.target.value)} style={{ width: \"auto\" }}>\r\n {props.nsi.allobls.filter(f => filterObl(f)).map(it => )}\r\n \r\n \r\n \r\n {urlMapObl != null ? : \"\"}\r\n
    \r\n \r\n \r\n {orgsData != null && orgsData.objValues != null && orgsData.objValues.length > 0 ? \r\n \r\n \r\n \r\n \r\n \r\n \r\n {orgsData.objValues.map(m => )}\r\n
    {getNameLocalize(props.i18n, orgsData)}
    {getNameLocalize(props.i18n, m.obj)}{m.value > 0 ? new Intl.NumberFormat(\"ru-RU\").format(m.value) : m.value}
    :\"\"}\r\n \r\n
    : \"\"}\r\n
    \r\n}\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators({ ...actionCreatorsNsi, ...actionCreators }, dispatch)\r\n)(MapSvg);","import React, { Fragment, useEffect, useState } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { cloneDeep } from 'lodash';\r\nimport * as FileSaver from 'file-saver';\r\nimport DatePicker from \"react-datepicker\";\r\nimport \"react-datepicker/dist/react-datepicker.css\";\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport { Table, Button, Col, FormGroup, FormControl, ControlLabel, Form, Row, Alert, Checkbox } from 'react-bootstrap';\r\n\r\n//import { actionCreators as actionCreatorsLog } from '../../store/Log';\r\nimport { actionCreators as actionMedstatTemplates} from '../../store/Medstat/Templates';\r\nimport { actionCreators as actionCreatorsNsi } from '../../store/Nsi';\r\n\r\nimport { getCurrentYear, years, getNameLocalize } from '../Constants';\r\n\r\n\r\nconst EditTemplateFiles = (props) => {\r\n useState(() => {\r\n if (props.nsi.sprform.length === 0) props.getNs('sprform');\r\n });\r\n const [kf, setKf] = useState(\"01\");\r\n const [year, setYear] = useState(getCurrentYear());\r\n const [selectedTemplate, setSelectedTemplate]= useState()\r\n\r\n const onLoadTemplates = (e) => {\r\n e.preventDefault();\r\n e.target.value = null;\r\n let inputRu = document.getElementById('fileTemplateMedstat');\r\n let inputKz = document.getElementById('fileTemplateMedstatKz');\r\n if (inputRu != null) inputRu.value = null;\r\n if (inputKz != null) inputKz.value = null;\r\n const fetchData = async () => {\r\n let data = await props.LoadTemplates(year, kf);\r\n let form = props.nsi.sprform.filter(f => f.kf === kf)[0];\r\n setSelectedTemplate({ form, ...data});\r\n }\r\n fetchData();\r\n }\r\n const uploadExcel = async (lang) => {\r\n let input = document.getElementById(lang == \"ru\" ? 'fileTemplateMedstat' : 'fileTemplateMedstatKz');\r\n if (input.files.length === 0) {\r\n alert(\"Выберите файл\");\r\n return;\r\n }\r\n let formData = new FormData();\r\n formData.append(\"year\", year);\r\n formData.append(\"kf\", kf);\r\n formData.append(\"lang\", lang);\r\n formData.append(\"fileExcel\", input.files[0]);\r\n var ret = await props.UploadTemplate(formData, year, kf, lang);\r\n let form = props.nsi.sprform.filter(f => f.kf === kf)[0];\r\n setSelectedTemplate({ form, ...ret });\r\n }\r\n const uploadExcelRu = (e) => {\r\n e.preventDefault();\r\n uploadExcel(\"ru\");\r\n }\r\n const uploadExcelKz = (e) => {\r\n e.preventDefault();\r\n uploadExcel(\"kk\");\r\n }\r\n const downloadExcel = async (lang) => {\r\n const blob = await props.DownloadTemplate(year, kf, lang);\r\n FileSaver.saveAs(blob, lang = \"ru\" ? selectedTemplate.fileName : selectedTemplate.fileNameKz );\r\n }\r\n const downloadExcelRu = (e) => {\r\n e.preventDefault();\r\n downloadExcel(\"ru\");\r\n }\r\n const downloadExcelKz = (e) => {\r\n e.preventDefault();\r\n downloadExcel(\"kk\");\r\n }\r\n let ac = props.userInfo.user.accessLevel;\r\n if (ac != 1 && props.userInfo.user.roles.filter(r => r === 'AdminEditData').length === 0) return
    ;\r\n return
    \r\n
    \r\n \r\n {':'}\r\n \r\n setYear(parseInt(e.target.value, 10))} disabled={props.medstatTemplates.isLoading === true}>\r\n {years.filter(f => f > 2016).map(it => )}\r\n \r\n \r\n \r\n {':'}\r\n setKf(e.target.value)} style={{ minWidth: '100%' }} disabled={props.medstatTemplates.isLoading === true}>\r\n {props.nsi.sprform.filter(f => f.kf != \"70\" && f.kf != \"71\" && f.kf != \"72\" && f.kf != \"73\" && f.kf != \"74\").map(it => )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n {selectedTemplate != null ?
    \r\n {':'}{selectedTemplate.form.kf} {getNameLocalize(props.i18n, selectedTemplate.form)}\r\n \r\n \r\n Шаблон Excel(рус){':'}\r\n \r\n \r\n {selectedTemplate != null && selectedTemplate.fileName != null ? : ''}\r\n \r\n \r\n \r\n \r\n Шаблон Excel(каз){':'}\r\n \r\n \r\n {selectedTemplate != null && selectedTemplate.fileNameKz != null ? : ''}\r\n \r\n \r\n \r\n
    : \"\"}\r\n
    ;\r\n}\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators({...actionCreatorsNsi, ...actionMedstatTemplates }, dispatch)\r\n)(EditTemplateFiles);","import React, { useState, Fragment } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { Table, Row, Col } from 'react-bootstrap';\r\nimport { Translate } from 'react-redux-i18n';\r\nimport parse from 'html-react-parser';\r\nimport { actionCreators } from '../store/Nsi';\r\nconst VersionsHistory = (props) => {\r\n const [] = useState(() => {\r\n if (props.nsi.versions_history.length === 0) {\r\n props.getNs('versions_history');\r\n }\r\n return true;\r\n }, props.nsi.versions_history.length > 0);\r\n return
    \r\n \r\n \r\n \r\n \r\n \r\n {props.nsi.versions_history.map((d, i) => \r\n \r\n \r\n \r\n )}\r\n \r\n
    {d.versionNo}{d.versionDt}{parse(d.comment)}
    \r\n \r\n \r\n
    \r\n
    № 08-01/15182-И от 20.12.2024 :  \r\n Каз  \r\n Рус\r\n
    \r\n
    Приложение 1:  \r\n Рус\r\n
    \r\n
    Приложение 2:  \r\n Рус\r\n
    \r\n
    Приложение 3:  \r\n Рус\r\n
    \r\n \r\n
    \r\n}\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators(actionCreators, dispatch)//,\r\n)(VersionsHistory);","import React, { /*useEffect,*/ Fragment } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { cloneDeep } from 'lodash';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport { Button, Col, FormGroup, FormControl, ControlLabel, Form, Radio, Checkbox, Row, Alert, Modal } from 'react-bootstrap';\r\n\r\nimport { actionCreators as actionCreatorsSvod } from '../../store/Svod';\r\nimport { actionCreators as actionCreatorsNsi } from '../../store/Nsi';\r\nimport SelectFormTable from '../common/SelectFormTable';\r\nimport SelectObject from '../common/SelectObject';\r\nimport { getNameLocalize, getRazItems, getFirstRaz } from '../Constants';\r\n//import { getToken } from './UserInfo';\r\n\r\n\r\nimport { years, getCurrentYear } from '../Constants';\r\nimport FilterRazOptions from '../common/FilterRazOptions';\r\nimport { useState } from 'react';\r\n\r\nconst EditFormPeriod = (props) => {\r\n useState(() => {\r\n if (props.nsi.allsprtab.length === 0) props.getNs('allsprtab');\r\n if (props.nsi.sprrazdel.length === 0) props.getNs('sprrazdel');\r\n if (props.nsi.sprform.length === 0) props.getNs('sprform');\r\n if (props.nsi.allobls.length === 0) props.getNs('allobls');\r\n if (props.nsi.sprraz.length === 0) props.getNs('sprraz');\r\n if (props.nsi.periods.length === 0) props.getNs('periods');\r\n //if (props.nsi.allraions.length === 0) props.getNs('allraions');\r\n //if (props.userInfo.user.nomenklKod === '008' || props.userInfo.user.nomenklKod === '049' || props.userInfo.user.nomenklKod === '043') {\r\n // const fetchData = async () => {\r\n // const chOrgs = await props.getSubOrgs();\r\n // setChildOrgs(chOrgs);\r\n // }\r\n // fetchData();\r\n //}\r\n });\r\n /*\r\n useEffect(() => {\r\n props.getNs('orgs', [{ name: \"obl\", value: props.userInfo.user.kodObl }]);\r\n }, [props.userInfo.user.kodObl])\r\n */\r\n const [year, setYear] = useState(() => getCurrentYear());\r\n const [arYears, setArYears] = useState(() => {\r\n let curYear = getCurrentYear();\r\n return years.filter(f => f >= curYear);\r\n });\r\n const [kperSrc, setKperSrc] = useState(4);\r\n const [kperDest, setKperDest] = useState(4);\r\n const [kraz, setKraz] = useState(() => {\r\n let raz = getFirstRaz(4, props);\r\n return raz != null ? raz : 1;\r\n });\r\n const [krazd, setKrazd] = useState();\r\n const [form, setForm] = useState(props.userInfo.user.firstFormTable.formGod);\r\n const [table, setTable] = useState(props.userInfo.user.firstFormTable.tableGod);\r\n const [tobj, setTobj] = useState(props.userInfo.user.accessLevel);\r\n const [obl, setObl] = useState();\r\n const [raion, setRaion] = useState();\r\n const [org, setOrg] = useState();\r\n //const [childOrgs, setChildOrgs] = useState([]);\r\n //const [korg, setKorg] = useState(props.userInfo.user.kodOrg);\r\n const [errors, setErrors] = useState([]);\r\n const [successMessage, setSuccessMessage] = useState();\r\n const [svodRunning, setSvodRunning] = useState(false);\r\n const [showConfirm, setShowConfirm] = useState(false);\r\n //const handleConfirmClose = (e) => {\r\n // e.preventDefault();\r\n // setShowConfirm(false);\r\n //}\r\n const getSvodParams = (fnErr) => {\r\n let errs = [];\r\n let kobj = \"00\";\r\n switch (tobj) {\r\n case 2://obl\r\n kobj = obl.kobl;\r\n break;\r\n case 3://raion\r\n kobj = raion.kraion;\r\n break;\r\n case 4://org\r\n kobj = org.korg\r\n break;\r\n default:\r\n }\r\n if (form == null) {\r\n errs.push(\"selectForm\");\r\n }\r\n if (table == null) {\r\n errs.push(\"selectForm\");\r\n }\r\n if (kperSrc === kperDest) {\r\n errs.push(\"perSrcEqDest\");\r\n }\r\n if (errs.length > 0)\r\n fnErr(errs);\r\n return {\r\n year,\r\n kraz,\r\n kperSrc,\r\n kperDest,\r\n tobj,\r\n kobj,\r\n kf: form.kf,\r\n ktab:table.ktab\r\n };\r\n }\r\n const onSvodForm = (e) => {\r\n e.preventDefault();\r\n const isExistPeriod = async () => {\r\n let errs = [];\r\n let param = getSvodParams((ers) => errs = ers);\r\n if (errs.length > 0) {\r\n setErrors(errs);\r\n return;\r\n };\r\n let retData = await props.isExistDataPeriod(param);\r\n if (retData.successed === true) {\r\n if (retData.isNotExistsSrc == true) {\r\n setErrors([\"notExistsDataSrcPer\"]);\r\n return;\r\n }\r\n if (retData.isExists === true) {\r\n //данные уже есть в базе данных, спросить создать свод?\r\n setShowConfirm(true);\r\n return;\r\n } else {\r\n await runEditPeriod(param);\r\n }\r\n }\r\n }\r\n isExistPeriod();\r\n }\r\n const runEditPeriod = async (param) => {\r\n setSvodRunning(true);\r\n var ret = await props.editFormPeriod(param);\r\n if (ret.successed === false) {\r\n setErrors([ret.error]);\r\n } else {\r\n setSuccessMessage(I18n.t(\"periodChanged\"));\r\n }\r\n setSvodRunning(false);\r\n }\r\n const btSubmitConfirmSvod = (e) => {\r\n e.preventDefault();\r\n setShowConfirm(false);\r\n const changePeriod = async () => {\r\n let errs = [];\r\n let param = getSvodParams((ers) => errs = ers);\r\n if (errs.length > 0) {\r\n setErrors(errs);\r\n return;\r\n };\r\n await runEditPeriod(param);\r\n }\r\n changePeriod();\r\n }\r\n let isReadOnLy = props.userInfo.user.roles.filter(r => r === 'UserReadData').length > 0;\r\n if (isReadOnLy === true) return \r\n return
    \r\n
    \r\n \r\n {':'}\r\n \r\n setYear(parseInt(e.target.value, 10))} bsSize=\"small\" style={{ width: \"auto\" }}>\r\n {arYears.map(it => )}\r\n \r\n \r\n \r\n {':'}\r\n \r\n
    \r\n setKperSrc(parseInt(e.target.value, 10))} bsSize='small' style={{ width: \"auto\" }}>\r\n {props.nsi.periods/*.filter(f => f.kper == 4 || f.kper > 100)*/.map(it => )}\r\n \r\n
    \r\n
    \r\n setKperDest(parseInt(e.target.value, 10))} bsSize='small' style={{ width: \"auto\" }}>\r\n {props.nsi.periods/*.filter(f=>f.kper==4 || f.kper>100)*/.map(it => )}\r\n \r\n
    \r\n \r\n
    \r\n \r\n {':'}\r\n \r\n setKraz(parseInt(e.target.value, 10))} style={{ minWidth: '100%' }}>\r\n {getRazItems(props, kperSrc)}\r\n \r\n \r\n setForm(form)}\r\n setTable={(table) => setTable(table)}\r\n kper={kperSrc}\r\n form={form} table={table}\r\n krazd={krazd}\r\n setKrazd={(krazd) => setKrazd(krazd)}\r\n />\r\n setTobj(tobj)}\r\n setObl={(obl) => setObl(obl)}\r\n setRaion={(raion) => setRaion(raion)}\r\n setOrg={(org) => setOrg(org)}\r\n year={year}\r\n />\r\n {errors.length > 0 ?
      {errors.map(msg =>
    • )}
    : \"\"}\r\n {svodRunning === true ? \r\n \r\n
    {I18n.t('waitsvod')}{' '}
    \r\n \r\n
    : ''}\r\n {svodRunning === false && successMessage != null ? \r\n \r\n \r\n \r\n : ''}\r\n \r\n \r\n \r\n \r\n \r\n \r\n setShowConfirm(false)}>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n}\r\n\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators({ ...actionCreatorsNsi, ...actionCreatorsSvod }, dispatch)\r\n)(EditFormPeriod);","import React, { useState, useEffect } from 'react';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport { Button, Modal, Row, Col, FormControl } from 'react-bootstrap';\r\n\r\nexport default function EditFormulExcelModal(props) {\r\n const [cell, setCell] = useState();\r\n const [formul, setFormul] = useState();\r\n const [isNew, setIsNew] = useState(true);\r\n useEffect(() => {\r\n setEr(null);\r\n if (props.isNew === true) {\r\n setCell(\"\");\r\n setFormul(\"\");\r\n setIsNew(true)\r\n } else {\r\n setCell(props.cell);\r\n setFormul(props.formul);\r\n setIsNew(false)\r\n }\r\n }, [props.cell, props.formul, props.isNew]);\r\n\r\n const [er, setEr] = useState();\r\n\r\n const commitBt = (e) => {\r\n e.preventDefault();\r\n setEr(null)\r\n if (cell == null || cell.trim() === \"\") {\r\n setEr(I18n.t(\"templateTableExcel.errors.celReq\"));\r\n return; \r\n }\r\n if (formul == null || formul.trim() === \"\") {\r\n setEr(I18n.t(\"templateTableExcel.errors.celFormulaReq\"));\r\n return;\r\n }\r\n if (isNew === true && props.isExistsCell(cell)) {\r\n setEr(I18n.t(\"templateTableExcel.errors.celExists\"));\r\n return;\r\n }\r\n props.setFormulExcel(cell, formul, isNew);\r\n }\r\n return props.showModal ? \r\n \r\n \r\n \r\n setCell(e.target.value))}\r\n />\r\n \r\n \r\n \r\n setFormul(e.target.value))}\r\n />\r\n \r\n {er != null ? \r\n {er} : \"\"}\r\n \r\n \r\n \r\n \r\n \r\n : \"\"\r\n}","import React, { Fragment, useState } from 'react';\r\nimport { bindActionCreators } from 'redux';\r\nimport { connect } from 'react-redux';\r\nimport { cloneDeep } from 'lodash';\r\nimport * as FileSaver from 'file-saver';\r\nimport { Translate, I18n } from 'react-redux-i18n';\r\nimport { Table, Button, ButtonGroup, Col, FormGroup, FormControl, ControlLabel, Form, Checkbox, Radio, HelpBlock, Row, Alert, Modal } from 'react-bootstrap';\r\n\r\nimport TableScrollbar from 'react-table-scrollbar';\r\n\r\nimport { actionCreators as actionMedstatTemplates } from '../../store/Medstat/Templates';\r\nimport { actionCreators as actionCreatorsNsi } from '../../store/Nsi';\r\n\r\nimport { years, getCurrentYear, getNameLocalize, getNameSprLocalize, btnsMsgBox } from '../Constants';\r\nimport MessageBox from '../common/MessageBox';\r\nimport EditFormulExcelModal from '../Modals/EditFormulExcelModal';\r\n\r\nconst EditTempTablesMonths = (props) => {\r\n useState(() => {\r\n if (props.nsi.sprform.length === 0) props.getNs('sprform');\r\n if (props.nsi.allsprtab.length === 0) props.getNs('allsprtab');\r\n });\r\n const [kf, setKf] = useState(\"56\");\r\n const [ktab, setKtab] = useState(\"0001\");\r\n const [year, setYear] = useState(() => getCurrentYear());\r\n const [selectedTemplate, setSelectedTemplate] = useState()\r\n const onLoadTemplates = (e) => {\r\n e.preventDefault();\r\n e.target.value = null;\r\n let inputRu = document.getElementById('fileTemplateMedstat');\r\n let inputKz = document.getElementById('fileTemplateMedstatKz');\r\n if(inputRu!=null)inputRu.value = null;\r\n if(inputKz!= null)inputKz.value = null;\r\n const fetchData = async () => {\r\n let data = await props.LoadTablesMonthsTemplates(year, kf, ktab);\r\n //let form = props.nsi.sprform.filter(f => f.kf === kf)[0];\r\n setSelectedTemplate(data/*{ form, ...data }*/);\r\n }\r\n fetchData();\r\n }\r\n const uploadExcel = async (lang) => {\r\n let input = document.getElementById(lang == \"ru\" ? 'fileTemplateMedstat' : 'fileTemplateMedstatKz');\r\n if (input.files.length === 0) {\r\n alert(\"Выберите файл\");\r\n return;\r\n }\r\n let file = input.files[0];\r\n let formData = new FormData();\r\n formData.append(\"year\", year);\r\n formData.append(\"kf\", kf);\r\n formData.append(\"ktab\", ktab);\r\n formData.append(\"lang\", lang);\r\n formData.append(\"fileExcel\", file);\r\n var ret = await props.UploadTemplateTable(formData, year, kf, ktab, lang);\r\n if (ret!=null && ret.successed === true) {\r\n let selTmp = cloneDeep(selectedTemplate);\r\n if (lang === \"ru\")\r\n selTmp.fileName = file.name;\r\n else\r\n selTmp.fileNameKz = file.name;\r\n setSelectedTemplate(selTmp);\r\n }\r\n }\r\n const uploadExcelRu = (e) => {\r\n e.preventDefault();\r\n uploadExcel(\"ru\");\r\n }\r\n const uploadExcelKz = (e) => {\r\n e.preventDefault();\r\n uploadExcel(\"kk\");\r\n }\r\n const downloadExcel = async (lang) => {\r\n const blob = await props.DownloadTemplateTable(year, kf, ktab, lang);\r\n FileSaver.saveAs(blob, lang = \"ru\" ? selectedTemplate.fileName : selectedTemplate.fileNameKz);\r\n }\r\n const downloadExcelRu = (e) => {\r\n e.preventDefault();\r\n downloadExcel(\"ru\");\r\n }\r\n const downloadExcelKz = (e) => {\r\n e.preventDefault();\r\n downloadExcel(\"kk\");\r\n }\r\n const ChangeFld = (fld,vl) => {\r\n const change = async () => {\r\n var ret = await props.ChangeFld(year, kf, ktab, fld, vl);\r\n if (ret != null && ret.successed === true) {\r\n let ob = cloneDeep(selectedTemplate);\r\n ob[fld] = vl;\r\n setSelectedTemplate(ob);\r\n }\r\n }\r\n change();\r\n }\r\n const btAddFormul = (e) => {\r\n e.preventDefault();\r\n setCell(\"\");\r\n setFormul(\"\");\r\n setIsNew(true);\r\n setShowModalEditFormul(true);\r\n }\r\n const btEditFormul = (e, i) => {\r\n e.preventDefault();\r\n setCell(selectedTemplate.sprTableImplFormuls[i].exclCol);\r\n setFormul(selectedTemplate.sprTableImplFormuls[i].exclFormul);\r\n setIsNew(false);\r\n setShowModalEditFormul(true);\r\n }\r\n const [showMsg, setShowMsg] = useState(false);\r\n const [delIndex, setDelIndex] = useState();\r\n const btRemoveFormul = (e, i) => {\r\n e.preventDefault();\r\n setDelIndex(i);\r\n setShowMsg(true);\r\n }\r\n const messageAction = (act) => {\r\n switch (act) {\r\n case btnsMsgBox.Yes:\r\n //delete\r\n const deleteFormul = async () => {\r\n var ret = await props.deleteFormulExcel(year, kf, ktab, selectedTemplate.sprTableImplFormuls[delIndex].exclCol);\r\n if (ret != null && ret.successed === true) {\r\n let formls = cloneDeep(selectedTemplate);\r\n formls.sprTableImplFormuls.splice(delIndex, 1);\r\n setSelectedTemplate(formls);\r\n }\r\n }\r\n deleteFormul();\r\n break;\r\n default:\r\n break;\r\n }\r\n setShowMsg(false);\r\n }\r\n\r\n const [showModalEditFormul, setShowModalEditFormul] = useState(false);\r\n const [cell, setCell] = useState(\"\");\r\n const [formul, setFormul] = useState(\"\");\r\n const [isNew, setIsNew] = useState(true);\r\n\r\n const handleHideEditFormul = () => setShowModalEditFormul(false);\r\n\r\n const isExistsCell = (c) => {\r\n if (selectedTemplate.sprTableImplFormuls.filter(f => f.exclCol === c).length > 0)\r\n return true;\r\n else\r\n return false;\r\n }\r\n const setFormulExcel = (c, f, n) => {\r\n setShowModalEditFormul(false)\r\n const changeFormul = async () => {\r\n //save and change\r\n var ret = await props.changeFormulExcel(year, kf, ktab, c, f, n);\r\n if (ret != null && ret.successed === true) {\r\n let ob = cloneDeep(selectedTemplate);\r\n if (n == true) {\r\n ob.sprTableImplFormuls.push({ exclCol: c, exclFormul: f });\r\n } else {\r\n ob.sprTableImplFormuls.filter(f => f.exclCol === c)[0].exclFormul = f;\r\n }\r\n setSelectedTemplate(ob);\r\n setCell(\"\");\r\n setFormul(\"\");\r\n setIsNew(true);\r\n }\r\n }\r\n changeFormul();\r\n }\r\n\r\n let ac = props.userInfo.user.accessLevel;\r\n if (ac != 1 && props.userInfo.user.roles.filter(r => r === 'AdminEditData').length === 0) return
    ;\r\n return \r\n
    \r\n
    \r\n \r\n {':'}\r\n \r\n setYear(parseInt(e.target.value, 10))} disabled={props.medstatTemplates.isLoading === true}>\r\n {years.filter(f => f > 2016).map(it => )}\r\n \r\n \r\n \r\n {':'}\r\n setKf(e.target.value)} style={{ minWidth: '100%' }} disabled={props.medstatTemplates.isLoading === true}>\r\n {props.nsi.sprform.filter(f => f.monthWithInc === 1 && f.kf != \"70\" && f.kf != \"71\" && f.kf != \"72\" && f.kf != \"73\" && f.kf != \"74\").map(it => )}\r\n \r\n \r\n \r\n {':'}\r\n \r\n setKtab(e.target.value)} bsSize='small' style={{ width: \"auto\" }}>\r\n {props.nsi.allsprtab.filter(f => f.kf === kf).map(it => )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n {selectedTemplate != null ?
    \r\n {':'}{selectedTemplate.kf} {getNameSprLocalize(props.i18n, props.nsi.sprform, selectedTemplate.kf, \"kf\")}\r\n {':'}{selectedTemplate.ktab} {getNameSprLocalize(props.i18n, props.nsi.allsprtab.filter(f => f.kf === selectedTemplate.kf), selectedTemplate.ktab, \"ktab\")}\r\n \r\n \r\n Шаблон Excel(рус){':'}\r\n \r\n \r\n {selectedTemplate != null && selectedTemplate.fileName != null ? : ''}\r\n \r\n \r\n \r\n \r\n Шаблон Excel(каз){':'}\r\n \r\n \r\n {selectedTemplate != null && selectedTemplate.fileNameKz != null ? : ''}\r\n \r\n \r\n \r\n \r\n \r\n \r\n Наименование Листа Excel{':'}\r\n ChangeFld(\"excelSheetName\", e.target.value)}\r\n />\r\n \r\n \r\n \r\n \r\n Ячейка Excel старта данных{':'}\r\n ChangeFld(\"excelRangeStartData\", e.target.value)}\r\n />\r\n \r\n \r\n \r\n \r\n Ячейка Excel разреза{':'}\r\n ChangeFld(\"excelRangeRaz\", e.target.value)}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Ячейка Excel периода{':'}\r\n ChangeFld(\"excelRangePeriod\", e.target.value)}\r\n />\r\n \r\n \r\n \r\n \r\n Ячейка Excel наименования формы{':'}\r\n ChangeFld(\"excelRangeForm\", e.target.value)}\r\n />\r\n \r\n \r\n \r\n \r\n Ячейка Excel наименования таблицы{':'}\r\n ChangeFld(\"excelRangeTable\", e.target.value)}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n Ячейка Excel наименования обьекта{':'}\r\n ChangeFld(\"excelRangeObj\", e.target.value)}\r\n />\r\n \r\n \r\n \r\n Формулы Excel\r\n \r\n \r\n \r\n \r\n {selectedTemplate.sprTableImplFormuls.map((r,i) => \r\n \r\n \r\n \r\n )}\r\n \r\n
    {r.exclCol}{r.exclFormul}\r\n \r\n \r\n
    \r\n
    \r\n \r\n
    : \"\"}\r\n messageAction(action)} />\r\n
    \r\n}\r\nexport default connect(\r\n state => state,\r\n dispatch => bindActionCreators({ ...actionCreatorsNsi, ...actionMedstatTemplates }, dispatch)\r\n)(EditTempTablesMonths);\r\n","import React from 'react';\r\nimport { Route } from 'react-router';\r\nimport Layout from './components/Layout';\r\n//import { PrivateRoute } from './components/PrivateRoute';\r\n\r\nimport Home from './components/Home';\r\nimport AdminUsers from './components/admin/AdminUsers';\r\nimport Nsi from './components/admin/Nsi';\r\nimport ClosingPeriod from './components/admin/ClosingPeriod';\r\nimport ClosingOrgPeriod from './components/admin/ClosingOrgPeriod';\r\nimport FinPaid from './components/FinPaid/FinPaid';\r\nimport ReportFin from './components/FinPaid/ReportFin';\r\nimport ReportFinRCRZ from './components/FinPaid/ReportFinRCRZ';\r\nimport OpenForm from './components/Work/OpenForm';\r\nimport OpenFormPstr from './components/Work/OpenFormPstr';\r\nimport SvodForm from './components/Svod/SvodForm';\r\nimport SvodFormQuarts from './components/Svod/SvodFormQuarts';\r\nimport SvodFormMonths from './components/Svod/SvodFormMonths';\r\nimport SvodFormRaz from './components/Svod/SvodFormRaz';\r\nimport SvodSubOrg from './components/Svod/SvodSubOrg';\r\nimport EditFormRaz from './components/Svod/EditFormRaz';\r\nimport EditFormOrgRaz from './components/Svod/EditFormOrgRaz';\r\nimport Copy12MonthToYear from './components/Svod/Copy12MonthToYear';\r\nimport EditControl from './components/admin/EditControl';\r\nimport ControlForm from './components/Control/ControlForm';\r\nimport ToExcel from './components/ToExcel/ToExcel';\r\nimport FromExcel from './components/FromExcel/FromExcel';\r\nimport InputInfor from './components/Work/InputInfor';\r\nimport InputInforForm from './components/Work/InputInforForm';\r\nimport InputInforObj from './components/Work/InputInforObj';\r\nimport License from './components/License';\r\nimport EditMedinfoFormul from './components/Medinfo/EditMedinfoFormul';\r\nimport EditMedinfoBokMkb from './components/Medinfo/editBokMkb';\r\nimport EditMedinfoBokDr from './components/Medinfo/editBokDr';\r\nimport EditMedinfoPart from './components/Medinfo/editParts';\r\nimport GenMedinfoTable from './components/Medinfo/GenMedinfoTable';\r\nimport GenMedinfoTable2 from './components/Medinfo/GenMedinfoTable2';\r\nimport Gen47Form from './components/gen47/gen47form';\r\nimport Gen47OrgParam from './components/gen47/gen47OrgParam';\r\nimport Register from './components/Register';\r\nimport AdminChildsOrg from './components/admin/AdminChildsOrg';\r\nimport StatusForm from './components/Work/StatusForm';\r\nimport StatusFormRk from './components/Work/StatusFormRk';\r\nimport StatusTableRk from './components/Work/StatusTableRk';\r\nimport StatusTableObl from './components/Work/StatusTableObl';\r\nimport DeleteForm from './components/Work/DeleteForm';\r\nimport RepSubordinates from './components/FinPaid/RepSubordinates';\r\nimport AdminEditChildOrg from './components/admin/AdminEditChildOrg';\r\nimport EditOrgsOnObl from './components/Work/EditOrgsOnObl';\r\nimport AdminChildUsers from './components/admin/AdminChildUsers';\r\nimport AccessRazdOrg from './components/Work/AccessRazdOrg';\r\nimport SvodSpecificOrg from './components/Svod/SvodSpecificOrg';\r\nimport SvodFormOrgRaz2 from './components/Svod/SvodFormOrgRaz2';\r\nimport SvodSubOrgObl from './components/Svod/SvodSubOrgObl';\r\nimport LogAudit from './components/admin/logaudit';\r\nimport MapSvg from './components/MapSvg';\r\nimport EditTemplateFiles from './components/admin/EditTemplateFiles';\r\nimport VersionsHistory from './components/VersionsHistory';\r\nimport EditFormPeriod from './components/Svod/EditFormPeriod';\r\nimport EditTempTablesMonths from './components/admin/EditTempTablesMonths';\r\n//import Counter from './components/Counter';\r\n//import FetchData from './components/FetchData';\r\n\r\n\r\nexport default () => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {/*\r\n */}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {/**/}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n// \r\n","import 'bootstrap/dist/css/bootstrap.css';\r\nimport 'bootstrap/dist/css/bootstrap-theme.css';\r\nimport 'bootstrap-icons/font/bootstrap-icons.css'\r\nimport './index.css';\r\nimport React from 'react';\r\nimport ReactDOM from 'react-dom';\r\nimport { Provider } from 'react-redux';\r\nimport { setDefaultLocale } from \"react-datepicker\";\r\nimport ru from 'date-fns/locale/ru';\r\nimport kk from 'date-fns/locale/kk';\r\nimport { ConnectedRouter } from 'react-router-redux';\r\nimport { createBrowserHistory } from 'history';\r\nimport configureStore from './store/configureStore';\r\nimport { loadTranslations, setLocale, syncTranslationWithStore } from 'react-redux-i18n';\r\n\r\nimport { translationsObject } from './store/translations';\r\nimport App from './App';\r\n//import registerServiceWorker from './registerServiceWorker';\r\nrequire('dotenv').config();\r\n// Create browser history to use in the Redux store\r\nconst baseUrl = document.getElementsByTagName('base')[0].getAttribute('href');\r\nconst history = createBrowserHistory({ basename: baseUrl });\r\n\r\n// Get the application-wide store instance, prepopulating with state from the server where available.\r\nconst initialState = window.initialReduxState;\r\nconst store = configureStore(history, initialState);\r\n\r\n//locale\r\nsyncTranslationWithStore(store);\r\nstore.dispatch(loadTranslations(translationsObject));\r\nlet locale = window.lang\r\n || (navigator.languages && navigator.languages[0])\r\n || navigator.language\r\n || navigator.userLanguage\r\n || 'ru';\r\nif (locale[0] !== 'r' && locale[0] !== 'k') {\r\n locale = 'ru-RU';\r\n}\r\nif (locale === 'ru-RU') {\r\n setDefaultLocale(ru);\r\n} else {\r\n setDefaultLocale(kk);\r\n}\r\nstore.dispatch(setLocale(locale));\r\n\r\nconst rootElement = document.getElementById('root');\r\n\r\nReactDOM.render(\r\n \r\n \r\n \r\n \r\n ,\r\n rootElement);\r\n\r\n//registerServiceWorker();\r\n","import { applyMiddleware, combineReducers, compose, createStore } from 'redux';\r\nimport thunk from 'redux-thunk';\r\nimport { routerReducer, routerMiddleware } from 'react-router-redux';\r\nimport { i18nReducer } from 'react-redux-i18n';\r\n\r\nimport * as UserInfo from './UserInfo';\r\nimport * as AdminUsers from './AdminUsers';\r\nimport * as EditControl from './EditControl';\r\nimport * as Nsi from './Nsi';\r\nimport * as FinPaidData from './FinPaidData';\r\nimport * as Work from './Work';\r\nimport * as WorkPstr from './WorkPstr'; \r\nimport * as Svod from './Svod';\r\nimport * as ControlForm from './ControlForm';\r\nimport * as Counter from './Counter';\r\nimport * as ClosingPeriod from './ClosingPeriod';\r\nimport * as FormulMedinfo from './Medinfo/FormulMedinfo';\r\nimport * as Gen47 from './Gen47';\r\nimport * as Log from './Log';\r\nimport * as MedstatTemplates from './Medstat/Templates';\r\nimport * as Register from './Register';\r\nimport * as WeatherForecasts from './WeatherForecasts';\r\n\r\nexport default function configureStore(history, initialState) {\r\n const reducers = {\r\n userInfo: UserInfo.reducer,\r\n adminUsers: AdminUsers.reducer,\r\n editFormul: EditControl.reducer,\r\n nsi: Nsi.reducer,\r\n finPaidData: FinPaidData.reducer,\r\n work: Work.reducer,\r\n workPstr: WorkPstr.reducer,\r\n svod: Svod.reducer,\r\n control: ControlForm.reducer,\r\n counter: Counter.reducer,\r\n closingPeriod: ClosingPeriod.reducer,\r\n register: Register.reducer,\r\n formulmedinfo: FormulMedinfo.reducer,\r\n gen47: Gen47.reducer,\r\n log: Log.reducer,\r\n medstatTemplates:MedstatTemplates.reducer,\r\n weatherForecasts: WeatherForecasts.reducer\r\n };\r\n\r\n const middleware = [\r\n thunk,\r\n routerMiddleware(history)\r\n ];\r\n\r\n // In development, use the browser's Redux dev tools extension if installed\r\n const enhancers = [];\r\n const isDevelopment = process.env.NODE_ENV === 'development';\r\n if (isDevelopment && typeof window !== 'undefined' && window.devToolsExtension) {\r\n enhancers.push(window.devToolsExtension());\r\n }\r\n\r\n const rootReducer = combineReducers({\r\n ...reducers,\r\n routing: routerReducer,\r\n i18n: i18nReducer\r\n });\r\n\r\n return createStore(\r\n rootReducer,\r\n initialState,\r\n compose(applyMiddleware(...middleware), ...enhancers)\r\n );\r\n}\r\n"],"sourceRoot":""}