using System; using System.Drawing; using System.Collections; using System.ComponentModel; using DevExpress.XtraReports.UI; using PublicLib; using System.Data; namespace HANMI_SALE { public partial class InitialManagerReport : DevExpress.XtraReports.UI.XtraReport { // private DataTable m_Data; public InitialManagerReport() { 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"); xrLabel_COMP_NM.Text = ConstClass._COMP_NM; 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_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_CURR_UNIT_MY.DataBindings.Add("Text", data, "CURR_UNIT_MY", "{0:#,###}"); xrTableCell_CURR_MY.DataBindings.Add("Text", data, "CURR_MY", "{0:#,###}"); xrTableCell_VAT_MY.DataBindings.Add("Text", data, "VAT_MY", "{0:#,###}"); xrTableCell_ORDER_MY.DataBindings.Add("Text", data, "ORDER_MY", "{0:#,###}"); xrTableCell_LN_RMK.DataBindings.Add("Text", data, "LN_RMK"); this.DataSource = data; CommonPreview form = new CommonPreview("견적 현황", true, false); form.SetH1Report(this); form.ShowDialog(); } } }