⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dms_0002fdocument_0002fcreatedocedt_0002ejsp_jsp.java

📁 dgbas公文管理核心java源码
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
                /*	if(session.getAttribute("user")!=null)
                	{
                		User user = (User)session.getAttribute("user");
                		strUndertakeUserID=user.getMemberId();
                		strUndertakeDeptID=wrapper.getDepartmentID(strUndertakeUserID);
                	}*/
                	Vector vDeptmentName=new Vector();
                	Vector vDeptmentID= new Vector();
                
                	for(int i=0; i<deptmentFirst.length;i++)
                	{
                		String deptid=deptmentFirst[i].getID();
                		String deptname=deptmentFirst[i].getName();
                		vDeptmentID.add(deptid);
                		vDeptmentName.add(deptname);
                		Department deptmentSecond[]=wrapper.getSubDepartment(deptid);
                		for(int j=0;j<deptmentSecond.length;j++)
                		{
                			deptid=deptmentSecond[j].getID();
                			deptname=deptmentSecond[j].getName();
                			vDeptmentID.add(deptid);
                			vDeptmentName.add(deptname);
                		}
                	}
                	String  strTemp="";
                	Member[] memberList;
                	for(int i=0; i<vDeptmentName.size();i++)
                	{
                		memberList=wrapper.getMemberList((String)vDeptmentID.elementAt(i));
                		for(int j=0; j<memberList.length;j++)
                		{
                			String memberID=memberList[j].getID();
                			String memberName=memberList[j].getName();
                			strTemp+= memberID+"_"+memberName+"_"+vDeptmentID.get(i).toString()+"|";
                		}
                    }
                
                    ExtendString ExStr=new ExtendString();
                    ExtendCalendar ExCal=new ExtendCalendar();
                    int y1=ExCal.getYear(ExCal.getDate());
                    int m1=ExCal.getMonth(ExCal.getDate());
                    int d1=ExCal.getDay(ExCal.getDate());
                
                    String strTaskID ="";
                	if(request.getAttribute("TaskID")!=null)
                	{
                	    strTaskID = request.getAttribute("TaskID").toString();
                	}
                
                	String act="2";
                	if(request.getAttribute("act")!=null)
                	{
                	    act=request.getAttribute("act").toString();
                	}
                
                    String strCreateNO = "";
                	if(request.getAttribute("CreateNO")!=null)
                	{
                	    strCreateNO=request.getAttribute("CreateNO").toString();
                	}
                	
                
                	int iKindID=-1, iAttributeID=-1, iSecretID=-1, iSpeedID=-1, iTypeID=-1, iCopyID=-1;
                	int iTermTypeID=-1, iAttachmentCount=0;
                
                /*	if(request.getAttribute("UndertakeDeptID")!=null)
                	{
                	    strUndertakeDeptID=request.getAttribute("UndertakeDeptID").toString();
                	}
                	if(request.getAttribute("UndertakeUserID")!=null)
                	{
                	    strUndertakeUserID=request.getAttribute("UndertakeUserID").toString();
                	}*/
                
                
                    CreateDocDAO createDoc = (CreateDocDAO)session.getAttribute("CreateDoc");
                    session.removeAttribute("CreateDoc");
                
                
                
                    if(createDoc != null)
                	{
                      strCreateNO = createDoc.getCreateNO();
                		if(createDoc.getCreateDate()!=null)
                		{
                            strCreateDate = ExCal.dbDate2Str(createDoc.getCreateDate());
                		}
                		if(createDoc.getEndDate()!=null)
                		{
                	        strEndDate = ExCal.dbDate2Str(createDoc.getEndDate());
                		}
                		strEndType = createDoc.getEndType();
                		iKindID = createDoc.getKindID();
                		strKindName = ExStr.nullToSpace(createDoc.getKindName());
                		iAttributeID = createDoc.getAttributeID();
                		strAttributeName = ExStr.nullToSpace(createDoc.getAttributeName());
                		iSecretID = createDoc.getSecretID();
                		strSecretName = ExStr.nullToSpace(createDoc.getSecretName());
                		iSpeedID = createDoc.getSpeedID();
                		strSpeedName = ExStr.nullToSpace(createDoc.getSpeedName());
                		iTypeID = createDoc.getTypeID();
                		strTypeName = ExStr.nullToSpace(createDoc.getTypeName());
                		iCopyID = createDoc.getCopyID();
                		strCopyName = ExStr.nullToSpace(createDoc.getCopyName());
                		if(createDoc.getPreDesecretDate()!=null)
                		{
                	        strDesecretDate = ExCal.dbDate2Str(createDoc.getPreDesecretDate());
                		}
                		strDesecretCondition = createDoc.getDesecretCondition();
                		iTermTypeID = createDoc.getTermType();
                		if(createDoc.getTermDate()!=null)
                		{
                	        strTermDate = ExCal.dbDate2Str(createDoc.getTermDate());
                		}
                		strSubject = createDoc.getSubject();
                		//iAttachmentCount = createDoc.getAttachCount();
                		//iAttachmentCount = ((Integer)request.getAttribute("AttachmentCount")).intValue();
                		iAttachmentCount = Integer.parseInt(request.getAttribute("AttachmentCount").toString());
                		if(iAttachmentCount > 0){
                			strAttachImage = "attach_red.gif";
                		}
                		strUndertakeDeptName = createDoc.getUndertakeDeptName();
                		strUndertakeDeptID = createDoc.getUndertakeDeptID();
                		strUndertakeUserName = createDoc.getUndertakeUserName();
                		strUndertakeUserID = createDoc.getUndertakeUserID();
                    }
            // end
            // HTML // begin [file="/DMS/document/CreateDocEdt.jsp";from=(179,2);to=(193,26)]
                out.write("\r\n<html>\r\n<head>\r\n<title>創稿補登1</title>\r\n<LINK href=\"../DMS/inc/DatePicker.css\" rel=stylesheet type=text/css>\r\n<link rel=\"stylesheet\" href=\"/WebAgenda/css_style/form/form_css_1.css\">\r\n<SCRIPT src=\"../DMS/inc/DateObject.js\"></SCRIPT>\r\n<SCRIPT src=\"../DMS/inc/DatePicker.js\"></SCRIPT>\r\n<SCRIPT src=\"../DMS/inc/editlib.js\"></SCRIPT>\r\n<SCRIPT src=\"../DMS/inc/OnloadEvent.js\"></SCRIPT>\r\n<script type=\"text/javascript\" src=\"/WebAgenda/DMS/common/calendar.js\"></script>\r\n<script>\r\nfunction load()\r\n{\r\n    form1.CreateNO.value=\"");

            // end
            // begin [file="/DMS/document/CreateDocEdt.jsp";from=(193,29);to=(193,42)]
                out.print( strCreateNO );
            // end
            // HTML // begin [file="/DMS/document/CreateDocEdt.jsp";from=(193,44);to=(204,0)]
                out.write("\";\r\n    var dteToday = new Date();\r\n    var strToday = (dteToday.getFullYear() - 911).toString().substr(1);\r\n    strToday += \"/\";\r\n    strToday += (dteToday.getMonth() + 101).toString().substr(1);\r\n    strToday += \"/\";\r\n    strToday += (dteToday.getDate() + 100).toString().substr(1);\r\n    form1.CreateDate.value = strToday;\r\n\tform1.DesecretDate.value = strToday;\r\n    form1.TermDate.value = strToday;\r\n\tSpeedID_onchange();\r\n");

            // end
            // begin [file="/DMS/document/CreateDocEdt.jsp";from=(204,2);to=(214,0)]
                
                	int yy1=1970;
                	int mm1=1;
                	int dd1=1;
                
                	if(!strCreateDate.equals(""))
                	{
                		yy1=ExCal.getYear(strCreateDate);
                		mm1=ExCal.getMonth(strCreateDate);
                		dd1=ExCal.getDay(strCreateDate);
            // end
            // HTML // begin [file="/DMS/document/CreateDocEdt.jsp";from=(214,2);to=(215,27)]
                out.write("\r\n\t\t//CreateDate.setCurDate(\"");

            // end
            // begin [file="/DMS/document/CreateDocEdt.jsp";from=(215,30);to=(215,33)]
                out.print(yy1);
            // end
            // HTML // begin [file="/DMS/document/CreateDocEdt.jsp";from=(215,35);to=(215,38)]
                out.write("\",\"");

            // end
            // begin [file="/DMS/document/CreateDocEdt.jsp";from=(215,41);to=(215,44)]
                out.print(mm1);
            // end
            // HTML // begin [file="/DMS/document/CreateDocEdt.jsp";from=(215,46);to=(215,49)]
                out.write("\",\"");

            // end
            // begin [file="/DMS/document/CreateDocEdt.jsp";from=(215,52);to=(215,55)]
                out.print(dd1);
            // end
            // HTML // begin [file="/DMS/document/CreateDocEdt.jsp";from=(215,57);to=(216,28)]
                out.write("\");\r\n\t\tform1.CreateDate.value = \"");

            // end
            // begin [file="/DMS/document/CreateDocEdt.jsp";from=(216,31);to=(216,34)]
                out.print(yy1);
            // end
            // HTML // begin [file="/DMS/document/CreateDocEdt.jsp";from=(216,36);to=(216,37)]
                out.write("/");

            // end
            // begin [file="/DMS/document/CreateDocEdt.jsp";from=(216,40);to=(216,43)]
                out.print(mm1);
            // end
            // HTML // begin [file="/DMS/document/CreateDocEdt.jsp";from=(216,45);to=(216,46)]
                out.write("/");

            // end
            // begin [file="/DMS/document/CreateDocEdt.jsp";from=(216,49);to=(216,52)]
                out.print(dd1);
            // end
            // HTML // begin [file="/DMS/document/CreateDocEdt.jsp";from=(216,54);to=(217,0)]
                out.write("\";\r\n");

            // end
            // begin [file="/DMS/document/CreateDocEdt.jsp";from=(217,2);to=(219,0)]
                
                	}
            // end
            // HTML // begin [file="/DMS/document/CreateDocEdt.jsp";from=(219,2);to=(222,0)]
                out.write("\r\n\t\r\n\r\n");

            // end
            // begin [file="/DMS/document/CreateDocEdt.jsp";from=(222,2);to=(225,0)]
                
                	if(iKindID!=-1)
                	{
            // end
            // HTML // begin [file="/DMS/document/CreateDocEdt.jsp";from=(225,2);to=(226,28)]

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -