{"version":3,"sources":["kml/Subbasin25.kml","services/authenServices.js","introPage/IntroPage.js","googleMap/Gmap.js","home/OptionBox.js","contextApi/StateProvider.js","login/Login.js","navbar/NavBar.js","Helper/CookieHepler.js","componentreuse/SelectSearch.js","Helper/ConvertBase64.js","home/StationInfoBox.js","Helper/CounterWeb.js","footer/home/Footer_Home.js","home/MapRatio.js","home/Home.js","componentreuse/DwrLayout.js","componentreuse/TablePagination.js","news/NewsTable.js","componentreuse/DwrDatePicker.js","news/NewsImageModal.js","news/NewsDetail.js","Helper/ReadQueryUrl.js","news/News.js","contactus/ContactUs.js","sidenavbar/SideNavBar.js","aboutus/AboutUs.js","Helper/ValidateEmail.js","admin/myAccount/MyAccount.js","admin/requestDataHistory/component/StatusRequestData.js","admin/requestDataHistory/component/TableListHistory.js","admin/requestDataHistory/RequestDataHistory.js","admin/requestDataHistory/component/TableRequestData.js","admin/requestDataHistory/component/TableRefDoc.js","admin/requestDataHistory/component/ModalAddDoc.js","admin/requestDataHistory/component/RejectModel.js","admin/requestDataHistory/RequestDataHistoryDetial.js","admin/Admin.js","stationdetail/component/SelectYear.js","Helper/JwtDecode.js","infoservice/ModalSelType.js","infoservice/InfoServiceMain.js","forgorPassword/ForgotPassword.js","register/Register.js","stationdetail/component/StationDetails.js","stationdetail/component/LocationDetails.js","stationdetail/component/TableLocationDetails.js","stationdetail/component/ServicePrice.js","stationdetail/component/ServiceSelect.js","stationdetail/StationDetail.js","services_request/Services_Request.js","infoPublish/component/TableFileData.js","infoPublish/InfoPublish.js","link/Link.js","siteMap/SiteMap.js","organization/Organization.js","news/ActivityTable.js","news/ActivityImageModal.js","news/ActivityDetail.js","news/interestingtopic/InterestingTopic.js","news/interestingtopic/InterestingTopicDetail.js","information/Information.js","App.js","serviceWorker.js","i18n.js","index.js"],"names":["module","exports","authenServices","state","getAccessToken","bind","fetchWithToken","username","password","axiosConfig","timeout","headers","requestData","client_id","process","client_secret","grant_type","scope","axios","post","identityurl","qs","stringify","result","this","setToken","data","access_token","console","log","url","options","getToken","resultToken","method","token","isTokenExpired","swal","text","icon","logout","window","location","href","responseType","params","paramsSerializer","arrayFormat","localStorage","getItem","idToken","setItem","decoded","decode","e","Date","now","exp","removeItem","response","status","Component","auth","AuthenServices","IntroPage","useState","setLoading","setData","useEffect","onGetData","then","res","catch","error","activeIndex","setActiveIndex","animating","setAnimating","next","nextIndex","length","previous","slides","map","item","index","CarouselItem","onExiting","onExited","key","slideShowId","className","imageUrl","isValidHttpUrl","target","style","objectFit","maxHeight","width","src","slideShowImageString","alt","imageName","err","str","RegExp","test","protocol","Row","margin","padding","Col","xl","lg","md","sm","xs","maxWidth","height","position","left","top","color","display","marginTop","textAlign","Carousel","interval","CarouselControl","direction","directionText","onClickHandler","to","Button","backgroundColor","myParser3","riverMain","riverSubmain","myParserMainBasin25","myParserMainBasin22","myParserSubBasin22","script","containerStyle","React","memo","props","lat","lng","center","setCenter","setZoom","setMap","loaded","setLoaded","_isMounted","useRef","mainBasin25Load","setMainBasin25Load","riverMainLoad","setRiverMainLoad","riverSubLoad","setRiverSubLoad","mainBasin22Load","setMainBasin22Load","subBasinLoad","setSubBasinLoad","loading","onLoad","useCallback","document","createElement","setAttribute","body","appendChild","addEventListener","navigator","geolocation","getCurrentPosition","coords","latitude","longitude","geoXML3","parser","zoom","parseFileMap25","setTimeout","RiverMain25BS_polyline","Promise","all","file","a","parse","afterParse","closeSubBasin","subbasinkml","current","hideDocument","docs","removeEventListener","getElementById","remove","optionCheckbox","cbMainBasin25","mapMainBasin25","mapriverMain","mapriverSub","mapMainBasin22","mapSubBasin22","cbMainRiver","cbSubRiver","cbMainBasin22","cbSubBasin22","showDocument","parseFileMapRiverSub","parseFileMap22","processStyles","parseFileMapsub22","mainBasin25Path","riverSubPath","mainBasin22Path","mainSubBasin22Path","cbSubBasin25","searchedMarkerIcon","isSearchingMarker","isSearching","clickMarkerData","isGhDcSdSurvey","isGhDcSurvey","isGhSurvey","isWqSurvey","isMeteoSurvey","isRainSurvey","isAutoGhSurvey","isAutoMeteoSurvey","onClick","toggleInfoBox","searchSelected","stationId","latitudeDd","longitudeDd","onCloseClick","closeInfoBox","stationLabel","zIndex","spinning","Fragment","googleMapsApiKey","mapContainerStyle","fullscreenControlOptions","mapTypeControl","mapRation","markers","cbGageHeight","cbGageHeightVolume","cbGageHeightVolumeSedi","cbWaterQuality","cbRain","cbMeteo","cbAutoGageHeight","cbAutoMeteo","OptionBox","isTabletOrMobileDevice","useMediaQuery","query","isOpen","setIsOpen","activeTab","setActiveTab","t","useTranslation","toggleTab","tab","tabChange","marginLeft","float","cursor","marginRight","Collapse","clear","Card","borderRadius","CardBody","paddingRight","FormGroup","check","Label","Input","onChange","checkboxOnChange","name","checked","type","paddingLeft","Nav","tabs","border","NavItem","NavLink","fontWeight","TabContent","TabPane","tabId","bottom","createContext","REACT_APP_DWR_IdentityFacebook","Login","history","useHistory","setUserName","setPassword","LoginUser","closeLoginModal","reload","enterPressed","event","keyCode","which","Modal","loginModal","size","toggle","toggleLoginModal","centered","ModalHeader","ModalBody","Form","onSubmit","preventDefault","placeholder","value","onKeyPress","block","push","FB","login","authResponse","outline","disabled","textDecoration","NavBar","topNavBar","setTopNavBar","setloginModal","i18n","popoverVisible","setPopoverVisible","facebookConnect","isDesktopOrLaptop","toggleTopNavBar","LogoutFacebook","cookies","cookie","split","i","eqPos","indexOf","substr","deleteAllCookies","changeLanguage","lang","language","Navbar","expand","whiteSpace","navbar","loggedIn","marginBottom","activeClassName","tag","RRNavLink","exact","placement","title","includes","visible","content","trigger","right","id","SelectSearch","styles","valueContainer","base","se","control","borderColor","menuPlacement","menuPortalTarget","defaultValue","label","classNamePrefix","isDisabled","isSearchable","isClearable","noOptionsMessage","handleDropdownChange","setFunction","nameId","ver","ph","components","ValueContainer","children","name2","selectOption","isMulti","encodedString","btoa","decodedString","atob","changePageToStationDetail","selectedId","urlString","showInfoBox","clickMarkerDataLoading","justifyContent","flexDirection","flex","overflowX","stationTh","stationEn","basin","basinTh","basinEn","hydroData","dailyGageHeight","toFixed","dailyGageHeightDate","moment","format","dailyDischarge","dailyDischargeDate","dailySediment","dailySedimentDate","waterQualityPh","dailyWaterQualityDate","meteoData","rain","rainDate","eva","evaDate","waterTemp","waterTempDate","weatherTemp","weatherTempDate","maxWeatherTemp","maxWeatherTempDate","minWeatherTemp","minWeatherTempDate","humidity","humidityDate","wind","windDate","sun","sunDate","solar","solarDate","pathImg","CounterWeb","number","places","numberFormat","String","padStart","sNumber","imgEm","img","gennaratNumber","popupPolicy","sessionStorage","Footer_Home","popupModel","setPopupModel","Provider","Option","Select","MapRatio","Home","setOptionCheckbox","setMarkers","marker","clickData","setClickData","list","selected","search","setSearch","setNumber","getStationMarkers","gh","ghdc","ghdcsd","wq","meteo","autogh","autometeo","stationid","onChangeMapRation","stationDropdown","countWeb","setMapRation","opacity","prev","persist","DwrLayout","backBtn","handlePage","TablePagination","totalPage","activePage","currentPage","itemsCountPerPage","totalItemsCount","totalItems","pageRangeDisplayed","handlePagination","itemClass","linkClass","prevPageText","nextPageText","firstPageText","lastPageText","hideDisabled","noimg","NewsTable","stationList","setStationList","totalPages","pageNumber","pageSize","page","setPage","tableNewsType","items","paging","imageAttachfile","newsID","newsTitle","minHeight","borderTopLeftRadius","borderTopRightRadius","onError","overflow","fontSize","wordBreak","intTopicDetail","newsStartDate","pagenum","totalpage","registerLocale","th","NewsImageModal","newsImageModal","remarkid","remarkComment","undefined","publish","WebBoardImageByte","toggleModal","setNewsImageModal","click","borderBottom","paddingBottom","row","backgroundSize","justify","NewsDetail","news","setNews","photoIndex","lightBox","setLightBox","newsImageData","setNewsImageData","idx","remarkDesc","images","setImages","editNewsId","forEach","x","convertBase64ToFile","image","byteString","ab","ArrayBuffer","ia","Uint8Array","charCodeAt","Blob","editNewsName","fileAttach","pathname","_IsSuccessResponse","ext","lastIndexOf","URL","createObjectURL","link","newsDetail","flexWrap","mainSrc","nextSrc","prevSrc","onCloseRequest","onMovePrevRequest","onMoveNextRequest","getParameterByName","replace","regex","results","exec","decodeURIComponent","News","newsId","newsName","newsPage","setNewsPage","currentTab","setCurrentTab","_name","stdname","menuId","handleChangeTab","currentTarget","getAttribute","Jumbotron","fluid","Container","ContactUs","frameborder","scrolling","marginheight","marginwidth","SideNavBar","currentpath","AboutUs","ValidateEmail","mail","TextArea","MyAccount","datenow","prename","setPrename","province","setProvince","district","setDistrict","subDistrict","setSubDistrict","firstName","lastName","passwordConf","idCard","email","tel","address","zipCode","organization","member","setMember","onPrename","getProvince","onGetProgile","_resp_data","provinceId","getDistrictByProvinceId","districtId","getSubDistrictByDistrictId","preNameId","toString","userName","idcardNo","subDistrictId","postcode","p","onSelectDropDown","inputStyle","inputStyle2","inputStyleฺBackGroundBlue","background","gutter","showSearch","filterOption","input","option","toLowerCase","preNameValue","Password","substring","iconRender","rows","provinceTh","districtTh","subDistrictTh","json","JSON","styleDot","elmStatus","dot","styleSpan","TableListHistory","dataSource","onViewDetail","setPagesCount","total","columns","dataIndex","align","render","filter","f","requestDataId","bordered","pagination","RequestDataHistory","Math","ceil","back","TableRequestData","dataTypeId","yearbookTypeId","isDaily","isMonthly","dataSelectionList","footer","currentPageData","fee","convertNumber","TableRefDoc","fileUpload","onRemoveFile","getFileDoc","files","setFiles","filesDoc","documentName","discription","ModalAddDoc","isModalVisible","handleOk","handleCancel","onUploadDoc","setFileUpload","fileDocs","setFileDocs","filename","setFilename","fileDesc","setFileDesc","onOk","pop","onCancel","okText","cancelText","handleFileUploadChangeFile","accept","autoSize","minRows","maxRows","CancelModel","setIsModalVisible","itemId","setDescription","onReject","RequestDataHistoryDetial","isModalVisibleReject","setIsModalVisibleReject","setItemid","reason","setReason","surveType","setSurveType","getDataType","setGetDataType","description","onDeleteDoc","_fileUpload","findIndex","splice","onChangeStatusRequest","bodyHtml","subject","convertToPlain","html","tempDivElement","innerHTML","textContent","innerText","formData","FormData","append","statusRequestId","fileObject","requestUserType","action","headStyle","Group","maxLength","bodyStyle","paddingTop","extra","dangerMode","buttons","ok","cancel","onDelete","Admin","path","from","match","component","SelectYear","years","getFullYear","year","parseJwt","base64","jsonPayload","c","slice","join","ModalSelType","stnTypeData","setviceSelect","onSelectService","stationall","StationCode","stylemdR8","styleTextRight","screen","stylemdB8","typeoption","dataTypeTh","dataTypeEn","radioBtn","textOverflow","onSaveToDB","request","serviceType","stationType","buttonStyle","yearStart","yearEnd","newdataselection","sid","getstationid","yearbookTypeTh","userid","req","InfoServiceMain","stationSearch","setStationSearch","setBasin","villageSearch","setVillageSearch","stationTypeData","setStationTypeData","setStationAll","stationSearchedList","setStationSearchedList","setServiceSelect","districtOption","districtEn","subDistrictOption","subDistrictEn","stationServiceSession","basinOption","basinId","provinceOption","showModal","getallstation","getDatatype","offset","Table","responsive","subBasin","basinTH","basinEN","provinceTH","provinceEN","districtTH","districtEN","subDistrictTH","subDistrictEN","village","nearbyPlace","latitudeDms","longitudeDms","stationData","sd","dataTypeTH","dataTypeEN","startYear","endYear","SelStationList","indexToRemove","handleCheckBoxChange","ForgotPassword","setEmail","Register","verify","SetVerify","code","URLSearchParams","get","onVerify","closeOnClickOutside","close","UserName","IdcardNo","Email","Tel","Organization","Position","Url","origin","StationDetails","LocationDetails","replaceAll","convertLocation","gage","gageDatum","recordAvailable","drainageArea","parts","numberWithCommas","TableLocationDetails","stationState","setDataSource","period","gageHeightPeriod","maximum","gageHeightMaximum","minimum","gageHeightMinimum","average","gageHeightAverage","dischargePeriod","dischargeMaximum","dischargeMinimum","dischargeAverage","sedimentPeriod","sedimentMaximum","sedimentMinimum","sedimentAverage","precipitationPeriod","precipitationMaximum","precipitationMinimum","precipitationAverage","evaporationPeriod","evaporationMaximum","evaporationMinimum","evaporationAverage","ServicePrice","dataSource1","dataSource2","columns1","dataSource3","columns2","ServiceSelect","dataType","setcheckboox","StationDetail","setStationId","setStationData","webSetting","setWebSetting","getIdParameter","getWebSettingValue","queryString","getStationById","onSave","value1","webSettingId","webSettingValue","value2","Services_Request","requestReasonTextArea","setRequestReasonTextArea","textTypeRadio","setTextTypeRadio","receiveMethodRadio","setReceiveMethodRadio","dataSelection","setDataSelection","show","editModal","setEditModal","survey","setSurvey","documentFile","documentModal","setDocumentModal","fileList","setFileList","setRequestDataId","showPic","setShowPic","getData","dataSelectedSession","requestDataChoice_Reason_Session","dataSelectionInSession","res2","getDataSelection","formattedArray","station","dataTypeID","dataSelectionId","getTransectionStatus","changePage","handleRadioChange","deleteId","filtered","docName","transectionStatusId","transectionId","handleDownload","jsondata","serveType","message","wrapper","cssText","onclick","open","toggleEditModal","toggleDocumentModal","EditServiceRequest","newDataSelection","isAfter","dataselectionId","local","AttachedDocumentModal","documentData","setDocumentData","handleDocChange","handleFileUpload","trim","TableFileData","onDownloadFile","fileName","updateDate","rowKey","onRow","record","rowIndex","fileId","fileDownloadName","InfoPublish","setCurrentPage","Link","_item","weblinkImageByte","webLinkId","webLinkUrl","SiteMap","sitemap","cindex","textIndent","ActivityTable","intTopicID","intTopicTitle","intTopicStartDate","ActivityImageModal","intTopicVideo","controls","intTopicSound","InterestingTopic","topicData","setTopicData","InterestingTopicDetail","topicId","Information","onGetData_infoPublish","App","parameter","unescape","cookieArr","cookiePair","getCookie","InfoService","infoPublish","Boolean","hostname","use","Backend","LanguageDetector","initReactI18next","init","fallbackLng","debug","interpolation","escapeValue","backend","loadPath","ReactDOM","fallback","serviceWorker","ready","registration","unregister"],"mappings":"6JAAAA,EAAOC,QAAU,IAA0B,wC,2pBCWtBC,E,kDACjB,aAAe,IAAD,8BACV,gBACKC,MAAQ,GAEb,EAAKC,eAAiB,EAAKA,eAAeC,KAApB,gBACtB,EAAKC,eAAiB,EAAKA,eAAeD,KAApB,gBALZ,E,oGAQOE,EAAUC,G,kFAIrBC,EAAc,CAEhBC,QAAS,IACTC,QAAS,CACL,eAAgB,sCAIlBC,EAAc,CAChBC,UA1BKC,gBA2BLC,cA1BSD,uCA2BTE,WAAY,WACZT,SAAUA,EACVC,SAAUA,EACVS,MA7BEH,mB,kBAoCmBI,IAAMC,KAAKC,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xE,WACKtF,KAAKe,eAAe,SAGjBf,GAAf,ECzBAgvB,IAASlY,OACL,kBAAC,WAAD,CAAUmY,SAAS,cACf,kBAAC,GAAD,OAEN/5B,SAAS8B,eAAe,SFqHpB,kBAAmBxB,WACrBA,UAAU05B,cAAcC,MACrBpgC,MAAK,SAAAqgC,GACJA,EAAaC,gBAEdpgC,OAAM,SAAAC,GACL7C,QAAQ6C,MAAMA,EAAMm7B,c","file":"static/js/main.49168bbf.chunk.js","sourcesContent":["module.exports = __webpack_public_path__ + \"static/media/Subbasin25.ce120cb7.kml\";","import React, { Component } from 'react'\r\nimport decode from 'jwt-decode'\r\nimport axios from 'axios'\r\nimport swal from 'sweetalert'\r\nimport qs from 'qs'\r\n\r\nconst identityurl = process.env.REACT_APP_DWR_IdentityServer\r\nconst clientId = process.env.REACT_APP_DWR_CLIENT_ID\r\nconst clientSecret = process.env.REACT_APP_DWR_CLIENT_SECRET\r\nconst scope = process.env.REACT_APP_DWR_SCOPE\r\n\r\nexport default class authenServices extends Component {\r\n constructor() {\r\n super()\r\n this.state = {}\r\n\r\n this.getAccessToken = this.getAccessToken.bind(this)\r\n this.fetchWithToken = this.fetchWithToken.bind(this)\r\n }\r\n\r\n async getAccessToken(username, password) { // fetch เพื่อเอา Token แล้ว call SetToken เพื่อ เก็บ Token ไว้ใน Local Storage \r\n //const webApiurl = process.env.REACT_APP_DWR_API;\r\n\r\n\r\n const axiosConfig = {\r\n //baseURL: webApiurl,\r\n timeout: 30000,\r\n headers: {\r\n 'Content-Type': 'application/x-www-form-urlencoded'\r\n }\r\n }\r\n\r\n const requestData = {\r\n client_id: clientId,\r\n client_secret: clientSecret,\r\n grant_type: 'password',\r\n username: username,\r\n password: password,\r\n scope: scope\r\n //แนบ parameter เพิ่ม source:'IEHYDRO',\r\n\r\n };\r\n\r\n\r\n try {\r\n const result = await axios.post(identityurl + '/connect/token', qs.stringify(requestData), axiosConfig); //https://172.16.80.60/DWR_IdentityServer/connect/token //https://localhost:5001/connect/token \r\n this.setToken(result.data.access_token)\r\n\r\n return result\r\n } catch (err) {\r\n console.log(err)\r\n return err;\r\n }\r\n\r\n }\r\n\r\n //*********************************************************************************************************************\r\n\r\n async fetchWithToken(url, options) { //เอาไว้ fetch ข้อมูลจาก api โดยใช้ Token แทน username password\r\n const headers = { 'Accept': 'application/json', 'Content-Type': 'application/json' }\r\n\r\n //โหลดครั้งแรกไม่มี token ส่งแบบ credential\r\n if (!this.getToken()) {\r\n const axiosConfig = { timeout: 30000, headers: { 'Content-Type': 'application/x-www-form-urlencoded' } }\r\n const requestData = {\r\n client_id: clientId,\r\n client_secret: clientSecret,\r\n grant_type: 'client_credentials',\r\n scope: scope\r\n }\r\n\r\n try {\r\n const resultToken = await axios.post(identityurl + '/connect/token', qs.stringify(requestData), axiosConfig); //https://172.16.80.60/DWR_IdentityServer/connect/token //https://localhost:5001/connect/token \r\n this.setToken(resultToken.data.access_token)\r\n\r\n //useEffect หน้าแผนที่ settoken แล้วส่ง \r\n headers['Authorization'] = 'Bearer ' + this.getToken()\r\n var result = axios({\r\n url: url,\r\n headers: headers,\r\n data: options.data,\r\n method: options.method\r\n })\r\n return result\r\n\r\n } catch (err) {\r\n console.log(err)\r\n return err;\r\n }\r\n }\r\n //มีtoken ทั้งล็อคอินและไม่ล็อคอิน\r\n else {\r\n const token = this.getToken();\r\n if (this.isTokenExpired(token) === true) {\r\n swal({ text: 'Session timeout', icon: 'warning' })\r\n this.logout()\r\n window.location.href = '/'\r\n }\r\n\r\n headers['Authorization'] = 'Bearer ' + this.getToken()\r\n\r\n try {\r\n var result = axios({\r\n url: url,\r\n headers: headers,\r\n data: options.data,\r\n method: options.method,\r\n responseType: options.responseType,\r\n params: options.params,\r\n paramsSerializer: (params) => {\r\n return qs.stringify(params, {arrayFormat: options.arrayFormat})\r\n }\r\n })\r\n return result\r\n } catch (e) {\r\n console.log(e)\r\n }\r\n }\r\n\r\n //const headers = { 'Accept': 'application/json', 'Content-Type': 'application/json' }\r\n //if (this.loggedIn() === true) {\r\n // headers['Authorization'] = 'Bearer ' + this.getToken()\r\n // try {\r\n // var result = axios({ url: url, headers: headers, data: options.data, method: options.method })\r\n // return result\r\n // } catch (e) {\r\n // console.log(e)\r\n // }\r\n //}\r\n //else {\r\n // swal({ text: 'Token หมดอายุ กรุณาทำการล็อคอินอีกครั้ง', icon: 'warning' })\r\n // window.location.href = '/'\r\n //}\r\n\r\n }\r\n\r\n //*********************************************************************************************************************\r\n\r\n getToken() {\r\n return localStorage.getItem('id_token');\r\n }\r\n\r\n //*********************************************************************************************************************\r\n\r\n setToken(idToken) {\r\n\r\n return localStorage.setItem('id_token', idToken);\r\n }\r\n\r\n //*********************************************************************************************************************\r\n\r\n loggedIn() {\r\n\r\n if (!this.getToken()) {\r\n return false\r\n }\r\n\r\n const token = this.getToken();\r\n const decoded = decode(token)\r\n try {\r\n if (decoded.username) {\r\n return true\r\n }\r\n else {\r\n return false\r\n }\r\n } catch (e) {\r\n return false\r\n }\r\n\r\n //const token = this.getToken();\r\n\r\n //try {\r\n // if (this.isTokenExpired(token) === false) {\r\n // return true\r\n // }\r\n // else {\r\n // return false\r\n // }\r\n //} catch (e) {\r\n // return false\r\n //}\r\n }\r\n\r\n //*********************************************************************************************************************\r\n\r\n isTokenExpired(token) {\r\n //npm jwt-decode\r\n try {\r\n const decoded = decode(token)\r\n //console.log(decoded.exp * 1000)\r\n //console.log('decode:' + JSON.stringify(decoded) + ',moment: ' + moment() + 'dtnow: ' + Date.now())\r\n if (Date.now() >= decoded.exp * 1000) { // exp มาเป็น UTC จะเทียบต้องเอาDateNow ตอนนี้หาร 1000 จะได้เวลา UTC ณ ตอนนี้มา 54 > 55\r\n //console.log('expired:' + decoded.exp)\r\n return true\r\n }\r\n else {\r\n //console.log('not expired:' + decoded.exp)\r\n return false\r\n }\r\n } catch (e) {\r\n return true\r\n }\r\n }\r\n\r\n //*********************************************************************************************************************\r\n\r\n logout() {\r\n localStorage.removeItem('id_token')\r\n }\r\n\r\n //*********************************************************************************************************************\r\n\r\n getProfile() {\r\n return decode(this.getToken()) // result: {\"nameid\":\"2\",\"role\":\"Lead\",\"nbf\":1577075805,\"exp\":1577680605,\"iat\":1577075805} // nameid = empid \r\n }\r\n\r\n //*********************************************************************************************************************\r\n\r\n _IsSuccessResponse(response) {\r\n if (response.status >= 200 && response.status < 300) {\r\n return true\r\n } else {\r\n return false\r\n }\r\n }\r\n\r\n //*********************************************************************************************************************\r\n\r\n}\r\n\r\n\r\n","import React, { useState,useEffect } from \"react\";\r\nimport { Row, Col, Input, FormGroup, Form, Button } from 'reactstrap'\r\nimport {\r\n Carousel,\r\n CarouselItem,\r\n CarouselControl,\r\n CarouselIndicators,\r\n CarouselCaption\r\n } from 'reactstrap';\r\nimport swal from 'sweetalert';\r\nimport AuthenServices from '../services/authenServices'\r\nimport \"../css/introPage.css\"\r\nimport { Link } from \"react-router-dom\";\r\nimport { RiCameraSwitchFill } from \"react-icons/ri\";\r\nimport { FaWindows } from \"react-icons/fa\";\r\n\r\nvar auth = new AuthenServices()\r\nvar url = process.env.REACT_APP_DWR_API;\r\n\r\nexport default function IntroPage() {\r\n const [loading, setLoading] = useState(false);\r\n const [data, setData] = useState([]);\r\n\r\n useEffect(() => {\r\n onGetData()\r\n }, [])\r\n\r\n const onGetData = () => {\r\n setLoading(true);\r\n auth\r\n .fetchWithToken(\r\n `${url}/api/v1/Slideshow?type=2`,\r\n {\r\n method: \"GET\",\r\n data: {},\r\n }\r\n )\r\n .then((res) => {\r\n setData(res.data)\r\n setLoading(false);\r\n })\r\n .catch((error) => {\r\n setLoading(false);\r\n });\r\n };\r\n \r\n const [activeIndex, setActiveIndex] = useState(0);\r\n const [animating, setAnimating] = useState(false);\r\n \r\n const next = () => {\r\n if (animating) return;\r\n const nextIndex = activeIndex === data.length - 1 ? 0 : activeIndex + 1;\r\n setActiveIndex(nextIndex);\r\n }\r\n \r\n const previous = () => {\r\n if (animating) return;\r\n const nextIndex = activeIndex === 0 ? data.length - 1 : activeIndex - 1;\r\n setActiveIndex(nextIndex);\r\n }\r\n \r\n const slides = data ?data.map((item,index) => {\r\n try {\r\n return (\r\n setAnimating(true)}\r\n onExited={() => setAnimating(false)}\r\n key={item.slideShowId}\r\n >\r\n
\r\n {\r\n item.imageUrl?\r\n \r\n {item.imageName?item.imageName:\"intro\"}\r\n \r\n :{item.imageName?item.imageName:\"intro\"}\r\n }\r\n
\r\n \r\n );\r\n }\r\n catch(err) {\r\n \r\n }\r\n \r\n }) :[];\r\n\r\n function isValidHttpUrl(str) {\r\n var pattern = new RegExp('^(http|https)://'); // fragment locator\r\n \r\n if(!pattern.test(str)){\r\n return window.location.protocol + \"//\" + str;\r\n }else{\r\n return str;\r\n }\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 ระบบบริการข้อมูลอุทก-อุตุนิยมวิทยา (nishydro)\r\n \r\n กองวิจัย พัฒนาและอุทกวิทยา กรมทรัพยากรน้ำ\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n {slides}\r\n\r\n {\r\n data? data.length >1 ? :null:null\r\n\r\n }\r\n\r\n {\r\n data? data.length >1 ? :null: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","import React, { useEffect, useState, useRef } from 'react'\r\nimport { GoogleMap, LoadScript, Marker, InfoWindow } from '@react-google-maps/api';\r\n//import basinMainkml from '../kml/basin25.kml'\r\nimport subbasinkml from '../kml/Subbasin25.kml'\r\n//import mainriverlayer from '../kml/mainriverlayer.png'\r\n//import mainbasinlayer from '../kml/mainbasinlayer.png'\r\n//import mainbasingeojson from '../kml/mainbasin.geojson'\r\n//import mainrivergeojson from '../kml/mainriver.geojson'\r\n\r\n// import mainBasin22 from '../kml/mainBasin22.kml'\r\n// import subBasin22 from '../kml/subBasin22.kml'\r\n\r\nimport { Spin } from \"antd\";\r\n\r\n//River\r\n// import RiverMain25BS_polyline from \"../kml/RiverMain25BS_polyline.kml\";\r\nconst RiverMain25BS_polyline_1 = process.env.PUBLIC_URL + \"/kml/RiverMain25BS_1.kml\";\r\nconst RiverMain25BS_polyline_2 = process.env.PUBLIC_URL + \"/kml/RiverMain25BS_2.kml\";\r\nconst RiverMain25BS_polyline_3 = process.env.PUBLIC_URL + \"/kml/RiverMain25BS_3.kml\";\r\nconst RiverMain25BS_polyline_4 = process.env.PUBLIC_URL + \"/kml/RiverMain25BS_4.kml\";\r\nconst RiverMain25BS_polyline_5 = process.env.PUBLIC_URL + \"/kml/RiverMain25BS_5.kml\";\r\nconst RiverMain25BS_polyline_6 = process.env.PUBLIC_URL + \"/kml/RiverMain25BS_6.kml\";\r\nconst RiverMain25BS_polyline_7 = process.env.PUBLIC_URL + \"/kml/RiverMain25BS_7.kml\";\r\nconst RiverMain25BS_polyline_8 = process.env.PUBLIC_URL + \"/kml/RiverMain25BS_8.kml\";\r\nconst RiverMain25BS_polyline_9 = process.env.PUBLIC_URL + \"/kml/RiverMain25BS_9.kml\";\r\nconst RiverMain25BS_polyline_10 = process.env.PUBLIC_URL + \"/kml/RiverMain25BS_10.kml\";\r\n// import riverSubmainThai from '../kml/RiverSubmainThai.kml'\r\n\r\n\r\n//file kml basin22\r\nconst mainBasin22_1 = process.env.PUBLIC_URL + \"/kml/map22_1.kml\";\r\nconst mainBasin22_2 = process.env.PUBLIC_URL + \"/kml/map22_2.kml\";\r\nconst mainBasin22_3 = process.env.PUBLIC_URL + \"/kml/map22_3.kml\";\r\nconst mainBasin22_4 = process.env.PUBLIC_URL + \"/kml/map22_4.kml\";\r\nconst mainBasin22_5 = process.env.PUBLIC_URL + \"/kml/map22_5.kml\";\r\nconst mainBasin22_6 = process.env.PUBLIC_URL + \"/kml/map22_6.kml\";\r\nconst mainBasin22_7 = process.env.PUBLIC_URL + \"/kml/map22_7.kml\";\r\nconst mainBasin22_8 = process.env.PUBLIC_URL + \"/kml/map22_8.kml\";\r\nconst mainBasin22_9 = process.env.PUBLIC_URL + \"/kml/map22_9.kml\";\r\n\r\n//file kml basinSub22\r\nconst mapsub22_1 = process.env.PUBLIC_URL + \"/kml/mapsub22_1.kml\";\r\nconst mapsub22_2 = process.env.PUBLIC_URL + \"/kml/mapsub22_2.kml\";\r\nconst mapsub22_3 = process.env.PUBLIC_URL + \"/kml/mapsub22_3.kml\";\r\nconst mapsub22_4 = process.env.PUBLIC_URL + \"/kml/mapsub22_4.kml\";\r\nconst mapsub22_5 = process.env.PUBLIC_URL + \"/kml/mapsub22_5.kml\";\r\nconst mapsub22_6 = process.env.PUBLIC_URL + \"/kml/mapsub22_6.kml\";\r\nconst mapsub22_7 = process.env.PUBLIC_URL + \"/kml/mapsub22_7.kml\";\r\nconst mapsub22_8 = process.env.PUBLIC_URL + \"/kml/mapsub22_8.kml\";\r\nconst mapsub22_9 = process.env.PUBLIC_URL + \"/kml/mapsub22_9.kml\";\r\nconst mapsub22_10 = process.env.PUBLIC_URL + \"/kml/mapsub22_10.kml\";\r\nconst mapsub22_11 = process.env.PUBLIC_URL + \"/kml/mapsub22_11.kml\";\r\nconst mapsub22_12 = process.env.PUBLIC_URL + \"/kml/mapsub22_12.kml\";\r\nconst mapsub22_13 = process.env.PUBLIC_URL + \"/kml/mapsub22_13.kml\";\r\nconst mapsub22_14 = process.env.PUBLIC_URL + \"/kml/mapsub22_14.kml\";\r\nconst mapsub22_15 = process.env.PUBLIC_URL + \"/kml/mapsub22_15.kml\";\r\nconst mapsub22_16 = process.env.PUBLIC_URL + \"/kml/mapsub22_16.kml\";\r\nconst mapsub22_17 = process.env.PUBLIC_URL + \"/kml/mapsub22_17.kml\";\r\nconst mapsub22_18 = process.env.PUBLIC_URL + \"/kml/mapsub22_18.kml\";\r\nconst mapsub22_19 = process.env.PUBLIC_URL + \"/kml/mapsub22_19.kml\";\r\nconst mapsub22_20 = process.env.PUBLIC_URL + \"/kml/mapsub22_20.kml\";\r\nconst mapsub22_21 = process.env.PUBLIC_URL + \"/kml/mapsub22_21.kml\";\r\nconst mapsub22_22 = process.env.PUBLIC_URL + \"/kml/mapsub22_22.kml\";\r\n\r\n//file kml mainbasin25\r\nconst mainBasin25_1 = process.env.PUBLIC_URL + \"/kml/map25_1.kml\";\r\nconst mainBasin25_2 = process.env.PUBLIC_URL + \"/kml/map25_2.kml\";\r\nconst mainBasin25_3 = process.env.PUBLIC_URL + \"/kml/map25_3.kml\";\r\nconst mainBasin25_4 = process.env.PUBLIC_URL + \"/kml/map25_4.kml\";\r\nconst mainBasin25_5 = process.env.PUBLIC_URL + \"/kml/map25_5.kml\";\r\nconst mainBasin25_6 = process.env.PUBLIC_URL + \"/kml/map25_6.kml\";\r\nconst mainBasin25_7 = process.env.PUBLIC_URL + \"/kml/map25_7.kml\";\r\nconst mainBasin25_8 = process.env.PUBLIC_URL + \"/kml/map25_8.kml\";\r\nconst mainBasin25_9 = process.env.PUBLIC_URL + \"/kml/map25_9.kml\";\r\nconst mainBasin25_10 = process.env.PUBLIC_URL + \"/kml/map25_10.kml\";\r\nconst mainBasin25_11 = process.env.PUBLIC_URL + \"/kml/map25_11.kml\";\r\nconst mainBasin25_12 = process.env.PUBLIC_URL + \"/kml/map25_12.kml\";\r\n\r\n// const riverSub_1 = process.env.PUBLIC_URL + \"/kml/RiverSubMain25BS_1.kml\";\r\n// const riverSub_2 = process.env.PUBLIC_URL + \"/kml/RiverSubMain25BS_2.kml\";\r\n// const riverSub_3 = process.env.PUBLIC_URL + \"/kml/RiverSubMain25BS_3.kml\";\r\n// const riverSub_4 = process.env.PUBLIC_URL + \"/kml/RiverSubMain25BS_4.kml\";\r\n// const riverSub_5 = process.env.PUBLIC_URL + \"/kml/RiverSubMain25BS_5.kml\";\r\n// const riverSub_6 = process.env.PUBLIC_URL + \"/kml/RiverSubMain25BS_6.kml\";\r\n// const riverSub_7 = process.env.PUBLIC_URL + \"/kml/RiverSubMain25BS_7.kml\";\r\n// const riverSub_8 = process.env.PUBLIC_URL + \"/kml/RiverSubMain25BS_8.kml\";\r\n// const riverSub_9 = process.env.PUBLIC_URL + \"/kml/RiverSubMain25BS_9.kml\";\r\n// const riverSub_10 = process.env.PUBLIC_URL + \"/kml/RiverSubMain25BS_10.kml\";\r\n// const riverSub_11 = process.env.PUBLIC_URL + \"/kml/RiverSubMain25BS_11.kml\";\r\n// const riverSub_12 = process.env.PUBLIC_URL + \"/kml/RiverSubMain25BS_12.kml\";\r\n// const riverSub_13 = process.env.PUBLIC_URL + \"/kml/RiverSubMain25BS_13.kml\";\r\n// const riverSub_14 = process.env.PUBLIC_URL + \"/kml/RiverSubMain25BS_14.kml\";\r\n// const riverSub_15 = process.env.PUBLIC_URL + \"/kml/RiverSubMain25BS_15.kml\";\r\n// const riverSub_16 = process.env.PUBLIC_URL + \"/kml/RiverSubMain25BS_16.kml\";\r\n// const riverSub_17 = process.env.PUBLIC_URL + \"/kml/RiverSubMain25BS_17.kml\";\r\n// const riverSub_18 = process.env.PUBLIC_URL + \"/kml/RiverSubMain25BS_18.kml\";\r\nconst riverSub_1 = process.env.PUBLIC_URL + \"/kml/riverSub_1.kml\";\r\nconst riverSub_2 = process.env.PUBLIC_URL + \"/kml/riverSub_2.kml\";\r\nconst riverSub_3 = process.env.PUBLIC_URL + \"/kml/riverSub_3.kml\";\r\n\r\nconst gKey = process.env.REACT_APP_GOOGLEAPIKEY;\r\nvar myParser = null\r\nvar myParser3\r\nvar riverMain\r\nvar riverSubmain\r\nvar myParserMainBasin25\r\nvar myParserMainBasin22\r\nvar myParserSubBasin22\r\nvar script\r\n\r\nconst containerStyle = {\r\n height: '100vh'\r\n};\r\n\r\n//const boundMainriver = {\r\n// north: 21.94178589811432,\r\n// south: 4.254476950882775,\r\n// east: 106.6640890206161,\r\n// west: 96.47496643273738\r\n//}\r\n\r\n//const boundBorder = {\r\n// north: 21.9562506186325,\r\n// south: 4.092730181939536,\r\n// east: 106.6737386994541,\r\n// west: 96.47394078054593\r\n//}\r\n\r\nfunction Gmap(props) {\r\n const [center, setCenter] = useState({ lat: 13.736717, lng: 100.523186 })\r\n const [zoom, setZoom] = useState(6)\r\n const [map, setMap] = useState(null)\r\n const [loaded, setLoaded] = useState(false)\r\n const defaultMapOptions = {\r\n fullscreenControlOptions: { position: '6' },\r\n mapTypeControl: false\r\n }\r\n const _isMounted = useRef(true);\r\n const [infoW, setInfoW] = useState(false)\r\n \r\n const [mainBasin25Load, setMainBasin25Load] = useState(false)\r\n const [riverMainLoad, setRiverMainLoad] = useState(false)\r\n const [riverSubLoad, setRiverSubLoad] = useState(false)\r\n const [mainBasin22Load, setMainBasin22Load] = useState(false)\r\n const [subBasinLoad, setSubBasinLoad] = useState(false)\r\n const [loading, setLoading] = useState(false)\r\n \r\n //*******************************************************************************************************************************\r\n\r\n const onLoad = React.useCallback(function callback(map) {\r\n script = document.createElement('script');\r\n script.setAttribute('id', 'geoxml3script')\r\n script.src = 'geoxml3.js';\r\n document.body.appendChild(script);\r\n\r\n script.addEventListener('load', e => {\r\n try {\r\n navigator.geolocation.getCurrentPosition(\r\n function (position) {\r\n setCenter({ lat: position.coords.latitude, lng: position.coords.longitude })\r\n setZoom(7)\r\n },\r\n function (error) {\r\n setCenter({ lat: 13.736717, lng: 100.523186 })\r\n setZoom(6)\r\n }\r\n );\r\n //myParser = new window.geoXML3.parser({ map: map, zoom: false,afterParse: openMainBasin });\r\n //myParser.parse(mainbasinkml);\r\n //myParser2 = new window.geoXML3.parser({ map: map, zoom: false });\r\n //myParser2.parse(mainriverkml)\r\n setMap(map)\r\n //myParser = map.data\r\n //myParser.loadGeoJson(mainbasingeojson)\r\n //myParser.addListener('click', function(event){\r\n // setInfoW(true)\r\n //})\r\n \r\n setLoading(true);\r\n\r\n myParserMainBasin25 = new window.geoXML3.parser({ map: map, zoom: false});\r\n parseFileMap25();\r\n \r\n setTimeout(() => {\r\n setLoading(false);\r\n setMainBasin25Load(true);\r\n }, 3000);\r\n\r\n riverMain = new window.geoXML3.parser({ map: map, zoom: false });\r\n // riverMain.parse(RiverMain25BS_polyline_1);\r\n \r\n const RiverMain25BS_polyline = [RiverMain25BS_polyline_1, RiverMain25BS_polyline_2, RiverMain25BS_polyline_3,\r\n RiverMain25BS_polyline_4,RiverMain25BS_polyline_5,RiverMain25BS_polyline_6,RiverMain25BS_polyline_7,RiverMain25BS_polyline_8,\r\n RiverMain25BS_polyline_9,RiverMain25BS_polyline_10];\r\n \r\n Promise.all(\r\n RiverMain25BS_polyline.map(async (file) => {\r\n riverMain.parse(file);\r\n })\r\n );\r\n\r\n setRiverMainLoad(true);\r\n\r\n myParser3 = new window.geoXML3.parser({ map: map, zoom: false, afterParse: closeSubBasin });\r\n myParser3.parse(subbasinkml) \r\n\r\n \r\n\r\n } catch (e) {\r\n console.log(e)\r\n }\r\n\r\n })\r\n }, [])\r\n\r\n //*******************************************************************************************************************************\r\n //const openMainBasin = () => {\r\n // if (_isMounted.current) {\r\n // myParser.showDocument(myParser.docs[0])\r\n // setLoaded(true)\r\n // }\r\n //}\r\n\r\n const closeSubBasin = () => {\r\n if (_isMounted.current) {\r\n myParser3.hideDocument(myParser3.docs[0])\r\n setLoaded(true)\r\n }\r\n }\r\n\r\n //*******************************************************************************************************************************\r\n\r\n useEffect(() => {\r\n return function cleanup() {\r\n _isMounted.current = false;\r\n document.removeEventListener('load', onLoad);\r\n if (document.getElementById('geoxml3script')) {\r\n document.getElementById('geoxml3script').remove(script);\r\n }\r\n }\r\n }, [])\r\n\r\n //*******************************************************************************************************************************\r\n\r\n useEffect(() => {\r\n if (map !== null && myParser !== null && props.optionCheckbox.cbMainBasin25) {\r\n myParser.setMap(map)\r\n }\r\n else if (map !== null && myParser !== null && !props.optionCheckbox.cbMainBasin25) {\r\n myParser.setMap(null)\r\n }\r\n }, [map, props.optionCheckbox.cbMainBasin25, myParser]);\r\n\r\n //*******************************************************************************************************************************\r\n\r\n useEffect(() => {\r\n mapMainBasin25();\r\n mapriverMain();\r\n mapriverSub();\r\n mapMainBasin22();\r\n mapSubBasin22();\r\n }, [props.optionCheckbox.cbMainBasin25,props.optionCheckbox.cbMainRiver,props.optionCheckbox.cbSubRiver,props.optionCheckbox.cbMainBasin22,props.optionCheckbox.cbSubBasin22]);\r\n\r\n const mapMainBasin25 = async () => {\r\n if(mainBasin25Load){\r\n if(props.optionCheckbox.cbMainBasin25){\r\n for (const item of myParserMainBasin25.docs) {\r\n myParserMainBasin25.showDocument(item)\r\n }\r\n }else{\r\n for (const item of myParserMainBasin25.docs) {\r\n myParserMainBasin25.hideDocument(item)\r\n }\r\n }\r\n }\r\n }\r\n\r\n const mapriverMain = async () => {\r\n if(riverMainLoad){\r\n if(props.optionCheckbox.cbMainRiver){\r\n for (const item of riverMain.docs) {\r\n riverMain.showDocument(item)\r\n }\r\n }else{\r\n for (const item of riverMain.docs) {\r\n riverMain.hideDocument(item)\r\n }\r\n }\r\n }\r\n }\r\n\r\n const mapriverSub = async () => {\r\n if(props.optionCheckbox.cbSubRiver && !riverSubLoad){\r\n setLoading(true);\r\n \r\n riverSubmain = new window.geoXML3.parser({ map: map, zoom: false });\r\n parseFileMapRiverSub();\r\n\r\n setTimeout(() => {\r\n setLoading(false);\r\n }, 5000);\r\n\r\n setRiverSubLoad(true);\r\n }\r\n \r\n if(riverSubLoad){\r\n if(props.optionCheckbox.cbSubRiver){\r\n for (const item of riverSubmain.docs) {\r\n riverSubmain.showDocument(item)\r\n }\r\n }else{\r\n for (const item of riverSubmain.docs) {\r\n riverSubmain.hideDocument(item)\r\n }\r\n }\r\n }\r\n\r\n }\r\n\r\n const mapMainBasin22 = async () => {\r\n\r\n if(props.optionCheckbox.cbMainBasin22 && !mainBasin22Load){\r\n setLoading(true);\r\n \r\n myParserMainBasin22 = new window.geoXML3.parser({ map: map, zoom: false });\r\n parseFileMap22();\r\n // myParserMainBasin22.parse(mainBasin22) \r\n\r\n setTimeout(() => {\r\n setLoading(false);\r\n }, 10000);\r\n setMainBasin22Load(true);\r\n }\r\n \r\n if(mainBasin22Load){\r\n if(props.optionCheckbox.cbMainBasin22){\r\n for (const item of myParserMainBasin22.docs) {\r\n myParserMainBasin22.showDocument(item)\r\n }\r\n }else{\r\n for (const item of myParserMainBasin22.docs) {\r\n myParserMainBasin22.hideDocument(item)\r\n }\r\n }\r\n }\r\n \r\n }\r\n \r\n const mapSubBasin22 = async () => {\r\n if(props.optionCheckbox.cbSubBasin22 && !subBasinLoad){\r\n setLoading(true);\r\n myParserSubBasin22 = new window.geoXML3.parser({ map: map, zoom: false, processStyles: true,afterParse: ()=>setLoading(false) });\r\n parseFileMapsub22();\r\n\r\n // myParserSubBasin22 = new window.geoXML3.parser({ map: map, zoom: false, processStyles: true,afterParse: ()=>setLoading(false) });\r\n // myParserSubBasin22.parse(subBasin22) \r\n setSubBasinLoad(true);\r\n }\r\n \r\n if(subBasinLoad){\r\n if(props.optionCheckbox.cbSubBasin22){\r\n for (const item of myParserSubBasin22.docs) {\r\n myParserSubBasin22.showDocument(item)\r\n }\r\n }else{\r\n for (const item of myParserSubBasin22.docs) {\r\n myParserSubBasin22.hideDocument(item)\r\n }\r\n }\r\n }\r\n }\r\n \r\n const parseFileMap25 = async () => {\r\n const mainBasin25Path = [mainBasin25_1,mainBasin25_2,mainBasin25_3,mainBasin25_4,mainBasin25_5,mainBasin25_6,mainBasin25_7,mainBasin25_8,\r\n mainBasin25_9,mainBasin25_10,mainBasin25_12];\r\n await Promise.all(mainBasin25Path.map(async (file) => {\r\n await myParserMainBasin25.parse(file) \r\n }));\r\n }\r\n\r\n const parseFileMapRiverSub = async () => {\r\n const riverSubPath = [\r\n riverSub_1,\r\n riverSub_2,\r\n riverSub_3,\r\n // riverSub_4,\r\n // riverSub_5,\r\n // riverSub_6,\r\n // riverSub_7,\r\n // riverSub_8,\r\n // riverSub_9,\r\n // riverSub_10,\r\n // riverSub_11,\r\n // riverSub_12,\r\n // riverSub_13,\r\n // riverSub_14,\r\n // riverSub_15,\r\n // riverSub_16,\r\n // riverSub_17,\r\n // riverSub_18,\r\n ];\r\n await Promise.all(riverSubPath.map(async (file) => {\r\n await riverSubmain.parse(file) \r\n }));\r\n }\r\n\r\n const parseFileMap22 = async () => {\r\n const mainBasin22Path = [mainBasin22_1,mainBasin22_2,mainBasin22_3,mainBasin22_4,mainBasin22_5,mainBasin22_6,mainBasin22_7,mainBasin22_9];\r\n await Promise.all(mainBasin22Path.map(async (file) => {\r\n await myParserMainBasin22.parse(file) \r\n }));\r\n }\r\n\r\n const parseFileMapsub22 = async () => {\r\n const mainSubBasin22Path = [mapsub22_1,mapsub22_2,mapsub22_3,mapsub22_4,mapsub22_5,mapsub22_6,mapsub22_7,mapsub22_8,mapsub22_9,mapsub22_10,\r\n mapsub22_11,mapsub22_12,mapsub22_13,mapsub22_14,mapsub22_15,mapsub22_16,mapsub22_17,mapsub22_18,mapsub22_19,mapsub22_20,mapsub22_21,mapsub22_22];\r\n\r\n await Promise.all(mainSubBasin22Path.map(async (file) => {\r\n await myParserSubBasin22.parse(file) \r\n }));\r\n }\r\n //*******************************************************************************************************************************\r\n\r\n //useEffect(() => {\r\n // if (loaded && props.optionCheckbox.cbMainRiver) {\r\n // myParser2.showDocument(myParser2.docs[0])\r\n // }\r\n // else if (loaded && !props.optionCheckbox.cbMainRiver) {\r\n // myParser2.hideDocument(myParser2.docs[0])\r\n // }\r\n //}, [props.optionCheckbox.cbMainRiver]);\r\n\r\n //*******************************************************************************************************************************\r\n\r\n useEffect(() => {\r\n if (loaded && props.optionCheckbox.cbSubBasin25) {\r\n myParser3.showDocument(myParser3.docs[0])\r\n }\r\n else if (loaded && !props.optionCheckbox.cbSubBasin25) {\r\n myParser3.hideDocument(myParser3.docs[0])\r\n }\r\n }, [props.optionCheckbox.cbSubBasin25]);\r\n\r\n //*******************************************************************************************************************************\r\n\r\n var icon = { url: process.env.PUBLIC_URL + '/img/no-survey.png' }\r\n var searchedMarkerIcon = null\r\n let isSearchingMarker = null\r\n\r\n if (props.isSearching && props.clickMarkerData != null) {\r\n if (props.clickMarkerData.isGhDcSdSurvey === true) {\r\n searchedMarkerIcon = process.env.PUBLIC_URL + '/img/gagehsediicon.png'\r\n }\r\n else if (props.clickMarkerData.isGhDcSurvey === true) {\r\n searchedMarkerIcon = process.env.PUBLIC_URL + '/img/gagevolicon.png'\r\n }\r\n else if (props.clickMarkerData.isGhSurvey === true) {\r\n searchedMarkerIcon = process.env.PUBLIC_URL + '/img/gagehicon.png'\r\n }\r\n else if (props.clickMarkerData.isWqSurvey === true) {\r\n searchedMarkerIcon = process.env.PUBLIC_URL + '/img/waterqicon.png'\r\n }\r\n else if (props.clickMarkerData.isMeteoSurvey === true) {\r\n searchedMarkerIcon = process.env.PUBLIC_URL + '/img/meteoicon.png'\r\n }\r\n else if (props.clickMarkerData.isRainSurvey === true) {\r\n searchedMarkerIcon = process.env.PUBLIC_URL + '/img/rainicon.png'\r\n }\r\n else if (props.clickMarkerData.isAutoGhSurvey === true) {\r\n searchedMarkerIcon = process.env.PUBLIC_URL + '/img/iconautohydro.png'\r\n }\r\n else if (props.clickMarkerData.isAutoMeteoSurvey === true) {\r\n searchedMarkerIcon = process.env.PUBLIC_URL + '/img/iconautometeo.png'\r\n }\r\n else {\r\n searchedMarkerIcon = process.env.PUBLIC_URL + '/img/no-survey.png'\r\n }\r\n \r\n\r\n isSearchingMarker = props.toggleInfoBox(props.searchSelected.data.stationId)}\r\n position={{ lat: props.searchSelected.data.location.latitudeDd, lng: props.searchSelected.data.location.longitudeDd }}\r\n icon={searchedMarkerIcon}\r\n >\r\n {props.clickMarkerData ?\r\n \r\n
props.toggleInfoBox(props.searchSelected.data.stationId)}>{props.searchSelected.data.stationLabel}
\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 \r\n\r\n {!props.isSearching && props.markers && props.markers.length > 0 ? props.markers.map((item, index) => {\r\n //���Ǥ�����marker\r\n if (props.optionCheckbox.cbGageHeight === true) {\r\n icon.url = process.env.PUBLIC_URL + '/img/gagehicon.png'\r\n }\r\n else if (props.optionCheckbox.cbGageHeightVolume === true) {\r\n icon.url = process.env.PUBLIC_URL + '/img/gagevolicon.png'\r\n }\r\n else if (props.optionCheckbox.cbGageHeightVolumeSedi === true) {\r\n icon.url = process.env.PUBLIC_URL + '/img/gagehsediicon.png'\r\n }\r\n else if (props.optionCheckbox.cbWaterQuality === true) {\r\n icon.url = process.env.PUBLIC_URL + '/img/waterqicon.png'\r\n }\r\n else if (props.optionCheckbox.cbRain === true) {\r\n icon.url = process.env.PUBLIC_URL + '/img/rainicon.png'\r\n }\r\n else if (props.optionCheckbox.cbMeteo === true) {\r\n icon.url = process.env.PUBLIC_URL + '/img/meteoicon.png'\r\n }\r\n else if (props.optionCheckbox.cbAutoGageHeight === true) {\r\n icon.url = process.env.PUBLIC_URL + '/img/iconautohydro.png'\r\n }\r\n else if (props.optionCheckbox.cbAutoMeteo === true) {\r\n icon.url = process.env.PUBLIC_URL + '/img/iconautometeo.png'\r\n }\r\n else {\r\n icon.url = process.env.PUBLIC_URL + '/img/no-survey.png'\r\n }\r\n\r\n return (\r\n\r\n item.location && item.location.latitudeDd && item.location.longitudeDd ?\r\n\r\n props.toggleInfoBox(item.stationId)}\r\n position={{ lat: item.location.latitudeDd, lng: item.location.longitudeDd }}\r\n icon={icon}\r\n >\r\n {props.clickMarkerData && props.clickMarkerData.stationId == item.stationId ?\r\n \r\n
props.toggleInfoBox(item.stationId)}>{item.stationLabel}
\r\n
\r\n : ''}\r\n
\r\n : ''\r\n )\r\n })\r\n : ''}\r\n\r\n {isSearchingMarker ? isSearchingMarker : ''}\r\n\r\n {/** infoW === true ?\r\n setInfoW(false)} position={{ lat: 13.736717, lng: 100.523186 }}>\r\n
test
\r\n
\r\n : '' **/}\r\n\r\n {/* setInfoW(true)}\r\n opacity={props.optionCheckbox.cbMainBasin25 ? 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\nexport default React.memo(Gmap)","import React, { useState } from 'react'\r\nimport '../css/OptionBox.css'\r\nimport { FormGroup, Label, Input, Collapse, CardBody, Card, TabContent, TabPane, Nav, NavItem, NavLink, Button, Row, Col } from 'reactstrap';\r\nimport { BsDash, BsPlus } from 'react-icons/bs'\r\nimport { useMediaQuery } from 'react-responsive'\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\nexport default function OptionBox(props) {\r\n const isTabletOrMobileDevice = useMediaQuery({\r\n query: '(max-device-width: 768px)'\r\n })\r\n\r\n const [isOpen, setIsOpen] = useState(true);\r\n const [activeTab, setActiveTab] = useState('1');\r\n const { t } = useTranslation();\r\n\r\n const toggle = () => {\r\n setIsOpen(!isOpen)\r\n };\r\n\r\n const toggleTab = tab => {\r\n if (activeTab !== tab) {\r\n setActiveTab(tab);\r\n props.tabChange(tab)\r\n } \r\n }\r\n\r\n return (\r\n \r\n
\r\n
\r\n {isTabletOrMobileDevice ? t('map.stationInfo') : t('map.stationInfoHeader') } \r\n
{isOpen ? : }
\r\n
\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n
\r\n \r\n \r\n \r\n \r\n \r\n
{t('map.hydrology')} {/*ข้อมูลอุทกวิทยา*/}
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n \r\n
{t('map.meteorology')}{/*ข้อมูลอุตุนิยมวิทยา*/}
\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n
{t('map.hydrology')}{/*ข้อมูลอุทกวิทยา*/}
\r\n \r\n \r\n \r\n \r\n
\r\n \r\n \r\n
{t('map.meteorology')}{/*ข้อมูลอุตุนิยมวิทยา*/}
\r\n \r\n \r\n \r\n \r\n
\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 React, { createContext, useContext,useReducer } from \"react\";\r\n\r\nexport const StateContext = createContext();\r\n\r\nexport const StateProvider = ({ reducer, initialState, children }) => (\r\n \r\n {children}\r\n \r\n);\r\n\r\nexport const useStateValue = () => useContext(StateContext);\r\n","import React, { useState, useEffect } from \"react\";\r\nimport {\r\n Row,\r\n Col,\r\n Input,\r\n FormGroup,\r\n Form,\r\n Button,\r\n Modal,\r\n ModalHeader,\r\n ModalBody,\r\n} from \"reactstrap\";\r\nimport { useStateValue } from \"../contextApi/StateProvider\";\r\nimport swal from \"sweetalert\";\r\nimport AuthenServices from \"../services/authenServices\";\r\nimport { useHistory } from \"react-router-dom\";\r\nimport { LoopCircleLoading } from \"react-loadingg\";\r\nimport { Link } from \"react-router-dom\";\r\nimport { RiFacebookCircleFill } from \"react-icons/ri\";\r\nimport { deleteAllCookies, getCookie } from \"../Helper/CookieHepler\";\r\n\r\nvar auth = new AuthenServices();\r\nvar url = process.env.REACT_APP_DWR_API;\r\nconst identityurl = process.env.REACT_APP_DWR_IdentityServer;\r\nconst identityurl_facebook = process.env.REACT_APP_DWR_IdentityFacebook;\r\n\r\nexport default function Login(props) {\r\n let history = useHistory();\r\n const [username, setUserName] = useState(\"\");\r\n const [password, setPassword] = useState(\"\");\r\n const [loading, setLoading] = useState(false);\r\n //const [{ userLoginInfo }, dispatch] = useStateValue();\r\n\r\n useEffect(() => {});\r\n\r\n function LoginUser() {\r\n if (username == \"\" || password == \"\") {\r\n swal({\r\n text: \"กรุณากรอกชื่อผู้ใช้งาน หรือรหัสผ่าน ให้ครบถ้วน\",\r\n icon: \"warning\",\r\n });\r\n return;\r\n }\r\n setLoading(true);\r\n auth\r\n .getAccessToken(username, password) //click login ส่ง username password ไป AuthService เพื่อทำการเอา Token\r\n .then((res) => {\r\n if (res.status == \"200\") {\r\n //dispatch({\r\n // type: 'USER_LOGIN',\r\n // payload: { username: username, token:res.data.access_token, isLoggedIn: true }\r\n //})\r\n setLoading(false);\r\n props.closeLoginModal();\r\n swal({ text: \"เข้าสู่ระบบสำเร็จ\", icon: \"success\" }).then(() =>\r\n window.location.reload()\r\n );\r\n } else {\r\n setLoading(false);\r\n swal({\r\n text: \"กรุณาตรวจสอบชื่อผู้ใช้งานหรือรหัสผ่านอีกครั้ง\",\r\n icon: \"warning\",\r\n });\r\n }\r\n })\r\n .catch((err) => {\r\n setLoading(false);\r\n swal({\r\n text: \"ไม่สามารถเข้าสู่ระบบได้ กรุณาลองใหม่ภายหลัง\",\r\n icon: \"warning\",\r\n });\r\n });\r\n }\r\n\r\n function enterPressed(event) {\r\n var code = event.keyCode || event.which;\r\n\r\n if (code === 13) {\r\n LoginUser();\r\n }\r\n }\r\n\r\n const LoginFacebook = () => {\r\n window.location.href = `${identityurl}/auth/ExternalLogin?returnUrl=${identityurl_facebook}?returnUrl=${window.location.href}`;\r\n };\r\n\r\n const verifyAccessToken = (data) => {\r\n setLoading(true);\r\n auth\r\n .fetchWithToken(`${url}/api/v1/FaceBook`, {\r\n method: \"POST\",\r\n data: data,\r\n })\r\n .then((res) => {\r\n if (res.data.access_token) {\r\n localStorage.setItem(\"id_token\", res.data.access_token);\r\n swal({ text: \"เข้าสู่ระบบสำเร็จ\", icon: \"success\" }).then(\r\n () => \r\n window.location.reload()\r\n );\r\n }\r\n props.closeLoginModal();\r\n setLoading(false);\r\n })\r\n .catch((error) => {\r\n if(error.response.data){\r\n swal({\r\n text: error.response.data,\r\n icon: \"error\",\r\n });\r\n }else{\r\n swal({\r\n text: \"ไม่พบอีเมลนี้ในระบบ\",\r\n icon: \"warning\",\r\n });\r\n }\r\n \r\n setLoading(false);\r\n });\r\n };\r\n\r\n const LoginFacebook2 = () => {\r\n window.FB.login(\r\n (response) => {\r\n if (response.authResponse) {\r\n verifyAccessToken(response.authResponse);\r\n }\r\n },\r\n { scope: \"public_profile,user_birthday,email\" }\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 \r\n \r\n
เข้าสู่ระบบ
\r\n e.preventDefault()}\r\n >\r\n \r\n setUserName(e.target.value)}\r\n onKeyPress={(e) => enterPressed(e)}\r\n />\r\n \r\n\r\n \r\n setPassword(e.target.value)}\r\n onKeyPress={(e) => enterPressed(e)}\r\n />\r\n \r\n\r\n
\r\n LoginUser(e)}\r\n >\r\n เข้าสู่ระบบ\r\n \r\n
\r\n
\r\n history.push(\"/register\")}\r\n style={{ margin: \"5px\" }}\r\n color=\"secondary\"\r\n size=\"md\"\r\n block\r\n >\r\n สมัครเป็นผู้ใช้งาน\r\n \r\n
\r\n {/*
\r\n \r\n เข้าสู่ระบบด้วย facebook\r\n \r\n
*/}\r\n\r\n
\r\n \r\n เข้าสู่ระบบด้วย facebook\r\n \r\n
\r\n\r\n
\r\n \r\n ลืมรหัสผ่าน\r\n \r\n
\r\n \r\n \r\n
\r\n
\r\n {loading ? (\r\n \r\n ) : (\r\n \"\"\r\n )}\r\n \r\n
\r\n );\r\n}\r\n","import React, { useState, useEffect } from 'react'\r\nimport {\r\n Collapse,\r\n Navbar,\r\n Nav,\r\n NavItem,\r\n NavLink,\r\n} from 'reactstrap';\r\nimport { Popover, Tooltip } from 'antd';\r\n\r\nimport \"../css/NavBar.css\";\r\nimport { Link, NavLink as RRNavLink } from 'react-router-dom'\r\nimport { useMediaQuery } from 'react-responsive'\r\nimport { BsPersonFill, BsLockFill, BsFillUnlockFill } from \"react-icons/bs\"\r\nimport Login from '../login/Login'\r\nimport { ProSidebar, Menu, MenuItem, SubMenu } from \"react-pro-sidebar\";\r\nimport AuthenServices from '../services/authenServices'\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { deleteAllCookies } from \"../Helper/CookieHepler\";\r\nimport axios from 'axios'\r\n\r\nvar auth = new AuthenServices()\r\n\r\n//*****************************************************************************************************************************\r\n\r\nexport default function NavBar(props) {\r\n const [isOpen] = useState(false);\r\n const [topNavBar, setTopNavBar] = useState(false);\r\n const [loginModal, setloginModal] = useState(false);\r\n const { t, i18n } = useTranslation();\r\n const [popoverVisible, setPopoverVisible] = useState(false);\r\n const [facebookConnect, setFacebookConnect] = useState(false);\r\n\r\n // useEffect(() => {\r\n // axios.get(`${identityurl_facebook}`)\r\n // .then(function (response) {\r\n // if(response.status){\r\n // setFacebookConnect(true);\r\n // }else{\r\n // setFacebookConnect(false);\r\n // }\r\n // })\r\n // .catch(function (error) {9+\r\n // setFacebookConnect(false);\r\n // });\r\n // }, [])\r\n\r\n const isDesktopOrLaptop = useMediaQuery({\r\n query: '(min-width: 992px)'\r\n })\r\n\r\n const isTabletOrMobileDevice = useMediaQuery({\r\n query: '(max-width: 991px)'\r\n })\r\n\r\n const toggleTopNavBar = () => {\r\n setTopNavBar(!topNavBar)\r\n }\r\n\r\n const toggleLoginModal = () => {\r\n setloginModal(!loginModal)\r\n setTopNavBar(false)\r\n setPopoverVisible(false);\r\n };\r\n\r\n const closeLoginModal = () => {\r\n setloginModal(false)\r\n }\r\n\r\n const logout = () => {\r\n LogoutFacebook();\r\n\r\n deleteAllCookies();\r\n\r\n auth.logout()\r\n window.location.href = '/home'\r\n }\r\n\r\n const changeLanguage = () => {\r\n var lang = i18n.language\r\n if (lang == 'th') {\r\n i18n.changeLanguage('en')\r\n }\r\n else if (lang == 'en') {\r\n i18n.changeLanguage('th')\r\n }\r\n };\r\n\r\n const language = i18n.language == 'th' ? 'EN' : 'TH'\r\n\r\n const LogoutFacebook = () => {\r\n if (facebookConnect) {\r\n window.FB.logout((response) => {\r\n // Person is now logged out\r\n });\r\n\r\n //window.open(`${identityurl_facebook}/logout`, '_blank');\r\n }\r\n }\r\n\r\n return (\r\n
\r\n {isDesktopOrLaptop &&\r\n \r\n \r\n \r\n \r\n \r\n }\r\n\r\n {isTabletOrMobileDevice &&\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n \r\n {auth.loggedIn() ?
ออกจากระบบ
: ''}\r\n \r\n \r\n {t('navbar.nav1')}\r\n \r\n \r\n \r\n {t('navbar.nav2')}\r\n \r\n \r\n \r\n {t('navbar.nav3')}\r\n \r\n \r\n {t('navbar.nav4')}\r\n \r\n \r\n {t('navbar.nav5')}\r\n \r\n \r\n {t('navbar.nav6')}\r\n \r\n \r\n\r\n\r\n\r\n\r\n {auth.loggedIn() ?\r\n <>\r\n {t('sidenavbar.nav1')}\r\n \r\n \r\n {t('sidenavbar.nav2')}\r\n \r\n \r\n \r\n : <>}\r\n\r\n {!auth.loggedIn() ?\r\n \r\n \r\n \r\n \r\n : <>}\r\n\r\n \r\n
changeLanguage()}>{language}
\r\n
\r\n
\r\n
\r\n\r\n \r\n\r\n }\r\n\r\n {loginModal ?\r\n \r\n : ''}\r\n\r\n \r\n )\r\n}","export const getCookie = (name) => {\r\n // Split cookie string and get all individual name=value pairs in an array\r\n var cookieArr = document.cookie.split(\";\");\r\n \r\n // Loop through the array elements\r\n for(var i = 0; i < cookieArr.length; i++) {\r\n var cookiePair = cookieArr[i].split(\"=\");\r\n \r\n /* Removing whitespace at the beginning of the cookie name\r\n and compare it with the given string */\r\n if(name == cookiePair[0].trim()) {\r\n // Decode the cookie value and return\r\n return decodeURIComponent(cookiePair[1]);\r\n }\r\n }\r\n \r\n // Return null if not found\r\n return null;\r\n}\r\n\r\n\r\nexport const setCookie = (name, value, daysToLive) => {\r\n // Encode value in order to escape semicolons, commas, and whitespace\r\n var cookie = name + \"=\" + encodeURIComponent(value);\r\n \r\n if(typeof daysToLive === \"number\") {\r\n /* Sets the max-age attribute so that the cookie expires\r\n after the specified number of days */\r\n cookie += \"; max-age=\" + (daysToLive*24*60*60);\r\n \r\n document.cookie = cookie;\r\n }\r\n}\r\n\r\nexport const deleteAllCookies = () => {\r\n var cookies = document.cookie.split(\";\");\r\n for (var i = 0; i < cookies.length; i++) {\r\n var cookie = cookies[i];\r\n var eqPos = cookie.indexOf(\"=\");\r\n var name = eqPos > -1 ? cookie.substr(0, eqPos) : cookie;\r\n document.cookie = name + \"=;expires=Thu, 01 Jan 1970 00:00:00 GMT\";\r\n }\r\n}","import React from 'react'\r\nimport Select, { components } from 'react-select'\r\nimport '../css/selectsearch.css'\r\nimport { AiOutlineSearch } from \"react-icons/ai\";\r\n\r\nexport default function SelectSearch(props) {\r\n\r\n const ValueContainer = ({ children, ...props }) => {\r\n return (\r\n components.ValueContainer && (\r\n \r\n {!!children && (\r\n \r\n )}\r\n {children}\r\n \r\n )\r\n );\r\n };\r\n\r\n const styles = {\r\n valueContainer: base => ({\r\n ...base,\r\n paddingLeft: 35\r\n })\r\n }\r\n\r\n let se = ({\r\n ...styles,\r\n borderColor: props.error === true ? 'red !important' : '#ced4da'\r\n })\r\n }}\r\n placeholder={props.placeholder}\r\n menuPlacement={props.menuPlacement}\r\n menuPortalTarget={props.menuPortalTarget}\r\n className='selectsearch'\r\n defaultValue={props.label != null ? { label: props.label, value: props.value } : null}\r\n classNamePrefix='selectsearch'\r\n options={props.loading ? [{ value: 0, label: \"Loading...\", isDisabled: true }] : props.options ? props.options : []}\r\n isSearchable={true}\r\n isClearable={props.isClearable ? true : false}\r\n noOptionsMessage={() => 'ไม่พบข้อมูล'}\r\n isDisabled={props.isDisabled}\r\n onChange={(event) => props.handleDropdownChange(event, props.setFunction, props.name, props.nameId)}\r\n \r\n >\r\n \r\n\r\n\r\n if (props.ver == 'gmap') {\r\n se =\r\n 'ไม่พบข้อมูล'}\r\n styles={styles}\r\n components={{ ValueContainer }}\r\n onChange={(event) => props.handleDropdownChange(event, props.setFunction, props.name, props.nameId)}\r\n >\r\n \r\n } else if (props.ver == 'Multi') {\r\n se =\r\n ({\r\n ...styles,\r\n borderColor: props.error === true ? 'red !important' : '#ced4da'\r\n })\r\n }}\r\n className='selectsearch'\r\n \r\n name={props.name2}\r\n placeholder={props.placeholder}\r\n defaultValue={props.selectOption}\r\n value={props.selectOption}\r\n classNamePrefix='selectsearch'\r\n options={props.loading ? [{ value: 0, label: \"Loading...\", isDisabled: true }] : props.options ? props.options : []}\r\n isSearchable={true}\r\n noOptionsMessage={() => 'ไม่พบข้อมูล'}\r\n isDisabled={props.isDisabled}\r\n onChange={(event) => props.handleDropdownChange(event, props.setFunction, props.name, props.nameId)}\r\n isMulti={ true}\r\n >\r\n \r\n }\r\n\r\n\r\n return (\r\n \r\n {se}\r\n \r\n\r\n )\r\n}","export const encodedString = (value) => {\r\n let data = window.btoa(value);\r\n return data;\r\n};\r\n\r\nexport const decodedString = (value) => {\r\n try {\r\n let data = window.atob(value);\r\n return data;\r\n } catch (error) {\r\n return \"\";\r\n }\r\n};\r\n","import React from 'react'\r\nimport '../css/StationInfoBox.css'\r\nimport ScrollContainer from 'react-indiana-drag-scroll'\r\nimport moment from 'moment'\r\nimport { useMediaQuery } from 'react-responsive'\r\nimport { RiCloseCircleFill } from \"react-icons/ri\";\r\nimport { encodedString } from \"../Helper/ConvertBase64\";\r\nimport { useHistory } from \"react-router-dom\";\r\nimport { Spin } from \"antd\";\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\nfunction StationInfoBox(props) {\r\n let history = useHistory()\r\n const isDesktopOrLaptop = useMediaQuery({\r\n query: '(min-width: 769px)'\r\n })\r\n\r\n const isTabletOrMobileDevice = useMediaQuery({\r\n query: '(max-width: 768px)'\r\n })\r\n\r\n const { t } = useTranslation();\r\n\r\n function changePageToStationDetail(selectedId) {\r\n var id = encodedString(props.clickMarkerData.stationId);\r\n var urlString = '/station/detail?id=' + id\r\n history.push(urlString)\r\n }\r\n\r\n return (\r\n \r\n\r\n {isDesktopOrLaptop ?\r\n
\r\n \r\n
\r\n
\r\n \r\n
{t('map.stationBox.code')}{/*รหัส*/} {props.clickMarkerData && props.clickMarkerData.stationLabel ? props.clickMarkerData.stationLabel : ''} :
\r\n
{props.clickMarkerData && props.clickMarkerData.stationTh ? props.clickMarkerData.stationTh : ''}
\r\n
{props.clickMarkerData && props.clickMarkerData.stationEn ? props.clickMarkerData.stationEn : ''}
\r\n
{props.clickMarkerData && props.clickMarkerData.basin.basinTh ? props.clickMarkerData.basin.basinTh : ''} {props.clickMarkerData && props.clickMarkerData.basin.basinEn ? '(' + props.clickMarkerData.basin.basinEn + ')' : ''}
\r\n
{t('map.stationBox.stationinfo')}{/*รายละเอียดสถานี*/}
\r\n
\r\n
\r\n
\r\n
{t('map.hydrology')}{/*ข้อมูลอุทกวิทยา*/}
\r\n \r\n
\r\n\r\n
\r\n
{t('map.stationBox.gageHeight')} {/*ระดับน้ำ*/}
\r\n \r\n
\r\n {props.clickMarkerData && props.clickMarkerData.hydroData && props.clickMarkerData.hydroData.dailyGageHeight != null ? props.clickMarkerData.hydroData.dailyGageHeight.toFixed(2) : '-'}\r\n
\r\n
\r\n {t('map.stationBox.metre')} {/*ม.*/}\r\n
\r\n {props.clickMarkerData && props.clickMarkerData.hydroData && props.clickMarkerData.hydroData.dailyGageHeightDate != null ? moment(props.clickMarkerData.hydroData.dailyGageHeightDate).format('DD/MM/YYYY') : ''}\r\n
\r\n\r\n
\r\n
{t('map.stationBox.discharge')}{/*ปริมาณน้ำ*/}
\r\n \r\n
\r\n {props.clickMarkerData && props.clickMarkerData.hydroData && props.clickMarkerData.hydroData.dailyDischarge != null ? props.clickMarkerData.hydroData.dailyDischarge.toFixed(2) : '-'}\r\n
\r\n
\r\n {t('map.stationBox.dischargeUnit')}{/*ลบ.ม./วินาที*/}\r\n
\r\n {props.clickMarkerData && props.clickMarkerData.hydroData && props.clickMarkerData.hydroData.dailyDischargeDate != null ? moment(props.clickMarkerData.hydroData.dailyDischargeDate).format('DD/MM/YYYY') : ''}\r\n
\r\n\r\n\r\n
\r\n
{t('map.stationBox.sediment')}{/*ปริมาณตะกอน*/}
\r\n \r\n
\r\n {props.clickMarkerData && props.clickMarkerData.hydroData && props.clickMarkerData.hydroData.dailySediment != null ? props.clickMarkerData.hydroData.dailySediment.toFixed(2) : '-'}\r\n
\r\n
\r\n {t('map.stationBox.sedimentUnit')}{/*ตัน*/}\r\n
\r\n {props.clickMarkerData && props.clickMarkerData.hydroData && props.clickMarkerData.hydroData.dailySedimentDate != null ? moment(props.clickMarkerData.hydroData.dailySedimentDate).format('DD/MM/YYYY') : ''}\r\n
\r\n\r\n
\r\n
{t('map.stationBox.waterQuality')}{/*คุณภาพน้ำ*/}
\r\n \r\n
\r\n {props.clickMarkerData && props.clickMarkerData.hydroData && props.clickMarkerData.hydroData.waterQualityPh != null ? props.clickMarkerData.hydroData.waterQualityPh.toFixed(2) : '-'}\r\n
\r\n
\r\n {t('map.stationBox.pH')}{/*pH*/}\r\n
\r\n {props.clickMarkerData && props.clickMarkerData.hydroData && props.clickMarkerData.hydroData.dailyWaterQualityDate != null ? moment(props.clickMarkerData.hydroData.dailyWaterQualityDate).format('DD/MM/YYYY') : ''}\r\n
\r\n\r\n
\r\n
\r\n
\r\n\r\n { /********** อุตุนิยมวิทยา **********/}\r\n\r\n
\r\n
{t('map.meteorology')}{/*ข้อมูลอุตุนิยมวิทยา*/}
\r\n\r\n \r\n
\r\n
\r\n
{t('map.stationBox.rain')} {/*น้ำฝน*/}
\r\n \r\n
\r\n {props.clickMarkerData && props.clickMarkerData.meteoData && props.clickMarkerData.meteoData.rain != null ? props.clickMarkerData.meteoData.rain.toFixed(2) : '-'}\r\n
\r\n
\r\n {t('map.stationBox.millimetre')} {/*มม.*/}\r\n
\r\n {props.clickMarkerData && props.clickMarkerData.meteoData && props.clickMarkerData.meteoData.rainDate != null ? moment(props.clickMarkerData.meteoData.rainDate).format('DD/MM/YYYY') : ''}\r\n
\r\n\r\n
\r\n
{t('map.stationBox.evaporation')}{/*การระเหย*/}
\r\n \r\n
\r\n {props.clickMarkerData && props.clickMarkerData.meteoData && props.clickMarkerData.meteoData.eva != null ? props.clickMarkerData.meteoData.eva.toFixed(2) : '-'}\r\n
\r\n
\r\n {t('map.stationBox.millimetre')}{/*มม.*/}\r\n
\r\n {props.clickMarkerData && props.clickMarkerData.meteoData && props.clickMarkerData.meteoData.evaDate != null ? moment(props.clickMarkerData.meteoData.evaDate).format('DD/MM/YYYY') : ''}\r\n
\r\n\r\n\r\n
\r\n
{t('map.stationBox.waterTemp')}{/*อุณภูมิน้ำ*/}
\r\n \r\n
\r\n {props.clickMarkerData && props.clickMarkerData.meteoData && props.clickMarkerData.meteoData.waterTemp != null ? props.clickMarkerData.meteoData.waterTemp.toFixed(2) : '-'}\r\n
\r\n
\r\n {t('map.stationBox.celsius')} {/*°C*/}\r\n
\r\n {props.clickMarkerData && props.clickMarkerData.meteoData && props.clickMarkerData.meteoData.waterTempDate != null ? moment(props.clickMarkerData.meteoData.waterTempDate).format('DD/MM/YYYY') : ''}\r\n
\r\n\r\n
\r\n
{t('map.stationBox.temp')}{/*อุณหภูมิอากาศ*/}
\r\n
\r\n
\r\n
{t('map.stationBox.normalTemp')}{/*ปกติ*/}
\r\n
{props.clickMarkerData && props.clickMarkerData.meteoData && props.clickMarkerData.meteoData.weatherTemp != null ? props.clickMarkerData.meteoData.weatherTemp.toFixed(2) : '-'}
\r\n
{t('map.stationBox.celsius')}{/*°C*/}
\r\n {props.clickMarkerData && props.clickMarkerData.meteoData && props.clickMarkerData.meteoData.weatherTempDate != null ? moment(props.clickMarkerData.meteoData.weatherTempDate).format('DD/MM/YYYY') : ''}\r\n
\r\n
\r\n
{t('map.stationBox.maxTemp')}{/*สูงสุด*/}
\r\n
{props.clickMarkerData && props.clickMarkerData.meteoData && props.clickMarkerData.meteoData.maxWeatherTemp != null ? props.clickMarkerData.meteoData.maxWeatherTemp.toFixed(2) : '-'}
\r\n
{t('map.stationBox.celsius')}{/*°C*/}
\r\n {props.clickMarkerData && props.clickMarkerData.meteoData && props.clickMarkerData.meteoData.maxWeatherTempDate != null ? moment(props.clickMarkerData.meteoData.maxWeatherTempDate).format('DD/MM/YYYY') : ''}\r\n
\r\n
\r\n
{t('map.stationBox.minTemp')}{/*ต่ำสุด*/}
\r\n
{props.clickMarkerData && props.clickMarkerData.meteoData && props.clickMarkerData.meteoData.minWeatherTemp != null ? props.clickMarkerData.meteoData.minWeatherTemp.toFixed(2) : '-'}
\r\n
{t('map.stationBox.celsius')}{/*°C*/}
\r\n {props.clickMarkerData && props.clickMarkerData.meteoData && props.clickMarkerData.meteoData.minWeatherTempDate != null ? moment(props.clickMarkerData.meteoData.minWeatherTempDate).format('DD/MM/YYYY') : ''}\r\n
\r\n
\r\n
\r\n\r\n
\r\n
{t('map.stationBox.humidity')}{/*ความชื้นสัมพัทธ์*/}
\r\n \r\n
\r\n {props.clickMarkerData && props.clickMarkerData.meteoData && props.clickMarkerData.meteoData.humidity != null ? props.clickMarkerData.meteoData.humidity.toFixed(2) : '-'}\r\n
\r\n
\r\n {t('map.stationBox.percent')}{/*%*/}\r\n
\r\n {props.clickMarkerData && props.clickMarkerData.meteoData && props.clickMarkerData.meteoData.humidityDate != null ? moment(props.clickMarkerData.meteoData.humidityDate).format('DD/MM/YYYY') : ''}\r\n
\r\n\r\n
\r\n
{t('map.stationBox.wind')}{/*ความเร็วลม*/}
\r\n \r\n
\r\n {props.clickMarkerData && props.clickMarkerData.meteoData && props.clickMarkerData.meteoData.wind != null ? props.clickMarkerData.meteoData.wind.toFixed(2) : '-'}\r\n
\r\n
\r\n {t('map.stationBox.km/hr')}{/*กม./ชม.*/}\r\n
\r\n {props.clickMarkerData && props.clickMarkerData.meteoData && props.clickMarkerData.meteoData.windDate != null ? moment(props.clickMarkerData.meteoData.windDate).format('DD/MM/YYYY') : ''}\r\n
\r\n\r\n
\r\n
{t('map.stationBox.sun')}{/*ความนานแสงแดด*/}
\r\n \r\n
\r\n {props.clickMarkerData && props.clickMarkerData.meteoData && props.clickMarkerData.meteoData.sun != null ? props.clickMarkerData.meteoData.sun.toFixed(2) : '-'}\r\n
\r\n
\r\n {t('map.stationBox.hr/day')}{/*ชม./วัน*/}\r\n
\r\n {props.clickMarkerData && props.clickMarkerData.meteoData && props.clickMarkerData.meteoData.sunDate != null ? moment(props.clickMarkerData.meteoData.sunDate).format('DD/MM/YYYY') : ''}\r\n
\r\n\r\n
\r\n
{t('map.stationBox.solar')}{/*ความเข้มแสงแดด*/}
\r\n \r\n
\r\n {props.clickMarkerData && props.clickMarkerData.meteoData && props.clickMarkerData.meteoData.solar != null ? props.clickMarkerData.meteoData.solar.toFixed(2) : '-'}\r\n
\r\n
\r\n {t('map.stationBox.cal/hr')}{/*แคลอรี่/ซม.*/}2\r\n
\r\n {props.clickMarkerData && props.clickMarkerData.meteoData && props.clickMarkerData.meteoData.solarDate != null ? moment(props.clickMarkerData.meteoData.solarDate).format('DD/MM/YYYY') : ''}\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n : ''}\r\n\r\n\r\n { /*MOBILE*/}\r\n\r\n {isTabletOrMobileDevice ?\r\n \r\n
\r\n \r\n
\r\n\r\n
\r\n \r\n \r\n
{t('map.stationBox.code')} {props.clickMarkerData && props.clickMarkerData.stationLabel ? props.clickMarkerData.stationLabel : ''} : {props.clickMarkerData && props.clickMarkerData.stationTh ? props.clickMarkerData.stationTh : ''}
\r\n
{props.clickMarkerData && props.clickMarkerData.stationEn ? props.clickMarkerData.stationEn : ''}
\r\n
{props.clickMarkerData && props.clickMarkerData.basin.basinTh ? props.clickMarkerData.basin.basinTh : ''} {props.clickMarkerData && props.clickMarkerData.basin.basinEn ? '(' + props.clickMarkerData.basin.basinEn + ')' : ''}
\r\n
{t('map.stationBox.stationinfo')}
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
{t('map.stationBox.gageHeight')} {/*ระดับน้ำ*/}
\r\n \r\n
\r\n {props.clickMarkerData && props.clickMarkerData.hydroData && props.clickMarkerData.hydroData.dailyGageHeight != null ? props.clickMarkerData.hydroData.dailyGageHeight.toFixed(2) : '-'}\r\n
\r\n
\r\n {t('map.stationBox.metre')} {/*ม.*/}\r\n
\r\n {props.clickMarkerData && props.clickMarkerData.hydroData && props.clickMarkerData.hydroData.dailyGageHeightDate != null ? moment(props.clickMarkerData.hydroData.dailyGageHeightDate).format('DD/MM/YYYY') : ''}\r\n
\r\n\r\n
\r\n
{t('map.stationBox.discharge')} {/*ปริมาณน้ำ*/}
\r\n \r\n
\r\n {props.clickMarkerData && props.clickMarkerData.hydroData && props.clickMarkerData.hydroData.dailyDischarge != null ? props.clickMarkerData.hydroData.dailyDischarge.toFixed(2) : '-'}\r\n
\r\n
\r\n {t('map.stationBox.dischargeUnit')} {/*ลบ.ม./วินาที*/}\r\n
\r\n {props.clickMarkerData && props.clickMarkerData.hydroData && props.clickMarkerData.hydroData.dailyDischargeDate != null ? moment(props.clickMarkerData.hydroData.dailyDischargeDate).format('DD/MM/YYYY') : ''}\r\n
\r\n\r\n\r\n
\r\n
{t('map.stationBox.sediment')} {/*ปริมาณตะกอน*/}
\r\n \r\n
\r\n {props.clickMarkerData && props.clickMarkerData.hydroData && props.clickMarkerData.hydroData.dailySediment != null ? props.clickMarkerData.hydroData.dailySediment.toFixed(2) : '-'}\r\n
\r\n
\r\n {t('map.stationBox.sedimentUnit')} {/*ตัน*/}\r\n
\r\n {props.clickMarkerData && props.clickMarkerData.hydroData && props.clickMarkerData.hydroData.dailySedimentDate != null ? moment(props.clickMarkerData.hydroData.dailySedimentDate).format('DD/MM/YYYY') : ''}\r\n
\r\n\r\n
\r\n
{t('map.stationBox.waterQuality')} {/*คุณภาพน้ำ*/}
\r\n \r\n
\r\n {props.clickMarkerData && props.clickMarkerData.hydroData && props.clickMarkerData.hydroData.waterQualityPh != null ? props.clickMarkerData.hydroData.waterQualityPh.toFixed(2) : '-'}\r\n
\r\n
\r\n {t('map.stationBox.pH')} {/*pH*/}\r\n
\r\n {props.clickMarkerData && props.clickMarkerData.hydroData && props.clickMarkerData.hydroData.dailyWaterQualityDate != null ? moment(props.clickMarkerData.hydroData.dailyWaterQualityDate).format('DD/MM/YYYY') : ''}\r\n
\r\n\r\n
\r\n
\r\n
{t('map.stationBox.rain')} {/*น้ำฝน*/}
\r\n \r\n
\r\n {props.clickMarkerData && props.clickMarkerData.meteoData && props.clickMarkerData.meteoData.rain != null ? props.clickMarkerData.meteoData.rain.toFixed(2) : '-'}\r\n
\r\n
\r\n {t('map.stationBox.millimetre')} {/*ม.ม.*/}\r\n
\r\n {props.clickMarkerData && props.clickMarkerData.meteoData && props.clickMarkerData.meteoData.rainDate != null ? moment(props.clickMarkerData.meteoData.rainDate).format('DD/MM/YYYY') : ''}\r\n
\r\n\r\n
\r\n
{t('map.stationBox.evaporation')} {/*การระเหย*/}
\r\n \r\n
\r\n {props.clickMarkerData && props.clickMarkerData.meteoData && props.clickMarkerData.meteoData.eva != null ? props.clickMarkerData.meteoData.eva.toFixed(2) : '-'}\r\n
\r\n
\r\n {t('map.stationBox.millimetre')} {/*มม.*/}\r\n
\r\n {props.clickMarkerData && props.clickMarkerData.meteoData && props.clickMarkerData.meteoData.evaDate != null ? moment(props.clickMarkerData.meteoData.evaDate).format('DD/MM/YYYY') : ''}\r\n
\r\n\r\n\r\n
\r\n
{t('map.stationBox.waterTemp')} {/*อุณภูมิน้ำ*/}
\r\n \r\n
\r\n {props.clickMarkerData && props.clickMarkerData.meteoData && props.clickMarkerData.meteoData.waterTemp != null ? props.clickMarkerData.meteoData.waterTemp.toFixed(2) : '-'}\r\n
\r\n
\r\n {t('map.stationBox.celsius')}{/*°C*/}\r\n
\r\n {props.clickMarkerData && props.clickMarkerData.meteoData && props.clickMarkerData.meteoData.waterTempDate != null ? moment(props.clickMarkerData.meteoData.waterTempDate).format('DD/MM/YYYY') : ''}\r\n
\r\n\r\n
\r\n
{t('map.stationBox.temp')}{/*อุณหภูมิอากาศ*/}
\r\n
\r\n
\r\n
{t('map.stationBox.normalTemp')}{/*ปกติ*/}
\r\n
{props.clickMarkerData && props.clickMarkerData.meteoData && props.clickMarkerData.meteoData.weatherTemp != null ? props.clickMarkerData.meteoData.weatherTemp.toFixed(2) : '-'}
\r\n
{t('map.stationBox.celsius')}{/*°C*/}
\r\n {props.clickMarkerData && props.clickMarkerData.meteoData && props.clickMarkerData.meteoData.weatherTempDate != null ? moment(props.clickMarkerData.meteoData.weatherTempDate).format('DD/MM/YYYY') : ''}\r\n
\r\n
\r\n
{t('map.stationBox.maxTemp')}{/*สูงสุด*/}
\r\n
{props.clickMarkerData && props.clickMarkerData.meteoData && props.clickMarkerData.meteoData.maxWeatherTemp != null ? props.clickMarkerData.meteoData.maxWeatherTemp.toFixed(2) : '-'}
\r\n
{t('map.stationBox.celsius')}{/*°C*/}
\r\n {props.clickMarkerData && props.clickMarkerData.meteoData && props.clickMarkerData.meteoData.maxWeatherTempDate != null ? moment(props.clickMarkerData.meteoData.maxWeatherTempDate).format('DD/MM/YYYY') : ''}\r\n
\r\n
\r\n
{t('map.stationBox.minTemp')}{/*ต่ำสุด*/}
\r\n
{props.clickMarkerData && props.clickMarkerData.meteoData && props.clickMarkerData.meteoData.minWeatherTemp != null ? props.clickMarkerData.meteoData.minWeatherTemp.toFixed(2) : '-'}
\r\n
{t('map.stationBox.celsius')}{/*°C*/}
\r\n {props.clickMarkerData && props.clickMarkerData.meteoData && props.clickMarkerData.meteoData.minWeatherTempDate != null ? moment(props.clickMarkerData.meteoData.minWeatherTempDate).format('DD/MM/YYYY') : ''}\r\n
\r\n
\r\n
\r\n\r\n
\r\n
{t('map.stationBox.humidity')} {/*ความชื้นสัมพัทธ์*/}
\r\n \r\n
\r\n {props.clickMarkerData && props.clickMarkerData.meteoData && props.clickMarkerData.meteoData.humidity != null ? props.clickMarkerData.meteoData.humidity.toFixed(2) : '-'}\r\n
\r\n
\r\n {t('map.stationBox.percent')} {/*%*/}\r\n
\r\n {props.clickMarkerData && props.clickMarkerData.meteoData && props.clickMarkerData.meteoData.humidityDate != null ? moment(props.clickMarkerData.meteoData.humidityDate).format('DD/MM/YYYY') : ''}\r\n
\r\n\r\n
\r\n
{t('map.stationBox.wind')} {/*ความเร็วลม*/}
\r\n \r\n
\r\n {props.clickMarkerData && props.clickMarkerData.meteoData && props.clickMarkerData.meteoData.wind != null ? props.clickMarkerData.meteoData.wind.toFixed(2) : '-'}\r\n
\r\n
\r\n {t('map.stationBox.km/hr')} {/*กม./ชม.*/}\r\n
\r\n {props.clickMarkerData && props.clickMarkerData.meteoData && props.clickMarkerData.meteoData.windDate != null ? moment(props.clickMarkerData.meteoData.windDate).format('DD/MM/YYYY') : ''}\r\n
\r\n\r\n
\r\n
{t('map.stationBox.sun')} {/*ความนานแสงแดด*/}
\r\n \r\n
\r\n {props.clickMarkerData && props.clickMarkerData.meteoData && props.clickMarkerData.meteoData.sun != null ? props.clickMarkerData.meteoData.sun.toFixed(2) : '-'}\r\n
\r\n
\r\n {t('map.stationBox.hr/day')} {/*ชม./วัน*/}\r\n
\r\n {props.clickMarkerData && props.clickMarkerData.meteoData && props.clickMarkerData.meteoData.sunDate != null ? moment(props.clickMarkerData.meteoData.sunDate).format('DD/MM/YYYY') : ''}\r\n
\r\n\r\n
\r\n
{t('map.stationBox.solar')} {/*ความเข้มแสงแดดแสง*/}
\r\n \r\n
\r\n {props.clickMarkerData && props.clickMarkerData.meteoData && props.clickMarkerData.meteoData.solar != null ? props.clickMarkerData.meteoData.solar.toFixed(2) : '-'}\r\n
\r\n
\r\n {t('map.stationBox.cal/hr')} {/*แคลอรี่/ซม.*/}2\r\n
\r\n {props.clickMarkerData && props.clickMarkerData.meteoData && props.clickMarkerData.meteoData.solarDate != null ? moment(props.clickMarkerData.meteoData.solarDate).format('DD/MM/YYYY') : ''}\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\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 React.memo(StationInfoBox)\r\n\r\n\r\n","import { map } from \"jquery\";\r\nimport React, { useEffect, useState } from \"react\";\r\n\r\nconst pathImg = \"/img/number/\";\r\nconst ex = \".gif\";\r\nconst number0 = pathImg + \"0.gif\";\r\nconst number1 = pathImg + \"1.gif\";\r\nconst number2 = pathImg + \"2.gif\";\r\nconst number3 = pathImg + \"3.gif\";\r\nconst number4 = pathImg + \"4.gif\";\r\nconst number5 = pathImg + \"5.gif\";\r\nconst number6 = pathImg + \"6.gif\";\r\nconst number7 = pathImg + \"7.gif\";\r\nconst number8 = pathImg + \"8.gif\";\r\nconst number9 = pathImg + \"9.gif\";\r\n\r\nexport default function CounterWeb({ number,style }) {\r\n useEffect(() => {\r\n \r\n }, []);\r\n\r\n const gennaratNumber = () => {\r\n const zeroPad = (num, places) => String(num).padStart(places, '0')\r\n \r\n let numberFormat = zeroPad(number, 6);\r\n\r\n const sNumber = [...numberFormat];\r\n\r\n let imgEm = [];\r\n for (const item of sNumber) {\r\n let img = \"0\";\r\n //setImgNumber({...imgNumber,img});\r\n imgEm.push(img);\r\n }\r\n\r\n return imgEm;\r\n };\r\n\r\n return {gennaratNumber()}\r\n ;\r\n}\r\n","import React, { useState, useEffect } from \"react\";\r\nimport \"../../css/FooterPopup.css\";\r\nimport { IconContext } from \"react-icons\";\r\nimport { ImCross } from \"react-icons/im\";\r\nimport CounterWeb from \"../../Helper/CounterWeb\";\r\n\r\nconst popupPolicy = sessionStorage.getItem(\"popupPolicy\") ;\r\nconst currentVersion = process.env.REACT_APP_DWR_VERSION;\r\nexport default function Footer_Home({number}) {\r\n const [popupModel, setPopupModel] = useState(popupPolicy?true:false);\r\n\r\n const onClose = () => {\r\n sessionStorage.setItem(\"popupPolicy\", \"1\");\r\n setPopupModel(true);\r\n };\r\n\r\n return (\r\n \r\n {popupModel ? null : (\r\n
\r\n
\r\n \r\n Visitor Number\r\n \r\n เงื่อนไขการให้บริการเว็บไซต์ {\" \"}\r\n \r\n นโยบายเว็บไซต์และการปฏิเสธความรับผิดชอบ\r\n {\" \"}\r\n |{\" \"}\r\n \r\n นโยบายการคุ้มครองข้อมูลส่วนบุคคล\r\n {\" \"}\r\n |{\" \"}\r\n \r\n นโยบายความปลอดภัย {\" \"}\r\n \r\n
\r\n Copy Right © 2021 ส่วนวิจัย และพัฒนาอุทกวิทยา กองวิจัย พัฒนาและอุทกวิทยา กรมทรัพยากรน้ำ กระทรวงทรัพยากรธรรมชาติ และสิ่งแวดล้อม\r\n {currentVersion}\r\n
\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 React from \"react\";\r\nimport \"../css/MapRatio.css\";\r\nimport { Select } from \"antd\";\r\n\r\nconst { Option } = Select;\r\n\r\nexport default function MapRatio(props) {\r\n const { onChange } = props;\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","import React, { useState, useEffect, useRef } from \"react\";\r\nimport Gmap from \"../googleMap/Gmap\";\r\nimport OptionBox from './OptionBox'\r\nimport NavBar from '../navbar/NavBar'\r\nimport SelectSearch from '../componentreuse/SelectSearch'\r\nimport { useMediaQuery } from 'react-responsive'\r\nimport AuthenServices from '../services/authenServices'\r\nimport StationInfoBox from '../home/StationInfoBox'\r\nimport Footer_Home from '../footer/home/Footer_Home';\r\nimport swal from 'sweetalert'\r\nimport { useTranslation } from \"react-i18next\";\r\nimport MapRatio from './MapRatio'\r\n\r\nvar auth = new AuthenServices()\r\nvar url = process.env.REACT_APP_DWR_API;\r\n\r\nexport default function Home() {\r\n const isTabletOrMobileDevice = useMediaQuery({\r\n query: '(max-device-width: 768px)'\r\n })\r\n\r\n const [optionCheckbox, setOptionCheckbox] = useState({\r\n cbMainBasin25: true,\r\n cbSubBasin25: false,\r\n cbMainBasin22: false,\r\n cbSubBasin22: false,\r\n\r\n cbMainRiver: true,\r\n cbSubRiver: false,\r\n cbGageHeight: true,\r\n cbGageHeightVolume: false,\r\n cbGageHeightVolumeSedi: false,\r\n cbWaterQuality: false,\r\n cbRain: false,\r\n cbMeteo: false,\r\n cbAutoGageHeight: false,\r\n cbAutoMeteo: false,\r\n })\r\n\r\n const [markers, setMarkers] = useState(null)\r\n const [clickData, setClickData] = useState({ marker: null, showInfoBox: false, loading:true })\r\n const [search, setSearch] = useState({ list: null, loading: true, isSearching: false, selected: { value: null, label: \"ค้นหาสถานี\", data: null } })\r\n const _isMounted = useRef(true);\r\n const [number, setNumber] = useState(0);\r\n const { t } = useTranslation();\r\n\r\n //*********************************************************************************************************************\r\n\r\n function handleDropdownChange(value) {\r\n setOptionCheckbox(prev => ({ ...prev, cbGageHeight: false, cbGageHeightVolume: false, cbGageHeightVolumeSedi: false, cbWaterQuality: false, cbRain: false, cbMeteo: false, cbAutoGageHeight: false, cbAutoMeteo:false }))\r\n setSearch(prev => ({ ...prev, selected: value, isSearching: true }))\r\n toggleInfoBox(value.value)\r\n }\r\n\r\n //*********************************************************************************************************************\r\n\r\n function getStationMarkers() {\r\n var gh = optionCheckbox.cbGageHeight ? '1' : '0'\r\n var ghdc = optionCheckbox.cbGageHeightVolume ? '1' : '0'\r\n var ghdcsd = optionCheckbox.cbGageHeightVolumeSedi ? '1' : '0'\r\n var wq = optionCheckbox.cbWaterQuality ? '1' : '0'\r\n var meteo = optionCheckbox.cbMeteo ? '1' : '0'\r\n var rain = optionCheckbox.cbRain ? '1' : '0'\r\n var autogh = optionCheckbox.cbAutoGageHeight ? '1' : '0'\r\n var autometeo = optionCheckbox.cbAutoMeteo ? '1' : '0'\r\n \r\n if (gh === '0' && ghdc === '0' && ghdcsd === '0' && wq === '0' && meteo === '0' && rain === '0' && autogh === '0' && autometeo === '0') {\r\n return \r\n }\r\n\r\n auth.fetchWithToken(url + '/api/v1/Stations/HydroMeteoSurvey?gh=' + gh + '&ghdc=' + ghdc + '&ghdcsd=' + ghdcsd + '&wq=' + wq + '&meteo=' + meteo + '&rain=' + rain + '&autogh=' + autogh + '&autometeo=' + autometeo, \"method:'GET'\")\r\n .then(res => {\r\n if (_isMounted.current) {\r\n setMarkers(res.data)\r\n }\r\n })\r\n }\r\n\r\n //*********************************************************************************************************************\r\n\r\n const toggleInfoBox = (stationid) => {\r\n\r\n setClickData({ marker: null, showInfoBox: true, loading: true })\r\n auth.fetchWithToken(url + '/api/v1/Stations/' + stationid + '/HydroMeteoData' , \"method:'GET'\")\r\n .then(res => {\r\n if (res.data) {\r\n setClickData({ marker: res.data, showInfoBox: true, loading:false })\r\n }\r\n\r\n })\r\n .catch(err => {\r\n console.log(err)\r\n swal({ text: 'ไม่สามารถดึงข้อมูลได้ กรุณาลองใหม่ภายหลัง', icon: 'warning' })\r\n setClickData({ marker: null, showInfoBox: false, loading: false })\r\n })\r\n }\r\n\r\n //*********************************************************************************************************************\r\n\r\n const closeInfoBox = () => {\r\n if (clickData.showInfoBox) {\r\n setClickData({ marker: null, showInfoBox: false, loading:false })\r\n }\r\n } \r\n\r\n const tabChange = (tab) => {\r\n if (tab === '1') {\r\n setOptionCheckbox(prev => ({ ...prev, cbGageHeight: true, cbGageHeightVolume: false, cbGageHeightVolumeSedi: false, cbWaterQuality: false, cbRain: false, cbMeteo: false, cbAutoGageHeight: false, cbAutoMeteo: false }))\r\n }\r\n else {\r\n setOptionCheckbox(prev => ({ ...prev, cbAutoGageHeight: true, cbGageHeight: false, cbGageHeightVolumeSedi: false, cbWaterQuality: false, cbRain: false, cbMeteo: false, cbGageHeightVolume: false, cbAutoMeteo: false }))\r\n }\r\n setMarkers(null)\r\n setSearch(prev => ({ ...prev, isSearching: false, selected: { value: null, label: \"ค้นหาสถานี\", data: null } }))\r\n closeInfoBox()\r\n }\r\n\r\n //*********************************************************************************************************************\r\n\r\n const getStationList = () => {\r\n //auth.fetchWithToken(url + '/api/v1/Stations/Search?search=' + search.selected.label + '&PageNumber=1&PageSize=10' + search.pagesize , \"method:'GET'\")\r\n auth.fetchWithToken(url + '/api/v1/Stations', \"method:'GET'\")\r\n .then(res => {\r\n if (_isMounted.current) {\r\n var stationDropdown = []\r\n\r\n res.data ? res.data.map((item, key) => {\r\n stationDropdown.push({ key: key, value: item.stationId, label: item.stationLabel + ' : ' + item.stationTh, stationId: item.stationId, data: item })\r\n }) : stationDropdown = []\r\n\r\n setSearch({ ...search, list: stationDropdown, loading: false })\r\n }\r\n })\r\n .catch(e => {\r\n console.log(e)\r\n if (_isMounted.current) {\r\n setSearch({ ...search, list: null, loading: false })\r\n }\r\n \r\n })\r\n }\r\n\r\n //*********************************************************************************************************************\r\n\r\n function checkboxOnChange(e) {\r\n var name = e.target.name\r\n e.persist(); \r\n\r\n if (name === 'cbGageHeight') {\r\n setMarkers(null)\r\n setOptionCheckbox(prev => ({...prev, [name]: e.target.checked, cbGageHeightVolume: false, cbGageHeightVolumeSedi: false, cbWaterQuality: false, cbRain: false, cbMeteo: false, cbAutoGageHeight: false, cbAutoMeteo: false }))\r\n setSearch(prev => ({ ...prev, isSearching: false, selected: { value: null, label: \"ค้นหาสถานี\", data: null } }))\r\n closeInfoBox()\r\n }\r\n else if (name === 'cbGageHeightVolume') {\r\n setMarkers(null)\r\n setOptionCheckbox(prev => ({ ...prev, [name]: e.target.checked, cbGageHeight: false, cbGageHeightVolumeSedi: false, cbWaterQuality: false, cbRain: false, cbMeteo: false, cbAutoGageHeight: false, cbAutoMeteo: false }))\r\n setSearch(prev => ({ ...prev, isSearching: false, selected: { value: null, label: \"ค้นหาสถานี\", data: null } }))\r\n closeInfoBox()\r\n }\r\n else if (name === 'cbGageHeightVolumeSedi') {\r\n setMarkers(null)\r\n setOptionCheckbox(prev => ({...prev, [name]: e.target.checked, cbGageHeight: false, cbGageHeightVolume: false, cbWaterQuality: false, cbRain: false, cbMeteo: false, cbAutoGageHeight: false, cbAutoMeteo: false }))\r\n setSearch(prev => ({ ...prev, isSearching: false, selected: { value: null, label: \"ค้นหาสถานี\", data: null } }))\r\n closeInfoBox()\r\n }\r\n else if (name === 'cbWaterQuality') {\r\n setMarkers(null)\r\n setOptionCheckbox(prev => ({ ...prev, [name]: e.target.checked, cbGageHeight: false, cbGageHeightVolumeSedi: false, cbGageHeightVolume: false, cbRain: false, cbMeteo: false, cbAutoGageHeight: false, cbAutoMeteo: false }))\r\n setSearch(prev => ({ ...prev, isSearching: false, selected: { value: null, label: \"ค้นหาสถานี\", data: null } }))\r\n closeInfoBox()\r\n }\r\n else if (name === 'cbMeteo') {\r\n setMarkers(null)\r\n setOptionCheckbox(prev => ({ ...prev, [name]: e.target.checked, cbGageHeight: false, cbGageHeightVolumeSedi: false, cbWaterQuality: false, cbRain: false, cbGageHeightVolume: false, cbAutoGageHeight: false, cbAutoMeteo: false }))\r\n setSearch(prev => ({ ...prev, isSearching: false, selected: { value: null, label: \"ค้นหาสถานี\", data: null } }))\r\n closeInfoBox()\r\n }\r\n else if (name === 'cbRain') {\r\n setMarkers(null)\r\n setOptionCheckbox(prev => ({ ...prev, [name]: e.target.checked, cbGageHeight: false, cbGageHeightVolumeSedi: false, cbWaterQuality: false, cbMeteo: false, cbGageHeightVolume: false, cbAutoGageHeight: false, cbAutoMeteo: false }))\r\n setSearch(prev => ({ ...prev, isSearching: false, selected: { value: null, label: \"ค้นหาสถานี\", data: null } }))\r\n closeInfoBox()\r\n }\r\n else if (name === 'cbAutoGageHeight') {\r\n setMarkers(null)\r\n setOptionCheckbox(prev => ({ ...prev, [name]: e.target.checked, cbGageHeight: false, cbGageHeightVolumeSedi: false, cbWaterQuality: false, cbRain: false, cbMeteo: false, cbGageHeightVolume: false, cbAutoMeteo: false }))\r\n setSearch(prev => ({ ...prev, isSearching: false, selected: { value: null, label: \"ค้นหาสถานี\", data: null } }))\r\n closeInfoBox()\r\n }\r\n else if (name === 'cbAutoMeteo') {\r\n setMarkers(null)\r\n setOptionCheckbox(prev => ({...prev, [name]: e.target.checked, cbGageHeight: false, cbGageHeightVolumeSedi: false, cbWaterQuality: false, cbRain: false, cbMeteo: false, cbGageHeightVolume: false, cbAutoGageHeight: false }))\r\n setSearch(prev => ({ ...prev, isSearching: false, selected: { value: null, label: \"ค้นหาสถานี\", data: null } }))\r\n closeInfoBox()\r\n }\r\n else if(name == \"cbMainBasin25\" || name == \"cbSubBasin25\"){\r\n setOptionCheckbox(prev => ({...prev, [name]: e.target.checked, cbMainBasin22: false, cbSubBasin22: false }))\r\n }else if(name == \"cbMainBasin22\" || name == \"cbSubBasin22\"){\r\n setOptionCheckbox(prev => ({...prev, [name]: e.target.checked, cbMainBasin25: false, cbSubBasin25: false }))\r\n }\r\n else {\r\n setOptionCheckbox(prev => ({ ...prev, [name]: e.target.checked }))\r\n }\r\n\r\n //var name = e.target.name\r\n //setOptionCheckbox({ ...optionCheckbox, [name]: e.target.checked })\r\n }\r\n\r\n //*********************************************************************************************************************\r\n\r\n useEffect(() => {\r\n getStationMarkers()\r\n onChangeMapRation(11.53054667497);\r\n }, [optionCheckbox])\r\n\r\n useEffect(() => {\r\n getStationList()\r\n countWeb();\r\n return () => {\r\n _isMounted.current = false;\r\n }\r\n }, [])\r\n\r\n\r\n //*********************************************************************************************************************\r\n\r\n const countWeb = () => {\r\n auth.fetchWithToken(url + '/api/v1/counterWeb?system=is',{method : 'post' })\r\n .then(res => {\r\n if (res.data ) {\r\n setNumber(res.data);\r\n }\r\n })\r\n .catch(e => {\r\n })\r\n }\r\n\r\n const [mapRation, setMapRation] = useState(11.53054667497);\r\n const onChangeMapRation = (e) => {\r\n setMapRation(e);\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 \r\n );\r\n}\r\n","import React from 'react'\r\n\r\nexport default function DwrLayout(props) {\r\n\r\n return (\r\n \r\n \r\n
\r\n {props.backBtn === true ? props.handlePage(props.name)}> {'<< '}กลับ : ''}\r\n {props.title}\r\n
\r\n
\r\n {props.children}\r\n
\r\n \r\n
\r\n\r\n )\r\n}","import React from 'react'\r\nimport PaginationJS from \"react-js-pagination\"\r\nimport { Pagination } from 'reactstrap';\r\nimport '../css/Pagination.css'\r\n\r\n//********************************************************************************************************************************\r\n\r\nexport default function TablePagination(props) {\r\n\r\n return (\r\n props.totalPage >= 2 ?\r\n \r\n props.handlePagination(e)}\r\n itemClass='page-item'\r\n linkClass='page-link'\r\n prevPageText='<'\r\n nextPageText='>'\r\n firstPageText='<<'\r\n lastPageText='>>'\r\n hideDisabled\r\n />\r\n \r\n\r\n : ''\r\n )\r\n\r\n}","import React, { useEffect, useState } from 'react'\r\nimport TablePagination from '../componentreuse/TablePagination'\r\nimport { Row, Col } from 'reactstrap'\r\nimport AuthenServices from '../services/authenServices'\r\nimport { Spin } from \"antd\";\r\nimport moment from 'moment'\r\n\r\nvar auth = new AuthenServices()\r\nvar url = process.env.REACT_APP_DWR_API;\r\nvar noimg = process.env.PUBLIC_URL + '/img/No_Image.png'\r\n\r\nexport default function NewsTable(props) {\r\n\r\n const [stationList, setStationList] = useState([])\r\n const [page, setPage] = useState({ totalPages: 0, totalItems: 0, pageNumber: 1, pageSize: 12 })\r\n const [loading, setLoading] = useState(false)\r\n\r\n //***************************************************************************************************************************\r\n\r\n useEffect(() => {\r\n getStationList()\r\n }, [page.pageNumber])\r\n\r\n //***************************************************************************************************************************\r\n\r\n function getStationList() {\r\n setLoading(true)\r\n auth.fetchWithToken(url + '/api/v1/NewsRelease/NewsLists_IS/' + props.tableNewsType + '?PageNumber=' + page.pageNumber + '&PageSize=' + page.pageSize, \"method:'GET'\")\r\n .then(res => {\r\n if (res.data) {\r\n setStationList(res.data.items)\r\n setPage(res.data.paging)\r\n setLoading(false)\r\n } else {\r\n setPage({ totalPages: 0, totalItems: 0, pageNumber: 1, pageSize: 12 })\r\n setLoading(false)\r\n setStationList([])\r\n }\r\n\r\n })\r\n .catch(e => {\r\n console.log(e)\r\n setPage({ totalPages: 0, totalItems: 0, pageNumber: 1, pageSize: 12 })\r\n setLoading(false)\r\n setStationList([])\r\n })\r\n }\r\n\r\n //***************************************************************************************************************************\r\n\r\n function handlePagination(pagenum) {\r\n const totalpage = page.totalPages\r\n if (pagenum < 1) {\r\n pagenum = 1\r\n }\r\n else if (pagenum > totalpage) {\r\n pagenum = totalpage\r\n }\r\n\r\n setPage(prev => ({ ...prev, pageNumber: pagenum }))\r\n }\r\n\r\n //***************************************************************************************************************************\r\n\r\n return (\r\n \r\n \r\n \r\n {stationList.length > 0 ? stationList.map((item, key) => {\r\n var img = item.imageAttachfile != null && item.imageAttachfile.length > 0 ? item.imageAttachfile[0] : null\r\n\r\n return (\r\n \r\n \r\n
props.handlePage('stationedit', item.newsID, item.newsTitle)}>\r\n props.handlePage('stationedit', item.newsID, item.newsTitle)}\r\n onError={(e) => {\r\n e.target.src = noimg\r\n e.target.style.objectFit = 'contain'\r\n }}\r\n />\r\n
\r\n
{item.newsTitle}
\r\n {item.intTopicDetail}
\r\n {moment(item.newsStartDate).format('DD/MM/YYYY')}\r\n
\r\n
\r\n \r\n
\r\n )\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 React from 'react'\r\n//import subDays from 'date-fns/subDays'\r\nimport { Label, FormGroup } from 'reactstrap'\r\nimport DatePicker, { registerLocale } from 'react-datepicker'\r\nimport \"react-datepicker/dist/react-datepicker.css\"\r\nimport '../css/DwrDatePicker.css'\r\nimport th from \"date-fns/locale/th\";\r\nregisterLocale('th', th)\r\n\r\nvar startY = process.env.REACT_APP_DWR_START_YEAR\r\n\r\nexport default function DwrDatePicker(props) {\r\n\r\n function handleDateChangeRaw(e) {\r\n e.preventDefault()\r\n }\r\n\r\n //***************************************************************************************************************************\r\n \r\n const now = new Date()\r\n const months = [\r\n \"มกราคม\",\r\n \"กุมภาพันธ์\",\r\n \"มีนาคม\",\r\n \"เมษายน\",\r\n \"พฤษภาคม\",\r\n \"มิถุนายน\",\r\n \"กรกฎาคม\",\r\n \"สิงหาคม\",\r\n \"กันยายน\",\r\n \"ตุลาคม\",\r\n \"พฤศจิกายน\",\r\n \"ธันวาคม\"\r\n ];\r\n let years = []\r\n let dp = ''\r\n\r\n for (let i = now.getFullYear() + 30; i >= startY; i--) {\r\n years.push(i)\r\n }\r\n\r\n now.setHours(0, 0, 0, 0)\r\n\r\n \r\n\r\n if (props.format === 'year') {\r\n const min = new Date(startY, 0, 0);\r\n var yearformat = \"yyyy (\" + (props.startDate.getFullYear() + 543) + \")\"\r\n\r\n dp = props.handleDateChange(date, props.setFunction, props.idx, props.typeDate)}\r\n dateFormat={yearformat}\r\n onChangeRaw={handleDateChangeRaw}\r\n showYearPicker\r\n popperPlacement={props.popperPlacement}\r\n >\r\n \r\n }\r\n else if (props.format === 'monthyearth') {\r\n var yearformat = \"MMMM yyyy (\" + (props.startDate.getFullYear() + 543) + \")\"\r\n\r\n dp = props.handleDateChange(date, props.setFunction)}\r\n dateFormat={yearformat}\r\n onChangeRaw={handleDateChangeRaw}\r\n showMonthYearPicker={props.format === 'monthyearth' ? true : false}\r\n popperPlacement={props.popperPlacement}\r\n renderCustomHeader={({\r\n date,\r\n changeYear,\r\n decreaseYear,\r\n increaseYear,\r\n prevYearButtonDisabled,\r\n nextYearButtonDisabled\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 } else if (props.format === 'dayth')\r\n {\r\n var yearformat = \"dd MMMM yyyy (\" + (props.startDate.getFullYear() + 543) + \")\"\r\n\r\n dp = props.handleDateChange(date, props.setFunction)}\r\n dateFormat={yearformat}\r\n onChangeRaw={handleDateChangeRaw}\r\n showMonthYearPicker={props.showMonthYearPicker ? true : false}\r\n disabledKeyboardNavigation\r\n placeholderText=\"วว/ดด/ปป\"\r\n disabled={props.disabled ? true : false}\r\n popperProps={props.popperProps}\r\n isClearable={props.isClearable ? true : false}\r\n renderCustomHeader={({\r\n date,\r\n changeYear,\r\n changeMonth,\r\n decreaseMonth,\r\n increaseMonth,\r\n prevMonthButtonDisabled,\r\n nextMonthButtonDisabled\r\n }) => {\r\n return (\r\n
\r\n \r\n \r\n \r\n changeMonth(months.indexOf(value))\r\n }\r\n >\r\n {months.map(option => (\r\n \r\n ))}\r\n \r\n\r\n \r\n
\r\n )\r\n }}\r\n >\r\n
\r\n }\r\n else {\r\n dp = props.handleDateChange(date, props.setFunction)}\r\n //dateFormat={props.format === 'month' ? 'MMMM yyyy' : 'dd MMMM yyyy'}\r\n dateFormat={props.dateFormat ? props.dateFormat : 'dd/MM/yyyy'}\r\n onChangeRaw={handleDateChangeRaw}\r\n //showMonthYearPicker={props.format === 'month' ? true : false}\r\n showMonthYearPicker={props.showMonthYearPicker ? true : false}\r\n disabledKeyboardNavigation\r\n placeholderText={props.placeholderText ? props.placeholderText : \"วว/ดด/ปป\"}\r\n disabled={props.disabled ? true : false}\r\n popperProps={props.popperProps}\r\n isClearable={props.isClearable ? true : false}\r\n renderCustomHeader={({\r\n date,\r\n changeYear,\r\n changeMonth,\r\n decreaseMonth,\r\n increaseMonth,\r\n prevMonthButtonDisabled,\r\n nextMonthButtonDisabled\r\n }) => {\r\n return(\r\n
\r\n \r\n \r\n \r\n changeMonth(months.indexOf(value))\r\n }\r\n >\r\n {months.map(option => (\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 {props.labelname ? : ''}\r\n {dp}\r\n
\r\n
\r\n )\r\n}","import React, { useState, useEffect } from 'react'\r\nimport DwrLayout from '../componentreuse/DwrLayout'\r\nimport SelectSearch from '../componentreuse/SelectSearch'\r\nimport DwrDatePicker from '../componentreuse/DwrDatePicker'\r\nimport { Row, Col, FormGroup, Label, Input, ButtonGroup, Button, CustomInput, InputGroup, InputGroupAddon, InputGroupText, Form, Table } from 'reactstrap'\r\nimport '../css/Sediment.css'\r\nimport { Modal, ModalBody, ModalHeader } from 'reactstrap';\r\nimport AuthenServices from '../services/authenServices'\r\nimport { Bar } from 'react-chartjs-2'\r\nimport TextArea from 'antd/lib/input/TextArea'\r\nimport swal from \"sweetalert\";\r\n\r\nvar auth = new AuthenServices()\r\nexport default function NewsImageModal(props) {\r\n var url = process.env.REACT_APP_DWR_API;\r\n var datenow = new Date(Date.now())\r\n const [dataRemark, setDataRemark] = useState({ selected: { value: props.newsImageModal.remarkid, label: props.newsImageModal.remarkComment }, list: null, loading: true })\r\n const rt1 = []\r\n const rt2 = []\r\n const [itemId, setItemid] = useState(undefined);\r\n const dischargeObserve = []\r\n const [postBy, setPostBy] = useState(\"\")\r\n const [topic, setTopic] = useState(\"\")\r\n const [message, setMessage] = useState(\"\")\r\n const [showinput, setShowInput] = useState(0)\r\n const [data, setData] = useState({ publish: \"Y\", WebBoardImageByte: \"\" });\r\n const [loading, setLoading] = useState(false)\r\n\r\n //newsImageData\r\n\r\n function toggleModal() {\r\n props.setNewsImageModal(prev => ({ ...prev, click: !prev.click }))\r\n }\r\n const convertBase64ToFile = (image) => {\r\n const byteString = atob(image.split(',')[1]);\r\n const ab = new ArrayBuffer(byteString.length);\r\n const ia = new Uint8Array(ab);\r\n for (let i = 0; i < byteString.length; i += 1) {\r\n ia[i] = byteString.charCodeAt(i);\r\n }\r\n const newBlob = new Blob([ab], {\r\n type: 'image/*',\r\n });\r\n return newBlob;\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
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n )\r\n}","import React, { useState, useEffect } from 'react'\r\nimport { Row, Col, FormGroup, Label } from 'reactstrap'\r\nimport AuthenServices from '../services/authenServices'\r\nimport swal from 'sweetalert'\r\nimport { FaPaperclip } from 'react-icons/fa'\r\nimport { LoopCircleLoading } from 'react-loadingg'\r\nimport { useMediaQuery } from 'react-responsive'\r\nimport Lightbox from 'react-image-lightbox'\r\nimport 'react-image-lightbox/style.css'\r\nimport NewsImageModal from './NewsImageModal'\r\nimport moment from 'moment'\r\n\r\nvar auth = new AuthenServices()\r\nvar url = process.env.REACT_APP_DWR_API;\r\n\r\nexport default function NewsDetail(props) {\r\n const isDesktopOrLaptop = useMediaQuery({\r\n query: '(min-device-width: 769px)'\r\n })\r\n\r\n const [news, setNews] = useState(null)\r\n const [loading, setLoading] = useState(true)\r\n const [lightBox, setLightBox] = useState({\r\n photoIndex: 0,\r\n isOpen: false,\r\n })\r\n\r\n const [newsImageData, setNewsImageData] = useState(null)\r\n const [newsImageModal, setNewsImageModal] = useState({ data: null, click: false, id: \"0\", idx: 0, remarkid: 0, remarkDesc: \"\", remarkComment: \"\" })\r\n const [images, setImages] = useState([])\r\n\r\n function getStationData() {\r\n auth.fetchWithToken(url + '/api/v1/NewsRelease/getInfoNewsDetail/' + props.editNewsId, \"method:'GET'\")\r\n .then(res => {\r\n if (res.data) {\r\n if (res.data.imageAttachfile.length > 0) {\r\n res.data.imageAttachfile.forEach(x => x = convertBase64ToFile(x))\r\n }\r\n setNews(res.data)\r\n setImages(res.data.imageAttachfile)\r\n }\r\n setLoading(false)\r\n })\r\n .catch(e => {\r\n console.log(e)\r\n setLoading(false)\r\n })\r\n }\r\n\r\n useEffect(() => {\r\n if (props.name === 'detail') {\r\n getStationData()\r\n }\r\n }, [])\r\n\r\n const convertBase64ToFile = (image) => {\r\n const byteString = atob(image.split(',')[1]);\r\n const ab = new ArrayBuffer(byteString.length);\r\n const ia = new Uint8Array(ab);\r\n for (let i = 0; i < byteString.length; i += 1) {\r\n ia[i] = byteString.charCodeAt(i);\r\n }\r\n const newBlob = new Blob([ab], {\r\n type: 'image/*',\r\n });\r\n return newBlob;\r\n };\r\n\r\n const DownloadFile = (pathname) => {\r\n auth.fetchWithToken(url + \"/api/v1/WebSettings/WebBoardDownload?filename=\" + \"\" + pathname, { method: 'GET', responseType: 'blob', params: {}, arrayFormat: 'repeat' })\r\n .then(res => {\r\n if (auth._IsSuccessResponse(res)) {\r\n var ext = pathname.substr(pathname.lastIndexOf('.') + 1);\r\n ext = '.' + ext;\r\n const url = window.URL.createObjectURL(new Blob([res.data]));\r\n const link = document.createElement('a');\r\n link.href = url;\r\n link.setAttribute('download', `DownloadFile${ext}`);\r\n document.body.appendChild(link);\r\n link.click();\r\n }\r\n }).catch((err) => {\r\n console.log(err)\r\n swal({ text: 'ไม่สามารถสร้างไฟล์ข้อมูลระดับน้ำได้ กรุณาลองใหม่ภายหลัง', icon: 'warning' })\r\n })\r\n };\r\n \r\n\r\n return (\r\n \r\n {props.name === 'detail' && loading === 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 DownloadFile(news.fileAttach)} />\r\n \r\n \r\n
\r\n
{news.newsDetail ? news.newsDetail : ''}
\r\n
\r\n \r\n
\r\n\r\n {news && news.imageAttachfile.length > 0 ?\r\n
\r\n {news.imageAttachfile.map((item, key) => {\r\n return (\r\n \r\n setLightBox(prev => ({ photoIndex: key, isOpen: 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 {lightBox.isOpen && (\r\n setLightBox(prev => ({ ...prev, isOpen: false }))}\r\n onMovePrevRequest={() => setLightBox(prev => ({ ...prev, photoIndex: (prev.photoIndex + images.length - 1) % images.length }))}\r\n onMoveNextRequest={() => setLightBox(prev => ({ ...prev, photoIndex: (prev.photoIndex + 1) % images.length }))}\r\n\r\n />\r\n )}\r\n {newsImageModal.click &&\r\n }\r\n
\r\n\r\n )\r\n}","export const getParameterByName = (name, url = window.location.href) => {\r\n name = name.replace(/[\\[\\]]/g, '\\\\$&');\r\n var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'),\r\n results = regex.exec(url);\r\n if (!results) return null;\r\n if (!results[2]) return '';\r\n return decodeURIComponent(results[2].replace(/\\+/g, ' '));\r\n}","import React, { useState, useEffect } from 'react'\r\nimport { Row, Col, Button, Jumbotron, Container } from \"reactstrap\";\r\nimport { Spin } from \"antd\";\r\nimport NavBar from \".././navbar/NavBar\";\r\nimport DwrLayout from '../componentreuse/DwrLayout'\r\nimport NewsLists from '../news/NewsTable'\r\nimport NewsDetail from '../news/NewsDetail'\r\nimport { getParameterByName } from \"../Helper/ReadQueryUrl\";\r\n\r\nexport default function News() {\r\n\r\n const [newsPage, setNewsPage] = useState({ name: 'list', newsId: null, newsName: null })\r\n\r\n const [loading, setLoading] = useState(false);\r\n const [currentTab, setCurrentTab] = useState(1);\r\n const [dataSource, setDataSource] = useState([]);\r\n const [currentPage, setCurrentPage] = useState(1);\r\n function handlePage(_name, id, stdname) {\r\n setNewsPage({ name: _name, newsId: id, newsName: stdname })\r\n }\r\n //useEffect(() => {\r\n // setCurrentPage(1);\r\n //}, [currentTab]);\r\n\r\n useEffect(() => {\r\n let menuId = getParameterByName(\"menuId\");\r\n if(menuId) setCurrentTab(menuId);\r\n }, []);\r\n\r\n const handleChangeTab = (e) => {\r\n var name = e.currentTarget.getAttribute(\"name\");\r\n\r\n if (name === \"tab1\") {\r\n setCurrentTab(1);\r\n } else if (name === \"tab2\") {\r\n setCurrentTab(2);\r\n }\r\n else if (name === \"tab3\") {\r\n setCurrentTab(3);\r\n }\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 handleChangeTab(e)}\r\n fluid\r\n className=\"jumboBtn\"\r\n style={{\r\n backgroundColor: currentTab === 1 ? \"#C1ECFF\" : \"\",\r\n }}\r\n >\r\n \r\n
ข่าวประชาสัมพันธ์
\r\n
\r\n \r\n handleChangeTab(e)}\r\n fluid\r\n className=\"jumboBtn\"\r\n style={{\r\n backgroundColor: currentTab === 2 ? \"#C1ECFF\" : \"\",\r\n }}\r\n >\r\n \r\n
กิจกรรม
\r\n
\r\n \r\n handleChangeTab(e)}\r\n fluid\r\n className=\"jumboBtn\"\r\n style={{\r\n backgroundColor: currentTab === 3 ? \"#C1ECFF\" : \"\",\r\n }}\r\n >\r\n \r\n
เรื่องน่ารู้
\r\n
\r\n \r\n \r\n \r\n \r\n {currentTab == 1 ? (\r\n \r\n\r\n {newsPage.name === 'list' ?\r\n \r\n : ''}\r\n\r\n {newsPage.name === 'stationedit' ?\r\n \r\n : ''}\r\n\r\n
\r\n ) : (\r\n \"\"\r\n )}\r\n {currentTab == 2 ? (\r\n \r\n \r\n \r\n ) : (\r\n \"\"\r\n )}\r\n {currentTab == 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}","import React, { useState } from \"react\";\r\nimport { Row, Col } from \"reactstrap\";\r\nimport AuthenServices from \"../services/authenServices\";\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\nvar auth = new AuthenServices();\r\n\r\nexport default function ContactUs(props) {\r\n const [currentTab, setCurrentTab] = useState(1);\r\n\r\n const handleChangeTab = (e) => {\r\n var name = e.currentTarget.getAttribute(\"name\");\r\n\r\n if (name === \"residence\") {\r\n setCurrentTab(1);\r\n } else if (name === \"faq\") {\r\n setCurrentTab(2);\r\n }\r\n };\r\n\r\n const { t } = useTranslation();\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 {t('organization.contactUs.p1')}\r\n

\r\n

{t('organization.contactUs.p2')}

\r\n

{t('organization.contactUs.p3')}

\r\n

{t('organization.contactUs.p4')}

\r\n
\r\n \r\n
\r\n\r\n \r\n \r\n \r\n\r\n \r\n \r\n { /*\r\n \r\n \r\n \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 React, { useEffect, useState } from \"react\";\r\nimport { ProSidebar, Menu, MenuItem, SubMenu, SidebarHeader } from \"react-pro-sidebar\";\r\nimport \"react-pro-sidebar/dist/css/styles.css\";\r\nimport '../css/SideNavBar.css'\r\nimport { Link, NavLink } from \"react-router-dom\";\r\nimport { useMediaQuery } from 'react-responsive'\r\nimport '../css/SlimScroll.css'\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\nexport default function SideNavBar(props) {\r\n const { t, i18n } = useTranslation();\r\n\r\n const isDesktopOrLaptop = useMediaQuery({\r\n query: '(min-device-width: 769px)'\r\n })\r\n\r\n //*********************************************************************************************************************\r\n\r\n return (\r\n \r\n {isDesktopOrLaptop ?\r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n {t('sidenavbar.nav1')}\r\n \r\n \r\n\r\n {t('sidenavbar.nav2')}\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 React, { useState } from 'react'\r\nimport SideNavBar from '../sidenavbar/SideNavBar';\r\nimport { Row, Col, Button, Jumbotron, Container } from 'reactstrap'\r\nimport NavBar from '.././navbar/NavBar'\r\nimport { useMediaQuery } from 'react-responsive'\r\nimport DwrLayout from '../componentreuse/DwrLayout'\r\nimport AuthenServices from '../services/authenServices'\r\nimport '../css/JumboTron.css'\r\n\r\nvar auth = new AuthenServices()\r\n\r\nexport default function AboutUs(props) {\r\n const [currentTab, setCurrentTab] = useState(1)\r\n \r\n const handleChangeTab = (e) => {\r\n var name = e.currentTarget.getAttribute('name')\r\n\r\n if (name === 'organization') {\r\n setCurrentTab(1)\r\n }\r\n else if (name === 'vision') {\r\n setCurrentTab(2)\r\n }\r\n }\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n handleChangeTab(e)} fluid className='jumboBtn' style={{ backgroundColor: currentTab === 1 ? '#C1ECFF' : '' }}>\r\n \r\n
ข้อมูลองค์กร
\r\n
\r\n
\r\n handleChangeTab(e)} fluid className='jumboBtn' style={{ backgroundColor: currentTab === 2 ? '#C1ECFF' : '' }}>\r\n \r\n
วิสัยทัศน์
\r\n
\r\n
\r\n \r\n \r\n
{currentTab === 1 ? 'ข้อมูลองค์กร' : currentTab === 2 ? 'วิสัยทัศน์' : ''}
\r\n
\r\n {currentTab === 1 ? จากการปฏิรูประบบราชการเมื่อปีพ.ศ. 2545 ได้นำไปสู่การจัดตั้งกรมทรัพยากรน้ำ\r\n ซึ่งมีภารกิจหลักด้านการบริหารจัดการทรัพยากรน้ำอย่างครบวงจรรวมทั้ง การศึกษา วิจัย พัฒนา การกำหนดมาตรฐาน เพื่อแก้ไขปัญหาด้านทรัพยากรน้ำ\r\n กองวิจัย พัฒนาและอุทกวิทยา ได้ถูกจัดตั้งขึ้น เพื่อปฏิบัติภารกิจดังกล่าวรวมทั้ง\r\n การจัดทำแผนที่อุทกวิทยาการวิเคราะห์ปริมาณและคุณภาพน้ำในภาพรวม\r\n โดยมีเจ้าหน้าที่จากกรมต่าง ๆ คือกรมชลประทาน กรมพัฒนาและส่งเสริมพลังงาน\r\n กรมพัฒนาที่ดิน และกรมโยธาธิการ\r\n

อำนาจหน้าที่\r\n
(ก) ศึกษา วิจัยด้านอุทกวิทยา และจัดทำแผนที่อุทกวิทยา\r\n
(ข) ศึกษา วิจัยเพื่อพัฒนาองค์ความรู้ รูปแบบ และเทคโนโลยีเกี่ยวกับการบริหารจัดการทรัพยากรน้ำ\r\n
(ค) วิเคราะห์ปริมาณและคุณภาพน้ำในภาพรวม วางแผน พัฒนาทดสอบวัสดุอุปกรณ์ ในการพัฒนาและบริหารจัดการทรัพยากรน้ำ\r\n
(ง) วิเคราะห์และรวบรวมข้อมูลและสถิติต่าง ๆ ด้านอุทกวิทยา\r\n
(ฉ) ปฏิบัติงานร่วมกับหรือสนับสนุนการปฏิบัติงานของหน่วยงานอื่นที่เกี่ยวข้องหรือที่ได้รับมอบหมาย\r\n
\r\n\r\n : currentTab === 2 ? 'วิชาการก้าวไกล เตือนภัยทันเวลา พัฒนางานวิจัย ใส่ใจคุณภาพน้ำ' : ''}\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n\r\n
\r\n\r\n )\r\n}","export const ValidateEmail = (mail) =>\r\n{\r\n if (/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\\.[a-zA-Z0-9-]+)+$/.test(mail))\r\n {\r\n return (true)\r\n }\r\n return (false)\r\n};","import React, { useState, useEffect } from \"react\";\r\nimport SideNavBar from \"../../sidenavbar/SideNavBar\";\r\nimport { Row, Col, Input, Spin, Select, Form } from \"antd\";\r\nimport { Button } from \"reactstrap\";\r\nimport NavBar from \"../../navbar/NavBar\";\r\nimport { useMediaQuery } from \"react-responsive\";\r\nimport DwrLayout from \"../../componentreuse/DwrLayout\";\r\nimport AuthenServices from \"../../services/authenServices\";\r\nimport { ValidateEmail } from \"../../Helper/ValidateEmail\";\r\nimport swal from \"sweetalert\";\r\nimport { FaCentercode, FaEye, FaEyeSlash } from \"react-icons/fa\";\r\nimport DwrDatePicker from \"../../componentreuse/DwrDatePicker\";\r\nimport moment from \"moment\";\r\n\r\nconst { Option } = Select;\r\nconst { TextArea } = Input;\r\n\r\nconst auth = new AuthenServices();\r\nvar url = process.env.REACT_APP_DWR_API;\r\n\r\nexport default function MyAccount() {\r\n var datenow = new Date(Date.now());\r\n\r\n const [loading, setLoading] = useState(false);\r\n const [prename, setPrename] = useState([]);\r\n const [province, setProvince] = useState([]);\r\n const [district, setDistrict] = useState([]);\r\n const [subDistrict, setSubDistrict] = useState([]);\r\n\r\n const [startDate, setStartDate] = useState(datenow);\r\n const [member, setMember] = useState({\r\n prename: undefined,\r\n firstName: \"\",\r\n lastName: \"\",\r\n username: \"\",\r\n password: \"\",\r\n passwordConf: \"\",\r\n idCard: \"\",\r\n email: \"\",\r\n tel: \"\",\r\n //birthDay: \"\",\r\n address: \"\",\r\n province: undefined,\r\n district: undefined,\r\n subDistrict: undefined,\r\n zipCode: \"\",\r\n organization: \"\",\r\n position: \"\",\r\n });\r\n\r\n useEffect(() => {\r\n onPrename();\r\n getProvince();\r\n\r\n onGetProgile();\r\n }, []);\r\n\r\n const onGetProgile = () => {\r\n setLoading(true);\r\n auth\r\n .fetchWithToken(url + \"/api/v1/member/\", {\r\n method: \"GET\",\r\n data: {},\r\n })\r\n .then((res) => {\r\n var _resp_data = res.data;\r\n\r\n if (_resp_data.provinceId) getDistrictByProvinceId(_resp_data.provinceId);\r\n if (_resp_data.districtId) getSubDistrictByDistrictId(_resp_data.districtId);\r\n\r\n setMember({\r\n prename: _resp_data.preNameId ? _resp_data.preNameId.toString() : undefined,\r\n firstName: _resp_data.firstName,\r\n lastName: _resp_data.lastName,\r\n username: _resp_data.userName,\r\n password: _resp_data.password,\r\n passwordConf: _resp_data.password,\r\n idCard: _resp_data.idcardNo,\r\n email: _resp_data.email,\r\n tel: _resp_data.tel,\r\n //birthDay: _resp_data.birthDate?moment(_resp_data.birthDate).toDate():undefined,\r\n address: _resp_data.address,\r\n province: _resp_data.provinceId,\r\n district: _resp_data.districtId,\r\n subDistrict: _resp_data.subDistrictId,\r\n zipCode: _resp_data.postcode,\r\n organization: _resp_data.organization,\r\n position: _resp_data.position\r\n });\r\n\r\n setLoading(false);\r\n })\r\n .catch((error) => {\r\n if (error.response) {\r\n if (error.response.data == \"email duplicate\") {\r\n swal({\r\n text: \"อีเมลถูกใช้งานแล้ว กรุณาระบุอีเมลใหม่ หรือติดต่อผู้ดูแลระบบ\",\r\n icon: \"warning\",\r\n });\r\n } else {\r\n swal({\r\n text: \"ไม่สามารถติดต่อเซอร์เวอร์ได้ กรุณาลองใหม่อีกครั้ง\",\r\n icon: \"warning\",\r\n });\r\n }\r\n } else {\r\n swal({\r\n text: \"ไม่สามารถติดต่อเซอร์เวอร์ได้ กรุณาลองใหม่อีกครั้ง\",\r\n icon: \"warning\",\r\n });\r\n }\r\n setLoading(false);\r\n });\r\n }\r\n\r\n const onCancel = () => {\r\n onGetProgile();\r\n\r\n swal({ text: \"ยกเลิกสำเร็จ\", icon: \"success\" });\r\n };\r\n\r\n const onSave = () => {\r\n if (!member.username) {\r\n swal({ text: \"กรุณากรอกข้อมูลให้ครบถ้วน\", icon: \"warning\" });\r\n return;\r\n }\r\n\r\n member.idCard = member.idCard ? member.idCard : \"\";\r\n\r\n // if (member.idCard.length != 13) {\r\n // swal({ text: \"กรุณาระบุตัวเลข 13 หลัก\", icon: \"warning\" });\r\n // return;\r\n // }\r\n\r\n if (member.password) {\r\n if (member.password.length < 6 || member.passwordConf.length < 6) {\r\n swal({ text: \"รหัสผ่านอย่างน้อย 6 ตัวอักษร\", icon: \"warning\" });\r\n return;\r\n }\r\n\r\n if (member.password !== member.passwordConf) {\r\n swal({ text: \"รหัสผ่านไม่ตรงกัน\", icon: \"warning\" });\r\n return;\r\n }\r\n }\r\n\r\n setLoading(true);\r\n\r\n var json = JSON.stringify({\r\n preNameId: member.prename,\r\n firstName: member.firstName,\r\n lastName: member.lastName,\r\n userName: member.username,\r\n password: member.password,\r\n idcardNo: member.idCard,\r\n email: member.email,\r\n tel: member.tel,\r\n //birthDate:member.birthDay,\r\n address: member.address,\r\n provinceId: member.province,\r\n districtId: member.district,\r\n subDistrictId: member.subDistrict,\r\n postcode: member.zipCode,\r\n organization: member.organization,\r\n position: member.position,\r\n });\r\n\r\n auth\r\n .fetchWithToken(url + \"/api/v1/member/\", {\r\n method: \"PUT\",\r\n data: json,\r\n })\r\n .then((res) => {\r\n var _resp_data = res.data;\r\n if (res.status == 200) {\r\n //setInputValue(prevState => ({ ...prevState, [\"input\"+id]: _resp_data.webSettingValue }));\r\n\r\n swal({ text: \"บันทึกข้อมูลสำเร็จ\", icon: \"success\" });\r\n }\r\n\r\n setLoading(false);\r\n })\r\n .catch((error) => {\r\n if (error.response) {\r\n if (error.response.data == \"email duplicate\") {\r\n swal({\r\n text: \"อีเมลถูกใช้งานแล้ว กรุณาระบุอีเมลใหม่ หรือติดต่อผู้ดูแลระบบ\",\r\n icon: \"warning\",\r\n });\r\n } else {\r\n swal({\r\n text: \"ไม่สามารถติดต่อเซอร์เวอร์ได้ กรุณาลองใหม่อีกครั้ง\",\r\n icon: \"warning\",\r\n });\r\n }\r\n } else {\r\n swal({\r\n text: \"ไม่สามารถติดต่อเซอร์เวอร์ได้ กรุณาลองใหม่อีกครั้ง\",\r\n icon: \"warning\",\r\n });\r\n }\r\n setLoading(false);\r\n });\r\n };\r\n\r\n const onPrename = () => {\r\n auth\r\n .fetchWithToken(url + \"/api/v1/Prename/\", {\r\n method: \"get\",\r\n data: {},\r\n })\r\n .then((res) => {\r\n var _resp_data = res.data;\r\n if (res.status == 200) {\r\n setPrename(_resp_data);\r\n }\r\n })\r\n .catch((error) => { });\r\n };\r\n\r\n const getProvince = () => {\r\n auth\r\n .fetchWithToken(url + \"/api/v1/Province\", \"method:'GET'\")\r\n .then((res) => {\r\n var _resp_data = res.data;\r\n setProvince(_resp_data);\r\n })\r\n .catch((e) => { });\r\n };\r\n\r\n const getDistrictByProvinceId = (value) => {\r\n auth\r\n .fetchWithToken(\r\n url + \"/api/v1/District/Province/\" + value,\r\n \"method:'GET'\"\r\n )\r\n .then((res) => {\r\n var _resp_data = res.data;\r\n setDistrict(_resp_data);\r\n })\r\n .catch((e) => {\r\n\r\n });\r\n };\r\n\r\n const getSubDistrictByDistrictId = (value) => {\r\n auth\r\n .fetchWithToken(\r\n url + \"/api/v1/SubDistrict/District/\" + value,\r\n \"method:'GET'\"\r\n )\r\n .then((res) => {\r\n var _resp_data = res.data;\r\n setSubDistrict(_resp_data);\r\n\r\n })\r\n .catch((e) => {\r\n\r\n });\r\n };\r\n\r\n //const handleDateChange = (date) => {\r\n // setMember((p) => ({ ...p, birthDay: date }));\r\n //};\r\n\r\n const onChange = (e) => {\r\n const { name, value } = e.target;\r\n setMember((p) => ({ ...p, [name]: value }));\r\n };\r\n\r\n const onSelectDropDown = (value, name) => {\r\n setMember((p) => ({ ...p, [name]: value }));\r\n };\r\n\r\n const isDesktopOrLaptop = useMediaQuery({\r\n query: \"(min-device-width: 769px)\",\r\n });\r\n\r\n const inputStyle = { maxWidth: 250 };\r\n const inputStyle1 = { Width: 250 };\r\n // const inputStyle2 = { marginLeft: \"-8px\", textAlign: \"left\" };\r\n const inputStyle2 = { marginLeft: \"10px\", textAlign: \"left\" };\r\n const inputStyleฺBackGroundBlue = { background: \"#c1ecff\" };\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 onSelectDropDown(e, \"prename\")}\r\n showSearch\r\n filterOption={(input, option) =>\r\n option.children\r\n .toLowerCase()\r\n .indexOf(input.toLowerCase()) >= 0\r\n }\r\n style={{ ...inputStyle, ...inputStyle2, width: \"100%\" }}\r\n >\r\n {prename.map((item) => (\r\n \r\n ))}\r\n **\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n **\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n **\r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n *\r\n \r\n \r\n\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n visible ? : \r\n }\r\n />*\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n visible ? : \r\n }\r\n />*\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n *\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n **\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n **\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n **\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n { onSelectDropDown(e, \"province\"); getDistrictByProvinceId(e); setMember((p) => ({ ...p, district: undefined, subDistrict: undefined })); }}\r\n filterOption={(input, option) =>\r\n option.children\r\n .toLowerCase()\r\n .indexOf(input.toLowerCase()) >= 0\r\n }\r\n value={member.province}\r\n >\r\n {province.map((item) => (\r\n \r\n ))}\r\n **\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n { onSelectDropDown(e, \"district\"); getSubDistrictByDistrictId(e); setMember((p) => ({ ...p, subDistrict: undefined })); }}\r\n filterOption={(input, option) =>\r\n option.children\r\n .toLowerCase()\r\n .indexOf(input.toLowerCase()) >= 0\r\n }\r\n value={member.district}\r\n >\r\n {district.map((item) => (\r\n \r\n ))}\r\n **\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n onSelectDropDown(e, \"subDistrict\")}\r\n filterOption={(input, option) =>\r\n option.children\r\n .toLowerCase()\r\n .indexOf(input.toLowerCase()) >= 0\r\n }\r\n value={member.subDistrict}\r\n >\r\n {subDistrict.map((item) => (\r\n \r\n ))}\r\n **\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n e.target.value.length > 5 ? null : onChange(e)\r\n }\r\n type=\"number\"\r\n />**\r\n \r\n \r\n \r\n\r\n \r\n {\" \"}\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 React from \"react\";\r\n\r\nconst styleDot = { marginLeft: 16, height: 8, width: 8 };\r\n\r\nconst elmStatus = [\r\n {\r\n key: [10],\r\n dot: (\r\n \r\n ),\r\n text: รอการพิจารณาคำร้อง,\r\n },\r\n {\r\n key: [11, 31],\r\n dot: (\r\n \r\n ),\r\n text: ที่ต้องแนบเอกสารเพิ่ม,\r\n },\r\n {\r\n key: [20],\r\n dot: (\r\n \r\n ),\r\n text: คำร้องถูกยกเลิก,\r\n },\r\n {\r\n key: [12],\r\n dot: (\r\n \r\n ),\r\n text: ที่รอยืนยัน,\r\n },\r\n {\r\n key: [30],\r\n dot: (\r\n \r\n ),\r\n text: รายละเอียดหรือเงื่อนไขในการชำระเงิน,\r\n },\r\n {\r\n key: [32, 40],\r\n dot: (\r\n \r\n ),\r\n text: คำร้องสำเร็จ,\r\n },\r\n ];\r\n\r\n export default elmStatus;","import React, { useState, useEffect } from \"react\";\r\nimport { Table, Row, Col, Select } from \"antd\";\r\nimport moment from \"moment\";\r\nimport { FaEye } from \"react-icons/fa\";\r\nimport { encodedString } from \"../../../Helper/ConvertBase64\";\r\nimport { Link, NavLink as RRNavLink } from 'react-router-dom'\r\nimport elmStatus from './StatusRequestData'\r\nimport TablePagination from '../../../componentreuse/TablePagination'\r\n\r\nconst styleSpan = { marginLeft: 8 };\r\nconst { Option } = Select;\r\n\r\nexport default function TableListHistory({\r\n dataSource,\r\n type,\r\n onViewDetail,\r\n page,\r\n setPage,\r\n handlePagination,\r\n}) {\r\n const [pagesCount, setPagesCount] = useState(0);\r\n\r\n useEffect(() => {\r\n setPagesCount(dataSource.length > 0 ? dataSource[0].total : 0);\r\n }, [dataSource]);\r\n\r\n const columns = [\r\n {\r\n title: \"เลขที่คำร้อง\",\r\n dataIndex: \"requestDataId\",\r\n key: \"requestDataId\",\r\n align: \"center\",\r\n },\r\n {\r\n title: \"วันที่ขอรับบริการ\",\r\n dataIndex: \"requestDate\",\r\n key: \"requestDate\",\r\n align: \"center\",\r\n render: (text) => moment(text).format(\"DD/MM/YYYY\"),\r\n },\r\n {\r\n title: \"สถานะ\",\r\n dataIndex: \"statusRequestId\",\r\n key: \"statusRequestId\",\r\n align: \"center\",\r\n render: (text, item) =>\r\n text ? elmStatus.filter((f) => f.key.includes(text))[0].dot : \"\",\r\n },\r\n {\r\n title: \"ดูรายละเอียด\",\r\n dataIndex: \"requestDataId\",\r\n key: \"requestDataId\",\r\n align: \"center\",\r\n render: (text, item) => (\r\n \r\n window.location.replace(`${window.location.href}?id=${encodedString(item.requestDataId)}`)}\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\r\n \r\n {elmStatus.map((item) => (\r\n \r\n {item.dot}\r\n {item.text}\r\n \r\n ))}\r\n \r\n \r\n = 2 ? \"inline-block\" : \"none\",\r\n }}\r\n value={page.pageSize}\r\n onChange={(e) => setPage({ ...page, pageSize: e, currentPage: 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","import React, { useState, useEffect } from \"react\";\r\nimport { Button } from \"reactstrap\";\r\nimport { Row, Col, Input, Spin, Card, Radio, Space } from \"antd\";\r\nimport DwrLayout from \"../../componentreuse/DwrLayout\";\r\nimport swal from \"sweetalert\";\r\nimport TableListHistory from \"./component/TableListHistory\";\r\nimport \"./RequestDataHistory.css\";\r\nimport AuthenServices from \"../../services/authenServices\";\r\n\r\nconst auth = new AuthenServices();\r\nvar url = process.env.REACT_APP_DWR_API;\r\n\r\nexport default function RequestDataHistory() {\r\n const [data, setData] = useState([]);\r\n const [loading, setLoading] = useState(false);\r\n const [page, setPage] = useState({\r\n totalPage: 0,\r\n totalItems: 0,\r\n currentPage: 1,\r\n pageSize: 10,\r\n });\r\n\r\n useEffect(() => {\r\n onGetData();\r\n }, [page.pageSize,page.currentPage]);\r\n\r\n const onGetData = () => {\r\n setLoading(true);\r\n auth\r\n .fetchWithToken(\r\n url +\r\n `/api/v1/requestData?page=${page.currentPage}&pagesize=${page.pageSize}`,\r\n {\r\n method: \"GET\",\r\n }\r\n )\r\n .then((res) => {\r\n if(res.data.length > 0){\r\n setPage({\r\n ...page,\r\n totalItems: res.data[0].total,\r\n totalPage: Math.ceil(res.data[0].total / page.pageSize),\r\n });\r\n \r\n setData(res.data);\r\n }\r\n \r\n setLoading(false);\r\n })\r\n .catch((error) => {\r\n swal({\r\n text: \"ไม่สามารถเรียกดูข้อมูลได้ กรุณาลองใหม่อีกครั้ง\",\r\n icon: \"warning\",\r\n });\r\n setLoading(false);\r\n });\r\n };\r\n\r\n const handlePagination = (pagenum) => {\r\n const totalpage = page.totalPage;\r\n if (pagenum < 1) {\r\n pagenum = 1;\r\n } else if (pagenum > totalpage) {\r\n pagenum = totalpage;\r\n }\r\n\r\n setPage({ ...page, currentPage: pagenum });\r\n };\r\n\r\n return (\r\n \r\n \r\n \r\n window.history.back()}\r\n >\r\n \r\n \r\n { /*\r\n {data.length > 0 ? (\r\n \r\n \r\n แบบสอบถามความพึงพอใจการใช้บริการข้อมูลอุทก-อุตุนิยมวิทยา\r\n \r\n \r\n ) : null}\r\n */ }\r\n\r\n \r\n {data.length > 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","import React, { useState, useEffect } from \"react\";\r\nimport { Table, Row, Col } from \"antd\";\r\nimport moment from \"moment\";\r\n\r\nexport default function TableRequestData({dataSource}) {\r\n \r\nuseEffect(() => {\r\n}, [dataSource]);\r\n\r\n const columns = [\r\n {\r\n title: \"ข้อมูล\",\r\n dataIndex: \"dataTypeId\",\r\n key: \"dataTypeId\",\r\n align: \"center\",\r\n render: (text, item) => item.dataTypeId ? \"Digital Files\" : item.yearbookTypeId == 1 ? \"หนังสืออุทกวิทยาฯ (1 ชุด มี 2 เล่ม)\" : \"CD หนังสืออุทกวิทยาฯ (รวมเล่ม 1,2)\"\r\n },\r\n {\r\n title: \"รหัสถานี\",\r\n dataIndex: \"stationId\",\r\n key: \"stationId\",\r\n align: \"center\",\r\n },\r\n {\r\n title: \"ชื่อสถานี\",\r\n dataIndex: \"stationTh\",\r\n key: \"stationTh\",\r\n align: \"center\",\r\n },\r\n {\r\n title: \"ชนิดข้อมูล\",\r\n dataIndex: \"dataTypeTh\",\r\n key: \"dataTypeTh\",\r\n align: \"center\",\r\n },\r\n {\r\n title: \"ประเภท\",\r\n dataIndex: \"dataTypeId\",\r\n key: \"dataTypeId\",\r\n align: \"center\",\r\n render : (text,item) => item.isDaily == \"Y\"?\"รายวัน\":item.isMonthly == \"Y\"?\"รายเดือน\":\"\"\r\n },\r\n {\r\n title: \"ปีเริ่มต้น\",\r\n dataIndex: \"yearStart\",\r\n key: \"yearStart\",\r\n align: \"center\",\r\n render : (text,item) => moment(text).format(\"YYYY\")\r\n },\r\n {\r\n title: \"ปีสิ้นสุด\",\r\n dataIndex: \"yearEnd\",\r\n key: \"yearEnd\",\r\n align: \"center\",\r\n render : (text,item) => moment(text).format(\"YYYY\")\r\n },\r\n ];\r\n\r\n const convertNumber = (value) => {\r\n try {\r\n return value.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\");\r\n } catch (error) {\r\n return value;\r\n \r\n }\r\n }\r\n\r\n return (\r\n
\r\n \r\n \r\n 0 ? dataSource.dataSelectionList.map((item, key) => ({ ...item,key:key })) : []}\r\n columns={columns}\r\n className=\"table-requestDetial\"\r\n bordered={true}\r\n pagination={false}\r\n style={{ marginBottom: 8 }}\r\n footer={(currentPageData) => \r\n \r\n \r\n รวม \r\n \r\n \r\n {dataSource ? dataSource.fee? convertNumber(dataSource.fee):0 :0}\r\n บาท\r\n \r\n \r\n }\r\n />\r\n \r\n \r\n
\r\n );\r\n}\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { Row, Col, Empty } from \"antd\";\r\nimport { FaTrashAlt } from \"react-icons/fa\";\r\n\r\nexport default function TableRefDoc({ dataSource, fileUpload, onRemoveFile, getFileDoc }) {\r\n const [files, setFiles] = useState([]);\r\n\r\n useEffect(() => {\r\n if (fileUpload.length > 0) {\r\n let f = fileUpload;\r\n setFiles(f);\r\n }\r\n }, [fileUpload]);\r\n\r\n return (\r\n \r\n {dataSource\r\n ? dataSource.filesDoc.map((item,key) => (\r\n <>\r\n getFileDoc(item.id,item.documentName)}> {item.documentName ?? \"\"}\r\n {item.discription ?? \"\"}\r\n \r\n
\r\n \r\n \r\n ))\r\n : null}\r\n\r\n {files.map((item, index) => (\r\n <>\r\n getFileDoc(item.key,item.documentName)}> {item.documentName ?? \"\"}\r\n \r\n {item.discription ?? \"\"}{\" \"}\r\n onRemoveFile(item.key)}\r\n />\r\n \r\n \r\n
\r\n \r\n \r\n ))}\r\n
\r\n );\r\n}\r\n","import React, { useState } from \"react\";\r\nimport { Modal, Row, Col, Input, Spin } from \"antd\";\r\nimport { Button } from \"reactstrap\";\r\nimport swal from \"sweetalert\";\r\n\r\nconst { TextArea } = Input;\r\n\r\nexport default function ModalAddDoc({\r\n isModalVisible,\r\n handleOk,\r\n handleCancel,\r\n fileUpload,\r\n setFileUpload,\r\n onUploadDoc,\r\n}) {\r\n const [loading, setLoading] = useState(false);\r\n const [fileDocs, setFileDocs] = useState(undefined);\r\n const [filename, setFilename] = useState(\"\");\r\n const [fileDesc, setFileDesc] = useState(\"\");\r\n\r\n const onAttachFile = (value) => {\r\n let attachFile = document.getElementById(\"attachFile\");\r\n attachFile.click();\r\n };\r\n\r\n const handleFileUploadChangeFile = (e) => {\r\n var sizeInMB = (e.target.files[0].size / (1024 * 1024)).toFixed(2);\r\n if (sizeInMB > 20.0) {\r\n swal({\r\n text: \"ขนาดไฟล์มีขนาดใหญ่เกินกว่าที่ระบบกำหนดค่าสูงสุดไว้ 20 MB\",\r\n icon: \"warning\",\r\n });\r\n return;\r\n } else {\r\n setFileDocs(e.target.files[0]);\r\n }\r\n };\r\n\r\n const onOk = () => {\r\n if (!fileDocs || !filename) {\r\n swal({\r\n text: \"กรุณากรอกข้อมูลให้ครบถ้วน\",\r\n icon: \"warning\",\r\n });\r\n } else {\r\n let _filename = fileDocs.name;\r\n let ext = _filename.split(\".\").pop();\r\n \r\n onUploadDoc(fileDocs,filename.substring(0, 40) + \".\" + ext,fileDesc);\r\n\r\n setFileDocs(undefined);\r\n setFilename(\"\");\r\n setFileDesc(\"\");\r\n handleOk();\r\n }\r\n };\r\n\r\n const onCancel = () => {\r\n handleCancel();\r\n\r\n setFileDocs(undefined);\r\n setFilename(\"\");\r\n setFileDesc(\"\");\r\n };\r\n\r\n return (\r\n \r\n \r\n \r\n setFilename(e.target.value)}\r\n value={filename}\r\n />\r\n \r\n \r\n \r\n เลือกไฟล์\r\n \r\n {fileDocs ? fileDocs.name : \"\"}\r\n handleFileUploadChangeFile(e)}\r\n accept=\"*/*\"\r\n type=\"file\"\r\n name=\"attachFile\"\r\n id=\"attachFile\"\r\n style={{ display: \"none\" }}\r\n />\r\n \r\n \r\n setFileDesc(e.target.value)}\r\n value={fileDesc}\r\n />\r\n \r\n \r\n \r\n );\r\n}\r\n","import React from \"react\";\r\nimport {\r\n Row,\r\n Col,\r\n Input,\r\n Select,\r\n Spin,\r\n Switch,\r\n Radio,\r\n Tabs,\r\n Modal,\r\n} from \"antd\";\r\nimport { Button } from \"reactstrap\";\r\nconst { TextArea } = Input;\r\n\r\nexport default function CancelModel({ isModalVisible, setIsModalVisible,itemId,setDescription,onReject }) {\r\n return (\r\n setIsModalVisible(false)}\r\n zIndex={1021}\r\n footer={[\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n ,\r\n ]}\r\n >\r\n \r\n \r\n ท่านต้องการยกเลิกคำขอรับบริการข้อมูลเลขที่ {itemId} ใช่หรือไม่\r\n \r\n \r\n กรุณา ระบุเหตุผล*\r\n \r\n \r\n