|
@@ -2,87 +2,87 @@
|
|
<select>
|
|
<select>
|
|
<selectstr>
|
|
<selectstr>
|
|
SELECT
|
|
SELECT
|
|
- bednetid,
|
|
|
|
|
|
+ u_bednet.bednetid,
|
|
u_bednet.deptid,
|
|
u_bednet.deptid,
|
|
- flag,
|
|
|
|
- bednetcode,
|
|
|
|
- bednetname,
|
|
|
|
- bednettypeid,
|
|
|
|
- mattress_width,
|
|
|
|
- mattress_length,
|
|
|
|
- mattress_height,
|
|
|
|
- if_doublenet,
|
|
|
|
- if_doublespring,
|
|
|
|
- snake_wire_diameter,
|
|
|
|
- snake_wire_mtrl_formula,
|
|
|
|
- snake_wire_mtrl_cost,
|
|
|
|
- pocket_around_spring_formula,
|
|
|
|
- pocket_around_spring_cost,
|
|
|
|
- pocket_around_fabrics_formula,
|
|
|
|
- pocket_around_fabrics_cost,
|
|
|
|
- hard_around_mtrl_formula,
|
|
|
|
- hard_around_mtrl_cost,
|
|
|
|
- hard_around_hr_formula,
|
|
|
|
- hard_around_hr_cost,
|
|
|
|
- spring_mtrl_cost,
|
|
|
|
- spring_hr_cost,
|
|
|
|
- glue_price,
|
|
|
|
- glue_mtrl_formula,
|
|
|
|
- glue_mtrl_cost,
|
|
|
|
- fabrics1_mtrl_formula,
|
|
|
|
- fabrics1_mtrl_cost,
|
|
|
|
- fabrics2_mtrl_formula,
|
|
|
|
- fabrics2_mtrl_cost,
|
|
|
|
- if_side_iron,
|
|
|
|
- side_iron_lossrate,
|
|
|
|
- side_iron_price,
|
|
|
|
- side_iron_mtrl_formula,
|
|
|
|
- side_iron_mtrl_cost,
|
|
|
|
- side_iron_hr_formula,
|
|
|
|
- side_iron_hr_cost,
|
|
|
|
- cnail_price,
|
|
|
|
- cnail_mtrl_formula,
|
|
|
|
- cnail_mtrl_cost,
|
|
|
|
- cnail_hr_formula,
|
|
|
|
- cnail_hr_cost,
|
|
|
|
- sponge_mtrlid,
|
|
|
|
- sponge_thickness,
|
|
|
|
- sponge_height,
|
|
|
|
- sponge_price,
|
|
|
|
- sponge_mtrl_formula,
|
|
|
|
- sponge_mtrl_cost,
|
|
|
|
- sponge_hr_formula,
|
|
|
|
- sponge_hr_cost,
|
|
|
|
- sponge_tc_mtrlid,
|
|
|
|
- sponge_tc_thickness,
|
|
|
|
- sponge_tc_height,
|
|
|
|
- edge_mtrlid,
|
|
|
|
- edge_price,
|
|
|
|
- edge_mtrl_formula,
|
|
|
|
- edge_mtrl_cost,
|
|
|
|
- edge_hr_formula,
|
|
|
|
- edge_hr_cost,
|
|
|
|
- edge_height,
|
|
|
|
- iffork,
|
|
|
|
- fork_qty,
|
|
|
|
- fork_price,
|
|
|
|
- fork_mtrl_formula,
|
|
|
|
- fork_mtrl_cost,
|
|
|
|
- fork_hr_formula,
|
|
|
|
- fork_hr_cost,
|
|
|
|
- if_rsORwa,
|
|
|
|
- rsORwa_price,
|
|
|
|
- rsORwa_mtrl_formula,
|
|
|
|
- rsORwa_mtrl_cost,
|
|
|
|
- rsORwa_hr_formula,
|
|
|
|
- rsORwa_hr_cost,
|
|
|
|
- if_sponge_drilling,
|
|
|
|
- sponge_drilling_hr_formula,
|
|
|
|
- sponge_drilling_hr_cost,
|
|
|
|
- total_hr_cost,
|
|
|
|
- total_mtrl_cost ,
|
|
|
|
- total_fees_cost,
|
|
|
|
- total_cost,
|
|
|
|
|
|
+ u_bednet.flag,
|
|
|
|
+ u_bednet.bednetcode,
|
|
|
|
+ u_bednet.bednetname,
|
|
|
|
+ u_bednet.bednettypeid,
|
|
|
|
+ u_bednet.mattress_width,
|
|
|
|
+ u_bednet.mattress_length,
|
|
|
|
+ u_bednet.mattress_height,
|
|
|
|
+ u_bednet.if_doublenet,
|
|
|
|
+ u_bednet.if_doublespring,
|
|
|
|
+ u_bednet.snake_wire_diameter,
|
|
|
|
+ u_bednet.snake_wire_mtrl_formula,
|
|
|
|
+ u_bednet.snake_wire_mtrl_cost,
|
|
|
|
+ u_bednet.pocket_around_spring_formula,
|
|
|
|
+ u_bednet.pocket_around_spring_cost,
|
|
|
|
+ u_bednet.pocket_around_fabrics_formula,
|
|
|
|
+ u_bednet.pocket_around_fabrics_cost,
|
|
|
|
+ u_bednet.hard_around_mtrl_formula,
|
|
|
|
+ u_bednet.hard_around_mtrl_cost,
|
|
|
|
+ u_bednet.hard_around_hr_formula,
|
|
|
|
+ u_bednet.hard_around_hr_cost,
|
|
|
|
+ u_bednet.spring_mtrl_cost,
|
|
|
|
+ u_bednet.spring_hr_cost,
|
|
|
|
+ u_bednet.glue_price,
|
|
|
|
+ u_bednet.glue_mtrl_formula,
|
|
|
|
+ u_bednet.glue_mtrl_cost,
|
|
|
|
+ u_bednet.fabrics1_mtrl_formula,
|
|
|
|
+ u_bednet.fabrics1_mtrl_cost,
|
|
|
|
+ u_bednet.fabrics2_mtrl_formula,
|
|
|
|
+ u_bednet.fabrics2_mtrl_cost,
|
|
|
|
+ u_bednet.if_side_iron,
|
|
|
|
+ u_bednet.side_iron_lossrate,
|
|
|
|
+ u_bednet.side_iron_price,
|
|
|
|
+ u_bednet.side_iron_mtrl_formula,
|
|
|
|
+ u_bednet.side_iron_mtrl_cost,
|
|
|
|
+ u_bednet.side_iron_hr_formula,
|
|
|
|
+ u_bednet.side_iron_hr_cost,
|
|
|
|
+ u_bednet.cnail_price,
|
|
|
|
+ u_bednet.cnail_mtrl_formula,
|
|
|
|
+ u_bednet.cnail_mtrl_cost,
|
|
|
|
+ u_bednet.cnail_hr_formula,
|
|
|
|
+ u_bednet.cnail_hr_cost,
|
|
|
|
+ u_bednet.sponge_mtrlid,
|
|
|
|
+ u_bednet.sponge_thickness,
|
|
|
|
+ u_bednet.sponge_height,
|
|
|
|
+ u_bednet.sponge_price,
|
|
|
|
+ u_bednet.sponge_mtrl_formula,
|
|
|
|
+ u_bednet.sponge_mtrl_cost,
|
|
|
|
+ u_bednet.sponge_hr_formula,
|
|
|
|
+ u_bednet.sponge_hr_cost,
|
|
|
|
+ u_bednet.sponge_tc_mtrlid,
|
|
|
|
+ u_bednet.sponge_tc_thickness,
|
|
|
|
+ u_bednet.sponge_tc_height,
|
|
|
|
+ u_bednet.edge_mtrlid,
|
|
|
|
+ u_bednet.edge_price,
|
|
|
|
+ u_bednet.edge_mtrl_formula,
|
|
|
|
+ u_bednet.edge_mtrl_cost,
|
|
|
|
+ u_bednet.edge_hr_formula,
|
|
|
|
+ u_bednet.edge_hr_cost,
|
|
|
|
+ u_bednet.edge_height,
|
|
|
|
+ u_bednet.iffork,
|
|
|
|
+ u_bednet.fork_qty,
|
|
|
|
+ u_bednet.fork_price,
|
|
|
|
+ u_bednet.fork_mtrl_formula,
|
|
|
|
+ u_bednet.fork_mtrl_cost,
|
|
|
|
+ u_bednet.fork_hr_formula,
|
|
|
|
+ u_bednet.fork_hr_cost,
|
|
|
|
+ u_bednet.if_rsORwa,
|
|
|
|
+ u_bednet.rsORwa_price,
|
|
|
|
+ u_bednet.rsORwa_mtrl_formula,
|
|
|
|
+ u_bednet.rsORwa_mtrl_cost,
|
|
|
|
+ u_bednet.rsORwa_hr_formula,
|
|
|
|
+ u_bednet.rsORwa_hr_cost,
|
|
|
|
+ u_bednet.if_sponge_drilling,
|
|
|
|
+ u_bednet.sponge_drilling_hr_formula,
|
|
|
|
+ u_bednet.sponge_drilling_hr_cost,
|
|
|
|
+ u_bednet.total_hr_cost,
|
|
|
|
+ u_bednet.total_mtrl_cost ,
|
|
|
|
+ u_bednet.total_fees_cost,
|
|
|
|
+ u_bednet.total_cost,
|
|
u_bednet.createtime as createtime ,
|
|
u_bednet.createtime as createtime ,
|
|
u_bednet.createby as createby,
|
|
u_bednet.createby as createby,
|
|
u_mtrl_sponge.name as mtrl_sponge_name,
|
|
u_mtrl_sponge.name as mtrl_sponge_name,
|
|
@@ -90,49 +90,51 @@
|
|
u_mtrl_edge.name as mtrl_edge_name,
|
|
u_mtrl_edge.name as mtrl_edge_name,
|
|
u_mtrl_felt.name as mtrl_felt_name,
|
|
u_mtrl_felt.name as mtrl_felt_name,
|
|
u_mtrl_felt_x.name as mtrl_felt_x_name,
|
|
u_mtrl_felt_x.name as mtrl_felt_x_name,
|
|
- felt_mtrlid,
|
|
|
|
- felt_x_mtrlid,
|
|
|
|
- nottax_factory_cost,
|
|
|
|
- nottax_dept_cost,
|
|
|
|
- dept_cost,
|
|
|
|
- foreign_cost,
|
|
|
|
- sum_weight,
|
|
|
|
|
|
+ u_bednet.felt_mtrlid,
|
|
|
|
+ u_bednet.felt_x_mtrlid,
|
|
|
|
+ u_bednet.nottax_factory_cost,
|
|
|
|
+ u_bednet.nottax_dept_cost,
|
|
|
|
+ u_bednet.dept_cost,
|
|
|
|
+ u_bednet.foreign_cost,
|
|
|
|
+ u_bednet.sum_weight,
|
|
total_cost - sponge_mtrl_cost - felt_mtrl_cost - felt_mtrl_x_cost - packet_mtrl_cost - packet_hr_cost as planprice,
|
|
total_cost - sponge_mtrl_cost - felt_mtrl_cost - felt_mtrl_x_cost - packet_mtrl_cost - packet_hr_cost as planprice,
|
|
- ifsaleout,
|
|
|
|
- duo_qv_str,
|
|
|
|
- if_jb,
|
|
|
|
- felt_qty,
|
|
|
|
- felt_x_qty,
|
|
|
|
- felt_dscrp,
|
|
|
|
- extras_cost_dscrp,
|
|
|
|
- packtype,
|
|
|
|
- packqty,
|
|
|
|
- packmtrl,
|
|
|
|
- transport_type,
|
|
|
|
- commission,
|
|
|
|
- other_rate,
|
|
|
|
- fob,
|
|
|
|
- taxrate,
|
|
|
|
- extras_cost,
|
|
|
|
- moneyrate,
|
|
|
|
- spring_hr_formula,
|
|
|
|
- cnail_weight_formula,
|
|
|
|
- edge_weight_formula,
|
|
|
|
- fabrics1_weight_formula,
|
|
|
|
- fabrics2_weight_formula,
|
|
|
|
- felt_hr_formula,
|
|
|
|
- felt_mtrl_formula,
|
|
|
|
- felt_weight_formula,
|
|
|
|
- fork_weight_formula,
|
|
|
|
- hard_around_weight_formula,
|
|
|
|
- packet_hr_formula,
|
|
|
|
- packet_mtrl_formula,
|
|
|
|
- side_iron_weight_formula,
|
|
|
|
- sponge_mtrl_tc_formula,
|
|
|
|
- sponge_weight_formula,
|
|
|
|
- sponge_weight_tc_formula,
|
|
|
|
- spring_mtrl_formula,
|
|
|
|
- spring_weight_formula
|
|
|
|
|
|
+ u_bednet.ifsaleout,
|
|
|
|
+ u_bednet.duo_qv_str,
|
|
|
|
+ u_bednet.if_jb,
|
|
|
|
+ u_bednet.felt_qty,
|
|
|
|
+ u_bednet.felt_x_qty,
|
|
|
|
+ u_bednet.felt_dscrp,
|
|
|
|
+ u_bednet.extras_cost_dscrp,
|
|
|
|
+ u_bednet.packtype,
|
|
|
|
+ u_bednet.packqty,
|
|
|
|
+ u_bednet.packmtrl,
|
|
|
|
+ u_bednet.transport_type,
|
|
|
|
+ u_bednet.commission,
|
|
|
|
+ u_bednet.other_rate,
|
|
|
|
+ u_bednet.fob,
|
|
|
|
+ u_bednet.taxrate,
|
|
|
|
+ u_bednet.extras_cost,
|
|
|
|
+ u_bednet.moneyrate,
|
|
|
|
+ u_bednet.spring_hr_formula,
|
|
|
|
+ u_bednet.cnail_weight_formula,
|
|
|
|
+ u_bednet.edge_weight_formula,
|
|
|
|
+ u_bednet.fabrics1_weight_formula,
|
|
|
|
+ u_bednet.fabrics2_weight_formula,
|
|
|
|
+ u_bednet.felt_hr_formula,
|
|
|
|
+ u_bednet.felt_mtrl_formula,
|
|
|
|
+ u_bednet.felt_weight_formula,
|
|
|
|
+ u_bednet.fork_weight_formula,
|
|
|
|
+ u_bednet.hard_around_weight_formula,
|
|
|
|
+ u_bednet.packet_hr_formula,
|
|
|
|
+ u_bednet.packet_mtrl_formula,
|
|
|
|
+ u_bednet.side_iron_weight_formula,
|
|
|
|
+ u_bednet.sponge_mtrl_tc_formula,
|
|
|
|
+ u_bednet.sponge_weight_formula,
|
|
|
|
+ u_bednet.sponge_weight_tc_formula,
|
|
|
|
+ u_bednet.spring_mtrl_formula,
|
|
|
|
+ u_bednet.spring_weight_formula,
|
|
|
|
+ u_bednet_type.if_pocket_around,
|
|
|
|
+ u_bednet_type.if_hard_around
|
|
|
|
|
|
From u_bednet
|
|
From u_bednet
|
|
left join u_mtrl_price u_mtrl_sponge on u_bednet.sponge_mtrlid=u_mtrl_sponge.mtrlid
|
|
left join u_mtrl_price u_mtrl_sponge on u_bednet.sponge_mtrlid=u_mtrl_sponge.mtrlid
|
|
@@ -140,6 +142,7 @@
|
|
left join u_mtrl_price u_mtrl_edge on u_bednet.edge_mtrlid=u_mtrl_edge.mtrlid
|
|
left join u_mtrl_price u_mtrl_edge on u_bednet.edge_mtrlid=u_mtrl_edge.mtrlid
|
|
left join u_mtrl_price u_mtrl_felt on u_bednet.felt_mtrlid=u_mtrl_felt.mtrlid
|
|
left join u_mtrl_price u_mtrl_felt on u_bednet.felt_mtrlid=u_mtrl_felt.mtrlid
|
|
left join u_mtrl_price u_mtrl_felt_x on u_bednet.felt_x_mtrlid=u_mtrl_felt_x.mtrlid
|
|
left join u_mtrl_price u_mtrl_felt_x on u_bednet.felt_x_mtrlid=u_mtrl_felt_x.mtrlid
|
|
|
|
+ inner join u_bednet_type on u_bednet_type.bednettypeid = u_bednet.bednettypeid
|
|
</selectstr>
|
|
</selectstr>
|
|
<where>
|
|
<where>
|
|
<when notnull="@arg_bednetid">
|
|
<when notnull="@arg_bednetid">
|