..
This commit is contained in:
@@ -443,7 +443,7 @@ namespace FPJ0000.JobReport_
|
||||
|
||||
|
||||
//신규상태이다
|
||||
if (this.dr.RowState == DataRowState.Added || this.dr.RowState == DataRowState.Detached)
|
||||
//if (this.dr.RowState == DataRowState.Added || this.dr.RowState == DataRowState.Detached)
|
||||
{
|
||||
if (this.richTextBoxEx1.Text.isEmpty())
|
||||
{
|
||||
@@ -451,12 +451,26 @@ namespace FPJ0000.JobReport_
|
||||
}
|
||||
else
|
||||
{
|
||||
//뭔가 자료가 있는가?
|
||||
if (this.richTextBoxEx1.Text.Length < 10)
|
||||
//뭔가 자료가 있는가?
|
||||
var header = string.Empty;
|
||||
|
||||
|
||||
var rt = new RichTextBoxEx.RichTextBoxEx();
|
||||
rt.Rtf = dr.body;
|
||||
if (rt.Text.Length > 10) header = rt.Text.Substring(0, 10).Trim();
|
||||
else header = rt.Text.Trim();
|
||||
rt.Dispose();
|
||||
|
||||
if (this.richTextBoxEx1.Text.StartsWith(header) ==false)
|
||||
{
|
||||
if (FCOMMON.Util.MsgQ("등록된 작성 양식이 있습니다. 적용할까요?") == DialogResult.Yes)
|
||||
//if (FCOMMON.Util.MsgQ("등록된 작성 양식이 있습니다. 적용할까요?") == DialogResult.Yes)
|
||||
{
|
||||
this.richTextBoxEx1.Rtf = dr.body + this.richTextBoxEx1.Rtf;
|
||||
var oldtext = this.richTextBoxEx1.Text;
|
||||
this.richTextBoxEx1.Rtf = dr.body;
|
||||
if (this.richTextBoxEx1.Text.isEmpty() == false)
|
||||
this.richTextBoxEx1.Text += "\r\n\r\n"+oldtext;
|
||||
|
||||
//this.richTextBoxEx1.Text += oldtext;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user