File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
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 WorkOrderReport : DevExpress.XtraReports.UI.XtraReport
{
//private DataTable m_Data;
public WorkOrderReport()
{
InitializeComponent();
}
public void SetData(DataTable data, string order_no, string order_date, string order_seq, string cust_nm, string file_nm, string print_pos, string out_pos)
{
xrTableCell_ORDER_DATE.Text = order_date;
xrTableCell_ORDER_SEQ.Text = order_seq;
xrTableCell_CUST_NM.Text = cust_nm;
xrTableCell_FILE_NM.Text = file_nm;
xrTableCell_PRINT_POS.Text = print_pos;
xrTableCell_OUT_POS.Text = out_pos;
xrTableCell_ORDER_DATE_2.Text = order_date;
xrTableCell_ORDER_SEQ_2.Text = order_seq;
xrTableCell_CUST_NM_2.Text = cust_nm;
xrTableCell_FILE_NM_2.Text = file_nm;
xrTableCell_PRINT_POS_2.Text = print_pos;
xrTableCell_OUT_POS_2.Text = out_pos;
xrBarCode_ORDER_NO_1.Text = order_no;
xrBarCode_ORDER_NO_2.Text = order_no;
DataTable data1 = data.Copy();
for (int i = data1.Rows.Count + 1; i <= 7; i++)
{
DataRow row = data1.NewRow();
row["ITEM_NM"] = "";
row["ORDER_NORM"] = "";
row["LN_RMK"] = "";
data1.Rows.Add(row);
}
xrTableCell_ITEM_NM.DataBindings.Add("Text", data1, "ITEM_NM");
xrTableCell_ORDER_NORM.DataBindings.Add("Text", data1, "ORDER_NORM");
xrTableCell_ORDER_QTY.DataBindings.Add("Text", data1, "ORDER_QTY", "{0:#,###}");
xrTableCell_LN_RMK.DataBindings.Add("Text", data1, "LN_RMK");
xrTableCell_ITEM_NM_2.DataBindings.Add("Text", data1, "ITEM_NM");
xrTableCell_ORDER_NORM_2.DataBindings.Add("Text", data1, "ORDER_NORM");
xrTableCell_ORDER_QTY_2.DataBindings.Add("Text", data1, "ORDER_QTY", "{0:#,###}");
xrTableCell_LN_RMK_2.DataBindings.Add("Text", data1, "LN_RMK");
this.DataSource = data1;
CommonPreview form = new CommonPreview("작업지시서 내역", true, false);
form.SetH1Report(this);
form.ShowDialog();
}
}
}