using ClientLib; using ClientLib.CommonService; using DevExpress.XtraEditors; using DevExpress.XtraTreeList; using DevExpress.XtraTreeList.Nodes; using PublicLib; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Linq; using System.Text; using System.Windows.Forms; namespace HANMI_WORK { public partial class POPWorkExec : CommonMDI { public POPWorkExec() { InitializeComponent(); this.Shown += (sender, e) => { searchProc(); }; } public override void searchProc() { try { this.Cursor = Cursors.WaitCursor; SerializedSqlParam[] aParam = new SerializedSqlParam[] { ClientClass.CreateSqlParameter("COMP_CD", SqlDbType.NVarChar, ConstClass._COMP_CD), ClientClass.CreateSqlParameter("WORK_DATE", SqlDbType.NVarChar, "2018-11-16"), }; ResultData result = ClientClass.GetData("GetPOPWorkOrder", aParam); if (result.isError) { throw new Exception(result.ResultValue); } ClearBinding(true, panelControl_Data); textEdit_WORK_NO.DataBindings.Add("Text", result.TableData, "WORK_NO"); textEdit_CUST_NM.DataBindings.Add("Text", result.TableData, "CUST_NM"); textEdit_FILE_NM.DataBindings.Add("Text", result.TableData, "FILE_NM"); textEdit_ITEM_NM.DataBindings.Add("Text", result.TableData, "ITEM_NM"); textEdit_WORK_QTY.Text = "1000"; this.Cursor = Cursors.Arrow; } catch (Exception ex) { this.Cursor = Cursors.Arrow; MessageBox.Show(ex.Message); } } } }