휴가 승인자 정보 추적
This commit is contained in:
1
SubProject/FBS0000/.vs/FBS0000.csproj.dtbcache.json
Normal file
1
SubProject/FBS0000/.vs/FBS0000.csproj.dtbcache.json
Normal file
File diff suppressed because one or more lines are too long
@@ -27,10 +27,11 @@ namespace FBS0000
|
||||
tbGrp.Text = string.Empty;
|
||||
//this.dv1.CellFormatting += dv1_CellFormatting;
|
||||
}
|
||||
|
||||
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
EnsureVisibleAndUsableSize();
|
||||
//일반사용자의경우에는 상태를 변경하지 못한다.
|
||||
int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.holyday));
|
||||
if (curLevel >= 5)
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using FCOMMON;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -10,7 +11,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FBS0000.Holiday
|
||||
{
|
||||
public partial class fErrorChk : Form
|
||||
public partial class fErrorChk : fBase
|
||||
{
|
||||
public fErrorChk()
|
||||
{
|
||||
@@ -23,43 +24,12 @@ namespace FBS0000.Holiday
|
||||
private void fErrorChk_Load(object sender, EventArgs e)
|
||||
{
|
||||
//기본 이번달 설정한다
|
||||
EnsureVisibleAndUsableSize();
|
||||
button2.PerformClick();
|
||||
}
|
||||
|
||||
//void dtSD_KeyDown(object sender, KeyEventArgs e)
|
||||
//{
|
||||
// if (e.KeyCode != Keys.Enter) return;
|
||||
// var tb = sender as TextBox;
|
||||
// var input = tb.Text.Trim();
|
||||
// if (input == "") tb.Text = DateTime.Now.ToShortDateString();
|
||||
// else
|
||||
// {
|
||||
// string dt = string.Empty;
|
||||
// if (!FCOMMON.Util.MakeDateString(input, out dt))
|
||||
// {
|
||||
// FCOMMON.Util.MsgE("입력값이 올바르지 않습니다.");
|
||||
// tb.SelectAll();
|
||||
// tb.Focus();
|
||||
// return;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// tb.Text = dt;
|
||||
// }
|
||||
// }
|
||||
// if (tb == dtSD)
|
||||
// {
|
||||
// dtED.Focus();
|
||||
// dtED.SelectAll();
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// // btSearch.PerformClick();
|
||||
// tb.SelectAll();
|
||||
// }
|
||||
//}
|
||||
|
||||
private void listView1_SelectedIndexChanged(object sender, EventArgs e)
|
||||
private void listView1_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using FCOMMON;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -9,7 +10,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FBS0000
|
||||
{
|
||||
public partial class fHolyDayData : Form
|
||||
public partial class fHolyDayData : fBase
|
||||
{
|
||||
bool binit = false;
|
||||
public fHolyDayData(string sdate, string uid)
|
||||
@@ -36,11 +37,14 @@ namespace FBS0000
|
||||
}
|
||||
|
||||
private void rJobReport_Load(object sender, EventArgs e)
|
||||
{
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
refreshData();
|
||||
binit = true;
|
||||
|
||||
}
|
||||
|
||||
|
||||
string GetUIDValue()
|
||||
{
|
||||
string uid = "%";
|
||||
|
||||
@@ -36,11 +36,30 @@ namespace FBS0000
|
||||
}
|
||||
|
||||
private void rJobReport_Load(object sender, EventArgs e)
|
||||
{
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
refreshData();
|
||||
binit = true;
|
||||
|
||||
}
|
||||
private void EnsureVisibleAndUsableSize()
|
||||
{
|
||||
var visibleBounds = Screen.GetWorkingArea(this);
|
||||
var isOutOfView = (Left > visibleBounds.Right) || (Top > visibleBounds.Bottom) ||
|
||||
(Right < visibleBounds.Left) || (Bottom < visibleBounds.Top);
|
||||
if (isOutOfView)
|
||||
{
|
||||
CenterToScreen();
|
||||
}
|
||||
var minW = Math.Max(320, this.MinimumSize.Width);
|
||||
var minH = Math.Max(240, this.MinimumSize.Height);
|
||||
|
||||
if (Width < minW || Height < minH)
|
||||
{
|
||||
this.Size = new Size(minW, minH);
|
||||
}
|
||||
}
|
||||
|
||||
//string GetUIDValue()
|
||||
//{
|
||||
// string uid = "%";
|
||||
|
||||
@@ -32,9 +32,11 @@ namespace FBS0000
|
||||
//if (cate == "0") dv1.Rows[e.RowIndex].DefaultCellStyle.ForeColor = Color.Blue;// = Color.Gray;
|
||||
//else dv1.Rows[e.RowIndex].DefaultCellStyle.ForeColor = Color.Black;
|
||||
}
|
||||
|
||||
|
||||
private void __Load(object sender, EventArgs e)
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.holyday));
|
||||
//엔터키누르면 아래로 이동하게함ㄷ
|
||||
FarPoint.Win.Spread.InputMap im = this.fpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenFocused);
|
||||
|
||||
@@ -23,10 +23,10 @@ namespace FBS0000
|
||||
this.tbED.Text = ed;
|
||||
p_uid = uid;
|
||||
}
|
||||
|
||||
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
EnsureVisibleAndUsableSize();
|
||||
//udpate user list
|
||||
var userList = FCOMMON.DBM.getUserList();
|
||||
this.cmbUser.Items.Clear();
|
||||
|
||||
@@ -56,9 +56,9 @@ namespace FBS0000
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
cmbUser.SelectedValue = dr.uid;// FCOMMON.info.Login.no;// .Text = FCOMMON.info.Login.nameK + "(" + FCOMMON.info.Login.no + ")";
|
||||
dateTimePicker1.Value = dr.sdate;
|
||||
dateTimePicker2.Value = dr.edate;
|
||||
|
||||
@@ -20,9 +20,9 @@ namespace FBS0000.Holiday
|
||||
|
||||
private void fImpKunTae_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
EnsureVisibleAndUsableSize();
|
||||
}
|
||||
|
||||
|
||||
private void button2_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Clipboard.ContainsText() == false)
|
||||
|
||||
@@ -36,6 +36,7 @@ namespace FBS0000
|
||||
}
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
UpdateGrpList();
|
||||
if (cmbGrp.Items.Count > 0) cmbGrp.SelectedIndex = 0;
|
||||
//일반사용자의경우에는 상태를 변경하지 못한다.
|
||||
@@ -51,7 +52,7 @@ namespace FBS0000
|
||||
|
||||
RefreshData();
|
||||
}
|
||||
|
||||
|
||||
void Holyday_TableNewRow(object sender, DataTableNewRowEventArgs e)
|
||||
{
|
||||
e.Row["gcode"] = FCOMMON.info.Login.gcode;
|
||||
|
||||
@@ -32,9 +32,11 @@ namespace FBS0000
|
||||
//if (cate == "0") dv1.Rows[e.RowIndex].DefaultCellStyle.ForeColor = Color.Blue;// = Color.Gray;
|
||||
//else dv1.Rows[e.RowIndex].DefaultCellStyle.ForeColor = Color.Black;
|
||||
}
|
||||
|
||||
|
||||
private void __Load(object sender, EventArgs e)
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.holyday));
|
||||
//엔터키누르면 아래로 이동하게함ㄷ
|
||||
FarPoint.Win.Spread.InputMap im = this.fpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenFocused);
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
using FarPoint.Excel.EntityClassLibrary.DrawingVML;
|
||||
using FarPoint.Win.Spread;
|
||||
using FarPoint.Win.Spread.CellType.BarCode;
|
||||
using FCOMMON;
|
||||
using NetOffice.Extensions.Invoker;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -14,7 +15,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FBS0000
|
||||
{
|
||||
public partial class rHolidaySummary : Form
|
||||
public partial class rHolidaySummary : fBase
|
||||
{
|
||||
public rHolidaySummary()
|
||||
{
|
||||
@@ -25,17 +26,7 @@ namespace FBS0000
|
||||
|
||||
private void rJobReport_Load(object sender, EventArgs e)
|
||||
{
|
||||
// TODO: 이 코드는 데이터를 'dsReport.holydata' 테이블에 로드합니다. 필요 시 이 코드를 이동하거나 제거할 수 있습니다.
|
||||
//this.ta.Fill(this.dsReport.holydata);
|
||||
//this.tbProcess.Items.Clear();
|
||||
//tbProcess.Items.Add("전체");
|
||||
//var taProcess = new dsReportTableAdapters.holydataTableAdapter();
|
||||
//var dtProcessList = taProcess.GetData(FCOMMON.info.Login.gcode);
|
||||
//foreach (dsReport.ProcessListRow dr in dtProcessList.Rows)
|
||||
// tbProcess.Items.Add(dr.processs);
|
||||
|
||||
//this.tbProcess.Text = FCOMMON.info.Login.process;
|
||||
//if (tbProcess.SelectedIndex < 0) tbProcess.SelectedIndex = 0;
|
||||
EnsureVisibleAndUsableSize();
|
||||
|
||||
this.tbMon.Text = DateTime.Now.ToShortDateString();
|
||||
|
||||
@@ -310,22 +301,54 @@ namespace FBS0000
|
||||
for (int i = 0; i < fpSpread1_Sheet1.RowCount; i++)
|
||||
fpSpread1_Sheet1.Cells[i, 0].BackColor = Color.White;
|
||||
|
||||
|
||||
|
||||
for (int i = 4; i <= grpend2; i++)
|
||||
{
|
||||
var colname = fpSpread1_Sheet1.Columns[i - 1].Label;
|
||||
var cellf = fpSpread1_Sheet1.Cells.Get(row, i - 1).CellType;
|
||||
|
||||
|
||||
if (colname.Contains("%") == false)
|
||||
if (colname.Contains("%") == false) //일반 컬럼은 합계를 ㅏㅎㄴ다
|
||||
{
|
||||
fpSpread1_Sheet1.SetFormula(row, i - 1, $"SUM(R1C{i}:R{row}C{i})");
|
||||
}
|
||||
else
|
||||
{
|
||||
fpSpread1_Sheet1.SetFormula(row, i - 1, $"AVERAGE(R1C{i}:R{row}C{i})");
|
||||
fpSpread1_Sheet1.Cells[row, i - 1].CellType = numcell1;
|
||||
var startindex = colname.StartsWith("소진율") ? 2 : 3;
|
||||
//이월
|
||||
var o이월 = fpSpread1_Sheet1.Cells[row, i - (startindex + 4)].Value;
|
||||
//발생
|
||||
var o발생 = fpSpread1_Sheet1.Cells[row, i - (startindex + 3)].Value;
|
||||
//사용
|
||||
var o사용 = fpSpread1_Sheet1.Cells[row, i - (startindex + 2)].Value;
|
||||
//잔여
|
||||
var o잔여 = fpSpread1_Sheet1.Cells[row, i - (startindex + 1)].Value;
|
||||
//초과
|
||||
var o초과 = fpSpread1_Sheet1.Cells[row, i - (startindex + 0)].Value;
|
||||
|
||||
float 이월, 발생, 사용, 잔여, 초과;
|
||||
이월 = o이월 != null ? float.Parse(o이월.ToString()) : 0;
|
||||
발생 = o발생 != null ? float.Parse(o발생.ToString()) : 0;
|
||||
사용 = o사용 != null ? float.Parse(o사용.ToString()) : 0;
|
||||
잔여 = o잔여 != null ? float.Parse(o잔여.ToString()) : 0;
|
||||
초과 = o초과 != null ? float.Parse(o초과.ToString()) : 0;
|
||||
|
||||
|
||||
var 소진율 = 0f;
|
||||
if ((발생 + 이월) != 0) 소진율 = (사용 / (발생 + 이월)) * 100f;
|
||||
var 소진율2 = 0f;
|
||||
if (발생 != 0) 소진율2 = ((사용 - 이월) / 발생) * 100f;
|
||||
|
||||
if (colname.StartsWith("소진율"))
|
||||
{
|
||||
|
||||
fpSpread1_Sheet1.SetValue(row, i - 1, 소진율);//.SetFormula(row, i - 1, $"AVERAGE(R1C{i}:R{row}C{i})");
|
||||
fpSpread1_Sheet1.Cells[row, i - 1].CellType = numcell1;
|
||||
}
|
||||
else
|
||||
{
|
||||
fpSpread1_Sheet1.SetValue(row, i - 1, 소진율2);// fpSpread1_Sheet1.SetFormula(row, i - 1, $"AVERAGE(R1C{i}:R{row}C{i})");
|
||||
fpSpread1_Sheet1.Cells[row, i - 1].CellType = numcell1;
|
||||
}
|
||||
|
||||
//var 발생 = (double)fpSpread1_Sheet1.GetValue(row, i - 1 - 4);
|
||||
//var 사용 = (double)fpSpread1_Sheet1.GetValue(row, i - 1 - 3);
|
||||
//var 사용률 = 0.0;
|
||||
|
||||
1
SubProject/FBS0000/fLovWorkUser.Designer.cs
generated
1
SubProject/FBS0000/fLovWorkUser.Designer.cs
generated
@@ -75,7 +75,6 @@
|
||||
this.arDatagridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
||||
this.arDatagridView1.Size = new System.Drawing.Size(313, 496);
|
||||
this.arDatagridView1.TabIndex = 0;
|
||||
this.arDatagridView1.DoubleClick += new System.EventHandler(this.arDatagridView1_DoubleClick);
|
||||
this.arDatagridView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.arDatagridView1_KeyDown);
|
||||
//
|
||||
// bs
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using FCOMMON;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -9,7 +10,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FBS0000
|
||||
{
|
||||
public partial class fLovWorkUser : Form
|
||||
public partial class fLovWorkUser : fBase
|
||||
{
|
||||
public dsMSSQL.EETGW_WorkTableUserRow dr = null;
|
||||
public fLovWorkUser(List<dsMSSQL.EETGW_WorkTableUserRow> users)
|
||||
@@ -22,16 +23,12 @@ namespace FBS0000
|
||||
|
||||
private void fLovWorkUser_Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
this.Show();
|
||||
Application.DoEvents();
|
||||
this.arDatagridView1.AutoResizeColumns();
|
||||
}
|
||||
|
||||
private void arDatagridView1_DoubleClick(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
private void arDatagridView1_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if(e.KeyCode == Keys.Enter)
|
||||
|
||||
@@ -30,11 +30,13 @@ namespace FBS0000
|
||||
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
this.Show();
|
||||
Application.DoEvents();
|
||||
|
||||
refreshData();
|
||||
}
|
||||
|
||||
void refreshData()
|
||||
{
|
||||
//refresh data
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using FCOMMON;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -9,7 +10,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FBS0000
|
||||
{
|
||||
public partial class fMinutesDetail : Form
|
||||
public partial class fMinutesDetail : fBase
|
||||
{
|
||||
int idx = -1;
|
||||
public fMinutesDetail(int idx_)
|
||||
@@ -27,13 +28,13 @@ namespace FBS0000
|
||||
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
this.Show();
|
||||
Application.DoEvents();
|
||||
|
||||
//refresh Data
|
||||
this.ta.FillByIDX(this.dsMSSQL.minutes,this.idx);
|
||||
}
|
||||
|
||||
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||
{
|
||||
var f = new FCM0000.fLovProject("");
|
||||
|
||||
1
SubProject/FCM0000/.vs/FCM0000.csproj.dtbcache.json
Normal file
1
SubProject/FCM0000/.vs/FCM0000.csproj.dtbcache.json
Normal file
File diff suppressed because one or more lines are too long
@@ -32,6 +32,7 @@ namespace FCM0000
|
||||
|
||||
private void fRequestItem_Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
if (FCOMMON.info.Login.level >= 9 || FCOMMON.info.Login.no == "395552")
|
||||
{
|
||||
bn.Enabled = true;
|
||||
@@ -45,7 +46,7 @@ namespace FCM0000
|
||||
}
|
||||
refreshData();
|
||||
}
|
||||
|
||||
|
||||
private void boardBindingNavigatorSaveItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Validate();
|
||||
@@ -54,12 +55,7 @@ namespace FCM0000
|
||||
|
||||
}
|
||||
|
||||
private void fillToolStripButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
void refreshData()
|
||||
{
|
||||
try
|
||||
|
||||
@@ -31,24 +31,19 @@ namespace FCM0000
|
||||
|
||||
private void fRequestItem_Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
this.dtSD.Text = DateTime.Now.AddDays(-15).ToShortDateString();
|
||||
this.dtED.Text = DateTime.Now.ToShortDateString();
|
||||
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()
|
||||
{
|
||||
|
||||
@@ -23,6 +23,7 @@ namespace FCM0000
|
||||
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
//프로젝트 리스트를 가져와서 cmb에 연결해준다.
|
||||
var projectDT = FCOMMON.DBM.getProjectData();
|
||||
this.cmProject.DataSource = projectDT;
|
||||
@@ -57,6 +58,7 @@ namespace FCM0000
|
||||
tbRemark.Html = dr.remark;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void requestItemBindingNavigatorSaveItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using FCOMMON;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -9,7 +10,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FCM0000
|
||||
{
|
||||
public partial class Customer_Import : Form
|
||||
public partial class Customer_Import : fBase
|
||||
{
|
||||
DataTable dt = new dsMSSQL.CustomsDataTable();
|
||||
DataTable dtExcel = new DataTable();
|
||||
@@ -22,6 +23,7 @@ namespace FCM0000
|
||||
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
this.sd.Value = DateTime.Now.AddMonths(-1);
|
||||
this.ed.Value = DateTime.Now;
|
||||
}
|
||||
@@ -30,7 +32,7 @@ namespace FCM0000
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||
{
|
||||
OpenFileDialog od = new OpenFileDialog();
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using FCOMMON;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -10,11 +11,18 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FCM0000
|
||||
{
|
||||
public partial class Form2 : Form
|
||||
public partial class Form2 : fBase
|
||||
{
|
||||
public Form2()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
|
||||
protected override void OnLoad(EventArgs e)
|
||||
{
|
||||
base.OnLoad(e);
|
||||
EnsureVisibleAndUsableSize();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using FCOMMON;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -9,16 +10,18 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FCM0000.Inventory
|
||||
{
|
||||
public partial class RepInvStock : Form
|
||||
public partial class RepInvStock : fBase
|
||||
{
|
||||
public RepInvStock()
|
||||
{
|
||||
InitializeComponent();
|
||||
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
|
||||
}
|
||||
|
||||
|
||||
private void RepInvStock_Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
this.Show();
|
||||
Application.DoEvents();
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FCM0000
|
||||
{
|
||||
public partial class fInventory : Form
|
||||
public partial class fInventory : fBase
|
||||
{
|
||||
string fn_fpcolsize = "";
|
||||
public fInventory()
|
||||
@@ -65,8 +65,10 @@ namespace FCM0000
|
||||
cmbPlace.Items.Add(item);
|
||||
cmbPlace.SelectedIndex = 0;
|
||||
}
|
||||
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
var form = this as Form;
|
||||
FCOMMON.Util.SetFormStatus(ref form, this.Name, true);
|
||||
this.Show();
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using FCOMMON;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -9,7 +10,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FCM0000
|
||||
{
|
||||
public partial class fInventoryJagoList : Form
|
||||
public partial class fInventoryJagoList : fBase
|
||||
{
|
||||
string fn_fpcolsize = "";
|
||||
public fInventoryJagoList()
|
||||
@@ -50,9 +51,10 @@ namespace FCM0000
|
||||
var form = this as Form;
|
||||
FCOMMON.Util.SetFormStatus(ref form, this.Name, false);
|
||||
}
|
||||
|
||||
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
var form = this as Form;
|
||||
FCOMMON.Util.SetFormStatus(ref form, this.Name, true);
|
||||
this.Show();
|
||||
|
||||
@@ -21,9 +21,10 @@ namespace FCM0000.Inventory
|
||||
this.tbPumName.Tag = itemname;
|
||||
this.tbPumName.KeyDown += (s1, e1) => { if (e1.KeyCode == Keys.Enter) Lov_Item(tbPumName.Text, false); };
|
||||
}
|
||||
|
||||
|
||||
private void fInventoryJagoPlace_Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
this.Show();
|
||||
Application.DoEvents();
|
||||
button1.PerformClick();
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using FCOMMON;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -9,7 +10,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FCM0000
|
||||
{
|
||||
public partial class fInventoryUser : Form
|
||||
public partial class fInventoryUser : fBase
|
||||
{
|
||||
public fInventoryUser()
|
||||
{
|
||||
@@ -63,7 +64,7 @@ namespace FCM0000
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
// TODO: 이 코드는 데이터를 'dsMSSQL.InventoryUser' 테이블에 로드합니다. 필요한 경우 이 코드를 이동하거나 제거할 수 있습니다.
|
||||
|
||||
EnsureVisibleAndUsableSize();
|
||||
var form = this as Form;
|
||||
FCOMMON.Util.SetFormStatus(ref form, this.Name, true);
|
||||
this.Show();
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using FCOMMON;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -9,7 +10,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FCM0000
|
||||
{
|
||||
public partial class finventoryAdd : Form
|
||||
public partial class finventoryAdd : fBase
|
||||
{
|
||||
BindingSource bsManu;
|
||||
BindingSource bsModel;
|
||||
@@ -39,9 +40,10 @@ namespace FCM0000
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
//담당자목록
|
||||
var userList = FCOMMON.DBM.getUserList();//.getGroupList("name", "Users", "[level] > 0 and [level] < 10");
|
||||
foreach (var user in userList)
|
||||
|
||||
1
SubProject/FCM0000/Item/fItemAdd.Designer.cs
generated
1
SubProject/FCM0000/Item/fItemAdd.Designer.cs
generated
@@ -380,7 +380,6 @@
|
||||
this.MinimumSize = new System.Drawing.Size(685, 448);
|
||||
this.Name = "fItemAdd";
|
||||
this.Text = "품목 추가";
|
||||
this.Load += new System.EventHandler(this.fItemAdd_Load);
|
||||
((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using FCOMMON;
|
||||
using FarPoint.Excel.EntityClassLibrary.SpreadsheetML;
|
||||
using FCOMMON;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
@@ -43,14 +44,10 @@ namespace FCM0000.Item
|
||||
}
|
||||
}
|
||||
|
||||
private void fItemAdd_Load(object sender, EventArgs e)
|
||||
protected override void OnLoad(EventArgs e)
|
||||
{
|
||||
if (this.WindowState == FormWindowState.Minimized) this.WindowState = FormWindowState.Normal;
|
||||
if (this.RestoreBounds.X + this.RestoreBounds.Width < 300 && this.RestoreBounds.X < 0)
|
||||
{
|
||||
this.Location = new Point(0, 0);
|
||||
}
|
||||
this.Show();
|
||||
base.OnLoad(e);
|
||||
EnsureVisibleAndUsableSize();
|
||||
//Application.DoEvents();
|
||||
|
||||
if (tbSid.Text.isEmpty()) tbSid.Focus();
|
||||
@@ -77,7 +74,8 @@ namespace FCM0000.Item
|
||||
else
|
||||
{
|
||||
//이떄는 sid가 정상이어야 한다.
|
||||
if (tbSid.Text.StartsWith("10") == false || tbSid.TextLength != 9)
|
||||
var siddata = tbSid.Text.Split('-')[0].Trim();
|
||||
if (siddata.StartsWith("10") == false || siddata.Length != 9)
|
||||
{
|
||||
Util.MsgE("SID는 9자리 숫자이며 10으로 시작 합니다\n입력값을 확인 하세요");
|
||||
tbSid.Focus();
|
||||
@@ -87,9 +85,12 @@ namespace FCM0000.Item
|
||||
|
||||
if (ta.ExistSID(FCOMMON.info.Login.gcode, tbSid.Text) > 0)
|
||||
{
|
||||
Util.MsgE("동일한 SID정보가 있습니다\n화면을 닫은 후 SID로 검색하세요");
|
||||
this.Close();
|
||||
return;
|
||||
var dlg = Util.MsgQ("동일한 SID정보가 있습니다\n강제입력을 진행할까요?\n입력값을 다시 확인하세요.\n품목정보에서 해당 SID정보를 검색해보세요");
|
||||
if(dlg != DialogResult.Yes)
|
||||
{
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -47,14 +47,11 @@ namespace FCM0000.Item
|
||||
SendKeys.Send("{TAB}");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void fItemAdd_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (this.WindowState == FormWindowState.Minimized) this.WindowState = FormWindowState.Normal;
|
||||
if (this.RestoreBounds.X + this.RestoreBounds.Width < 300 && this.RestoreBounds.X < 0)
|
||||
{
|
||||
this.Location = new Point(0, 0);
|
||||
}
|
||||
EnsureVisibleAndUsableSize();
|
||||
|
||||
|
||||
tbSid.Text = dr.IssidNull() == false ? dr.sid : string.Empty;
|
||||
tbName.Text = dr.IsnameNull() == false ? dr.name : string.Empty;
|
||||
|
||||
@@ -28,9 +28,10 @@ namespace FCM0000
|
||||
void fItems_FormClosed(object sender, FormClosedEventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
private void fItems_Load(object sender, EventArgs e)
|
||||
{
|
||||
//get catelist
|
||||
EnsureVisibleAndUsableSize();
|
||||
var cateList = FCOMMON.DBM.getGroupTable("cate", "Items", "isnull(cate,'') <> ''");
|
||||
this.cmbCate.Items.Clear();
|
||||
this.cmbCate.Items.Add("-- All --");
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using FCOMMON;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -9,7 +10,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FCM0000
|
||||
{
|
||||
public partial class fLovItem : Form
|
||||
public partial class fLovItem : fBase
|
||||
{
|
||||
string fn_fpcolsize = "";
|
||||
|
||||
@@ -59,10 +60,10 @@ namespace FCM0000
|
||||
this.tbFind.Text = search_;
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
}
|
||||
|
||||
|
||||
private void fLovItem_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.Show();
|
||||
EnsureVisibleAndUsableSize();
|
||||
Application.DoEvents();
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using FCOMMON;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -9,7 +10,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FCM0000
|
||||
{
|
||||
public partial class fLovOneItem : Form
|
||||
public partial class fLovOneItem : fBase
|
||||
{
|
||||
public string Title { get; set; }
|
||||
DataTable dt;
|
||||
@@ -49,8 +50,10 @@ namespace FCM0000
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
private void fLovItem_Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
this.bs.DataSource = this.dt;
|
||||
this.bn.BindingSource = this.bs;
|
||||
this.dv.DataSource = this.bs;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using FCOMMON;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -9,7 +10,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FCM0000.Mail
|
||||
{
|
||||
public partial class fAutoSendSetting : Form
|
||||
public partial class fAutoSendSetting : fBase
|
||||
{
|
||||
string fn_fpcolsize = "";
|
||||
public fAutoSendSetting()
|
||||
@@ -25,9 +26,10 @@ namespace FCM0000.Mail
|
||||
{
|
||||
FCOMMON.Util.FPColsizeSave(this.fpSpread1, fn_fpcolsize);
|
||||
}
|
||||
|
||||
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
refreshData();
|
||||
}
|
||||
private void refreshData()
|
||||
|
||||
@@ -27,10 +27,11 @@ namespace FCM0000
|
||||
e.Row["cate"] = "--";
|
||||
e.Row["gcode"] = FCOMMON.info.Login.gcode;
|
||||
}
|
||||
|
||||
|
||||
private void fMailform_Load(object sender, EventArgs e)
|
||||
{
|
||||
refreshData();
|
||||
EnsureVisibleAndUsableSize();
|
||||
refreshData();
|
||||
}
|
||||
|
||||
void refreshData()
|
||||
|
||||
@@ -21,10 +21,9 @@ namespace FCM0000
|
||||
PredefinedButtonSets.SetupDefaultButtons(this.tbBody);
|
||||
this.dr = dr_;
|
||||
}
|
||||
|
||||
private void fMailform_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
EnsureVisibleAndUsableSize();
|
||||
//시작일을 오늘로
|
||||
this.dtSd.Value = DateTime.Now;
|
||||
|
||||
|
||||
@@ -10,10 +10,11 @@ using NetOffice;
|
||||
using Outlook = NetOffice.OutlookApi;
|
||||
using NetOffice.OutlookApi.Enums;
|
||||
using NetOffice.OutlookApi;
|
||||
using FCOMMON;
|
||||
|
||||
namespace FCM0000.Mail
|
||||
{
|
||||
public partial class fMailBackup : Form
|
||||
public partial class fMailBackup : fBase
|
||||
{
|
||||
public fMailBackup()
|
||||
{
|
||||
@@ -23,7 +24,12 @@ namespace FCM0000.Mail
|
||||
dateTimePicker1.Value = DateTime.Now.AddYears(-2);
|
||||
dateTimePicker2.Value = DateTime.Now.AddYears(-1);
|
||||
}
|
||||
|
||||
protected override void OnLoad(EventArgs e)
|
||||
{
|
||||
base.OnLoad(e);
|
||||
EnsureVisibleAndUsableSize();
|
||||
}
|
||||
|
||||
int cntp = 0;
|
||||
// int cnte = 0;
|
||||
int cntb = 0;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using FCOMMON;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -9,7 +10,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FCM0000.Mail
|
||||
{
|
||||
public partial class fMailList : Form
|
||||
public partial class fMailList : fBase
|
||||
{
|
||||
string fn_fpcolsize = "";
|
||||
public fMailList()
|
||||
@@ -33,12 +34,12 @@ namespace FCM0000.Mail
|
||||
}
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
//한달전으로 처리
|
||||
EnsureVisibleAndUsableSize();
|
||||
this.dtEd.Value = DateTime.Now;
|
||||
this.dtSd.Value = DateTime.Now.AddDays(-10);
|
||||
refreshData();
|
||||
}
|
||||
|
||||
|
||||
private void fillToolStripButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
|
||||
@@ -32,9 +32,10 @@ namespace FCM0000
|
||||
|
||||
private void fMailform_Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
refreshData();
|
||||
}
|
||||
|
||||
|
||||
void refreshData()
|
||||
{
|
||||
try
|
||||
|
||||
@@ -32,9 +32,11 @@ namespace FCM0000
|
||||
|
||||
private void fMailform_Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
this.bs.AddNew();
|
||||
LoadNRData();
|
||||
}
|
||||
|
||||
|
||||
void LoadNRData()
|
||||
{
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace FCM0000
|
||||
{
|
||||
btOK.PerformClick();
|
||||
}
|
||||
|
||||
|
||||
void fpSpread1_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.KeyCode == Keys.Enter)
|
||||
@@ -51,6 +51,7 @@ namespace FCM0000
|
||||
|
||||
private void fLovItem_Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
this.Text = string.Format("사용자선택({0})",this.keyword);
|
||||
this.Show();
|
||||
Application.DoEvents();
|
||||
|
||||
@@ -21,10 +21,11 @@ namespace FCM0000
|
||||
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
EnsureVisibleAndUsableSize();
|
||||
refreshData();
|
||||
this.dSUser.Auth.TableNewRow += Customs_TableNewRow;
|
||||
}
|
||||
|
||||
|
||||
void Customs_TableNewRow(object sender, DataTableNewRowEventArgs e)
|
||||
{
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using FCOMMON;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -9,7 +10,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FCM0000
|
||||
{
|
||||
public partial class fUserGroup : Form
|
||||
public partial class fUserGroup : fBase
|
||||
{
|
||||
public fUserGroup()
|
||||
{
|
||||
@@ -19,6 +20,7 @@ namespace FCM0000
|
||||
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
refreshData();
|
||||
}
|
||||
|
||||
|
||||
@@ -21,11 +21,11 @@ namespace FCM0000
|
||||
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
EnsureVisibleAndUsableSize();
|
||||
refreshData();
|
||||
this.dSUser.UserGroup.TableNewRow += Customs_TableNewRow;
|
||||
}
|
||||
|
||||
|
||||
void Customs_TableNewRow(object sender, DataTableNewRowEventArgs e)
|
||||
{
|
||||
//e.Row["wuid"] = FCOMMON.info.Login.no;
|
||||
|
||||
@@ -21,6 +21,7 @@ namespace FCM0000
|
||||
|
||||
private void fUserGroupPermission_Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
foreach(var ctl in this.Controls)
|
||||
{
|
||||
if(ctl.GetType() == typeof(CheckBox))
|
||||
@@ -33,7 +34,7 @@ namespace FCM0000
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
|
||||
@@ -37,9 +37,11 @@ namespace FCM0000
|
||||
}
|
||||
e.Row["grp"] = grp;
|
||||
}
|
||||
|
||||
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
tbFind.Text = string.Empty;
|
||||
if (this.defaultgubun.isEmpty() == false)
|
||||
{
|
||||
|
||||
@@ -20,10 +20,10 @@ namespace FCM0000
|
||||
fn_fpcolsize1 = FCOMMON.Util.MakeFilePath(FCOMMON.Util.CurrentPath, "formSetting", "fp1_" + this.Name + ".ini");
|
||||
fn_fpcolsize2 = FCOMMON.Util.MakeFilePath(FCOMMON.Util.CurrentPath, "formSetting", "fp2_" + this.Name + ".ini");
|
||||
}
|
||||
|
||||
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
// TODO: 이 코드는 데이터를 'dsMSSQL.Staff' 테이블에 로드합니다. 필요한 경우 이 코드를 이동하거나 제거할 수 있습니다.
|
||||
EnsureVisibleAndUsableSize();
|
||||
|
||||
this.Show();
|
||||
Application.DoEvents();
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using FCOMMON;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -9,7 +10,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FCM0000
|
||||
{
|
||||
public partial class fHolidaytable : Form
|
||||
public partial class fHolidaytable : fBase
|
||||
{
|
||||
public string Title { get; set; }
|
||||
// DataTable dt;
|
||||
@@ -28,16 +29,13 @@ namespace FCM0000
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
private void fLovItem_Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
this.textBox1.Text = DateTime.Now.ToString("yyyy-MM");
|
||||
refreshData();
|
||||
|
||||
//if(dv.Columns.Count > 1)
|
||||
// this.dv.Columns[1].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
|
||||
//else
|
||||
// this.dv.Columns[0].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
|
||||
}
|
||||
void refreshData()
|
||||
{
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using FCOMMON;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -9,7 +10,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FCM0000
|
||||
{
|
||||
public partial class fLovProject : Form
|
||||
public partial class fLovProject : fBase
|
||||
{
|
||||
public string Title { get; set; }
|
||||
public int Index { get; set; }
|
||||
@@ -36,10 +37,10 @@ namespace FCM0000
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
|
||||
private void fLovItem_Load(object sender, EventArgs e)
|
||||
{
|
||||
//search data
|
||||
EnsureVisibleAndUsableSize();
|
||||
// var dt = this.ta.GetSearch(this.keyword);
|
||||
var statekey = this.keyword2;
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using FCOMMON;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -9,7 +10,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FCM0000
|
||||
{
|
||||
public partial class fLovSupply : Form
|
||||
public partial class fLovSupply : fBase
|
||||
{
|
||||
public string Title { get; set; }
|
||||
public int Index { get; set; }
|
||||
@@ -30,9 +31,10 @@ namespace FCM0000
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
|
||||
private void fLovItem_Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
this.ta.FillSearch(this.dsMSSQL.Customs, "%" + this.keyword + "%",FCOMMON.info.Login.gcode);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using FCOMMON;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -9,7 +10,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FCM0000
|
||||
{
|
||||
public partial class fMaterial_Import : Form
|
||||
public partial class fMaterial_Import : fBase
|
||||
{
|
||||
DataTable dt = new dsMSSQL.ItemsDataTable();// dsPurchase.PurchaseDataTable();
|
||||
DataTable dtExcel = new DataTable();
|
||||
@@ -22,11 +23,10 @@ namespace FCM0000
|
||||
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
// TODO: 이 코드는 데이터를 'dsMSSQL.Items' 테이블에 로드합니다. 필요한 경우 이 코드를 이동하거나 제거할 수 있습니다.
|
||||
//this.ta.Fill(this.dsMSSQL.Items);
|
||||
EnsureVisibleAndUsableSize();
|
||||
|
||||
}
|
||||
|
||||
|
||||
void __Closed(object sender, FormClosedEventArgs e)
|
||||
{
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FCM0000
|
||||
{
|
||||
public partial class fSIDListSelect : Form
|
||||
public partial class fSIDListSelect : fBase
|
||||
{
|
||||
public string selectbatch = "";
|
||||
public fSIDListSelect(string sid,DataTable dt)
|
||||
@@ -49,8 +49,10 @@ namespace FCM0000
|
||||
|
||||
private void fSIDListSelect_Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
this.dv1.AutoResizeColumns();
|
||||
}
|
||||
|
||||
|
||||
private void btopenspm_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using FCOMMON;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -9,7 +10,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FCM0000
|
||||
{
|
||||
public partial class fSelectDate : Form
|
||||
public partial class fSelectDate : fBase
|
||||
{
|
||||
private DateTime _dtSelect = DateTime.Now;
|
||||
public DateTime dtSelect
|
||||
@@ -34,9 +35,9 @@ namespace FCM0000
|
||||
|
||||
private void fSelectDate_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
EnsureVisibleAndUsableSize();
|
||||
}
|
||||
|
||||
|
||||
private void btOK_Click(object sender, EventArgs e)
|
||||
{
|
||||
dtSelect = this.monthCalendar1.SelectionStart;
|
||||
|
||||
@@ -4,6 +4,7 @@ using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.ServiceModel.Security;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
@@ -41,12 +42,28 @@ namespace FCOMMON
|
||||
{
|
||||
var form = this as Form;
|
||||
FCOMMON.Util.SetFormStatus(ref form, this.Name, true);
|
||||
|
||||
}
|
||||
|
||||
if (this.WindowState == FormWindowState.Minimized) this.WindowState = FormWindowState.Normal;
|
||||
if (this.RestoreBounds.X + this.RestoreBounds.Width < 300 && this.RestoreBounds.X < 0)
|
||||
this.Location = new Point(0, 0);
|
||||
EnsureVisibleAndUsableSize();
|
||||
}
|
||||
|
||||
protected void EnsureVisibleAndUsableSize()
|
||||
{
|
||||
var visibleBounds = Screen.GetWorkingArea(this);
|
||||
var isOutOfView = (Left > visibleBounds.Right) || (Top > visibleBounds.Bottom) ||
|
||||
(Right < visibleBounds.Left) || (Bottom < visibleBounds.Top);
|
||||
if (isOutOfView)
|
||||
{
|
||||
CenterToScreen();
|
||||
}
|
||||
var minW = Math.Max(320, this.MinimumSize.Width);
|
||||
var minH = Math.Max(240, this.MinimumSize.Height);
|
||||
|
||||
if (Width < minW || Height < minH)
|
||||
{
|
||||
this.Size = new Size(minW, minH);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FCOMMON
|
||||
{
|
||||
public partial class fFTPExplorer : Form
|
||||
public partial class fFTPExplorer : fBase
|
||||
{
|
||||
string homePath = string.Empty;
|
||||
string curPath = string.Empty;
|
||||
@@ -74,6 +74,7 @@ namespace FCOMMON
|
||||
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
this.tbpath.Text = this.curPath;// Pub.setting.ftp_path;
|
||||
if (this.tbpath.Text == "") tbpath.Text = "/";
|
||||
timer1.Start();
|
||||
@@ -90,6 +91,7 @@ namespace FCOMMON
|
||||
}
|
||||
btQuery.PerformClick();
|
||||
}
|
||||
|
||||
void listView1_DragOver(object sender, DragEventArgs e)
|
||||
{
|
||||
this.Cursor = Cursors.Hand;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using FarPoint.Win.Spread.Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -10,7 +11,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FCOMMON
|
||||
{
|
||||
public partial class fFileExplorer : Form
|
||||
public partial class fFileExplorer : fBase
|
||||
{
|
||||
string p = string.Empty;
|
||||
public fFileExplorer(string path_)
|
||||
@@ -22,11 +23,12 @@ namespace FCOMMON
|
||||
|
||||
private void fFileExplorer_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.Show();
|
||||
EnsureVisibleAndUsableSize();
|
||||
Application.DoEvents();
|
||||
RefreshPath();
|
||||
|
||||
}
|
||||
|
||||
void RefreshPath()
|
||||
{
|
||||
if (System.IO.Directory.Exists(this.p) == false)
|
||||
|
||||
@@ -10,7 +10,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FCOMMON
|
||||
{
|
||||
public partial class fInputTextBox : Form
|
||||
public partial class fInputTextBox : fBase
|
||||
{
|
||||
public fInputTextBox()
|
||||
{
|
||||
@@ -21,5 +21,12 @@ namespace FCOMMON
|
||||
{
|
||||
DialogResult = DialogResult.OK;
|
||||
}
|
||||
|
||||
protected override void OnLoad(EventArgs e)
|
||||
{
|
||||
base.OnLoad(e);
|
||||
EnsureVisibleAndUsableSize();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FCOMMON
|
||||
{
|
||||
public partial class fLovDateList : Form
|
||||
public partial class fLovDateList : fBase
|
||||
{
|
||||
public string selectedDate = string.Empty;
|
||||
public fLovDateList(List<string> dateList)
|
||||
@@ -24,8 +24,9 @@ namespace FCOMMON
|
||||
}
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
EnsureVisibleAndUsableSize();
|
||||
}
|
||||
|
||||
void fLovDateList_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.KeyCode == Keys.Escape) this.Close();
|
||||
|
||||
@@ -10,8 +10,8 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FCOMMON
|
||||
{
|
||||
public partial class fMagam : Form
|
||||
{
|
||||
public partial class fMagam : fBase
|
||||
{
|
||||
public fMagam()
|
||||
{
|
||||
InitializeComponent();
|
||||
@@ -19,7 +19,7 @@ namespace FCOMMON
|
||||
|
||||
private void fMagam_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
EnsureVisibleAndUsableSize();
|
||||
int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.holyday));
|
||||
|
||||
button2.Enabled = curLevel >= 5;
|
||||
@@ -29,8 +29,8 @@ namespace FCOMMON
|
||||
textBox1.Text = DateTime.Now.ToString("yyyy-MM");
|
||||
refreshList();
|
||||
}
|
||||
|
||||
void refreshList()
|
||||
|
||||
void refreshList()
|
||||
{
|
||||
var lst = FCOMMON.DBM.GetMagamList();
|
||||
this.listView1.Items.Clear();
|
||||
|
||||
@@ -9,7 +9,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FCOMMON
|
||||
{
|
||||
public partial class fProgress : Form
|
||||
public partial class fProgress : fBase
|
||||
{
|
||||
public fProgress()
|
||||
{
|
||||
@@ -18,9 +18,9 @@ namespace FCOMMON
|
||||
|
||||
private void fProgress_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
EnsureVisibleAndUsableSize();
|
||||
}
|
||||
|
||||
|
||||
private string _title = string.Empty;
|
||||
public string Title
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FCOMMON
|
||||
{
|
||||
public partial class fSFI : Form
|
||||
public partial class fSFI : fBase
|
||||
{
|
||||
public fSFI(string sfi_type, double time, double cnt, double shiftcount, int itemcnt)
|
||||
{
|
||||
@@ -102,9 +102,10 @@ namespace FCOMMON
|
||||
|
||||
private void fSFI_Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
nudMSaveCnt.DecimalPlaces = 1;
|
||||
}
|
||||
|
||||
|
||||
private void nudSIFOffice_ValueChanged(object sender, EventArgs e)
|
||||
{
|
||||
//offcie update
|
||||
|
||||
@@ -9,7 +9,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FCOMMON
|
||||
{
|
||||
public partial class fSelectDay : Form
|
||||
public partial class fSelectDay : fBase
|
||||
{
|
||||
public fSelectDay(DateTime dt)
|
||||
{
|
||||
@@ -22,10 +22,10 @@ namespace FCOMMON
|
||||
{
|
||||
DialogResult = System.Windows.Forms.DialogResult.OK;
|
||||
}
|
||||
|
||||
|
||||
private void fSelectDay_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
EnsureVisibleAndUsableSize();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FCOMMON
|
||||
{
|
||||
public partial class fSelectDays : Form
|
||||
public partial class fSelectDays : fBase
|
||||
{
|
||||
public fSelectDays(DateTime dt,DateTime dte)
|
||||
{
|
||||
@@ -26,10 +26,10 @@ namespace FCOMMON
|
||||
{
|
||||
DialogResult = System.Windows.Forms.DialogResult.OK;
|
||||
}
|
||||
|
||||
|
||||
private void fSelectDay_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
EnsureVisibleAndUsableSize();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FCOMMON
|
||||
{
|
||||
public partial class fSelectMonth : Form
|
||||
public partial class fSelectMonth : fBase
|
||||
{
|
||||
public int selectmon { get; set; }
|
||||
public fSelectMonth()
|
||||
@@ -21,6 +21,7 @@ namespace FCOMMON
|
||||
|
||||
private void fSelectMonth_Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
for(int i = 1 ; i <=12;i++)
|
||||
{
|
||||
Button newbt = new Button();
|
||||
@@ -31,7 +32,7 @@ namespace FCOMMON
|
||||
tableLayoutPanel1.Controls.Add(newbt);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void newbt_Click(object sender, EventArgs e)
|
||||
{
|
||||
var bt = sender as Button;
|
||||
|
||||
@@ -10,7 +10,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FCOMMON
|
||||
{
|
||||
public partial class fSelectProcess : Form
|
||||
public partial class fSelectProcess : fBase
|
||||
{
|
||||
public List<string> values = new List<string>();
|
||||
string[] curlist = new string[] { };
|
||||
@@ -23,7 +23,7 @@ namespace FCOMMON
|
||||
|
||||
private void fSelectProcess_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
EnsureVisibleAndUsableSize();
|
||||
//공정목록
|
||||
cmbProcess.Items.Clear();
|
||||
//cmbProcess.Items.Add("--전체--");
|
||||
@@ -33,7 +33,7 @@ namespace FCOMMON
|
||||
cmbProcess.Items.Add(item, curlist.Contains(item));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
values.Clear();
|
||||
|
||||
@@ -92,10 +92,11 @@ namespace FED0000
|
||||
e.Row["wdate"] = DateTime.Now;
|
||||
|
||||
}
|
||||
|
||||
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
EnsureVisibleAndUsableSize();
|
||||
this.tbRequest.Text = string.Empty; //양진원 FCOMMON.info.Login.nameK;
|
||||
|
||||
this.dtSD.Text = DateTime.Now.ToString("yyyy-01-01");
|
||||
|
||||
@@ -54,12 +54,12 @@ namespace FED0000
|
||||
e.Row["wdate"] = DateTime.Now;
|
||||
|
||||
}
|
||||
|
||||
private void __Load(object sender, EventArgs e)
|
||||
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
|
||||
|
||||
EnsureVisibleAndUsableSize();
|
||||
refreshData();
|
||||
|
||||
}
|
||||
|
||||
1
SubProject/FEQ0000/.vs/FEQ0000.csproj.dtbcache.json
Normal file
1
SubProject/FEQ0000/.vs/FEQ0000.csproj.dtbcache.json
Normal file
File diff suppressed because one or more lines are too long
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using FCOMMON;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -9,7 +10,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FEQ0000
|
||||
{
|
||||
public partial class EQFilterApply : Form
|
||||
public partial class EQFilterApply : fBase
|
||||
{
|
||||
|
||||
//fEquipment.eTabletype divtype;
|
||||
@@ -27,10 +28,10 @@ namespace FEQ0000
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
EnsureVisibleAndUsableSize();
|
||||
try
|
||||
{
|
||||
ta.Fill(this.dsEQ.EquipmentFilter, eqfiletertype, FCOMMON.info.Login.gcode);
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using FCOMMON;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -9,7 +10,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FEQ0000
|
||||
{
|
||||
public partial class EQfilterManager : Form
|
||||
public partial class EQfilterManager : fBase
|
||||
{
|
||||
string divtype = string.Empty;
|
||||
public EQfilterManager(string type_)
|
||||
@@ -28,9 +29,10 @@ namespace FEQ0000
|
||||
e.Row["wdate"] = DateTime.Now;
|
||||
e.Row["gcode"] = FCOMMON.info.Login.gcode;
|
||||
}
|
||||
|
||||
|
||||
private void EQfilter_Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
try
|
||||
{
|
||||
ta.Fill(this.dsEQ.EquipmentFilter, divtype, FCOMMON.info.Login.gcode);
|
||||
|
||||
@@ -9,10 +9,11 @@ using System.Windows.Forms;
|
||||
using System.CodeDom.Compiler;
|
||||
using System.Reflection;
|
||||
using Microsoft.CSharp;
|
||||
using FCOMMON;
|
||||
|
||||
namespace FEQ0000
|
||||
{
|
||||
public partial class fEquipment : Form
|
||||
public partial class fEquipment : fBase
|
||||
{
|
||||
public enum eTabletype
|
||||
{
|
||||
@@ -113,9 +114,10 @@ namespace FEQ0000
|
||||
}
|
||||
if (this.cmbDate.Items.Count > 0) this.cmbDate.SelectedIndex = 0;
|
||||
}
|
||||
|
||||
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
this.Text = string.Format("Equipment List({0})", this.dataType);
|
||||
var form = this as Form;
|
||||
FCOMMON.Util.SetFormStatus(ref form, this.Name + this.tableName, true);
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using FCOMMON;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -9,11 +10,11 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FEQ0000
|
||||
{
|
||||
public partial class fImpEquipment : Form
|
||||
public partial class fImpEquipment : fBase
|
||||
{
|
||||
DataTable dt = null;
|
||||
DataTable dtExcel = new DataTable();
|
||||
// fEquipment.eTabletype imptype = fEquipment.eTabletype.MOLD;
|
||||
// fEquipment.eTabletype imptype = fEquipment.eTabletype.MOLD;
|
||||
public fImpEquipment(fEquipment.eTabletype type_)
|
||||
{
|
||||
InitializeComponent();
|
||||
@@ -23,9 +24,10 @@ namespace FEQ0000
|
||||
this.FormClosed += __Closed;
|
||||
dt = new dsEQ.EETGW_EquipmentDataTable();
|
||||
}
|
||||
|
||||
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize ();
|
||||
this.Text = string.Format("Data Import({0})", "ALL");
|
||||
var form = this as Form;
|
||||
FCOMMON.Util.SetFormStatus(ref form, this.Name, true);
|
||||
@@ -282,8 +284,8 @@ namespace FEQ0000
|
||||
if (i % 1000 == 0) Application.DoEvents();
|
||||
|
||||
var version = dr[11].ToString();
|
||||
var linecode = dr[12+1].ToString();
|
||||
var linedesc = dr[13+1].ToString();
|
||||
var linecode = dr[12 + 1].ToString();
|
||||
var linedesc = dr[13 + 1].ToString();
|
||||
var lineT = string.Empty;
|
||||
var lineP = string.Empty;
|
||||
var grp2 = string.Empty;
|
||||
@@ -322,7 +324,7 @@ namespace FEQ0000
|
||||
if (lineDrows.Length == 0) //라인코드가 없다.
|
||||
{
|
||||
//var linebuf = linedesc.Split('-');
|
||||
|
||||
|
||||
|
||||
//신규추가한다.
|
||||
var newli = lineTd.NewLineCodeRow();
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using FCOMMON;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -9,7 +10,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FEQ0000
|
||||
{
|
||||
public partial class rpt_equipmentAll : Form
|
||||
public partial class rpt_equipmentAll : fBase
|
||||
{
|
||||
dsEQ.EETGW_EquipmentDataTable dt;
|
||||
public rpt_equipmentAll(dsEQ.EETGW_EquipmentDataTable dt_,string title)
|
||||
@@ -24,10 +25,10 @@ namespace FEQ0000
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
private void rpt_equipment_Load(object sender, EventArgs e)
|
||||
{
|
||||
//this.Text = string.Format("Data Report({0})", "ALL");
|
||||
EnsureVisibleAndUsableSize();
|
||||
this.Show();
|
||||
Application.DoEvents();
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FEQ0000.Purchase
|
||||
{
|
||||
public partial class fBatchUpdate : Form
|
||||
public partial class fBatchUpdate : fBase
|
||||
{
|
||||
public fBatchUpdate(List<int> _rows)
|
||||
{
|
||||
@@ -22,9 +22,10 @@ namespace FEQ0000.Purchase
|
||||
this.Text = $"일괄변경 : {_rows.Count} 건";
|
||||
this.KeyDown += (s1, e1) => { if (e1.KeyCode == Keys.Escape) this.Close(); };
|
||||
}
|
||||
|
||||
|
||||
private void fBatchUpdate_Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
var code_state = DBM.getCodeTable("04");
|
||||
cmbState.DataSource = code_state;
|
||||
cmbState.DisplayMember = "Value";
|
||||
|
||||
@@ -161,8 +161,8 @@
|
||||
this.toolStripButton3 = new System.Windows.Forms.ToolStripButton();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.fpSpread1 = new FarPoint.Win.Spread.FpSpread();
|
||||
this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
|
||||
@@ -276,6 +276,7 @@
|
||||
//
|
||||
this.bindingNavigatorPositionItem.AccessibleName = "위치";
|
||||
this.bindingNavigatorPositionItem.AutoSize = false;
|
||||
this.bindingNavigatorPositionItem.Font = new System.Drawing.Font("맑은 고딕", 9F);
|
||||
this.bindingNavigatorPositionItem.Name = "bindingNavigatorPositionItem";
|
||||
this.bindingNavigatorPositionItem.Size = new System.Drawing.Size(50, 23);
|
||||
this.bindingNavigatorPositionItem.Text = "0";
|
||||
@@ -402,6 +403,7 @@
|
||||
// tbFind
|
||||
//
|
||||
this.tbFind.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.tbFind.Font = new System.Drawing.Font("맑은 고딕", 9F);
|
||||
this.tbFind.Name = "tbFind";
|
||||
this.tbFind.Size = new System.Drawing.Size(100, 26);
|
||||
this.tbFind.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tbFind_KeyDown);
|
||||
@@ -752,6 +754,7 @@
|
||||
// dtSD
|
||||
//
|
||||
this.dtSD.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.dtSD.Font = new System.Drawing.Font("맑은 고딕", 9F);
|
||||
this.dtSD.Name = "dtSD";
|
||||
this.dtSD.Size = new System.Drawing.Size(75, 37);
|
||||
this.dtSD.Text = "1982-11-23";
|
||||
@@ -768,6 +771,7 @@
|
||||
// dtED
|
||||
//
|
||||
this.dtED.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.dtED.Font = new System.Drawing.Font("맑은 고딕", 9F);
|
||||
this.dtED.Name = "dtED";
|
||||
this.dtED.Size = new System.Drawing.Size(75, 37);
|
||||
this.dtED.Text = "1982-11-23";
|
||||
@@ -824,6 +828,7 @@
|
||||
// tbRequest
|
||||
//
|
||||
this.tbRequest.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.tbRequest.Font = new System.Drawing.Font("맑은 고딕", 9F);
|
||||
this.tbRequest.Name = "tbRequest";
|
||||
this.tbRequest.Size = new System.Drawing.Size(70, 37);
|
||||
this.tbRequest.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
@@ -838,6 +843,7 @@
|
||||
// tbManager
|
||||
//
|
||||
this.tbManager.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.tbManager.Font = new System.Drawing.Font("맑은 고딕", 9F);
|
||||
this.tbManager.Name = "tbManager";
|
||||
this.tbManager.Size = new System.Drawing.Size(70, 37);
|
||||
this.tbManager.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
@@ -851,6 +857,7 @@
|
||||
// tbAdmin
|
||||
//
|
||||
this.tbAdmin.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.tbAdmin.Font = new System.Drawing.Font("맑은 고딕", 9F);
|
||||
this.tbAdmin.Name = "tbAdmin";
|
||||
this.tbAdmin.Size = new System.Drawing.Size(70, 37);
|
||||
this.tbAdmin.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
@@ -965,7 +972,18 @@
|
||||
this.fpSpread1.TabIndex = 7;
|
||||
this.fpSpread1.EditModeOff += new System.EventHandler(this.fpSpread1_EditModeOff_1);
|
||||
this.fpSpread1.ClipboardPasted += new FarPoint.Win.Spread.ClipboardPastedEventHandler(this.fpSpread1_ClipboardPasted);
|
||||
this.fpSpread1.SetViewportLeftColumn(0, 0, 8);
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.label2.Font = new System.Drawing.Font("맑은 고딕", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.label2.Location = new System.Drawing.Point(0, 606);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Padding = new System.Windows.Forms.Padding(5, 0, 0, 0);
|
||||
this.label2.Size = new System.Drawing.Size(1226, 23);
|
||||
this.label2.TabIndex = 8;
|
||||
this.label2.Text = "--";
|
||||
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// fpSpread1_Sheet1
|
||||
//
|
||||
@@ -1075,6 +1093,7 @@
|
||||
this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType3;
|
||||
this.fpSpread1_Sheet1.Columns.Get(4).DataField = "place";
|
||||
this.fpSpread1_Sheet1.Columns.Get(4).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(4).Tag = "place";
|
||||
this.fpSpread1_Sheet1.Columns.Get(4).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(4).Width = 51F;
|
||||
this.fpSpread1_Sheet1.Columns.Get(5).AllowAutoFilter = true;
|
||||
@@ -1314,18 +1333,6 @@
|
||||
this.fpSpread1_Sheet1.ShowRowSelector = true;
|
||||
this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1;
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.label2.Font = new System.Drawing.Font("맑은 고딕", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.label2.Location = new System.Drawing.Point(0, 606);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Padding = new System.Windows.Forms.Padding(5, 0, 0, 0);
|
||||
this.label2.Size = new System.Drawing.Size(1226, 23);
|
||||
this.label2.TabIndex = 8;
|
||||
this.label2.Text = "--";
|
||||
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// fPurchaseCR
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
@@ -1443,7 +1450,6 @@
|
||||
private System.Windows.Forms.ToolStripLabel toolStripLabel7;
|
||||
private System.Windows.Forms.ToolStripTextBox tbAdmin;
|
||||
private System.Windows.Forms.ToolStripButton toolStripButton8;
|
||||
private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1;
|
||||
private System.Windows.Forms.ToolStripMenuItem 메일전송ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem 현재목록ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem 선택목록ToolStripMenuItem;
|
||||
@@ -1452,5 +1458,6 @@
|
||||
private System.Windows.Forms.ToolStripMenuItem 선택목록입고양식ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem6;
|
||||
private System.Windows.Forms.ToolStripMenuItem btMakeItemsData;
|
||||
private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -104,6 +104,7 @@ namespace FEQ0000
|
||||
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
this.cmDate.SelectedIndex = 0;
|
||||
this.tbRequest.Text = string.Empty; //양진원 FCOMMON.info.Login.nameK;
|
||||
this.cmbSort.SelectedIndex = 0;
|
||||
@@ -289,6 +290,8 @@ namespace FEQ0000
|
||||
var crcfindex = this.fpSpread1.ActiveSheet.Columns["crcf"].Index;
|
||||
var prjindex = this.fpSpread1.ActiveSheet.Columns["projectidx"].Index;
|
||||
var cstsindex = this.fpSpread1.ActiveSheet.Columns["conf_status"].Index;
|
||||
var nameindex = this.fpSpread1.ActiveSheet.Columns["pumname"].Index; // pumname
|
||||
var placeindex = this.fpSpread1.ActiveSheet.Columns["place"].Index; // pumname
|
||||
|
||||
for (int i = 0; i < this.fpSpread1.ActiveSheet.Rows.Count; i++)
|
||||
{
|
||||
@@ -299,12 +302,17 @@ namespace FEQ0000
|
||||
var value = this.fpSpread1.ActiveSheet.GetValue(i, delindex);
|
||||
var crcf = this.fpSpread1.ActiveSheet.GetValue(i, crcfindex);
|
||||
var v_confstats = this.fpSpread1.ActiveSheet.GetValue(i, cstsindex);
|
||||
var v_pumname = this.fpSpread1.ActiveSheet.GetValue(i, nameindex);
|
||||
var v_place = this.fpSpread1.ActiveSheet.GetValue(i, placeindex);
|
||||
|
||||
var str_place = "";
|
||||
var str_pumname = string.Empty;
|
||||
var str_crcf = string.Empty;
|
||||
var str_confstats = string.Empty;
|
||||
if (crcf != null) str_crcf = crcf.ToString();
|
||||
if (v_confstats != null) str_confstats = v_confstats.ToString();
|
||||
|
||||
if (v_pumname != null) str_pumname = v_pumname.ToString();
|
||||
if (v_place != null) str_place = v_place.ToString().ToUpper();
|
||||
|
||||
if (value != null && (Boolean)value)
|
||||
{
|
||||
@@ -333,7 +341,10 @@ namespace FEQ0000
|
||||
break;
|
||||
case "---":
|
||||
case "----":
|
||||
this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.Blue;
|
||||
if (str_place.Contains("SPR") || str_pumname.ToUpper().Contains("SPR"))
|
||||
this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.Violet;
|
||||
else
|
||||
this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.Blue;
|
||||
break;
|
||||
case "received":
|
||||
this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.Gray;
|
||||
@@ -1511,7 +1522,7 @@ namespace FEQ0000
|
||||
fpSpread1_Sheet1.Cells[r, statecol].Value = "PO";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -455,7 +455,7 @@
|
||||
</value>
|
||||
</data>
|
||||
<metadata name="fpSpread1_Sheet1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>579, 23</value>
|
||||
<value>582, 23</value>
|
||||
</metadata>
|
||||
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>65</value>
|
||||
|
||||
@@ -12,7 +12,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FEQ0000
|
||||
{
|
||||
public partial class fPurchaseCR_Add : Form
|
||||
public partial class fPurchaseCR_Add : fBase
|
||||
{
|
||||
BindingSource bsManu;
|
||||
BindingSource bsModel;
|
||||
@@ -51,11 +51,11 @@ namespace FEQ0000
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Boolean advInput = false;
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
// TODO: 이 코드는 데이터를 'dsPurchase.Purchase' 테이블에 로드합니다. 필요한 경우 이 코드를 이동하거나 제거할 수 있습니다.
|
||||
EnsureVisibleAndUsableSize();
|
||||
//this.purchaseTableAdapter.Fill(this.dsPurchase.Purchase);
|
||||
// this.Show();
|
||||
// Application.DoEvents();
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace FEQ0000
|
||||
this.dataGridView1.EditMode = DataGridViewEditMode.EditOnKeystroke;
|
||||
|
||||
}
|
||||
|
||||
|
||||
private void FPurchase_FormClosing(object sender, FormClosingEventArgs e)
|
||||
{
|
||||
if (dsPurchase.HasChanges())
|
||||
@@ -89,7 +89,7 @@ namespace FEQ0000
|
||||
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
EnsureVisibleAndUsableSize();
|
||||
|
||||
//일반사용자의경우에는 상태를 변경하지 못한다.
|
||||
int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.purchaseEB));
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using FCOMMON;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -10,7 +11,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FEQ0000.Purchase
|
||||
{
|
||||
public partial class fPurchaseCR_Ipgo : Form
|
||||
public partial class fPurchaseCR_Ipgo : fBase
|
||||
{
|
||||
int idx = -1;
|
||||
string po = string.Empty;
|
||||
@@ -25,11 +26,12 @@ namespace FEQ0000.Purchase
|
||||
if (e1.KeyCode == Keys.Escape) this.Close();
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
string prestatus = "PO";
|
||||
private void fPurchaseCR_Ipgo_Load(object sender, EventArgs e)
|
||||
{
|
||||
//담당자목록
|
||||
EnsureVisibleAndUsableSize();
|
||||
var ta = new dsPurchaseTableAdapters.EETGW_PurchaseCRTableAdapter();
|
||||
var dt = ta.GetByIdx(this.idx);
|
||||
if (dt == null || dt.Any() == false)
|
||||
|
||||
@@ -20,6 +20,7 @@ namespace FEQ0000.Purchase
|
||||
|
||||
private void rPurchase_Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
this.dtSD.Text = DateTime.Now.Year.ToString("0000") + "-01-01";
|
||||
this.dtED.Text = DateTime.Now.Year.ToString("0000") + "-12-31";
|
||||
|
||||
@@ -30,6 +31,23 @@ namespace FEQ0000.Purchase
|
||||
|
||||
//refreshData();
|
||||
}
|
||||
private void EnsureVisibleAndUsableSize()
|
||||
{
|
||||
var visibleBounds = Screen.GetWorkingArea(this);
|
||||
var isOutOfView = (Left > visibleBounds.Right) || (Top > visibleBounds.Bottom) ||
|
||||
(Right < visibleBounds.Left) || (Bottom < visibleBounds.Top);
|
||||
if (isOutOfView)
|
||||
{
|
||||
CenterToScreen();
|
||||
}
|
||||
var minW = Math.Max(320, this.MinimumSize.Width);
|
||||
var minH = Math.Max(240, this.MinimumSize.Height);
|
||||
|
||||
if (Width < minW || Height < minH)
|
||||
{
|
||||
this.Size = new Size(minW, minH);
|
||||
}
|
||||
}
|
||||
|
||||
private void btSearch_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
@@ -106,9 +106,10 @@ namespace FEQ0000
|
||||
e.Row["receive"] = "";// FCOMMON.info.Login.nameK;
|
||||
e.Row["place"] = "전자실";
|
||||
}
|
||||
|
||||
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
this.cmDate.SelectedIndex = 0;
|
||||
this.tbRequest.Text = string.Empty; //양진원 FCOMMON.info.Login.nameK;
|
||||
this.cmbSort.SelectedIndex = 0;
|
||||
@@ -1020,275 +1021,6 @@ namespace FEQ0000
|
||||
|
||||
}
|
||||
|
||||
//string MakeDataTableToHTML(string savefilenamexls = "")
|
||||
//{
|
||||
|
||||
// libxl.Book book = null;// = new libxl.BinBook();
|
||||
// libxl.Sheet sheet = null;
|
||||
|
||||
|
||||
// libxl.Format fTitle = null;
|
||||
// libxl.Format fDataStr = null;
|
||||
// libxl.Format fDataNum = null;
|
||||
|
||||
// if (savefilenamexls.isEmpty() == false)
|
||||
// {
|
||||
// book = new libxl.XmlBook();
|
||||
// book.setKey(FCOMMON.info.libxlCompany, FCOMMON.info.libxlKey);
|
||||
// sheet = book.addSheet("Data");
|
||||
|
||||
// fTitle = book.addFormat();
|
||||
// fDataStr = book.addFormat();
|
||||
// fDataNum = book.addFormat();
|
||||
|
||||
// fDataStr.alignH = libxl.AlignH.ALIGNH_CENTER;
|
||||
// fDataStr.alignV = libxl.AlignV.ALIGNV_CENTER;
|
||||
// fDataStr.setBorder(libxl.BorderStyle.BORDERSTYLE_THIN);
|
||||
// fDataStr.fillPattern = libxl.FillPattern.FILLPATTERN_SOLID;
|
||||
// fDataStr.patternForegroundColor = libxl.Color.COLOR_WHITE;
|
||||
|
||||
// fTitle.alignV = libxl.AlignV.ALIGNV_CENTER;
|
||||
// fTitle.alignH = libxl.AlignH.ALIGNH_CENTER;
|
||||
// fTitle.setBorder(libxl.BorderStyle.BORDERSTYLE_THIN);
|
||||
// fTitle.fillPattern = libxl.FillPattern.FILLPATTERN_SOLID;
|
||||
// fTitle.patternForegroundColor = libxl.Color.COLOR_GRAY25;
|
||||
|
||||
// fDataNum.alignH = libxl.AlignH.ALIGNH_GENERAL;
|
||||
// fDataNum.alignV = libxl.AlignV.ALIGNV_CENTER;
|
||||
// fDataNum.setBorder(libxl.BorderStyle.BORDERSTYLE_THIN);
|
||||
// fDataNum.fillPattern = libxl.FillPattern.FILLPATTERN_SOLID;
|
||||
// fDataNum.patternForegroundColor = libxl.Color.COLOR_WHITE;
|
||||
|
||||
// }
|
||||
|
||||
// //목록을 본문에 추가한다
|
||||
// System.Text.StringBuilder sb = new StringBuilder();
|
||||
// sb.AppendLine("<table border='1' cellspacing='0' cellpadding='1'>");
|
||||
// sb.AppendLine("<tr>");
|
||||
// sb.AppendLine("<td style='border:none;text-align:center;'> </td>");
|
||||
// sb.AppendLine("<td style='border:none;text-align:center;'> </td>");
|
||||
// sb.AppendLine("<td style='border:none;text-align:center;'> </td>");
|
||||
// sb.AppendLine("<td style='border:none;text-align:center;'> </td>");
|
||||
// sb.AppendLine("<td style='border:none;text-align:center;'> </td>");
|
||||
// sb.AppendLine("<td style='border:none;text-align:center;'> </td>");
|
||||
// sb.AppendLine("<td style='text-align:center;'>TOTAL</td>");
|
||||
// sb.AppendLine("<td style='text-align:center;' colspan='2'><strong>{금액}</strong></td>");
|
||||
// sb.AppendLine("<td style='border:none;text-align:center;'> </td>");
|
||||
// sb.AppendLine("</tr>");
|
||||
// sb.AppendLine("<tr>");
|
||||
// sb.AppendLine("<td style='text-align:center;background-color: aqua;'>SC</td>");
|
||||
// sb.AppendLine("<td style='text-align:center;background-color: aqua;'>자재번호</td>");
|
||||
// sb.AppendLine("<td style='text-align:center;background-color: aqua;'>청구자</td>");
|
||||
// sb.AppendLine("<td style='text-align:center;background-color: aqua;'>품목</td>");
|
||||
// sb.AppendLine("<td style='text-align:center;background-color: aqua;'>규격</td>");
|
||||
// sb.AppendLine("<td style='text-align:center;background-color: aqua;'>수량</td>");
|
||||
// sb.AppendLine("<td style='text-align:center;background-color: aqua;'>단가</td>");
|
||||
// sb.AppendLine("<td style='text-align:center;background-color: aqua;'>금액</td>");
|
||||
// sb.AppendLine("<td style='text-align:center;background-color: aqua;'>공급업체</td>");
|
||||
// sb.AppendLine("<td style='text-align:center;background-color: aqua;'>용도</td>");
|
||||
// sb.AppendLine("<td style='text-align:center;background-color: aqua;'>요청부서</td>");
|
||||
// sb.AppendLine("</tr>");
|
||||
// sb.AppendLine("<tbody>");
|
||||
|
||||
// var row = 0;
|
||||
// var col = 0;
|
||||
// if (sheet != null)
|
||||
// {
|
||||
// var basewidth = 15;
|
||||
// sheet.setRow(row, 30);
|
||||
// sheet.setCol(col, basewidth); sheet.writeStr(row, col++, "S/C", fTitle);
|
||||
// sheet.setCol(col, basewidth); sheet.writeStr(row, col++, "자재번호", fTitle);
|
||||
// sheet.setCol(col, basewidth); sheet.writeStr(row, col++, "청구자", fTitle);
|
||||
// sheet.setCol(col, (int)(basewidth * 2)); sheet.writeStr(row, col++, "품목", fTitle);
|
||||
// sheet.setCol(col, (int)(basewidth * 3)); sheet.writeStr(row, col++, "규격", fTitle);
|
||||
// sheet.setCol(col, (int)(basewidth * 0.5)); sheet.writeStr(row, col++, "수량", fTitle);
|
||||
// sheet.setCol(col, (int)(basewidth * 0.5)); sheet.writeStr(row, col++, "단가", fTitle);
|
||||
// sheet.setCol(col, basewidth); sheet.writeStr(row, col++, "금액", fTitle);
|
||||
// sheet.setCol(col, basewidth); sheet.writeStr(row, col++, "공급업체", fTitle);
|
||||
// sheet.setCol(col, basewidth); sheet.writeStr(row, col++, "용도", fTitle);
|
||||
// sheet.setCol(col, basewidth); sheet.writeStr(row, col++, "요청부서", fTitle);
|
||||
|
||||
// }
|
||||
|
||||
|
||||
|
||||
// var col_신청일 = fpSpread1_Sheet1.Columns["pdate"].Index;
|
||||
// var col_요청 = fpSpread1_Sheet1.Columns["requestName"].Index;
|
||||
// var col_CRLF = fpSpread1_Sheet1.Columns["crcf"].Index;
|
||||
|
||||
// var col_수령 = fpSpread1_Sheet1.Columns["receiveName"].Index;
|
||||
// var col_SID = fpSpread1_Sheet1.Columns["sid"].Index;
|
||||
// var col_품명 = fpSpread1_Sheet1.Columns["pumname"].Index;
|
||||
// var col_규격 = fpSpread1_Sheet1.Columns["pumscale"].Index;
|
||||
// var col_수량 = fpSpread1_Sheet1.Columns["pumqty"].Index;
|
||||
// var col_단가 = fpSpread1_Sheet1.Columns["pumprice"].Index;
|
||||
// var col_금액 = fpSpread1_Sheet1.Columns["pumamt"].Index;
|
||||
// var col_공급 = fpSpread1_Sheet1.Columns["supply"].Index;
|
||||
// var col_비고 = fpSpread1_Sheet1.Columns["bigo"].Index;
|
||||
|
||||
// var col_site = fpSpread1_Sheet1.Columns["site"].Index;
|
||||
// var col_분류 = fpSpread1_Sheet1.Columns["분류"].Index;
|
||||
// var col_sc = fpSpread1_Sheet1.Columns["sc"].Index;
|
||||
|
||||
// int totalamt = 0;
|
||||
// row = 1;
|
||||
// col = 0;
|
||||
// for (int i = 0; i < this.fpSpread1_Sheet1.RowCount; i++)
|
||||
// {
|
||||
// var v신청일 = fpSpread1_Sheet1.Cells[i, col_신청일].Value;
|
||||
// var v요청 = fpSpread1_Sheet1.Cells[i, col_요청].Value;
|
||||
// var vCRCF = fpSpread1_Sheet1.Cells[i, col_CRLF].Value;
|
||||
|
||||
// var v수령 = fpSpread1_Sheet1.Cells[i, col_수령].Value;
|
||||
// var vSID = fpSpread1_Sheet1.Cells[i, col_SID].Value;
|
||||
// var v품명 = fpSpread1_Sheet1.Cells[i, col_품명].Value;
|
||||
// var v규격 = fpSpread1_Sheet1.Cells[i, col_규격].Value;
|
||||
// var v수량 = fpSpread1_Sheet1.Cells[i, col_수량].Value;
|
||||
// var v단가 = fpSpread1_Sheet1.Cells[i, col_단가].Value;
|
||||
// var v금액 = fpSpread1_Sheet1.Cells[i, col_금액].Value;
|
||||
// var v공급 = fpSpread1_Sheet1.Cells[i, col_공급].Value;
|
||||
// var v비고 = fpSpread1_Sheet1.Cells[i, col_비고].Value;
|
||||
|
||||
// var vSITE = fpSpread1_Sheet1.Cells[i, col_site].Value;
|
||||
// var v분류 = fpSpread1_Sheet1.Cells[i, col_분류].Value;
|
||||
// var vsc = fpSpread1_Sheet1.Cells[i, col_sc].Value;
|
||||
|
||||
// var s신청일 = String.Empty;
|
||||
// var s요청 = String.Empty;
|
||||
// var sCRCF = String.Empty;
|
||||
// var s수령 = String.Empty;
|
||||
// var sSID = String.Empty;
|
||||
// var s품명 = String.Empty;
|
||||
// var s규격 = String.Empty;
|
||||
// var s수량 = "0";
|
||||
// var s단가 = "0";
|
||||
// var s금액 = "0";
|
||||
// var s입고 = String.Empty;
|
||||
// var s공급 = String.Empty;
|
||||
// var s비고 = String.Empty;
|
||||
// var sSTIE = string.Empty;
|
||||
// var s분류 = string.Empty;
|
||||
// var sSC = string.Empty;
|
||||
|
||||
// if (v신청일 != null) s신청일 = v신청일.ToString();
|
||||
// if (v요청 != null) s요청 = v요청.ToString();
|
||||
// if (vCRCF != null) sCRCF = vCRCF.ToString();
|
||||
// if (v수령 != null) s수령 = v수령.ToString();
|
||||
// if (vSID != null) sSID = vSID.ToString();
|
||||
// if (v품명 != null) s품명 = v품명.ToString();
|
||||
// if (v규격 != null) s규격 = v규격.ToString();
|
||||
// if (v수량 != null) s수량 = v수량.ToString();
|
||||
// if (v단가 != null) s단가 = v단가.ToString();
|
||||
// if (v금액 != null) s금액 = v금액.ToString();
|
||||
// if (v공급 != null) s공급 = v공급.ToString();
|
||||
// if (vSITE != null) sSTIE = vSITE.ToString();
|
||||
// if (v분류 != null) s분류 = v분류.ToString();
|
||||
// if (vsc != null) sSC = vsc.ToString();
|
||||
|
||||
|
||||
// //sb.AppendLine("<td style='text-align:center;background-color: aqua;'>SC</td>");
|
||||
// //sb.AppendLine("<td style='text-align:center;background-color: aqua;'>자재번호</td>");
|
||||
// //sb.AppendLine("<td style='text-align:center;background-color: aqua;'>청구자</td>");
|
||||
// //sb.AppendLine("<td style='text-align:center;background-color: aqua;'>품목</td>");
|
||||
// //sb.AppendLine("<td style='text-align:center;background-color: aqua;'>규격</td>");
|
||||
// //sb.AppendLine("<td style='text-align:center;background-color: aqua;'>수량</td>");
|
||||
// //sb.AppendLine("<td style='text-align:center;background-color: aqua;'>단가</td>");
|
||||
// //sb.AppendLine("<td style='text-align:center;background-color: aqua;'>금액</td>");
|
||||
// //sb.AppendLine("<td style='text-align:center;background-color: aqua;'>공급업체</td>");
|
||||
// //sb.AppendLine("<td style='text-align:center;background-color: aqua;'>요청부서</td>");
|
||||
|
||||
|
||||
// var qty = int.Parse(s수량);
|
||||
// var price = int.Parse(s단가);
|
||||
// var amt = int.Parse(s금액);
|
||||
// totalamt += amt;
|
||||
|
||||
// sb.AppendLine("<tr>");
|
||||
// sb.AppendLine("<td>" + getmaxstr(sSC) + "</td>");
|
||||
// sb.AppendLine("<td>" + getmaxstr(sSID) + "</td>");
|
||||
// sb.AppendLine("<td>" + getmaxstr(s요청) + "</td>");
|
||||
// sb.AppendLine("<td>" + getmaxstr(s품명) + "</td>");
|
||||
// sb.AppendLine("<td>" + getmaxstr(s규격) + "</td>");
|
||||
// sb.AppendLine("<td style='text-align:center'>" + qty.ToString("N0") + "</td>");
|
||||
// sb.AppendLine("<td style='text-align:right'>" + price.ToString("N0") + "</td>");
|
||||
// sb.AppendLine("<td style='text-align:right'>" + amt.ToString("N0") + "</td>");
|
||||
// sb.AppendLine("<td>" + getmaxstr(s공급) + "</td>");
|
||||
// sb.AppendLine("<td>" + s비고 + "</td>");
|
||||
// sb.AppendLine("<td>전자실</td>");
|
||||
|
||||
// if (sheet != null)
|
||||
// {
|
||||
// col = 0;
|
||||
// sheet.setRow(row, 23);
|
||||
// sheet.writeStr(row, col++, sSC, fDataStr);
|
||||
// sheet.writeStr(row, col++, sSID, fDataStr);
|
||||
// sheet.writeStr(row, col++, s요청, fDataStr);
|
||||
// sheet.writeStr(row, col++, s품명, fDataStr);
|
||||
// sheet.writeStr(row, col++, s규격, fDataStr);
|
||||
// sheet.writeNum(row, col++, qty, fDataNum);
|
||||
// sheet.writeNum(row, col++, price, fDataNum);
|
||||
// sheet.writeNum(row, col++, amt, fDataNum);
|
||||
// sheet.writeStr(row, col++, s공급, fDataStr);
|
||||
// sheet.writeStr(row, col++, s비고, fDataStr);
|
||||
// sheet.writeStr(row, col++, "전자실", fDataStr);
|
||||
// row += 1;
|
||||
// }
|
||||
|
||||
// ////sb.AppendLine("<td>" + getmaxstr(sSTIE) + "</td>");
|
||||
// //''sb.AppendLine("<td>" + getmaxstr(s분류) + "</td>");
|
||||
// //sb.AppendLine("<td>" + getmaxstr(sCRCF) + "</td>");
|
||||
// //sb.AppendLine("<td>" + getmaxstr(s수령) + "</td>");
|
||||
|
||||
|
||||
|
||||
// sb.AppendLine("</tr>");
|
||||
// }
|
||||
|
||||
// sb.AppendLine("<tr>");
|
||||
// sb.AppendLine("<td style='border:none;text-align:center;'> </td>");
|
||||
// sb.AppendLine("<td style='border:none;text-align:center;'> </td>");
|
||||
// sb.AppendLine("<td style='border:none;text-align:center;'> </td>");
|
||||
// sb.AppendLine("<td style='border:none;text-align:center;'> </td>");
|
||||
// sb.AppendLine("<td style='border:none;text-align:center;'> </td>");
|
||||
// sb.AppendLine("<td style='border:none;text-align:center;'> </td>");
|
||||
// sb.AppendLine("<td style='text-align:center;'>TOTAL</td>");
|
||||
// sb.AppendLine("<td style='text-align:center;' colspan='3'><strong>{금액}</strong></td>");
|
||||
// sb.AppendLine("<td style='border:none;text-align:center;'> </td>");
|
||||
// sb.AppendLine("</tr>");
|
||||
|
||||
// sb.AppendLine("</tbody>");
|
||||
// sb.AppendLine("</table>");
|
||||
|
||||
|
||||
// if (sheet != null)
|
||||
// {
|
||||
// col = 0;
|
||||
// sheet.setRow(row, 30);
|
||||
// sheet.writeStr(row, col++, "합계", fTitle);
|
||||
// sheet.writeStr(row, col++, "", fTitle);
|
||||
// sheet.writeStr(row, col++, "", fTitle);
|
||||
// sheet.writeStr(row, col++, "", fTitle);
|
||||
// sheet.writeStr(row, col++, "", fTitle);
|
||||
// sheet.writeStr(row, col++, "", fTitle);
|
||||
// sheet.writeStr(row, col++, "", fTitle);
|
||||
// sheet.writeNum(row, col++, totalamt, fTitle);
|
||||
// sheet.setMerge(row, row, col - 1, col + 2);
|
||||
// row += 1;
|
||||
// }
|
||||
|
||||
|
||||
// if (book != null)
|
||||
// {
|
||||
// try
|
||||
// {
|
||||
// book.save(savefilenamexls);
|
||||
// }
|
||||
// catch { }
|
||||
// }
|
||||
// return sb.ToString().Replace("{금액}", totalamt.ToString("N0"));
|
||||
//}
|
||||
|
||||
|
||||
|
||||
private void toolStripButton3_Click_1(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using FCOMMON;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -10,7 +11,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FEQ0000
|
||||
{
|
||||
public partial class fPurchaseEBList : Form
|
||||
public partial class fPurchaseEBList : fBase
|
||||
{
|
||||
public fPurchaseEBList(dsPurchase.EETGW_PurchaseEBDataTable dt)
|
||||
{
|
||||
@@ -24,7 +25,7 @@ namespace FEQ0000
|
||||
|
||||
private void fEBoardReport_Load(object sender, EventArgs e)
|
||||
{
|
||||
//기본엑셀파일을 가져온다
|
||||
EnsureVisibleAndUsableSize();
|
||||
this.Show();
|
||||
this.bs1.Sort = "sc,sid,pumname";
|
||||
this.bs1.Filter = "sc <> ''";
|
||||
|
||||
@@ -13,7 +13,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FEQ0000
|
||||
{
|
||||
public partial class fPurchaseEB_Add : Form
|
||||
public partial class fPurchaseEB_Add : fBase
|
||||
{
|
||||
BindingSource bsManu;
|
||||
BindingSource bsModel;
|
||||
@@ -89,7 +89,7 @@ namespace FEQ0000
|
||||
//Boolean advInput = false;
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
//advInput = FCOMMON.Util.getBit(FCOMMON.info.Login.gpermission, (int)FCOMMON.eGroupPermission.purchase_adv);
|
||||
EnsureVisibleAndUsableSize();
|
||||
tbPumName.ImeMode = ImeMode.Alpha;
|
||||
|
||||
//상태
|
||||
|
||||
@@ -83,7 +83,7 @@ namespace FEQ0000
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
|
||||
EnsureVisibleAndUsableSize();
|
||||
//일반사용자의경우에는 상태를 변경하지 못한다.
|
||||
int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.purchaseEB));
|
||||
IsAdmin = curLevel >= 5;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using FCOMMON;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -10,7 +11,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FEQ0000.Purchase
|
||||
{
|
||||
public partial class fPurchaseEB_Ipgo : Form
|
||||
public partial class fPurchaseEB_Ipgo : fBase
|
||||
{
|
||||
int idx = -1;
|
||||
string po = string.Empty;
|
||||
@@ -28,7 +29,7 @@ namespace FEQ0000.Purchase
|
||||
string prestatus = "PO";
|
||||
private void fPurchaseCR_Ipgo_Load(object sender, EventArgs e)
|
||||
{
|
||||
//담당자목록
|
||||
EnsureVisibleAndUsableSize();
|
||||
var ta = new dsPurchaseTableAdapters.PurchaseTableAdapter();
|
||||
var dt = ta.GetByIdx(this.idx);
|
||||
if (dt == null || dt.Any() == false)
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
using System;
|
||||
using FarPoint.Win.Spread.CellType;
|
||||
using FCOMMON;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -9,7 +11,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FEQ0000.Purchase
|
||||
{
|
||||
public partial class rPurchaseEB : Form
|
||||
public partial class rPurchaseEB : fBase
|
||||
{
|
||||
public rPurchaseEB()
|
||||
{
|
||||
@@ -20,6 +22,7 @@ namespace FEQ0000.Purchase
|
||||
|
||||
private void rPurchase_Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
this.dtSD.Text = DateTime.Now.Year.ToString("0000") + "-01-01";
|
||||
this.dtED.Text = DateTime.Now.Year.ToString("0000") + "-12-31";
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using FCOMMON;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -10,7 +11,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FEQ0000.Purchase
|
||||
{
|
||||
public partial class fInputSC : Form
|
||||
public partial class fInputSC : fBase
|
||||
{
|
||||
public fInputSC()
|
||||
{
|
||||
@@ -18,5 +19,10 @@ namespace FEQ0000.Purchase
|
||||
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
|
||||
Properties.Settings.Default["EEEntities"] = FCOMMON.info.CS;
|
||||
}
|
||||
protected override void OnLoad(EventArgs e)
|
||||
{
|
||||
base.OnLoad(e);
|
||||
EnsureVisibleAndUsableSize();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using FCOMMON;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -11,7 +12,7 @@ using YARTE.UI.Buttons;
|
||||
|
||||
namespace FEQ0000.Purchase
|
||||
{
|
||||
public partial class fMailForm : Form
|
||||
public partial class fMailForm : fBase
|
||||
{
|
||||
string Cate = string.Empty;
|
||||
public fMailForm(string cate)
|
||||
@@ -37,6 +38,7 @@ namespace FEQ0000.Purchase
|
||||
|
||||
private void fMailForm_Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
if (Cate.isEmpty() == false)
|
||||
{
|
||||
var db = new DataClasses1DataContext();
|
||||
|
||||
@@ -158,9 +158,9 @@
|
||||
this.btViewDel = new System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton3 = new System.Windows.Forms.ToolStripButton();
|
||||
this.fpSpread1 = new FarPoint.Win.Spread.FpSpread();
|
||||
this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
|
||||
@@ -937,6 +937,30 @@
|
||||
this.fpSpread1.ClipboardPasted += new FarPoint.Win.Spread.ClipboardPastedEventHandler(this.fpSpread1_ClipboardPasted);
|
||||
this.fpSpread1.CellClick += new FarPoint.Win.Spread.CellClickEventHandler(this.fpSpread1_CellClick);
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.label1.Font = new System.Drawing.Font("맑은 고딕", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.label1.Location = new System.Drawing.Point(0, 639);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Padding = new System.Windows.Forms.Padding(5, 0, 0, 0);
|
||||
this.label1.Size = new System.Drawing.Size(1334, 23);
|
||||
this.label1.TabIndex = 6;
|
||||
this.label1.Text = "--";
|
||||
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.label2.Font = new System.Drawing.Font("맑은 고딕", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.label2.Location = new System.Drawing.Point(0, 616);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Padding = new System.Windows.Forms.Padding(5, 0, 0, 0);
|
||||
this.label2.Size = new System.Drawing.Size(1334, 23);
|
||||
this.label2.TabIndex = 7;
|
||||
this.label2.Text = "--";
|
||||
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// fpSpread1_Sheet1
|
||||
//
|
||||
this.fpSpread1_Sheet1.Reset();
|
||||
@@ -1026,6 +1050,7 @@
|
||||
this.fpSpread1_Sheet1.Columns.Get(5).DataField = "place";
|
||||
this.fpSpread1_Sheet1.Columns.Get(5).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(5).Label = "보관소";
|
||||
this.fpSpread1_Sheet1.Columns.Get(5).Tag = "place";
|
||||
this.fpSpread1_Sheet1.Columns.Get(5).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(5).Width = 51F;
|
||||
this.fpSpread1_Sheet1.Columns.Get(6).AllowAutoFilter = true;
|
||||
@@ -1300,30 +1325,6 @@
|
||||
this.fpSpread1_Sheet1.ShowRowSelector = true;
|
||||
this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1;
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.label1.Font = new System.Drawing.Font("맑은 고딕", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.label1.Location = new System.Drawing.Point(0, 639);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Padding = new System.Windows.Forms.Padding(5, 0, 0, 0);
|
||||
this.label1.Size = new System.Drawing.Size(1334, 23);
|
||||
this.label1.TabIndex = 6;
|
||||
this.label1.Text = "--";
|
||||
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.label2.Font = new System.Drawing.Font("맑은 고딕", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.label2.Location = new System.Drawing.Point(0, 616);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Padding = new System.Windows.Forms.Padding(5, 0, 0, 0);
|
||||
this.label2.Size = new System.Drawing.Size(1334, 23);
|
||||
this.label2.TabIndex = 7;
|
||||
this.label2.Text = "--";
|
||||
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// fPurchaseNR
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
@@ -1438,7 +1439,6 @@
|
||||
private System.Windows.Forms.ToolStripMenuItem 상태일괄변경ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem 사용자내보내기ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripButton toolStripButton8;
|
||||
private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1;
|
||||
private System.Windows.Forms.ToolStripMenuItem 메일전송ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem 현재목록ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem 선택목록ToolStripMenuItem;
|
||||
@@ -1447,5 +1447,6 @@
|
||||
private System.Windows.Forms.ToolStripMenuItem 선택목록입고양식ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem5;
|
||||
private System.Windows.Forms.ToolStripMenuItem btMakeItemsData;
|
||||
private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ using System.Data.SqlClient;
|
||||
|
||||
namespace FEQ0000
|
||||
{
|
||||
public partial class fPurchaseNR : FCOMMON.fBase
|
||||
public partial class fPurchaseNR : fBase
|
||||
{
|
||||
string fn_fpcolsize = "";
|
||||
|
||||
@@ -112,6 +112,7 @@ namespace FEQ0000
|
||||
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
this.cmDate.SelectedIndex = 0;
|
||||
this.tbRequest.Text = string.Empty; //양진원 FCOMMON.info.Login.nameK;
|
||||
this.cmbSort.SelectedIndex = 0;
|
||||
@@ -315,6 +316,8 @@ namespace FEQ0000
|
||||
var crcfindex = this.fpSpread1.ActiveSheet.Columns["crcf"].Index;
|
||||
var prjindex = this.fpSpread1.ActiveSheet.Columns["projectidx"].Index;
|
||||
var cstsindex = this.fpSpread1.ActiveSheet.Columns["conf_status"].Index;
|
||||
var nameindex = this.fpSpread1.ActiveSheet.Columns["pumname"].Index; // pumname
|
||||
var placeindex = this.fpSpread1.ActiveSheet.Columns["place"].Index; // pumname
|
||||
|
||||
for (int i = 0; i < this.fpSpread1.ActiveSheet.Rows.Count; i++)
|
||||
{
|
||||
@@ -325,13 +328,17 @@ namespace FEQ0000
|
||||
var value = this.fpSpread1.ActiveSheet.GetValue(i, delindex);
|
||||
var crcf = this.fpSpread1.ActiveSheet.GetValue(i, crcfindex);
|
||||
var v_confstats = this.fpSpread1.ActiveSheet.GetValue(i, cstsindex);
|
||||
var v_pumname = this.fpSpread1.ActiveSheet.GetValue(i, nameindex);
|
||||
var v_place = this.fpSpread1.ActiveSheet.GetValue(i, placeindex);
|
||||
|
||||
|
||||
var str_place = "";
|
||||
var str_pumname = string.Empty;
|
||||
var str_crcf = string.Empty;
|
||||
var str_confstats = string.Empty;
|
||||
if (crcf != null) str_crcf = crcf.ToString();
|
||||
if (v_confstats != null) str_confstats = v_confstats.ToString();
|
||||
|
||||
if (v_pumname != null) str_pumname = v_pumname.ToString();
|
||||
if (v_place != null) str_place = v_place.ToString().ToUpper();
|
||||
|
||||
if (value != null && (Boolean)value)
|
||||
{
|
||||
@@ -360,7 +367,10 @@ namespace FEQ0000
|
||||
break;
|
||||
case "---":
|
||||
case "----":
|
||||
this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.Blue;
|
||||
if (str_place.Contains("SPR") || str_pumname.ToUpper().Contains("SPR"))
|
||||
this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.Violet;
|
||||
else
|
||||
this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.Blue;
|
||||
break;
|
||||
case "received":
|
||||
this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.Gray;
|
||||
@@ -1204,7 +1214,7 @@ namespace FEQ0000
|
||||
{
|
||||
var drv = this.bs.Current as DataRowView;
|
||||
var dr = drv.Row as dsPurchase.PurchaseRow;
|
||||
if(dr.state == "PR" && dr.po.isEmpty()==false)
|
||||
if (dr.state == "PR" && dr.po.isEmpty() == false)
|
||||
{
|
||||
dr.state = "PO";
|
||||
}
|
||||
@@ -1588,7 +1598,7 @@ namespace FEQ0000
|
||||
//if ((cnt) % 10 == 0)
|
||||
{
|
||||
this.Text = $"품목업데이트 수량(I:{cntI}/U:{cntU})";
|
||||
|
||||
|
||||
}
|
||||
System.Windows.Forms.Application.DoEvents();
|
||||
System.Threading.Thread.Sleep(500);
|
||||
|
||||
@@ -455,7 +455,7 @@
|
||||
</value>
|
||||
</data>
|
||||
<metadata name="fpSpread1_Sheet1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>579, 23</value>
|
||||
<value>582, 23</value>
|
||||
</metadata>
|
||||
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>65</value>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using FCOMMON;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -10,7 +11,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FEQ0000
|
||||
{
|
||||
public partial class fPurchaseNRList : Form
|
||||
public partial class fPurchaseNRList : fBase
|
||||
{
|
||||
public fPurchaseNRList(dsPurchase.PurchaseDataTable dt)
|
||||
{
|
||||
@@ -24,6 +25,7 @@ namespace FEQ0000
|
||||
|
||||
private void fEBoardReport_Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
//기본엑셀파일을 가져온다
|
||||
this.Show();
|
||||
this.bs1.Sort = "sc,sid,pumname";
|
||||
|
||||
@@ -89,7 +89,7 @@ namespace FEQ0000
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
|
||||
EnsureVisibleAndUsableSize();
|
||||
//일반사용자의경우에는 상태를 변경하지 못한다.
|
||||
int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.purchase));
|
||||
IsAdmin = curLevel >= 5;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using FCOMMON;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -10,7 +11,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FEQ0000.Purchase
|
||||
{
|
||||
public partial class fPurchaseNR_Ipgo : Form
|
||||
public partial class fPurchaseNR_Ipgo : fBase
|
||||
{
|
||||
int idx = -1;
|
||||
string po = string.Empty;
|
||||
@@ -29,7 +30,7 @@ namespace FEQ0000.Purchase
|
||||
string prestatus = "PO";
|
||||
private void fPurchaseCR_Ipgo_Load(object sender, EventArgs e)
|
||||
{
|
||||
//담당자목록
|
||||
EnsureVisibleAndUsableSize();
|
||||
var ta = new dsPurchaseTableAdapters.PurchaseTableAdapter();
|
||||
var dt = ta.GetByIdx(this.idx);
|
||||
if (dt == null || dt.Any() == false)
|
||||
|
||||
@@ -13,7 +13,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FEQ0000
|
||||
{
|
||||
public partial class fPurchase_Add : Form
|
||||
public partial class fPurchase_Add : fBase
|
||||
{
|
||||
BindingSource bsManu;
|
||||
BindingSource bsModel;
|
||||
@@ -83,6 +83,7 @@ namespace FEQ0000
|
||||
Boolean advInput = false;
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
advInput = FCOMMON.Util.getBit(FCOMMON.info.Login.gpermission, (int)FCOMMON.eGroupPermission.purchase_adv);
|
||||
tbPumName.ImeMode = ImeMode.Alpha;
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using FCOMMON;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -9,7 +10,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FEQ0000
|
||||
{
|
||||
public partial class fPurchase_AddS : Form
|
||||
public partial class fPurchase_AddS : fBase
|
||||
{
|
||||
BindingSource bsManu;
|
||||
BindingSource bsModel;
|
||||
@@ -47,7 +48,7 @@ namespace FEQ0000
|
||||
//Boolean advInput = false;
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
EnsureVisibleAndUsableSize();
|
||||
//상태
|
||||
var stateList = FCOMMON.DBM.getCodeTable("04");
|
||||
this.cmbState.DisplayMember = "Value";
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using FCOMMON;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -9,7 +10,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FEQ0000
|
||||
{
|
||||
public partial class fPurchase_Data : Form
|
||||
public partial class fPurchase_Data : fBase
|
||||
{
|
||||
public fPurchase_Data()
|
||||
{
|
||||
@@ -17,6 +18,11 @@ namespace FEQ0000
|
||||
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
|
||||
Properties.Settings.Default["EEEntities"] = FCOMMON.info.CS;
|
||||
}
|
||||
protected override void OnLoad(EventArgs e)
|
||||
{
|
||||
base.OnLoad(e);
|
||||
EnsureVisibleAndUsableSize();
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using FCOMMON;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -9,7 +10,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FEQ0000
|
||||
{
|
||||
public partial class fPurchase_Import : Form
|
||||
public partial class fPurchase_Import : fBase
|
||||
{
|
||||
DataTable dt = new dsPurchase.PurchaseDataTable();
|
||||
DataTable dtExcel = new DataTable();
|
||||
@@ -23,6 +24,7 @@ namespace FEQ0000
|
||||
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
this.sd.Value = DateTime.Now.AddMonths(-1);
|
||||
this.ed.Value = DateTime.Now;
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user