181210 chi NR구매등록시 이미지 표시 및 추가 기능

NR구매목록에서 권한 없는 사람이 더블클릭으로 편집할 수 있는 버그 수정
This commit is contained in:
chikyun.kim
2018-12-10 12:29:18 +09:00
parent 43841e6c52
commit 6b374123fd
184 changed files with 78917 additions and 70460 deletions

View File

@@ -1,84 +1,84 @@
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 FBS0000
{
public partial class fMinutesDetail : Form
{
int idx = -1;
public fMinutesDetail(int idx_)
{
InitializeComponent();
this.FormClosed += __Closed;
this.idx = idx_;
}
void __Closed(object sender, FormClosedEventArgs e)
{
}
private void __Load(object sender, EventArgs e)
{
this.Show();
Application.DoEvents();
//refresh Data
this.ta.FillByIDX(this.dsMSSQL.minutes,this.idx);
}
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
var f = new FCM0000.fLovProject("");
if(f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
this.tbPrj.Text = f.Index.ToString();
this.tbPrjName.Text = f.Title;
placeTextBox.Focus();
}
}
private void tbPrjName_KeyDown(object sender, KeyEventArgs e)
{
if(e.KeyCode == Keys.Enter)
{
var search = tbPrjName.Text.Trim();
if(search == "")
{
SendKeys.Send("{TAB}");
}
else
{
var f = new FCM0000.fLovProject("%" + search + "%");
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
this.tbPrj.Text = f.Index.ToString();
this.tbPrjName.Text = f.Title;
SendKeys.Send("{TAB}");
}
}
}
}
private void button1_Click(object sender, EventArgs e)
{
try
{
this.Invalidate();
this.bs.EndEdit();
var cnt = ta.Update(this.dsMSSQL.minutes);
FCOMMON.Util.MsgI(cnt.ToString() + "건의 자료가 저장 되었습니다.");
}
catch (Exception ex)
{
FCOMMON.Util.MsgE("save error\n\n" + ex.Message);
}
}
}
}
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 FBS0000
{
public partial class fMinutesDetail : Form
{
int idx = -1;
public fMinutesDetail(int idx_)
{
InitializeComponent();
this.FormClosed += __Closed;
this.idx = idx_;
}
void __Closed(object sender, FormClosedEventArgs e)
{
}
private void __Load(object sender, EventArgs e)
{
this.Show();
Application.DoEvents();
//refresh Data
this.ta.FillByIDX(this.dsMSSQL.minutes,this.idx);
}
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
var f = new FCM0000.fLovProject("");
if(f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
this.tbPrj.Text = f.Index.ToString();
this.tbPrjName.Text = f.Title;
placeTextBox.Focus();
}
}
private void tbPrjName_KeyDown(object sender, KeyEventArgs e)
{
if(e.KeyCode == Keys.Enter)
{
var search = tbPrjName.Text.Trim();
if(search == "")
{
SendKeys.Send("{TAB}");
}
else
{
var f = new FCM0000.fLovProject("%" + search + "%");
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
this.tbPrj.Text = f.Index.ToString();
this.tbPrjName.Text = f.Title;
SendKeys.Send("{TAB}");
}
}
}
}
private void button1_Click(object sender, EventArgs e)
{
try
{
this.Invalidate();
this.bs.EndEdit();
var cnt = ta.Update(this.dsMSSQL.minutes);
FCOMMON.Util.MsgI(cnt.ToString() + "건의 자료가 저장 되었습니다.");
}
catch (Exception ex)
{
FCOMMON.Util.MsgE("save error\n\n" + ex.Message);
}
}
}
}