structs.go 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. // Author : Eric Kim
  2. // Build Date : 23 Jul 2008 Last Update 02 Aug 2008
  3. // End-Agent for Passcon Multi OS go binding with Windows, MacOS, iOS, and Android
  4. // All rights are reserved.
  5. package locals
  6. import (
  7. "github.com/go-xorm/xorm"
  8. )
  9. // 0. Controller /////////////////////////////////////////////////////////////////
  10. type SyncController struct {
  11. // Ctx *context.Context
  12. UpdateFieldList string
  13. Scb SyncControllerBase
  14. Db *xorm.Engine
  15. }
  16. var GSync SyncController
  17. type SyncControllerBase struct {
  18. ConnString string
  19. OfcCode string
  20. }
  21. // 1. DB /////////////////////////////////////////////////////////////////
  22. type DbCom struct {
  23. StartTime int64 `xorm:"created"`
  24. EndTime int64
  25. UpdateTime int64 `xorm:"updated"`
  26. Ip string
  27. Usr int64
  28. }
  29. // 2. Request /////////////////////////////////////////////////////////////////
  30. type ListFormBalanceVars struct {
  31. YyyyMm string
  32. SelectedId int
  33. StartCode string
  34. EndCode string
  35. }
  36. type CompanySearchVars struct {
  37. CompanyName string
  38. MainContact string
  39. MobileNo string
  40. TelNo string
  41. OrderBy string
  42. }
  43. type MediaSearchVars struct {
  44. StartDate string
  45. EndDate string
  46. SlipNo string
  47. MediaName string
  48. FileName string
  49. LinkLocation string
  50. Linked string
  51. NickName string
  52. BranchName string
  53. OrderBy string
  54. }
  55. type ItemSearchVars struct {
  56. IgroupId int
  57. ItemCode string
  58. ItemName string
  59. SubName string
  60. OrderBy string
  61. }
  62. type SlipSearchVars struct {
  63. StartDate string
  64. EndDate string
  65. SlipNo string
  66. CompanyName string
  67. ItemCode string
  68. QuerySpeed string
  69. OrderBy string
  70. }
  71. type SlipSearchFields struct {
  72. SlipDateField string
  73. SlipNoField string
  74. }
  75. type SingleVars struct {
  76. QueryName string
  77. Id int
  78. }
  79. type SetupBase struct {
  80. SetupCode string
  81. SetupJson string
  82. }
  83. type QueryVars struct {
  84. QueryName string
  85. FilterName string
  86. FilterValue string
  87. SimpleFilter string
  88. SubSimpleFilter string
  89. IsntPagination bool
  90. TestMode string
  91. }
  92. type SelectType1Vars struct {
  93. ListToken string
  94. NameValue string
  95. // Str []FilterBase
  96. // Chk []OptBase
  97. // Rng []RngBase
  98. // Dec []RngBase
  99. // StrItem []FilterBase
  100. // ChkItem []OptBase
  101. // RngItem []RngBase
  102. // DecItem []RngBase
  103. Having SelectFilters
  104. Where SelectFilters
  105. IsDownloadList bool
  106. Balance string
  107. OrderBy string
  108. }
  109. type SelectFilters struct {
  110. Prefix string
  111. Str []FilterBase
  112. Chk []OptBase
  113. Rng []RngBase
  114. Dec []RngBase
  115. }
  116. type OptBase struct {
  117. Opt []FilterBase
  118. }
  119. type FilterBase struct {
  120. FilterValue string
  121. }
  122. type RngBase struct {
  123. FromValue string
  124. ToValue string
  125. }
  126. type PopupList1Vars struct {
  127. PopupFilterName string
  128. PopupFilterValue string
  129. SumFilterType string // "" : Body/Sum 동시적용 1: Sum만 적용, 7: Filter OR SumFilter 로 둘다 적용, 8: OR 로 묶어 Sum만 적용
  130. SumFilterName string
  131. SumFilterValue string
  132. SumSimpleFilter string
  133. }
  134. type ListType1Vars struct {
  135. ListToken string
  136. FilterDate string
  137. StartDate string
  138. EndDate string
  139. FilterFirst string
  140. StartFirst string
  141. EndFirst string
  142. FilterSecond string
  143. StartSecond string
  144. EndSecond string
  145. FilterThird string
  146. StartThird string
  147. EndThird string
  148. FilterFourth string
  149. StartFourth string
  150. EndFourth string
  151. IsAddTotalLine bool
  152. IsExcelColumn bool
  153. IsShowOnlyClosed bool
  154. IsDownloadList bool
  155. IsntPageReturn bool
  156. IsTmpSqlUsed bool
  157. Balance string
  158. OrderBy string
  159. ListFilterName string
  160. ListFilterValue string
  161. ListSimpleFilter string
  162. // SimpleFilter string
  163. // SumFilterType string // "" : Body/Sum 동시적용 1: Sum만 적용, 7: Filter OR SumFilter 로 둘다 적용, 8: OR 로 묶어 Sum만 적용
  164. // SumFilterName string
  165. // SumFilterValue string
  166. // SumSimpleFilter string
  167. }
  168. type BodyCopyPageVars struct {
  169. SlipNoField string
  170. SlipNo string
  171. ItemCode string
  172. CompanyName string
  173. ShowOnlyClosed string
  174. Balance string
  175. DaysFromToday string
  176. OrderBy string
  177. }
  178. type PageVars struct {
  179. MyFilter string
  180. QueryCnt int64
  181. Query string
  182. Fields string
  183. Asc string
  184. Desc string
  185. Limit int
  186. Offset int
  187. ReturnJson string
  188. }
  189. type InputFieldJson struct {
  190. StartDate string
  191. EndDate string
  192. Order int
  193. Select int
  194. QueryInput string
  195. }
  196. type Login struct {
  197. UserId string
  198. Password string
  199. }
  200. // 3. Answer /////////////////////////////////////////////////////////////////
  201. type AnswerBase struct {
  202. SvcSts string
  203. SvcMsg string
  204. }
  205. type ActRowCom struct {
  206. AnswerBase
  207. IdBase
  208. }
  209. type ActPageCom struct {
  210. AnswerBase
  211. IdPageBase
  212. }
  213. type BodyCopyBase struct {
  214. BdId int
  215. Qty string
  216. }
  217. type IdBase struct {
  218. Id int
  219. }
  220. type IdPageBase struct {
  221. Page []IdBase
  222. }
  223. type AbangoApp struct {
  224. YDB *xorm.Engine
  225. }
  226. type InsertVars struct {
  227. QueryName string
  228. InsertType string
  229. ListToken string
  230. IsTruncateTable bool
  231. IsBackupTable bool
  232. IsBackupDb bool
  233. }