建议增加 一个单据被引用的时候调用---类似create_voucher 目前使用创建到单据的时候,想要自动引用单据日期, create_voucher不起作用, 如果用func show 每次显示单据都会被修改,哪怕是已审核单据的数据。 或者有什么其他变通的办法。 脚本如下 int func_show() { string date,date1; date=gui_get_val('Edit_Ass_No'); //msg(date); date1=std_inp_date(str_get_sub(date,3,8)); //msg(date1); gui_set_val('DateTimePicker_Voucher_Date',date1); //gui_list_inp_all(); return 1; }; |