using System; using System.Drawing; using System.Collections; using System.ComponentModel; using DevExpress.XtraReports.UI; using PublicLib; using System.Data; namespace HM_WORK { public partial class WorkManagerReport : DevExpress.XtraReports.UI.XtraReport { // private DataTable m_Data; public WorkManagerReport() { InitializeComponent(); } public void SetData(DataTable data, string order_sdate, string order_fdate) { xrLabel_ORDER_DATE.Text = "일자 : " + order_sdate + " ~ " + order_fdate; xrLabel_Today.Text = "Date : " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); xrTableCell_ORDER_NO.DataBindings.Add("Text", data, "ORDER_NO"); xrTableCell_LN_SEQ.DataBindings.Add("Text", data, "LN_SEQ"); xrTableCell_CUST_NM.DataBindings.Add("Text", data, "CUST_NM"); xrTableCell_FILE_NM.DataBindings.Add("Text", data, "FILE_NM"); xrTableCell_PRINT_POS.DataBindings.Add("Text", data, "PRINT_POS"); xrTableCell_IN_FIN_YN.DataBindings.Add("Text", data, "IN_FIN_YN"); xrTableCell_IN_USR_NM.DataBindings.Add("Text", data, "IN_USR_NM"); xrTableCell_IN_DATE.DataBindings.Add("Text", data, "IN_DATE"); xrTableCell_ITEM_NM.DataBindings.Add("Text", data, "ITEM_NM"); xrTableCell_ORDER_NORM.DataBindings.Add("Text", data, "ORDER_NORM"); xrTableCell_ORDER_QTY.DataBindings.Add("Text", data, "ORDER_QTY", "{0:#,###}"); xrTableCell_FIN_QTY.DataBindings.Add("Text", data, "FIN_QTY", "{0:#,###}"); xrTableCell_WORK_USR_NM.DataBindings.Add("Text", data, "WORK_USR_NM"); xrTableCell_WORK_STA_DATE.DataBindings.Add("Text", data, "WORK_STA_DATE"); xrTableCell_WORK_FIN_DATE.DataBindings.Add("Text", data, "WORK_FIN_DATE"); this.DataSource = data; CommonPreview form = new CommonPreview("작업지시서 현황", false, false); form.SetH1Report(this); form.ShowDialog(); } } }