51 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C#
		
	
	
	
			
		
		
	
	
			51 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C#
		
	
	
	
| using System;
 | |
| using System.Linq;
 | |
| using System.Collections.Generic;
 | |
| using System.ComponentModel;
 | |
| using System.Data;
 | |
| using System.Drawing;
 | |
| using System.Text;
 | |
| using System.Windows.Forms;
 | |
| 
 | |
| namespace DeiNiu.Wms.CE.forms
 | |
| {
 | |
|     public partial class combinEleId : basicForm
 | |
|     {
 | |
|         public combinEleId()
 | |
|         {
 | |
|             InitializeComponent();
 | |
|         }
 | |
| 
 | |
|         private void txtLocationid_KeyUp(object sender, KeyEventArgs e)
 | |
|         {
 | |
|             if (e.KeyCode != Keys.Enter)
 | |
|             {
 | |
|                 return;
 | |
|             }
 | |
| 
 | |
|             try
 | |
|             {
 | |
|                 string locId = txtLocationid.Text;
 | |
| 
 | |
|                 int eleId = Convert.ToInt16(txtEleId.Text);
 | |
|                 int cnt =    client.locationEleIdCombine(locId, eleId, LoginInfo.UserId, LoginInfo.Token);
 | |
|                 lbResult.Text = " updated " + cnt;
 | |
|                 if (cnt > 0)
 | |
|                 {
 | |
|                     eleId++;
 | |
|                     txtEleId.Text = eleId+"";
 | |
| 
 | |
|                 }
 | |
|                 txtLocationid.SelectAll();
 | |
|                 txtLocationid.Focus();
 | |
|                
 | |
|             }
 | |
|             catch (Exception er)
 | |
|             {
 | |
|                 showErrorMsg(er);
 | |
|             }
 | |
| 
 | |
| 
 | |
|         }
 | |
|     }
 | |
| } |