コード例 #1
0
ファイル: 사원등록.cs プロジェクト: Leewoosu/ERP_SYSTEM
        private void Btn삭제_Click(object sender, EventArgs e)
        {
            ClassLibrary.사원등록 사원등록 = DB.사원등록.Get사원정보(dgv사원.CurrentRow.Cells[0].Value.ToString()).FirstOrDefault();

            DB.사원등록.Delete(사원등록);
            MessageBox.Show("삭제");

            조회();
        }
コード例 #2
0
ファイル: 사원등록.cs プロジェクト: Leewoosu/ERP_SYSTEM
        private void Btn등록_Click(object sender, EventArgs e)
        {
            ClassLibrary.사원등록 productInfo = new ClassLibrary.사원등록();

            productInfo.사원코드    = txb사원코드.Text;
            productInfo.사원명     = txb사원명.Text;
            productInfo.사원명_영문_ = txb영문이름.Text;
            productInfo.부서코드    = txb부서코드.Text;
            productInfo.사용자여부   = txb사용자여부.Text;
            productInfo.조회권한    = txb조회권한.Text;
            productInfo.암호      = txb암호.Text;
            productInfo.비상연락망   = txb비상연락망.Text;
            productInfo.입사일     = DateTime.Parse(dtp입사일.Value.ToShortDateString());
            DB.사원등록.Insert(productInfo);
            MessageBox.Show("등록");

            조회();
        }
コード例 #3
0
ファイル: 사원등록.cs プロジェクト: Leewoosu/ERP_SYSTEM
        private void Btn변경_Click(object sender, EventArgs e)
        {
            ClassLibrary.사원등록 productInfo = new ClassLibrary.사원등록();

            productInfo.사원코드    = txb사원코드.Text;
            productInfo.사원명     = txb사원명.Text;
            productInfo.사원명_영문_ = txb영문이름.Text;
            productInfo.부서코드    = txb부서코드.Text;
            productInfo.사용자여부   = txb사용자여부.Text;
            productInfo.조회권한    = txb조회권한.Text;
            if (dtp퇴사일.Enabled == true)
            {
                productInfo.퇴사일 = dtp퇴사일.Value;
            }
            productInfo.입사일   = dtp입사일.Value;
            productInfo.암호    = txb암호.Text;
            productInfo.비상연락망 = txb비상연락망.Text;
            productInfo.입사일   = DateTime.Parse(dtp입사일.Value.ToShortDateString());

            DB.사원등록.Update(productInfo);
            MessageBox.Show("변경");

            조회();
        }