누락파일추가
This commit is contained in:
41
SubProject/FPJ0000/fHistAdd.cs
Normal file
41
SubProject/FPJ0000/fHistAdd.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
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 FPJ0000
|
||||
{
|
||||
public partial class fHistAdd : Form
|
||||
{
|
||||
dsPRJ.ProjectsHistoryRow dr = null;
|
||||
public fHistAdd(dsPRJ.ProjectsHistoryRow dr_)
|
||||
{
|
||||
InitializeComponent();
|
||||
this.dr = dr_;
|
||||
this.KeyDown += fHistAdd_KeyDown;
|
||||
}
|
||||
|
||||
void fHistAdd_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.KeyCode == Keys.Escape) this.Close();
|
||||
}
|
||||
|
||||
private void fHistAdd_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.tbRemark.Text = this.dr.remark;
|
||||
this.mcDate.SetDate(DateTime.Now);
|
||||
}
|
||||
|
||||
private void btOK_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Validate();
|
||||
this.dr.remark = tbRemark.Text.Trim();
|
||||
this.dr.pdate = mcDate.SelectionStart.ToShortDateString();
|
||||
DialogResult = System.Windows.Forms.DialogResult.OK;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user