재고 등록화면 프로젝트 입력칸 비활성화 => 완료
재고 관리 화면 - 보관소 필터링 기능 추가 재고 관리 등록 화면 규격의 값이 없어도 등록 가능 => 완료 보관소 직접입력이 아닌 선택 하게 => 재고등록화면 수정, 품목정보에 공급처 선택 기능 => 공급처 칸(제일 우측) 추가 주문도 보관소 별로 처리 => 완료 안전용 주문등록화면 추가 => 보관소 기능 추가 구매 신청 목록에 "보관소" 열 추가
This commit is contained in:
135
SubProject/FCM0000/Mail/fAutoSendSetting.cs
Normal file
135
SubProject/FCM0000/Mail/fAutoSendSetting.cs
Normal file
@@ -0,0 +1,135 @@
|
||||
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.Mail
|
||||
{
|
||||
public partial class fAutoSendSetting : Form
|
||||
{
|
||||
string fn_fpcolsize = "";
|
||||
public fAutoSendSetting()
|
||||
{
|
||||
InitializeComponent();
|
||||
this.FormClosed += fAutoSendSetting_FormClosed;
|
||||
fn_fpcolsize = System.IO.Path.Combine(FCOMMON.Util.CurrentPath, "formSetting", "fp_" + this.Name + ".ini");
|
||||
}
|
||||
|
||||
void fAutoSendSetting_FormClosed(object sender, FormClosedEventArgs e)
|
||||
{
|
||||
FCOMMON.Util.FPColsizeSave(this.fpSpread1, fn_fpcolsize);
|
||||
}
|
||||
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
refreshData();
|
||||
}
|
||||
private void refreshData()
|
||||
{
|
||||
try
|
||||
{
|
||||
this.ta.Fill(this.dSMail.MailAuto, FCOMMON.info.Login.gcode);
|
||||
this.dSMail.MailAuto.AcceptChanges();
|
||||
}
|
||||
catch (System.Exception ex)
|
||||
{
|
||||
FCOMMON.Util.MsgE(ex.Message);
|
||||
}
|
||||
FCOMMON.Util.FPColSizeLoad(ref this.fpSpread1, fn_fpcolsize);
|
||||
}
|
||||
|
||||
private void btSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Validate();
|
||||
this.bs.EndEdit();
|
||||
try
|
||||
{
|
||||
var dlg = FCOMMON.Util.MsgQ("저장하시겠습니까?");
|
||||
if (dlg == System.Windows.Forms.DialogResult.Yes)
|
||||
{
|
||||
var cnt = this.ta.Update(this.dSMail.MailAuto);
|
||||
if (cnt < 1) FCOMMON.Util.MsgE("저장된 자료가 없습니다");
|
||||
else FCOMMON.Util.MsgI(string.Format("{0}건의 자료가 저장 되었습니다", cnt));
|
||||
this.dSMail.MailAuto.AcceptChanges();
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
FCOMMON.Util.MsgE("Save error\n" + ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
private void btDel_Click(object sender, EventArgs e)
|
||||
{
|
||||
var drv = this.bs.Current as DataRowView;
|
||||
if (drv == null) return;
|
||||
|
||||
|
||||
var dlg = FCOMMON.Util.MsgQ("현재 선택된 자료를 삭제 하시겠습니까?");
|
||||
if(dlg != System.Windows.Forms.DialogResult.Yes) return;
|
||||
bs.RemoveCurrent();
|
||||
}
|
||||
|
||||
private void btAdd_Click(object sender, EventArgs e)
|
||||
{
|
||||
var newdr = this.dSMail.MailAuto.NewMailAutoRow();
|
||||
newdr.gcode = FCOMMON.info.Login.gcode;
|
||||
newdr.wdate = DateTime.Now;
|
||||
newdr.sdate = DateTime.Now.ToString("yyyy-MM-dd");
|
||||
newdr.edate = "2099-12-31";
|
||||
newdr.sday = new byte[] { 0x00,0x01}; //매월 1일에
|
||||
newdr.wuid = FCOMMON.info.Login.no;
|
||||
newdr.wdate = DateTime.Now;
|
||||
newdr.enable = false;
|
||||
newdr.stime = "01:00"; //1시0분에 트리거
|
||||
newdr.fidx = -1; //기본폼이 선택되지 않게
|
||||
|
||||
var f = new fMailAutoAdd(newdr);
|
||||
if(f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
|
||||
{
|
||||
this.dSMail.MailAuto.AddMailAutoRow(newdr);
|
||||
newdr.EndEdit();
|
||||
}
|
||||
else
|
||||
{
|
||||
newdr.Delete(); //제거함
|
||||
}
|
||||
}
|
||||
|
||||
private void toolStripButton1_Click(object sender, EventArgs e)
|
||||
{
|
||||
var drv = this.bs.Current as DataRowView;
|
||||
if (drv == null) return;
|
||||
var newdr = drv.Row as DSMail.MailAutoRow;
|
||||
var f = new fMailAutoAdd(newdr);
|
||||
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
|
||||
{
|
||||
newdr.EndEdit();
|
||||
}
|
||||
else
|
||||
{
|
||||
newdr.RejectChanges();
|
||||
}
|
||||
}
|
||||
|
||||
private void toolStripButton2_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void btRefresh_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void btSearch_Click(object sender, EventArgs e)
|
||||
{
|
||||
refreshData();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user