w_label_price.srw 34 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451
  1. $PBExportHeader$w_label_price.srw
  2. forward
  3. global type w_label_price from w_publ_base
  4. end type
  5. type st_421 from statictext within w_label_price
  6. end type
  7. type em_mth from editmask within w_label_price
  8. end type
  9. type sle_dscrp_pe from singlelineedit within w_label_price
  10. end type
  11. type cbx_hl_bz from checkbox within w_label_price
  12. end type
  13. type cb_dealwagemx from uo_imflatbutton within w_label_price
  14. end type
  15. type cb_auditing from uo_imflatbutton within w_label_price
  16. end type
  17. type cb_wagerpt from uo_imflatbutton within w_label_price
  18. end type
  19. type cb_addemp from uo_imflatbutton within w_label_price
  20. end type
  21. type ddlb_scid from uo_ddlb_scid within w_label_price
  22. end type
  23. type cb_delemp from uo_imflatbutton within w_label_price
  24. end type
  25. type cb_retrieve from uo_imflatbutton within w_label_price
  26. end type
  27. type cb_cancel from uo_imflatbutton within w_label_price
  28. end type
  29. type cb_wage_edit from uo_imflatbutton within w_label_price
  30. end type
  31. type cb_fillbz from uo_imflatbutton within w_label_price
  32. end type
  33. type cb_help from uo_imflatbutton within w_label_price
  34. end type
  35. type cb_other from uo_imflatbutton within w_label_price
  36. end type
  37. type cb_pay from uo_imflatbutton within w_label_price
  38. end type
  39. type cb_3 from uo_imflatbutton within w_label_price
  40. end type
  41. type cb_4 from uo_imflatbutton within w_label_price
  42. end type
  43. type cb_save from uo_imflatbutton within w_label_price
  44. end type
  45. type cb_5 from uo_imflatbutton within w_label_price
  46. end type
  47. type cb_2 from uo_imflatbutton within w_label_price
  48. end type
  49. type dw_child from u_dw_rbtnfilter within w_label_price
  50. end type
  51. type cb_7 from uo_imflatbutton within w_label_price
  52. end type
  53. type cb_8 from uo_imflatbutton within w_label_price
  54. end type
  55. type r_bar from rectangle within w_label_price
  56. end type
  57. type ln_bar from line within w_label_price
  58. end type
  59. type ln_bar2 from line within w_label_price
  60. end type
  61. type ln_1 from line within w_label_price
  62. end type
  63. type ln_2 from line within w_label_price
  64. end type
  65. end forward
  66. global type w_label_price from w_publ_base
  67. integer x = 46
  68. integer y = 48
  69. integer width = 6825
  70. integer height = 2460
  71. string title = "打印标签"
  72. boolean maxbox = true
  73. boolean resizable = true
  74. windowtype windowtype = main!
  75. windowstate windowstate = maximized!
  76. boolean if_ue_filter = true
  77. boolean if_ue_sort = true
  78. boolean if_ue_sentdataout = true
  79. event ue_basepay ( )
  80. event ue_view_gzb ( )
  81. event ue_f8 ( )
  82. event ue_viewprint ( )
  83. event ue_print ( )
  84. st_421 st_421
  85. em_mth em_mth
  86. sle_dscrp_pe sle_dscrp_pe
  87. cbx_hl_bz cbx_hl_bz
  88. cb_dealwagemx cb_dealwagemx
  89. cb_auditing cb_auditing
  90. cb_wagerpt cb_wagerpt
  91. cb_addemp cb_addemp
  92. ddlb_scid ddlb_scid
  93. cb_delemp cb_delemp
  94. cb_retrieve cb_retrieve
  95. cb_cancel cb_cancel
  96. cb_wage_edit cb_wage_edit
  97. cb_fillbz cb_fillbz
  98. cb_help cb_help
  99. cb_other cb_other
  100. cb_pay cb_pay
  101. cb_3 cb_3
  102. cb_4 cb_4
  103. cb_save cb_save
  104. cb_5 cb_5
  105. cb_2 cb_2
  106. dw_child dw_child
  107. cb_7 cb_7
  108. cb_8 cb_8
  109. r_bar r_bar
  110. ln_bar ln_bar
  111. ln_bar2 ln_bar2
  112. ln_1 ln_1
  113. ln_2 ln_2
  114. end type
  115. global w_label_price w_label_price
  116. type prototypes
  117. end prototypes
  118. type variables
  119. datastore ds_wageitem
  120. datastore ds_print
  121. String ls_handtype = ''
  122. long cur_typeid=0
  123. Long cur_scid
  124. Long cur_scid_arr[]
  125. Boolean if_power_sendout = true
  126. Boolean if_power_print = true
  127. long cur_wagemth
  128. long ll_currentrow//当前行
  129. long ll_VerticalScroll//垂直滚动条位置
  130. long ll_s_itemid,ll_d_itemid
  131. Int child_column_int = 1,uc_column_int = 1
  132. datastore ds_copypaste
  133. String ls_newname = ''
  134. string ls_chnname = ''
  135. Long ll_prownum
  136. Long ls_powerid
  137. Int li_auditprint
  138. String ls_rpname = ''
  139. Long ls_msgprintid_rpt = 0
  140. Long ll_xls_billid,ll_xls_Templatesid
  141. String ls_xls_DefaultDataWindow
  142. Long dw_pageretr_w,dw_pageretr_h
  143. Long dw_child_h,dw_child_w
  144. datastore ds_copy_bill
  145. String ins_openfile_log[] //用于退出后删除
  146. Long ins_openfile_log_p = 0 //用于退出后删除
  147. Boolean if_changeselect = TRUE
  148. Boolean if_del = FALSE
  149. Long ll_lastrow = 0
  150. String is_query_menustr,is_mx_menustr
  151. long uc_width,uc_height
  152. string cur_mod[]
  153. BOOLEAN if_MtrlPicView = false
  154. int ifpic = 0
  155. end variables
  156. forward prototypes
  157. public function integer wf_retr_wageitem ()
  158. public function long wf_getwageitemid (string arg_wagename)
  159. public subroutine wf_lock_child ()
  160. public subroutine clickedd (long arg_handle)
  161. public function integer dats_in_month (long year, long month)
  162. public subroutine wf_reads ()
  163. public subroutine if_change ()
  164. public subroutine wf_save ()
  165. end prototypes
  166. event ue_basepay();IF NOT f_power_ind(1457) THEN
  167. MessageBox('提示','你没有使用权限!', Information!, OK! )
  168. RETURN
  169. END IF
  170. s_wageeditw_open s_wageedit_tran
  171. s_wageedit_tran.handtype = ls_handtype
  172. s_wageedit_tran.scid_arr = cur_scid_arr
  173. s_wageedit_tran.scid = cur_scid
  174. OpenWithParm(w_gz_wage_basepay_edit,s_wageedit_tran)
  175. end event
  176. event ue_view_gzb;f_sys_main(706)
  177. end event
  178. event ue_f8();//用于选择明细内容,被f8[默认]\dw_child.doubleclicked调用
  179. Long child_row
  180. Long ls_cusid,ll_moneyid,ls_j,i
  181. child_row = dw_child.GetRow()
  182. IF Not IsValid(w_mtrlware_storageid_ch_saletask) THEN
  183. s_edit_index_tran s_tranf8 //传递参数使用
  184. s_tranf8.if_retrieve_all = True //是否一次retrieve所有行
  185. s_tranf8.work_mode = 1 //0-单纯编辑模式 1-选择\编辑模式
  186. s_tranf8.arg_pkid = 0 //目标定位pkid (备用)
  187. s_tranf8.arg_string_code = '' //查询列(物料编码)部分内容,用于初步筛选
  188. s_tranf8.if_select_all = True //多选
  189. s_tranf8.b_long = 0 //选产品
  190. // s_tranf8.c_long = cur_scid //分部
  191. s_tranf8.d_long = -1 //仓库
  192. OpenWithParm(w_mtrlware_storageid_ch_label_price,s_tranf8) //调用
  193. s_mtrldef_array s_inscust
  194. s_inscust = Message.PowerObjectParm //接受返回结构
  195. FOR ls_j = 1 To UpperBound(s_inscust.mtrlid)
  196. IF s_inscust.mtrlid[ls_j] > 0 THEN //正常返回值则可以取以下值
  197. dw_child.AcceptText()
  198. FOR i = 1 To dw_child.RowCount()
  199. IF dw_child.Object.mtrlid[i] = s_inscust.mtrlid[ls_j] THEN
  200. GOTO ext1
  201. END IF
  202. NEXT
  203. IF dw_child.GetRow() > 0 THEN
  204. IF dw_child.Object.mtrlid[child_row] <> 0 THEN
  205. child_row = dw_child.InsertRow (0)
  206. ELSE
  207. child_row = dw_child.GetRow()
  208. END IF
  209. ELSE
  210. child_row = dw_child.InsertRow (0)
  211. END IF
  212. dw_child.Object.mtrlid[child_row] = s_inscust.mtrlid[ls_j]
  213. dw_child.Object.mtrlcode[child_row] = s_inscust.mtrlcode[ls_j]
  214. dw_child.Object.mtrlname[child_row] = s_inscust.mtrlname[ls_j]
  215. dw_child.Object.unit[child_row] = s_inscust.unit[ls_j]
  216. dw_child.Object.mtrlmode[child_row] = s_inscust.mtrlmode[ls_j]
  217. dw_child.Object.mtrlsectype[child_row] = s_inscust.mtrlsectype[ls_j]
  218. dw_child.Object.zxmtrlmode[child_row] = s_inscust.zxmtrlmode[ls_j]
  219. dw_child.Object.dscrp[child_row] = s_inscust.dscrp[ls_j]
  220. dw_child.Object.lmsaleprice[child_row] = s_inscust.lmsaleprice[ls_j]
  221. END IF
  222. ext1:
  223. NEXT
  224. END IF
  225. dw_child.SetFocus()
  226. end event
  227. event ue_viewprint();Long ls_msgprintid
  228. ls_msgprintid = Message.LongParm
  229. SELECT dft_new_dwname,powerid,auditprint,prownum,ifpic,chnname
  230. INTO :ls_newname,:ls_powerid,:li_auditprint,:ll_prownum,:ifpic,:ls_chnname
  231. FROM sys_dft_dwprint_dynamic
  232. Where sys_dft_dwprint_dynamic.dwprintid = :ls_msgprintid USING sqlca;
  233. IF sqlca.SQLCode <> 0 THEN
  234. ls_newname = ''
  235. ls_powerid = 0
  236. END IF
  237. S_print_MSG LS_PRMSG
  238. LS_PRMSG.ifpic = ifpic
  239. IF ls_newname <> '' THEN
  240. LS_PRMSG.obj_dwNAME = ls_newname
  241. ELSE
  242. END IF
  243. LS_PRMSG.TAG_TEXT = '标签打印'
  244. LS_PRMSG.FILTER_STRING = ''
  245. LS_PRMSG.retr_pram_falg = -1
  246. LS_PRMSG.PAGECH_FLAG =1
  247. // LS_PRMSG.retr_scid = dw_pageretr.Object.u_saletask_scid[dw_pageretr.GetRow()]
  248. // LS_PRMSG.retr_pramnmb = dw_pageretr.Object.taskid[LS_ROW]
  249. LS_PRMSG.rowcnt = dw_child.RowCount()
  250. OpenWithParm(w_publ_preview,LS_PRMSG)
  251. end event
  252. event ue_print();Long ls_msgprintid
  253. ls_msgprintid = Message.LongParm
  254. SELECT dft_new_dwname,powerid,ifpic,chnname
  255. INTO :ls_newname,:ls_powerid,:ifpic,:ls_chnname
  256. FROM sys_dft_dwprint_dynamic
  257. Where sys_dft_dwprint_dynamic.dwprintid = :ls_msgprintid USING sqlca;
  258. IF sqlca.SQLCode <> 0 THEN
  259. ls_newname = ''
  260. ls_powerid = 0
  261. END IF
  262. uo_print_preview uo_print
  263. IF MessageBox ("询问","是否确定要打印当前单据吗?",Question!,YesNo! ) = 2 THEN RETURN
  264. S_print_MSG LS_PRMSG
  265. LS_PRMSG.retr_pram_falg = -1
  266. IF ls_newname <> '' THEN
  267. LS_PRMSG.obj_dwNAME = ls_newname
  268. END IF
  269. LS_PRMSG.TAG_TEXT = '标签打印'
  270. LS_PRMSG.FILTER_STRING = ''
  271. LS_PRMSG.PAGECH_FLAG = 0
  272. uo_print.FACT_PRINT_MSG = LS_PRMSG
  273. String arg_msg
  274. IF uo_print.uof_print_begin(arg_msg) = 0 THEN
  275. MessageBox("错误",arg_msg,stopsign!,OK!)
  276. RETURN
  277. END IF
  278. uo_print.ds_print()
  279. end event
  280. public function integer wf_retr_wageitem ();//wf_retr_wageitem
  281. long ls_s
  282. ds_wageitem.retrieve()
  283. //ddlb_wageitem.reset()
  284. //for ls_s=1 to ds_wageitem.rowcount()
  285. // ddlb_wageitem.ADDItem(ds_wageitem.object.wagename[ls_s])
  286. //next
  287. return 0
  288. end function
  289. public function long wf_getwageitemid (string arg_wagename);//wf_getwageitemid
  290. long ls_wageid=0,ls_i
  291. for ls_i=1 to ds_wageitem.rowcount()
  292. if ds_wageitem.object.wagename[ls_i]=arg_wagename then
  293. return ds_wageitem.object.wageid[ls_i]
  294. end if
  295. next
  296. return ls_wageid
  297. end function
  298. public subroutine wf_lock_child ();INT LS_INT
  299. end subroutine
  300. public subroutine clickedd (long arg_handle);
  301. end subroutine
  302. public function integer dats_in_month (long year, long month);//Most cases are straight forward in that there are a fixed number of
  303. //days in 11 of the 12 months. February is, of course, the problem.
  304. //In a leap year February has 29 days, otherwise 28.
  305. Integer li_DaysInMonth, li_Days[12] = {31,28,31,30,31,30,31,31,30,31,30,31}
  306. // Get the number of days per month for a non leap year.
  307. li_DaysInMonth = li_Days[Month]
  308. // Check for a leap year.
  309. If Month = 2 Then
  310. // If the year is a leap year, change the number of days.
  311. // Leap Year Calculation:
  312. // Year divisible by 4, but not by 100, unless it is also divisible by 400
  313. If ( (Mod(Year,4) = 0 And Mod(Year,100) <> 0) Or (Mod(Year,400) = 0) ) Then
  314. li_DaysInMonth = 29
  315. End If
  316. End If
  317. //Return the number of days in the relevant month
  318. Return li_DaysInMonth
  319. end function
  320. public subroutine wf_reads ();IF dw_child.RowCount() <= 0 THEN RETURN
  321. Long i,ll_cpid,ll_mth
  322. Decimal s_sreadings,s_ereadings,d_sreadings,d_ereadings
  323. FOR i = 1 To dw_child.RowCount()
  324. ll_cpid = Long(dw_child.Object.cpid[i])
  325. ll_mth = Long(dw_child.Object.wagemth[i])
  326. //水
  327. SELECT sreadings,ereadings INTO :s_sreadings,:s_ereadings FROM u_prty_wagemx
  328. WHERE u_prty_wagemx.cpid = :ll_cpid AND u_prty_wagemx.Wagemth = :ll_mth
  329. And u_prty_wagemx.itemid = :ll_s_itemid Using sqlca;
  330. dw_child.Object.s_sreadings[i] = s_sreadings
  331. dw_child.Object.s_ereadings[i] = s_ereadings
  332. //电
  333. SELECT sreadings,ereadings INTO :d_sreadings,:d_ereadings FROM u_prty_wagemx
  334. WHERE u_prty_wagemx.cpid = :ll_cpid AND u_prty_wagemx.Wagemth = :ll_mth
  335. And u_prty_wagemx.itemid = :ll_d_itemid Using sqlca;
  336. dw_child.Object.d_sreadings[i] = d_sreadings
  337. dw_child.Object.d_ereadings[i] = d_ereadings
  338. NEXT
  339. end subroutine
  340. public subroutine if_change ();IF dw_child.RowCount() <= 0 THEN RETURN
  341. Long i,ll_cpid,ll_mth
  342. Decimal s_sreadings,s_ereadings,d_sreadings,d_ereadings
  343. dw_child.AcceptText()
  344. FOR i = 1 To dw_child.RowCount()
  345. ll_cpid = Long(dw_child.Object.cpid[i])
  346. ll_mth = Long(dw_child.Object.wagemth[i])
  347. //水
  348. SELECT sreadings,ereadings INTO :s_sreadings,:s_ereadings FROM u_prty_wagemx
  349. WHERE u_prty_wagemx.cpid = :ll_cpid AND u_prty_wagemx.Wagemth = :ll_mth
  350. And u_prty_wagemx.itemid = :ll_s_itemid Using sqlca;
  351. //电
  352. SELECT sreadings,ereadings INTO :d_sreadings,:d_ereadings FROM u_prty_wagemx
  353. WHERE u_prty_wagemx.cpid = :ll_cpid AND u_prty_wagemx.Wagemth = :ll_mth
  354. And u_prty_wagemx.itemid = :ll_d_itemid Using sqlca;
  355. IF dw_child.Object.s_sreadings[i] <> s_sreadings Or &
  356. dw_child.Object.s_ereadings[i] <> s_ereadings Or &
  357. dw_child.Object.d_sreadings[i] <> d_sreadings Or &
  358. dw_child.Object.d_ereadings[i] <> d_ereadings THEN
  359. IF MessageBox('提示信息','第'+ String(i) +'行资料已修改是否保存?', Question! ,YesNo! , 1 ) = 1 THEN
  360. cb_save.TriggerEvent(Clicked!)
  361. RETURN
  362. ELSE
  363. RETURN
  364. END IF
  365. END IF
  366. NEXT
  367. end subroutine
  368. public subroutine wf_save ();string ls_errmsg
  369. dw_child.AcceptText()
  370. IF dw_child.Update() = -1 THEN
  371. ROLLBACK;
  372. MessageBox (publ_operator,ls_errmsg+",保存操作失败!",Exclamation!,OK!)
  373. RETURN
  374. ELSE
  375. COMMIT;
  376. END IF
  377. end subroutine
  378. on w_label_price.create
  379. int iCurrent
  380. call super::create
  381. this.st_421=create st_421
  382. this.em_mth=create em_mth
  383. this.sle_dscrp_pe=create sle_dscrp_pe
  384. this.cbx_hl_bz=create cbx_hl_bz
  385. this.cb_dealwagemx=create cb_dealwagemx
  386. this.cb_auditing=create cb_auditing
  387. this.cb_wagerpt=create cb_wagerpt
  388. this.cb_addemp=create cb_addemp
  389. this.ddlb_scid=create ddlb_scid
  390. this.cb_delemp=create cb_delemp
  391. this.cb_retrieve=create cb_retrieve
  392. this.cb_cancel=create cb_cancel
  393. this.cb_wage_edit=create cb_wage_edit
  394. this.cb_fillbz=create cb_fillbz
  395. this.cb_help=create cb_help
  396. this.cb_other=create cb_other
  397. this.cb_pay=create cb_pay
  398. this.cb_3=create cb_3
  399. this.cb_4=create cb_4
  400. this.cb_save=create cb_save
  401. this.cb_5=create cb_5
  402. this.cb_2=create cb_2
  403. this.dw_child=create dw_child
  404. this.cb_7=create cb_7
  405. this.cb_8=create cb_8
  406. this.r_bar=create r_bar
  407. this.ln_bar=create ln_bar
  408. this.ln_bar2=create ln_bar2
  409. this.ln_1=create ln_1
  410. this.ln_2=create ln_2
  411. iCurrent=UpperBound(this.Control)
  412. this.Control[iCurrent+1]=this.st_421
  413. this.Control[iCurrent+2]=this.em_mth
  414. this.Control[iCurrent+3]=this.sle_dscrp_pe
  415. this.Control[iCurrent+4]=this.cbx_hl_bz
  416. this.Control[iCurrent+5]=this.cb_dealwagemx
  417. this.Control[iCurrent+6]=this.cb_auditing
  418. this.Control[iCurrent+7]=this.cb_wagerpt
  419. this.Control[iCurrent+8]=this.cb_addemp
  420. this.Control[iCurrent+9]=this.ddlb_scid
  421. this.Control[iCurrent+10]=this.cb_delemp
  422. this.Control[iCurrent+11]=this.cb_retrieve
  423. this.Control[iCurrent+12]=this.cb_cancel
  424. this.Control[iCurrent+13]=this.cb_wage_edit
  425. this.Control[iCurrent+14]=this.cb_fillbz
  426. this.Control[iCurrent+15]=this.cb_help
  427. this.Control[iCurrent+16]=this.cb_other
  428. this.Control[iCurrent+17]=this.cb_pay
  429. this.Control[iCurrent+18]=this.cb_3
  430. this.Control[iCurrent+19]=this.cb_4
  431. this.Control[iCurrent+20]=this.cb_save
  432. this.Control[iCurrent+21]=this.cb_5
  433. this.Control[iCurrent+22]=this.cb_2
  434. this.Control[iCurrent+23]=this.dw_child
  435. this.Control[iCurrent+24]=this.cb_7
  436. this.Control[iCurrent+25]=this.cb_8
  437. this.Control[iCurrent+26]=this.r_bar
  438. this.Control[iCurrent+27]=this.ln_bar
  439. this.Control[iCurrent+28]=this.ln_bar2
  440. this.Control[iCurrent+29]=this.ln_1
  441. this.Control[iCurrent+30]=this.ln_2
  442. end on
  443. on w_label_price.destroy
  444. call super::destroy
  445. destroy(this.st_421)
  446. destroy(this.em_mth)
  447. destroy(this.sle_dscrp_pe)
  448. destroy(this.cbx_hl_bz)
  449. destroy(this.cb_dealwagemx)
  450. destroy(this.cb_auditing)
  451. destroy(this.cb_wagerpt)
  452. destroy(this.cb_addemp)
  453. destroy(this.ddlb_scid)
  454. destroy(this.cb_delemp)
  455. destroy(this.cb_retrieve)
  456. destroy(this.cb_cancel)
  457. destroy(this.cb_wage_edit)
  458. destroy(this.cb_fillbz)
  459. destroy(this.cb_help)
  460. destroy(this.cb_other)
  461. destroy(this.cb_pay)
  462. destroy(this.cb_3)
  463. destroy(this.cb_4)
  464. destroy(this.cb_save)
  465. destroy(this.cb_5)
  466. destroy(this.cb_2)
  467. destroy(this.dw_child)
  468. destroy(this.cb_7)
  469. destroy(this.cb_8)
  470. destroy(this.r_bar)
  471. destroy(this.ln_bar)
  472. destroy(this.ln_bar2)
  473. destroy(this.ln_1)
  474. destroy(this.ln_2)
  475. end on
  476. event open;call super::open;//em_mth.text=string(today(),'yyyymm')
  477. String arg_msg
  478. Long i, rslt=1,ll_count1,ll_count2
  479. delete u_label_price;
  480. COMMIT;
  481. end event
  482. event ue_before_open;if_ue_filter=true
  483. if_ue_sort=true
  484. dw_child.settransobject(sqlca)
  485. //dw_3.settransobject(sqlca)
  486. //
  487. //
  488. //ds_wageitem=create datastore
  489. //ds_wageitem.settransobject(sqlca)
  490. //ds_wageitem.dataobject='dw_prty_wage'
  491. //
  492. //ds_print=create datastore
  493. //ds_print.settransobject(sqlca)
  494. //ds_print.dataobject='dw_rp_print_jy'
  495. end event
  496. event ue_filter;call super::ue_filter;OPENWITHPARM(w_filter_query,dw_child)
  497. STRING LS_EXPR
  498. LS_EXPR=Message.StringParm
  499. if len(LS_EXPR)>2 and trim(LS_EXPR)='' then return
  500. dw_child.setfilter(LS_EXPR)
  501. dw_child.SetRedraw (false)
  502. dw_child.filter()
  503. dw_child.SetRedraw (TRUE)
  504. end event
  505. event ue_sort;call super::ue_sort;OPENwithparm(w_sortrow,dw_child)
  506. STRING LS_EXPR
  507. LS_EXPR=Message.StringParm
  508. IF ISNULL(LS_EXPR) THEN LS_EXPR=' '
  509. if len(LS_EXPR)>2 and trim(LS_EXPR)='' then return
  510. dw_child.setsort(LS_EXPR)
  511. dw_child.SetRedraw (false)
  512. dw_child.sort()
  513. dw_child.SetRedraw (true)
  514. end event
  515. event resize;call super::resize;ln_bar.EndX = THIS.Width
  516. ln_bar2.EndX = THIS.Width
  517. ln_1.EndX = THIS.Width
  518. ln_2.EndX = THIS.Width
  519. r_bar.Width = THIS.Width
  520. Long w_width,w_height
  521. w_width = 3600
  522. w_height = 2300
  523. IF newwidth < w_width THEN THIS.Width = w_width
  524. IF newheight < w_height THEN THIS.Height = w_height
  525. dw_child.Width = THIS.Width - 20
  526. dw_child.Height = THIS.Height - (w_height - 1840)
  527. end event
  528. event key;call super::key;if keydown(keyF1!) then this.triggerevent("ue_help")
  529. end event
  530. event ue_sentdataout;call super::ue_sentdataout;IF NOT if_power_sendout THEN
  531. MessageBox(publ_operator,'你没有使用权限!')
  532. RETURN
  533. END IF
  534. OpenWithParm(w_sentdataout,dw_child)
  535. end event
  536. event close;call super::close;delete u_label_price;
  537. COMMIT;
  538. end event
  539. type cb_func from w_publ_base`cb_func within w_label_price
  540. boolean visible = false
  541. integer x = 165
  542. integer height = 172
  543. end type
  544. type cb_exit from w_publ_base`cb_exit within w_label_price
  545. boolean visible = false
  546. integer x = 5001
  547. integer y = 1092
  548. integer width = 475
  549. integer height = 172
  550. integer picsize = 16
  551. toolbaralignment pic_align = alignattop!
  552. boolean border = false
  553. end type
  554. type st_421 from statictext within w_label_price
  555. boolean visible = false
  556. integer x = 571
  557. integer y = 212
  558. integer width = 142
  559. integer height = 60
  560. boolean bringtotop = true
  561. integer textsize = -9
  562. integer weight = 400
  563. fontcharset fontcharset = gb2312charset!
  564. fontpitch fontpitch = variable!
  565. string facename = "宋体"
  566. long textcolor = 33554432
  567. long backcolor = 134217739
  568. boolean enabled = false
  569. string text = "月份:"
  570. alignment alignment = right!
  571. boolean focusrectangle = false
  572. end type
  573. type em_mth from editmask within w_label_price
  574. boolean visible = false
  575. integer x = 709
  576. integer y = 196
  577. integer width = 311
  578. integer height = 92
  579. integer taborder = 120
  580. boolean bringtotop = true
  581. integer textsize = -10
  582. integer weight = 400
  583. fontcharset fontcharset = gb2312charset!
  584. fontpitch fontpitch = variable!
  585. string facename = "宋体"
  586. long textcolor = 33554432
  587. borderstyle borderstyle = stylelowered!
  588. maskdatatype maskdatatype = datemask!
  589. string mask = "yyyymm"
  590. boolean spin = true
  591. end type
  592. type sle_dscrp_pe from singlelineedit within w_label_price
  593. boolean visible = false
  594. integer x = 1463
  595. integer width = 1097
  596. integer height = 84
  597. integer taborder = 170
  598. boolean bringtotop = true
  599. integer textsize = -9
  600. integer weight = 400
  601. fontcharset fontcharset = gb2312charset!
  602. fontpitch fontpitch = variable!
  603. string facename = "宋体"
  604. long textcolor = 33554432
  605. boolean autohscroll = false
  606. borderstyle borderstyle = stylelowered!
  607. end type
  608. type cbx_hl_bz from checkbox within w_label_price
  609. boolean visible = false
  610. integer x = 2158
  611. integer y = 208
  612. integer width = 485
  613. integer height = 68
  614. boolean bringtotop = true
  615. integer textsize = -9
  616. integer weight = 400
  617. fontcharset fontcharset = gb2312charset!
  618. fontpitch fontpitch = variable!
  619. string facename = "宋体"
  620. long textcolor = 33554432
  621. long backcolor = 134217739
  622. string text = "忽略已有内容的"
  623. end type
  624. type cb_dealwagemx from uo_imflatbutton within w_label_price
  625. boolean visible = false
  626. integer x = 2089
  627. integer y = 1912
  628. integer width = 297
  629. integer height = 96
  630. integer taborder = 180
  631. boolean bringtotop = true
  632. string text = "录入明细"
  633. end type
  634. type cb_auditing from uo_imflatbutton within w_label_price
  635. boolean visible = false
  636. integer x = 5358
  637. integer y = 740
  638. integer width = 197
  639. integer height = 172
  640. integer taborder = 150
  641. boolean bringtotop = true
  642. string text = "审核"
  643. string normalpicname = "audit.bmp"
  644. integer picsize = 16
  645. toolbaralignment pic_align = alignattop!
  646. boolean border = false
  647. end type
  648. type cb_wagerpt from uo_imflatbutton within w_label_price
  649. boolean visible = false
  650. integer x = 5774
  651. integer y = 740
  652. integer width = 306
  653. integer height = 172
  654. integer taborder = 150
  655. boolean bringtotop = true
  656. string text = "查看工资表"
  657. string normalpicname = "find2.bmp"
  658. integer picsize = 16
  659. toolbaralignment pic_align = alignattop!
  660. boolean border = false
  661. end type
  662. event clicked;call super::clicked;parent.triggerevent("ue_view_gzb")
  663. end event
  664. type cb_addemp from uo_imflatbutton within w_label_price
  665. boolean visible = false
  666. integer x = 4713
  667. integer y = 1092
  668. integer width = 878
  669. integer height = 172
  670. integer taborder = 150
  671. boolean bringtotop = true
  672. string text = "增加人员"
  673. string normalpicname = "mx1.bmp"
  674. integer picsize = 16
  675. toolbaralignment pic_align = alignattop!
  676. boolean border = false
  677. end type
  678. event clicked;call super::clicked;if not f_power_ind(196) then
  679. messagebox('提示','你没有使用权限!', Information!, OK! )
  680. return
  681. end if
  682. m_Dfc_Control_PopupMenu dmPopupMenu
  683. string menustr
  684. menustr="Text=手工增加~tEvent=ue_addemp"
  685. menustr=menustr + "|" + "Text=自动增加~tEvent=ue_autoaddemp"
  686. if len(trim(menustr))<>0 then
  687. dmPopupMenu = Create m_Dfc_Control_PopupMenu
  688. dmPopupMenu.mf_BuildMenu(This, menustr)
  689. dmPopupMenu.mf_PopMenu()
  690. Destroy dmPopupMenu
  691. end if
  692. end event
  693. type ddlb_scid from uo_ddlb_scid within w_label_price
  694. boolean visible = false
  695. integer x = 9
  696. integer y = 196
  697. integer width = 517
  698. integer height = 676
  699. boolean bringtotop = true
  700. end type
  701. event constructor;call super::constructor;cur_scid = THIS.uo_scid
  702. cur_scid_arr = THIS.uo_scid_arr
  703. end event
  704. event selectionchanged;call super::selectionchanged;cur_scid = THIS.uo_scid
  705. cur_scid_arr = THIS.uo_scid_arr
  706. cb_retrieve.TriggerEvent(Clicked!)
  707. end event
  708. type cb_delemp from uo_imflatbutton within w_label_price
  709. boolean visible = false
  710. integer x = 4960
  711. integer y = 1092
  712. integer width = 247
  713. integer height = 172
  714. integer taborder = 150
  715. boolean bringtotop = true
  716. string text = "删除人员"
  717. string normalpicname = "mx2.bmp"
  718. integer picsize = 16
  719. toolbaralignment pic_align = alignattop!
  720. boolean border = false
  721. end type
  722. type cb_retrieve from uo_imflatbutton within w_label_price
  723. integer width = 165
  724. integer height = 172
  725. integer taborder = 150
  726. string text = "刷新"
  727. string normalpicname = "refresh.bmp"
  728. integer picsize = 16
  729. toolbaralignment pic_align = alignattop!
  730. boolean border = false
  731. end type
  732. event clicked;call super::clicked;////wf_retrieve()
  733. //cur_wagemth = Long(ddlb_1.Text)
  734. //
  735. //dw_child.Retrieve(cur_wagemth,cur_typeid, ls_handtype)
  736. //IF dw_child.RowCount() <= 0 THEN RETURN
  737. //
  738. //dw_child.SelectRow(0,False)
  739. //dw_child.SelectRow(ll_currentrow,True)
  740. //dw_child.SetRow(ll_currentrow)
  741. //dw_child.TriggerEvent('clicked')
  742. //dw_child.Object.DataWindow.VerticalScrollPosition = ll_VerticalScroll
  743. //wf_reads()
  744. //
  745. end event
  746. type cb_cancel from uo_imflatbutton within w_label_price
  747. boolean visible = false
  748. integer x = 4763
  749. integer y = 1092
  750. integer width = 210
  751. integer height = 172
  752. integer taborder = 40
  753. boolean bringtotop = true
  754. boolean enabled = false
  755. string text = "放弃"
  756. string normalpicname = "undo.bmp"
  757. integer picsize = 16
  758. toolbaralignment pic_align = alignattop!
  759. boolean border = false
  760. end type
  761. event clicked;call super::clicked;dw_edit_mode=false
  762. end event
  763. type cb_wage_edit from uo_imflatbutton within w_label_price
  764. boolean visible = false
  765. integer x = 837
  766. integer width = 215
  767. integer height = 172
  768. integer taborder = 40
  769. boolean bringtotop = true
  770. string text = "修改"
  771. string normalpicname = "open.bmp"
  772. integer picsize = 16
  773. toolbaralignment pic_align = alignattop!
  774. boolean border = false
  775. end type
  776. event clicked;call super::clicked;Long i,ll_row,ll_row1,ll_row2
  777. String arg_msg
  778. Long ll_cpid,ll_mth
  779. IF Not f_power_ind(1566) THEN
  780. MessageBox('提示','你没有使用权限!', Information!, OK! )
  781. RETURN
  782. END IF
  783. IF dw_edit_mode THEN
  784. END IF
  785. dw_edit_mode = Not dw_edit_mode
  786. end event
  787. type cb_fillbz from uo_imflatbutton within w_label_price
  788. boolean visible = false
  789. integer x = 5253
  790. integer y = 740
  791. integer width = 247
  792. integer height = 172
  793. integer taborder = 50
  794. boolean bringtotop = true
  795. string text = "更新备注"
  796. string normalpicname = "mx.bmp"
  797. integer picsize = 16
  798. toolbaralignment pic_align = alignattop!
  799. boolean border = false
  800. end type
  801. event clicked;call super::clicked;if not dw_edit_mode then return
  802. long ls_i
  803. for ls_i=1 to dw_child.rowcount()
  804. if cbx_hl_bz.checked then
  805. if trim(dw_child.object.u_gz_wage_dscrp[ls_i])<>'' then dw_child.object.u_gz_wage_dscrp[ls_i]=trim(sle_dscrp_pe.text)
  806. else
  807. dw_child.object.u_gz_wage_dscrp[ls_i]=trim(sle_dscrp_pe.text)
  808. end if
  809. next
  810. //
  811. end event
  812. type cb_help from uo_imflatbutton within w_label_price
  813. string tag = "帮助[F1]"
  814. boolean visible = false
  815. integer x = 5737
  816. integer y = 740
  817. integer width = 165
  818. integer height = 172
  819. integer taborder = 20
  820. boolean bringtotop = true
  821. string text = "帮助"
  822. string normalpicname = "help.bmp"
  823. integer picsize = 16
  824. toolbaralignment pic_align = alignattop!
  825. boolean border = false
  826. end type
  827. event clicked;call super::clicked;parent.triggerevent("ue_help")
  828. end event
  829. type cb_other from uo_imflatbutton within w_label_price
  830. boolean visible = false
  831. integer x = 5499
  832. integer y = 740
  833. integer width = 274
  834. integer height = 172
  835. integer taborder = 160
  836. boolean bringtotop = true
  837. string text = "辅助功能"
  838. string normalpicname = "other.bmp"
  839. integer picsize = 16
  840. toolbaralignment pic_align = alignattop!
  841. boolean border = false
  842. end type
  843. event clicked;call super::clicked;
  844. m_Dfc_Control_PopupMenu dmPopupMenu
  845. String menustr
  846. menustr = "Text=设定基本工资~tEvent=ue_basepay"
  847. menustr=menustr + "|" + "Text=-"
  848. menustr=menustr + "|" + "Text=查看工资表~tEvent=ue_view_gzb"
  849. IF Len(Trim(menustr)) <> 0 THEN
  850. dmPopupMenu = CREATE m_Dfc_Control_PopupMenu
  851. dmPopupMenu.mf_BuildMenu(THIS, menustr)
  852. dmPopupMenu.mf_PopMenu()
  853. DESTROY dmPopupMenu
  854. END IF
  855. end event
  856. type cb_pay from uo_imflatbutton within w_label_price
  857. boolean visible = false
  858. integer x = 5554
  859. integer y = 740
  860. integer width = 183
  861. integer height = 172
  862. integer taborder = 60
  863. boolean bringtotop = true
  864. string text = "收租"
  865. string normalpicname = "audit.bmp"
  866. integer picsize = 16
  867. toolbaralignment pic_align = alignattop!
  868. boolean border = false
  869. end type
  870. type cb_3 from uo_imflatbutton within w_label_price
  871. integer x = 617
  872. integer width = 197
  873. integer height = 172
  874. integer taborder = 160
  875. boolean bringtotop = true
  876. string text = "打印"
  877. string normalpicname = "print.bmp"
  878. integer picsize = 16
  879. toolbaralignment pic_align = alignattop!
  880. boolean border = false
  881. end type
  882. event clicked;call super::clicked;String ls_dft_old_dwname, ls_dft_new_dwname,ls_dwtype
  883. Long ls_dwprintid
  884. String ls_windowname
  885. Int ls_i
  886. Long ll_billid
  887. Int li_ifuse
  888. Long ll_row
  889. String Name,ll_rpname
  890. Long ll_RpID,ll_flag,ll_ifuse
  891. w_curwin = PARENT
  892. ls_windowname = PARENT.ClassName ( )
  893. SELECT billid,ifuse
  894. INTO :ll_billid,
  895. :li_ifuse
  896. FROM u_report_bill
  897. Where winName = :ls_windowname;
  898. IF sqlca.SQLCode <> 0 THEN
  899. li_ifuse = 0
  900. END IF
  901. li_ifuse = 0
  902. IF li_ifuse = 0 THEN
  903. DECLARE dft_dwprint CURSOR FOR
  904. SELECT dwprintid,dft_old_dwname, dft_new_dwname, chnname, dwtype
  905. FROM sys_dft_dwprint_dynamic
  906. WHERE dwtype = :ls_windowname
  907. AND ptype = 0 and ifuse = 1;
  908. OPEN dft_dwprint;
  909. FETCH dft_dwprint INTO :ls_dwprintid,:ls_dft_old_dwname, :ls_dft_new_dwname,:ls_chnname, :ls_dwtype;
  910. IF sqlca.SQLCode <> 0 THEN
  911. PARENT.TriggerEvent('ue_print',0,0)
  912. ELSE
  913. m_dft_dwprint_print_item m_1
  914. m_1 = CREATE m_dft_dwprint_print_item
  915. ls_i = 1
  916. DO WHILE sqlca.SQLCode = 0
  917. f_add_menuitem_print_dft(m_1,ls_i,ls_chnname,String(ls_dwprintid))
  918. FETCH dft_dwprint INTO :ls_dwprintid,:ls_dft_old_dwname, :ls_dft_new_dwname,:ls_chnname, :ls_dwtype;
  919. ls_i++
  920. LOOP
  921. CLOSE dft_dwprint;
  922. m_1.PopMenu(THIS.X+50,THIS.Y+50)
  923. END IF
  924. ELSE
  925. DECLARE rpt_dwprint CURSOR FOR
  926. SELECT RpID,RpName,Flag,Ifuse
  927. FROM U_report_list
  928. WHERE billid = :ll_billid
  929. Order By RpName;
  930. OPEN rpt_dwprint;
  931. FETCH rpt_dwprint INTO :ll_RpID,:ll_rpname,:ll_flag,:ll_ifuse;
  932. IF sqlca.SQLCode <> 0 THEN
  933. PARENT.TriggerEvent('ue_print',0,0)
  934. ELSE
  935. m_rpt_dwprint_print_item m_2
  936. m_2 = CREATE m_rpt_dwprint_print_item
  937. ls_i = 1
  938. DO WHILE sqlca.SQLCode = 0
  939. IF ll_ifuse = 1 AND ll_flag = 1 AND f_pow_rpt(ll_RpID) THEN //需添加权限
  940. f_add_menuItem_print_rpt(m_2,ls_i,ll_rpname,String(ll_RpID))
  941. END IF
  942. FETCH rpt_dwprint INTO :ll_RpID,:ll_rpname,:ll_flag,:ll_ifuse;
  943. ls_i++
  944. LOOP
  945. CLOSE rpt_dwprint;
  946. m_2.Item[1].Visible = FALSE
  947. m_2.PopMenu(THIS.X+50,THIS.Y+50)
  948. END IF
  949. END IF
  950. end event
  951. type cb_4 from uo_imflatbutton within w_label_price
  952. integer x = 814
  953. integer width = 197
  954. integer height = 172
  955. integer taborder = 170
  956. boolean bringtotop = true
  957. string text = "预览"
  958. string normalpicname = "preview.bmp"
  959. integer picsize = 16
  960. toolbaralignment pic_align = alignattop!
  961. boolean border = false
  962. end type
  963. event clicked;call super::clicked;String ls_dft_old_dwname, ls_dft_new_dwname,ls_dwtype
  964. Long ls_dwprintid
  965. String ls_windowname
  966. Int ls_i
  967. Long ll_billid
  968. Int li_ifuse
  969. Long ll_row
  970. String Name,ll_rpname
  971. Long ll_RpID,ll_flag,ll_ifuse
  972. wf_save()
  973. w_curwin = PARENT
  974. ls_windowname = PARENT.ClassName ( )
  975. SELECT billid,ifuse
  976. INTO :ll_billid,
  977. :li_ifuse
  978. FROM u_report_bill
  979. Where winName = :ls_windowname;
  980. IF sqlca.SQLCode <> 0 THEN
  981. li_ifuse = 0
  982. END IF
  983. li_ifuse = 0
  984. IF li_ifuse = 0 THEN
  985. DECLARE dft_dwprint CURSOR FOR
  986. SELECT dwprintid,dft_old_dwname, dft_new_dwname, chnname, dwtype
  987. FROM sys_dft_dwprint_dynamic
  988. WHERE dwtype = :ls_windowname
  989. AND ptype = 0 and ifuse = 1;
  990. OPEN dft_dwprint;
  991. FETCH dft_dwprint INTO :ls_dwprintid,:ls_dft_old_dwname, :ls_dft_new_dwname,:ls_chnname, :ls_dwtype;
  992. IF sqlca.SQLCode <> 0 THEN
  993. PARENT.TriggerEvent('ue_viewprint',0,0)
  994. ELSE
  995. m_dft_dwprint_item m_1
  996. m_1 = CREATE m_dft_dwprint_item
  997. ls_i = 1
  998. DO WHILE sqlca.SQLCode = 0
  999. f_add_menuItem_dft(m_1,ls_i,ls_chnname,String(ls_dwprintid))
  1000. FETCH dft_dwprint INTO :ls_dwprintid,:ls_dft_old_dwname, :ls_dft_new_dwname,:ls_chnname, :ls_dwtype;
  1001. ls_i++
  1002. LOOP
  1003. CLOSE dft_dwprint;
  1004. m_1.PopMenu(THIS.X+50,THIS.Y+50)
  1005. END IF
  1006. ELSE
  1007. DECLARE rpt_dwprint CURSOR FOR
  1008. SELECT RpID,RpName,Flag,Ifuse
  1009. FROM U_report_list
  1010. WHERE billid = :ll_billid
  1011. Order By RpName;
  1012. OPEN rpt_dwprint;
  1013. FETCH rpt_dwprint INTO :ll_RpID,:ll_rpname,:ll_flag,:ll_ifuse;
  1014. IF sqlca.SQLCode <> 0 THEN
  1015. PARENT.TriggerEvent('ue_rpt_viewprint',0,0)
  1016. ELSE
  1017. m_rpt_dwprint_item m_2
  1018. m_2 = CREATE m_rpt_dwprint_item
  1019. ls_i = 1
  1020. DO WHILE sqlca.SQLCode = 0
  1021. IF f_pow_rpt(ll_RpID) AND ll_ifuse = 1 AND ll_flag = 1 THEN //权限检查f_pow_rpt( )
  1022. f_add_menuItem_rpt(m_2,ls_i,ll_rpname,String(ll_RpID))
  1023. END IF
  1024. FETCH rpt_dwprint INTO :ll_RpID,:ll_rpname,:ll_flag,:ll_ifuse;
  1025. ls_i++
  1026. LOOP
  1027. CLOSE rpt_dwprint;
  1028. m_2.Item[1].Visible = FALSE
  1029. m_2.PopMenu(THIS.X+50,THIS.Y+50)
  1030. END IF
  1031. END IF
  1032. end event
  1033. type cb_save from uo_imflatbutton within w_label_price
  1034. boolean visible = false
  1035. integer x = 334
  1036. integer width = 197
  1037. integer height = 172
  1038. integer taborder = 170
  1039. boolean bringtotop = true
  1040. string text = "保存"
  1041. string normalpicname = "save.bmp"
  1042. integer picsize = 16
  1043. toolbaralignment pic_align = alignattop!
  1044. boolean border = false
  1045. end type
  1046. type cb_5 from uo_imflatbutton within w_label_price
  1047. boolean visible = false
  1048. integer x = 535
  1049. integer width = 197
  1050. integer height = 172
  1051. integer taborder = 170
  1052. boolean bringtotop = true
  1053. string text = "导出"
  1054. string normalpicname = "excel.bmp"
  1055. integer picsize = 16
  1056. toolbaralignment pic_align = alignattop!
  1057. boolean border = false
  1058. end type
  1059. event clicked;call super::clicked;OPENWITHPARM(w_sentdataout,dw_child)
  1060. end event
  1061. type cb_2 from uo_imflatbutton within w_label_price
  1062. integer x = 1010
  1063. integer y = 4
  1064. integer width = 197
  1065. integer height = 172
  1066. integer taborder = 180
  1067. boolean bringtotop = true
  1068. string text = "退出"
  1069. string normalpicname = "exit.bmp"
  1070. integer picsize = 16
  1071. toolbaralignment pic_align = alignattop!
  1072. boolean border = false
  1073. end type
  1074. event clicked;call super::clicked;close(parent)
  1075. end event
  1076. type dw_child from u_dw_rbtnfilter within w_label_price
  1077. integer y = 316
  1078. integer width = 2382
  1079. integer height = 1864
  1080. integer taborder = 20
  1081. boolean bringtotop = true
  1082. string dataobject = "dw_label_price"
  1083. boolean controlmenu = true
  1084. boolean minbox = true
  1085. boolean maxbox = true
  1086. boolean hscrollbar = true
  1087. boolean vscrollbar = true
  1088. boolean hsplitscroll = true
  1089. boolean livescroll = false
  1090. end type
  1091. event clicked;call super::clicked;IF row > 0 THEN
  1092. This.SetRow(row)
  1093. This.SelectRow(0,False)
  1094. This.SelectRow(row,True)
  1095. END IF
  1096. end event
  1097. event dwnkey;call super::dwnkey; IF Key = keyenter! THEN
  1098. keybd_event ( 9, 0, 0 , 0 ) // 按下tab
  1099. keybd_event ( 9, 0, 2, 0 ) // 释放tab
  1100. RETURN 1
  1101. END IF
  1102. end event
  1103. type cb_7 from uo_imflatbutton within w_label_price
  1104. integer x = 169
  1105. integer width = 219
  1106. integer height = 172
  1107. integer taborder = 170
  1108. boolean bringtotop = true
  1109. string text = "选物料"
  1110. string normalpicname = "other.bmp"
  1111. integer picsize = 16
  1112. toolbaralignment pic_align = alignattop!
  1113. boolean border = false
  1114. end type
  1115. event clicked;call super::clicked;PARENT.TriggerEvent('ue_f8')
  1116. end event
  1117. type cb_8 from uo_imflatbutton within w_label_price
  1118. integer x = 393
  1119. integer width = 219
  1120. integer height = 172
  1121. integer taborder = 180
  1122. boolean bringtotop = true
  1123. string text = "删物料"
  1124. string normalpicname = "delete.bmp"
  1125. integer picsize = 16
  1126. toolbaralignment pic_align = alignattop!
  1127. boolean border = false
  1128. end type
  1129. event clicked;call super::clicked;IF dw_child.GetRow() <= 0 THEN RETURN
  1130. dw_child.DeleteRow(dw_child.GetRow())
  1131. end event
  1132. type r_bar from rectangle within w_label_price
  1133. long linecolor = 16777215
  1134. long fillcolor = 1073741824
  1135. integer x = 3200
  1136. integer width = 73
  1137. integer height = 172
  1138. end type
  1139. event constructor;this.fillcolor = 14215660
  1140. this.linecolor = 14215660
  1141. this.x = -1
  1142. this.y = -1
  1143. this.height = ln_bar2.beginy - 5
  1144. end event
  1145. type ln_bar from line within w_label_price
  1146. long linecolor = 268435456
  1147. integer linethickness = 4
  1148. integer beginy = 176
  1149. integer endx = 3429
  1150. integer endy = 176
  1151. end type
  1152. type ln_bar2 from line within w_label_price
  1153. long linecolor = 16777215
  1154. integer linethickness = 4
  1155. integer beginy = 180
  1156. integer endx = 3429
  1157. integer endy = 180
  1158. end type
  1159. type ln_1 from line within w_label_price
  1160. long linecolor = 268435456
  1161. integer linethickness = 4
  1162. integer beginy = 300
  1163. integer endx = 3429
  1164. integer endy = 300
  1165. end type
  1166. type ln_2 from line within w_label_price
  1167. long linecolor = 16777215
  1168. integer linethickness = 4
  1169. integer beginy = 304
  1170. integer endx = 3429
  1171. integer endy = 304
  1172. end type