w_main_fx.srw 50 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961
  1. $PBExportHeader$w_main_fx.srw
  2. $PBExportComments$分销系统主窗口
  3. forward
  4. global type w_main_fx from w_publ_base
  5. end type
  6. type mdi_1 from mdiclient within w_main_fx
  7. end type
  8. type tab_1 from tab within w_main_fx
  9. end type
  10. type tabpage_sale from userobject within tab_1
  11. end type
  12. type p_ljmail from picture within tabpage_sale
  13. end type
  14. type st_ljmail from uo_text_m_main within tabpage_sale
  15. end type
  16. type st_send_ljmail from uo_text_m_main within tabpage_sale
  17. end type
  18. type dw_sale_msg from datawindow within tabpage_sale
  19. end type
  20. type r_5 from rectangle within tabpage_sale
  21. end type
  22. type st_5 from statictext within tabpage_sale
  23. end type
  24. type r_2 from rectangle within tabpage_sale
  25. end type
  26. type st_2 from statictext within tabpage_sale
  27. end type
  28. type dw_sale_send from u_dw_rbtnfilter within tabpage_sale
  29. end type
  30. type dw_sale_rece from u_dw_rbtnfilter within tabpage_sale
  31. end type
  32. type r_1 from rectangle within tabpage_sale
  33. end type
  34. type st_1 from statictext within tabpage_sale
  35. end type
  36. type st_sale_rece_all from uo_text_m_main within tabpage_sale
  37. end type
  38. type p_3 from picture within tabpage_sale
  39. end type
  40. type rr_1 from roundrectangle within tabpage_sale
  41. end type
  42. type p_send_ljmail from picture within tabpage_sale
  43. end type
  44. type rr_2 from roundrectangle within tabpage_sale
  45. end type
  46. type p_4 from picture within tabpage_sale
  47. end type
  48. type st_sale_send_all from uo_text_m_main within tabpage_sale
  49. end type
  50. type tabpage_sale from userobject within tab_1
  51. p_ljmail p_ljmail
  52. st_ljmail st_ljmail
  53. st_send_ljmail st_send_ljmail
  54. dw_sale_msg dw_sale_msg
  55. r_5 r_5
  56. st_5 st_5
  57. r_2 r_2
  58. st_2 st_2
  59. dw_sale_send dw_sale_send
  60. dw_sale_rece dw_sale_rece
  61. r_1 r_1
  62. st_1 st_1
  63. st_sale_rece_all st_sale_rece_all
  64. p_3 p_3
  65. rr_1 rr_1
  66. p_send_ljmail p_send_ljmail
  67. rr_2 rr_2
  68. p_4 p_4
  69. st_sale_send_all st_sale_send_all
  70. end type
  71. type tabpage_buy from userobject within tab_1
  72. end type
  73. type dw_buy_msg from datawindow within tabpage_buy
  74. end type
  75. type st_ljmail_b from uo_text_m_main within tabpage_buy
  76. end type
  77. type st_send_ljmail_b from uo_text_m_main within tabpage_buy
  78. end type
  79. type p_send_ljmail_b from picture within tabpage_buy
  80. end type
  81. type st_7 from statictext within tabpage_buy
  82. end type
  83. type st_4 from statictext within tabpage_buy
  84. end type
  85. type dw_buy_send from u_dw_rbtnfilter within tabpage_buy
  86. end type
  87. type st_3 from statictext within tabpage_buy
  88. end type
  89. type dw_buy_rece from u_dw_rbtnfilter within tabpage_buy
  90. end type
  91. type r_3 from rectangle within tabpage_buy
  92. end type
  93. type r_4 from rectangle within tabpage_buy
  94. end type
  95. type r_6 from rectangle within tabpage_buy
  96. end type
  97. type rr_3 from roundrectangle within tabpage_buy
  98. end type
  99. type rr_4 from roundrectangle within tabpage_buy
  100. end type
  101. type p_ljmail_b from picture within tabpage_buy
  102. end type
  103. type tabpage_buy from userobject within tab_1
  104. dw_buy_msg dw_buy_msg
  105. st_ljmail_b st_ljmail_b
  106. st_send_ljmail_b st_send_ljmail_b
  107. p_send_ljmail_b p_send_ljmail_b
  108. st_7 st_7
  109. st_4 st_4
  110. dw_buy_send dw_buy_send
  111. st_3 st_3
  112. dw_buy_rece dw_buy_rece
  113. r_3 r_3
  114. r_4 r_4
  115. r_6 r_6
  116. rr_3 rr_3
  117. rr_4 rr_4
  118. p_ljmail_b p_ljmail_b
  119. end type
  120. type tabpage_welcome from userobject within tab_1
  121. end type
  122. type st_welcome from statictext within tabpage_welcome
  123. end type
  124. type tabpage_welcome from userobject within tab_1
  125. st_welcome st_welcome
  126. end type
  127. type tab_1 from tab within w_main_fx
  128. tabpage_sale tabpage_sale
  129. tabpage_buy tabpage_buy
  130. tabpage_welcome tabpage_welcome
  131. end type
  132. type tv_1 from uo_tv_menu_fx within w_main_fx
  133. end type
  134. type p_2 from picture within w_main_fx
  135. end type
  136. type st_refresh from uo_text_m_main within w_main_fx
  137. end type
  138. type st_exit from uo_text_m_main within w_main_fx
  139. end type
  140. type p_exit from picture within w_main_fx
  141. end type
  142. type p_refresh from picture within w_main_fx
  143. end type
  144. type p_5 from picture within w_main_fx
  145. end type
  146. type p_1 from picture within w_main_fx
  147. end type
  148. type st_about from uo_text_m_main within w_main_fx
  149. end type
  150. type cb_1 from commandbutton within w_main_fx
  151. end type
  152. type st_6 from statictext within w_main_fx
  153. end type
  154. end forward
  155. global type w_main_fx from w_publ_base
  156. integer width = 4713
  157. integer height = 2876
  158. string title = "协同系统"
  159. string menuname = "m_main_fx"
  160. boolean maxbox = true
  161. boolean resizable = true
  162. windowtype windowtype = mdihelp!
  163. long backcolor = 32106210
  164. string icon = "graphics\chain_link_128px.ico"
  165. event ue_main_menu_commnd ( )
  166. mdi_1 mdi_1
  167. tab_1 tab_1
  168. tv_1 tv_1
  169. p_2 p_2
  170. st_refresh st_refresh
  171. st_exit st_exit
  172. p_exit p_exit
  173. p_refresh p_refresh
  174. p_5 p_5
  175. p_1 p_1
  176. st_about st_about
  177. cb_1 cb_1
  178. st_6 st_6
  179. end type
  180. global w_main_fx w_main_fx
  181. type variables
  182. //long ins_interval = 60 // 刷新周期(秒) -->已使用全局app_retrieve_interval代替
  183. datawindow dw_sale_rece, dw_sale_send, dw_sale_msg
  184. datawindow dw_buy_rece, dw_buy_send, dw_buy_msg
  185. end variables
  186. forward prototypes
  187. public function integer wf_retrieve ()
  188. public function integer wf_retrieve_sale (ref string arg_msg)
  189. public function integer wf_retrieve_msg (ref string arg_msg)
  190. public function integer wf_open_msg (readonly long arg_msgid)
  191. public subroutine wf_face ()
  192. public function integer wf_retrieve_buy (ref string arg_msg)
  193. public subroutine pf_menu_growth (menu arg_menu, long arg_funcid, long arg_mainid, long arg_functype)
  194. public subroutine wf_menu_tree ()
  195. public function integer wf_retrieve_bingding_apply (ref string arg_msg)
  196. end prototypes
  197. event ue_main_menu_commnd();//
  198. long funcid
  199. string objname
  200. funcid = Message.LongParm
  201. if (funcid > 0) then
  202. if IsValid(s_win_open[funcid].win) then
  203. s_win_open[funcid].win.WindowState = Normal!
  204. s_win_open[funcid].win.BringToTop = true
  205. else
  206. sys_func_pwr.SetFilter('')
  207. sys_func_pwr.Filter()
  208. window lw_win
  209. long row
  210. row = sys_func_pwr.Find('funcid = ' + string(funcid), 1, sys_func_pwr.RowCount())
  211. if (row > 0) then
  212. objname = string(sys_func_pwr.Object.objname[row])
  213. Open(lw_win,objname)
  214. s_win_open[funcid].win = lw_win
  215. end if
  216. end if
  217. end if
  218. end event
  219. public function integer wf_retrieve ();int rslt = 1
  220. //app_usertype 1-采购人员 2-销售人员 3-管理人员
  221. dw_buy_rece.Reset( )
  222. dw_buy_send.Reset( )
  223. dw_sale_rece.Reset( )
  224. dw_sale_send.Reset( )
  225. string arg_msg, sum_msg
  226. arg_msg = ''
  227. if (f_find_fx_user_power(1, ref arg_msg) = 1) then // 1-供应商协同
  228. if (wf_retrieve_sale(ref arg_msg) = 0) then
  229. rslt = 0
  230. sum_msg += arg_msg + '~r~n'
  231. end if
  232. end if
  233. arg_msg = ''
  234. if (f_find_fx_user_power(2, ref arg_msg) = 1) then // 2-客户协同
  235. if (wf_retrieve_buy(ref arg_msg) = 0) then
  236. rslt = 0
  237. sum_msg += arg_msg + '~r~n'
  238. end if
  239. end if
  240. arg_msg = ''
  241. if (wf_retrieve_msg(ref arg_msg) = 0) then // 邮件
  242. rslt = 0
  243. sum_msg += arg_msg + '~r~n'
  244. goto ext
  245. end if
  246. arg_msg = ''
  247. if (wf_retrieve_bingding_apply(ref arg_msg) = 0) then // 邮件
  248. rslt = 0
  249. sum_msg += arg_msg + '~r~n'
  250. goto ext
  251. end if
  252. ext:
  253. if (rslt = 0) then
  254. MessageBox('错误提示', sum_msg)
  255. end if
  256. return rslt
  257. end function
  258. public function integer wf_retrieve_sale (ref string arg_msg);int rslt = 1
  259. string err_msg_sum
  260. oleobject list, item
  261. list = FXAppCom.GetSaleToDoList(app_token_fx, ref arg_msg)
  262. if (arg_msg <> '') then
  263. rslt = 0
  264. err_msg_sum += '获取(供应商协同)待处理清单失败:' + arg_msg + '~r~n'
  265. goto GetSaleDoneList
  266. end if
  267. dw_sale_rece.SetRedraw(false)
  268. long i
  269. for i = 1 to list.Count
  270. item = list.GetItem(i - 1)
  271. dw_sale_rece.Object.comname[i] = item.GetString('comname')
  272. dw_sale_rece.Object.serialnum[i] = item.GetString('serialNum')
  273. dw_sale_rece.Object.sendsccode[i] = item.GetString('sendSCcode')
  274. dw_sale_rece.Object.adduser[i] = item.GetString('addUser')
  275. if (not IsNull(item.GetDateTime('addTime'))) then
  276. dw_sale_rece.Object.addtime[i] = item.GetDateTime('addTime')
  277. end if
  278. dw_sale_rece.Object.status[i] = item.GetInt('status')
  279. dw_sale_rece.Object.billtype[i] = item.GetInt('billType')
  280. dw_sale_rece.Object.summary[i] = item.GetString('summary')
  281. dw_sale_rece.Object.postscript[i] = item.GetString('postscript')
  282. dw_sale_rece.Object.remark[i] = item.GetString('remark')
  283. dw_sale_rece.Object.relatedcode[i] = item.GetString('relatedCode')
  284. // 交期变更用
  285. dw_sale_rece.Object.sendcusid[i] = item.GetString('sendCusid')
  286. dw_sale_rece.Object.receivereltype[i] = item.GetInt('receiveRelType')
  287. dw_sale_rece.Object.receiverelid[i] = item.GetInt('receiveRelID')
  288. next
  289. dw_sale_rece.SetRedraw(true)
  290. GetSaleDoneList:
  291. list = FXAppCom.GetSaleDoneList(app_token_fx, ref arg_msg)
  292. if (arg_msg <> '') then
  293. rslt = 0
  294. err_msg_sum += '获取(供应商协同)处理清单失败:' + arg_msg + '~r~n'
  295. goto ext
  296. end if
  297. dw_sale_send.SetRedraw(false)
  298. for i = 1 to list.Count
  299. item = list.GetItem(i - 1)
  300. dw_sale_send.Object.comname[i] = item.GetString('comname')
  301. dw_sale_send.Object.serialnum[i] = item.GetString('serialNum')
  302. dw_sale_send.Object.sendsccode[i] = item.GetString('receiveSCcode')
  303. dw_sale_send.Object.adduser[i] = item.GetString('addUser')
  304. dw_sale_send.Object.addtime[i] = item.GetDateTime('addTime')
  305. dw_sale_send.Object.status[i] = item.GetInt('status')
  306. dw_sale_send.Object.billtype[i] = item.GetInt('billType')
  307. dw_sale_send.Object.summary[i] = item.GetString('summary')
  308. dw_sale_send.Object.postscript[i] = item.GetString('postscript')
  309. dw_sale_send.Object.remark[i] = item.GetString('remark')
  310. dw_sale_send.Object.relatedcode[i] = item.GetString('relatedCode')
  311. next
  312. dw_sale_send.SetRedraw(true)
  313. ext:
  314. return rslt
  315. end function
  316. public function integer wf_retrieve_msg (ref string arg_msg);int rslt = 1
  317. dw_sale_msg.Reset( )
  318. dw_buy_msg.Reset( )
  319. oleobject list, item
  320. list = FXAppCom.GetMsgList(app_token_fx, 1, 0, ref arg_msg) // 第1个int:boxtype = 1收件 | 第2个int:ifread = 0未读 = 1已读 =-1全部
  321. if (arg_msg <> '') then
  322. rslt = 0
  323. goto ext
  324. end if
  325. datastore ds
  326. ds = create datastore
  327. ds.DataObject = 'dw_ljmail_msg_for_mainface'
  328. long i, row
  329. string temp
  330. for i = 1 to list.Count
  331. item = list.GetItem(i - 1)
  332. row = ds.InsertRow(0)
  333. ds.Object.msgid[row] = item.GetInt('msgid')
  334. ds.Object.sendcomname[row] = item.GetString('sendcomname')
  335. ds.Object.sendempname[row] = item.GetString('sendempname')
  336. ds.Object.subject[row] = item.GetString('subject')
  337. ds.Object.msgid[row] = item.GetInt('msgid')
  338. ds.Object.sendtime[row] = item.GetDateTime('sendtime')
  339. ds.Object.ifread[row] = item.GetInt('ifread')
  340. ds.Object.CusName[row] = item.GetString('CusName')
  341. temp = item.GetString('subject')
  342. if (Len(temp) > 20) then
  343. temp = Mid(temp, 1, 20) + '...'
  344. end if
  345. ds.Object.doc[row] = Trim(item.GetString('CusName')) + '(' + Trim(item.GetString('sendempname')) + ')~r~n' + &
  346. temp + '~t' + &
  347. string(item.GetDateTime('sendtime'), "yyyy-MM-dd hh:mm")
  348. next
  349. if (list.Count > 0) then
  350. dw_sale_msg.Object.Data = ds.Object.Data
  351. dw_buy_msg.Object.Data = ds.Object.Data
  352. end if
  353. ext:
  354. return rslt
  355. end function
  356. public function integer wf_open_msg (readonly long arg_msgid);int rslt = 1
  357. if IsNull(arg_msgid) then
  358. rslt = 0
  359. goto ext
  360. end if
  361. OpenWithParm(w_ljmail_msg_fx, arg_msgid)
  362. ext:
  363. return rslt
  364. end function
  365. public subroutine wf_face ();string arg_msg
  366. boolean pass = false
  367. long cnt = 0
  368. if (f_find_fx_user_power(1, ref arg_msg) = 1) then // 1-供应商协同
  369. tab_1.tabpage_sale.Visible = true
  370. pass = true
  371. tab_1.post selecttab(1)
  372. cnt++
  373. end if
  374. if (f_find_fx_user_power(2, ref arg_msg) = 1) then // 2-客户协同
  375. tab_1.tabpage_buy.Visible = true
  376. if (not pass) then
  377. tab_1.post selecttab(2)
  378. pass = true
  379. end if
  380. cnt++
  381. end if
  382. if (not pass) then
  383. tab_1.tabpage_sale.Visible = false
  384. tab_1.tabpage_buy.Visible = false
  385. tab_1.tabpage_welcome.Visible = true
  386. tab_1.post selecttab(3)
  387. // this.MenuID.hide()
  388. // tv_1.Visible = false
  389. end if
  390. long tmp = 550
  391. if (cnt <= 1) then
  392. p_refresh.X = tab_1.X + tmp
  393. st_refresh.X = tab_1.X + tmp + 74
  394. else
  395. p_refresh.X = tab_1.X + tmp * 2
  396. st_refresh.X = tab_1.X + tmp * 2 + 74
  397. end if
  398. end subroutine
  399. public function integer wf_retrieve_buy (ref string arg_msg);int rslt = 1
  400. string err_msg_sum
  401. oleobject list, item
  402. list = FXAppCom.GetBuyToDoList(app_token_fx, ref arg_msg)
  403. if (arg_msg <> '') then
  404. rslt = 0
  405. err_msg_sum += '获取(客户协同)待处理清单失败:' + arg_msg + '~r~n'
  406. goto GetBuyDoneList
  407. end if
  408. dw_buy_rece.SetRedraw(false)
  409. long i
  410. for i = 1 to list.Count
  411. item = list.GetItem(i - 1)
  412. dw_buy_rece.Object.comname[i] = item.GetString('comname')
  413. dw_buy_rece.Object.serialnum[i] = item.GetString('serialNum')
  414. dw_buy_rece.Object.sendsccode[i] = item.GetString('sendSCcode')
  415. dw_buy_rece.Object.adduser[i] = item.GetString('addUser')
  416. if (not IsNull(item.GetDateTime('addTime'))) then
  417. dw_buy_rece.Object.addtime[i] = item.GetDateTime('addTime')
  418. end if
  419. dw_buy_rece.Object.status[i] = item.GetInt('status')
  420. dw_buy_rece.Object.billtype[i] = item.GetInt('billType')
  421. dw_buy_rece.Object.summary[i] = item.GetString('summary')
  422. dw_buy_rece.Object.postscript[i] = item.GetString('postscript')
  423. dw_buy_rece.Object.remark[i] = item.GetString('remark')
  424. dw_buy_rece.Object.relatedcode[i] = item.GetString('relatedCode')
  425. next
  426. dw_buy_rece.AcceptText()
  427. dw_buy_rece.SetSort('addTime desc')
  428. dw_buy_rece.Sort()
  429. dw_buy_rece.SetRedraw(true)
  430. GetBuyDoneList:
  431. list = FXAppCom.GetBuyDoneList(app_token_fx, ref arg_msg)
  432. if (arg_msg <> '') then
  433. rslt = 0
  434. err_msg_sum += '获取(客户协同)处理清单失败:' + arg_msg + '~r~n'
  435. goto ext
  436. end if
  437. dw_buy_send.SetRedraw(false)
  438. for i = 1 to list.Count
  439. item = list.GetItem(i - 1)
  440. dw_buy_send.Object.comname[i] = item.GetString('comname')
  441. dw_buy_send.Object.serialnum[i] = item.GetString('serialNum')
  442. dw_buy_send.Object.sendsccode[i] = item.GetString('receiveSCcode')
  443. dw_buy_send.Object.adduser[i] = item.GetString('addUser')
  444. if (not IsNull(item.GetDateTime('addTime'))) then
  445. dw_buy_send.Object.addtime[i] = item.GetDateTime('addTime')
  446. end if
  447. dw_buy_send.Object.status[i] = item.GetInt('status')
  448. dw_buy_send.Object.billtype[i] = item.GetInt('billType')
  449. dw_buy_send.Object.summary[i] = item.GetString('summary')
  450. dw_buy_send.Object.postscript[i] = item.GetString('postscript')
  451. dw_buy_send.Object.remark[i] = item.GetString('remark')
  452. dw_buy_send.Object.relatedcode[i] = item.GetString('relatedCode')
  453. next
  454. dw_buy_send.AcceptText()
  455. dw_buy_send.SetSort('addTime desc')
  456. dw_buy_send.Sort()
  457. dw_buy_send.SetRedraw(true)
  458. ext:
  459. return rslt
  460. end function
  461. public subroutine pf_menu_growth (menu arg_menu, long arg_funcid, long arg_mainid, long arg_functype);// arg_menu arg_funcid arg_mainid arg_functype
  462. sys_func_pwr.SetFilter('parentid = ' + string(arg_funcid) + ' and functype <> 9') // functype = 9 - 功能
  463. sys_func_pwr.Filter()
  464. sys_func_pwr.SetSort('sortflag')
  465. sys_func_pwr.Sort()
  466. datastore temp_ds
  467. temp_ds = create datastore
  468. temp_ds.DataObject = 'ds_menu_fx'
  469. temp_ds.Reset()
  470. if (sys_func_pwr.RowCount() > 0) then sys_func_pwr.RowsCopy(1, sys_func_pwr.RowCount(), Primary!, temp_ds, 1, Primary!)
  471. long i, j
  472. long funcid, mainid, functype
  473. if (arg_functype = 2) then // 上一层是嵌入报表模块
  474. elseif (arg_functype = 3) then // 上一层是外挂程序模块
  475. else
  476. for i = 1 to temp_ds.RowCount()
  477. if (temp_ds.Object.ifuse[i] = 0) then continue
  478. if (temp_ds.Object.functype[i] > 9) then continue
  479. if (temp_ds.Object.parentid[i] <> arg_funcid) then continue
  480. m_item newItem
  481. newItem = create m_item
  482. newItem.Text = temp_ds.Object.menuname[i]
  483. newItem.Tag = temp_ds.Object.objname[i]
  484. j = UpperBound(arg_menu.Item) + 1
  485. arg_menu.Item[j] = newItem
  486. // arg_menu arg_funcid arg_mainid arg_functype
  487. funcid = temp_ds.Object.funcid[i]
  488. mainid = temp_ds.Object.mainid[i]
  489. functype = temp_ds.Object.functype[i]
  490. pf_menu_growth(arg_menu.Item[j], funcid, mainid, functype)
  491. next
  492. end if
  493. destroy temp_ds
  494. end subroutine
  495. public subroutine wf_menu_tree ();// menu
  496. s_fx_win s_empty
  497. s_win_open[1000] = s_empty // 防止数组越界 // sys_func_all.RowCount() + 1 // funcid暂时最大不超过1000
  498. this.ChangeMenu(m_main_fx)
  499. pf_menu_growth(MenuID, 0, 0, 0)
  500. m_main_fx.Item[1].Hide()
  501. m_main_fx.Item[1].Show()
  502. // tree
  503. IF sys_mode = 0 THEN
  504. sys_func_pwr.SetFilter('ifuse = 1')
  505. sys_func_pwr.Filter()
  506. ELSE
  507. String ls_str
  508. ls_str = "Pos('"+Ajstr+"',String(funcid)) > 0"
  509. sys_func_pwr.SetFilter(ls_str)
  510. sys_func_pwr.Filter()
  511. END IF
  512. tv_1.init(sys_func_pwr)
  513. end subroutine
  514. public function integer wf_retrieve_bingding_apply (ref string arg_msg);int rslt = 1
  515. oleobject request,response,bindingApplyList
  516. Long cnt
  517. cnt = 0
  518. request = FXAppCom.CreatePbDictionary()
  519. request.SetString('token',app_token_fx)
  520. response = FXAppCom.DoExecute("GetBindingApplyList",request)
  521. arg_msg = response.GetString('ErrMsg')
  522. if (arg_msg <> '') then
  523. rslt = 0
  524. goto ext
  525. end if
  526. bindingApplyList = response.GetPBArray("bindingApplyList")
  527. IF IsValid(bindingApplyList) THEN
  528. cnt = bindingApplyList.Count
  529. END IF
  530. ext:
  531. IF cnt = 0 THEN
  532. st_6.Text = '绑定申请'
  533. ELSE
  534. st_6.Text = '绑定申请('+String(cnt)+')'
  535. END IF
  536. return rslt
  537. end function
  538. on w_main_fx.create
  539. int iCurrent
  540. call super::create
  541. if this.MenuName = "m_main_fx" then this.MenuID = create m_main_fx
  542. this.mdi_1=create mdi_1
  543. this.tab_1=create tab_1
  544. this.tv_1=create tv_1
  545. this.p_2=create p_2
  546. this.st_refresh=create st_refresh
  547. this.st_exit=create st_exit
  548. this.p_exit=create p_exit
  549. this.p_refresh=create p_refresh
  550. this.p_5=create p_5
  551. this.p_1=create p_1
  552. this.st_about=create st_about
  553. this.cb_1=create cb_1
  554. this.st_6=create st_6
  555. iCurrent=UpperBound(this.Control)
  556. this.Control[iCurrent+1]=this.mdi_1
  557. this.Control[iCurrent+2]=this.tab_1
  558. this.Control[iCurrent+3]=this.tv_1
  559. this.Control[iCurrent+4]=this.p_2
  560. this.Control[iCurrent+5]=this.st_refresh
  561. this.Control[iCurrent+6]=this.st_exit
  562. this.Control[iCurrent+7]=this.p_exit
  563. this.Control[iCurrent+8]=this.p_refresh
  564. this.Control[iCurrent+9]=this.p_5
  565. this.Control[iCurrent+10]=this.p_1
  566. this.Control[iCurrent+11]=this.st_about
  567. this.Control[iCurrent+12]=this.cb_1
  568. this.Control[iCurrent+13]=this.st_6
  569. end on
  570. on w_main_fx.destroy
  571. call super::destroy
  572. if IsValid(MenuID) then destroy(MenuID)
  573. destroy(this.mdi_1)
  574. destroy(this.tab_1)
  575. destroy(this.tv_1)
  576. destroy(this.p_2)
  577. destroy(this.st_refresh)
  578. destroy(this.st_exit)
  579. destroy(this.p_exit)
  580. destroy(this.p_refresh)
  581. destroy(this.p_5)
  582. destroy(this.p_1)
  583. destroy(this.st_about)
  584. destroy(this.cb_1)
  585. destroy(this.st_6)
  586. end on
  587. event open;call super::open;wf_menu_tree()
  588. wf_face()
  589. cb_1.Visible = (app_iferpuser = 1)
  590. dw_sale_rece = tab_1.tabpage_sale.dw_sale_rece
  591. dw_sale_send = tab_1.tabpage_sale.dw_sale_send
  592. dw_sale_msg = tab_1.tabpage_sale.dw_sale_msg
  593. dw_buy_rece = tab_1.tabpage_buy.dw_buy_rece
  594. dw_buy_send = tab_1.tabpage_buy.dw_buy_send
  595. dw_buy_msg = tab_1.tabpage_buy.dw_buy_msg
  596. this.Title = app_fx_title_erp + '协同系统-' + app_comname + '-' + app_username
  597. string mdihelpStr
  598. mdihelpStr = '用户:' + Trim(app_username) + ',您好!'
  599. this.SetMicroHelp(mdihelpStr)
  600. wf_retrieve( )
  601. timer(app_retrieve_interval) // 自动刷新
  602. // 协同系统全局变量初始化
  603. sys_ds_ljmailbox = create datastore // 协同系统龙嘉邮件邮箱(当前用户)
  604. sys_ds_ljmailbox.DataObject = 'ds_u_ljmail_box'
  605. end event
  606. event resize;call super::resize;if (this.Width < 4680) then this.Width = 4680
  607. if (this.Height < 2500) then this.Height = 2500
  608. long midhelp_height
  609. midhelp_height = 60
  610. // 上
  611. p_2.X = this.workspacewidth( ) - p_2.Width
  612. p_1.X = p_5.Width
  613. p_1.Width = this.workspacewidth( ) - p_2.Width - p_5.Width
  614. //p_refresh.X = this.workspacewidth( ) - 1614--写在wf_face()
  615. //st_refresh.X = this.workspacewidth( ) - 1541--写在wf_face()
  616. p_exit.X = this.workspacewidth( ) - 330
  617. st_exit.X = this.workspacewidth( ) - 256
  618. st_about.X = this.workspacewidth( ) - 544
  619. st_6.X = this.workspacewidth( ) - 1192
  620. //st_6.X = this.workspacewidth( ) - 1038
  621. //rb_auto.X = this.workspacewidth( ) - 906
  622. //rb_unauto.X = this.workspacewidth( ) - 768
  623. // 左
  624. tv_1.Height = this.workspaceheight( ) - tv_1.Y - 10 - midhelp_height
  625. // 右
  626. tab_1.Height = this.workspaceheight( ) - tab_1.Y - midhelp_height
  627. tab_1.Width = this.workspacewidth( ) - tab_1.X
  628. // tab_1右
  629. tab_1.tabpage_sale.r_5.X = tab_1.Width - tab_1.tabpage_sale.r_5.Width - 40
  630. tab_1.tabpage_sale.st_5.X = tab_1.tabpage_sale.r_5.X + 23
  631. tab_1.tabpage_sale.rr_1.X = tab_1.tabpage_sale.st_5.X + 339
  632. tab_1.tabpage_sale.p_send_ljmail.X = tab_1.tabpage_sale.st_5.X + 357
  633. tab_1.tabpage_sale.st_send_ljmail.X = tab_1.tabpage_sale.st_5.X + 444
  634. tab_1.tabpage_sale.rr_2.X = tab_1.tabpage_sale.st_5.X + 654
  635. tab_1.tabpage_sale.p_ljmail.X = tab_1.tabpage_sale.st_5.X + 672
  636. tab_1.tabpage_sale.st_ljmail.X = tab_1.tabpage_sale.st_5.X + 727
  637. tab_1.tabpage_sale.dw_sale_msg.X = tab_1.tabpage_sale.r_5.X
  638. tab_1.tabpage_sale.dw_sale_msg.Height = tab_1.Height - 232 - 20
  639. tab_1.tabpage_buy.r_6.X = tab_1.Width - tab_1.tabpage_buy.r_6.Width - 40
  640. tab_1.tabpage_buy.st_7.X = tab_1.tabpage_buy.r_6.X + 23
  641. tab_1.tabpage_buy.rr_3.X = tab_1.tabpage_buy.st_7.X + 339
  642. tab_1.tabpage_buy.p_send_ljmail_b.X = tab_1.tabpage_buy.st_7.X + 357
  643. tab_1.tabpage_buy.st_send_ljmail_b.X = tab_1.tabpage_buy.st_7.X + 444
  644. tab_1.tabpage_buy.rr_4.X = tab_1.tabpage_buy.st_7.X + 654
  645. tab_1.tabpage_buy.p_ljmail_b.X = tab_1.tabpage_buy.st_7.X + 672
  646. tab_1.tabpage_buy.st_ljmail_b.X = tab_1.tabpage_buy.st_7.X + 727
  647. tab_1.tabpage_buy.dw_buy_msg.X = tab_1.tabpage_buy.r_6.X
  648. tab_1.tabpage_buy.dw_buy_msg.Height = tab_1.Height - 232 - 20
  649. long dwHeight
  650. dwHeight = (tab_1.tabpage_sale.r_5.Height + tab_1.tabpage_sale.dw_sale_msg.Height) / 2 - tab_1.tabpage_sale.r_5.Height - 5
  651. // tab_1左上
  652. tab_1.tabpage_sale.r_1.Width = tab_1.Width - tab_1.tabpage_sale.r_5.Width - 60
  653. tab_1.tabpage_sale.dw_sale_rece.Width = tab_1.tabpage_sale.r_1.Width
  654. tab_1.tabpage_sale.dw_sale_rece.Height = dwHeight
  655. tab_1.tabpage_buy.r_3.Width = tab_1.Width - tab_1.tabpage_buy.r_6.Width - 60
  656. tab_1.tabpage_buy.dw_buy_rece.Width = tab_1.tabpage_buy.r_3.Width
  657. tab_1.tabpage_buy.dw_buy_rece.Height = dwHeight
  658. // tab_1左下
  659. tab_1.tabpage_sale.r_2.Width = tab_1.tabpage_sale.r_1.Width
  660. tab_1.tabpage_sale.dw_sale_send.Width = tab_1.tabpage_sale.r_1.Width
  661. tab_1.tabpage_sale.dw_sale_send.Height = dwHeight
  662. tab_1.tabpage_sale.r_2.Y = tab_1.tabpage_sale.dw_sale_rece.Y + dwHeight + 10
  663. tab_1.tabpage_sale.st_2.Y = tab_1.tabpage_sale.r_2.Y + 32
  664. tab_1.tabpage_sale.dw_sale_send.Y = tab_1.tabpage_sale.r_2.Y + tab_1.tabpage_sale.r_2.Height - 4
  665. tab_1.tabpage_sale.p_4.Y = tab_1.tabpage_sale.r_2.Y + 32
  666. tab_1.tabpage_sale.st_sale_send_all.Y = tab_1.tabpage_sale.r_2.Y + 36
  667. tab_1.tabpage_buy.r_4.Width = tab_1.tabpage_buy.r_3.Width
  668. tab_1.tabpage_buy.dw_buy_send.Width = tab_1.tabpage_buy.r_3.Width
  669. tab_1.tabpage_buy.dw_buy_send.Height = dwHeight
  670. tab_1.tabpage_buy.r_4.Y = tab_1.tabpage_buy.dw_buy_rece.Y + dwHeight + 10
  671. tab_1.tabpage_buy.st_4.Y = tab_1.tabpage_buy.r_4.Y + 32
  672. tab_1.tabpage_buy.dw_buy_send.Y = tab_1.tabpage_buy.r_4.Y + tab_1.tabpage_buy.r_4.Height - 4
  673. //tab_1.tabpage_buy.p_4.Y = tab_1.tabpage_buy.r_2.Y + 32
  674. //tab_1.tabpage_buy.st_sale_send_all.Y = tab_1.tabpage_buy.r_2.Y + 36
  675. // welcome
  676. tab_1.tabpage_welcome.st_welcome.X = tab_1.Width / 2 - tab_1.tabpage_welcome.st_welcome.Width / 2
  677. end event
  678. event closequery;call super::closequery;if (MessageBox('提示', '确定要退出系统?', Question!, YesNo!) <> 1) then return 1
  679. end event
  680. event timer;call super::timer;wf_retrieve( )
  681. end event
  682. event key;call super::key;if (key = KeyF5!) then
  683. wf_retrieve( )
  684. elseif (key = KeyEscape!) then
  685. st_exit.post event clicked()
  686. elseif (key = KeyF12!) then
  687. //Open(w_spt_mtrl_view_fx)
  688. //Open(w_shopcart_fx)
  689. //Open(w_quote_his_fx)
  690. end if
  691. end event
  692. event close;call super::close;destroy sys_func_all
  693. destroy sys_func_pwr
  694. destroy sys_ds_ljmailbox
  695. if IsValid(w_login_fx) then
  696. Close(w_login_fx)
  697. end if
  698. end event
  699. type cb_func from w_publ_base`cb_func within w_main_fx
  700. boolean visible = false
  701. integer x = 4507
  702. integer y = 2196
  703. integer width = 402
  704. integer height = 100
  705. integer taborder = 0
  706. boolean enabled = false
  707. end type
  708. type cb_exit from w_publ_base`cb_exit within w_main_fx
  709. boolean visible = false
  710. integer x = 4494
  711. integer y = 2352
  712. integer width = 448
  713. integer height = 100
  714. integer taborder = 0
  715. boolean enabled = false
  716. string text = "0"
  717. string normalpicname = "graphics\ic_06.bmp"
  718. integer picsize = 16
  719. end type
  720. type mdi_1 from mdiclient within w_main_fx
  721. long BackColor=268435456
  722. end type
  723. type tab_1 from tab within w_main_fx
  724. integer x = 905
  725. integer y = 276
  726. integer width = 3397
  727. integer height = 2064
  728. integer taborder = 20
  729. integer textsize = -11
  730. integer weight = 400
  731. fontcharset fontcharset = gb2312charset!
  732. fontpitch fontpitch = variable!
  733. string facename = "宋体"
  734. long backcolor = 32106210
  735. boolean raggedright = true
  736. boolean focusonbuttondown = true
  737. integer selectedtab = 1
  738. tabpage_sale tabpage_sale
  739. tabpage_buy tabpage_buy
  740. tabpage_welcome tabpage_welcome
  741. end type
  742. on tab_1.create
  743. this.tabpage_sale=create tabpage_sale
  744. this.tabpage_buy=create tabpage_buy
  745. this.tabpage_welcome=create tabpage_welcome
  746. this.Control[]={this.tabpage_sale,&
  747. this.tabpage_buy,&
  748. this.tabpage_welcome}
  749. end on
  750. on tab_1.destroy
  751. destroy(this.tabpage_sale)
  752. destroy(this.tabpage_buy)
  753. destroy(this.tabpage_welcome)
  754. end on
  755. type tabpage_sale from userobject within tab_1
  756. boolean visible = false
  757. integer x = 18
  758. integer y = 16
  759. integer width = 3360
  760. integer height = 2032
  761. long backcolor = 16777215
  762. string text = "供应商协同"
  763. long tabtextcolor = 33554432
  764. long tabbackcolor = 16777215
  765. string picturename = "graphics\ic_12.png"
  766. long picturemaskcolor = 536870912
  767. p_ljmail p_ljmail
  768. st_ljmail st_ljmail
  769. st_send_ljmail st_send_ljmail
  770. dw_sale_msg dw_sale_msg
  771. r_5 r_5
  772. st_5 st_5
  773. r_2 r_2
  774. st_2 st_2
  775. dw_sale_send dw_sale_send
  776. dw_sale_rece dw_sale_rece
  777. r_1 r_1
  778. st_1 st_1
  779. st_sale_rece_all st_sale_rece_all
  780. p_3 p_3
  781. rr_1 rr_1
  782. p_send_ljmail p_send_ljmail
  783. rr_2 rr_2
  784. p_4 p_4
  785. st_sale_send_all st_sale_send_all
  786. end type
  787. on tabpage_sale.create
  788. this.p_ljmail=create p_ljmail
  789. this.st_ljmail=create st_ljmail
  790. this.st_send_ljmail=create st_send_ljmail
  791. this.dw_sale_msg=create dw_sale_msg
  792. this.r_5=create r_5
  793. this.st_5=create st_5
  794. this.r_2=create r_2
  795. this.st_2=create st_2
  796. this.dw_sale_send=create dw_sale_send
  797. this.dw_sale_rece=create dw_sale_rece
  798. this.r_1=create r_1
  799. this.st_1=create st_1
  800. this.st_sale_rece_all=create st_sale_rece_all
  801. this.p_3=create p_3
  802. this.rr_1=create rr_1
  803. this.p_send_ljmail=create p_send_ljmail
  804. this.rr_2=create rr_2
  805. this.p_4=create p_4
  806. this.st_sale_send_all=create st_sale_send_all
  807. this.Control[]={this.p_ljmail,&
  808. this.st_ljmail,&
  809. this.st_send_ljmail,&
  810. this.dw_sale_msg,&
  811. this.r_5,&
  812. this.st_5,&
  813. this.r_2,&
  814. this.st_2,&
  815. this.dw_sale_send,&
  816. this.dw_sale_rece,&
  817. this.r_1,&
  818. this.st_1,&
  819. this.st_sale_rece_all,&
  820. this.p_3,&
  821. this.rr_1,&
  822. this.p_send_ljmail,&
  823. this.rr_2,&
  824. this.p_4,&
  825. this.st_sale_send_all}
  826. end on
  827. on tabpage_sale.destroy
  828. destroy(this.p_ljmail)
  829. destroy(this.st_ljmail)
  830. destroy(this.st_send_ljmail)
  831. destroy(this.dw_sale_msg)
  832. destroy(this.r_5)
  833. destroy(this.st_5)
  834. destroy(this.r_2)
  835. destroy(this.st_2)
  836. destroy(this.dw_sale_send)
  837. destroy(this.dw_sale_rece)
  838. destroy(this.r_1)
  839. destroy(this.st_1)
  840. destroy(this.st_sale_rece_all)
  841. destroy(this.p_3)
  842. destroy(this.rr_1)
  843. destroy(this.p_send_ljmail)
  844. destroy(this.rr_2)
  845. destroy(this.p_4)
  846. destroy(this.st_sale_send_all)
  847. end on
  848. type p_ljmail from picture within tabpage_sale
  849. integer x = 2811
  850. integer y = 44
  851. integer width = 69
  852. integer height = 52
  853. string pointer = "HAND.CUR"
  854. boolean originalsize = true
  855. string picturename = "graphics\ic_15.png"
  856. boolean focusrectangle = false
  857. end type
  858. event clicked;tab_1.tabpage_sale.st_ljmail.post event clicked()
  859. end event
  860. type st_ljmail from uo_text_m_main within tabpage_sale
  861. integer x = 2866
  862. integer y = 44
  863. integer width = 210
  864. integer height = 48
  865. integer textsize = -10
  866. long backcolor = 32106210
  867. string text = "管理"
  868. alignment alignment = center!
  869. end type
  870. event clicked;call super::clicked;Open(w_ljmail_manager_fx)
  871. end event
  872. type st_send_ljmail from uo_text_m_main within tabpage_sale
  873. integer x = 2583
  874. integer y = 44
  875. integer width = 169
  876. integer height = 48
  877. integer textsize = -10
  878. long backcolor = 32106210
  879. string text = "发送"
  880. alignment alignment = center!
  881. end type
  882. event clicked;call super::clicked;OpenWithParm(w_ljmail_send_fx, '')
  883. end event
  884. type dw_sale_msg from datawindow within tabpage_sale
  885. event dwnkey pbm_dwnkey
  886. integer x = 2112
  887. integer y = 124
  888. integer width = 1001
  889. integer height = 1588
  890. integer taborder = 40
  891. string title = "none"
  892. string dataobject = "dw_ljmail_msg_for_mainface"
  893. boolean vscrollbar = true
  894. boolean livescroll = true
  895. end type
  896. event dwnkey;if keydown(KeyF5!) then
  897. wf_retrieve( )
  898. elseif keydown(KeyEscape!) then
  899. st_exit.post event clicked()
  900. end if
  901. end event
  902. event clicked;if (row <= 0) then
  903. this.SelectRow(0, false)
  904. return
  905. end if
  906. this.SelectRow(0, false)
  907. this.SelectRow(row, true)
  908. end event
  909. event doubleclicked;if (row <= 0) then return
  910. long msgid
  911. msgid = this.Object.msgid[row]
  912. wf_open_msg(msgid)
  913. end event
  914. type r_5 from rectangle within tabpage_sale
  915. long linecolor = 134217734
  916. integer linethickness = 2
  917. long fillcolor = 16777215
  918. integer x = 2112
  919. integer y = 12
  920. integer width = 1001
  921. integer height = 124
  922. end type
  923. type st_5 from statictext within tabpage_sale
  924. integer x = 2139
  925. integer y = 44
  926. integer width = 311
  927. integer height = 60
  928. integer textsize = -11
  929. integer weight = 700
  930. fontcharset fontcharset = gb2312charset!
  931. fontpitch fontpitch = variable!
  932. string facename = "宋体"
  933. long textcolor = 8421376
  934. long backcolor = 16777215
  935. string text = "消息"
  936. long bordercolor = 12632256
  937. boolean focusrectangle = false
  938. end type
  939. type r_2 from rectangle within tabpage_sale
  940. long linecolor = 134217734
  941. integer linethickness = 2
  942. long fillcolor = 16777215
  943. integer y = 896
  944. integer width = 2098
  945. integer height = 124
  946. end type
  947. type st_2 from statictext within tabpage_sale
  948. integer x = 32
  949. integer y = 928
  950. integer width = 530
  951. integer height = 60
  952. integer textsize = -11
  953. integer weight = 700
  954. fontcharset fontcharset = gb2312charset!
  955. fontpitch fontpitch = variable!
  956. string facename = "宋体"
  957. long textcolor = 8421376
  958. long backcolor = 16777215
  959. string text = "待采购人员处理"
  960. long bordercolor = 12632256
  961. boolean focusrectangle = false
  962. end type
  963. type dw_sale_send from u_dw_rbtnfilter within tabpage_sale
  964. integer y = 1012
  965. integer width = 2098
  966. integer height = 700
  967. integer taborder = 30
  968. string dataobject = "dw_fx_feedback"
  969. boolean hscrollbar = true
  970. boolean vscrollbar = true
  971. borderstyle borderstyle = stylebox!
  972. boolean rbutton_filter_use = true
  973. boolean rbutton_setposition_use = true
  974. boolean titleclick_sort_use = true
  975. boolean setcolumn_visible_use = false
  976. boolean autosave_filter_use = false
  977. boolean autosave_sort_use = false
  978. boolean autosave_setlayout_use = false
  979. boolean autosave_columnvisible_use = false
  980. end type
  981. event dwnkey;if keydown(KeyF4!) then //read layout
  982. uf_read_profile_filter()
  983. uf_read_profile_sort()
  984. //uf_read_profile_layout()
  985. elseif keydown(KeyF5!) then //save layout 不含列显示
  986. uf_save_profile_filter()
  987. uf_save_profile_sort()
  988. wf_retrieve( )
  989. //uf_save_profile_layout()
  990. elseif keydown(KeyF9!) then //reset layout 不含列显示
  991. uf_reset_layout()
  992. elseif keydown(KeyF2!) then //save layout 不含列显示
  993. this.triggerevent('ue_setlayout')
  994. elseif keydown(KeyEscape!) then
  995. st_exit.post event clicked()
  996. end if
  997. end event
  998. event clicked;call super::clicked;if (row > 0) then
  999. this.SelectRow(0, false)
  1000. this.SelectRow(row, true)
  1001. this.SetRow(row)
  1002. end if
  1003. end event
  1004. type dw_sale_rece from u_dw_rbtnfilter within tabpage_sale
  1005. integer y = 124
  1006. integer width = 2098
  1007. integer height = 700
  1008. integer taborder = 20
  1009. string dataobject = "dw_fx_feedback"
  1010. boolean hscrollbar = true
  1011. boolean vscrollbar = true
  1012. borderstyle borderstyle = stylebox!
  1013. boolean rbutton_filter_use = true
  1014. boolean rbutton_setposition_use = true
  1015. boolean titleclick_sort_use = true
  1016. boolean setcolumn_visible_use = false
  1017. boolean autosave_filter_use = false
  1018. boolean autosave_sort_use = false
  1019. boolean autosave_setlayout_use = false
  1020. boolean autosave_columnvisible_use = false
  1021. end type
  1022. event clicked;call super::clicked;if (row > 0) then
  1023. this.SelectRow(0, false)
  1024. this.SelectRow(row, true)
  1025. this.SetRow(row)
  1026. end if
  1027. end event
  1028. event doubleclicked;call super::doubleclicked;long billtype, ret
  1029. if (row > 0) then
  1030. billtype = this.Object.billtype[row]
  1031. s_open_packet s_tran
  1032. s_tran.sn = this.Object.serialnum[row]
  1033. s_tran.summary = this.Object.summary[row]
  1034. s_tran.postscript = this.Object.postscript[row]
  1035. s_tran.remark = this.Object.remark[row]
  1036. s_tran.comname = this.Object.comname[row]
  1037. s_tran.adduser = this.Object.adduser[row]
  1038. s_tran.addtime = this.Object.addtime[row]
  1039. // 客户采购订单交期变更单 用
  1040. // s_tran.sendsccode = this.Object.sendsccode[row]
  1041. s_tran.sendcusid = this.Object.sendcusid[row]
  1042. s_tran.receivereltype = this.Object.receivereltype[row]
  1043. s_tran.receiverelid = this.Object.receiverelid[row]
  1044. if (billtype = 0) then // 客户询价单
  1045. OpenWithParm(w_spt_price_rece_fx, s_tran)
  1046. ret = Message.DoubleParm
  1047. if (ret = 1) then
  1048. Open(w_quote_fx)
  1049. end if
  1050. elseif (billtype = 2) then // 客户采购订单
  1051. OpenWithParm(w_buytask_rece_fx, s_tran)
  1052. elseif (billtype = 26) then // 客户采购订单交期变更单
  1053. OpenWithParm(w_buytask_rqdate_rece_fx, s_tran)
  1054. elseif (billtype = 28) then // 供应商对账表
  1055. Open(w_rp_mstpay_fx)
  1056. else
  1057. end if
  1058. end if
  1059. end event
  1060. event dwnkey;if keydown(KeyF4!) then //read layout
  1061. uf_read_profile_filter()
  1062. uf_read_profile_sort()
  1063. //uf_read_profile_layout()
  1064. elseif keydown(KeyF5!) then //save layout 不含列显示
  1065. uf_save_profile_filter()
  1066. uf_save_profile_sort()
  1067. wf_retrieve( )
  1068. //uf_save_profile_layout()
  1069. elseif keydown(KeyF9!) then //reset layout 不含列显示
  1070. uf_reset_layout()
  1071. elseif keydown(KeyF2!) then //save layout 不含列显示
  1072. this.triggerevent('ue_setlayout')
  1073. elseif keydown(KeyEscape!) then
  1074. st_exit.post event clicked()
  1075. end if
  1076. end event
  1077. type r_1 from rectangle within tabpage_sale
  1078. long linecolor = 134217734
  1079. integer linethickness = 2
  1080. long fillcolor = 16777215
  1081. integer y = 12
  1082. integer width = 2098
  1083. integer height = 124
  1084. end type
  1085. type st_1 from statictext within tabpage_sale
  1086. integer x = 32
  1087. integer y = 44
  1088. integer width = 311
  1089. integer height = 60
  1090. integer textsize = -11
  1091. integer weight = 700
  1092. fontcharset fontcharset = gb2312charset!
  1093. fontpitch fontpitch = variable!
  1094. string facename = "宋体"
  1095. long textcolor = 8421376
  1096. long backcolor = 16777215
  1097. string text = "待我处理"
  1098. long bordercolor = 12632256
  1099. boolean focusrectangle = false
  1100. end type
  1101. type st_sale_rece_all from uo_text_m_main within tabpage_sale
  1102. integer x = 672
  1103. integer y = 44
  1104. integer width = 370
  1105. integer height = 64
  1106. boolean bringtotop = true
  1107. integer textsize = -10
  1108. string text = "查看全部记录"
  1109. end type
  1110. event clicked;call super::clicked;Open(w_sale_rece_his_fx)
  1111. end event
  1112. type p_3 from picture within tabpage_sale
  1113. event ue_mousemove pbm_mousemove
  1114. integer x = 594
  1115. integer y = 44
  1116. integer width = 73
  1117. integer height = 64
  1118. boolean bringtotop = true
  1119. string pointer = "HAND.CUR"
  1120. boolean originalsize = true
  1121. string picturename = "graphics\ic_11.png"
  1122. boolean focusrectangle = false
  1123. end type
  1124. event ue_mousemove;//tab_1.tabpage_sale.st_sale_rece_all.post event mousemove(flags, xpos, ypos)
  1125. end event
  1126. event clicked;tab_1.tabpage_sale.st_sale_rece_all.post event clicked()
  1127. //Open(w_sale_rece_his_fx)
  1128. end event
  1129. type rr_1 from roundrectangle within tabpage_sale
  1130. long linecolor = 32106210
  1131. integer linethickness = 4
  1132. long fillcolor = 32106210
  1133. integer x = 2482
  1134. integer y = 28
  1135. integer width = 306
  1136. integer height = 84
  1137. integer cornerheight = 40
  1138. integer cornerwidth = 46
  1139. end type
  1140. type p_send_ljmail from picture within tabpage_sale
  1141. event ue_mousemove pbm_mousemove
  1142. integer x = 2496
  1143. integer y = 32
  1144. integer width = 91
  1145. integer height = 68
  1146. string pointer = "HAND.CUR"
  1147. boolean originalsize = true
  1148. string picturename = "graphics\ic_14.png"
  1149. boolean focusrectangle = false
  1150. end type
  1151. event ue_mousemove;//tab_1.tabpage_sale.st_send_ljmail.post event mousemove(0,0,0)
  1152. end event
  1153. event clicked;tab_1.tabpage_sale.st_send_ljmail.post event clicked()
  1154. end event
  1155. type rr_2 from roundrectangle within tabpage_sale
  1156. long linecolor = 32106210
  1157. integer linethickness = 4
  1158. long fillcolor = 32106210
  1159. integer x = 2793
  1160. integer y = 28
  1161. integer width = 306
  1162. integer height = 84
  1163. integer cornerheight = 40
  1164. integer cornerwidth = 46
  1165. end type
  1166. type p_4 from picture within tabpage_sale
  1167. event ue_mousemove pbm_mousemove
  1168. integer x = 594
  1169. integer y = 928
  1170. integer width = 73
  1171. integer height = 64
  1172. boolean bringtotop = true
  1173. string pointer = "HAND.CUR"
  1174. boolean originalsize = true
  1175. string picturename = "graphics\ic_11.png"
  1176. boolean focusrectangle = false
  1177. end type
  1178. event ue_mousemove;//tab_1.tabpage_sale.st_sale_send_all.post event mousemove(flags, xpos, ypos)
  1179. end event
  1180. event clicked;tab_1.tabpage_sale.st_sale_send_all.post event clicked()
  1181. end event
  1182. type st_sale_send_all from uo_text_m_main within tabpage_sale
  1183. integer x = 672
  1184. integer y = 932
  1185. integer width = 370
  1186. integer height = 64
  1187. boolean bringtotop = true
  1188. integer textsize = -10
  1189. string text = "查看全部记录"
  1190. end type
  1191. event clicked;call super::clicked;Open(w_sale_send_his_fx)
  1192. end event
  1193. type tabpage_buy from userobject within tab_1
  1194. boolean visible = false
  1195. integer x = 18
  1196. integer y = 16
  1197. integer width = 3360
  1198. integer height = 2032
  1199. long backcolor = 16777215
  1200. string text = "客户协同"
  1201. long tabtextcolor = 33554432
  1202. long tabbackcolor = 16777215
  1203. string picturename = "graphics\ic_13.png"
  1204. long picturemaskcolor = 536870912
  1205. dw_buy_msg dw_buy_msg
  1206. st_ljmail_b st_ljmail_b
  1207. st_send_ljmail_b st_send_ljmail_b
  1208. p_send_ljmail_b p_send_ljmail_b
  1209. st_7 st_7
  1210. st_4 st_4
  1211. dw_buy_send dw_buy_send
  1212. st_3 st_3
  1213. dw_buy_rece dw_buy_rece
  1214. r_3 r_3
  1215. r_4 r_4
  1216. r_6 r_6
  1217. rr_3 rr_3
  1218. rr_4 rr_4
  1219. p_ljmail_b p_ljmail_b
  1220. end type
  1221. on tabpage_buy.create
  1222. this.dw_buy_msg=create dw_buy_msg
  1223. this.st_ljmail_b=create st_ljmail_b
  1224. this.st_send_ljmail_b=create st_send_ljmail_b
  1225. this.p_send_ljmail_b=create p_send_ljmail_b
  1226. this.st_7=create st_7
  1227. this.st_4=create st_4
  1228. this.dw_buy_send=create dw_buy_send
  1229. this.st_3=create st_3
  1230. this.dw_buy_rece=create dw_buy_rece
  1231. this.r_3=create r_3
  1232. this.r_4=create r_4
  1233. this.r_6=create r_6
  1234. this.rr_3=create rr_3
  1235. this.rr_4=create rr_4
  1236. this.p_ljmail_b=create p_ljmail_b
  1237. this.Control[]={this.dw_buy_msg,&
  1238. this.st_ljmail_b,&
  1239. this.st_send_ljmail_b,&
  1240. this.p_send_ljmail_b,&
  1241. this.st_7,&
  1242. this.st_4,&
  1243. this.dw_buy_send,&
  1244. this.st_3,&
  1245. this.dw_buy_rece,&
  1246. this.r_3,&
  1247. this.r_4,&
  1248. this.r_6,&
  1249. this.rr_3,&
  1250. this.rr_4,&
  1251. this.p_ljmail_b}
  1252. end on
  1253. on tabpage_buy.destroy
  1254. destroy(this.dw_buy_msg)
  1255. destroy(this.st_ljmail_b)
  1256. destroy(this.st_send_ljmail_b)
  1257. destroy(this.p_send_ljmail_b)
  1258. destroy(this.st_7)
  1259. destroy(this.st_4)
  1260. destroy(this.dw_buy_send)
  1261. destroy(this.st_3)
  1262. destroy(this.dw_buy_rece)
  1263. destroy(this.r_3)
  1264. destroy(this.r_4)
  1265. destroy(this.r_6)
  1266. destroy(this.rr_3)
  1267. destroy(this.rr_4)
  1268. destroy(this.p_ljmail_b)
  1269. end on
  1270. type dw_buy_msg from datawindow within tabpage_buy
  1271. event dwnkey pbm_dwnkey
  1272. integer x = 2112
  1273. integer y = 124
  1274. integer width = 1001
  1275. integer height = 1500
  1276. integer taborder = 50
  1277. string title = "none"
  1278. string dataobject = "dw_ljmail_msg_for_mainface"
  1279. boolean livescroll = true
  1280. end type
  1281. event dwnkey;if keydown(KeyF5!) then
  1282. wf_retrieve( )
  1283. elseif keydown(KeyEscape!) then
  1284. st_exit.post event clicked()
  1285. end if
  1286. end event
  1287. event clicked;if (row <= 0) then
  1288. this.SelectRow(0, false)
  1289. return
  1290. end if
  1291. this.SelectRow(0, false)
  1292. this.SelectRow(row, true)
  1293. end event
  1294. event doubleclicked;if (row <= 0) then return
  1295. long msgid
  1296. msgid = this.Object.msgid[row]
  1297. wf_open_msg(msgid)
  1298. end event
  1299. type st_ljmail_b from uo_text_m_main within tabpage_buy
  1300. integer x = 2866
  1301. integer y = 44
  1302. integer width = 210
  1303. integer height = 48
  1304. integer textsize = -10
  1305. long backcolor = 32106210
  1306. string text = "管理"
  1307. alignment alignment = center!
  1308. end type
  1309. event clicked;call super::clicked;Open(w_ljmail_manager_fx)
  1310. end event
  1311. type st_send_ljmail_b from uo_text_m_main within tabpage_buy
  1312. integer x = 2583
  1313. integer y = 44
  1314. integer width = 169
  1315. integer height = 48
  1316. integer textsize = -10
  1317. long backcolor = 32106210
  1318. string text = "发送"
  1319. alignment alignment = center!
  1320. end type
  1321. event clicked;call super::clicked;OpenWithParm(w_ljmail_send_fx, '')
  1322. end event
  1323. type p_send_ljmail_b from picture within tabpage_buy
  1324. event ue_mousemove pbm_mousemove
  1325. integer x = 2496
  1326. integer y = 32
  1327. integer width = 91
  1328. integer height = 68
  1329. string pointer = "HAND.CUR"
  1330. string picturename = "graphics\ic_14.png"
  1331. boolean focusrectangle = false
  1332. end type
  1333. event ue_mousemove;//tab_1.tabpage_sale.st_send_ljmail.post event mousemove(0,0,0)
  1334. end event
  1335. event clicked;tab_1.tabpage_buy.st_send_ljmail_b.post event clicked()
  1336. end event
  1337. type st_7 from statictext within tabpage_buy
  1338. integer x = 2139
  1339. integer y = 44
  1340. integer width = 311
  1341. integer height = 60
  1342. boolean bringtotop = true
  1343. integer textsize = -11
  1344. integer weight = 700
  1345. fontcharset fontcharset = gb2312charset!
  1346. fontpitch fontpitch = variable!
  1347. string facename = "宋体"
  1348. long textcolor = 8421376
  1349. long backcolor = 16777215
  1350. string text = "消息"
  1351. long bordercolor = 12632256
  1352. boolean focusrectangle = false
  1353. end type
  1354. type st_4 from statictext within tabpage_buy
  1355. integer x = 32
  1356. integer y = 928
  1357. integer width = 457
  1358. integer height = 68
  1359. integer textsize = -11
  1360. integer weight = 700
  1361. fontcharset fontcharset = gb2312charset!
  1362. fontpitch fontpitch = variable!
  1363. string facename = "宋体"
  1364. long textcolor = 8421376
  1365. long backcolor = 16777215
  1366. string text = "待供应商处理"
  1367. long bordercolor = 12632256
  1368. boolean focusrectangle = false
  1369. end type
  1370. type dw_buy_send from u_dw_rbtnfilter within tabpage_buy
  1371. integer y = 1012
  1372. integer width = 2098
  1373. integer height = 620
  1374. integer taborder = 30
  1375. string dataobject = "dw_fx_feedback"
  1376. boolean hscrollbar = true
  1377. boolean vscrollbar = true
  1378. borderstyle borderstyle = stylebox!
  1379. boolean rbutton_filter_use = true
  1380. boolean rbutton_setposition_use = true
  1381. boolean titleclick_sort_use = true
  1382. boolean setcolumn_visible_use = false
  1383. boolean autosave_filter_use = false
  1384. boolean autosave_sort_use = false
  1385. boolean autosave_setlayout_use = false
  1386. boolean autosave_columnvisible_use = false
  1387. end type
  1388. event clicked;call super::clicked;if (row > 0) then
  1389. this.SelectRow(0, false)
  1390. this.SelectRow(row, true)
  1391. this.SetRow(row)
  1392. end if
  1393. end event
  1394. event dwnkey;if keydown(KeyF4!) then //read layout
  1395. uf_read_profile_filter()
  1396. uf_read_profile_sort()
  1397. //uf_read_profile_layout()
  1398. elseif keydown(KeyF5!) then //save layout 不含列显示
  1399. uf_save_profile_filter()
  1400. uf_save_profile_sort()
  1401. wf_retrieve( )
  1402. //uf_save_profile_layout()
  1403. elseif keydown(KeyF9!) then //reset layout 不含列显示
  1404. uf_reset_layout()
  1405. elseif keydown(KeyF2!) then //save layout 不含列显示
  1406. this.triggerevent('ue_setlayout')
  1407. elseif keydown(KeyEscape!) then
  1408. st_exit.post event clicked()
  1409. end if
  1410. end event
  1411. type st_3 from statictext within tabpage_buy
  1412. integer x = 32
  1413. integer y = 44
  1414. integer width = 251
  1415. integer height = 68
  1416. integer textsize = -11
  1417. integer weight = 700
  1418. fontcharset fontcharset = gb2312charset!
  1419. fontpitch fontpitch = variable!
  1420. string facename = "宋体"
  1421. long textcolor = 8421376
  1422. long backcolor = 16777215
  1423. string text = "待处理"
  1424. long bordercolor = 12632256
  1425. boolean focusrectangle = false
  1426. end type
  1427. type dw_buy_rece from u_dw_rbtnfilter within tabpage_buy
  1428. integer y = 124
  1429. integer width = 2098
  1430. integer height = 620
  1431. integer taborder = 30
  1432. string dataobject = "dw_fx_feedback"
  1433. boolean hscrollbar = true
  1434. boolean vscrollbar = true
  1435. borderstyle borderstyle = stylebox!
  1436. boolean rbutton_filter_use = true
  1437. boolean rbutton_setposition_use = true
  1438. boolean titleclick_sort_use = true
  1439. boolean setcolumn_visible_use = false
  1440. boolean autosave_filter_use = false
  1441. boolean autosave_sort_use = false
  1442. boolean autosave_setlayout_use = false
  1443. boolean autosave_columnvisible_use = false
  1444. end type
  1445. event clicked;call super::clicked;if (row > 0) then
  1446. this.SelectRow(0, false)
  1447. this.SelectRow(row, true)
  1448. this.SetRow(row)
  1449. end if
  1450. end event
  1451. event doubleclicked;call super::doubleclicked;if (row > 0) then
  1452. long billtype
  1453. billtype = this.Object.billtype[row]
  1454. s_open_packet s_tran
  1455. s_tran.sn = this.Object.serialnum[row]
  1456. s_tran.summary = this.Object.summary[row]
  1457. s_tran.postscript = this.Object.postscript[row]
  1458. s_tran.remark = this.Object.remark[row]
  1459. if (billtype = 1) then // 供应商报价单
  1460. OpenWithParm(w_quote_rece_fx, s_tran)
  1461. // elseif (billtype = 2) then // 客户采购订单
  1462. // OpenWithParm(w_buytask_rece_fx, s_tran)
  1463. // else
  1464. end if
  1465. end if
  1466. end event
  1467. event dwnkey;if keydown(KeyF4!) then //read layout
  1468. uf_read_profile_filter()
  1469. uf_read_profile_sort()
  1470. //uf_read_profile_layout()
  1471. elseif keydown(KeyF5!) then //save layout 不含列显示
  1472. uf_save_profile_filter()
  1473. uf_save_profile_sort()
  1474. wf_retrieve( )
  1475. //uf_save_profile_layout()
  1476. elseif keydown(KeyF9!) then //reset layout 不含列显示
  1477. uf_reset_layout()
  1478. elseif keydown(KeyF2!) then //save layout 不含列显示
  1479. this.triggerevent('ue_setlayout')
  1480. elseif keydown(KeyEscape!) then
  1481. st_exit.post event clicked()
  1482. end if
  1483. end event
  1484. type r_3 from rectangle within tabpage_buy
  1485. long linecolor = 134217734
  1486. integer linethickness = 4
  1487. long fillcolor = 16777215
  1488. integer y = 12
  1489. integer width = 2098
  1490. integer height = 124
  1491. end type
  1492. type r_4 from rectangle within tabpage_buy
  1493. long linecolor = 134217734
  1494. integer linethickness = 4
  1495. long fillcolor = 16777215
  1496. integer y = 896
  1497. integer width = 2098
  1498. integer height = 124
  1499. end type
  1500. type r_6 from rectangle within tabpage_buy
  1501. long linecolor = 134217734
  1502. integer linethickness = 4
  1503. long fillcolor = 16777215
  1504. integer x = 2112
  1505. integer y = 12
  1506. integer width = 1001
  1507. integer height = 124
  1508. end type
  1509. type rr_3 from roundrectangle within tabpage_buy
  1510. long linecolor = 32106210
  1511. integer linethickness = 4
  1512. long fillcolor = 32106210
  1513. integer x = 2482
  1514. integer y = 28
  1515. integer width = 306
  1516. integer height = 84
  1517. integer cornerheight = 40
  1518. integer cornerwidth = 46
  1519. end type
  1520. type rr_4 from roundrectangle within tabpage_buy
  1521. long linecolor = 32106210
  1522. integer linethickness = 4
  1523. long fillcolor = 32106210
  1524. integer x = 2793
  1525. integer y = 28
  1526. integer width = 306
  1527. integer height = 84
  1528. integer cornerheight = 40
  1529. integer cornerwidth = 46
  1530. end type
  1531. type p_ljmail_b from picture within tabpage_buy
  1532. integer x = 2811
  1533. integer y = 44
  1534. integer width = 69
  1535. integer height = 52
  1536. boolean bringtotop = true
  1537. string pointer = "HAND.CUR"
  1538. string picturename = "graphics\ic_15.png"
  1539. boolean focusrectangle = false
  1540. end type
  1541. event clicked;tab_1.tabpage_buy.st_ljmail_b.post event clicked()
  1542. end event
  1543. type tabpage_welcome from userobject within tab_1
  1544. boolean visible = false
  1545. integer x = 18
  1546. integer y = 16
  1547. integer width = 3360
  1548. integer height = 2032
  1549. long backcolor = 16777215
  1550. string text = "欢迎"
  1551. long tabtextcolor = 33554432
  1552. long tabbackcolor = 32106210
  1553. long picturemaskcolor = 536870912
  1554. st_welcome st_welcome
  1555. end type
  1556. on tabpage_welcome.create
  1557. this.st_welcome=create st_welcome
  1558. this.Control[]={this.st_welcome}
  1559. end on
  1560. on tabpage_welcome.destroy
  1561. destroy(this.st_welcome)
  1562. end on
  1563. type st_welcome from statictext within tabpage_welcome
  1564. integer x = 1175
  1565. integer y = 740
  1566. integer width = 1065
  1567. integer height = 92
  1568. integer textsize = -16
  1569. integer weight = 400
  1570. fontcharset fontcharset = gb2312charset!
  1571. fontpitch fontpitch = variable!
  1572. string facename = "宋体"
  1573. long textcolor = 33554432
  1574. long backcolor = 16777215
  1575. string text = "欢迎使用龙嘉L1协同系统"
  1576. boolean focusrectangle = false
  1577. end type
  1578. type tv_1 from uo_tv_menu_fx within w_main_fx
  1579. integer y = 284
  1580. integer width = 891
  1581. integer taborder = 10
  1582. boolean bringtotop = true
  1583. boolean border = false
  1584. string picturename[] = {"graphics\chain_link_128px.ico","graphics\Shell32 005.bmp","graphics\application_fx.gif","graphics\application_fx.gif","graphics\application_fx.gif","graphics\application_fx.gif","graphics\application_fx.gif","graphics\application_fx.gif","graphics\application_fx.gif","graphics\task.bmp"}
  1585. end type
  1586. type p_2 from picture within w_main_fx
  1587. integer x = 2162
  1588. integer width = 2514
  1589. integer height = 268
  1590. boolean bringtotop = true
  1591. boolean originalsize = true
  1592. string picturename = "mf_main_top_off_right.bmp"
  1593. boolean focusrectangle = false
  1594. end type
  1595. type st_refresh from uo_text_m_main within w_main_fx
  1596. integer x = 2107
  1597. integer y = 304
  1598. integer width = 279
  1599. integer height = 48
  1600. boolean bringtotop = true
  1601. integer textsize = -10
  1602. integer weight = 700
  1603. long backcolor = 32106210
  1604. string text = "立即刷新"
  1605. end type
  1606. event clicked;call super::clicked;wf_retrieve( )
  1607. end event
  1608. type st_exit from uo_text_m_main within w_main_fx
  1609. integer x = 4421
  1610. integer y = 192
  1611. integer width = 178
  1612. integer height = 48
  1613. boolean bringtotop = true
  1614. integer textsize = -10
  1615. integer weight = 700
  1616. long backcolor = 32106210
  1617. string text = "退出"
  1618. end type
  1619. event clicked;call super::clicked;close(parent)
  1620. end event
  1621. type p_exit from picture within w_main_fx
  1622. event ue_mousemove pbm_mousemove
  1623. integer x = 4347
  1624. integer y = 188
  1625. integer width = 73
  1626. integer height = 64
  1627. boolean bringtotop = true
  1628. string pointer = "HAND.CUR"
  1629. boolean originalsize = true
  1630. string picturename = "graphics\ic_07.png"
  1631. boolean focusrectangle = false
  1632. end type
  1633. event ue_mousemove;//st_exit.post event mousemove(0,0,0)
  1634. end event
  1635. event clicked;st_exit.triggerevent(clicked!)
  1636. end event
  1637. type p_refresh from picture within w_main_fx
  1638. event ue_mousemove pbm_mousemove
  1639. integer x = 2034
  1640. integer y = 300
  1641. integer width = 73
  1642. integer height = 64
  1643. boolean bringtotop = true
  1644. string pointer = "HAND.CUR"
  1645. boolean originalsize = true
  1646. string picturename = "graphics\ic_08.png"
  1647. boolean focusrectangle = false
  1648. end type
  1649. event ue_mousemove;//st_refresh.post event mousemove(0,0,0)
  1650. end event
  1651. event clicked;st_refresh.triggerevent(clicked!)
  1652. end event
  1653. type p_5 from picture within w_main_fx
  1654. integer width = 2016
  1655. integer height = 268
  1656. boolean bringtotop = true
  1657. boolean originalsize = true
  1658. string picturename = "mf_main_top_off_left.bmp"
  1659. boolean focusrectangle = false
  1660. end type
  1661. type p_1 from picture within w_main_fx
  1662. integer x = 2016
  1663. integer width = 101
  1664. integer height = 268
  1665. string picturename = "mf_main_top_off_middle.bmp"
  1666. boolean focusrectangle = false
  1667. end type
  1668. type st_about from uo_text_m_main within w_main_fx
  1669. integer x = 4091
  1670. integer y = 188
  1671. integer width = 146
  1672. integer height = 48
  1673. boolean bringtotop = true
  1674. integer textsize = -10
  1675. integer weight = 700
  1676. long backcolor = 32106210
  1677. string text = "关于"
  1678. end type
  1679. event clicked;call super::clicked;if not IsValid(w_about_fx) then
  1680. Open(w_about_fx)
  1681. end if
  1682. end event
  1683. type cb_1 from commandbutton within w_main_fx
  1684. boolean visible = false
  1685. integer x = 2999
  1686. integer y = 152
  1687. integer width = 430
  1688. integer height = 108
  1689. integer taborder = 20
  1690. boolean bringtotop = true
  1691. integer textsize = -12
  1692. integer weight = 400
  1693. fontcharset fontcharset = ansi!
  1694. fontpitch fontpitch = variable!
  1695. fontfamily fontfamily = swiss!
  1696. string facename = "Tahoma"
  1697. string text = "检查未同步"
  1698. end type
  1699. event clicked;//Open(w_checkdata)
  1700. string arg_msg
  1701. oleobject request,response
  1702. request = FXAppCom.CreatePbDictionary()
  1703. request.SetString("token",app_token_fx)
  1704. response = FXAppCom.DoExecute("CheckDataV2", request)
  1705. arg_msg = response.GetString("ErrMsg")
  1706. IF ISNULL(arg_msg) THEN arg_msg = ""
  1707. string dscrp
  1708. dscrp = response.GetString("Dscrp")
  1709. IF ISNULL(dscrp) THEN dscrp = ""
  1710. OpenWithParm(w_message_err,arg_msg + dscrp)
  1711. end event
  1712. type st_6 from statictext within w_main_fx
  1713. integer x = 3488
  1714. integer y = 188
  1715. integer width = 503
  1716. integer height = 56
  1717. boolean bringtotop = true
  1718. integer textsize = -10
  1719. integer weight = 700
  1720. fontcharset fontcharset = gb2312charset!
  1721. fontpitch fontpitch = variable!
  1722. string facename = "宋体"
  1723. boolean underline = true
  1724. string pointer = "HyperLink!"
  1725. long textcolor = 134217856
  1726. long backcolor = 32106210
  1727. string text = "绑定申请(999)"
  1728. alignment alignment = center!
  1729. boolean focusrectangle = false
  1730. end type
  1731. event clicked;Open(w_fx_binding_apply)
  1732. end event