int rep_change() { return 1; }; int load_ext() { return 1; }; int show_row_ext() { //change_row_id 表示当前行 return 1; }; int load_over() { grid_add_col_num("MG",'ext_sum','合计') string sql; sql="select wage_subject_id from wage_subject"; db_run(sql); //dbg(sql) int n,id n=db_row_count(); //dbg(n) int n_item,id_item; num item_sum; item_sum=0; n_item=grid_row_num("MG"); for(id_item=1;id_item<=n_item;id_item++) { for(id=1;id<=n;id++) { item_sum+=to_float(grid_get_v("MG",db_res(0),id_item)); db_next() }; db_go_head(); grid_set_v("MG","ext_sum",id_item,num_dec_cut(item_sum,2)) item_sum=0; } grid_mark_sum("MG","ext_sum") return 1; }; int dbl_click() { return 1; }; int main() { return 1; }; |