1910108 chi 열저장방식 변경(필드명으로 저장)
파트리스트 열 순서를 기존 사용 엑셀과 동일하게 정렬 파트리스트 적용부위 납기일 항목 추가 파트리스트 가져오기 메뉴에 적용부위, 납기일 항목 추가 파트리스트 내보내기 기능 - 파일명을 프로젝트 명으로 자동 입력
This commit is contained in:
@@ -1,98 +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)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
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