w_gz_wage.srw 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428
  1. $PBExportHeader$w_gz_wage.srw
  2. forward
  3. global type w_gz_wage from w_publ_base
  4. end type
  5. type st_421 from statictext within w_gz_wage
  6. end type
  7. type em_mth from editmask within w_gz_wage
  8. end type
  9. type dw_wagemx from datawindow within w_gz_wage
  10. end type
  11. type sle_dscrp_pe from singlelineedit within w_gz_wage
  12. end type
  13. type dw_wage from u_dw_rbtnfilter within w_gz_wage
  14. end type
  15. type gb_2 from groupbox within w_gz_wage
  16. end type
  17. type cbx_hl_bz from checkbox within w_gz_wage
  18. end type
  19. type cb_dealwagemx from uo_imflatbutton within w_gz_wage
  20. end type
  21. type cb_init from uo_imflatbutton within w_gz_wage
  22. end type
  23. type cb_auditing from uo_imflatbutton within w_gz_wage
  24. end type
  25. type cb_uninit from uo_imflatbutton within w_gz_wage
  26. end type
  27. type cb_wagerpt from uo_imflatbutton within w_gz_wage
  28. end type
  29. type cb_addemp from uo_imflatbutton within w_gz_wage
  30. end type
  31. type tv_1 from uo_tv_deptype within w_gz_wage
  32. end type
  33. type ddlb_scid from uo_ddlb_scid within w_gz_wage
  34. end type
  35. type cb_delemp from uo_imflatbutton within w_gz_wage
  36. end type
  37. type cb_retrieve from uo_imflatbutton within w_gz_wage
  38. end type
  39. type cb_cancel from uo_imflatbutton within w_gz_wage
  40. end type
  41. type cb_wage_edit from uo_imflatbutton within w_gz_wage
  42. end type
  43. type cb_fillbz from uo_imflatbutton within w_gz_wage
  44. end type
  45. type cb_help from uo_imflatbutton within w_gz_wage
  46. end type
  47. type cb_other from uo_imflatbutton within w_gz_wage
  48. end type
  49. type st_5 from statictext within w_gz_wage
  50. end type
  51. type ddlb_1 from dropdownlistbox within w_gz_wage
  52. end type
  53. type r_bar from rectangle within w_gz_wage
  54. end type
  55. type ln_bar from line within w_gz_wage
  56. end type
  57. type ln_bar2 from line within w_gz_wage
  58. end type
  59. type ln_1 from line within w_gz_wage
  60. end type
  61. type ln_2 from line within w_gz_wage
  62. end type
  63. end forward
  64. global type w_gz_wage from w_publ_base
  65. integer x = 46
  66. integer y = 48
  67. integer width = 3611
  68. integer height = 2380
  69. string title = "工资表"
  70. boolean maxbox = true
  71. windowstate windowstate = maximized!
  72. boolean if_ue_filter = true
  73. boolean if_ue_sort = true
  74. boolean if_ue_sentdataout = true
  75. event ue_addemp ( )
  76. event ue_autoaddemp ( )
  77. event ue_basepay ( )
  78. event ue_view_gzb ( )
  79. event ue_p_dscrp ( )
  80. st_421 st_421
  81. em_mth em_mth
  82. dw_wagemx dw_wagemx
  83. sle_dscrp_pe sle_dscrp_pe
  84. dw_wage dw_wage
  85. gb_2 gb_2
  86. cbx_hl_bz cbx_hl_bz
  87. cb_dealwagemx cb_dealwagemx
  88. cb_init cb_init
  89. cb_auditing cb_auditing
  90. cb_uninit cb_uninit
  91. cb_wagerpt cb_wagerpt
  92. cb_addemp cb_addemp
  93. tv_1 tv_1
  94. ddlb_scid ddlb_scid
  95. cb_delemp cb_delemp
  96. cb_retrieve cb_retrieve
  97. cb_cancel cb_cancel
  98. cb_wage_edit cb_wage_edit
  99. cb_fillbz cb_fillbz
  100. cb_help cb_help
  101. cb_other cb_other
  102. st_5 st_5
  103. ddlb_1 ddlb_1
  104. r_bar r_bar
  105. ln_bar ln_bar
  106. ln_bar2 ln_bar2
  107. ln_1 ln_1
  108. ln_2 ln_2
  109. end type
  110. global w_gz_wage w_gz_wage
  111. type variables
  112. datastore ds_wageitem
  113. uo_wage uo_mthwage
  114. String ls_handtype = ''
  115. long cur_deptid
  116. Long cur_scid
  117. Long cur_scid_arr[]
  118. Boolean if_power_sendout = true
  119. Boolean if_power_print = true
  120. long cur_wagemth
  121. end variables
  122. forward prototypes
  123. public function integer wf_refresh_face ()
  124. public function integer wf_retrieve_mx ()
  125. public function integer wf_retrieve ()
  126. public function integer wf_retr_wageitem ()
  127. public function long wf_getwageitemid (string arg_wagename)
  128. public function integer wf_init_gzmonth ()
  129. end prototypes
  130. event ue_addemp();s_empselect_open s_trans
  131. string errmsg
  132. s_trans.empcode=''
  133. s_trans.wagemth=long(em_mth.text)
  134. s_trans.dispall=false
  135. if not isvalid(w_empinfo_choice) then
  136. OPENwithparm(w_empinfo_choice,s_trans)
  137. s_empselect s_select
  138. s_select=Message.PowerObjectParm //接受返回结构
  139. IF s_select.empid>0 THEN
  140. if uo_mthwage.f_addemp(long(em_mth.text),s_select.empid,errmsg,true)=0 then
  141. MEssagebox('提示',errmsg, Information!, OK! )
  142. return
  143. end if
  144. if uo_mthwage.f_init(cur_scid,long(em_mth.text),errmsg)=0 then
  145. MEssagebox('提示',errmsg, Information!, OK! )
  146. return
  147. end if
  148. wf_retrieve()
  149. messagebox('提示','增加人员成功!', Information!, OK! )
  150. END IF
  151. end if
  152. end event
  153. event ue_autoaddemp();long ls_empid,arg_empid[],i,k
  154. long count,ls_wagemth,ls_year,ls_month
  155. string errmsg=""
  156. boolean if_exist
  157. ls_wagemth=long(em_mth.text)
  158. ls_year = long(left(em_mth.text,4))
  159. ls_month = long(right(em_mth.text,2))
  160. count=0
  161. ////查询计件单
  162. //DECLARE pf_cur CURSOR FOR
  163. //SELECT distinct u_sc_taskworkmx.empid
  164. // FROM u_sc_taskworkmx,u_sc_taskwork
  165. // where u_sc_taskwork.billid = u_sc_taskworkmx.billid
  166. // and year(u_sc_taskwork.Billdate) = :ls_year
  167. // and month(u_sc_taskwork.Billdate) = :ls_month
  168. // and u_sc_taskworkmx.empid not in
  169. // (select u_gz_wage.empid
  170. // from u_gz_wage
  171. // where u_gz_wage.wagemth=:ls_wagemth);
  172. //open pf_cur;
  173. //fetch pf_cur into :ls_empid;
  174. //
  175. //do while sqlca.sqlcode=0
  176. // count++
  177. // arg_empid[count]=ls_empid
  178. // fetch pf_cur into :ls_empid;
  179. //loop
  180. //close pf_cur;
  181. //查询异常计件单
  182. if_exist = false
  183. DECLARE paf_cur CURSOR FOR
  184. SELECT distinct u_sc_abnormitymx.empid
  185. FROM u_sc_abnormitymx,u_sc_abnormity
  186. where u_sc_abnormity.billid = u_sc_abnormitymx.billid
  187. and year(u_sc_abnormity.Billdate) = :ls_year
  188. and month(u_sc_abnormity.Billdate) = :ls_month
  189. and u_sc_abnormitymx.empid not in
  190. (select u_gz_wage.empid
  191. from u_gz_wage
  192. where u_gz_wage.wagemth=:ls_wagemth);
  193. open paf_cur;
  194. fetch paf_cur into :ls_empid;
  195. do while sqlca.sqlcode=0
  196. if_exist = false
  197. for k = 1 to count
  198. if arg_empid[k] = ls_empid then
  199. if_exist = true
  200. end if
  201. next
  202. if if_exist = false then
  203. count++
  204. arg_empid[count]=ls_empid
  205. end if
  206. fetch paf_cur into :ls_empid;
  207. loop
  208. close paf_cur;
  209. //查询奖罚单
  210. if_exist = false
  211. DECLARE pcf_cur CURSOR FOR
  212. SELECT distinct u_gz_award_punish.empid
  213. FROM u_gz_award_punish
  214. where u_gz_award_punish.wagemth = :ls_wagemth
  215. and u_gz_award_punish.empid not in
  216. (select u_gz_wage.empid
  217. from u_gz_wage
  218. where u_gz_wage.wagemth=:ls_wagemth);
  219. open pcf_cur;
  220. fetch pcf_cur into :ls_empid;
  221. do while sqlca.sqlcode=0
  222. if_exist = false
  223. for k = 1 to count
  224. if arg_empid[k] = ls_empid then
  225. if_exist = true
  226. end if
  227. next
  228. if if_exist = false then
  229. count++
  230. arg_empid[count]=ls_empid
  231. end if
  232. fetch pcf_cur into :ls_empid;
  233. loop
  234. close pcf_cur;
  235. //查询考勤单
  236. if_exist = false
  237. DECLARE pdf_cur CURSOR FOR
  238. SELECT distinct u_gz_cwork.empid
  239. FROM u_gz_cwork
  240. where u_gz_cwork.wagemth = :ls_wagemth
  241. and u_gz_cwork.empid not in
  242. (select u_gz_wage.empid
  243. from u_gz_wage
  244. where u_gz_wage.wagemth=:ls_wagemth);
  245. open pdf_cur;
  246. fetch pdf_cur into :ls_empid;
  247. do while sqlca.sqlcode=0
  248. if_exist = false
  249. for k = 1 to count
  250. if arg_empid[k] = ls_empid then
  251. if_exist = true
  252. end if
  253. next
  254. if if_exist = false then
  255. count++
  256. arg_empid[count]=ls_empid
  257. end if
  258. fetch pdf_cur into :ls_empid;
  259. loop
  260. close pdf_cur;
  261. open(w_sys_wait_jdt) //初始化进度条
  262. w_sys_wait_jdt.wf_accepttol(count)
  263. for i=1 to count
  264. w_sys_wait_jdt.wf_inc(i)
  265. w_sys_wait_jdt.st_msg.text="正在读取..."
  266. if arg_empid[i]>0 then
  267. if uo_mthwage.f_addemp(long(em_mth.text),arg_empid[i],errmsg,false)=0 then
  268. messagebox('提示',errmsg, Information!, OK! )
  269. return
  270. end if
  271. end if
  272. next
  273. commit;
  274. close(w_sys_wait_jdt)
  275. if uo_mthwage.f_init(cur_scid,long(em_mth.text),errmsg)=0 then
  276. MEssagebox('提示',errmsg, Information!, OK! )
  277. return
  278. end if
  279. count=0
  280. messagebox('提示','增加人员成功!', Information!, OK! )
  281. wf_retrieve()
  282. end event
  283. event ue_basepay();IF NOT f_power_ind(1457) THEN
  284. MessageBox('提示','你没有使用权限!', Information!, OK! )
  285. RETURN
  286. END IF
  287. s_wageeditw_open s_wageedit_tran
  288. s_wageedit_tran.handtype = ls_handtype
  289. s_wageedit_tran.scid_arr = cur_scid_arr
  290. s_wageedit_tran.scid = cur_scid
  291. OpenWithParm(w_gz_wage_basepay_edit,s_wageedit_tran)
  292. end event
  293. event ue_view_gzb;f_sys_main(706)
  294. end event
  295. event ue_p_dscrp();String ls_str
  296. Long i
  297. Open(w_ue_pt_alter_dscrp)
  298. ls_str = Message.StringParm
  299. IF ls_str <> '' THEN
  300. FOR i = 1 To dw_wage.RowCount()
  301. dw_wage.Object.u_gz_wage_dscrp[i] = ls_str
  302. NEXT
  303. END IF
  304. end event
  305. public function integer wf_refresh_face ();//wf_refresh_face
  306. IF dw_edit_mode THEN
  307. cb_cancel.Enabled = TRUE
  308. cb_wage_edit.Text = '保存'
  309. cb_wage_edit.normalpicname = 'save.bmp'
  310. cb_init.Enabled = FALSE
  311. cb_uninit.Enabled = FALSE
  312. sle_dscrp_pe.Enabled = TRUE
  313. cb_fillbz.Enabled = TRUE
  314. cbx_hl_bz.Enabled = TRUE
  315. cb_auditing.Enabled = FALSE
  316. cb_wagerpt.Enabled = FALSE
  317. cb_func.Enabled = FALSE
  318. em_mth.Enabled = FALSE
  319. cb_retrieve.Enabled = FALSE
  320. cb_addemp.Enabled = FALSE
  321. cb_delemp.Enabled = FALSE
  322. dw_wage.SetTabOrder(1,10)
  323. dw_wage.SetTabOrder(2,20)
  324. dw_wage.SetTabOrder(3,30)
  325. ELSE
  326. cb_cancel.Enabled = FALSE
  327. cb_wage_edit.Text = '修改'
  328. cb_wage_edit.normalpicname = 'OPEN.bmp'
  329. sle_dscrp_pe.Enabled = FALSE
  330. cb_fillbz.Enabled = FALSE
  331. cbx_hl_bz.Enabled = FALSE
  332. cb_auditing.Enabled = TRUE
  333. cb_wagerpt.Enabled = TRUE
  334. cb_func.Enabled = TRUE
  335. em_mth.Enabled = TRUE
  336. cb_retrieve.Enabled = TRUE
  337. cb_addemp.Enabled = TRUE
  338. cb_delemp.Enabled = TRUE
  339. dw_wage.SetTabOrder(1,0)
  340. dw_wage.SetTabOrder(2,0)
  341. dw_wage.SetTabOrder(3,0)
  342. IF dw_wage.RowCount() > 0 THEN
  343. IF dw_wage.Object.u_gz_wage_auditingflag[1] = 0 THEN
  344. cb_auditing.Text = '审核'
  345. cb_init.Enabled = TRUE
  346. cb_uninit.Enabled = TRUE
  347. ELSE
  348. cb_auditing.Text = '撤审'
  349. cb_init.Enabled = FALSE
  350. cb_uninit.Enabled = FALSE
  351. END IF
  352. ELSE
  353. cb_auditing.Text = '审核'
  354. cb_init.Enabled = TRUE
  355. cb_uninit.Enabled = TRUE
  356. END IF
  357. cb_auditing.TriggerEvent('ue_textchange')
  358. END IF
  359. cb_wage_edit.of_init_draw()
  360. cb_wage_edit.of_paint()
  361. cb_wage_edit.TriggerEvent('ue_textchange')
  362. RETURN 0
  363. end function
  364. public function integer wf_retrieve_mx ();//wf_retrieve_mx
  365. long ls_row,ls_newrow
  366. ls_row=dw_wage.getrow()
  367. if ls_row<=0 then
  368. dw_wagemx.reset()
  369. return 0
  370. else
  371. dw_wagemx.retrieve(dw_wage.object.u_gz_wage_empid[ls_row],dw_wage.object.u_gz_wage_wagemth[ls_row])
  372. end if
  373. for ls_row=1 to ds_wageitem.rowcount()
  374. if dw_wagemx.find('u_gz_wagemx_wageid='+string(ds_wageitem.object.wageid[ls_row]),1,dw_wagemx.rowcount())=0 then
  375. ls_newrow=dw_wagemx.insertrow(0)
  376. dw_wagemx.object.u_gz_wageitem_wagename[ls_newrow]=ds_wageitem.object.wagename[ls_row]
  377. dw_wagemx.object.u_gz_wageitem_wagetype[ls_newrow]=ds_wageitem.object.wagetype[ls_row]
  378. dw_wagemx.object.u_gz_wageitem_wagemode[ls_newrow]=ds_wageitem.object.wagemode[ls_row]
  379. dw_wagemx.object.u_gz_wagemx_wageid[ls_newrow]=ds_wageitem.object.wageid[ls_row]
  380. end if
  381. next
  382. // u_gz_wageitem_wagename u_gz_wageitem_wagetype u_gz_wageitem_wagemode u_gz_wagemx_wageid
  383. // u_gz_wage_auditingflag
  384. //
  385. return 0
  386. end function
  387. public function integer wf_retrieve ();//wf_retrieve
  388. //long wagemth
  389. //wagemth=long(em_mth.text)
  390. cur_wagemth = long(em_mth.text)
  391. dw_wage.retrieve(cur_wagemth,ls_handtype,cur_scid_arr)
  392. wf_retrieve_mx()
  393. wf_refresh_face()
  394. return 0
  395. end function
  396. public function integer wf_retr_wageitem ();//wf_retr_wageitem
  397. long ls_s
  398. ds_wageitem.retrieve()
  399. //ddlb_wageitem.reset()
  400. //for ls_s=1 to ds_wageitem.rowcount()
  401. // ddlb_wageitem.ADDItem(ds_wageitem.object.wagename[ls_s])
  402. //next
  403. return 0
  404. end function
  405. public function long wf_getwageitemid (string arg_wagename);//wf_getwageitemid
  406. long ls_wageid=0,ls_i
  407. for ls_i=1 to ds_wageitem.rowcount()
  408. if ds_wageitem.object.wagename[ls_i]=arg_wagename then
  409. return ds_wageitem.object.wageid[ls_i]
  410. end if
  411. next
  412. return ls_wageid
  413. end function
  414. public function integer wf_init_gzmonth ();long ll_wagemth
  415. ddlb_1.setredraw(false)
  416. ddlb_1.reset()
  417. DECLARE cur_wagemth CURSOR FOR
  418. SELECT DISTINCT (wagemth)
  419. FROM u_gz_wage
  420. order by wagemth desc;
  421. OPEN cur_wagemth;
  422. FETCH cur_wagemth INTO :ll_wagemth;
  423. cur_wagemth = ll_wagemth
  424. DO WHILE sqlca.SQLCode = 0 //循环读取明细数据
  425. ddlb_1.AddItem (string(ll_wagemth))
  426. FETCH cur_wagemth INTO :ll_wagemth;
  427. LOOP
  428. CLOSE cur_wagemth;
  429. ddlb_1.Text = string(cur_wagemth)
  430. ddlb_1.setredraw(true)
  431. return 1
  432. end function
  433. on w_gz_wage.create
  434. int iCurrent
  435. call super::create
  436. this.st_421=create st_421
  437. this.em_mth=create em_mth
  438. this.dw_wagemx=create dw_wagemx
  439. this.sle_dscrp_pe=create sle_dscrp_pe
  440. this.dw_wage=create dw_wage
  441. this.gb_2=create gb_2
  442. this.cbx_hl_bz=create cbx_hl_bz
  443. this.cb_dealwagemx=create cb_dealwagemx
  444. this.cb_init=create cb_init
  445. this.cb_auditing=create cb_auditing
  446. this.cb_uninit=create cb_uninit
  447. this.cb_wagerpt=create cb_wagerpt
  448. this.cb_addemp=create cb_addemp
  449. this.tv_1=create tv_1
  450. this.ddlb_scid=create ddlb_scid
  451. this.cb_delemp=create cb_delemp
  452. this.cb_retrieve=create cb_retrieve
  453. this.cb_cancel=create cb_cancel
  454. this.cb_wage_edit=create cb_wage_edit
  455. this.cb_fillbz=create cb_fillbz
  456. this.cb_help=create cb_help
  457. this.cb_other=create cb_other
  458. this.st_5=create st_5
  459. this.ddlb_1=create ddlb_1
  460. this.r_bar=create r_bar
  461. this.ln_bar=create ln_bar
  462. this.ln_bar2=create ln_bar2
  463. this.ln_1=create ln_1
  464. this.ln_2=create ln_2
  465. iCurrent=UpperBound(this.Control)
  466. this.Control[iCurrent+1]=this.st_421
  467. this.Control[iCurrent+2]=this.em_mth
  468. this.Control[iCurrent+3]=this.dw_wagemx
  469. this.Control[iCurrent+4]=this.sle_dscrp_pe
  470. this.Control[iCurrent+5]=this.dw_wage
  471. this.Control[iCurrent+6]=this.gb_2
  472. this.Control[iCurrent+7]=this.cbx_hl_bz
  473. this.Control[iCurrent+8]=this.cb_dealwagemx
  474. this.Control[iCurrent+9]=this.cb_init
  475. this.Control[iCurrent+10]=this.cb_auditing
  476. this.Control[iCurrent+11]=this.cb_uninit
  477. this.Control[iCurrent+12]=this.cb_wagerpt
  478. this.Control[iCurrent+13]=this.cb_addemp
  479. this.Control[iCurrent+14]=this.tv_1
  480. this.Control[iCurrent+15]=this.ddlb_scid
  481. this.Control[iCurrent+16]=this.cb_delemp
  482. this.Control[iCurrent+17]=this.cb_retrieve
  483. this.Control[iCurrent+18]=this.cb_cancel
  484. this.Control[iCurrent+19]=this.cb_wage_edit
  485. this.Control[iCurrent+20]=this.cb_fillbz
  486. this.Control[iCurrent+21]=this.cb_help
  487. this.Control[iCurrent+22]=this.cb_other
  488. this.Control[iCurrent+23]=this.st_5
  489. this.Control[iCurrent+24]=this.ddlb_1
  490. this.Control[iCurrent+25]=this.r_bar
  491. this.Control[iCurrent+26]=this.ln_bar
  492. this.Control[iCurrent+27]=this.ln_bar2
  493. this.Control[iCurrent+28]=this.ln_1
  494. this.Control[iCurrent+29]=this.ln_2
  495. end on
  496. on w_gz_wage.destroy
  497. call super::destroy
  498. destroy(this.st_421)
  499. destroy(this.em_mth)
  500. destroy(this.dw_wagemx)
  501. destroy(this.sle_dscrp_pe)
  502. destroy(this.dw_wage)
  503. destroy(this.gb_2)
  504. destroy(this.cbx_hl_bz)
  505. destroy(this.cb_dealwagemx)
  506. destroy(this.cb_init)
  507. destroy(this.cb_auditing)
  508. destroy(this.cb_uninit)
  509. destroy(this.cb_wagerpt)
  510. destroy(this.cb_addemp)
  511. destroy(this.tv_1)
  512. destroy(this.ddlb_scid)
  513. destroy(this.cb_delemp)
  514. destroy(this.cb_retrieve)
  515. destroy(this.cb_cancel)
  516. destroy(this.cb_wage_edit)
  517. destroy(this.cb_fillbz)
  518. destroy(this.cb_help)
  519. destroy(this.cb_other)
  520. destroy(this.st_5)
  521. destroy(this.ddlb_1)
  522. destroy(this.r_bar)
  523. destroy(this.ln_bar)
  524. destroy(this.ln_bar2)
  525. destroy(this.ln_1)
  526. destroy(this.ln_2)
  527. end on
  528. event open;call super::open;em_mth.text=string(today(),'yyyymm')
  529. if_power_sendout = f_power_ind(1505)
  530. wf_init_gzmonth()
  531. wf_retrieve()
  532. end event
  533. event ue_before_open;if_ue_filter=true
  534. if_ue_sort=true
  535. uo_mthwage= create uo_wage
  536. dw_wage.settransobject(sqlca)
  537. dw_wagemx.settransobject(sqlca)
  538. ds_wageitem=create datastore
  539. ds_wageitem.settransobject(sqlca)
  540. ds_wageitem.dataobject='dw_mthwage_edit_st_wageitem'
  541. end event
  542. event ue_filter;call super::ue_filter;OPENWITHPARM(w_filter_query,dw_wage)
  543. STRING LS_EXPR
  544. LS_EXPR=Message.StringParm
  545. if len(LS_EXPR)>2 and trim(LS_EXPR)='' then return
  546. dw_wage.setfilter(LS_EXPR)
  547. dw_wage.SetRedraw (false)
  548. dw_wage.filter()
  549. dw_wage.SetRedraw (TRUE)
  550. end event
  551. event ue_sort;call super::ue_sort;OPENwithparm(w_sortrow,dw_wage)
  552. STRING LS_EXPR
  553. LS_EXPR=Message.StringParm
  554. IF ISNULL(LS_EXPR) THEN LS_EXPR=' '
  555. if len(LS_EXPR)>2 and trim(LS_EXPR)='' then return
  556. dw_wage.setsort(LS_EXPR)
  557. dw_wage.SetRedraw (false)
  558. dw_wage.sort()
  559. dw_wage.SetRedraw (true)
  560. end event
  561. event resize;call super::resize;ln_bar.EndX = THIS.Width
  562. ln_bar2.EndX = THIS.Width
  563. ln_1.EndX = THIS.Width
  564. ln_2.EndX = THIS.Width
  565. r_bar.Width = THIS.Width
  566. Long w_width,w_height
  567. w_width = 3600
  568. w_height = 2300
  569. IF newwidth < w_width THEN THIS.Width = w_width
  570. IF newheight < w_height THEN THIS.Height = w_height
  571. tv_1.Height = THIS.Height - (w_height - 1840)
  572. dw_wage.Width = THIS.Width - (w_width - 2747)
  573. dw_wage.Height = THIS.Height - (w_height - 796)
  574. gb_2.Y = THIS.Height - (w_height - 1116)
  575. dw_wagemx.Y = THIS.Height - (w_height - 1168)
  576. cb_dealwagemx.Y = THIS.Height - (w_height - 1168)
  577. end event
  578. event key;call super::key;if keydown(keyF1!) then this.triggerevent("ue_help")
  579. end event
  580. event ue_sentdataout;call super::ue_sentdataout;IF NOT if_power_sendout THEN
  581. MessageBox(publ_operator,'你没有使用权限!')
  582. RETURN
  583. END IF
  584. OpenWithParm(w_sentdataout,dw_wage)
  585. end event
  586. type cb_func from w_publ_base`cb_func within w_gz_wage
  587. integer x = 165
  588. integer height = 172
  589. end type
  590. type cb_exit from w_publ_base`cb_exit within w_gz_wage
  591. integer x = 2816
  592. integer width = 165
  593. integer height = 172
  594. integer picsize = 16
  595. toolbaralignment pic_align = alignattop!
  596. boolean border = false
  597. end type
  598. type st_421 from statictext within w_gz_wage
  599. integer x = 571
  600. integer y = 212
  601. integer width = 142
  602. integer height = 60
  603. boolean bringtotop = true
  604. integer textsize = -9
  605. integer weight = 400
  606. fontcharset fontcharset = gb2312charset!
  607. fontpitch fontpitch = variable!
  608. string facename = "宋体"
  609. long textcolor = 33554432
  610. long backcolor = 134217739
  611. boolean enabled = false
  612. string text = "月份:"
  613. alignment alignment = right!
  614. boolean focusrectangle = false
  615. end type
  616. type em_mth from editmask within w_gz_wage
  617. integer x = 709
  618. integer y = 196
  619. integer width = 311
  620. integer height = 92
  621. integer taborder = 120
  622. boolean bringtotop = true
  623. integer textsize = -10
  624. integer weight = 400
  625. fontcharset fontcharset = gb2312charset!
  626. fontpitch fontpitch = variable!
  627. string facename = "宋体"
  628. long textcolor = 33554432
  629. borderstyle borderstyle = stylelowered!
  630. maskdatatype maskdatatype = datemask!
  631. string mask = "yyyymm"
  632. boolean spin = true
  633. end type
  634. type dw_wagemx from datawindow within w_gz_wage
  635. integer x = 832
  636. integer y = 1168
  637. integer width = 2085
  638. integer height = 960
  639. integer taborder = 160
  640. boolean bringtotop = true
  641. string dataobject = "dw_mthwage_mx_list"
  642. boolean hscrollbar = true
  643. boolean vscrollbar = true
  644. boolean livescroll = true
  645. borderstyle borderstyle = stylelowered!
  646. end type
  647. event rowfocuschanged;long ls_mode
  648. IF currentrow >0 THEN
  649. this.selectrow(0,false)
  650. this.selectrow(currentrow,true)
  651. ls_mode= dw_wagemx.object.u_gz_wageitem_wagemode[currentrow]
  652. if ls_mode=0 then
  653. cb_dealwagemx.text='录入明细'
  654. else
  655. cb_dealwagemx.text='查询明细'
  656. end if
  657. cb_dealwagemx.triggerevent('ue_textchange')
  658. end if
  659. end event
  660. event clicked;IF row >0 THEN
  661. this.selectrow(0,false)
  662. this.selectrow(row,true)
  663. end if
  664. end event
  665. type sle_dscrp_pe from singlelineedit within w_gz_wage
  666. integer x = 1047
  667. integer y = 196
  668. integer width = 1097
  669. integer height = 84
  670. integer taborder = 170
  671. boolean bringtotop = true
  672. integer textsize = -9
  673. integer weight = 400
  674. fontcharset fontcharset = gb2312charset!
  675. fontpitch fontpitch = variable!
  676. string facename = "宋体"
  677. long textcolor = 33554432
  678. boolean autohscroll = false
  679. borderstyle borderstyle = stylelowered!
  680. end type
  681. type dw_wage from u_dw_rbtnfilter within w_gz_wage
  682. integer x = 814
  683. integer y = 308
  684. integer width = 2747
  685. integer height = 796
  686. integer taborder = 30
  687. boolean bringtotop = true
  688. string dataobject = "dw_mthwage_edit"
  689. boolean hscrollbar = true
  690. boolean vscrollbar = true
  691. end type
  692. event rowfocuschanged;IF currentrow >0 THEN
  693. this.selectrow(0,false)
  694. this.selectrow(currentrow,true)
  695. end if
  696. wf_retrieve_mx()
  697. end event
  698. event clicked;call super::clicked;IF row >0 THEN
  699. this.selectrow(0,false)
  700. this.selectrow(row,true)
  701. end if
  702. end event
  703. event constructor;call super::constructor; titleclick_sort_use=true //单击标题排序功能开关
  704. RBUTTON_FILTER_USE=true //右键查询功能开关
  705. end event
  706. event dwnkey;call super::dwnkey;parent.triggerevent("key")
  707. end event
  708. type gb_2 from groupbox within w_gz_wage
  709. integer x = 818
  710. integer y = 1116
  711. integer width = 2437
  712. integer height = 1032
  713. integer taborder = 130
  714. integer textsize = -9
  715. integer weight = 400
  716. fontcharset fontcharset = gb2312charset!
  717. fontpitch fontpitch = variable!
  718. string facename = "宋体"
  719. long textcolor = 33554432
  720. long backcolor = 134217739
  721. string text = "工资明细项目"
  722. end type
  723. type cbx_hl_bz from checkbox within w_gz_wage
  724. integer x = 2158
  725. integer y = 208
  726. integer width = 485
  727. integer height = 68
  728. boolean bringtotop = true
  729. integer textsize = -9
  730. integer weight = 400
  731. fontcharset fontcharset = gb2312charset!
  732. fontpitch fontpitch = variable!
  733. string facename = "宋体"
  734. long textcolor = 33554432
  735. long backcolor = 134217739
  736. string text = "忽略已有内容的"
  737. end type
  738. type cb_dealwagemx from uo_imflatbutton within w_gz_wage
  739. integer x = 2935
  740. integer y = 1168
  741. integer width = 297
  742. integer height = 96
  743. integer taborder = 180
  744. boolean bringtotop = true
  745. string text = "录入明细"
  746. end type
  747. event clicked;call super::clicked;IF NOT f_power_ind(196) THEN
  748. MessageBox('提示','你没有使用权限!', Information!, OK! )
  749. RETURN
  750. END IF
  751. s_wageeditw_open s_wageedit_tran
  752. Long ll_row,ls_mode,li_row
  753. ll_row = dw_wagemx.GetRow()
  754. IF ll_row = 0 THEN
  755. MessageBox('提示',"请指定要操作的工资项目!", Information!, OK! )
  756. RETURN
  757. END IF
  758. ls_mode = dw_wagemx.Object.u_gz_wageitem_wagemode[ll_row]
  759. s_wageedit_tran.wagename = dw_wagemx.Object.u_gz_wageitem_wagename[ll_row]
  760. s_wageedit_tran.wageid = dw_wagemx.Object.u_gz_wagemx_wageid[ll_row]
  761. s_wageedit_tran.wagemth = Long(em_mth.Text)
  762. s_wageedit_tran.deptid = cur_deptid
  763. s_wageedit_tran.handtype = ls_handtype
  764. s_wageedit_tran.scid_arr = cur_scid_arr
  765. s_wageedit_tran.scid = cur_scid
  766. CHOOSE CASE ls_mode
  767. CASE 0
  768. OpenWithParm(w_gz_wage_mx0_edit,s_wageedit_tran)
  769. CASE 13,14,15,21,22,23,24
  770. li_row = dw_wage.GetRow()
  771. IF ll_row = 0 THEN
  772. MessageBox('提示',"请选择人员!", Information!, OK! )
  773. RETURN
  774. END IF
  775. s_wageedit_tran.empid = dw_wage.Object.u_gz_wage_empid[dw_wage.getrow()]
  776. s_wageedit_tran.empname = dw_wage.Object.u_rs_empinfo_empname[dw_wage.getrow()]
  777. // CHOOSE CASE ls_mode
  778. // CASE 13
  779. // OpenWithParm(w_emp_mx_taskwork,s_wageedit_tran)
  780. // CASE 14
  781. // OpenWithParm(w_emp_mx_abnormity,s_wageedit_tran)
  782. // CASE 15
  783. // OpenWithParm(w_emp_mx_taskwork_group,s_wageedit_tran)
  784. // CASE 21
  785. // OpenWithParm(w_emp_mx_loanwage,s_wageedit_tran)
  786. // CASE 22
  787. // OpenWithParm(w_emp_mx_outware,s_wageedit_tran)
  788. // CASE 23
  789. // OpenWithParm(w_emp_mx_award_punish,s_wageedit_tran)
  790. // CASE 24
  791. // OpenWithParm(w_emp_mx_cwork,s_wageedit_tran)
  792. // END CHOOSE
  793. END CHOOSE
  794. end event
  795. type cb_init from uo_imflatbutton within w_gz_wage
  796. integer x = 329
  797. integer width = 247
  798. integer height = 172
  799. integer taborder = 150
  800. boolean bringtotop = true
  801. string text = "初始化"
  802. string normalpicname = "p1.bmp"
  803. integer picsize = 16
  804. toolbaralignment pic_align = alignattop!
  805. boolean border = false
  806. end type
  807. event clicked;call super::clicked;IF NOT f_power_ind(196) THEN
  808. MessageBox('提示','你没有使用权限!', Information!, OK! )
  809. RETURN
  810. END IF
  811. IF MessageBox ("询问","是否确定要初始化["+em_mth.Text+"]的工资表?",Question!,YesNo! ) = 2 THEN
  812. RETURN
  813. END IF
  814. String arg_msg
  815. Long rslt
  816. rslt = uo_mthwage.f_init(cur_scid,Long(em_mth.Text),arg_msg)
  817. IF rslt = 0 THEN
  818. MessageBox('提示',arg_msg, Information!, OK! )
  819. ELSE
  820. MessageBox('提示',"初始化成功!", Information!, OK! )
  821. wf_init_gzmonth()
  822. wf_retrieve()
  823. END IF
  824. end event
  825. type cb_auditing from uo_imflatbutton within w_gz_wage
  826. integer x = 837
  827. integer width = 165
  828. integer height = 172
  829. integer taborder = 150
  830. boolean bringtotop = true
  831. string text = "审核"
  832. string normalpicname = "audit.bmp"
  833. integer picsize = 16
  834. toolbaralignment pic_align = alignattop!
  835. boolean border = false
  836. end type
  837. event clicked;call super::clicked;IF NOT f_power_ind(196) THEN
  838. MessageBox('提示','你没有使用权限!', Information!, OK! )
  839. RETURN
  840. END IF
  841. String arg_msg
  842. Long rslt
  843. IF MessageBox ("IF","是否确定要"+THIS.Text+"["+em_mth.Text+trim(left(ddlb_scid.Text,pos(ddlb_scid.Text,'[')-1))+"]工资表吗?",Question!,YesNo! ) = 2 THEN
  844. RETURN
  845. END IF
  846. IF THIS.Text = '审核' THEN
  847. rslt = uo_mthwage.f_auditing ( Long(em_mth.Text),cur_scid,0,publ_operator,arg_msg )
  848. ELSEIF THIS.Text = '撤审' THEN
  849. rslt = uo_mthwage.f_unauditing ( Long(em_mth.Text),cur_scid,0,publ_operator,arg_msg )
  850. END IF
  851. IF rslt = 0 THEN
  852. MessageBox('提示',arg_msg, Information!, OK! )
  853. ELSE
  854. MessageBox('提示',THIS.Text+"["+em_mth.Text+"]工资表操作成功!", Information!, OK! )
  855. wf_retrieve()
  856. END IF
  857. end event
  858. type cb_uninit from uo_imflatbutton within w_gz_wage
  859. integer x = 576
  860. integer width = 261
  861. integer height = 172
  862. integer taborder = 160
  863. boolean bringtotop = true
  864. string text = "反初始化"
  865. string normalpicname = "p2.bmp"
  866. integer picsize = 16
  867. toolbaralignment pic_align = alignattop!
  868. boolean border = false
  869. end type
  870. event clicked;call super::clicked;//未注册限制
  871. IF sys_if_register = 0 THEN
  872. MessageBox('提示','未注册版本,不能反初始化!', Information!, OK! )
  873. RETURN
  874. END IF
  875. IF NOT f_power_ind(196) THEN
  876. MessageBox('提示','你没有使用权限!', Information!, OK! )
  877. RETURN
  878. END IF
  879. String arg_msg
  880. Long rslt
  881. IF MessageBox ("询问","是否确定要删除["+em_mth.Text+"]工资表?~r~n(确认后数据将不可以恢复)",Question!,YesNo! ) = 2 THEN
  882. RETURN
  883. END IF
  884. rslt = uo_mthwage.f_uninit(cur_scid,Long(em_mth.Text),arg_msg)
  885. IF rslt = 0 THEN
  886. MessageBox('提示',arg_msg, Information!, OK! )
  887. ELSE
  888. MessageBox('提示',"删除["+em_mth.Text+"]工资表操作成功!", Information!, OK! )
  889. wf_init_gzmonth()
  890. wf_retrieve()
  891. END IF
  892. end event
  893. type cb_wagerpt from uo_imflatbutton within w_gz_wage
  894. integer x = 2345
  895. integer width = 306
  896. integer height = 172
  897. integer taborder = 150
  898. boolean bringtotop = true
  899. string text = "查看工资表"
  900. string normalpicname = "find2.bmp"
  901. integer picsize = 16
  902. toolbaralignment pic_align = alignattop!
  903. boolean border = false
  904. end type
  905. event clicked;call super::clicked;parent.triggerevent("ue_view_gzb")
  906. end event
  907. type cb_addemp from uo_imflatbutton within w_gz_wage
  908. integer x = 1001
  909. integer width = 247
  910. integer height = 172
  911. integer taborder = 150
  912. boolean bringtotop = true
  913. string text = "增加人员"
  914. string normalpicname = "mx1.bmp"
  915. integer picsize = 16
  916. toolbaralignment pic_align = alignattop!
  917. boolean border = false
  918. end type
  919. event clicked;call super::clicked;if not f_power_ind(196) then
  920. messagebox('提示','你没有使用权限!', Information!, OK! )
  921. return
  922. end if
  923. m_Dfc_Control_PopupMenu dmPopupMenu
  924. string menustr
  925. menustr="Text=手工增加~tEvent=ue_addemp"
  926. menustr=menustr + "|" + "Text=自动增加~tEvent=ue_autoaddemp"
  927. if len(trim(menustr))<>0 then
  928. dmPopupMenu = Create m_Dfc_Control_PopupMenu
  929. dmPopupMenu.mf_BuildMenu(This, menustr)
  930. dmPopupMenu.mf_PopMenu()
  931. Destroy dmPopupMenu
  932. end if
  933. end event
  934. type tv_1 from uo_tv_deptype within w_gz_wage
  935. integer y = 308
  936. integer width = 814
  937. integer height = 1840
  938. integer taborder = 60
  939. boolean bringtotop = true
  940. integer textsize = -9
  941. fontcharset fontcharset = gb2312charset!
  942. fontfamily fontfamily = anyfont!
  943. string facename = "宋体"
  944. end type
  945. event selectionchanged;call super::selectionchanged;ls_handtype = THIS.uo_cur_info.handtype
  946. cur_deptid = THIS.uo_cur_info.departmentid
  947. ls_handtype = ls_handtype + '%'
  948. cb_retrieve.TriggerEvent(Clicked!)
  949. end event
  950. type ddlb_scid from uo_ddlb_scid within w_gz_wage
  951. integer x = 9
  952. integer y = 196
  953. integer width = 517
  954. integer height = 676
  955. boolean bringtotop = true
  956. end type
  957. event constructor;call super::constructor;cur_scid = THIS.uo_scid
  958. cur_scid_arr = THIS.uo_scid_arr
  959. end event
  960. event selectionchanged;call super::selectionchanged;cur_scid = THIS.uo_scid
  961. cur_scid_arr = THIS.uo_scid_arr
  962. cb_retrieve.TriggerEvent(Clicked!)
  963. end event
  964. type cb_delemp from uo_imflatbutton within w_gz_wage
  965. integer x = 1248
  966. integer width = 247
  967. integer height = 172
  968. integer taborder = 150
  969. boolean bringtotop = true
  970. string text = "删除人员"
  971. string normalpicname = "mx2.bmp"
  972. integer picsize = 16
  973. toolbaralignment pic_align = alignattop!
  974. boolean border = false
  975. end type
  976. event clicked;call super::clicked;if not f_power_ind(196) then
  977. messagebox('提示','你没有使用权限!', Information!, OK! )
  978. return
  979. end if
  980. string ls_empcode,ls_empname,errmsg
  981. long ll_empid
  982. if dw_wage.rowcount()=0 then
  983. Messagebox('提示','没有可删除的记录!', Information!, OK! )
  984. return
  985. end if
  986. ll_empid=dw_wage.object.u_gz_wage_empid[dw_wage.getrow()]
  987. ls_empcode=dw_wage.object.u_rs_empinfo_empcode[dw_wage.getrow()]
  988. ls_empname=dw_wage.object.u_rs_empinfo_empname[dw_wage.getrow()]
  989. IF MessageBox ("IF","是否确定从"+ em_mth.text+ "工资表中删除该人员[编号:"+ls_empcode+" 姓名:"+ls_empname+"]吗?",Question!,YesNo! ) =1 THEN
  990. if uo_mthwage.f_delemp(long(em_mth.text),ll_empid,errmsg,true)=0 then
  991. Messagebox('提示',errmsg, Information!, OK! )
  992. return
  993. end if
  994. Messagebox('提示','删除成功!', Information!, OK! )
  995. wf_retrieve()
  996. end if
  997. end event
  998. type cb_retrieve from uo_imflatbutton within w_gz_wage
  999. integer width = 165
  1000. integer height = 172
  1001. integer taborder = 150
  1002. string text = "刷新"
  1003. string normalpicname = "refresh.bmp"
  1004. integer picsize = 16
  1005. toolbaralignment pic_align = alignattop!
  1006. boolean border = false
  1007. end type
  1008. event clicked;call super::clicked;wf_retrieve()
  1009. end event
  1010. type cb_cancel from uo_imflatbutton within w_gz_wage
  1011. integer x = 1659
  1012. integer width = 165
  1013. integer height = 172
  1014. integer taborder = 40
  1015. boolean bringtotop = true
  1016. string text = "放弃"
  1017. string normalpicname = "undo.bmp"
  1018. integer picsize = 16
  1019. toolbaralignment pic_align = alignattop!
  1020. boolean border = false
  1021. end type
  1022. event clicked;call super::clicked;dw_edit_mode=false
  1023. wf_retrieve()
  1024. end event
  1025. type cb_wage_edit from uo_imflatbutton within w_gz_wage
  1026. integer x = 1495
  1027. integer width = 165
  1028. integer height = 172
  1029. integer taborder = 40
  1030. boolean bringtotop = true
  1031. string text = "修改"
  1032. string normalpicname = "open.bmp"
  1033. integer picsize = 16
  1034. toolbaralignment pic_align = alignattop!
  1035. boolean border = false
  1036. end type
  1037. event clicked;call super::clicked;if not f_power_ind(196) then
  1038. messagebox('提示','你没有使用权限!', Information!, OK! )
  1039. return
  1040. end if
  1041. if dw_edit_mode then
  1042. dw_wage.setfilter('')
  1043. dw_wage.filter()
  1044. dw_wage.accepttext()
  1045. if dw_wage.update()=1 then
  1046. commit;
  1047. messagebox('提示','保存成功!', Information!, OK! )
  1048. else
  1049. rollback;
  1050. messagebox('提示','保存失败!', Information!, OK! )
  1051. end if
  1052. end if
  1053. dw_edit_mode=not dw_edit_mode
  1054. wf_refresh_face()
  1055. end event
  1056. type cb_fillbz from uo_imflatbutton within w_gz_wage
  1057. integer x = 1824
  1058. integer width = 247
  1059. integer height = 172
  1060. integer taborder = 50
  1061. boolean bringtotop = true
  1062. string text = "更新备注"
  1063. string normalpicname = "mx.bmp"
  1064. integer picsize = 16
  1065. toolbaralignment pic_align = alignattop!
  1066. boolean border = false
  1067. end type
  1068. event clicked;call super::clicked;if not dw_edit_mode then return
  1069. long ls_i
  1070. for ls_i=1 to dw_wage.rowcount()
  1071. if cbx_hl_bz.checked then
  1072. if trim(dw_wage.object.u_gz_wage_dscrp[ls_i])<>'' then dw_wage.object.u_gz_wage_dscrp[ls_i]=trim(sle_dscrp_pe.text)
  1073. else
  1074. dw_wage.object.u_gz_wage_dscrp[ls_i]=trim(sle_dscrp_pe.text)
  1075. end if
  1076. next
  1077. //
  1078. end event
  1079. type cb_help from uo_imflatbutton within w_gz_wage
  1080. string tag = "帮助[F1]"
  1081. integer x = 2651
  1082. integer width = 165
  1083. integer height = 172
  1084. integer taborder = 20
  1085. boolean bringtotop = true
  1086. string text = "帮助"
  1087. string normalpicname = "help.bmp"
  1088. integer picsize = 16
  1089. toolbaralignment pic_align = alignattop!
  1090. boolean border = false
  1091. end type
  1092. event clicked;call super::clicked;parent.triggerevent("ue_help")
  1093. end event
  1094. type cb_other from uo_imflatbutton within w_gz_wage
  1095. integer x = 2071
  1096. integer width = 274
  1097. integer height = 172
  1098. integer taborder = 160
  1099. boolean bringtotop = true
  1100. string text = "辅助功能"
  1101. string normalpicname = "other.bmp"
  1102. integer picsize = 16
  1103. toolbaralignment pic_align = alignattop!
  1104. boolean border = false
  1105. end type
  1106. event clicked;call super::clicked;
  1107. m_Dfc_Control_PopupMenu dmPopupMenu
  1108. String menustr
  1109. menustr = "Text=设定基本工资~tEvent=ue_basepay"
  1110. menustr=menustr + "|" + "Text=-"
  1111. menustr=menustr + "|" + "Text=查看工资表~tEvent=ue_view_gzb"
  1112. if dw_edit_mode then
  1113. menustr=menustr + "|" + "Text=批设置备注~tEvent=ue_p_dscrp"
  1114. end if
  1115. IF Len(Trim(menustr)) <> 0 THEN
  1116. dmPopupMenu = CREATE m_Dfc_Control_PopupMenu
  1117. dmPopupMenu.mf_BuildMenu(THIS, menustr)
  1118. dmPopupMenu.mf_PopMenu()
  1119. DESTROY dmPopupMenu
  1120. END IF
  1121. end event
  1122. type st_5 from statictext within w_gz_wage
  1123. integer x = 2702
  1124. integer y = 216
  1125. integer width = 233
  1126. integer height = 60
  1127. boolean bringtotop = true
  1128. integer textsize = -9
  1129. integer weight = 400
  1130. fontcharset fontcharset = gb2312charset!
  1131. fontpitch fontpitch = variable!
  1132. string facename = "宋体"
  1133. long textcolor = 33554432
  1134. long backcolor = 134217739
  1135. string text = "月份列表"
  1136. alignment alignment = right!
  1137. boolean focusrectangle = false
  1138. end type
  1139. type ddlb_1 from dropdownlistbox within w_gz_wage
  1140. integer x = 2944
  1141. integer y = 200
  1142. integer width = 475
  1143. integer height = 856
  1144. integer taborder = 130
  1145. boolean bringtotop = true
  1146. integer textsize = -10
  1147. integer weight = 400
  1148. fontcharset fontcharset = gb2312charset!
  1149. fontpitch fontpitch = variable!
  1150. string facename = "宋体"
  1151. long textcolor = 33554432
  1152. boolean sorted = false
  1153. borderstyle borderstyle = stylelowered!
  1154. end type
  1155. event selectionchanged;em_mth.Text = this.Text
  1156. cur_wagemth = long(this.Text)
  1157. cb_retrieve.triggerevent(clicked!)
  1158. end event
  1159. type r_bar from rectangle within w_gz_wage
  1160. long linecolor = 16777215
  1161. long fillcolor = 1073741824
  1162. integer x = 3200
  1163. integer width = 73
  1164. integer height = 172
  1165. end type
  1166. event constructor;this.fillcolor = 14215660
  1167. this.linecolor = 14215660
  1168. this.x = -1
  1169. this.y = -1
  1170. this.height = ln_bar2.beginy - 5
  1171. end event
  1172. type ln_bar from line within w_gz_wage
  1173. long linecolor = 268435456
  1174. integer linethickness = 4
  1175. integer beginy = 176
  1176. integer endx = 3429
  1177. integer endy = 176
  1178. end type
  1179. type ln_bar2 from line within w_gz_wage
  1180. long linecolor = 16777215
  1181. integer linethickness = 4
  1182. integer beginy = 180
  1183. integer endx = 3429
  1184. integer endy = 180
  1185. end type
  1186. type ln_1 from line within w_gz_wage
  1187. long linecolor = 268435456
  1188. integer linethickness = 4
  1189. integer beginy = 300
  1190. integer endx = 3429
  1191. integer endy = 300
  1192. end type
  1193. type ln_2 from line within w_gz_wage
  1194. long linecolor = 16777215
  1195. integer linethickness = 4
  1196. integer beginy = 304
  1197. integer endx = 3429
  1198. integer endy = 304
  1199. end type