中间单价
功能实现
中间单价包含三个部分:一个是中间单价列表,一个是中间单价定额组成表,一个是中间单价定额人材机组成表,中间单价列表,你可以对其进行新增,删除和修改。当点击时,点击添加会在datagrid里面增加一行数据,而数据里面的代号是自动增加,增加完一行数据,你就可以对他进行相应的修改,而修改是在datagrid里面操作的。
中间单价定额组成表数据处理包括添加定额、新建定额、删除 。
点击一下中间单价的添加定额、会弹出一个窗体,里面有数据的我们·可以通过多条件查询把数据给查询出来,然后双击把数据添加到定额表,而定额里面的数据,我们也可以通过新建定额来进行添加。我们如果觉得数据不好还可以把它给删除。
中间人材机的功能有添加,删去,替换,复制、粘贴,上移,下移:复制现有的数据,复制后的数据代号后会有”复制“两字,整数进行区分。然后进行粘贴到最后一行。
//下面的就是定额组成的添加定额
下面就是生成这个界面的html代码
<div id="w添加定额" class="easyui-dialog" title="定额选择" style="width:800px;height:550px;left:70px;top:40px" >
<table>
<tr>
<td>
<table>
<tr>
<input id="combobox" class="easyui-combobox" data-options="onSelect:Todecidetree" style="width:200px" /><br />
</tr>
<div class="easyui-panel" title="章节名称" style="width:200px;height:365px">
<ul id="Tree" class="easyui-tree" data-options="onClick:onClickRowTree">
</ul>
</div>
</table >
<input style="width:200px;height:100px" value="场内配运水泥,,骨料,投料,加水,<br/>
加外加剂,搅拌,出料,清洗"/>
</td>
<td>
<table>
<tr>
<td>
<div class="easyui-tabs" style="width:350px;height:0px">
<div id="Base" title="基础定额" style="padding:10px">
<table>
<tr>
<td>
<table id="BaseToDecidedetailed" class="easyui-datagrid" style="width:350px;height:180px" data-options="onDblClickRow:onClickRowbaseselect,singleSelect:true">
<thead>
<tr>
<th data-options="field:'QuoteCode' ,width:60,align:'center'" >定额号</th>
<th data-options="field:'Name' ,width:120,align:'center'" > 名称</th>
<th data-options="field:'Unit' ,width:60,align:'center'" >单位</th>
<th data-options="field:'buchong' ,width:80,align:'center'" >补充</th>
</tr>
</thead>
</table>
</td>
</tr>
</table>
</div>
<div id="w补充定额" title="补充定额" style="padding:10px">
<table>
<tr>
<td>
<table id="replenish" class="easyui-datagrid" style="width:350px;height:180px" data-options="onDblClickRow:onClickRowreplenishselect,singleSelect:true">
<thead>
<tr>
<th data-options="field:'QuoteNumber' ,width:60,align:'center'" >定额号</th>
<th data-options="field:'Name' ,width:120,align:'center'" > 名称</th>
<th data-options="field:'Unit' ,width:60,align:'center'" >单位</th>
<th data-options="field:'buchong' ,width:60,align:'center'" >补充</th>
</tr>
</thead>
</table>
</td>
</tr>
</table>
</div>
</div>
<td>
<fieldset>
<legend style="color: #3955C1">模糊查询</legend>
关键字:<br />
<input id="Name" /><br />
代号:<input id="Code" /><br />
范围:<br />
<input id="comboboxScope" class="easyui-combobox" id="comboboxScope" /><br />
<input type="checkbox" id="diminquire" />模糊查询<br /><br /><br />
<a onclick="inquirekey()"> <input type="submit" value="查询" /></a>
</fieldset>
</td>
</td>
</tr>
</table>
<table>
<tr>
<td>
<table id="AlreadySelect" class="easyui-datagrid" title="已选择定额" data-options="onClickRow:onClickYIHANG" style=" width:350px;height:180px" >
<thead>
<tr>
<th data-options="field:'bianhao' ,width:60,align:'center'" >编号</th>
<th data-options="field:'mingcheng' ,width:120,align:'center'" > 名称</th>
<th data-options="field:'danwei' ,width:80,align:'center'" >单位</th>
<th data-options="field:'shuliang' ,width:60,align:'center'" >数量</th>
</tr>
</thead>
</table>
</td>
<td style="padding:0px">
<a onclick="RemoveYiHang()" ><input type="submit" value="移除" /></a>
</td>
</tr>
</table>
<a onclick="confirmSelect()"> <input type="submit" value="确定" /></a>
<a onclick="" ><input type="submit" value="取消" /></a>
</td>
</tr>
</table>
</div>
绑定下拉框,html代码
<input id="combobox" class="easyui-combobox" data-options="onSelect:Todecidetree" style="width:200px" /><br />