190806 chi 품목정보에서 카테고리 없는 자료도 보이게 함
품목정보 정렬 기능 추가 190731 로그기록화면(beta)추가
This commit is contained in:
@@ -11,24 +11,61 @@ namespace FCM0000.Inventory
|
||||
{
|
||||
public partial class RepInvStock : Form
|
||||
{
|
||||
string userid = string.Empty;
|
||||
public RepInvStock(string uid)
|
||||
public RepInvStock()
|
||||
{
|
||||
InitializeComponent();
|
||||
this.userid = uid;
|
||||
}
|
||||
|
||||
private void RepInvStock_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.Show();
|
||||
Application.DoEvents();
|
||||
|
||||
this.tbDate.Text = DateTime.Now.ToShortDateString();
|
||||
this.reportViewer1.PageCountMode = Microsoft.Reporting.WinForms.PageCountMode.Actual;
|
||||
this.reportViewer1.ZoomMode = Microsoft.Reporting.WinForms.ZoomMode.PageWidth;
|
||||
refreshData();
|
||||
}
|
||||
void refreshData()
|
||||
{
|
||||
try
|
||||
{
|
||||
this.ta.Fill(this.dSReport.PersonInvStock, this.userid);
|
||||
if (checkBox1.Checked == false)
|
||||
this.reportViewer1.LocalReport.ReportEmbeddedResource = "FCM0000.Inventory.RepInvStock.rdlc";
|
||||
else
|
||||
this.reportViewer1.LocalReport.ReportEmbeddedResource = "FCM0000.Inventory.RepInvStockPlace.rdlc";
|
||||
|
||||
var plist = new List<Microsoft.Reporting.WinForms.ReportParameter>();
|
||||
plist.Add(new Microsoft.Reporting.WinForms.ReportParameter("pdate", this.tbDate.Text));
|
||||
plist.Add(new Microsoft.Reporting.WinForms.ReportParameter("gname", FCOMMON.info.Login.dept));
|
||||
plist.Add(new Microsoft.Reporting.WinForms.ReportParameter("gcode", FCOMMON.info.Login.gcode));
|
||||
this.reportViewer1.LocalReport.SetParameters(plist);
|
||||
|
||||
if (checkBox1.Checked)
|
||||
{
|
||||
this.bs.DataMember = "jagosummaryPlace";
|
||||
this.taPlace.Fill(this.dSReport.jagosummaryPlace, FCOMMON.info.Login.gcode, tbDate.Text);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.bs.DataMember = "jagosummary";
|
||||
this.ta.Fill(this.dSReport.jagosummary, FCOMMON.info.Login.gcode, tbDate.Text);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
this.reportViewer1.RefreshReport();
|
||||
}catch (Exception ex)
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
FCOMMON.Util.MsgE(ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void btrefresh_Click(object sender, EventArgs e)
|
||||
{
|
||||
refreshData();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user