起步软件技术论坛-X3

 找回密码
 立即注册
搜索
查看: 149|回复: 3

【搞定】阜阳升级后问题**

[复制链接]
发表于 2007-6-18 17:41:35 | 显示全部楼层 |阅读模式
1如何禁用用户在任务上的"取回"权限,

2使用以下JSP进入X3后,直接关闭IE时报错.如果注销提示"不能注销",直接关闭IE报错信息如附图

<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="com.justep.loader.LibContext"%>
<%@ page import="java.lang.reflect.Method" %>
<%
Class pclass = LibContext.getInstance().getLoader().loadClass("com.justep.web.SysServerProvider");
Object pobj = pclass.newInstance();
Method getBXClassIDMethod = pclass.getMethod("getBXClassID",new Class[]{});
Method getBXCodeMethod = pclass.getMethod("getBXCodebase",new Class[]{});
Method getSysServerURLMethod = pclass.getMethod("getSysServerURL",new Class[]{});

String classId = (String)getBXClassIDMethod.invoke(pobj,new Object[]{});
String codeBase = (String)getBXCodeMethod.invoke(pobj,new Object[]{});
String url = (String)getSysServerURLMethod.invoke(pobj,new Object[]{});
%>
<%
        String username = request.getParameter("username");
        String password = request.getParameter("password");
%>

<HTML>

<HEAD>
<title>>X3 协同管理系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</HEAD>

<BODY leftmargin="0" topmargin="0" scroll="no">



<OBJECT  id = "X3X"
          classid="<%= classId%>"
          codebase="<%= codeBase%>"
          width="100%"
          height="100%"
          align=center
          hspace=0
          vspace=0
>
</OBJECT>

<object id="WebBrowser" width=0 height=0 classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2">
</object>

<script ID="BusinessCloseEventHandler" language="javascript" FOR="BusinessX" EVENT="OnTerminate">
  WebBrowser.ExecWB(45,1); // close window
</script>

<script type="text/javascript">
        var username = "<%=username%>";
        var pwd = "<%=password%>";
  function BeforeClose()
  {
    if(!X3X.TerminateQuery())
    {
      event.returnValue = "";
    }
  }

  document.title = X3X.DisplayName;
  X3X.ServerURL = "<%= url%>"
  X3X.ShowSplash();
  X3X.UpdateVersion();
  X3X.Init();
  X3X.CloseSplash();

  X3X.Logon(username,pwd);

  X3X.Run("Biz:\System\Init.Func", "", "", "");
  document.body.onbeforeunload=BeforeClose;
  document.title = X3X.DisplayName;

</script>
</BODY>
</HTML>

snap2.jpg

39.93 KB, 下载次数: 106

回复

使用道具 举报

发表于 2007-6-18 17:47:16 | 显示全部楼层
问题1
修改 业务模型\协同系统\任务\任务中心信息 注销下面一句,注意改好后编译,签入,刷新缓存

procedure TTaskOperations.AddDefaultBizOperations(var OperatorBizOperations: TStrings);
begin
  OperatorBizOperations.Add('Biz:\COLLABORATION\TaskOptionGroup.OperationGroup\Open.Operation');
  OperatorBizOperations.Add('Biz:\COLLABORATION\TaskOptionGroup.OperationGroup\Process.Operation');
  OperatorBizOperations.Add('Biz:\COLLABORATION\TaskOptionGroup.OperationGroup\FlowOut.Operation');
  OperatorBizOperations.Add('Biz:\COLLABORATION\TaskOptionGroup.OperationGroup\FlowBack.Operation');
  OperatorBizOperations.Add('Biz:\COLLABORATION\TaskOptionGroup.OperationGroup\Abort.Operation');
  OperatorBizOperations.Add('Biz:\COLLABORATION\TaskOptionGroup.OperationGroup\Finish.Operation');
  OperatorBizOperations.Add('Biz:\COLLABORATION\PlanOperationGroup.OperationGroup\ReadFinish.Operation');
  OperatorBizOperations.Add('Biz:\COLLABORATION\PlanOperationGroup.OperationGroup\AllocEdit.Operation');
  OperatorBizOperations.Add('Biz:\COLLABORATION\PlanOperationGroup.OperationGroup\Agree.Operation');
  OperatorBizOperations.Add('Biz:\COLLABORATION\PlanOperationGroup.OperationGroup\UnAgree.Operation');
  OperatorBizOperations.Add('Biz:\COLLABORATION\PlanOperationGroup.OperationGroup\Report.Operation');
//  OperatorBizOperations.Add('Biz:\COLLABORATION\TaskOptionGroup.OperationGroup\FetchBack.Operation');
  OperatorBizOperations.Add('Biz:\COLLABORATION\TaskOptionGroup.OperationGroup\Del.Operation');
end;

问题2,我们再测试一下
回复 支持 反对

使用道具 举报

发表于 2007-6-19 10:19:21 | 显示全部楼层
问题2
按下面修改 业务模型\系统空间\系统运行库\系统核心库 中的一个函数,注意修改完后编译、签入、刷新缓存

static procedure TSYSTEMCORE.SetOperator(AOperator: TOperator);
begin
  if not FCanRelogon or (FOperator <> nil) then
    raise Exception.Create('已经登录');

  FOperator := AOperator;

  FSetOperator := True;
  //FCanRelogon := Borland.Delphi.Windows.GetModuleHandle('rtdbg.dll') <> 0;
  FCanRelogon := True;
end;
回复 支持 反对

使用道具 举报

发表于 2007-6-27 12:47:39 | 显示全部楼层

好使!多谢!

多谢,结了吧!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Justep Inc.

GMT+8, 2025-1-12 06:11 , Processed in 0.041275 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表