1、新建操作员分组 2、分组里面加入限制权限的操作员 3、获取分组id select * from mup_group; sql工具里面执行上面语句,获取分组id。 5、用下面的代码替换产品记录编辑脚本里面的同名函数 int func_edit_rec() { string gid,uid,sql; uid=get_user_id(); sql="select group_id from mup_group_member where user_id='"+uid+"'"; db_run(sql); gid=db_res('group_id'); if (gid=='190' );//注意,这里gid要填写你第三步获取的组id { //gui_hide('TabSheet_Ext');//隐藏扩展及科目信息tab //gui_hide('Panel_Func');//隐藏右侧增加,删除等按钮 //gui_hide('Panel_Return');//隐藏右下返回按钮 //gui_hide('TabSheet_Ext');//隐藏扩展及科目信息tab //gui_hide('TabSheet_Emp_File');//隐藏相关文件tab //gui_hide('TabSheet_Unit_Type_Ext');//隐藏计价折算单位tab //gui_hide('TabSheet_List_Data');//隐藏分类信息tab //gui_hide('TabSheet_Attr_Def_Frame');//隐藏实体属性tab //gui_hide('TabSheet_Composing');//隐藏产品组成tab /*隐藏成品及价格信息*/ gui_set_parent('Label13','ScrollBox_Cost_Info'); gui_set_parent('Label14','ScrollBox_Cost_Info'); gui_set_parent('Label17','ScrollBox_Cost_Info'); gui_set_parent('Label18','ScrollBox_Cost_Info'); gui_set_parent('Label24','ScrollBox_Cost_Info'); gui_set_parent('Label36','ScrollBox_Cost_Info'); gui_set_parent('Edit_Out_Floor_Price','ScrollBox_Cost_Info'); gui_set_parent('Edit_Out_Ref_Price','ScrollBox_Cost_Info'); gui_set_parent('Edit_Price_Dot_Num','ScrollBox_Cost_Info'); gui_set_parent('UpDown_Dec_Num','ScrollBox_Cost_Info'); gui_hide('ScrollBox_Cost_Info'); /*end隐藏成品及价格信息*/ } return 1; }; 6、这样就隐藏的价格的相关信息,你也可以去掉前面的注释隐藏相应的标签,效果如下: |