| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Data;
- namespace Core.StlMes.Client.Sale.BLL.SaleBusinessMgt.SqlCollection
- {
- public class Plan
- {
- public static String QUERY_ORDER_DLIV = @"select a.order_no,
- min(b.customer_no) customer_no,
- min(b.forecorpcode) forecorpcode,
- TRANSIT_TYP,
- region_no,
- destination,
- station_no,
- spcl_ln_no,
- isownedcar,
- isshipping,
- port_no,
- port_desc,
- carrier_unit,
- inceptcorpcode,
- sum(a.order_qty) order_qty,
- sum(a.weight) weight
- from slm_order_line a
- join slm_order_head b on a.order_no = b.order_no
- join slm_order_delivery_transit c on a.order_no = c.order_no
- and a.order_seq = c.order_seq
- where 1 = 1 {0}
- group by a.order_no,
- TRANSIT_TYP,
- region_no,
- destination,
- station_no,
- spcl_ln_no,
- isownedcar,
- isshipping,
- port_no,
- port_desc,
- carrier_unit,
- inceptcorpcode
- ";
- public static string QUERY_SLM_DLIV_DIR = @"select
- dliv_dirno,
- forecorpcode,
- customer_no,
- plandate,
- transport_num,
- transit_typ,
- get_on_pcd,
- quantity,
- weight,
- trans_car_no,
- ship_no,
- destination,
- station_no,
- station_nm,
- spcl_ln_no,
- spcl_ln_nm,
- isshipping,
- port_no,
- port_desc,
- inceptcorpcode,
- reinceptcorp,
- receivor,
- carrier_unit,
- phonecode,
- driveridcard,
- dliv_prog_cd,
- isout,
- printstatus,
- tranprtstatus,
- to_char(dliv_rollbacktime,'{1}') dliv_rollbacktime,
- dliv_rollbackname,
- validflag,
- create_name,
- to_char(create_time,'{1}') create_time,
- update_name,
- to_char(update_time,'{1}') update_time,
- delete_name,
- to_char(delete_time,'{1}') delete_time
- from slm_dliv_dir where 1= 1 {0} ";
- public static string QUERY_SLM_DELV_DIR_DETAIL = @"select
- dliv_dirno,
- seq,
- order_no,
- order_seq,
- height,
- width,
- length,
- prod_line,
- producname,
- spec_abbsym,
- steel_code,
- used_cd,
- prdnm_cd,
- quantity,
- weight,
- price,
- money,
- transmoney,
- deduct_flag,
- to_char(deduct_date,'{1}') deduct_date,
- to_char(refund_back,'{1}') refund_back,
- ship_dliv_prog_cd,
- create_name,
- to_char(create_time,'{1}') create_time,
- update_name,
- to_char(update_time,'{1}') update_time,
- from slm_dliv_dir_detail where 1 = 1 ";
- public static string QUERY_SEND_INFO = @"select b.order_ln_status,
- b.order_no,
- b.order_seq,
- c.prod_line,
- c.steel_code,
- b.height,
- b.width,
- b.length,
- b.weight,
- d.station_no,
- d.port_no,
- d.inceptcorpcode,
- a.customer_no,
- b.order_qty,
- b.fixsize,
- b.delvry_bdate,
- b.memo,
- a.order_bdate,
- a.order_edate
- from slm_order_head a
- join slm_order_line b
- on a.order_no = b.order_no
- join slm_order_prod c
- on b.order_no = c.order_no
- and b.order_seq = c.order_seq
- join slm_order_delivery_transit d
- on b.order_no = d.order_no
- and b.order_seq = d.order_seq
- where 1 = 1 {0}";
- public static string QUERY_SHIPNOAPPLYRINPUT = @"select transport_num,
- to_char(transmonth,'yyyy-mm') transmonth,
- transit_typ,
- wagon_no,
- quantity,
- weight,
- load_wgt,
- slab_wgt,
- destination,
- station_no,
- port_no,
- port_desc,
- carrier_unit,
- contact_name,
- contact_phone,
- scheme_no,
- remark,
- validflag,
- create_name,
- to_char(create_time,'{1}') create_time,
- update_name,
- to_char(update_time,'{1}') update_time,
- delete_name,
- to_char(delete_time,'{1}') delete_time
- from slm_dliv_shipapply_result
- where 1 = 1 {0}";
-
- }
- }
|