using ClientLib; using ClientLib.CommonService2; using DevExpress.XtraEditors; 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.Reflection; using System.Text; using System.Threading; using System.Windows.Forms; namespace HANMI_SALE { partial class SelectFinishForm : XtraForm { private string m_ORDER_NO; private int m_LN_SEQ; private string m_OUT_EXT_DATE; private string m_OUT_EXT_TIME; public SelectFinishForm(string order_no, int ln_seq) { InitializeComponent(); m_ORDER_NO = order_no; m_LN_SEQ = ln_seq; m_OUT_EXT_DATE = ""; m_OUT_EXT_TIME = ""; dateEdit_TODAY.DateTime = DateTime.Now.Date; simpleButton1.Click += simpleButton_Time_Click; simpleButton2.Click += simpleButton_Time_Click; simpleButton3.Click += simpleButton_Time_Click; simpleButton4.Click += simpleButton_Time_Click; simpleButton6.Click += simpleButton_Time_Click; simpleButton7.Click += simpleButton_Time_Click; simpleButton8.Click += simpleButton_Time_Click; simpleButton9.Click += simpleButton_Time_Click; simpleButton10.Click += simpleButton_Time_Click; simpleButton11.Click += simpleButton_Time_Click; simpleButton12.Click += simpleButton_Time_Click; simpleButton13.Click += simpleButton_Time_Click; simpleButton14.Click += simpleButton_Time_Click; simpleButton15.Click += simpleButton_Time_Click; simpleButton16.Click += simpleButton_Time_Click; simpleButton17.Click += simpleButton_Time_Click; simpleButton18.Click += simpleButton_Time_Click; simpleButton19.Click += simpleButton_Time_Click; simpleButton20.Click += simpleButton_Time_Click; simpleButton21.Click += simpleButton_Time_Click; simpleButton22.Click += simpleButton_Time_Click; simpleButton23.Click += simpleButton_Time_Click; simpleButton24.Click += simpleButton_Time_Click; simpleButton25.Click += simpleButton_Time_Click; simpleButton26.Click += simpleButton_Time_Click; simpleButton27.Click += simpleButton_Time_Click; simpleButton28.Click += simpleButton_Time_Click; simpleButton29.Click += simpleButton_Time_Click; simpleButton30.Click += simpleButton_Time_Click; simpleButton1.Click += simpleButton_Time_Click; this.Shown += (sender, e) => { }; simpleButton_OK.Click += (sender, e) => { if (m_OUT_EXT_TIME == "") { XtraMessageBox.Show("완료 예상시간을 선택하세요."); return; } try { this.Cursor = Cursors.WaitCursor; SerializedSqlParam[] aParam = new SerializedSqlParam[] { ClientClass.CreateSqlParameter("COMP_CD", SqlDbType.NVarChar, ConstClass._COMP_CD), ClientClass.CreateSqlParameter("ORDER_NO", SqlDbType.NVarChar, m_ORDER_NO), ClientClass.CreateSqlParameter("LN_SEQ", SqlDbType.Int, m_LN_SEQ), ClientClass.CreateSqlParameter("OUT_EXT_DATE", SqlDbType.NVarChar, m_OUT_EXT_DATE), ClientClass.CreateSqlParameter("OUT_EXT_TIME", SqlDbType.NVarChar, m_OUT_EXT_TIME), ClientClass.CreateSqlParameter("REG_ID", SqlDbType.NVarChar, ConstClass._USR_ID) }; ResultData resultData = ClientClass.SetData("SaveFinishTime", aParam); if (resultData.isError) { throw new Exception(resultData.ResultValue); } this.Cursor = Cursors.Arrow; this.DialogResult = DialogResult.Yes; this.Close(); } catch (Exception ex) { this.Cursor = Cursors.Arrow; XtraMessageBox.Show(ex.Message); } }; simpleButton_Cancel.Click += (sender, e) => { this.DialogResult = DialogResult.Cancel; this.Close(); }; } private void simpleButton_Time_Click(object sender, EventArgs e) { m_OUT_EXT_DATE = dateEdit_TODAY.DateTime.ToString("yyyy-MM-dd"); m_OUT_EXT_TIME = (sender as SimpleButton).Text; labelControl_TIME.Text = m_OUT_EXT_TIME; } } }