w_saletask_dm.srw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545
  1. $PBExportHeader$w_saletask_dm.srw
  2. forward
  3. global type w_saletask_dm from w_publ_base_style
  4. end type
  5. type dw_1 from u_dw_rbtnfilter within w_saletask_dm
  6. end type
  7. type ddlb_1 from dropdownlistbox within w_saletask_dm
  8. end type
  9. type st_3 from statictext within w_saletask_dm
  10. end type
  11. type st_4 from statictext within w_saletask_dm
  12. end type
  13. type em_1 from editmask within w_saletask_dm
  14. end type
  15. type em_2 from editmask within w_saletask_dm
  16. end type
  17. type pb_em1 from picturebutton within w_saletask_dm
  18. end type
  19. type pb_em2 from picturebutton within w_saletask_dm
  20. end type
  21. type pb_2 from picturebutton within w_saletask_dm
  22. end type
  23. type st_1 from statictext within w_saletask_dm
  24. end type
  25. type cb_1 from uo_imflatbutton within w_saletask_dm
  26. end type
  27. type cb_2 from uo_imflatbutton within w_saletask_dm
  28. end type
  29. type cb_3 from uo_imflatbutton within w_saletask_dm
  30. end type
  31. type cb_4 from uo_imflatbutton within w_saletask_dm
  32. end type
  33. type cb_5 from uo_imflatbutton within w_saletask_dm
  34. end type
  35. type ln_1 from line within w_saletask_dm
  36. end type
  37. type ln_2 from line within w_saletask_dm
  38. end type
  39. end forward
  40. global type w_saletask_dm from w_publ_base_style
  41. integer width = 3177
  42. integer height = 1968
  43. string title = "订单管理(门店)"
  44. boolean maxbox = true
  45. boolean resizable = true
  46. dw_1 dw_1
  47. ddlb_1 ddlb_1
  48. st_3 st_3
  49. st_4 st_4
  50. em_1 em_1
  51. em_2 em_2
  52. pb_em1 pb_em1
  53. pb_em2 pb_em2
  54. pb_2 pb_2
  55. st_1 st_1
  56. cb_1 cb_1
  57. cb_2 cb_2
  58. cb_3 cb_3
  59. cb_4 cb_4
  60. cb_5 cb_5
  61. ln_1 ln_1
  62. ln_2 ln_2
  63. end type
  64. global w_saletask_dm w_saletask_dm
  65. on w_saletask_dm.create
  66. int iCurrent
  67. call super::create
  68. this.dw_1=create dw_1
  69. this.ddlb_1=create ddlb_1
  70. this.st_3=create st_3
  71. this.st_4=create st_4
  72. this.em_1=create em_1
  73. this.em_2=create em_2
  74. this.pb_em1=create pb_em1
  75. this.pb_em2=create pb_em2
  76. this.pb_2=create pb_2
  77. this.st_1=create st_1
  78. this.cb_1=create cb_1
  79. this.cb_2=create cb_2
  80. this.cb_3=create cb_3
  81. this.cb_4=create cb_4
  82. this.cb_5=create cb_5
  83. this.ln_1=create ln_1
  84. this.ln_2=create ln_2
  85. iCurrent=UpperBound(this.Control)
  86. this.Control[iCurrent+1]=this.dw_1
  87. this.Control[iCurrent+2]=this.ddlb_1
  88. this.Control[iCurrent+3]=this.st_3
  89. this.Control[iCurrent+4]=this.st_4
  90. this.Control[iCurrent+5]=this.em_1
  91. this.Control[iCurrent+6]=this.em_2
  92. this.Control[iCurrent+7]=this.pb_em1
  93. this.Control[iCurrent+8]=this.pb_em2
  94. this.Control[iCurrent+9]=this.pb_2
  95. this.Control[iCurrent+10]=this.st_1
  96. this.Control[iCurrent+11]=this.cb_1
  97. this.Control[iCurrent+12]=this.cb_2
  98. this.Control[iCurrent+13]=this.cb_3
  99. this.Control[iCurrent+14]=this.cb_4
  100. this.Control[iCurrent+15]=this.cb_5
  101. this.Control[iCurrent+16]=this.ln_1
  102. this.Control[iCurrent+17]=this.ln_2
  103. end on
  104. on w_saletask_dm.destroy
  105. call super::destroy
  106. destroy(this.dw_1)
  107. destroy(this.ddlb_1)
  108. destroy(this.st_3)
  109. destroy(this.st_4)
  110. destroy(this.em_1)
  111. destroy(this.em_2)
  112. destroy(this.pb_em1)
  113. destroy(this.pb_em2)
  114. destroy(this.pb_2)
  115. destroy(this.st_1)
  116. destroy(this.cb_1)
  117. destroy(this.cb_2)
  118. destroy(this.cb_3)
  119. destroy(this.cb_4)
  120. destroy(this.cb_5)
  121. destroy(this.ln_1)
  122. destroy(this.ln_2)
  123. end on
  124. event resize;call super::resize;ln_1.endx = this.width
  125. ln_2.endx = this.width
  126. dw_1.width = this.Workspacewidth() - dw_1.x
  127. dw_1.Height = this.workspaceheight() - dw_1.y
  128. end event
  129. type cb_func from w_publ_base_style`cb_func within w_saletask_dm
  130. integer x = 1001
  131. end type
  132. type cb_exit from w_publ_base_style`cb_exit within w_saletask_dm
  133. integer x = 1152
  134. end type
  135. type ln_bar from w_publ_base_style`ln_bar within w_saletask_dm
  136. integer beginy = 280
  137. integer endy = 280
  138. end type
  139. type ln_bar2 from w_publ_base_style`ln_bar2 within w_saletask_dm
  140. integer beginy = 284
  141. integer endy = 284
  142. end type
  143. type r_bar from w_publ_base_style`r_bar within w_saletask_dm
  144. end type
  145. type dw_1 from u_dw_rbtnfilter within w_saletask_dm
  146. integer y = 296
  147. integer width = 2455
  148. integer height = 1372
  149. integer taborder = 20
  150. boolean bringtotop = true
  151. string dataobject = "dw_saletask_dm"
  152. boolean hscrollbar = true
  153. boolean vscrollbar = true
  154. boolean hsplitscroll = true
  155. end type
  156. event rowfocuschanged;call super::rowfocuschanged;this.selectrow(0, false)
  157. if currentrow > 0 then
  158. this.selectrow(currentrow, true)
  159. end if
  160. end event
  161. type ddlb_1 from dropdownlistbox within w_saletask_dm
  162. integer x = 329
  163. integer y = 188
  164. integer width = 549
  165. integer height = 476
  166. integer taborder = 20
  167. boolean bringtotop = true
  168. integer textsize = -9
  169. integer weight = 400
  170. fontcharset fontcharset = gb2312charset!
  171. fontpitch fontpitch = variable!
  172. string facename = "宋体"
  173. long textcolor = 33554432
  174. string text = "待设计"
  175. boolean sorted = false
  176. string item[] = {"待询价","已报价","已下单","已发货","已收货"}
  177. borderstyle borderstyle = stylelowered!
  178. end type
  179. type st_3 from statictext within w_saletask_dm
  180. integer x = 905
  181. integer y = 196
  182. integer width = 315
  183. integer height = 60
  184. boolean bringtotop = true
  185. integer textsize = -9
  186. integer weight = 400
  187. fontcharset fontcharset = gb2312charset!
  188. fontpitch fontpitch = variable!
  189. string facename = "宋体"
  190. long textcolor = 33554432
  191. long backcolor = 134217739
  192. boolean enabled = false
  193. string text = "订货日期从:"
  194. alignment alignment = right!
  195. boolean focusrectangle = false
  196. end type
  197. event constructor;this.backcolor = 14215660
  198. end event
  199. type st_4 from statictext within w_saletask_dm
  200. integer x = 1737
  201. integer y = 196
  202. integer width = 105
  203. integer height = 60
  204. boolean bringtotop = true
  205. integer textsize = -9
  206. integer weight = 400
  207. fontcharset fontcharset = gb2312charset!
  208. fontpitch fontpitch = variable!
  209. string facename = "宋体"
  210. long textcolor = 33554432
  211. long backcolor = 134217739
  212. boolean enabled = false
  213. string text = "到:"
  214. alignment alignment = right!
  215. boolean focusrectangle = false
  216. end type
  217. event constructor;this.backcolor = 14215660
  218. end event
  219. type em_1 from editmask within w_saletask_dm
  220. integer x = 1230
  221. integer y = 180
  222. integer width = 407
  223. integer height = 88
  224. integer taborder = 110
  225. boolean bringtotop = true
  226. integer textsize = -9
  227. integer weight = 400
  228. fontcharset fontcharset = gb2312charset!
  229. fontpitch fontpitch = variable!
  230. string facename = "宋体"
  231. long textcolor = 33554432
  232. borderstyle borderstyle = stylelowered!
  233. maskdatatype maskdatatype = datemask!
  234. string mask = "yyyy-mm-dd"
  235. boolean spin = true
  236. end type
  237. event rbuttondown;s_calender_arg s_calender
  238. s_calender.PointerX = THIS.PointerX()
  239. s_calender.PointerY = THIS.PointerY()
  240. s_calender.X = THIS.X
  241. s_calender.Y = THIS.Y
  242. OpenWithParm(w_calendar,s_calender)
  243. THIS.Text = String(id_date_selected)
  244. end event
  245. type em_2 from editmask within w_saletask_dm
  246. integer x = 1842
  247. integer y = 180
  248. integer width = 407
  249. integer height = 88
  250. integer taborder = 120
  251. boolean bringtotop = true
  252. integer textsize = -9
  253. integer weight = 400
  254. fontcharset fontcharset = gb2312charset!
  255. fontpitch fontpitch = variable!
  256. string facename = "宋体"
  257. long textcolor = 33554432
  258. borderstyle borderstyle = stylelowered!
  259. maskdatatype maskdatatype = datemask!
  260. string mask = "yyyy-mm-dd"
  261. boolean spin = true
  262. end type
  263. event rbuttondown;s_calender_arg s_calender
  264. s_calender.PointerX = THIS.PointerX()
  265. s_calender.PointerY = THIS.PointerY()
  266. s_calender.X = THIS.X
  267. s_calender.Y = THIS.Y
  268. OpenWithParm(w_calendar,s_calender)
  269. THIS.Text = String(id_date_selected)
  270. end event
  271. type pb_em1 from picturebutton within w_saletask_dm
  272. integer x = 1646
  273. integer y = 180
  274. integer width = 101
  275. integer height = 92
  276. integer taborder = 120
  277. boolean bringtotop = true
  278. integer textsize = -9
  279. integer weight = 400
  280. fontcharset fontcharset = gb2312charset!
  281. fontpitch fontpitch = variable!
  282. string facename = "宋体"
  283. string picturename = "date.BMP"
  284. alignment htextalign = left!
  285. end type
  286. event clicked;em_1.triggerevent(rbuttondown!)
  287. end event
  288. type pb_em2 from picturebutton within w_saletask_dm
  289. integer x = 2258
  290. integer y = 180
  291. integer width = 101
  292. integer height = 92
  293. integer taborder = 130
  294. boolean bringtotop = true
  295. integer textsize = -9
  296. integer weight = 400
  297. fontcharset fontcharset = gb2312charset!
  298. fontpitch fontpitch = variable!
  299. string facename = "宋体"
  300. string picturename = "date.BMP"
  301. alignment htextalign = left!
  302. end type
  303. event clicked;em_2.triggerevent(rbuttondown!)
  304. end event
  305. type pb_2 from picturebutton within w_saletask_dm
  306. integer x = 2368
  307. integer y = 180
  308. integer width = 101
  309. integer height = 92
  310. integer taborder = 140
  311. boolean bringtotop = true
  312. integer textsize = -9
  313. integer weight = 400
  314. fontcharset fontcharset = gb2312charset!
  315. fontpitch fontpitch = variable!
  316. string facename = "宋体"
  317. string picturename = "date1.BMP"
  318. alignment htextalign = left!
  319. end type
  320. event clicked;m_Dfc_Control_PopupMenu dmPopupMenu
  321. string menustr
  322. menustr="Text=本日~tEvent=ue_date1"
  323. menustr = menustr + "|" + "Text=本周~tEvent=ue_date2"
  324. menustr = menustr + "|" + "Text=本月~tEvent=ue_date3"
  325. if len(trim(menustr))<>0 then
  326. dmPopupMenu = Create m_Dfc_Control_PopupMenu
  327. dmPopupMenu.mf_BuildMenu(This, menustr)
  328. dmPopupMenu.mf_PopMenu()
  329. Destroy dmPopupMenu
  330. end if
  331. end event
  332. type st_1 from statictext within w_saletask_dm
  333. integer x = 23
  334. integer y = 200
  335. integer width = 288
  336. integer height = 48
  337. boolean bringtotop = true
  338. integer textsize = -9
  339. integer weight = 400
  340. fontcharset fontcharset = gb2312charset!
  341. fontpitch fontpitch = variable!
  342. string facename = "宋体"
  343. long textcolor = 33554432
  344. long backcolor = 134217739
  345. string text = "订单状态"
  346. alignment alignment = right!
  347. boolean focusrectangle = false
  348. end type
  349. event constructor;this.backcolor = 14215660
  350. end event
  351. type cb_1 from uo_imflatbutton within w_saletask_dm
  352. integer width = 151
  353. integer height = 164
  354. integer taborder = 50
  355. boolean bringtotop = true
  356. string text = "刷新"
  357. string normalpicname = "refresh.bmp"
  358. integer picsize = 16
  359. toolbaralignment pic_align = alignattop!
  360. boolean border = false
  361. end type
  362. event clicked;call super::clicked;//DateTime first_date,end_date
  363. //
  364. //first_date = DateTime(Date(em_1.Text),Time(0))
  365. //end_date = DateTime(Date(em_2.Text),Time('23:59:59'))
  366. //String ls_cust_str, ls_mtrl_str
  367. //IF Pos(sle_cust.Text,"%") <> 0 THEN
  368. // ls_cust_str = trim(sle_cust.Text)
  369. //ELSE
  370. // ls_cust_str = "%"+trim(sle_cust.Text)+"%"
  371. //END IF
  372. //IF Pos(sle_mtrl.Text,"%") <> 0 THEN
  373. // ls_mtrl_str = trim(sle_mtrl.Text)
  374. //ELSE
  375. // ls_mtrl_str = "%"+trim(sle_mtrl.Text)+"%"
  376. //END IF
  377. //dw_1.Retrieve(DATE(EM_1.TEXT),DATE(EM_2.TEXT),ls_cust_str,ls_mtrl_str)
  378. //dw_1.OBJECT.date_mid.TEXT=EM_1.TEXT+'~~'+EM_2.TEXT
  379. end event
  380. type cb_2 from uo_imflatbutton within w_saletask_dm
  381. integer x = 151
  382. integer width = 151
  383. integer height = 164
  384. integer taborder = 60
  385. boolean bringtotop = true
  386. string text = "新建"
  387. string normalpicname = "NEW.BMP"
  388. integer picsize = 16
  389. toolbaralignment pic_align = alignattop!
  390. boolean border = false
  391. end type
  392. event clicked;call super::clicked;open(w_saletask_dm_edit)
  393. end event
  394. type cb_3 from uo_imflatbutton within w_saletask_dm
  395. integer x = 453
  396. integer width = 274
  397. integer height = 164
  398. integer taborder = 70
  399. boolean bringtotop = true
  400. string text = "下单确认"
  401. string normalpicname = "ok.bmp"
  402. integer picsize = 16
  403. toolbaralignment pic_align = alignattop!
  404. boolean border = false
  405. end type
  406. event clicked;call super::clicked;//DateTime first_date,end_date
  407. //
  408. //first_date = DateTime(Date(em_1.Text),Time(0))
  409. //end_date = DateTime(Date(em_2.Text),Time('23:59:59'))
  410. //String ls_cust_str, ls_mtrl_str
  411. //IF Pos(sle_cust.Text,"%") <> 0 THEN
  412. // ls_cust_str = trim(sle_cust.Text)
  413. //ELSE
  414. // ls_cust_str = "%"+trim(sle_cust.Text)+"%"
  415. //END IF
  416. //IF Pos(sle_mtrl.Text,"%") <> 0 THEN
  417. // ls_mtrl_str = trim(sle_mtrl.Text)
  418. //ELSE
  419. // ls_mtrl_str = "%"+trim(sle_mtrl.Text)+"%"
  420. //END IF
  421. //dw_1.Retrieve(DATE(EM_1.TEXT),DATE(EM_2.TEXT),ls_cust_str,ls_mtrl_str)
  422. //dw_1.OBJECT.date_mid.TEXT=EM_1.TEXT+'~~'+EM_2.TEXT
  423. end event
  424. type cb_4 from uo_imflatbutton within w_saletask_dm
  425. integer x = 727
  426. integer width = 274
  427. integer height = 164
  428. integer taborder = 80
  429. boolean bringtotop = true
  430. string text = "收货确认"
  431. string normalpicname = "ok.bmp"
  432. integer picsize = 16
  433. toolbaralignment pic_align = alignattop!
  434. boolean border = false
  435. end type
  436. event clicked;call super::clicked;//DateTime first_date,end_date
  437. //
  438. //first_date = DateTime(Date(em_1.Text),Time(0))
  439. //end_date = DateTime(Date(em_2.Text),Time('23:59:59'))
  440. //String ls_cust_str, ls_mtrl_str
  441. //IF Pos(sle_cust.Text,"%") <> 0 THEN
  442. // ls_cust_str = trim(sle_cust.Text)
  443. //ELSE
  444. // ls_cust_str = "%"+trim(sle_cust.Text)+"%"
  445. //END IF
  446. //IF Pos(sle_mtrl.Text,"%") <> 0 THEN
  447. // ls_mtrl_str = trim(sle_mtrl.Text)
  448. //ELSE
  449. // ls_mtrl_str = "%"+trim(sle_mtrl.Text)+"%"
  450. //END IF
  451. //dw_1.Retrieve(DATE(EM_1.TEXT),DATE(EM_2.TEXT),ls_cust_str,ls_mtrl_str)
  452. //dw_1.OBJECT.date_mid.TEXT=EM_1.TEXT+'~~'+EM_2.TEXT
  453. end event
  454. type cb_5 from uo_imflatbutton within w_saletask_dm
  455. integer x = 302
  456. integer width = 151
  457. integer height = 164
  458. integer taborder = 70
  459. boolean bringtotop = true
  460. string text = "修改"
  461. string normalpicname = "Open.bmp"
  462. integer picsize = 16
  463. toolbaralignment pic_align = alignattop!
  464. boolean border = false
  465. end type
  466. event clicked;call super::clicked;open(w_saletask_dm_edit)
  467. end event
  468. type ln_1 from line within w_saletask_dm
  469. long linecolor = 268435456
  470. integer linethickness = 4
  471. integer beginx = -18
  472. integer beginy = 168
  473. integer endx = 1998
  474. integer endy = 168
  475. end type
  476. type ln_2 from line within w_saletask_dm
  477. long linecolor = 16777215
  478. integer linethickness = 4
  479. integer beginx = -18
  480. integer beginy = 172
  481. integer endx = 2030
  482. integer endy = 172
  483. end type