Files
Groupware/Project/Dialog/fSelectDept.cs
chikyun.kim 63dffe62ef 190806 chi 품목정보에서 카테고리 없는 자료도 보이게 함
품목정보 정렬 기능 추가
190731  로그기록화면(beta)추가
2019-08-06 11:38:05 +09:00

41 lines
1.3 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Project.Dialog
{
public partial class fSelectDept : FCOMMON.fBase
{
public string deptName { get; set; }
public fSelectDept()
{
InitializeComponent();
deptName = string.Empty;
this.fpSpread1.KeyDown += (s1, e1) => { SelectData(); };
this.fpSpread1.CellDoubleClick += (s1, e1) => { SelectData(); };
}
private void fSelectDept_Load(object sender, EventArgs e)
{
// TODO: 이 코드는 데이터를 'dsMSSQL.UserGroup' 테이블에 로드합니다. 필요한 경우 이 코드를 이동하거나 제거할 수 있습니다.
this.ta.Fill(this.dsMSSQL.UserGroup);
var ta = new dsMSSQLTableAdapters.UserGroupTableAdapter();
}
void SelectData()
{
var drv = this.bs.Current as DataRowView;
if (drv == null) return;
var dr = drv.Row as dsMSSQL.UserGroupRow;
this.deptName = dr.dept;
this.DialogResult = System.Windows.Forms.DialogResult.OK;
}
}
}