| 
									
										
										
										
											2023-05-23 16:13:17 +08:00
										 |  |  |  | using System; | 
					
						
							|  |  |  |  | using System.Collections.Generic; | 
					
						
							|  |  |  |  | using System.Linq; | 
					
						
							|  |  |  |  | using System.Runtime.Serialization; | 
					
						
							|  |  |  |  | using System.ServiceModel; | 
					
						
							|  |  |  |  | using System.Text; | 
					
						
							|  |  |  |  | using System.Data; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | namespace DeiNiu.Wcf | 
					
						
							|  |  |  |  | { | 
					
						
							|  |  |  |  |     // 注意: 使用“重构”菜单上的“重命名”命令,可以同时更改代码和配置文件中的接口名“ITMService”。 | 
					
						
							|  |  |  |  |     [ServiceContract] | 
					
						
							|  |  |  |  |     public interface ITMService | 
					
						
							|  |  |  |  |     { | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         DataSet Query(string querystr, int rownumStart, int rownumEnd); | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         DataSet getAvalibleCusts(int lineId, string custName, int startPage, int endPage); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         DataTable getLineCust(int lineNo); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         DataTable getLines(string custName); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         bool addLineCust(int lineNo,string custId,int order); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         bool updateLineCustOrder(int lineId, int detailId, int orderOld, int orderNew); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         bool removeCust(int lineDetailId); | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         bool reOrderLine(int lineId); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         DataSet queryPickRequests(string query,int rownumStart,int rownumEnd); | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         DataTable queryPickRequests4Report(string pickOrderNo); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         DataTable getFreeViechles(); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         //[OperationContract] | 
					
						
							|  |  |  |  |       //  string creatTrans(string[] pickOrders, string orderNo,int thirdPart,int status, int lineId, string viechle, int tranType, int person,string contact,string phone, string description); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         string creatTrans(string[] pickOrders,wcfTranRequest tran); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         DataSet getPickRequestDetail(string pickRequest); | 
					
						
							|  |  |  |  |         | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         DataTable getTransRequests(int tranStatus); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         bool updateTranStatus(string transOrder,int status,string mem); | 
					
						
							|  |  |  |  |       | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         DataTable getTranRequestDetail(string tranNo);    | 
					
						
							|  |  |  |  |         | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         DataTable getTmsStockBulkDetail(string pickOrerNo); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         int updatePickInvoice(string pickOrderNo,string invoiceNo); | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         int deletTmsRec(string pickOrderNo); | 
					
						
							| 
									
										
										
										
											2023-11-21 19:18:23 +08:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  |         [OperationContract] DataTable getLatestPickRequestsByViechole(string plateId); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-05-23 16:13:17 +08:00
										 |  |  |  |     } | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |     [DataContract] | 
					
						
							|  |  |  |  |     public class wcfTranRequest | 
					
						
							|  |  |  |  |     { | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         internal int _id; | 
					
						
							|  |  |  |  |         internal string _transNo = String.Empty; | 
					
						
							|  |  |  |  |         internal int _lineId; | 
					
						
							|  |  |  |  |         internal int _tranType; | 
					
						
							|  |  |  |  |         internal string _viechleNo = String.Empty; | 
					
						
							|  |  |  |  |         internal string _contact = String.Empty; | 
					
						
							|  |  |  |  |         internal int _driver; | 
					
						
							|  |  |  |  |         internal string _phone = String.Empty; | 
					
						
							|  |  |  |  |         internal int _state; | 
					
						
							|  |  |  |  |         internal string _description = String.Empty; | 
					
						
							|  |  |  |  |         internal int _thirdPart; | 
					
						
							|  |  |  |  |         internal decimal _sumVol; | 
					
						
							|  |  |  |  |         internal decimal _sumWeight; | 
					
						
							|  |  |  |  |         internal int _boxCnt; | 
					
						
							|  |  |  |  |         internal int _bulkBox; | 
					
						
							|  |  |  |  |         internal int _bulkBag; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         public wcfTranRequest() | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  |         } | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         #region Public Properties | 
					
						
							|  |  |  |  |         [DataMember] | 
					
						
							|  |  |  |  |         public int id | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  |             get { return _id; } | 
					
						
							|  |  |  |  |             set { _id = value; } | 
					
						
							|  |  |  |  |         } | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         [DataMember] | 
					
						
							|  |  |  |  |         public string transNo | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  |             get { return _transNo; } | 
					
						
							|  |  |  |  |             set { _transNo = value; } | 
					
						
							|  |  |  |  |         } | 
					
						
							|  |  |  |  |         [DataMember] | 
					
						
							|  |  |  |  |         public int lineId | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  |             get { return _lineId; } | 
					
						
							|  |  |  |  |             set { _lineId = value; } | 
					
						
							|  |  |  |  |         } | 
					
						
							|  |  |  |  |         [DataMember] | 
					
						
							|  |  |  |  |         public int tranType | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  |             get { return _tranType; } | 
					
						
							|  |  |  |  |             set { _tranType = value; } | 
					
						
							|  |  |  |  |         } | 
					
						
							|  |  |  |  |         [DataMember] | 
					
						
							|  |  |  |  |         public string viechleNo | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  |             get { return _viechleNo; } | 
					
						
							|  |  |  |  |             set { _viechleNo = value; } | 
					
						
							|  |  |  |  |         } | 
					
						
							|  |  |  |  |         [DataMember] | 
					
						
							|  |  |  |  |         public string contact | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  |             get { return _contact; } | 
					
						
							|  |  |  |  |             set { _contact = value; } | 
					
						
							|  |  |  |  |         } | 
					
						
							|  |  |  |  |           [DataMember] | 
					
						
							|  |  |  |  |         public int driver | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  |             get { return _driver; } | 
					
						
							|  |  |  |  |             set { _driver = value; } | 
					
						
							|  |  |  |  |         } | 
					
						
							|  |  |  |  |         [DataMember] | 
					
						
							|  |  |  |  |         public string phone | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  |             get { return _phone; } | 
					
						
							|  |  |  |  |             set { _phone = value; } | 
					
						
							|  |  |  |  |         } | 
					
						
							|  |  |  |  |         [DataMember] | 
					
						
							|  |  |  |  |         public int state | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  |             get { return _state; } | 
					
						
							|  |  |  |  |             set { _state = value; } | 
					
						
							|  |  |  |  |         } | 
					
						
							|  |  |  |  |         [DataMember] | 
					
						
							|  |  |  |  |         public string description | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  |             get { return _description; } | 
					
						
							|  |  |  |  |             set { _description = value; } | 
					
						
							|  |  |  |  |         } | 
					
						
							|  |  |  |  |         [DataMember] | 
					
						
							|  |  |  |  |         public int thirdPart | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  |             get { return _thirdPart; } | 
					
						
							|  |  |  |  |             set { _thirdPart = value; } | 
					
						
							|  |  |  |  |         } | 
					
						
							|  |  |  |  |         [DataMember] | 
					
						
							|  |  |  |  |         public decimal sumVol | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  |             get { return _sumVol; } | 
					
						
							|  |  |  |  |             set { _sumVol = value; } | 
					
						
							|  |  |  |  |         } | 
					
						
							|  |  |  |  |         [DataMember] | 
					
						
							|  |  |  |  |         public decimal sumWeight | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  |             get { return _sumWeight; } | 
					
						
							|  |  |  |  |             set { _sumWeight = value; } | 
					
						
							|  |  |  |  |         } | 
					
						
							|  |  |  |  |         [DataMember] | 
					
						
							|  |  |  |  |         public int boxCnt | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  |             get { return _boxCnt; } | 
					
						
							|  |  |  |  |             set { _boxCnt = value; } | 
					
						
							|  |  |  |  |         } | 
					
						
							|  |  |  |  |         [DataMember] | 
					
						
							|  |  |  |  |         public int bulkBox | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  |             get { return _bulkBox; } | 
					
						
							|  |  |  |  |             set { _bulkBox = value; } | 
					
						
							|  |  |  |  |         } | 
					
						
							|  |  |  |  |         [DataMember] | 
					
						
							|  |  |  |  |         public int bulkBag | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  |             get { return _bulkBag; } | 
					
						
							|  |  |  |  |             set { _bulkBag = value; } | 
					
						
							|  |  |  |  |         } | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         #endregion | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |     } | 
					
						
							|  |  |  |  | 	 | 
					
						
							|  |  |  |  | } |