int func_win_create()  {    change_to_win('test-');    gui_create_grid('this','Grid',8,18);    gui_set_w('Grid',401);    gui_set_h('Grid',251);      string mg_name;    mg_name="Grid";      grid_set_col_num(mg_name, 7);    //第一列    grid_set_col_width(mg_name, grid_get_col_name(mg_name, 0), 20);      grid_set_col_name(mg_name, 1, 'rec_id');    grid_set_v(mg_name, 'rec_id', 0, "序号");    grid_set_col_width(mg_name, 'rec_id', 0);    grid_mark_readonly(mg_name, 'rec_id');    //grid_set_col_align_middle(mg_name, 'emf_center_id');      grid_set_col_name(mg_name, 2, 'emf_center_date');    grid_set_v(mg_name, 'emf_center_date', 0, "日期");    grid_set_col_width(mg_name, 'emf_center_date', 100);    grid_set_col_date(mg_name, 'emf_center_date');    grid_unmark_readonly(mg_name, 'emf_center_date');      grid_set_col_name(mg_name, 3, 'work_time_hour');    grid_set_v(mg_name, 'work_time_hour', 0, "工时(小时)");    grid_set_col_width(mg_name, 'work_time_hour', 70);    grid_set_col_number(mg_name, "work_time_hour", 2);    grid_unmark_readonly(mg_name, "work_time_hour");      grid_set_col_name(mg_name, 4, 'work_time');    grid_set_v(mg_name, 'work_time', 0, "工时(秒)");    grid_set_col_width(mg_name, 'work_time', 70);    grid_set_col_number(mg_name, "work_time", 0);    grid_unmark_readonly(mg_name, "work_time");      grid_set_col_name(mg_name, 5, 'emf_center_id');    grid_set_v(mg_name, 'emf_center_id', 0, "工作中心编号");    grid_set_col_width(mg_name, 'emf_center_id', 0);    grid_mark_readonly(mg_name, 'emf_center_id');      grid_set_col_name(mg_name, 6, 'emf_center_name');    grid_set_v(mg_name, 'emf_center_name', 0, "工作中心");    grid_set_col_width(mg_name, 'emf_center_name', 80);    //grid_set_col_pop_dict(mg_name, 'emf_center', 'emf_center_id', 'emf_center_name');    grid_mark_readonly(mg_name, 'emf_center_name');    //msg('func_win_create');      return 1;  };    int func_win_test()  {    gui_delete_win('test-');    gui_create_mdi_win('test-',454,454,'test');    func_win_create()    win_set_obj_change_csp('test');    return 1;  };    int main()  {    func_win_test()    return 1;  };  |