w_main.srw 54 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306
  1. $PBExportHeader$w_main.srw
  2. forward
  3. global type w_main from w_publ_base_style
  4. end type
  5. type cb_1 from uo_imflatbutton within w_main
  6. end type
  7. type cb_2 from uo_imflatbutton within w_main
  8. end type
  9. type cb_3 from uo_imflatbutton within w_main
  10. end type
  11. type cb_4 from uo_imflatbutton within w_main
  12. end type
  13. type cb_5 from commandbutton within w_main
  14. end type
  15. type cb_6 from commandbutton within w_main
  16. end type
  17. type cb_7 from commandbutton within w_main
  18. end type
  19. type cb_18 from commandbutton within w_main
  20. end type
  21. type cb_19 from commandbutton within w_main
  22. end type
  23. type p_1 from picture within w_main
  24. end type
  25. type p_2 from picture within w_main
  26. end type
  27. type p_3 from picture within w_main
  28. end type
  29. type st_web from statictext within w_main
  30. end type
  31. type st_help from statictext within w_main
  32. end type
  33. type st_about from statictext within w_main
  34. end type
  35. type p_web from picture within w_main
  36. end type
  37. type p_help from picture within w_main
  38. end type
  39. type tab_1 from tab within w_main
  40. end type
  41. type tabpage_7 from userobject within tab_1
  42. end type
  43. type uo_7 from uo_task_detail within tabpage_7
  44. end type
  45. type uo_7 from uo_task_detail within tabpage_7
  46. end type
  47. type dw_7 from u_dw_rbtnfilter within tabpage_7
  48. end type
  49. type tabpage_7 from userobject within tab_1
  50. uo_7 uo_7
  51. dw_7 dw_7
  52. end type
  53. type tabpage_3 from userobject within tab_1
  54. end type
  55. type uo_3 from uo_task_detail within tabpage_3
  56. end type
  57. type uo_3 from uo_task_detail within tabpage_3
  58. end type
  59. type dw_3 from u_dw_rbtnfilter within tabpage_3
  60. end type
  61. type tabpage_3 from userobject within tab_1
  62. uo_3 uo_3
  63. dw_3 dw_3
  64. end type
  65. type tabpage_1 from userobject within tab_1
  66. end type
  67. type uo_1 from uo_task_detail within tabpage_1
  68. end type
  69. type uo_1 from uo_task_detail within tabpage_1
  70. end type
  71. type dw_1 from u_dw_rbtnfilter within tabpage_1
  72. end type
  73. type tabpage_1 from userobject within tab_1
  74. uo_1 uo_1
  75. dw_1 dw_1
  76. end type
  77. type tabpage_8 from userobject within tab_1
  78. end type
  79. type uo_8 from uo_task_detail within tabpage_8
  80. end type
  81. type uo_8 from uo_task_detail within tabpage_8
  82. end type
  83. type dw_8 from u_dw_rbtnfilter within tabpage_8
  84. end type
  85. type tabpage_8 from userobject within tab_1
  86. uo_8 uo_8
  87. dw_8 dw_8
  88. end type
  89. type tabpage_9 from userobject within tab_1
  90. end type
  91. type uo_9 from uo_task_detail within tabpage_9
  92. end type
  93. type uo_9 from uo_task_detail within tabpage_9
  94. end type
  95. type dw_9 from u_dw_rbtnfilter within tabpage_9
  96. end type
  97. type tabpage_9 from userobject within tab_1
  98. uo_9 uo_9
  99. dw_9 dw_9
  100. end type
  101. type tabpage_10 from userobject within tab_1
  102. end type
  103. type uo_10 from uo_task_detail within tabpage_10
  104. end type
  105. type uo_10 from uo_task_detail within tabpage_10
  106. end type
  107. type dw_10 from u_dw_rbtnfilter within tabpage_10
  108. end type
  109. type tabpage_10 from userobject within tab_1
  110. uo_10 uo_10
  111. dw_10 dw_10
  112. end type
  113. type tabpage_2 from userobject within tab_1
  114. end type
  115. type uo_2 from uo_task_detail within tabpage_2
  116. end type
  117. type uo_2 from uo_task_detail within tabpage_2
  118. end type
  119. type dw_2 from u_dw_rbtnfilter within tabpage_2
  120. end type
  121. type tabpage_2 from userobject within tab_1
  122. uo_2 uo_2
  123. dw_2 dw_2
  124. end type
  125. type tabpage_4 from userobject within tab_1
  126. end type
  127. type uo_4 from uo_task_detail within tabpage_4
  128. end type
  129. type uo_4 from uo_task_detail within tabpage_4
  130. end type
  131. type dw_4 from u_dw_rbtnfilter within tabpage_4
  132. end type
  133. type tabpage_4 from userobject within tab_1
  134. uo_4 uo_4
  135. dw_4 dw_4
  136. end type
  137. type tabpage_5 from userobject within tab_1
  138. end type
  139. type uo_5 from uo_task_detail within tabpage_5
  140. end type
  141. type uo_5 from uo_task_detail within tabpage_5
  142. end type
  143. type cb_20 from commandbutton within tabpage_5
  144. end type
  145. type dw_5 from u_dw_rbtnfilter within tabpage_5
  146. end type
  147. type tabpage_5 from userobject within tab_1
  148. uo_5 uo_5
  149. cb_20 cb_20
  150. dw_5 dw_5
  151. end type
  152. type tabpage_6 from userobject within tab_1
  153. end type
  154. type ddlb_1 from dropdownlistbox within tabpage_6
  155. end type
  156. type st_2 from statictext within tabpage_6
  157. end type
  158. type sle_1 from singlelineedit within tabpage_6
  159. end type
  160. type st_1 from statictext within tabpage_6
  161. end type
  162. type uo_6 from uo_task_detail within tabpage_6
  163. end type
  164. type uo_6 from uo_task_detail within tabpage_6
  165. end type
  166. type dw_6 from u_dw_rbtnfilter within tabpage_6
  167. end type
  168. type pb_2 from picturebutton within tabpage_6
  169. end type
  170. type pb_em2 from picturebutton within tabpage_6
  171. end type
  172. type pb_em1 from picturebutton within tabpage_6
  173. end type
  174. type em_2 from editmask within tabpage_6
  175. end type
  176. type em_1 from editmask within tabpage_6
  177. end type
  178. type st_4 from statictext within tabpage_6
  179. end type
  180. type st_3 from statictext within tabpage_6
  181. end type
  182. type tabpage_6 from userobject within tab_1
  183. ddlb_1 ddlb_1
  184. st_2 st_2
  185. sle_1 sle_1
  186. st_1 st_1
  187. uo_6 uo_6
  188. dw_6 dw_6
  189. pb_2 pb_2
  190. pb_em2 pb_em2
  191. pb_em1 pb_em1
  192. em_2 em_2
  193. em_1 em_1
  194. st_4 st_4
  195. st_3 st_3
  196. end type
  197. type tab_1 from tab within w_main
  198. tabpage_7 tabpage_7
  199. tabpage_3 tabpage_3
  200. tabpage_1 tabpage_1
  201. tabpage_8 tabpage_8
  202. tabpage_9 tabpage_9
  203. tabpage_10 tabpage_10
  204. tabpage_2 tabpage_2
  205. tabpage_4 tabpage_4
  206. tabpage_5 tabpage_5
  207. tabpage_6 tabpage_6
  208. end type
  209. end forward
  210. global type w_main from w_publ_base_style
  211. integer width = 4261
  212. integer height = 2008
  213. string title = "圣萝莎门店管理系统v1.0"
  214. boolean maxbox = true
  215. boolean resizable = true
  216. windowtype windowtype = main!
  217. windowstate windowstate = maximized!
  218. long backcolor = 16777215
  219. event ue_childclose ( )
  220. event ue_retrieve_cur ( )
  221. event ue_date1 ( )
  222. event ue_date2 ( )
  223. event ue_date3 ( )
  224. cb_1 cb_1
  225. cb_2 cb_2
  226. cb_3 cb_3
  227. cb_4 cb_4
  228. cb_5 cb_5
  229. cb_6 cb_6
  230. cb_7 cb_7
  231. cb_18 cb_18
  232. cb_19 cb_19
  233. p_1 p_1
  234. p_2 p_2
  235. p_3 p_3
  236. st_web st_web
  237. st_help st_help
  238. st_about st_about
  239. p_web p_web
  240. p_help p_help
  241. tab_1 tab_1
  242. end type
  243. global w_main w_main
  244. type variables
  245. userobject pages[]
  246. datawindow dws[]
  247. uo_task_detail uos[]
  248. datawindow cur_dw
  249. boolean ins_opened = false
  250. end variables
  251. forward prototypes
  252. public subroutine wf_face ()
  253. public subroutine wf_retrieve (long arg_tab)
  254. public subroutine wf_getcount ()
  255. public function integer days_in_month (integer month, integer year)
  256. public subroutine wf_showrow (long row)
  257. end prototypes
  258. event ue_childclose();if not tab_1.Visible then
  259. tab_1.triggerevent('ue_show')
  260. end if
  261. this.postevent('ue_retrieve_cur')
  262. end event
  263. event ue_retrieve_cur();wf_getcount()
  264. wf_retrieve(tab_1.SelectedTab)
  265. end event
  266. event ue_date1();//IF THIS.Text = "本日" THEN
  267. tab_1.tabpage_6.em_1.text = string(today(),"yyyy-mm-dd")
  268. tab_1.tabpage_6.em_2.text = string(today(),"yyyy-mm-dd")
  269. //ELSEIF THIS.Text = "本周" THEN
  270. // int li_DayNum
  271. // li_DayNum = DayNumber(today())
  272. // em_1.text = string(RelativeDate ( today(), 1 - li_DayNum ),"yyyy-mm-dd")
  273. // em_2.text = string(RelativeDate ( today(), 7 - li_DayNum ),"yyyy-mm-dd")
  274. //ELSEIF THIS.Text = "本月" THEN
  275. // int li_Month, li_Year, li_Days
  276. // li_Month = Month(today())
  277. // li_Year = Year(today())
  278. // li_Days = days_in_month(li_Month, li_Year)
  279. // em_1.text = string(Date(li_Year, li_Month, 1),"yyyy-mm-dd")
  280. // em_2.text = string(Date(li_Year, li_Month, li_Days),"yyyy-mm-dd")
  281. //END IF
  282. end event
  283. event ue_date2();//IF THIS.Text = "本日" THEN
  284. // em_1.text = string(today(),"yyyy-mm-dd")
  285. // em_2.text = string(today(),"yyyy-mm-dd")
  286. //ELSEIF THIS.Text = "本周" THEN
  287. int li_DayNum
  288. li_DayNum = DayNumber(today())
  289. tab_1.tabpage_6.em_1.text = string(RelativeDate ( today(), 1 - li_DayNum ),"yyyy-mm-dd")
  290. tab_1.tabpage_6.em_2.text = string(RelativeDate ( today(), 7 - li_DayNum ),"yyyy-mm-dd")
  291. //ELSEIF THIS.Text = "本月" THEN
  292. // int li_Month, li_Year, li_Days
  293. // li_Month = Month(today())
  294. // li_Year = Year(today())
  295. // li_Days = days_in_month(li_Month, li_Year)
  296. // em_1.text = string(Date(li_Year, li_Month, 1),"yyyy-mm-dd")
  297. // em_2.text = string(Date(li_Year, li_Month, li_Days),"yyyy-mm-dd")
  298. //END IF
  299. end event
  300. event ue_date3();//IF THIS.Text = "本日" THEN
  301. // em_1.text = string(today(),"yyyy-mm-dd")
  302. // em_2.text = string(today(),"yyyy-mm-dd")
  303. //ELSEIF THIS.Text = "本周" THEN
  304. // int li_DayNum
  305. // li_DayNum = DayNumber(today())
  306. // em_1.text = string(RelativeDate ( today(), 1 - li_DayNum ),"yyyy-mm-dd")
  307. // em_2.text = string(RelativeDate ( today(), 7 - li_DayNum ),"yyyy-mm-dd")
  308. //ELSEIF THIS.Text = "本月" THEN
  309. int li_Month, li_Year, li_Days
  310. li_Month = Month(today())
  311. li_Year = Year(today())
  312. li_Days = days_in_month(li_Month, li_Year)
  313. tab_1.tabpage_6.em_1.text = string(Date(li_Year, li_Month, 1),"yyyy-mm-dd")
  314. tab_1.tabpage_6.em_2.text = string(Date(li_Year, li_Month, li_Days),"yyyy-mm-dd")
  315. //END IF
  316. end event
  317. public subroutine wf_face ();
  318. end subroutine
  319. public subroutine wf_retrieve (long arg_tab);DateTime ld_begin, ld_end
  320. arg_tab = long(tab_1.Control[arg_tab].tag)
  321. //MessageBox('', string(arg_tab))
  322. oleobject reqparms, tasks
  323. reqparms = AppCom.CreatePbDictionary()
  324. reqparms.SetString("token", app_token)
  325. reqparms.SetInt("status", arg_tab - 1)
  326. //reqparms.SetInt("cusid", 0)
  327. IF arg_tab = 6 THEN
  328. CHOOSE CASE tab_1.tabpage_6.ddlb_1.Text
  329. CASE '待询价'
  330. reqparms.SetInt("status", 0)
  331. CASE '已报价'
  332. reqparms.SetInt("status", 1)
  333. CASE '已退回'
  334. reqparms.SetInt("status", 2)
  335. CASE '已下单'
  336. reqparms.SetInt("status", 3)
  337. CASE '已发货'
  338. reqparms.SetInt("status", 4)
  339. CASE '已收货'
  340. reqparms.SetInt("status", 5)
  341. CASE ELSE
  342. reqparms.SetInt("status", "-1")
  343. END CHOOSE
  344. reqparms.SetString("querystr", tab_1.tabpage_6.sle_1.Text)
  345. ld_begin = DateTime(Date(tab_1.tabpage_6.em_1.Text), Time(0))
  346. ld_end = DateTime(Date(tab_1.tabpage_6.em_2.Text), Time("23:59:59"))
  347. reqparms.SetDateTime("begin", ld_begin)
  348. reqparms.SetDateTime("end", ld_end)
  349. END IF
  350. String arg_msg = ''
  351. tasks = AppCom.GetTasks(reqparms, Ref arg_msg)
  352. IF arg_msg <> '' THEN
  353. MessageBox('ERROR', arg_msg)
  354. RETURN
  355. END IF
  356. datawindow cur_dw
  357. cur_dw = dws[arg_tab]
  358. cur_dw.Reset()
  359. cur_dw.SetRedraw(False)
  360. Long ll_cnt, row, i
  361. oleobject task
  362. ll_cnt = tasks.Count
  363. FOR i = 1 To ll_cnt
  364. task = tasks.GetItem(i - 1)
  365. row = cur_dw.InsertRow(0)
  366. cur_dw.SetItem(row, 'taskid', task.GetInt('taskid'))
  367. cur_dw.SetItem(row, 'tid', task.GetString('tid'))
  368. cur_dw.SetItem(row, 'taskdate', task.GetDateTime('taskdate'))
  369. cur_dw.SetItem(row, 'cusid', task.GetInt('cusid'))
  370. cur_dw.SetItem(row, 'cus_rep', task.GetString('cus_rep'))
  371. cur_dw.SetItem(row, 'cus_tele', task.GetString('cus_tele'))
  372. cur_dw.SetItem(row, 'cus_address', task.GetString('cus_address'))
  373. cur_dw.SetItem(row, 'freight', task.GetString('freight'))
  374. cur_dw.SetItem(row, 'freight_tele', task.GetString('freight_tele'))
  375. cur_dw.SetItem(row, 'opemp', task.GetString('opemp'))
  376. cur_dw.SetItem(row, 'opdate', task.GetDateTime('opdate'))
  377. cur_dw.SetItem(row, 'modemp', task.GetString('modemp'))
  378. cur_dw.SetItem(row, 'moddate', task.GetDateTime('moddate'))
  379. cur_dw.SetItem(row, 'buyer_name', task.GetString('buyer_name'))
  380. cur_dw.SetItem(row, 'buyer_tele', task.GetString('buyer_tele'))
  381. cur_dw.SetItem(row, 'requiredate', task.GetDateTime('requiredate'))
  382. cur_dw.SetItem(row, 'temp1', task.GetString('temp1'))
  383. cur_dw.SetItem(row, 'temp2', task.GetString('temp2'))
  384. cur_dw.SetItem(row, 'temp3', task.GetString('temp3'))
  385. cur_dw.SetItem(row, 'temp4', task.GetString('temp4'))
  386. cur_dw.SetItem(row, 'temp5', task.GetString('temp5'))
  387. cur_dw.SetItem(row, 'temp6', task.GetString('temp6'))
  388. cur_dw.SetItem(row, 'price_emp', task.GetString('price_emp'))
  389. cur_dw.SetItem(row, 'replyrqdate', task.GetDateTime('replyrqdate'))
  390. cur_dw.SetItem(row, 'confirmemp', task.GetString('confirmemp'))
  391. cur_dw.SetItem(row, 'confirmdate', task.GetDateTime('confirmdate'))
  392. cur_dw.SetItem(row, 'status', task.GetInt('status'))
  393. cur_dw.SetItem(row, 'fstatus', task.GetInt('fstatus'))
  394. cur_dw.SetItem(row, 'ifexcelerr', task.GetInt('ifexcelerr'))
  395. cur_dw.SetItem(row, 'taskcode', task.GetString('taskcode'))
  396. cur_dw.SetItem(row, 'outwarecode', task.GetString('outwarecode'))
  397. cur_dw.SetItem(row, 'replydscrp', task.GetString('replydscrp'))
  398. cur_dw.SetItem(row, 'replydate', task.GetDateTime('replydate'))
  399. cur_dw.SetItem(row, 'cuscode', task.GetString('cuscode'))
  400. cur_dw.SetItem(row, 'cusname', task.GetString('cusname'))
  401. NEXT
  402. cur_dw.SetRedraw(True)
  403. cur_dw.Trigger Event RowFocusChanged(cur_dw.GetRow())
  404. end subroutine
  405. public subroutine wf_getcount ();oleobject dict
  406. String arg_msg
  407. dict = AppCom.GetTaskCount(app_token, Ref arg_msg)
  408. IF arg_msg <> '' THEN
  409. MessageBox('ERROR', arg_msg)
  410. RETURN
  411. END IF
  412. // DONE: 获取每项的数量并显示
  413. String ls_txt
  414. Long ll_pos
  415. Long i
  416. userobject cur_page
  417. FOR i = 1 To 10
  418. IF i = 6 THEN CONTINUE
  419. cur_page = pages[i]
  420. ls_txt = cur_page.Text
  421. ll_pos = Pos(ls_txt,'(')
  422. IF ll_pos > 0 THEN
  423. ls_txt = Mid(ls_txt, 1, ll_pos - 1)
  424. END IF
  425. cur_page.Text = ls_txt + "(" + String(dict.GetInt('cnt' + String(i - 1))) + ")"
  426. NEXT
  427. end subroutine
  428. public function integer days_in_month (integer month, integer year);//Most cases are straight forward in that there are a fixed number of
  429. //days in 11 of the 12 months. February is, of course, the problem.
  430. //In a leap year February has 29 days, otherwise 28.
  431. Integer li_DaysInMonth, li_Days[12] = {31,28,31,30,31,30,31,31,30,31,30,31}
  432. // Get the number of days per month for a non leap year.
  433. li_DaysInMonth = li_Days[Month]
  434. // Check for a leap year.
  435. If Month = 2 Then
  436. // If the year is a leap year, change the number of days.
  437. // Leap Year Calculation:
  438. // Year divisible by 4, but not by 100, unless it is also divisible by 400
  439. If ( (Mod(Year,4) = 0 And Mod(Year,100) <> 0) Or (Mod(Year,400) = 0) ) Then
  440. li_DaysInMonth = 29
  441. End If
  442. End If
  443. //Return the number of days in the relevant month
  444. Return li_DaysInMonth
  445. end function
  446. public subroutine wf_showrow (long row);
  447. if isnull(cur_dw) then return
  448. oleobject lo_dict
  449. lo_dict = AppCom.CreatePbDictionary()
  450. lo_dict.SetInt('taskid', cur_dw.Object.taskid[row])
  451. lo_dict.SetString('tid', cur_dw.Object.tid[row])
  452. lo_dict.SetDateTime('taskdate', cur_dw.Object.taskdate[row])
  453. lo_dict.SetInt('cusid', cur_dw.Object.cusid[row])
  454. lo_dict.SetString('cus_rep', cur_dw.Object.cus_rep[row])
  455. lo_dict.SetString('cus_tele', cur_dw.Object.cus_tele[row])
  456. lo_dict.SetString('cus_address', cur_dw.Object.cus_address[row])
  457. lo_dict.SetString('freight', cur_dw.Object.freight[row])
  458. lo_dict.SetString('freight_tele', cur_dw.Object.freight_tele[row])
  459. lo_dict.SetString('opemp', cur_dw.Object.opemp[row])
  460. lo_dict.SetDateTime('opdate', cur_dw.Object.opdate[row])
  461. lo_dict.SetString('modemp', cur_dw.Object.modemp[row])
  462. lo_dict.SetDateTime('moddate', cur_dw.Object.moddate[row])
  463. lo_dict.SetString('buyer_name', cur_dw.Object.buyer_name[row])
  464. lo_dict.SetString('buyer_tele', cur_dw.Object.buyer_tele[row])
  465. lo_dict.SetDateTime('requiredate', cur_dw.Object.requiredate[row])
  466. lo_dict.SetString('temp1', cur_dw.Object.temp1[row])
  467. lo_dict.SetString('temp2', cur_dw.Object.temp2[row])
  468. lo_dict.SetString('temp3', cur_dw.Object.temp3[row])
  469. lo_dict.SetString('temp4', cur_dw.Object.temp4[row])
  470. lo_dict.SetString('temp5', cur_dw.Object.temp5[row])
  471. lo_dict.SetString('temp6', cur_dw.Object.temp6[row])
  472. lo_dict.SetString('price_emp', cur_dw.Object.price_emp[row])
  473. lo_dict.SetDateTime('replyrqdate', cur_dw.Object.replyrqdate[row])
  474. lo_dict.SetString('confirmemp', cur_dw.Object.confirmemp[row])
  475. lo_dict.SetDateTime('confirmdate', cur_dw.Object.confirmdate[row])
  476. lo_dict.SetInt('status', cur_dw.Object.status[row])
  477. lo_dict.SetInt('fstatus', cur_dw.Object.fstatus[row])
  478. lo_dict.SetInt('ifexcelerr', cur_dw.Object.ifexcelerr[row])
  479. lo_dict.SetString('taskcode', cur_dw.Object.taskcode[row])
  480. lo_dict.SetString('outwarecode', cur_dw.Object.outwarecode[row])
  481. lo_dict.SetString('replydscrp', cur_dw.Object.replydscrp[row])
  482. lo_dict.SetDateTime('replydate', cur_dw.Object.replydate[row])
  483. lo_dict.SetString('cuscode', cur_dw.Object.cuscode[row])
  484. lo_dict.SetString('cusname', cur_dw.Object.cusname[row])
  485. OpenWithParm(w_saletask_audit, lo_dict)
  486. end subroutine
  487. on w_main.create
  488. int iCurrent
  489. call super::create
  490. this.cb_1=create cb_1
  491. this.cb_2=create cb_2
  492. this.cb_3=create cb_3
  493. this.cb_4=create cb_4
  494. this.cb_5=create cb_5
  495. this.cb_6=create cb_6
  496. this.cb_7=create cb_7
  497. this.cb_18=create cb_18
  498. this.cb_19=create cb_19
  499. this.p_1=create p_1
  500. this.p_2=create p_2
  501. this.p_3=create p_3
  502. this.st_web=create st_web
  503. this.st_help=create st_help
  504. this.st_about=create st_about
  505. this.p_web=create p_web
  506. this.p_help=create p_help
  507. this.tab_1=create tab_1
  508. iCurrent=UpperBound(this.Control)
  509. this.Control[iCurrent+1]=this.cb_1
  510. this.Control[iCurrent+2]=this.cb_2
  511. this.Control[iCurrent+3]=this.cb_3
  512. this.Control[iCurrent+4]=this.cb_4
  513. this.Control[iCurrent+5]=this.cb_5
  514. this.Control[iCurrent+6]=this.cb_6
  515. this.Control[iCurrent+7]=this.cb_7
  516. this.Control[iCurrent+8]=this.cb_18
  517. this.Control[iCurrent+9]=this.cb_19
  518. this.Control[iCurrent+10]=this.p_1
  519. this.Control[iCurrent+11]=this.p_2
  520. this.Control[iCurrent+12]=this.p_3
  521. this.Control[iCurrent+13]=this.st_web
  522. this.Control[iCurrent+14]=this.st_help
  523. this.Control[iCurrent+15]=this.st_about
  524. this.Control[iCurrent+16]=this.p_web
  525. this.Control[iCurrent+17]=this.p_help
  526. this.Control[iCurrent+18]=this.tab_1
  527. end on
  528. on w_main.destroy
  529. call super::destroy
  530. destroy(this.cb_1)
  531. destroy(this.cb_2)
  532. destroy(this.cb_3)
  533. destroy(this.cb_4)
  534. destroy(this.cb_5)
  535. destroy(this.cb_6)
  536. destroy(this.cb_7)
  537. destroy(this.cb_18)
  538. destroy(this.cb_19)
  539. destroy(this.p_1)
  540. destroy(this.p_2)
  541. destroy(this.p_3)
  542. destroy(this.st_web)
  543. destroy(this.st_help)
  544. destroy(this.st_about)
  545. destroy(this.p_web)
  546. destroy(this.p_help)
  547. destroy(this.tab_1)
  548. end on
  549. event resize;call super::resize;IF Not ins_opened THEN RETURN
  550. Long w_width,w_height
  551. w_width = 4681
  552. w_height = 2600
  553. IF newwidth < w_width THEN This.Width = w_width
  554. IF newheight < w_height THEN This.Height = w_height
  555. p_3.X = This.WorkSpaceWidth() - p_3.Width
  556. p_2.Width = p_3.X - p_2.X
  557. p_web.X = p_3.X + 2674 - 2354
  558. st_web.X = p_3.X + 2757 - 2354
  559. p_help.X = p_3.X + 2949 - 2354
  560. st_help.X = p_3.X + 3035 - 2354
  561. st_about.X = p_3.X + 3314 - 2354
  562. tab_1.Width = This.WorkSpaceWidth() - tab_1.X
  563. tab_1.Height = This.WorkSpaceHeight() - tab_1.Y
  564. Long i
  565. FOR i = 1 To 10
  566. dws[i].Width = pages[i].Width - dws[i].X
  567. dws[i].Height = (pages[i].Height - dws[i].Y) / 2
  568. uos[i].Width = dws[i].Width
  569. uos[i].Y = dws[i].Y + dws[i].Height
  570. uos[i].Height = dws[i].Height
  571. uos[i].PostEvent('ue_resize')
  572. NEXT
  573. IF IsValid(w_saletask_edit) THEN
  574. w_saletask_edit.Width = tab_1.Width
  575. w_saletask_edit.Height = tab_1.Height
  576. END IF
  577. end event
  578. event open;call super::open;pages[1] = tab_1.tabpage_1
  579. pages[2] = tab_1.tabpage_2
  580. pages[3] = tab_1.tabpage_3
  581. pages[4] = tab_1.tabpage_4
  582. pages[5] = tab_1.tabpage_5
  583. pages[6] = tab_1.tabpage_6
  584. pages[7] = tab_1.tabpage_7
  585. pages[8] = tab_1.tabpage_8
  586. pages[9] = tab_1.tabpage_9
  587. pages[10] = tab_1.tabpage_10
  588. dws[1] = tab_1.tabpage_1.dw_1
  589. dws[2] = tab_1.tabpage_2.dw_2
  590. dws[3] = tab_1.tabpage_3.dw_3
  591. dws[4] = tab_1.tabpage_4.dw_4
  592. dws[5] = tab_1.tabpage_5.dw_5
  593. dws[6] = tab_1.tabpage_6.dw_6
  594. dws[7] = tab_1.tabpage_7.dw_7
  595. dws[8] = tab_1.tabpage_8.dw_8
  596. dws[9] = tab_1.tabpage_9.dw_9
  597. dws[10] = tab_1.tabpage_10.dw_10
  598. uos[1] = tab_1.tabpage_1.uo_1
  599. uos[2] = tab_1.tabpage_2.uo_2
  600. uos[3] = tab_1.tabpage_3.uo_3
  601. uos[4] = tab_1.tabpage_4.uo_4
  602. uos[5] = tab_1.tabpage_5.uo_5
  603. uos[6] = tab_1.tabpage_6.uo_6
  604. uos[7] = tab_1.tabpage_7.uo_7
  605. uos[8] = tab_1.tabpage_8.uo_8
  606. uos[9] = tab_1.tabpage_9.uo_9
  607. uos[10] = tab_1.tabpage_10.uo_10
  608. triggerevent('ue_date1')
  609. this.postevent('ue_retrieve_cur')
  610. ins_opened = true
  611. end event
  612. type cb_func from w_publ_base_style`cb_func within w_main
  613. boolean visible = false
  614. integer x = 850
  615. end type
  616. type cb_exit from w_publ_base_style`cb_exit within w_main
  617. boolean visible = false
  618. integer x = 1001
  619. end type
  620. type ln_bar from w_publ_base_style`ln_bar within w_main
  621. boolean visible = false
  622. end type
  623. type ln_bar2 from w_publ_base_style`ln_bar2 within w_main
  624. boolean visible = false
  625. end type
  626. type r_bar from w_publ_base_style`r_bar within w_main
  627. boolean visible = false
  628. end type
  629. type cb_1 from uo_imflatbutton within w_main
  630. boolean visible = false
  631. integer width = 151
  632. integer height = 164
  633. integer taborder = 50
  634. boolean bringtotop = true
  635. string text = "刷新"
  636. string normalpicname = "refresh.bmp"
  637. integer picsize = 16
  638. toolbaralignment pic_align = alignattop!
  639. boolean border = false
  640. end type
  641. event clicked;call super::clicked;//DateTime first_date,end_date
  642. //
  643. //first_date = DateTime(Date(em_1.Text),Time(0))
  644. //end_date = DateTime(Date(em_2.Text),Time('23:59:59'))
  645. //String ls_cust_str, ls_mtrl_str
  646. //IF Pos(sle_cust.Text,"%") <> 0 THEN
  647. // ls_cust_str = trim(sle_cust.Text)
  648. //ELSE
  649. // ls_cust_str = "%"+trim(sle_cust.Text)+"%"
  650. //END IF
  651. //IF Pos(sle_mtrl.Text,"%") <> 0 THEN
  652. // ls_mtrl_str = trim(sle_mtrl.Text)
  653. //ELSE
  654. // ls_mtrl_str = "%"+trim(sle_mtrl.Text)+"%"
  655. //END IF
  656. //dw_1.Retrieve(DATE(EM_1.TEXT),DATE(EM_2.TEXT),ls_cust_str,ls_mtrl_str)
  657. //dw_1.OBJECT.date_mid.TEXT=EM_1.TEXT+'~~'+EM_2.TEXT
  658. end event
  659. type cb_2 from uo_imflatbutton within w_main
  660. boolean visible = false
  661. integer x = 151
  662. integer width = 151
  663. integer height = 164
  664. integer taborder = 60
  665. boolean bringtotop = true
  666. string text = "新建"
  667. string normalpicname = "NEW.BMP"
  668. integer picsize = 16
  669. toolbaralignment pic_align = alignattop!
  670. boolean border = false
  671. end type
  672. event clicked;call super::clicked;//open(w_saletask_dm_edit)
  673. end event
  674. type cb_3 from uo_imflatbutton within w_main
  675. boolean visible = false
  676. integer x = 302
  677. integer width = 274
  678. integer height = 164
  679. integer taborder = 70
  680. boolean bringtotop = true
  681. boolean enabled = false
  682. string text = "订单审核"
  683. string normalpicname = "ok.bmp"
  684. integer picsize = 16
  685. toolbaralignment pic_align = alignattop!
  686. boolean border = false
  687. end type
  688. event clicked;call super::clicked;//DateTime first_date,end_date
  689. //
  690. //first_date = DateTime(Date(em_1.Text),Time(0))
  691. //end_date = DateTime(Date(em_2.Text),Time('23:59:59'))
  692. //String ls_cust_str, ls_mtrl_str
  693. //IF Pos(sle_cust.Text,"%") <> 0 THEN
  694. // ls_cust_str = trim(sle_cust.Text)
  695. //ELSE
  696. // ls_cust_str = "%"+trim(sle_cust.Text)+"%"
  697. //END IF
  698. //IF Pos(sle_mtrl.Text,"%") <> 0 THEN
  699. // ls_mtrl_str = trim(sle_mtrl.Text)
  700. //ELSE
  701. // ls_mtrl_str = "%"+trim(sle_mtrl.Text)+"%"
  702. //END IF
  703. //dw_1.Retrieve(DATE(EM_1.TEXT),DATE(EM_2.TEXT),ls_cust_str,ls_mtrl_str)
  704. //dw_1.OBJECT.date_mid.TEXT=EM_1.TEXT+'~~'+EM_2.TEXT
  705. end event
  706. type cb_4 from uo_imflatbutton within w_main
  707. boolean visible = false
  708. integer x = 576
  709. integer width = 274
  710. integer height = 164
  711. integer taborder = 80
  712. boolean bringtotop = true
  713. boolean enabled = false
  714. string text = "收货确认"
  715. string normalpicname = "ok.bmp"
  716. integer picsize = 16
  717. toolbaralignment pic_align = alignattop!
  718. boolean border = false
  719. end type
  720. event clicked;call super::clicked;//DateTime first_date,end_date
  721. //
  722. //first_date = DateTime(Date(em_1.Text),Time(0))
  723. //end_date = DateTime(Date(em_2.Text),Time('23:59:59'))
  724. //String ls_cust_str, ls_mtrl_str
  725. //IF Pos(sle_cust.Text,"%") <> 0 THEN
  726. // ls_cust_str = trim(sle_cust.Text)
  727. //ELSE
  728. // ls_cust_str = "%"+trim(sle_cust.Text)+"%"
  729. //END IF
  730. //IF Pos(sle_mtrl.Text,"%") <> 0 THEN
  731. // ls_mtrl_str = trim(sle_mtrl.Text)
  732. //ELSE
  733. // ls_mtrl_str = "%"+trim(sle_mtrl.Text)+"%"
  734. //END IF
  735. //dw_1.Retrieve(DATE(EM_1.TEXT),DATE(EM_2.TEXT),ls_cust_str,ls_mtrl_str)
  736. //dw_1.OBJECT.date_mid.TEXT=EM_1.TEXT+'~~'+EM_2.TEXT
  737. end event
  738. type cb_5 from commandbutton within w_main
  739. integer y = 468
  740. integer width = 347
  741. integer height = 92
  742. integer taborder = 130
  743. boolean bringtotop = true
  744. integer textsize = -9
  745. integer weight = 400
  746. fontcharset fontcharset = gb2312charset!
  747. fontpitch fontpitch = variable!
  748. string facename = "宋体"
  749. string text = "新建订单"
  750. end type
  751. event clicked;IF IsValid(w_saletask_edit) THEN
  752. w_saletask_edit.Visible = True
  753. w_saletask_edit.BringToTop = True
  754. tab_1.triggerevent('ue_hide')
  755. RETURN
  756. END IF
  757. Open(w_saletask_edit)
  758. w_saletask_edit.X = tab_1.X
  759. w_saletask_edit.Y = tab_1.Y
  760. w_saletask_edit.Width = tab_1.Width
  761. w_saletask_edit.Height = tab_1.Height
  762. w_saletask_edit.Visible = True
  763. w_saletask_edit.BringToTop = True
  764. tab_1.triggerevent('ue_hide')
  765. end event
  766. type cb_6 from commandbutton within w_main
  767. integer y = 360
  768. integer width = 347
  769. integer height = 92
  770. integer taborder = 140
  771. boolean bringtotop = true
  772. integer textsize = -9
  773. integer weight = 400
  774. fontcharset fontcharset = gb2312charset!
  775. fontpitch fontpitch = variable!
  776. string facename = "宋体"
  777. string text = "查询订单"
  778. end type
  779. event clicked;IF IsValid(w_saletask_edit) THEN
  780. w_saletask_edit.Visible = False
  781. END IF
  782. IF Not tab_1.Visible THEN
  783. tab_1.TriggerEvent('ue_show')
  784. END IF
  785. Parent.PostEvent('ue_retrieve_cur')
  786. end event
  787. type cb_7 from commandbutton within w_main
  788. integer y = 576
  789. integer width = 347
  790. integer height = 92
  791. integer taborder = 150
  792. boolean bringtotop = true
  793. integer textsize = -9
  794. integer weight = 400
  795. fontcharset fontcharset = gb2312charset!
  796. fontpitch fontpitch = variable!
  797. string facename = "宋体"
  798. string text = "订单审核"
  799. end type
  800. event clicked;Long row
  801. IF IsValid(w_saletask_edit) THEN
  802. IF w_saletask_edit.visible THEN
  803. w_saletask_edit.visible = false
  804. tab_1.triggerevent('ue_show')
  805. tab_1.SelectTab(2)
  806. RETURN
  807. END IF
  808. END IF
  809. IF tab_1.SelectedTab <> 2 THEN
  810. MessageBox('提示', '请在已报价页,选择中目标再试')
  811. tab_1.SelectTab(2)
  812. RETURN
  813. END IF
  814. datawindow cur_dw
  815. cur_dw = dws[2]
  816. row = cur_dw.GetRow()
  817. IF row <= 0 THEN
  818. MessageBox('提示', '请选择目标')
  819. RETURN
  820. END IF
  821. IF cur_dw.Object.status[row] <> 1 THEN
  822. MessageBox('提示', '订单不在已报价状态,不能审核')
  823. RETURN
  824. END IF
  825. oleobject lo_dict
  826. lo_dict = AppCom.CreatePbDictionary()
  827. lo_dict.SetInt('taskid', cur_dw.Object.taskid[row])
  828. lo_dict.SetString('tid', cur_dw.Object.tid[row])
  829. lo_dict.SetDateTime('taskdate', cur_dw.Object.taskdate[row])
  830. lo_dict.SetInt('cusid', cur_dw.Object.cusid[row])
  831. lo_dict.SetString('cus_rep', cur_dw.Object.cus_rep[row])
  832. lo_dict.SetString('cus_tele', cur_dw.Object.cus_tele[row])
  833. lo_dict.SetString('cus_address', cur_dw.Object.cus_address[row])
  834. lo_dict.SetString('freight', cur_dw.Object.freight[row])
  835. lo_dict.SetString('freight_tele', cur_dw.Object.freight_tele[row])
  836. lo_dict.SetString('opemp', cur_dw.Object.opemp[row])
  837. lo_dict.SetDateTime('opdate', cur_dw.Object.opdate[row])
  838. lo_dict.SetString('modemp', cur_dw.Object.modemp[row])
  839. lo_dict.SetDateTime('moddate', cur_dw.Object.moddate[row])
  840. lo_dict.SetString('buyer_name', cur_dw.Object.buyer_name[row])
  841. lo_dict.SetString('buyer_tele', cur_dw.Object.buyer_tele[row])
  842. lo_dict.SetDateTime('requiredate', cur_dw.Object.requiredate[row])
  843. lo_dict.SetString('temp1', cur_dw.Object.temp1[row])
  844. lo_dict.SetString('temp2', cur_dw.Object.temp2[row])
  845. lo_dict.SetString('temp3', cur_dw.Object.temp3[row])
  846. lo_dict.SetString('temp4', cur_dw.Object.temp4[row])
  847. lo_dict.SetString('temp5', cur_dw.Object.temp5[row])
  848. lo_dict.SetString('temp6', cur_dw.Object.temp6[row])
  849. lo_dict.SetString('price_emp', cur_dw.Object.price_emp[row])
  850. lo_dict.SetDateTime('replyrqdate', cur_dw.Object.replyrqdate[row])
  851. lo_dict.SetString('confirmemp', cur_dw.Object.confirmemp[row])
  852. lo_dict.SetDateTime('confirmdate', cur_dw.Object.confirmdate[row])
  853. lo_dict.SetInt('status', cur_dw.Object.status[row])
  854. lo_dict.SetInt('fstatus', cur_dw.Object.fstatus[row])
  855. lo_dict.SetInt('ifexcelerr', cur_dw.Object.ifexcelerr[row])
  856. lo_dict.SetString('taskcode', cur_dw.Object.taskcode[row])
  857. lo_dict.SetString('outwarecode', cur_dw.Object.outwarecode[row])
  858. lo_dict.SetString('replydscrp', cur_dw.Object.replydscrp[row])
  859. lo_dict.SetDateTime('replydate', cur_dw.Object.replydate[row])
  860. lo_dict.SetString('cuscode', cur_dw.Object.cuscode[row])
  861. lo_dict.SetString('cusname', cur_dw.Object.cusname[row])
  862. OpenWithParm(w_saletask_audit, lo_dict)
  863. end event
  864. type cb_18 from commandbutton within w_main
  865. integer y = 684
  866. integer width = 347
  867. integer height = 92
  868. integer taborder = 210
  869. boolean bringtotop = true
  870. integer textsize = -9
  871. integer weight = 400
  872. fontcharset fontcharset = gb2312charset!
  873. fontpitch fontpitch = variable!
  874. string facename = "宋体"
  875. string text = "修改密码"
  876. end type
  877. event clicked;open(w_modpsw)
  878. end event
  879. type cb_19 from commandbutton within w_main
  880. integer y = 792
  881. integer width = 347
  882. integer height = 92
  883. integer taborder = 210
  884. boolean bringtotop = true
  885. integer textsize = -9
  886. integer weight = 400
  887. fontcharset fontcharset = gb2312charset!
  888. fontpitch fontpitch = variable!
  889. string facename = "宋体"
  890. string text = "安全退出"
  891. end type
  892. event clicked;close(parent)
  893. end event
  894. type p_1 from picture within w_main
  895. integer width = 1371
  896. integer height = 340
  897. boolean bringtotop = true
  898. string picturename = "main_logo_left.bmp"
  899. boolean focusrectangle = false
  900. end type
  901. type p_2 from picture within w_main
  902. integer x = 2103
  903. integer width = 46
  904. integer height = 340
  905. boolean bringtotop = true
  906. string picturename = "main_logo_mid.bmp"
  907. boolean focusrectangle = false
  908. end type
  909. type p_3 from picture within w_main
  910. integer x = 2354
  911. integer width = 1234
  912. integer height = 340
  913. boolean bringtotop = true
  914. boolean originalsize = true
  915. string picturename = "main_logo_right.bmp"
  916. boolean focusrectangle = false
  917. end type
  918. type st_web from statictext within w_main
  919. integer x = 2757
  920. integer y = 376
  921. integer width = 123
  922. integer height = 52
  923. boolean bringtotop = true
  924. integer textsize = -9
  925. integer weight = 400
  926. fontcharset fontcharset = gb2312charset!
  927. fontpitch fontpitch = variable!
  928. string facename = "宋体"
  929. string pointer = "HyperLink!"
  930. long textcolor = 33554432
  931. long backcolor = 16777215
  932. string text = "官网"
  933. boolean focusrectangle = false
  934. end type
  935. event clicked;run('explorer http://www.sanross.cn/')
  936. end event
  937. type st_help from statictext within w_main
  938. integer x = 3035
  939. integer y = 376
  940. integer width = 123
  941. integer height = 52
  942. boolean bringtotop = true
  943. integer textsize = -9
  944. integer weight = 400
  945. fontcharset fontcharset = gb2312charset!
  946. fontpitch fontpitch = variable!
  947. string facename = "宋体"
  948. string pointer = "HyperLink!"
  949. long textcolor = 33554432
  950. long backcolor = 16777215
  951. string text = "帮助"
  952. boolean focusrectangle = false
  953. end type
  954. type st_about from statictext within w_main
  955. integer x = 3314
  956. integer y = 376
  957. integer width = 123
  958. integer height = 52
  959. boolean bringtotop = true
  960. integer textsize = -9
  961. integer weight = 400
  962. fontcharset fontcharset = gb2312charset!
  963. fontpitch fontpitch = variable!
  964. string facename = "宋体"
  965. string pointer = "HyperLink!"
  966. long textcolor = 33554432
  967. long backcolor = 16777215
  968. string text = "关于"
  969. boolean focusrectangle = false
  970. end type
  971. event clicked;open(w_about)
  972. end event
  973. type p_web from picture within w_main
  974. integer x = 2674
  975. integer y = 368
  976. integer width = 73
  977. integer height = 64
  978. boolean bringtotop = true
  979. string pointer = "HyperLink!"
  980. boolean originalsize = true
  981. string picturename = "graphics\ic_ie.bmp"
  982. boolean focusrectangle = false
  983. end type
  984. event clicked;st_web.triggerevent(clicked!)
  985. end event
  986. type p_help from picture within w_main
  987. integer x = 2949
  988. integer y = 368
  989. integer width = 73
  990. integer height = 64
  991. boolean bringtotop = true
  992. string pointer = "HyperLink!"
  993. boolean originalsize = true
  994. string picturename = "graphics\ic_05.bmp"
  995. boolean focusrectangle = false
  996. end type
  997. event clicked;st_help.triggerevent(clicked!)
  998. end event
  999. type tab_1 from tab within w_main
  1000. event create ( )
  1001. event destroy ( )
  1002. event ue_show ( )
  1003. event ue_hide ( )
  1004. integer x = 352
  1005. integer y = 360
  1006. integer width = 3744
  1007. integer height = 1596
  1008. integer taborder = 120
  1009. integer textsize = -9
  1010. integer weight = 400
  1011. fontcharset fontcharset = gb2312charset!
  1012. fontpitch fontpitch = variable!
  1013. string facename = "宋体"
  1014. long backcolor = 16777215
  1015. boolean raggedright = true
  1016. boolean focusonbuttondown = true
  1017. integer selectedtab = 1
  1018. tabpage_7 tabpage_7
  1019. tabpage_3 tabpage_3
  1020. tabpage_1 tabpage_1
  1021. tabpage_8 tabpage_8
  1022. tabpage_9 tabpage_9
  1023. tabpage_10 tabpage_10
  1024. tabpage_2 tabpage_2
  1025. tabpage_4 tabpage_4
  1026. tabpage_5 tabpage_5
  1027. tabpage_6 tabpage_6
  1028. end type
  1029. on tab_1.create
  1030. this.tabpage_7=create tabpage_7
  1031. this.tabpage_3=create tabpage_3
  1032. this.tabpage_1=create tabpage_1
  1033. this.tabpage_8=create tabpage_8
  1034. this.tabpage_9=create tabpage_9
  1035. this.tabpage_10=create tabpage_10
  1036. this.tabpage_2=create tabpage_2
  1037. this.tabpage_4=create tabpage_4
  1038. this.tabpage_5=create tabpage_5
  1039. this.tabpage_6=create tabpage_6
  1040. this.Control[]={this.tabpage_7,&
  1041. this.tabpage_3,&
  1042. this.tabpage_1,&
  1043. this.tabpage_8,&
  1044. this.tabpage_9,&
  1045. this.tabpage_10,&
  1046. this.tabpage_2,&
  1047. this.tabpage_4,&
  1048. this.tabpage_5,&
  1049. this.tabpage_6}
  1050. end on
  1051. on tab_1.destroy
  1052. destroy(this.tabpage_7)
  1053. destroy(this.tabpage_3)
  1054. destroy(this.tabpage_1)
  1055. destroy(this.tabpage_8)
  1056. destroy(this.tabpage_9)
  1057. destroy(this.tabpage_10)
  1058. destroy(this.tabpage_2)
  1059. destroy(this.tabpage_4)
  1060. destroy(this.tabpage_5)
  1061. destroy(this.tabpage_6)
  1062. end on
  1063. event ue_show();this.visible = true
  1064. p_web.visible = true
  1065. st_web.visible = true
  1066. p_help.visible = true
  1067. st_help.visible = true
  1068. st_about.visible = true
  1069. this.bringtotop = true
  1070. p_web.bringtotop = true
  1071. st_web.bringtotop = true
  1072. p_help.bringtotop = true
  1073. st_help.bringtotop = true
  1074. st_about.bringtotop = true
  1075. end event
  1076. event ue_hide();this.visible = false
  1077. p_web.visible = false
  1078. st_web.visible = false
  1079. p_help.visible = false
  1080. st_help.visible = false
  1081. st_about.visible = false
  1082. end event
  1083. event selectionchanged;wf_face()
  1084. Parent.PostEvent('ue_retrieve_cur')
  1085. end event
  1086. type tabpage_7 from userobject within tab_1
  1087. event create ( )
  1088. event destroy ( )
  1089. string tag = "7"
  1090. integer x = 18
  1091. integer y = 96
  1092. integer width = 3707
  1093. integer height = 1484
  1094. long backcolor = 16777215
  1095. string text = "新建(0)"
  1096. long tabtextcolor = 33554432
  1097. long tabbackcolor = 16777215
  1098. long picturemaskcolor = 536870912
  1099. uo_7 uo_7
  1100. dw_7 dw_7
  1101. end type
  1102. on tabpage_7.create
  1103. this.uo_7=create uo_7
  1104. this.dw_7=create dw_7
  1105. this.Control[]={this.uo_7,&
  1106. this.dw_7}
  1107. end on
  1108. on tabpage_7.destroy
  1109. destroy(this.uo_7)
  1110. destroy(this.dw_7)
  1111. end on
  1112. type uo_7 from uo_task_detail within tabpage_7
  1113. integer y = 724
  1114. integer taborder = 170
  1115. end type
  1116. event constructor;call super::constructor;// 隐藏订单相关中复杂的信息
  1117. this.tabpage_3.visible = false
  1118. this.tabpage_4.visible = false
  1119. this.tabpage_5.visible = false
  1120. end event
  1121. type dw_7 from u_dw_rbtnfilter within tabpage_7
  1122. integer width = 2455
  1123. integer height = 720
  1124. integer taborder = 40
  1125. boolean bringtotop = true
  1126. string dataobject = "dw_saletask_dm"
  1127. boolean hscrollbar = true
  1128. boolean vscrollbar = true
  1129. boolean hsplitscroll = true
  1130. boolean rbutton_filter_use = true
  1131. boolean titleclick_sort_use = true
  1132. end type
  1133. event doubleclicked;call super::doubleclicked;cur_dw = this
  1134. IF row <= 0 THEN
  1135. MessageBox('提示', '请选择目标')
  1136. RETURN
  1137. END IF
  1138. wf_showrow(row)
  1139. end event
  1140. event rowfocuschanged;call super::rowfocuschanged;this.selectrow(0, false)
  1141. long i
  1142. if currentrow > 0 then
  1143. this.selectrow(currentrow, true)
  1144. i = long(parent.tag)
  1145. long taskid
  1146. taskid = this.Object.taskid[currentrow]
  1147. if taskid > 0 then
  1148. uos[i].uof_retrieve(taskid)
  1149. end if
  1150. end if
  1151. end event
  1152. type tabpage_3 from userobject within tab_1
  1153. string tag = "3"
  1154. integer x = 18
  1155. integer y = 96
  1156. integer width = 3707
  1157. integer height = 1484
  1158. long backcolor = 16777215
  1159. string text = "已退回(3)"
  1160. long tabtextcolor = 33554432
  1161. long tabbackcolor = 134217739
  1162. long picturemaskcolor = 536870912
  1163. uo_3 uo_3
  1164. dw_3 dw_3
  1165. end type
  1166. on tabpage_3.create
  1167. this.uo_3=create uo_3
  1168. this.dw_3=create dw_3
  1169. this.Control[]={this.uo_3,&
  1170. this.dw_3}
  1171. end on
  1172. on tabpage_3.destroy
  1173. destroy(this.uo_3)
  1174. destroy(this.dw_3)
  1175. end on
  1176. type uo_3 from uo_task_detail within tabpage_3
  1177. integer y = 776
  1178. integer taborder = 150
  1179. end type
  1180. event constructor;call super::constructor;// 隐藏订单相关中复杂的信息
  1181. this.tabpage_3.visible = false
  1182. this.tabpage_4.visible = false
  1183. this.tabpage_5.visible = false
  1184. end event
  1185. type dw_3 from u_dw_rbtnfilter within tabpage_3
  1186. integer width = 2455
  1187. integer height = 720
  1188. integer taborder = 50
  1189. boolean bringtotop = true
  1190. string dataobject = "dw_saletask_dm"
  1191. boolean hscrollbar = true
  1192. boolean vscrollbar = true
  1193. boolean hsplitscroll = true
  1194. boolean rbutton_filter_use = true
  1195. boolean titleclick_sort_use = true
  1196. end type
  1197. event rowfocuschanged;call super::rowfocuschanged;this.selectrow(0, false)
  1198. if currentrow > 0 then
  1199. this.selectrow(currentrow, true)
  1200. long taskid
  1201. taskid = this.Object.taskid[currentrow]
  1202. if taskid > 0 then
  1203. uo_3.uof_retrieve(taskid)
  1204. end if
  1205. end if
  1206. end event
  1207. event doubleclicked;call super::doubleclicked;cur_dw = this
  1208. IF row <= 0 THEN
  1209. MessageBox('提示', '请选择目标')
  1210. RETURN
  1211. END IF
  1212. wf_showrow(row)
  1213. end event
  1214. type tabpage_1 from userobject within tab_1
  1215. event create ( )
  1216. event destroy ( )
  1217. string tag = "1"
  1218. integer x = 18
  1219. integer y = 96
  1220. integer width = 3707
  1221. integer height = 1484
  1222. long backcolor = 16777215
  1223. string text = "待工厂确认(3)"
  1224. long tabtextcolor = 33554432
  1225. long tabbackcolor = 134217739
  1226. long picturemaskcolor = 536870912
  1227. uo_1 uo_1
  1228. dw_1 dw_1
  1229. end type
  1230. on tabpage_1.create
  1231. this.uo_1=create uo_1
  1232. this.dw_1=create dw_1
  1233. this.Control[]={this.uo_1,&
  1234. this.dw_1}
  1235. end on
  1236. on tabpage_1.destroy
  1237. destroy(this.uo_1)
  1238. destroy(this.dw_1)
  1239. end on
  1240. type uo_1 from uo_task_detail within tabpage_1
  1241. integer y = 752
  1242. integer taborder = 150
  1243. end type
  1244. event constructor;call super::constructor;// 隐藏订单相关中复杂的信息
  1245. this.tabpage_3.visible = false
  1246. this.tabpage_4.visible = false
  1247. this.tabpage_5.visible = false
  1248. end event
  1249. type dw_1 from u_dw_rbtnfilter within tabpage_1
  1250. integer width = 2455
  1251. integer height = 720
  1252. integer taborder = 40
  1253. boolean bringtotop = true
  1254. string dataobject = "dw_saletask_dm"
  1255. boolean hscrollbar = true
  1256. boolean vscrollbar = true
  1257. boolean hsplitscroll = true
  1258. boolean rbutton_filter_use = true
  1259. boolean titleclick_sort_use = true
  1260. end type
  1261. event rowfocuschanged;call super::rowfocuschanged;this.selectrow(0, false)
  1262. if currentrow > 0 then
  1263. this.selectrow(currentrow, true)
  1264. long taskid
  1265. taskid = this.Object.taskid[currentrow]
  1266. if taskid > 0 then
  1267. uo_1.uof_retrieve(taskid)
  1268. end if
  1269. end if
  1270. end event
  1271. event doubleclicked;call super::doubleclicked;cur_dw = this
  1272. IF row <= 0 THEN
  1273. MessageBox('提示', '请选择目标')
  1274. RETURN
  1275. END IF
  1276. wf_showrow(row)
  1277. end event
  1278. type tabpage_8 from userobject within tab_1
  1279. string tag = "8"
  1280. integer x = 18
  1281. integer y = 96
  1282. integer width = 3707
  1283. integer height = 1484
  1284. long backcolor = 16777215
  1285. string text = "待上传发货明细(0)"
  1286. long tabtextcolor = 33554432
  1287. long tabbackcolor = 16777215
  1288. long picturemaskcolor = 536870912
  1289. uo_8 uo_8
  1290. dw_8 dw_8
  1291. end type
  1292. on tabpage_8.create
  1293. this.uo_8=create uo_8
  1294. this.dw_8=create dw_8
  1295. this.Control[]={this.uo_8,&
  1296. this.dw_8}
  1297. end on
  1298. on tabpage_8.destroy
  1299. destroy(this.uo_8)
  1300. destroy(this.dw_8)
  1301. end on
  1302. type uo_8 from uo_task_detail within tabpage_8
  1303. integer y = 724
  1304. integer taborder = 180
  1305. end type
  1306. event constructor;call super::constructor;// 隐藏订单相关中复杂的信息
  1307. this.tabpage_3.visible = false
  1308. this.tabpage_4.visible = false
  1309. this.tabpage_5.visible = false
  1310. end event
  1311. type dw_8 from u_dw_rbtnfilter within tabpage_8
  1312. integer width = 2455
  1313. integer height = 720
  1314. integer taborder = 50
  1315. boolean bringtotop = true
  1316. string dataobject = "dw_saletask_dm"
  1317. boolean hscrollbar = true
  1318. boolean vscrollbar = true
  1319. boolean hsplitscroll = true
  1320. boolean rbutton_filter_use = true
  1321. boolean titleclick_sort_use = true
  1322. end type
  1323. event doubleclicked;call super::doubleclicked;cur_dw = this
  1324. IF row <= 0 THEN
  1325. MessageBox('提示', '请选择目标')
  1326. RETURN
  1327. END IF
  1328. wf_showrow(row)
  1329. end event
  1330. event rowfocuschanged;call super::rowfocuschanged;this.selectrow(0, false)
  1331. long i
  1332. if currentrow > 0 then
  1333. this.selectrow(currentrow, true)
  1334. i = long(parent.tag)
  1335. long taskid
  1336. taskid = this.Object.taskid[currentrow]
  1337. if taskid > 0 then
  1338. uos[i].uof_retrieve(taskid)
  1339. end if
  1340. end if
  1341. end event
  1342. type tabpage_9 from userobject within tab_1
  1343. string tag = "9"
  1344. integer x = 18
  1345. integer y = 96
  1346. integer width = 3707
  1347. integer height = 1484
  1348. long backcolor = 16777215
  1349. string text = "待发货明细确认(0)"
  1350. long tabtextcolor = 33554432
  1351. long tabbackcolor = 16777215
  1352. long picturemaskcolor = 536870912
  1353. uo_9 uo_9
  1354. dw_9 dw_9
  1355. end type
  1356. on tabpage_9.create
  1357. this.uo_9=create uo_9
  1358. this.dw_9=create dw_9
  1359. this.Control[]={this.uo_9,&
  1360. this.dw_9}
  1361. end on
  1362. on tabpage_9.destroy
  1363. destroy(this.uo_9)
  1364. destroy(this.dw_9)
  1365. end on
  1366. type uo_9 from uo_task_detail within tabpage_9
  1367. integer y = 724
  1368. integer taborder = 180
  1369. end type
  1370. event constructor;call super::constructor;// 隐藏订单相关中复杂的信息
  1371. this.tabpage_3.visible = false
  1372. this.tabpage_4.visible = false
  1373. this.tabpage_5.visible = false
  1374. end event
  1375. type dw_9 from u_dw_rbtnfilter within tabpage_9
  1376. integer width = 2455
  1377. integer height = 720
  1378. integer taborder = 50
  1379. boolean bringtotop = true
  1380. string dataobject = "dw_saletask_dm"
  1381. boolean hscrollbar = true
  1382. boolean vscrollbar = true
  1383. boolean hsplitscroll = true
  1384. boolean rbutton_filter_use = true
  1385. boolean titleclick_sort_use = true
  1386. end type
  1387. event doubleclicked;call super::doubleclicked;cur_dw = this
  1388. IF row <= 0 THEN
  1389. MessageBox('提示', '请选择目标')
  1390. RETURN
  1391. END IF
  1392. wf_showrow(row)
  1393. end event
  1394. event rowfocuschanged;call super::rowfocuschanged;this.selectrow(0, false)
  1395. long i
  1396. if currentrow > 0 then
  1397. this.selectrow(currentrow, true)
  1398. i = long(parent.tag)
  1399. long taskid
  1400. taskid = this.Object.taskid[currentrow]
  1401. if taskid > 0 then
  1402. uos[i].uof_retrieve(taskid)
  1403. end if
  1404. end if
  1405. end event
  1406. type tabpage_10 from userobject within tab_1
  1407. string tag = "10"
  1408. integer x = 18
  1409. integer y = 96
  1410. integer width = 3707
  1411. integer height = 1484
  1412. long backcolor = 16777215
  1413. string text = "待上传报价明细(0)"
  1414. long tabtextcolor = 33554432
  1415. long tabbackcolor = 16777215
  1416. long picturemaskcolor = 536870912
  1417. uo_10 uo_10
  1418. dw_10 dw_10
  1419. end type
  1420. on tabpage_10.create
  1421. this.uo_10=create uo_10
  1422. this.dw_10=create dw_10
  1423. this.Control[]={this.uo_10,&
  1424. this.dw_10}
  1425. end on
  1426. on tabpage_10.destroy
  1427. destroy(this.uo_10)
  1428. destroy(this.dw_10)
  1429. end on
  1430. type uo_10 from uo_task_detail within tabpage_10
  1431. integer y = 724
  1432. integer taborder = 180
  1433. end type
  1434. event constructor;call super::constructor;// 隐藏订单相关中复杂的信息
  1435. this.tabpage_3.visible = false
  1436. this.tabpage_4.visible = false
  1437. this.tabpage_5.visible = false
  1438. end event
  1439. type dw_10 from u_dw_rbtnfilter within tabpage_10
  1440. integer width = 2455
  1441. integer height = 720
  1442. integer taborder = 50
  1443. boolean bringtotop = true
  1444. string dataobject = "dw_saletask_dm"
  1445. boolean hscrollbar = true
  1446. boolean vscrollbar = true
  1447. boolean hsplitscroll = true
  1448. boolean rbutton_filter_use = true
  1449. boolean titleclick_sort_use = true
  1450. end type
  1451. event doubleclicked;call super::doubleclicked;cur_dw = this
  1452. IF row <= 0 THEN
  1453. MessageBox('提示', '请选择目标')
  1454. RETURN
  1455. END IF
  1456. wf_showrow(row)
  1457. end event
  1458. event rowfocuschanged;call super::rowfocuschanged;this.selectrow(0, false)
  1459. long i
  1460. if currentrow > 0 then
  1461. this.selectrow(currentrow, true)
  1462. i = long(parent.tag)
  1463. long taskid
  1464. taskid = this.Object.taskid[currentrow]
  1465. if taskid > 0 then
  1466. uos[i].uof_retrieve(taskid)
  1467. end if
  1468. end if
  1469. end event
  1470. type tabpage_2 from userobject within tab_1
  1471. event create ( )
  1472. event destroy ( )
  1473. string tag = "2"
  1474. integer x = 18
  1475. integer y = 96
  1476. integer width = 3707
  1477. integer height = 1484
  1478. long backcolor = 16777215
  1479. string text = "待报价明细确认(2)"
  1480. long tabtextcolor = 33554432
  1481. long tabbackcolor = 134217739
  1482. long picturemaskcolor = 536870912
  1483. uo_2 uo_2
  1484. dw_2 dw_2
  1485. end type
  1486. on tabpage_2.create
  1487. this.uo_2=create uo_2
  1488. this.dw_2=create dw_2
  1489. this.Control[]={this.uo_2,&
  1490. this.dw_2}
  1491. end on
  1492. on tabpage_2.destroy
  1493. destroy(this.uo_2)
  1494. destroy(this.dw_2)
  1495. end on
  1496. type uo_2 from uo_task_detail within tabpage_2
  1497. integer y = 752
  1498. integer taborder = 150
  1499. end type
  1500. event ue_fjchanged;call super::ue_fjchanged;dw_2.Object.ifexcelerr[dw_2.GetRow()] = 1
  1501. end event
  1502. event constructor;call super::constructor;// 隐藏订单相关中复杂的信息
  1503. this.tabpage_3.visible = false
  1504. this.tabpage_4.visible = false
  1505. this.tabpage_5.visible = false
  1506. end event
  1507. type dw_2 from u_dw_rbtnfilter within tabpage_2
  1508. integer width = 2455
  1509. integer height = 720
  1510. integer taborder = 40
  1511. boolean bringtotop = true
  1512. string dataobject = "dw_saletask_dm"
  1513. boolean hscrollbar = true
  1514. boolean vscrollbar = true
  1515. boolean hsplitscroll = true
  1516. boolean rbutton_filter_use = true
  1517. boolean titleclick_sort_use = true
  1518. end type
  1519. event rowfocuschanged;call super::rowfocuschanged;this.selectrow(0, false)
  1520. if currentrow > 0 then
  1521. this.selectrow(currentrow, true)
  1522. long taskid
  1523. taskid = this.Object.taskid[currentrow]
  1524. if taskid > 0 then
  1525. uo_2.uof_retrieve(taskid)
  1526. end if
  1527. end if
  1528. end event
  1529. event doubleclicked;call super::doubleclicked;cur_dw = this
  1530. IF row <= 0 THEN
  1531. MessageBox('提示', '请选择目标')
  1532. RETURN
  1533. END IF
  1534. wf_showrow(row)
  1535. end event
  1536. type tabpage_4 from userobject within tab_1
  1537. event create ( )
  1538. event destroy ( )
  1539. string tag = "4"
  1540. integer x = 18
  1541. integer y = 96
  1542. integer width = 3707
  1543. integer height = 1484
  1544. long backcolor = 16777215
  1545. string text = "已下单(5)"
  1546. long tabtextcolor = 33554432
  1547. long tabbackcolor = 134217739
  1548. long picturemaskcolor = 536870912
  1549. uo_4 uo_4
  1550. dw_4 dw_4
  1551. end type
  1552. on tabpage_4.create
  1553. this.uo_4=create uo_4
  1554. this.dw_4=create dw_4
  1555. this.Control[]={this.uo_4,&
  1556. this.dw_4}
  1557. end on
  1558. on tabpage_4.destroy
  1559. destroy(this.uo_4)
  1560. destroy(this.dw_4)
  1561. end on
  1562. type uo_4 from uo_task_detail within tabpage_4
  1563. integer y = 736
  1564. integer taborder = 160
  1565. end type
  1566. type dw_4 from u_dw_rbtnfilter within tabpage_4
  1567. integer width = 2455
  1568. integer height = 720
  1569. integer taborder = 40
  1570. boolean bringtotop = true
  1571. string dataobject = "dw_saletask_dm"
  1572. boolean hscrollbar = true
  1573. boolean vscrollbar = true
  1574. boolean hsplitscroll = true
  1575. boolean rbutton_filter_use = true
  1576. boolean titleclick_sort_use = true
  1577. end type
  1578. event rowfocuschanged;call super::rowfocuschanged;this.selectrow(0, false)
  1579. if currentrow > 0 then
  1580. this.selectrow(currentrow, true)
  1581. long taskid
  1582. taskid = this.Object.taskid[currentrow]
  1583. if taskid > 0 then
  1584. uo_4.uof_retrieve(taskid)
  1585. end if
  1586. end if
  1587. end event
  1588. event doubleclicked;call super::doubleclicked;cur_dw = this
  1589. IF row <= 0 THEN
  1590. MessageBox('提示', '请选择目标')
  1591. RETURN
  1592. END IF
  1593. wf_showrow(row)
  1594. end event
  1595. type tabpage_5 from userobject within tab_1
  1596. event create ( )
  1597. event destroy ( )
  1598. string tag = "5"
  1599. integer x = 18
  1600. integer y = 96
  1601. integer width = 3707
  1602. integer height = 1484
  1603. long backcolor = 16777215
  1604. string text = "已发货(3)"
  1605. long tabtextcolor = 33554432
  1606. long tabbackcolor = 134217739
  1607. long picturemaskcolor = 536870912
  1608. uo_5 uo_5
  1609. cb_20 cb_20
  1610. dw_5 dw_5
  1611. end type
  1612. on tabpage_5.create
  1613. this.uo_5=create uo_5
  1614. this.cb_20=create cb_20
  1615. this.dw_5=create dw_5
  1616. this.Control[]={this.uo_5,&
  1617. this.cb_20,&
  1618. this.dw_5}
  1619. end on
  1620. on tabpage_5.destroy
  1621. destroy(this.uo_5)
  1622. destroy(this.cb_20)
  1623. destroy(this.dw_5)
  1624. end on
  1625. type uo_5 from uo_task_detail within tabpage_5
  1626. integer y = 728
  1627. integer taborder = 160
  1628. end type
  1629. type cb_20 from commandbutton within tabpage_5
  1630. integer width = 347
  1631. integer height = 92
  1632. integer taborder = 230
  1633. boolean bringtotop = true
  1634. integer textsize = -9
  1635. integer weight = 400
  1636. fontcharset fontcharset = gb2312charset!
  1637. fontpitch fontpitch = variable!
  1638. string facename = "宋体"
  1639. string text = "收货确认"
  1640. end type
  1641. event clicked;Long row
  1642. row = dw_5.GetRow()
  1643. IF row <= 0 THEN
  1644. MessageBox('提示', '请选择目标')
  1645. RETURN
  1646. END IF
  1647. IF dw_5.Object.status[row] <> 4 THEN
  1648. MessageBox('提示', '当前订单不在已发货状态')
  1649. RETURN
  1650. END IF
  1651. IF MessageBox('提问', '是否对订单['+dw_5.Object.tid[row]+']进行确认收货?',Question!,YesNo!) <> 1 THEN RETURN
  1652. oleobject parms
  1653. parms = AppCom.CreatePbDictionary()
  1654. parms.SetString('token', app_token)
  1655. parms.SetInt('taskid', dw_5.Object.taskid[row])
  1656. String arg_msg = ''
  1657. AppCom.FinishTask(parms, Ref arg_msg)
  1658. IF arg_msg = '' THEN
  1659. dw_5.Object.status[row] = 5
  1660. MessageBox('OK', '订单收货确认成功')
  1661. ELSE
  1662. MessageBox('ERROR', arg_msg)
  1663. END IF
  1664. end event
  1665. type dw_5 from u_dw_rbtnfilter within tabpage_5
  1666. integer y = 92
  1667. integer width = 2455
  1668. integer height = 628
  1669. integer taborder = 40
  1670. boolean bringtotop = true
  1671. string dataobject = "dw_saletask_dm"
  1672. boolean hscrollbar = true
  1673. boolean vscrollbar = true
  1674. boolean hsplitscroll = true
  1675. boolean rbutton_filter_use = true
  1676. boolean titleclick_sort_use = true
  1677. end type
  1678. event rowfocuschanged;call super::rowfocuschanged;this.selectrow(0, false)
  1679. if currentrow > 0 then
  1680. this.selectrow(currentrow, true)
  1681. long taskid
  1682. taskid = this.Object.taskid[currentrow]
  1683. if taskid > 0 then
  1684. uo_5.uof_retrieve(taskid)
  1685. end if
  1686. end if
  1687. end event
  1688. event doubleclicked;call super::doubleclicked;cur_dw = this
  1689. IF row <= 0 THEN
  1690. MessageBox('提示', '请选择目标')
  1691. RETURN
  1692. END IF
  1693. wf_showrow(row)
  1694. end event
  1695. type tabpage_6 from userobject within tab_1
  1696. event create ( )
  1697. event destroy ( )
  1698. string tag = "6"
  1699. integer x = 18
  1700. integer y = 96
  1701. integer width = 3707
  1702. integer height = 1484
  1703. long backcolor = 16777215
  1704. string text = "历史"
  1705. long tabtextcolor = 33554432
  1706. long tabbackcolor = 134217739
  1707. long picturemaskcolor = 536870912
  1708. ddlb_1 ddlb_1
  1709. st_2 st_2
  1710. sle_1 sle_1
  1711. st_1 st_1
  1712. uo_6 uo_6
  1713. dw_6 dw_6
  1714. pb_2 pb_2
  1715. pb_em2 pb_em2
  1716. pb_em1 pb_em1
  1717. em_2 em_2
  1718. em_1 em_1
  1719. st_4 st_4
  1720. st_3 st_3
  1721. end type
  1722. on tabpage_6.create
  1723. this.ddlb_1=create ddlb_1
  1724. this.st_2=create st_2
  1725. this.sle_1=create sle_1
  1726. this.st_1=create st_1
  1727. this.uo_6=create uo_6
  1728. this.dw_6=create dw_6
  1729. this.pb_2=create pb_2
  1730. this.pb_em2=create pb_em2
  1731. this.pb_em1=create pb_em1
  1732. this.em_2=create em_2
  1733. this.em_1=create em_1
  1734. this.st_4=create st_4
  1735. this.st_3=create st_3
  1736. this.Control[]={this.ddlb_1,&
  1737. this.st_2,&
  1738. this.sle_1,&
  1739. this.st_1,&
  1740. this.uo_6,&
  1741. this.dw_6,&
  1742. this.pb_2,&
  1743. this.pb_em2,&
  1744. this.pb_em1,&
  1745. this.em_2,&
  1746. this.em_1,&
  1747. this.st_4,&
  1748. this.st_3}
  1749. end on
  1750. on tabpage_6.destroy
  1751. destroy(this.ddlb_1)
  1752. destroy(this.st_2)
  1753. destroy(this.sle_1)
  1754. destroy(this.st_1)
  1755. destroy(this.uo_6)
  1756. destroy(this.dw_6)
  1757. destroy(this.pb_2)
  1758. destroy(this.pb_em2)
  1759. destroy(this.pb_em1)
  1760. destroy(this.em_2)
  1761. destroy(this.em_1)
  1762. destroy(this.st_4)
  1763. destroy(this.st_3)
  1764. end on
  1765. type ddlb_1 from dropdownlistbox within tabpage_6
  1766. integer x = 2537
  1767. integer width = 480
  1768. integer height = 688
  1769. integer taborder = 170
  1770. integer textsize = -9
  1771. integer weight = 400
  1772. fontcharset fontcharset = gb2312charset!
  1773. fontpitch fontpitch = variable!
  1774. string facename = "宋体"
  1775. string text = "已收货"
  1776. boolean sorted = false
  1777. boolean vscrollbar = true
  1778. string item[] = {"待询价","已报价","已退回","已下单","已发货","已收货","全部"}
  1779. borderstyle borderstyle = stylelowered!
  1780. end type
  1781. type st_2 from statictext within tabpage_6
  1782. integer x = 2373
  1783. integer y = 16
  1784. integer width = 160
  1785. integer height = 48
  1786. integer textsize = -9
  1787. integer weight = 400
  1788. fontcharset fontcharset = gb2312charset!
  1789. fontpitch fontpitch = variable!
  1790. string facename = "宋体"
  1791. long textcolor = 33554432
  1792. long backcolor = 16777215
  1793. string text = "状态:"
  1794. alignment alignment = right!
  1795. boolean focusrectangle = false
  1796. end type
  1797. type sle_1 from singlelineedit within tabpage_6
  1798. integer x = 1824
  1799. integer width = 503
  1800. integer height = 84
  1801. integer taborder = 160
  1802. integer textsize = -9
  1803. integer weight = 400
  1804. fontcharset fontcharset = gb2312charset!
  1805. fontpitch fontpitch = variable!
  1806. string facename = "宋体"
  1807. long textcolor = 33554432
  1808. borderstyle borderstyle = stylelowered!
  1809. end type
  1810. type st_1 from statictext within tabpage_6
  1811. integer x = 1609
  1812. integer y = 16
  1813. integer width = 215
  1814. integer height = 48
  1815. integer textsize = -9
  1816. integer weight = 400
  1817. fontcharset fontcharset = gb2312charset!
  1818. fontpitch fontpitch = variable!
  1819. string facename = "宋体"
  1820. long textcolor = 33554432
  1821. long backcolor = 16777215
  1822. string text = "单号含:"
  1823. alignment alignment = right!
  1824. boolean focusrectangle = false
  1825. end type
  1826. type uo_6 from uo_task_detail within tabpage_6
  1827. integer y = 820
  1828. integer taborder = 160
  1829. end type
  1830. type dw_6 from u_dw_rbtnfilter within tabpage_6
  1831. integer y = 96
  1832. integer width = 2455
  1833. integer height = 720
  1834. integer taborder = 30
  1835. boolean bringtotop = true
  1836. string dataobject = "dw_saletask_dm"
  1837. boolean hscrollbar = true
  1838. boolean vscrollbar = true
  1839. boolean hsplitscroll = true
  1840. boolean rbutton_filter_use = true
  1841. boolean titleclick_sort_use = true
  1842. end type
  1843. event rowfocuschanged;call super::rowfocuschanged;this.selectrow(0, false)
  1844. if currentrow > 0 then
  1845. this.selectrow(currentrow, true)
  1846. long taskid
  1847. taskid = this.Object.taskid[currentrow]
  1848. if taskid > 0 then
  1849. uo_6.uof_retrieve(taskid)
  1850. end if
  1851. end if
  1852. end event
  1853. event doubleclicked;call super::doubleclicked;cur_dw = this
  1854. IF row <= 0 THEN
  1855. MessageBox('提示', '请选择目标')
  1856. RETURN
  1857. END IF
  1858. wf_showrow(row)
  1859. end event
  1860. type pb_2 from picturebutton within tabpage_6
  1861. integer x = 1463
  1862. integer width = 101
  1863. integer height = 92
  1864. integer taborder = 150
  1865. boolean bringtotop = true
  1866. integer textsize = -9
  1867. integer weight = 400
  1868. fontcharset fontcharset = gb2312charset!
  1869. fontpitch fontpitch = variable!
  1870. string facename = "宋体"
  1871. string picturename = "date1.BMP"
  1872. alignment htextalign = left!
  1873. end type
  1874. event clicked;m_Dfc_Control_PopupMenu dmPopupMenu
  1875. string menustr
  1876. menustr="Text=本日~tEvent=ue_date1"
  1877. menustr = menustr + "|" + "Text=本周~tEvent=ue_date2"
  1878. menustr = menustr + "|" + "Text=本月~tEvent=ue_date3"
  1879. if len(trim(menustr))<>0 then
  1880. dmPopupMenu = Create m_Dfc_Control_PopupMenu
  1881. dmPopupMenu.mf_BuildMenu(This, menustr)
  1882. dmPopupMenu.mf_PopMenu()
  1883. Destroy dmPopupMenu
  1884. end if
  1885. end event
  1886. type pb_em2 from picturebutton within tabpage_6
  1887. integer x = 1353
  1888. integer width = 101
  1889. integer height = 92
  1890. integer taborder = 140
  1891. boolean bringtotop = true
  1892. integer textsize = -9
  1893. integer weight = 400
  1894. fontcharset fontcharset = gb2312charset!
  1895. fontpitch fontpitch = variable!
  1896. string facename = "宋体"
  1897. string picturename = "date.BMP"
  1898. alignment htextalign = left!
  1899. end type
  1900. event clicked;em_2.triggerevent(rbuttondown!)
  1901. end event
  1902. type pb_em1 from picturebutton within tabpage_6
  1903. integer x = 741
  1904. integer width = 101
  1905. integer height = 92
  1906. integer taborder = 130
  1907. boolean bringtotop = true
  1908. integer textsize = -9
  1909. integer weight = 400
  1910. fontcharset fontcharset = gb2312charset!
  1911. fontpitch fontpitch = variable!
  1912. string facename = "宋体"
  1913. string picturename = "date.BMP"
  1914. alignment htextalign = left!
  1915. end type
  1916. event clicked;em_1.triggerevent(rbuttondown!)
  1917. end event
  1918. type em_2 from editmask within tabpage_6
  1919. integer x = 937
  1920. integer width = 407
  1921. integer height = 88
  1922. integer taborder = 130
  1923. boolean bringtotop = true
  1924. integer textsize = -9
  1925. integer weight = 400
  1926. fontcharset fontcharset = gb2312charset!
  1927. fontpitch fontpitch = variable!
  1928. string facename = "宋体"
  1929. long textcolor = 33554432
  1930. borderstyle borderstyle = stylelowered!
  1931. maskdatatype maskdatatype = datemask!
  1932. string mask = "yyyy-mm-dd"
  1933. boolean spin = true
  1934. end type
  1935. event rbuttondown;s_calender_arg s_calender
  1936. s_calender.PointerX = THIS.PointerX()
  1937. s_calender.PointerY = THIS.PointerY()
  1938. s_calender.X = THIS.X
  1939. s_calender.Y = THIS.Y
  1940. OpenWithParm(w_calendar,s_calender)
  1941. THIS.Text = String(id_date_selected)
  1942. end event
  1943. type em_1 from editmask within tabpage_6
  1944. integer x = 325
  1945. integer width = 407
  1946. integer height = 88
  1947. integer taborder = 120
  1948. boolean bringtotop = true
  1949. integer textsize = -9
  1950. integer weight = 400
  1951. fontcharset fontcharset = gb2312charset!
  1952. fontpitch fontpitch = variable!
  1953. string facename = "宋体"
  1954. long textcolor = 33554432
  1955. borderstyle borderstyle = stylelowered!
  1956. maskdatatype maskdatatype = datemask!
  1957. string mask = "yyyy-mm-dd"
  1958. boolean spin = true
  1959. end type
  1960. event rbuttondown;s_calender_arg s_calender
  1961. s_calender.PointerX = THIS.PointerX()
  1962. s_calender.PointerY = THIS.PointerY()
  1963. s_calender.X = THIS.X
  1964. s_calender.Y = THIS.Y
  1965. OpenWithParm(w_calendar,s_calender)
  1966. THIS.Text = String(id_date_selected)
  1967. end event
  1968. type st_4 from statictext within tabpage_6
  1969. integer x = 832
  1970. integer y = 16
  1971. integer width = 105
  1972. integer height = 60
  1973. boolean bringtotop = true
  1974. integer textsize = -9
  1975. integer weight = 400
  1976. fontcharset fontcharset = gb2312charset!
  1977. fontpitch fontpitch = variable!
  1978. string facename = "宋体"
  1979. long textcolor = 33554432
  1980. long backcolor = 16777215
  1981. boolean enabled = false
  1982. string text = "到:"
  1983. alignment alignment = right!
  1984. boolean focusrectangle = false
  1985. end type
  1986. event constructor;this.backcolor = parent.backcolor
  1987. end event
  1988. type st_3 from statictext within tabpage_6
  1989. integer y = 16
  1990. integer width = 315
  1991. integer height = 60
  1992. boolean bringtotop = true
  1993. integer textsize = -9
  1994. integer weight = 400
  1995. fontcharset fontcharset = gb2312charset!
  1996. fontpitch fontpitch = variable!
  1997. string facename = "宋体"
  1998. long textcolor = 33554432
  1999. long backcolor = 16777215
  2000. boolean enabled = false
  2001. string text = "订货日期从:"
  2002. alignment alignment = right!
  2003. boolean focusrectangle = false
  2004. end type
  2005. event constructor;this.backcolor = parent.backcolor
  2006. end event