재고 관리 화면 - 보관소 필터링 기능 추가 재고 관리 등록 화면 규격의 값이 없어도 등록 가능 => 완료 보관소 직접입력이 아닌 선택 하게 => 재고등록화면 수정, 품목정보에 공급처 선택 기능 => 공급처 칸(제일 우측) 추가 주문도 보관소 별로 처리 => 완료 안전용 주문등록화면 추가 => 보관소 기능 추가 구매 신청 목록에 "보관소" 열 추가
72 lines
2.4 KiB
C#
72 lines
2.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
|
|
namespace FCM0000.Inventory
|
|
{
|
|
public partial class RepInvStock : Form
|
|
{
|
|
public RepInvStock()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
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
|
|
{
|
|
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)
|
|
{
|
|
FCOMMON.Util.MsgE(ex.Message);
|
|
}
|
|
}
|
|
|
|
private void btrefresh_Click(object sender, EventArgs e)
|
|
{
|
|
refreshData();
|
|
}
|
|
}
|
|
}
|