PageRenderTime 33ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 1ms

/hospsys/hospsys/insurance/core/javasrc/com/hospital/HospitalService.java

https://bitbucket.org/dkhaliunaa/mal-emneleg
Java | 499 lines | 85 code | 80 blank | 334 comment | 0 complexity | 14640dbe3afd11a835fc56b23ef59c02 MD5 | raw file
  1. package com.hospital;
  2. import com.google.gson.internal.LinkedTreeMap;
  3. import com.model.FavoritePages;
  4. import com.model.Role;
  5. import com.model.User;
  6. import com.model.hos.*;
  7. import com.mongodb.BasicDBObject;
  8. import java.util.List;
  9. public interface HospitalService {
  10. /**
  11. * Checking session
  12. *
  13. * @param sessionId
  14. * @return
  15. */
  16. BasicDBObject checkSession(String sessionId);
  17. /**
  18. * Энэ нь нэвтэрсэний дараа хэрэглэгчийн хуудас дээрх эрхүүдийг татаж авна.
  19. *
  20. * @param sessionId
  21. * @return BasicDBObject
  22. * */
  23. List<BasicDBObject> getRoles(String sessionId);
  24. /**
  25. *
  26. * @param type
  27. * @param langid
  28. * @return
  29. * @throws Exception
  30. */
  31. List<BasicDBObject> getShalgahGazarVals(String type, String langid, String sessionId) throws Exception;
  32. /**
  33. *
  34. * @param type
  35. * @param langid
  36. * @return
  37. * @throws Exception
  38. */
  39. List<BasicDBObject> getComboVals(String type, String langid, String sessionId) throws Exception;
  40. /**
  41. *
  42. * News Data
  43. *
  44. * @param criteria -- criteria datas
  45. * @param sessionId -- session id
  46. * @return
  47. * @throws Exception
  48. */
  49. List<NewsEntity> getNewsData(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  50. /**
  51. *
  52. * @param criteria
  53. * @param sessionId
  54. * @return
  55. * @throws Exception
  56. */
  57. ErrorEntity setNewsData(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  58. /**
  59. *
  60. * Form 09 Data
  61. *
  62. * @param criteria -- criteria datas
  63. * @param sessionId -- session id
  64. * @return
  65. * @throws Exception
  66. */
  67. List<Form08Entity> getForm08Data(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  68. /**
  69. *
  70. * @param criteria
  71. * @param sessionId
  72. * @return
  73. * @throws Exception
  74. */
  75. ErrorEntity setForm08Data(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  76. /**
  77. *
  78. * Form 09 Data
  79. *
  80. * @param criteria -- criteria datas
  81. * @param sessionId -- session id
  82. * @return
  83. * @throws Exception
  84. */
  85. List<Form09Entity> getForm09Data(LinkedTreeMap criteria, String sessionId) throws Exception;
  86. /**
  87. *
  88. * @param criteria
  89. * @param sessionId
  90. * @return
  91. * @throws Exception
  92. */
  93. ErrorEntity setForm09Data(LinkedTreeMap criteria, String sessionId) throws Exception;
  94. /**
  95. *
  96. * Form 11 Data
  97. *
  98. * @param criteria -- criteria datas
  99. * @param sessionId -- session id
  100. * @return
  101. * @throws Exception
  102. */
  103. List<Form11Entity> getForm11Data(LinkedTreeMap criteria, String sessionId) throws Exception;
  104. /**
  105. *
  106. * @param criteria
  107. * @param sessionId
  108. * @return
  109. * @throws Exception
  110. */
  111. ErrorEntity setForm11Data(LinkedTreeMap criteria, String sessionId) throws Exception;
  112. /**
  113. *
  114. * @param criteria
  115. * @param sessionId
  116. * @return
  117. * @throws Exception
  118. */
  119. ErrorEntity setForm14Data(LinkedTreeMap criteria, String sessionId) throws Exception;
  120. /**
  121. *
  122. * Form 14 Data
  123. *
  124. * @param criteria -- criteria datas
  125. * @param sessionId -- session id
  126. * @return
  127. * @throws Exception
  128. */
  129. List<Form14Entity> getForm14Data(LinkedTreeMap criteria, String sessionId) throws Exception;
  130. /**
  131. *
  132. * Form 46 Data
  133. *
  134. * @param criteria -- criteria datas
  135. * @param sessionId -- session id
  136. * @return
  137. * @throws Exception
  138. */
  139. List<Form46Entity> getForm46Data(LinkedTreeMap criteria, String sessionId) throws Exception;
  140. /**
  141. *
  142. * @param criteria
  143. * @param sessionId
  144. * @return
  145. * @throws Exception
  146. */
  147. ErrorEntity setForm46Data(LinkedTreeMap criteria, String sessionId) throws Exception;
  148. /**
  149. *
  150. * @param criteria
  151. * @param sessionId
  152. * @return
  153. * @throws Exception
  154. */
  155. List<City> getCityData(LinkedTreeMap criteria, String sessionId) throws Exception;
  156. /**
  157. * new city registration
  158. * @param insdata
  159. * @param sessionId
  160. * @return
  161. * @throws Exception
  162. */
  163. ErrorEntity setCityData (LinkedTreeMap insdata, String sessionId) throws Exception;
  164. /**
  165. *
  166. * @param criteria
  167. * @param sessionId
  168. * @return
  169. * @throws Exception
  170. */
  171. List<Sum> getSumData(LinkedTreeMap criteria, String sessionId) throws Exception;
  172. /**
  173. * new city registration
  174. * @param insdata
  175. * @param sessionId
  176. * @return
  177. * @throws Exception
  178. */
  179. ErrorEntity setSumData (LinkedTreeMap insdata, String sessionId) throws Exception;
  180. /**
  181. * Fetch users
  182. *
  183. * @param credata
  184. * @param sessionId
  185. * @return
  186. * @throws Exception
  187. */
  188. List<User> getUserData (LinkedTreeMap credata, String sessionId) throws Exception;
  189. /**
  190. * new user registration
  191. * @param insdata
  192. * @param sessionId
  193. * @return
  194. * @throws Exception
  195. */
  196. ErrorEntity setUserData (LinkedTreeMap insdata, String sessionId) throws Exception;
  197. /**
  198. *
  199. * @param criteria
  200. * @param sessionId
  201. * @return
  202. * @throws Exception
  203. */
  204. List<BagHorooEntity> getBagHorooData(LinkedTreeMap criteria, String sessionId) throws Exception;
  205. /**
  206. *
  207. * Form 43 Data
  208. *
  209. * @param criteria -- criteria datas
  210. * @param sessionId -- session id
  211. * @return
  212. * @throws Exception
  213. */
  214. List<Form43Entity> getForm43Data(LinkedTreeMap criteria, String sessionId) throws Exception;
  215. /**
  216. *
  217. * @param criteria
  218. * @param sessionId
  219. * @return
  220. * @throws Exception
  221. */
  222. ErrorEntity setForm43Data(LinkedTreeMap criteria, String sessionId) throws Exception;
  223. /**
  224. * Fetch Menu List
  225. *
  226. * @param criteria
  227. * @param sessionId
  228. * @return
  229. * @throws Exception
  230. */
  231. List<MenuEntity> getMenuList(LinkedTreeMap criteria, String sessionId) throws Exception;
  232. /**
  233. * Fetch Role List
  234. *
  235. * @param criteria
  236. * @param sessionId
  237. * @return
  238. * @throws Exception
  239. */
  240. List<Role> getRoleList(LinkedTreeMap criteria, String sessionId) throws Exception;
  241. /**
  242. * Menu Role
  243. *
  244. * @param criteria
  245. * @param sessionId
  246. * @return
  247. * @throws Exception
  248. */
  249. ErrorEntity setMenuRole(LinkedTreeMap criteria, String sessionId) throws Exception;
  250. /**
  251. * Fetch Menu Roles List
  252. *
  253. * @param criteria
  254. * @param sessionId
  255. * @return
  256. * @throws Exception
  257. */
  258. List<MenuRoles> getMenuRole(LinkedTreeMap criteria, String sessionId) throws Exception;
  259. /**
  260. * Column chart data
  261. *
  262. * @param criteria
  263. * @param sessionId
  264. * @param menuid
  265. * @return
  266. * @throws Exception
  267. */
  268. BasicDBObject getForm08ColumnChartData(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  269. /**
  270. * Pie chart data
  271. *
  272. * @param criteria
  273. * @param sessionId
  274. * @param menuid
  275. * @return
  276. * @throws Exception
  277. */
  278. List<BasicDBObject> getForm08PieChartData(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  279. /**
  280. *
  281. * Form 08 Data
  282. *
  283. * @param criteria -- criteria datas
  284. * @param sessionId -- session id
  285. * @return
  286. * @throws Exception
  287. */
  288. List<Form08HavsraltEntity> getForm08HavsraltData(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  289. /**
  290. *
  291. * @param criteria
  292. * @param sessionId
  293. * @return
  294. * @throws Exception
  295. */
  296. ErrorEntity setForm08HavsraltData(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  297. List<Form09HavsraltEntity> getForm09HavsraltData(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  298. /**
  299. *
  300. * @param criteria
  301. * @param sessionId
  302. * @return
  303. * @throws Exception
  304. */
  305. ErrorEntity setForm09HavsraltData(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  306. /**
  307. * Write Favorite Page log
  308. *
  309. * @param sessionId
  310. * @param menuid
  311. * @return
  312. * @throws Exception
  313. */
  314. ErrorEntity writeFavoriteMenuLog(String sessionId, String menuid) throws Exception;
  315. /**
  316. *
  317. * @param sessionId
  318. * @return
  319. * @throws Exception
  320. */
  321. List<FavoritePages> getFavoriteMenuList(String sessionId) throws Exception;
  322. /**
  323. * Get Form 13a data
  324. *
  325. * @param criteria
  326. * @param sessionId
  327. * @param menuid
  328. * @return
  329. * @throws Exception
  330. */
  331. List<Form13aEntity> getForm13aData(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  332. /**
  333. * Inser Form 13a new Data
  334. *
  335. * @param criteria
  336. * @param sessionId
  337. * @param menuid
  338. * @return
  339. * @throws Exception
  340. */
  341. ErrorEntity setForm13aData(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  342. /**
  343. *
  344. * @param credata
  345. * @param sessionId
  346. * @return
  347. * @throws Exception
  348. */
  349. List<User> getAllUserList (LinkedTreeMap credata, String sessionId) throws Exception;
  350. /* CHART */
  351. List<BasicDBObject> getForm08HavsraltPieChartData(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  352. BasicDBObject getForm08HavsraltColumnChartData(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  353. List<BasicDBObject> getForm09PieChartData(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  354. BasicDBObject getForm09ColumnChartData(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  355. List<BasicDBObject> getForm09HavsraltPieChartData(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  356. BasicDBObject getForm09HavsraltColumnChartData(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  357. List<BasicDBObject> getForm11PieChartData(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  358. BasicDBObject getForm11ColumnChartData(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  359. BasicDBObject getForm08HightChartData(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  360. /**
  361. * Hight chart ashiglaj Pie chart haruulah function
  362. *
  363. * @param criteria
  364. * @param sessionId
  365. * @param menuid
  366. * @return
  367. * @throws Exception
  368. */
  369. BasicDBObject getForm08HightPieChartData(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  370. //Form 08 havsralt hight chart begin
  371. BasicDBObject getForm08HavHightChartData(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  372. BasicDBObject getForm08HavHightPieChartData(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  373. //Form 08 havsralt hight chart end
  374. //Form 09 havsralt hight chart begin
  375. BasicDBObject getForm09HavHightChartData(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  376. BasicDBObject getForm09HavHightPieChartData(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  377. //Form 09 havsralt hight chart end
  378. //Form 11 havsralt hight chart begin
  379. BasicDBObject getForm11HightChartData(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  380. BasicDBObject getForm11HightPieChartData(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  381. //Form 11 havsralt hight chart end
  382. //Form 09 havsralt hight chart begin
  383. BasicDBObject getForm09HightChartData(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  384. BasicDBObject getForm09HightPieChartData(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  385. //Form 09 havsralt hight chart end
  386. //Form 46 havsralt hight chart begin
  387. BasicDBObject getForm46HightChartData(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  388. BasicDBObject getForm46HightPieChartData(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  389. //Form 46 havsralt hight chart end
  390. //Form 13a havsralt hight chart begin
  391. BasicDBObject getForm13aHightChartData(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  392. BasicDBObject getForm13aHightPieChartData(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  393. //Form 13a havsralt hight chart end
  394. //Form 14 havsralt hight chart begin
  395. BasicDBObject getForm14HightChartData(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  396. BasicDBObject getForm14HightPieChartData(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  397. //Form 14 havsralt hight chart end
  398. //Form 51 havsralt hight chart begin
  399. BasicDBObject getForm51HightChartData(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  400. BasicDBObject getForm51HightPieChartData(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  401. //Form 51 havsralt hight chart end
  402. //Form 52 havsralt hight chart begin
  403. BasicDBObject getForm52HightChartData(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  404. BasicDBObject getForm52HightPieChartData(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  405. //Form 52 havsralt hight chart end
  406. //Form 53 havsralt hight chart begin
  407. BasicDBObject getForm53HightChartData(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  408. BasicDBObject getForm53HightPieChartData(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  409. //Form 53 havsralt hight chart end
  410. //Form 61 havsralt hight chart begin
  411. BasicDBObject getForm61HightChartData(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  412. BasicDBObject getForm61HightPieChartData(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  413. //Form 61 havsralt hight chart end
  414. //Form 62 havsralt hight chart begin
  415. BasicDBObject getForm62HightChartData(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  416. BasicDBObject getForm62HightPieChartData(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  417. //Form 62 havsralt hight chart end
  418. BasicDBObject getStatistic(LinkedTreeMap criteria, String sessionId, String menuid) throws Exception;
  419. }