| using System; | 
| using System.Collections.Generic; | 
| using System.ComponentModel; | 
| using System.Data; | 
| using System.Drawing; | 
| using System.Text; | 
| using System.Windows.Forms; | 
|   | 
| namespace APSM | 
| { | 
|     public partial class K3_ICMOSetWorkCenterList_OrderLevDlg : Form | 
|     { | 
|         public Int64 HOrderLevID = 0; | 
|         public int IsOk=0; | 
|         public K3_ICMOSetWorkCenterList_OrderLevDlg() | 
|         { | 
|             InitializeComponent(); | 
|         } | 
|   | 
|         private void cmdHOrderLevID_Click(object sender, EventArgs e) | 
|         { | 
|             DAL.ClsGy_OrderLev_View oOrder = new DAL.ClsGy_OrderLev_View(); | 
|             if (oOrder.RefreshView()) | 
|             { | 
|                 this.txtHOrderLevID.Text = oOrder.oModel.HName; | 
|                 this.txtHOrderLevID.Tag = oOrder.oModel.HItemID.ToString(); | 
|             } | 
|             else | 
|             { | 
|                 this.txtHOrderLevID.Text = ""; | 
|                 this.txtHOrderLevID.Tag = "0"; | 
|             } | 
|         } | 
|   | 
|         private void txtHOrderLevID_TextChanged(object sender, EventArgs e) | 
|         { | 
|             if (txtHOrderLevID.Text.Trim() == "") | 
|             { | 
|                 txtHOrderLevID.Tag = "0"; | 
|             } | 
|         } | 
|   | 
|         private void qr_Click(object sender, EventArgs e) | 
|         { | 
|             HOrderLevID =DBUtility.ClsPub.isLong( txtHOrderLevID.Tag); | 
|             IsOk = 1; | 
|             this.Close(); | 
|         } | 
|   | 
|         private void qx_Click(object sender, EventArgs e) | 
|         { | 
|             this.Close(); | 
|         } | 
|     } | 
| } |