| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154 |
- <%@ page language="java" contentType="text/html;charset=GBK"
- pageEncoding="GBK"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html;charset=GBK">
- <title>修改项目费用</title>
- <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
- <link href="${ pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
- <script type="text/javascript" src="/shares/js/jquery-1.3.2.min.js"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript">
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerDateEditor.js" type="text/javascript"></script>
- <script type="text/javascript" src="/shares/js/constant.js"></script>
- <script type="text/javascript" src="/shares/js/common.js"></script>
- <script type="text/javascript" src="/shares/js/file.js"></script>
- <script type="text/javascript" src="/shares/js/yw/yongfu/common.js"></script>
- <script type="text/javascript">
- function chooseProject(o) {
- var checkValue = $("#"+o.sid+"").val();
- var obj = window.top;
- if (obj != undefined && obj != null) {
- obj.$.ligerDialog
- .open({
- url : 'ProjectAction.do?task=listProjectForLookup',
- height : 400,
- width : 1000,
- title:'选择项目',
- buttons : [
- {
- text : '确定',
- onclick : function(item, dialog) {
- var rows = dialog.frame.f_select();
- var sids = "", sname = "", sprice = "", sman = "", stel = "";
- if(rows.length ==1){
- if (rows) {
- sids = rows[0].universalid;
- sname = rows[0].project_name;
- sprice = rows[0].project_cost;
- sman = rows[0].record_duty_man;
- stel = rows[0].project_tel;
-
- sname = sname == null ? "" : sname;
- sprice = sprice == null ? "" : sprice;
- sman = sman == null ? "" : sman;
- stel = stel == null ? "" : stel;
-
- }
- if ($("#" + o.sid).length > 0)
- $("#" + o.sid).val(sids);
- if ($("#" + o.sname).length > 0)
- $("#" + o.sname).val(sname);
- if ($("#" + o.sprice).length > 0)
- $("#" + o.sprice).val(sprice);
- if ($("#" + o.sman).length > 0)
- $("#" + o.sman).val(sman);
- if ($("#" + o.stel).length > 0)
- $("#" + o.stel).val(stel);
- dialog.close();
- $(".l-dialog-win").remove();
- }else{
- obj.$.ligerDialog.warn("请选择一行!");
- $(".l-dialog-win").remove();
- return;
- }
- }
- }, {
- text : '取消',
- onclick : function(item, dialog) {
- dialog.close();
- $(".l-dialog-win").remove();
- }
- } ],
- name : "listDialog"
- });
- }
- }
- function checkForm() {
- var rs = $.validate({
- name : "projectcost_name",
- model : [ {
- type : "require",
- msg : "工程名称不能为空!"
- }]
- });
- if(rs){
- return true;
- }
- return false;
- }
- </script>
- </head>
- <body>
- <form name="addForm" action="CostAction.do" method="post" onsubmit="return checkForm();">
- <div id="title" class="form-button">
- <input type="submit" id="subBtu" class="l-button" value="保存" />
- </div>
- <div class="container-layout">
- <div class="forum-container">
- <center>
- <table class="l-table-edit line">
- <tr>
- <th colspan="2">修改项目费用</th>
- </tr>
-
- <tr>
- <td>工程名称<FONT COLOR="red">*</FONT>:</td>
- <td >
- <input type="hidden" id="project_id" name="project_id" value="${requestScope.projectCost.project_id }" >
- <input type="text" id="projectcost_name" name="projectcost_name" value="${requestScope.projectCost.projectcost_name }" size="50">
- <input type="button" id="subBtu" class="l-button" value="请选择" onclick="chooseProject({sid:'project_id',sname:'projectcost_name',sprice:'projectcost_price',sman:'projectcost_duty_man',stel:'projectcost_duty_tel'});" />
- </td>
- </tr>
- <tr>
- <td>合同造价(万元):</td>
- <td>
- <input type="text" id="projectcost_price" name="projectcost_price" value="${requestScope.projectCost.projectcost_price }" maxlength="16">
- </td>
- </tr>
- <tr>
- <td>责任人:</td>
- <td>
- <input type="text" id="projectcost_duty_man" name="projectcost_duty_man" value="${requestScope.projectCost.projectcost_duty_man }" >
- </td>
- </tr>
- <tr>
- <td>联系电话:</td>
- <td>
- <input type="text" id="projectcost_duty_tel" name="projectcost_duty_tel" value="${requestScope.projectCost.projectcost_duty_tel }">
- </td>
- </tr>
- <tr>
- <td>备注:</td>
- <td>
- <input type="text" id="projectcost_remark" name="projectcost_remark" value="${requestScope.projectCost.projectcost_remark }">
- </td>
- </tr>
-
- <tr>
- <td colspan="2" style="text-align: center;">
-
- </td>
- </tr>
- </table>
- <input type="hidden" id="tabid" name="tabid" value="${param.tabid }">
- <input type="hidden" id="projectcost_id" name="projectcost_id" value="${requestScope.projectCost.projectcost_id }">
- <input type="hidden" id="task" name="task" value="editProjectCost">
- </center>
- </div>
- </div>
- </form>
- <%@ include file="/include/message.jsp"%>
- </body>
- </html>
|