| 
									
										
										
										
											2024-03-22 09:59:23 +08:00
										 |  |  |  |  | 
					
						
							|  |  |  |  | /// <summary> | 
					
						
							|  |  |  |  | ///INTERFACE CLASS FOR TABLE t_wmsDeskCustomer | 
					
						
							|  |  |  |  | ///By wm   | 
					
						
							|  |  |  |  | ///on 07/21/2019 | 
					
						
							|  |  |  |  | /// </summary> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | using System; | 
					
						
							|  |  |  |  | using System.Collections.Generic; | 
					
						
							|  |  |  |  | using System.Linq; | 
					
						
							|  |  |  |  | using System.Text; | 
					
						
							|  |  |  |  | using System.Data; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | namespace DeiNiu.wms.Data.Model | 
					
						
							|  |  |  |  | { | 
					
						
							|  |  |  |  |     [Serializable] | 
					
						
							|  |  |  |  |     public class WmsDeskCustomer : WmsDeskCustomer_base | 
					
						
							|  |  |  |  |     { | 
					
						
							|  |  |  |  |         public WmsDeskCustomer() | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         } | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         public WmsDeskCustomer(int id): base(id) | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         } | 
					
						
							|  |  |  |  |         public WmsDeskCustomer(DataRow dr): base(dr) | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         } | 
					
						
							|  |  |  |  |       protected override void getImp() | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  |             model_imp = new WmsDeskCustomer_Imp();   | 
					
						
							|  |  |  |  |         } | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         //begin cust db operation, query, excute sql etc. | 
					
						
							|  |  |  |  |         public DataSet QueryByName(string name) | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  |             cmdParameters[0] = name; | 
					
						
							|  |  |  |  |             return  CustQuery(100); | 
					
						
							|  |  |  |  |         } | 
					
						
							|  |  |  |  |         public void getByCustNameDesk(int deskId, string custName) | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  |             cmdParameters[0] = custName; | 
					
						
							|  |  |  |  |             cmdParameters[1] = deskId; | 
					
						
							|  |  |  |  |             DataTable dt = CustQuery(300).Tables[0]; | 
					
						
							|  |  |  |  |             foreach(DataRow dr in dt.Rows){ | 
					
						
							|  |  |  |  |                 getModel(dr); | 
					
						
							|  |  |  |  |                 break; | 
					
						
							|  |  |  |  |             } | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         } | 
					
						
							|  |  |  |  |        public   void trunckData() | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  |             CustOper(101); | 
					
						
							|  |  |  |  |         } | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         public int updatePorts(int deskId, int portNo, int startId, int endId) | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  |             cmdParameters[0] = deskId; | 
					
						
							|  |  |  |  |             cmdParameters[1] = portNo; | 
					
						
							|  |  |  |  |             cmdParameters[2] = startId; | 
					
						
							|  |  |  |  |             cmdParameters[3] = endId; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |             if (startId ==0 && startId == endId) | 
					
						
							|  |  |  |  |                  return CustOper(200); | 
					
						
							|  |  |  |  |             else | 
					
						
							|  |  |  |  |                 return CustOper(201); | 
					
						
							|  |  |  |  |         } | 
					
						
							| 
									
										
										
										
											2024-05-27 10:40:32 +08:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  |         public   string toFlowNo | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  |             get | 
					
						
							|  |  |  |  |             { | 
					
						
							|  |  |  |  |                 return string.IsNullOrEmpty(_flowNo)?_id+"":_flowNo; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |             } | 
					
						
							|  |  |  |  |         } | 
					
						
							| 
									
										
										
										
											2024-03-22 09:59:23 +08:00
										 |  |  |  |     } | 
					
						
							|  |  |  |  | } | 
					
						
							|  |  |  |  |   |