재고 등록화면 프로젝트 입력칸 비활성화 => 완료
재고 관리 화면 - 보관소 필터링 기능 추가 재고 관리 등록 화면 규격의 값이 없어도 등록 가능 => 완료 보관소 직접입력이 아닌 선택 하게 => 재고등록화면 수정, 품목정보에 공급처 선택 기능 => 공급처 칸(제일 우측) 추가 주문도 보관소 별로 처리 => 완료 안전용 주문등록화면 추가 => 보관소 기능 추가 구매 신청 목록에 "보관소" 열 추가
This commit is contained in:
98
SubProject/FCM0000/Mail/fMailform.cs
Normal file
98
SubProject/FCM0000/Mail/fMailform.cs
Normal file
@@ -0,0 +1,98 @@
|
||||
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;
|
||||
using YARTE.UI.Buttons;
|
||||
|
||||
namespace FCM0000
|
||||
{
|
||||
public partial class fMailform : FCOMMON.fBase
|
||||
{
|
||||
public fMailform()
|
||||
{
|
||||
InitializeComponent();
|
||||
PredefinedButtonSets.SetupDefaultButtons(this.htmlEditor1);
|
||||
this.dsMSSQL.MailForm.TableNewRow += MailForm_TableNewRow;
|
||||
}
|
||||
|
||||
void MailForm_TableNewRow(object sender, DataTableNewRowEventArgs e)
|
||||
{
|
||||
e.Row["wuid"] = FCOMMON.info.Login.no;
|
||||
e.Row["wdate"] = DateTime.Now;
|
||||
e.Row["subject"] = "메일제목";
|
||||
e.Row["title"] = "분류제목";
|
||||
e.Row["cate"] = "--";
|
||||
e.Row["gcode"] = FCOMMON.info.Login.gcode;
|
||||
}
|
||||
|
||||
private void fMailform_Load(object sender, EventArgs e)
|
||||
{
|
||||
refreshData();
|
||||
}
|
||||
|
||||
void refreshData()
|
||||
{
|
||||
try
|
||||
{
|
||||
ta.Fill(this.dsMSSQL.MailForm, FCOMMON.info.Login.gcode);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
FCOMMON.Util.MsgE(ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
private void mailFormBindingNavigatorSaveItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Validate();
|
||||
this.bs.EndEdit();
|
||||
this.tam.UpdateAll(this.dsMSSQL);
|
||||
|
||||
}
|
||||
|
||||
private void toolStripButton1_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
DSMail.MailFormRow dr = null;
|
||||
private void bs_CurrentChanged(object sender, EventArgs e)
|
||||
{
|
||||
var drv = this.bs.Current as DataRowView;
|
||||
if (drv == null) return;
|
||||
dr = drv.Row as DSMail.MailFormRow;
|
||||
this.htmlEditor1.Html = dr.body;
|
||||
//this.htmlEditor2.Html = dr.tail;
|
||||
}
|
||||
|
||||
|
||||
private void htmlEditor1_Validated(object sender, EventArgs e)
|
||||
{
|
||||
if (dr != null)
|
||||
{
|
||||
dr.body = this.htmlEditor1.Html;
|
||||
// dr.tail = this.htmlEditor2.Html;
|
||||
}
|
||||
}
|
||||
|
||||
private void mailFormDataGridView_DataError(object sender, DataGridViewDataErrorEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void bindingNavigatorDeleteItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
var dlg = FCOMMON.Util.MsgQ("선택된 자료를 삭제하시겠습니까?");
|
||||
if (dlg != System.Windows.Forms.DialogResult.Yes) return;
|
||||
bs.RemoveCurrent();
|
||||
}
|
||||
|
||||
private void bindingNavigatorAddNewItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user