54 lines
1.4 KiB
C#
54 lines
1.4 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.Windows.Forms;
|
|
|
|
namespace FPJ0000
|
|
{
|
|
public partial class fProjectList : Form
|
|
{
|
|
public fProjectList()
|
|
{
|
|
InitializeComponent();
|
|
this.FormClosed += __Closed;
|
|
}
|
|
|
|
void __Closed(object sender, FormClosedEventArgs e)
|
|
{
|
|
var form = this as Form;
|
|
FCOMMON.Util.SetFormStatus(ref form, this.Name, false);
|
|
}
|
|
|
|
|
|
private void __Load(object sender, EventArgs e)
|
|
{
|
|
var form = this as Form;
|
|
FCOMMON.Util.SetFormStatus(ref form, this.Name, true);
|
|
this.Show();
|
|
Application.DoEvents();
|
|
|
|
|
|
this.ta.Fill(this.dsMSSQL.Projects);
|
|
this.dsMSSQL.Projects.TableNewRow += Projects_TableNewRow;
|
|
dv1.AutoResizeColumns();
|
|
}
|
|
|
|
private void projectsBindingNavigatorSaveItem_Click(object sender, EventArgs e)
|
|
{
|
|
this.Validate();
|
|
this.bs.EndEdit();
|
|
this.tam.UpdateAll(this.dsMSSQL);
|
|
|
|
}
|
|
void Projects_TableNewRow(object sender, DataTableNewRowEventArgs e)
|
|
{
|
|
e.Row["wuid"] = FCOMMON.info.Login.no;
|
|
e.Row["wdate"] = DateTime.Now;
|
|
}
|
|
}
|
|
}
|