적용위치,적용장비,천단위구분기호
This commit is contained in:
90
SubProject/FCM0000/Board/fPatchList.cs
Normal file
90
SubProject/FCM0000/Board/fPatchList.cs
Normal file
@@ -0,0 +1,90 @@
|
||||
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;
|
||||
using NetOffice;
|
||||
using Outlook = NetOffice.OutlookApi;
|
||||
using NetOffice.OutlookApi.Enums;
|
||||
|
||||
namespace FCM0000
|
||||
{
|
||||
public partial class fPatchList : FCOMMON.fBase
|
||||
{
|
||||
public fPatchList()
|
||||
{
|
||||
InitializeComponent();
|
||||
this.dsMSSQL.Board.TableNewRow += RequestItem_TableNewRow;
|
||||
}
|
||||
|
||||
void RequestItem_TableNewRow(object sender, DataTableNewRowEventArgs e)
|
||||
{
|
||||
e.Row["wuid"] = FCOMMON.info.Login.no;
|
||||
e.Row["wdate"] = DateTime.Now;
|
||||
e.Row["bidx"] = 5;
|
||||
e.Row["pidx"] = -1;
|
||||
}
|
||||
|
||||
private void fRequestItem_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (FCOMMON.info.Login.level >= 9)
|
||||
{
|
||||
bn.Enabled = true;
|
||||
this.fpSpread1.EditMode = true;
|
||||
this.fpSpread1.ActiveSheet.Protect = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
bn.Enabled = false;
|
||||
this.fpSpread1.EditMode = false;
|
||||
this.fpSpread1.ActiveSheet.Protect = true;
|
||||
}
|
||||
refreshData();
|
||||
}
|
||||
|
||||
private void boardBindingNavigatorSaveItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Validate();
|
||||
this.bs.EndEdit();
|
||||
this.tam.UpdateAll(this.dsMSSQL);
|
||||
|
||||
}
|
||||
|
||||
private void fillToolStripButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
void refreshData()
|
||||
{
|
||||
try
|
||||
{
|
||||
this.ta.Fill(this.dsMSSQL.Board,5);
|
||||
}
|
||||
catch (System.Exception ex)
|
||||
{
|
||||
System.Windows.Forms.MessageBox.Show(ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
private void btSearch_Click(object sender, EventArgs e)
|
||||
{
|
||||
refreshData();
|
||||
}
|
||||
|
||||
private void bindingNavigatorAddNewItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.bs.AddNew();
|
||||
//var newdr = this.dsMSSQL.Board.NewBoardRow();//.NewRequestItemRow();
|
||||
//fRequestItem_Add f = new fRequestItem_Add(newdr);
|
||||
//if (f.ShowDialog() != System.Windows.Forms.DialogResult.OK) newdr.Delete();
|
||||
//else this.dsMSSQL.RequestItem.AddRequestItemRow(newdr);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user