w_saletask_dm_tab_new_edit.srw 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394
  1. $PBExportHeader$w_saletask_dm_tab_new_edit.srw
  2. forward
  3. global type w_saletask_dm_tab_new_edit from w_publ_base_style
  4. end type
  5. type cb_1 from uo_imflatbutton within w_saletask_dm_tab_new_edit
  6. end type
  7. type cb_2 from uo_imflatbutton within w_saletask_dm_tab_new_edit
  8. end type
  9. type cb_3 from uo_imflatbutton within w_saletask_dm_tab_new_edit
  10. end type
  11. type cb_4 from uo_imflatbutton within w_saletask_dm_tab_new_edit
  12. end type
  13. type cb_5 from commandbutton within w_saletask_dm_tab_new_edit
  14. end type
  15. type cb_6 from commandbutton within w_saletask_dm_tab_new_edit
  16. end type
  17. type cb_18 from commandbutton within w_saletask_dm_tab_new_edit
  18. end type
  19. type cb_19 from commandbutton within w_saletask_dm_tab_new_edit
  20. end type
  21. type dw_1 from datawindow within w_saletask_dm_tab_new_edit
  22. end type
  23. type cb_8 from uo_imflatbutton within w_saletask_dm_tab_new_edit
  24. end type
  25. type dw_2 from datawindow within w_saletask_dm_tab_new_edit
  26. end type
  27. type cb_11 from uo_imflatbutton within w_saletask_dm_tab_new_edit
  28. end type
  29. end forward
  30. global type w_saletask_dm_tab_new_edit from w_publ_base_style
  31. integer width = 3168
  32. integer height = 2008
  33. string title = "订单管理(门店)"
  34. boolean maxbox = true
  35. boolean resizable = true
  36. cb_1 cb_1
  37. cb_2 cb_2
  38. cb_3 cb_3
  39. cb_4 cb_4
  40. cb_5 cb_5
  41. cb_6 cb_6
  42. cb_18 cb_18
  43. cb_19 cb_19
  44. dw_1 dw_1
  45. cb_8 cb_8
  46. dw_2 dw_2
  47. cb_11 cb_11
  48. end type
  49. global w_saletask_dm_tab_new_edit w_saletask_dm_tab_new_edit
  50. type variables
  51. datawindow dw_1, dw_2, dw_3, dw_4, dw_5, dw_6
  52. long tab_index
  53. end variables
  54. forward prototypes
  55. public subroutine wf_face ()
  56. end prototypes
  57. public subroutine wf_face ();cb_3.Enabled = tab_index = 2
  58. cb_4.Enabled = tab_index = 4
  59. end subroutine
  60. on w_saletask_dm_tab_new_edit.create
  61. int iCurrent
  62. call super::create
  63. this.cb_1=create cb_1
  64. this.cb_2=create cb_2
  65. this.cb_3=create cb_3
  66. this.cb_4=create cb_4
  67. this.cb_5=create cb_5
  68. this.cb_6=create cb_6
  69. this.cb_18=create cb_18
  70. this.cb_19=create cb_19
  71. this.dw_1=create dw_1
  72. this.cb_8=create cb_8
  73. this.dw_2=create dw_2
  74. this.cb_11=create cb_11
  75. iCurrent=UpperBound(this.Control)
  76. this.Control[iCurrent+1]=this.cb_1
  77. this.Control[iCurrent+2]=this.cb_2
  78. this.Control[iCurrent+3]=this.cb_3
  79. this.Control[iCurrent+4]=this.cb_4
  80. this.Control[iCurrent+5]=this.cb_5
  81. this.Control[iCurrent+6]=this.cb_6
  82. this.Control[iCurrent+7]=this.cb_18
  83. this.Control[iCurrent+8]=this.cb_19
  84. this.Control[iCurrent+9]=this.dw_1
  85. this.Control[iCurrent+10]=this.cb_8
  86. this.Control[iCurrent+11]=this.dw_2
  87. this.Control[iCurrent+12]=this.cb_11
  88. end on
  89. on w_saletask_dm_tab_new_edit.destroy
  90. call super::destroy
  91. destroy(this.cb_1)
  92. destroy(this.cb_2)
  93. destroy(this.cb_3)
  94. destroy(this.cb_4)
  95. destroy(this.cb_5)
  96. destroy(this.cb_6)
  97. destroy(this.cb_18)
  98. destroy(this.cb_19)
  99. destroy(this.dw_1)
  100. destroy(this.cb_8)
  101. destroy(this.dw_2)
  102. destroy(this.cb_11)
  103. end on
  104. event resize;call super::resize;//tab_1.width = this.workspacewidth() - tab_1.x
  105. //tab_1.height = this.workspaceheight() - tab_1.y
  106. //
  107. //
  108. //dw_1.width = tab_1.tabpage_1.width - dw_1.x
  109. //dw_1.height = tab_1.tabpage_1.height - dw_1.y
  110. //
  111. //dw_2.width = tab_1.tabpage_2.width - dw_2.x
  112. //dw_2.height = tab_1.tabpage_2.height - dw_2.y
  113. //
  114. //dw_3.width = tab_1.tabpage_3.width - dw_3.x
  115. //dw_3.height = tab_1.tabpage_3.height - dw_3.y
  116. //
  117. //dw_4.width = tab_1.tabpage_4.width - dw_4.x
  118. //dw_4.height = (tab_1.tabpage_4.height - dw_4.y) / 2
  119. //
  120. //dw_6.width = dw_4.width
  121. //dw_6.y = dw_4.y + dw_4.height
  122. //dw_6.height = dw_4.height
  123. //
  124. //dw_5.width = tab_1.tabpage_5.width - dw_5.x
  125. //dw_5.height = tab_1.tabpage_5.height - dw_5.y
  126. //
  127. //
  128. end event
  129. event open;call super::open;//dw_1 = tab_1.tabpage_1.dw_1
  130. //dw_2 = tab_1.tabpage_2.dw_2
  131. //dw_3 = tab_1.tabpage_3.dw_3
  132. //dw_4 = tab_1.tabpage_4.dw_4
  133. //dw_5 = tab_1.tabpage_5.dw_5
  134. //dw_6 = tab_1.tabpage_4.dw_6
  135. end event
  136. type cb_func from w_publ_base_style`cb_func within w_saletask_dm_tab_new_edit
  137. boolean visible = false
  138. integer x = 850
  139. end type
  140. type cb_exit from w_publ_base_style`cb_exit within w_saletask_dm_tab_new_edit
  141. boolean visible = false
  142. integer x = 1001
  143. end type
  144. type ln_bar from w_publ_base_style`ln_bar within w_saletask_dm_tab_new_edit
  145. boolean visible = false
  146. end type
  147. type ln_bar2 from w_publ_base_style`ln_bar2 within w_saletask_dm_tab_new_edit
  148. boolean visible = false
  149. end type
  150. type r_bar from w_publ_base_style`r_bar within w_saletask_dm_tab_new_edit
  151. boolean visible = false
  152. end type
  153. type cb_1 from uo_imflatbutton within w_saletask_dm_tab_new_edit
  154. boolean visible = false
  155. integer width = 151
  156. integer height = 164
  157. integer taborder = 50
  158. boolean bringtotop = true
  159. string text = "刷新"
  160. string normalpicname = "refresh.bmp"
  161. integer picsize = 16
  162. toolbaralignment pic_align = alignattop!
  163. boolean border = false
  164. end type
  165. event clicked;call super::clicked;//DateTime first_date,end_date
  166. //
  167. //first_date = DateTime(Date(em_1.Text),Time(0))
  168. //end_date = DateTime(Date(em_2.Text),Time('23:59:59'))
  169. //String ls_cust_str, ls_mtrl_str
  170. //IF Pos(sle_cust.Text,"%") <> 0 THEN
  171. // ls_cust_str = trim(sle_cust.Text)
  172. //ELSE
  173. // ls_cust_str = "%"+trim(sle_cust.Text)+"%"
  174. //END IF
  175. //IF Pos(sle_mtrl.Text,"%") <> 0 THEN
  176. // ls_mtrl_str = trim(sle_mtrl.Text)
  177. //ELSE
  178. // ls_mtrl_str = "%"+trim(sle_mtrl.Text)+"%"
  179. //END IF
  180. //dw_1.Retrieve(DATE(EM_1.TEXT),DATE(EM_2.TEXT),ls_cust_str,ls_mtrl_str)
  181. //dw_1.OBJECT.date_mid.TEXT=EM_1.TEXT+'~~'+EM_2.TEXT
  182. end event
  183. type cb_2 from uo_imflatbutton within w_saletask_dm_tab_new_edit
  184. boolean visible = false
  185. integer x = 151
  186. integer width = 151
  187. integer height = 164
  188. integer taborder = 60
  189. boolean bringtotop = true
  190. string text = "新建"
  191. string normalpicname = "NEW.BMP"
  192. integer picsize = 16
  193. toolbaralignment pic_align = alignattop!
  194. boolean border = false
  195. end type
  196. event clicked;call super::clicked;open(w_saletask_dm_edit)
  197. end event
  198. type cb_3 from uo_imflatbutton within w_saletask_dm_tab_new_edit
  199. boolean visible = false
  200. integer x = 302
  201. integer width = 274
  202. integer height = 164
  203. integer taborder = 70
  204. boolean bringtotop = true
  205. boolean enabled = false
  206. string text = "订单审核"
  207. string normalpicname = "ok.bmp"
  208. integer picsize = 16
  209. toolbaralignment pic_align = alignattop!
  210. boolean border = false
  211. end type
  212. event clicked;call super::clicked;//DateTime first_date,end_date
  213. //
  214. //first_date = DateTime(Date(em_1.Text),Time(0))
  215. //end_date = DateTime(Date(em_2.Text),Time('23:59:59'))
  216. //String ls_cust_str, ls_mtrl_str
  217. //IF Pos(sle_cust.Text,"%") <> 0 THEN
  218. // ls_cust_str = trim(sle_cust.Text)
  219. //ELSE
  220. // ls_cust_str = "%"+trim(sle_cust.Text)+"%"
  221. //END IF
  222. //IF Pos(sle_mtrl.Text,"%") <> 0 THEN
  223. // ls_mtrl_str = trim(sle_mtrl.Text)
  224. //ELSE
  225. // ls_mtrl_str = "%"+trim(sle_mtrl.Text)+"%"
  226. //END IF
  227. //dw_1.Retrieve(DATE(EM_1.TEXT),DATE(EM_2.TEXT),ls_cust_str,ls_mtrl_str)
  228. //dw_1.OBJECT.date_mid.TEXT=EM_1.TEXT+'~~'+EM_2.TEXT
  229. end event
  230. type cb_4 from uo_imflatbutton within w_saletask_dm_tab_new_edit
  231. boolean visible = false
  232. integer x = 576
  233. integer width = 274
  234. integer height = 164
  235. integer taborder = 80
  236. boolean bringtotop = true
  237. boolean enabled = false
  238. string text = "收货确认"
  239. string normalpicname = "ok.bmp"
  240. integer picsize = 16
  241. toolbaralignment pic_align = alignattop!
  242. boolean border = false
  243. end type
  244. event clicked;call super::clicked;//DateTime first_date,end_date
  245. //
  246. //first_date = DateTime(Date(em_1.Text),Time(0))
  247. //end_date = DateTime(Date(em_2.Text),Time('23:59:59'))
  248. //String ls_cust_str, ls_mtrl_str
  249. //IF Pos(sle_cust.Text,"%") <> 0 THEN
  250. // ls_cust_str = trim(sle_cust.Text)
  251. //ELSE
  252. // ls_cust_str = "%"+trim(sle_cust.Text)+"%"
  253. //END IF
  254. //IF Pos(sle_mtrl.Text,"%") <> 0 THEN
  255. // ls_mtrl_str = trim(sle_mtrl.Text)
  256. //ELSE
  257. // ls_mtrl_str = "%"+trim(sle_mtrl.Text)+"%"
  258. //END IF
  259. //dw_1.Retrieve(DATE(EM_1.TEXT),DATE(EM_2.TEXT),ls_cust_str,ls_mtrl_str)
  260. //dw_1.OBJECT.date_mid.TEXT=EM_1.TEXT+'~~'+EM_2.TEXT
  261. end event
  262. type cb_5 from commandbutton within w_saletask_dm_tab_new_edit
  263. integer width = 347
  264. integer height = 92
  265. integer taborder = 130
  266. boolean bringtotop = true
  267. integer textsize = -9
  268. integer weight = 400
  269. fontcharset fontcharset = gb2312charset!
  270. fontpitch fontpitch = variable!
  271. string facename = "宋体"
  272. string text = "新建订单"
  273. end type
  274. type cb_6 from commandbutton within w_saletask_dm_tab_new_edit
  275. integer y = 108
  276. integer width = 347
  277. integer height = 92
  278. integer taborder = 140
  279. boolean bringtotop = true
  280. integer textsize = -9
  281. integer weight = 400
  282. fontcharset fontcharset = gb2312charset!
  283. fontpitch fontpitch = variable!
  284. string facename = "宋体"
  285. string text = "查询订单"
  286. end type
  287. type cb_18 from commandbutton within w_saletask_dm_tab_new_edit
  288. integer y = 216
  289. integer width = 347
  290. integer height = 92
  291. integer taborder = 210
  292. boolean bringtotop = true
  293. integer textsize = -9
  294. integer weight = 400
  295. fontcharset fontcharset = gb2312charset!
  296. fontpitch fontpitch = variable!
  297. string facename = "宋体"
  298. string text = "修改密码"
  299. end type
  300. type cb_19 from commandbutton within w_saletask_dm_tab_new_edit
  301. integer y = 324
  302. integer width = 347
  303. integer height = 92
  304. integer taborder = 210
  305. boolean bringtotop = true
  306. integer textsize = -9
  307. integer weight = 400
  308. fontcharset fontcharset = gb2312charset!
  309. fontpitch fontpitch = variable!
  310. string facename = "宋体"
  311. string text = "安全退出"
  312. end type
  313. type dw_1 from datawindow within w_saletask_dm_tab_new_edit
  314. integer x = 361
  315. integer width = 2770
  316. integer height = 1640
  317. integer taborder = 20
  318. boolean bringtotop = true
  319. string title = "none"
  320. string dataobject = "dw_saletask_dm_uc_bak"
  321. boolean livescroll = true
  322. borderstyle borderstyle = stylelowered!
  323. end type
  324. type cb_8 from uo_imflatbutton within w_saletask_dm_tab_new_edit
  325. integer x = 2409
  326. integer y = 1660
  327. integer width = 370
  328. integer taborder = 30
  329. boolean bringtotop = true
  330. string text = "保存询价"
  331. string normalpicname = "save.bmp"
  332. end type
  333. type dw_2 from datawindow within w_saletask_dm_tab_new_edit
  334. integer x = 384
  335. integer y = 672
  336. integer width = 2688
  337. integer height = 308
  338. integer taborder = 30
  339. boolean bringtotop = true
  340. string title = "none"
  341. string dataobject = "dw_saletask_dm_fj"
  342. boolean livescroll = true
  343. borderstyle borderstyle = stylelowered!
  344. end type
  345. type cb_11 from uo_imflatbutton within w_saletask_dm_tab_new_edit
  346. integer x = 512
  347. integer y = 1660
  348. integer width = 370
  349. integer taborder = 40
  350. boolean bringtotop = true
  351. boolean enabled = false
  352. string text = "下单确认"
  353. string normalpicname = "ok.bmp"
  354. end type