凯云水利水电工程造价管理系统 技术解析(四)取费管理(一)

取费管理

3.7-1 功能实现

取费管理的数据处理主要有:添加、删除、复制、粘贴、导出、导入

    取费管理的添加,会弹出一个窗体,里面只有取费分类列表名,而其它的字段可以双击列名为名称和单位那两列时,会弹出一个小窗体,双击小窗体就能添加数据。删除就是选择一行进行删除。

      取费管理的复制、粘贴:对现有的数据进行复制、粘贴,为了进行区分,粘贴后的数据,代号会自动跟着”复制“二字,只要是通过最后的几位整数来区分取费分类列表名,不让其重复。

      取费管理的导出、导入:系统将自动给出一个路径,把取费的所有数据导入到一张Excel表。导入:先手动填写一些数据,这些数据要根据数据库的参数来写,一一对应才能导入

 

取费明细的数据处理主要有,添加父节、同级插入、下级插入、升级、删去

  点击添加,他就会自动新增一行数据,我们可以对那一行数据进行一些修改操作,我们还可以对数据做下级插入,同级插入数据,删去数据。




表和关系:



  //下面就是生成界面的html代码

   <div id="Xa">
      <tr>
      <td><a οnclick="openwindow()" ><input  type="submit" value="添加" /></a></td>
      <td><a οnclick="deleterow()" ><input  type="submit" value="删除" /></a></td>
      <td><a οnclick="copyrow()" ><input  type="submit" value="复制" /></a></td>
      <td><a οnclick="pasterow()" ><input  type="submit" value="粘贴" /></a></td>
      <td><a οnclick="daochu()" ><input  type="submit" value="导出" /></a></td>
       <form action="/QuFeiGuanLi/GetTableFromExcel" method="post"  enctype="multipart/form-data"> 
                        <text>选择上传文件</text>
                        <input name="file1" type="file" id="file" />
                        <input type="submit" name="Upload" value="导入" /> 
                        </form>
      </tr>
      </div> 
      <div id="as">
           <tr>
      <td><a οnclick="addparampanelPoint()" ><input  type="submit" value="添加" /></a></td>
      <td><a οnclick="deletree()" ><input  type="submit" value="删除" /></a></td>
      <td><a οnclick="togetherInsert()" ><input  type="submit" value="同级插入" /></a></td>
      <td><a οnclick="belowInsert()" ><input  type="submit" value="下级插入" /></a></td>
      <td><a οnclick="Upgrade()" ><input  type="submit" value="升级" /></a></td>
      <td><a οnclick="Demotion()" ><input  type="submit" value="降级" /></a></td>
      <td><a οnclick="ModificationALine()" ><input  type="submit" value="修改一行" /></a></td> 
        </tr>
      </div>
      <div  >
     <table  style="margin-top:0px;padding-top:0px;">
     <tr>
      <td>
     	<table id="getpriceclasify" class="easyui-datagrid" title="取费分类列表" data-options="onClickRow:onClickRowxin,onDblClickRow:onDblClickRow,singleSelect:true,onRowContextMenu:onRowContextMenu2,toolbar:'#Xa'" style="width:500px;height:480px;padding-left:0px;background-color: #00FFFF">
		<thead frozen="true">
			<tr>
                 <th data-options="field:'BuildProjectID',width:80,hidden:true"  >建立项目ID</th>
                 <th field="GetPriceClassifyID" hidden="true">取费分类列表ID</th>
                  <th field="QuoteEditionID" hidden="true">定额ID</th>
				 <th field="GetPriceClassifyName" width="150">取费分类列表</th>
			</tr>
		</thead>
       <thead> 
            <tr >
				<th colspan="3" ><div class="datagrid-cell-group" style="width:350px">调整系数</div></th>
			</tr>
			<tr>
                <th data-options="field:'AdjustFactorID',width:80,hidden:true"  >高程调整系数ID</th>
				<th field="ManpowerFactor" width="120" align="center">人工系数</th>
				<th field="MaterialFacto" width="120" align="center">材料系数</th>
				<th field="MachineFactor" width="120" align="center">机械系数</th>
			</tr>
		</thead> 
        </table>
     </td>
     <td> 
     <div class="easyui-panel" style="width:800px;height:480px; background-color: #D5F9F2; font-size:12px;" data-options="noheader:true"> 
       费用明细表       <a οnclick="CalculateFormula1()"  class="easyui-linkbutton">设置计算单价公式</a>     <input id="CalculateFormula" style="width:150px"/>
    <table id="Tbl_treedetailed" class="easyui-treegrid"  style="width:800px;height:400px"
			data-options="
				iconCls: 'icon-ok',
				rownumbers: true,
				animate: true,
				collapsible: true, 
               onClickRow:onClickRowdetailed,
               onAfterEdit:onAfter,
               onHeaderContextMenu:onRowContextMenu2,
                 fitColumns:true,
                 lines:true, 
				idField: 'id', 
				treeField: 'text',
                toolbar:'#as'
			">
       <thead> 
			<tr>   
                  <th data-options="field:'rr',width:30"  ></th>
                  <th data-options="field:'text',width:60,align:'center',editor:'text'">名称</th> 
                <th data-opt
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值