EB_ConstNew { get; set; }
+ public string EB_BoardName { get; set; }
+ }
+}
diff --git a/JobReportMailService/Properties/AssemblyInfo.cs b/JobReportMailService/Properties/AssemblyInfo.cs
index ba65e0b..6d592ec 100644
--- a/JobReportMailService/Properties/AssemblyInfo.cs
+++ b/JobReportMailService/Properties/AssemblyInfo.cs
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호를
// 기본값으로 할 수 있습니다.
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("21.03.25.1300")]
-[assembly: AssemblyFileVersion("21.03.25.1300")]
+[assembly: AssemblyVersion("21.05.16.1600")]
+[assembly: AssemblyFileVersion("21.05.16.1600")]
diff --git a/JobReportMailService/fNoScheduleDayWeek.Designer.cs b/JobReportMailService/fNoScheduleDayWeek.Designer.cs
new file mode 100644
index 0000000..ee9a232
--- /dev/null
+++ b/JobReportMailService/fNoScheduleDayWeek.Designer.cs
@@ -0,0 +1,83 @@
+
+namespace JobReportMailService
+{
+ partial class fNoScheduleDayWeek
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fNoScheduleDayWeek));
+ this.toolStrip1 = new System.Windows.Forms.ToolStrip();
+ this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
+ this.toolStrip1.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // timer1
+ //
+ this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
+ //
+ // toolStrip1
+ //
+ this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.toolStripButton1});
+ this.toolStrip1.Location = new System.Drawing.Point(0, 0);
+ this.toolStrip1.Name = "toolStrip1";
+ this.toolStrip1.Size = new System.Drawing.Size(473, 25);
+ this.toolStrip1.TabIndex = 2;
+ this.toolStrip1.Text = "toolStrip1";
+ //
+ // toolStripButton1
+ //
+ this.toolStripButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton1.Image")));
+ this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
+ this.toolStripButton1.Name = "toolStripButton1";
+ this.toolStripButton1.Size = new System.Drawing.Size(48, 22);
+ this.toolStripButton1.Text = "Run";
+ this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click);
+ //
+ // fNoScheduleDayWeek
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(473, 416);
+ this.Controls.Add(this.toolStrip1);
+ this.Name = "fNoScheduleDayWeek";
+ this.Text = "스케쥴없음(주보고)";
+ this.Load += new System.EventHandler(this.fJobReportDay_Load);
+ this.Controls.SetChildIndex(this.toolStrip1, 0);
+ this.toolStrip1.ResumeLayout(false);
+ this.toolStrip1.PerformLayout();
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.ToolStrip toolStrip1;
+ private System.Windows.Forms.ToolStripButton toolStripButton1;
+ }
+}
\ No newline at end of file
diff --git a/JobReportMailService/fNoScheduleDayWeek.cs b/JobReportMailService/fNoScheduleDayWeek.cs
new file mode 100644
index 0000000..ddbc41f
--- /dev/null
+++ b/JobReportMailService/fNoScheduleDayWeek.cs
@@ -0,0 +1,241 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace JobReportMailService
+{
+ public partial class fNoScheduleDayWeek : fChildBase
+ {
+
+ public fNoScheduleDayWeek()
+ {
+ InitializeComponent();
+ }
+
+ private void fJobReportDay_Load(object sender, EventArgs e)
+ {
+ task = Task.Run(() =>
+ {
+ while (taskrun)
+ {
+ if (taskwait)
+ {
+ if (task != null)
+ task.Wait(1000);
+ continue;
+ }
+
+ var ts = DateTime.Now - LastUpdateTime;
+ if (ts.TotalMinutes <= 15)
+ {
+ if ((DateTime.Now - ConsoleTime).TotalHours >= 1.0)
+ {
+ addmsg("15분 미만이라 동작하지 않습니다");
+ ConsoleTime = DateTime.Now;
+ }
+ }
+ else if (DateTime.Now.DayOfWeek != DayOfWeek.Monday)
+ {
+ //토,일요일에는 동작하지 않는다
+ if ((DateTime.Now - ConsoleTime).TotalHours >= 1.0)
+ {
+ addmsg("월요일에만 동작 합니다");
+ ConsoleTime = DateTime.Now;
+ }
+ }
+ else if (DateTime.Now.Hour < 10) //10시부터 동작한다
+ {
+ if ((DateTime.Now - ConsoleTime).TotalHours >= 1.0)
+ {
+ addmsg("9시 이전에는 동작하지 않습니다");
+ ConsoleTime = DateTime.Now;
+ }
+ }
+ else
+ {
+ LastUpdateTime = DateTime.Now;
+ try
+ {
+ RunData();
+ }
+ catch (Exception ex)
+ {
+ addmsg(ex.Message);
+ task.Wait(5000);
+ }
+ }
+ Task.Delay(Delaytime).Wait();
+ }
+
+ });
+ timer1.Start();
+ }
+
+ void RunData()
+ {
+ addmsg("스케쥴입력(주) 미 작성자 추출 작업을 시작 합니다");
+
+
+ var db = new EEEntities();
+
+ //메일양식이 지정되어있는지 체크
+ var MailJD = db.MailForm.AsNoTracking().Where(t => t.gcode == Pub.vGcode & t.cate == "SN").FirstOrDefault();
+
+ if (MailJD == null)
+ {
+ //토,일요일에는 동작하지 않는다
+ addmsg("메일 양식(SN)이 입력되지 않았습니다");
+ return;
+ }
+
+ //기준일자는 오늘부터 -15일이다
+ var sd = DateTime.Now.AddDays(-15);
+ var ed = DateTime.Now;
+ var str_sd = sd.ToShortDateString();
+ var str_ed = ed.ToShortDateString();
+ var str_dt = DateTime.Now.ToShortDateString();
+
+ //오늘날짜로 데이터가 등록되어있느지 확인한다.
+ db = new EEEntities();
+ var Existweek = db.MailData.AsNoTracking().Where(t => t.gcode == Pub.vGcode && t.cate == "SN" && t.wuid == "395552" && t.pdate == str_dt).Any();
+ if (Existweek)
+ {
+ addmsg($"스케쥴(day)({str_dt}) 보고 메일이 이미 등록되어 있습니다");
+ return;
+ }
+
+ //대상 사용자 목록을 추출한다
+ //var ta = new DataSet1TableAdapters.vMailingProjectScheduleTableAdapter();
+ //var users = new DataSet1.vMailingProjectScheduleDataTable();
+ //ta.Fill(users);
+ db = new EEEntities();
+ var projects = db.Projects.AsNoTracking().Where(t => t.gcode == Pub.vGcode && t.status == "진행" && (t.isdel == null || t.isdel == false)).OrderBy(t => t.sdate).ToList();
+ // db.vMailingProjectSchedule.ToList();// .vJobReportForUser.Where(t => t.gcode == Pub.vGcode).GroupBy(t => t.id);
+
+ addmsg($"{projects.Count} 건의 데이터가 확인 되었습니다");
+
+ //메일데이터 생성
+ var body = new System.Text.StringBuilder();
+ body.AppendLine("");
+ body.AppendLine("");
+ body.AppendLine("| 시작일 | ");
+ body.AppendLine("상태 | ");
+ body.AppendLine("번호 | ");
+ body.AppendLine("Project | ");
+ body.AppendLine("요청 | ");
+ body.AppendLine("Champion | ");
+ body.AppendLine("협업 | ");
+ body.AppendLine("만료일 | ");
+ body.AppendLine("수량 | ");
+ body.AppendLine("외주금액 | ");
+ body.AppendLine("자체금액 | ");
+ body.AppendLine("절감액 | ");
+ body.AppendLine("CR/CF | ");
+ body.AppendLine("
");
+
+ //var gp = projects.GroupBy(t => t.idx);
+ foreach (var row in projects)
+ {
+
+ //스케쥴에서 데이터를 찾는다.
+ var cnt = db.EETGW_ProjectsSchedule.AsNoTracking().Where(t => t.gcode == Pub.vGcode && t.project == row.idx && t.appoval > 1).Any();
+ if (cnt == true) continue; //등록되었다
+
+ body.AppendLine($"");
+ body.AppendLine($"| {row.sdate} | ");
+ body.AppendLine($"{row.status} | ");
+ body.AppendLine($"{row.idx} | ");
+ body.AppendLine($"{row.name} | ");
+ body.AppendLine($"{row.reqstaff} | ");
+ body.AppendLine($"{row.userManager} | ");
+ body.AppendLine($"{row.usermain}/{row.usersub}/{row.userhw2} | ");
+ body.AppendLine($"{row.edate} | ");
+ body.AppendLine($"{row.cnt} | ");
+ body.AppendLine($"{row.costo} | ");
+ body.AppendLine($"{row.costn} | ");
+ body.AppendLine($"{row.costo - row.costn} | ");
+ body.AppendLine($"{row.orderno} | ");
+ body.AppendLine($"
");
+ }
+ body.AppendLine("
");
+
+ //일별경고(월요일제외)
+
+ if (MailJD != null)
+ {
+ var mail_subject = MailJD.subject;//.Replace("{담당자}", userinfo.name).Replace("{사번}", userinfo.id);
+ var mail_to = MailJD.tolist;//.Replace("{담당자}", userinfo.email);
+ var mail_cc = string.Empty; //
+ if (MailJD.cc != null) mail_cc = MailJD.cc;//.Replace("{담당자}", userinfo.email);
+ var mail_bcc = string.Empty;
+ if (MailJD.bcc != null) mail_bcc = MailJD.bcc;//.Replace("{담당자}", userinfo.email);
+ var mail_body = MailJD.body;//.Replace("{담당자}", userinfo.name);
+ //mail_body = mail_body.Replace("{사번}", userinfo.id);
+
+ //메일본문을 생성해서 진행해야함
+ var mail_content = mail_body.Replace("{data}", body.ToString());
+
+ //메일데이터를 생성한다.
+ //mail_to = "chikyun.kim@amkor.co.kr";
+ //mail_bcc = string.Empty;
+ //mail_cc = string.Empty;
+
+ mail_to = Pub.MailSort(mail_to, MailJD.exceptmail);
+ if (string.IsNullOrEmpty(mail_to) == false)
+ {
+ db = new EEEntities();
+ db.MailData.Add(new MailData
+ {
+ gcode = Pub.vGcode,
+ cate = "SN",
+ subject = mail_subject,
+ fromlist = "eetgw@amkor.co.kr",
+ tolist = Pub.MailSort(mail_to, MailJD.exceptmail),
+ bcc = mail_bcc,
+ cc = Pub.MailSort(mail_cc, MailJD.exceptmailcc),
+ pdate = DateTime.Now.ToShortDateString(),
+ body = mail_content,
+ wuid = "395552",
+ wdate = DateTime.Now,
+ });
+ db.SaveChanges();
+ addmsg($"메일 전송 완료(no스케쥴week)");
+ System.Threading.Thread.Sleep(10000);
+ }
+ else
+ {
+ addmsg("받는사람이 소거되어 메일을 생성하지 않습니다");
+ }
+ }
+ }
+
+ private void toolStripButton1_Click(object sender, EventArgs e)
+ {
+ taskwait = !taskwait;
+ }
+
+ private void timer1_Tick(object sender, EventArgs e)
+ {
+ if (task != null)
+ {
+ if (task.IsCompleted) this.toolStripButton1.Text = "완료";
+ else if (task.IsCanceled) this.toolStripButton1.Text = "취소";
+ else if (taskwait) this.toolStripButton1.Text = "대기상태";
+ else this.toolStripButton1.Text = "가동중";
+ this.toolStripButton1.Enabled = true;
+ }
+ else
+ {
+ this.toolStripButton1.Text = "사용불가";
+ this.toolStripButton1.Enabled = false;
+ }
+
+ }
+ }
+}
diff --git a/JobReportMailService/fNoScheduleDayWeek.resx b/JobReportMailService/fNoScheduleDayWeek.resx
new file mode 100644
index 0000000..49cb4c2
--- /dev/null
+++ b/JobReportMailService/fNoScheduleDayWeek.resx
@@ -0,0 +1,142 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ 17, 17
+
+
+ 104, 17
+
+
+
+
+ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
+ YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG
+ YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9
+ 0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw
+ bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc
+ VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9
+ c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32
+ Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo
+ mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+
+ kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D
+ TgDQASA1MVpwzwAAAABJRU5ErkJggg==
+
+
+
\ No newline at end of file
diff --git a/JobReportMailService/vJobReportForUser.cs b/JobReportMailService/vJobReportForUser.cs
index b397d5a..aa762e1 100644
--- a/JobReportMailService/vJobReportForUser.cs
+++ b/JobReportMailService/vJobReportForUser.cs
@@ -27,5 +27,9 @@ namespace JobReportMailService
public string userProcess { get; set; }
public string requestpart { get; set; }
public string package { get; set; }
+ public string status { get; set; }
+ public string projectName { get; set; }
+ public string description { get; set; }
+ public string ww { get; set; }
}
}
diff --git a/Project/BaseController.cs b/Project/BaseController.cs
index f9a371b..96e2a33 100644
--- a/Project/BaseController.cs
+++ b/Project/BaseController.cs
@@ -238,6 +238,34 @@ namespace Project
}
}
+ agi.HtmlDocument doc = new agi.HtmlDocument();
+ doc.LoadHtml(contents);
+
+ //파일참조 태그를 모두 가져옴
+ var tags_include = doc.QuerySelectorAll("include");
+ foreach (var item in tags_include)
+ {
+ var filename = item.InnerText;
+
+ var load_file = String.Concat(AppDomain.CurrentDomain.BaseDirectory, "View", filename.Replace("/", "\\"));
+ load_file = load_file.Replace("\\\\", "\\");
+ String fileContents;// = String.Empty;
+
+ Console.WriteLine("## " + item.OuterHtml);
+ if (System.IO.File.Exists(load_file))
+ {
+ fileContents = System.IO.File.ReadAllText(load_file, System.Text.Encoding.UTF8);
+ }
+ else
+ {
+ fileContents = string.Format("#include Error:nofile:{0}
",
+ filename); //파일이없다면 해당 부분은 오류 처리한다.
+ }
+ contents = contents.Replace(item.OuterHtml, fileContents);
+ }
+
+
+
//콘텐츠내의 file 을 찾아서 처리한다. ; 정규식의 처리속도가 느릴듯하여, 그냥 처리해본다
while (true)
{
diff --git a/Project/Controller/CustomerController.cs b/Project/Controller/CustomerController.cs
index ae2e5a4..014807d 100644
--- a/Project/Controller/CustomerController.cs
+++ b/Project/Controller/CustomerController.cs
@@ -8,7 +8,6 @@ namespace Project
public class CustomerController : BaseController
{
-
// PUT api/values/5
public void Put(int id, [FromBody] string value)
{
diff --git a/Project/Controller/JobreportController.cs b/Project/Controller/JobreportController.cs
index 04ca8f2..f2eeadf 100644
--- a/Project/Controller/JobreportController.cs
+++ b/Project/Controller/JobreportController.cs
@@ -1,6 +1,8 @@
-using System;
+using Microsoft.Owin;
+using System;
using System.Linq;
using System.Net.Http;
+using System.Web;
using System.Web.Http;
namespace Project
@@ -19,10 +21,100 @@ namespace Project
{
}
- [HttpGet]
- public string Test()
+ [HttpPost]
+ public string Add(FormCollection tbpdate)
{
- return "test";
+ var vals = Request.GetQueryNameValuePairs();
+ return string.Empty;
+ }
+
+
+ [HttpGet]
+ public HttpResponseMessage Add()
+ {
+ //로그인이 되어있지않다면 로그인을 가져온다
+ MethodResult result;
+ result = View("/jobreport/add");
+
+
+ var gets = Request.GetQueryNameValuePairs();// GetParameters(data);
+
+
+ var key_search = gets.Where(t => t.Key == "search").FirstOrDefault();
+ var model = GetGlobalModel();
+ var getParams = Request.GetQueryNameValuePairs();// GetParameters(data);
+
+ //기본값을 찾아서 없애줘야한다
+ var searchkey = string.Empty;
+ if (key_search.Key != null && key_search.Value.isEmpty() == false) searchkey = key_search.Value.Trim();
+
+ var tbody = new System.Text.StringBuilder();
+
+ //테이블데이터생성
+ var itemcnt = 0;
+ //if (searchkey.isEmpty() == false)
+ {
+ var db = new EEEntitiesJobreport();
+ var sd = DateTime.Now.ToString("yyyy-MM-01");
+ var ed = DateTime.Now.ToShortDateString();
+ var rows = db.vJobReportForUser.AsNoTracking().Where(t => t.gcode == FCOMMON.info.Login.gcode && t.id == FCOMMON.info.Login.no && t.pdate.CompareTo(sd) >= 0 && t.pdate.CompareTo(ed) <= 1).OrderByDescending(t => t.pdate);
+ itemcnt = rows.Count();
+ foreach (var item in rows)
+ {
+ tbody.AppendLine("");
+
+ tbody.AppendLine($"| {item.pdate.Substring(5)} | ");
+ tbody.AppendLine($"{item.ww} | ");
+ tbody.AppendLine($"{item.name} | ");
+
+ if (item.status == "진행 중" || item.status.EndsWith("%"))
+ tbody.AppendLine($"{item.status} | ");
+ else
+ tbody.AppendLine($"{item.status} | ");
+
+ tbody.AppendLine($"{item.type} | ");
+ tbody.AppendLine($"{item.projectName} | ");
+ tbody.AppendLine($"{item.hrs} | ");
+ tbody.AppendLine($"{item.ot} | ");
+
+ tbody.AppendLine("");
+ tbody.AppendLine(item.description);
+ tbody.AppendLine(" | ");
+
+ tbody.AppendLine("
");
+ }
+ }
+
+ //아잍쳄이 없는경우
+ if (itemcnt == 0)
+ {
+ tbody.AppendLine("");
+ tbody.AppendLine("| 1 | ");
+ tbody.AppendLine("자료가 없습니다 | ");
+ tbody.AppendLine("
");
+ }
+
+
+ var contents = result.Content.Replace("{search}", searchkey);
+ contents = contents.Replace("{tabledata}", tbody.ToString());
+ contents = contents.Replace("{cnt}", itemcnt.ToString());
+
+
+ //공용값 적용
+ ApplyCommonValue(ref contents);
+
+ //최종문자 적용
+ result.Content = contents;
+
+ var resp = new HttpResponseMessage()
+ {
+ Content = new StringContent(
+ result.Content,
+ System.Text.Encoding.UTF8,
+ "text/html")
+ };
+
+ return resp;
}
[HttpGet]
diff --git a/Project/Dialog/fLogin.cs b/Project/Dialog/fLogin.cs
index 829e3c9..5f02e6e 100644
--- a/Project/Dialog/fLogin.cs
+++ b/Project/Dialog/fLogin.cs
@@ -153,14 +153,13 @@ namespace Project.Dialog
FCOMMON.info.Login.permission = 0;
FCOMMON.info.Login.gpermission = int.Parse(gperm);
-
using (var dbEnity = new EEEntitiesMain())
{
var drGrpUser = dbEnity.EETGW_GroupUser.Where(t => t.uid == userdr.id & t.gcode == gCode).FirstOrDefault();
- FCOMMON.info.Login.process = drGrpUser.Process;
+ if (drGrpUser == null) FCOMMON.info.Login.process = (userdr.id == "dev" ? "개발자":"");
+ else FCOMMON.info.Login.process = drGrpUser.Process;
}
-
//로그인정보 기록
AddLoginInfo();
@@ -174,7 +173,6 @@ namespace Project.Dialog
Util.MsgE("데이터베이스 조회 실패 다음 오류 메세지를 참고하세요.\n\n" + ex.Message + "\n\n증상이 동일 할 경우 서버가 접속가능한지 먼저 확인하세요");
DialogResult = System.Windows.Forms.DialogResult.Cancel;
}
-
}
void MakeAutoJobReport()
@@ -222,9 +220,6 @@ namespace Project.Dialog
"자동입력을 해제하려면 '업무일지-자동입력' 화면에서 내역을 변경하거나 종료일자를 설정하시기 바랍니다");
}
}
-
-
-
}
void AddLoginInfo()
@@ -268,23 +263,6 @@ namespace Project.Dialog
Console.WriteLine(ex.Message);
}
}
-
- private void label3_Click(object sender, EventArgs e)
- {
-
- }
-
- private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
- {
- //var f = new Dialog.fSelectDept();
- //if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
- //{
- // if (cmbDept.Items.Contains(f.deptName) == false)
- // cmbDept.Items.Add(f.deptName);
- // cmbDept.Text = f.deptName;
- //}
- }
-
private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
FCOMMON.Util.RunExplorer("mailto:chikyun.kim@amkor.co.kr");
diff --git a/Project/_Common/fAddNewUser.cs b/Project/_Common/fAddNewUser.cs
index 19c7e33..499dfd3 100644
--- a/Project/_Common/fAddNewUser.cs
+++ b/Project/_Common/fAddNewUser.cs
@@ -150,7 +150,7 @@ namespace Project._Common
drGuser.level = 1;
drGuser.uid = this.tbId.Text.Trim();
drGuser.state = this.tbState.Text.Trim();
- drGuser.Process = this.tbProcess.Text.Trim();
+ drGuser.Process = this.tbProcess.Text.Trim();
//drGuser.useJobReport = this.chkJobReport.Checked;
drGuser.useUserState = this.chkUserSt.Checked;
db.EETGW_GroupUser.Add(drGuser);
@@ -168,6 +168,7 @@ namespace Project._Common
drUser.gcode = gcode;
drUser.level = 1;
drUser.id = tbId.Text.Trim();
+ drUser.password = "B6589FC6AB0DC82CF12099D1C2D40AB994E8410C"; //기본값0
drUser.name = tbNameK.Text.Trim();
drUser.nameE = tbNameE.Text.Trim();
@@ -184,6 +185,7 @@ namespace Project._Common
else
{
+ if (drUser.password.isEmpty()) drUser.password = "B6589FC6AB0DC82CF12099D1C2D40AB994E8410C";
drUser.name = tbNameK.Text.Trim();
drUser.nameE = tbNameE.Text.Trim();
drUser.dept = this.tbDept.Text.Trim();
diff --git a/SubProject/FCM0000/DSUser.Designer.cs b/SubProject/FCM0000/DSUser.Designer.cs
index f99f882..4f51d17 100644
--- a/SubProject/FCM0000/DSUser.Designer.cs
+++ b/SubProject/FCM0000/DSUser.Designer.cs
@@ -1214,6 +1214,10 @@ namespace FCM0000 {
private global::System.Data.DataColumn columnjobreport;
+ private global::System.Data.DataColumn columnsavecost;
+
+ private global::System.Data.DataColumn columnscheapp;
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public AuthDataTable() {
@@ -1303,6 +1307,22 @@ namespace FCM0000 {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn savecostColumn {
+ get {
+ return this.columnsavecost;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn scheappColumn {
+ get {
+ return this.columnscheapp;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
@@ -1340,7 +1360,7 @@ namespace FCM0000 {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- public AuthRow AddAuthRow(string user, string gcode, int purchase, int holyday, int project, int jobreport) {
+ public AuthRow AddAuthRow(string user, string gcode, int purchase, int holyday, int project, int jobreport, int savecost, int scheapp) {
AuthRow rowAuthRow = ((AuthRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
null,
@@ -1349,7 +1369,9 @@ namespace FCM0000 {
purchase,
holyday,
project,
- jobreport};
+ jobreport,
+ savecost,
+ scheapp};
rowAuthRow.ItemArray = columnValuesArray;
this.Rows.Add(rowAuthRow);
return rowAuthRow;
@@ -1386,6 +1408,8 @@ namespace FCM0000 {
this.columnholyday = base.Columns["holyday"];
this.columnproject = base.Columns["project"];
this.columnjobreport = base.Columns["jobreport"];
+ this.columnsavecost = base.Columns["savecost"];
+ this.columnscheapp = base.Columns["scheapp"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -1405,6 +1429,10 @@ namespace FCM0000 {
base.Columns.Add(this.columnproject);
this.columnjobreport = new global::System.Data.DataColumn("jobreport", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnjobreport);
+ this.columnsavecost = new global::System.Data.DataColumn("savecost", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnsavecost);
+ this.columnscheapp = new global::System.Data.DataColumn("scheapp", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnscheapp);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnidx}, true));
this.columnidx.AutoIncrement = true;
@@ -2264,6 +2292,38 @@ namespace FCM0000 {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public int savecost {
+ get {
+ if (this.IssavecostNull()) {
+ return 0;
+ }
+ else {
+ return ((int)(this[this.tableAuth.savecostColumn]));
+ }
+ }
+ set {
+ this[this.tableAuth.savecostColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public int scheapp {
+ get {
+ if (this.IsscheappNull()) {
+ return 0;
+ }
+ else {
+ return ((int)(this[this.tableAuth.scheappColumn]));
+ }
+ }
+ set {
+ this[this.tableAuth.scheappColumn] = value;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsuserNull() {
@@ -2323,6 +2383,30 @@ namespace FCM0000 {
public void SetjobreportNull() {
this[this.tableAuth.jobreportColumn] = global::System.Convert.DBNull;
}
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public bool IssavecostNull() {
+ return this.IsNull(this.tableAuth.savecostColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public void SetsavecostNull() {
+ this[this.tableAuth.savecostColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public bool IsscheappNull() {
+ return this.IsNull(this.tableAuth.scheappColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public void SetscheappNull() {
+ this[this.tableAuth.scheappColumn] = global::System.Convert.DBNull;
+ }
}
///
@@ -4058,10 +4142,12 @@ SELECT id, password, nameE, name, dept, grade, email, level, indate, outdate, te
tableMapping.ColumnMappings.Add("holyday", "holyday");
tableMapping.ColumnMappings.Add("project", "project");
tableMapping.ColumnMappings.Add("jobreport", "jobreport");
+ tableMapping.ColumnMappings.Add("savecost", "savecost");
+ tableMapping.ColumnMappings.Add("scheapp", "scheapp");
this._adapter.TableMappings.Add(tableMapping);
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.DeleteCommand.Connection = this.Connection;
- this._adapter.DeleteCommand.CommandText = @"DELETE FROM [Auth] WHERE (([idx] = @Original_idx) AND ((@IsNull_user = 1 AND [user] IS NULL) OR ([user] = @Original_user)) AND ([gcode] = @Original_gcode) AND ((@IsNull_purchase = 1 AND [purchase] IS NULL) OR ([purchase] = @Original_purchase)) AND ((@IsNull_holyday = 1 AND [holyday] IS NULL) OR ([holyday] = @Original_holyday)) AND ((@IsNull_project = 1 AND [project] IS NULL) OR ([project] = @Original_project)) AND ((@IsNull_jobreport = 1 AND [jobreport] IS NULL) OR ([jobreport] = @Original_jobreport)))";
+ this._adapter.DeleteCommand.CommandText = @"DELETE FROM [Auth] WHERE (([idx] = @Original_idx) AND ((@IsNull_user = 1 AND [user] IS NULL) OR ([user] = @Original_user)) AND ([gcode] = @Original_gcode) AND ((@IsNull_purchase = 1 AND [purchase] IS NULL) OR ([purchase] = @Original_purchase)) AND ((@IsNull_holyday = 1 AND [holyday] IS NULL) OR ([holyday] = @Original_holyday)) AND ((@IsNull_project = 1 AND [project] IS NULL) OR ([project] = @Original_project)) AND ((@IsNull_jobreport = 1 AND [jobreport] IS NULL) OR ([jobreport] = @Original_jobreport)) AND ((@IsNull_savecost = 1 AND [savecost] IS NULL) OR ([savecost] = @Original_savecost)) AND ((@IsNull_scheapp = 1 AND [scheapp] IS NULL) OR ([scheapp] = @Original_scheapp)))";
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_user", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "user", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
@@ -4075,10 +4161,14 @@ SELECT id, password, nameE, name, dept, grade, email, level, indate, outdate, te
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_jobreport", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "jobreport", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_jobreport", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "jobreport", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_savecost", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "savecost", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_savecost", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "savecost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_scheapp", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "scheapp", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_scheapp", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "scheapp", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.InsertCommand.Connection = this.Connection;
- this._adapter.InsertCommand.CommandText = @"INSERT INTO [Auth] ([user], [gcode], [purchase], [holyday], [project], [jobreport]) VALUES (@user, @gcode, @purchase, @holyday, @project, @jobreport);
-SELECT idx, [user], gcode, purchase, holyday, project, jobreport FROM Auth WHERE (idx = SCOPE_IDENTITY()) ORDER BY [user]";
+ this._adapter.InsertCommand.CommandText = @"INSERT INTO [Auth] ([user], [gcode], [purchase], [holyday], [project], [jobreport], [savecost], [scheapp]) VALUES (@user, @gcode, @purchase, @holyday, @project, @jobreport, @savecost, @scheapp);
+SELECT idx, [user], gcode, purchase, holyday, project, jobreport, savecost, scheapp FROM Auth WHERE (idx = SCOPE_IDENTITY()) ORDER BY [user]";
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@user", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "user", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -4086,10 +4176,12 @@ SELECT idx, [user], gcode, purchase, holyday, project, jobreport FROM Auth WHERE
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@holyday", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "holyday", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@jobreport", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "jobreport", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@savecost", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "savecost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@scheapp", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "scheapp", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.UpdateCommand.Connection = this.Connection;
- this._adapter.UpdateCommand.CommandText = @"UPDATE [Auth] SET [user] = @user, [gcode] = @gcode, [purchase] = @purchase, [holyday] = @holyday, [project] = @project, [jobreport] = @jobreport WHERE (([idx] = @Original_idx) AND ((@IsNull_user = 1 AND [user] IS NULL) OR ([user] = @Original_user)) AND ([gcode] = @Original_gcode) AND ((@IsNull_purchase = 1 AND [purchase] IS NULL) OR ([purchase] = @Original_purchase)) AND ((@IsNull_holyday = 1 AND [holyday] IS NULL) OR ([holyday] = @Original_holyday)) AND ((@IsNull_project = 1 AND [project] IS NULL) OR ([project] = @Original_project)) AND ((@IsNull_jobreport = 1 AND [jobreport] IS NULL) OR ([jobreport] = @Original_jobreport)));
-SELECT idx, [user], gcode, purchase, holyday, project, jobreport FROM Auth WHERE (idx = @idx) ORDER BY [user]";
+ this._adapter.UpdateCommand.CommandText = @"UPDATE [Auth] SET [user] = @user, [gcode] = @gcode, [purchase] = @purchase, [holyday] = @holyday, [project] = @project, [jobreport] = @jobreport, [savecost] = @savecost, [scheapp] = @scheapp WHERE (([idx] = @Original_idx) AND ((@IsNull_user = 1 AND [user] IS NULL) OR ([user] = @Original_user)) AND ([gcode] = @Original_gcode) AND ((@IsNull_purchase = 1 AND [purchase] IS NULL) OR ([purchase] = @Original_purchase)) AND ((@IsNull_holyday = 1 AND [holyday] IS NULL) OR ([holyday] = @Original_holyday)) AND ((@IsNull_project = 1 AND [project] IS NULL) OR ([project] = @Original_project)) AND ((@IsNull_jobreport = 1 AND [jobreport] IS NULL) OR ([jobreport] = @Original_jobreport)) AND ((@IsNull_savecost = 1 AND [savecost] IS NULL) OR ([savecost] = @Original_savecost)) AND ((@IsNull_scheapp = 1 AND [scheapp] IS NULL) OR ([scheapp] = @Original_scheapp)));
+SELECT idx, [user], gcode, purchase, holyday, project, jobreport, savecost, scheapp FROM Auth WHERE (idx = @idx) ORDER BY [user]";
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@user", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "user", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -4097,6 +4189,8 @@ SELECT idx, [user], gcode, purchase, holyday, project, jobreport FROM Auth WHERE
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@holyday", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "holyday", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@jobreport", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "jobreport", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@savecost", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "savecost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@scheapp", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "scheapp", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_user", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "user", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_user", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "user", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
@@ -4109,6 +4203,10 @@ SELECT idx, [user], gcode, purchase, holyday, project, jobreport FROM Auth WHERE
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_jobreport", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "jobreport", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_jobreport", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "jobreport", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_savecost", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "savecost", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_savecost", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "savecost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_scheapp", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "scheapp", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_scheapp", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "scheapp", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
@@ -4125,8 +4223,8 @@ SELECT idx, [user], gcode, purchase, holyday, project, jobreport FROM Auth WHERE
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
- this._commandCollection[0].CommandText = "SELECT idx, [user], gcode, purchase, holyday, project, jobreport\r\nFROM Auth\r" +
- "\nWHERE (gcode = @gcode)\r\nORDER BY [user]";
+ this._commandCollection[0].CommandText = "SELECT idx, [user], gcode, purchase, holyday, project, jobreport, savecost, sche" +
+ "app\r\nFROM Auth\r\nWHERE (gcode = @gcode)\r\nORDER BY [user]";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
@@ -4200,7 +4298,7 @@ SELECT idx, [user], gcode, purchase, holyday, project, jobreport FROM Auth WHERE
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
- public virtual int Delete(int Original_idx, string Original_user, string Original_gcode, global::System.Nullable Original_purchase, global::System.Nullable Original_holyday, global::System.Nullable Original_project, global::System.Nullable Original_jobreport) {
+ public virtual int Delete(int Original_idx, string Original_user, string Original_gcode, global::System.Nullable Original_purchase, global::System.Nullable Original_holyday, global::System.Nullable Original_project, global::System.Nullable Original_jobreport, global::System.Nullable Original_savecost, global::System.Nullable Original_scheapp) {
this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idx));
if ((Original_user == null)) {
this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
@@ -4248,6 +4346,22 @@ SELECT idx, [user], gcode, purchase, holyday, project, jobreport FROM Auth WHERE
this.Adapter.DeleteCommand.Parameters[10].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[11].Value = global::System.DBNull.Value;
}
+ if ((Original_savecost.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[13].Value = ((int)(Original_savecost.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[13].Value = global::System.DBNull.Value;
+ }
+ if ((Original_scheapp.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[15].Value = ((int)(Original_scheapp.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[15].Value = global::System.DBNull.Value;
+ }
global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
@@ -4268,7 +4382,7 @@ SELECT idx, [user], gcode, purchase, holyday, project, jobreport FROM Auth WHERE
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
- public virtual int Insert(string user, string gcode, global::System.Nullable purchase, global::System.Nullable holyday, global::System.Nullable project, global::System.Nullable jobreport) {
+ public virtual int Insert(string user, string gcode, global::System.Nullable purchase, global::System.Nullable holyday, global::System.Nullable project, global::System.Nullable jobreport, global::System.Nullable savecost, global::System.Nullable scheapp) {
if ((user == null)) {
this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
}
@@ -4305,6 +4419,18 @@ SELECT idx, [user], gcode, purchase, holyday, project, jobreport FROM Auth WHERE
else {
this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
}
+ if ((savecost.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[6].Value = ((int)(savecost.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
+ }
+ if ((scheapp.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[7].Value = ((int)(scheapp.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
+ }
global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
@@ -4325,7 +4451,25 @@ SELECT idx, [user], gcode, purchase, holyday, project, jobreport FROM Auth WHERE
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
- public virtual int Update(string user, string gcode, global::System.Nullable purchase, global::System.Nullable holyday, global::System.Nullable project, global::System.Nullable jobreport, int Original_idx, string Original_user, string Original_gcode, global::System.Nullable Original_purchase, global::System.Nullable Original_holyday, global::System.Nullable Original_project, global::System.Nullable Original_jobreport, int idx) {
+ public virtual int Update(
+ string user,
+ string gcode,
+ global::System.Nullable purchase,
+ global::System.Nullable holyday,
+ global::System.Nullable project,
+ global::System.Nullable jobreport,
+ global::System.Nullable savecost,
+ global::System.Nullable scheapp,
+ int Original_idx,
+ string Original_user,
+ string Original_gcode,
+ global::System.Nullable Original_purchase,
+ global::System.Nullable Original_holyday,
+ global::System.Nullable Original_project,
+ global::System.Nullable Original_jobreport,
+ global::System.Nullable Original_savecost,
+ global::System.Nullable Original_scheapp,
+ int idx) {
if ((user == null)) {
this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
}
@@ -4362,54 +4506,82 @@ SELECT idx, [user], gcode, purchase, holyday, project, jobreport FROM Auth WHERE
else {
this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
}
- this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_idx));
- if ((Original_user == null)) {
- this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
+ if ((savecost.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(savecost.Value));
}
else {
- this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_user));
+ this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
+ }
+ if ((scheapp.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(scheapp.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
+ }
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_idx));
+ if ((Original_user == null)) {
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_user));
}
if ((Original_gcode == null)) {
throw new global::System.ArgumentNullException("Original_gcode");
}
else {
- this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_gcode));
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_gcode));
}
if ((Original_purchase.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_purchase.Value));
- }
- else {
- this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
- }
- if ((Original_holyday.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_holyday.Value));
+ this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_purchase.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
}
- if ((Original_project.HasValue == true)) {
+ if ((Original_holyday.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(Original_project.Value));
+ this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(Original_holyday.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
}
- if ((Original_jobreport.HasValue == true)) {
+ if ((Original_project.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[17].Value = ((int)(Original_jobreport.Value));
+ this.Adapter.UpdateCommand.Parameters[17].Value = ((int)(Original_project.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
}
- this.Adapter.UpdateCommand.Parameters[18].Value = ((int)(idx));
+ if ((Original_jobreport.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[19].Value = ((int)(Original_jobreport.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
+ }
+ if ((Original_savecost.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[21].Value = ((int)(Original_savecost.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
+ }
+ if ((Original_scheapp.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[23].Value = ((int)(Original_scheapp.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value;
+ }
+ this.Adapter.UpdateCommand.Parameters[24].Value = ((int)(idx));
global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
@@ -4430,8 +4602,25 @@ SELECT idx, [user], gcode, purchase, holyday, project, jobreport FROM Auth WHERE
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
- public virtual int Update(string user, string gcode, global::System.Nullable purchase, global::System.Nullable holyday, global::System.Nullable project, global::System.Nullable jobreport, int Original_idx, string Original_user, string Original_gcode, global::System.Nullable Original_purchase, global::System.Nullable Original_holyday, global::System.Nullable Original_project, global::System.Nullable Original_jobreport) {
- return this.Update(user, gcode, purchase, holyday, project, jobreport, Original_idx, Original_user, Original_gcode, Original_purchase, Original_holyday, Original_project, Original_jobreport, Original_idx);
+ public virtual int Update(
+ string user,
+ string gcode,
+ global::System.Nullable purchase,
+ global::System.Nullable holyday,
+ global::System.Nullable project,
+ global::System.Nullable jobreport,
+ global::System.Nullable savecost,
+ global::System.Nullable scheapp,
+ int Original_idx,
+ string Original_user,
+ string Original_gcode,
+ global::System.Nullable Original_purchase,
+ global::System.Nullable Original_holyday,
+ global::System.Nullable Original_project,
+ global::System.Nullable Original_jobreport,
+ global::System.Nullable Original_savecost,
+ global::System.Nullable Original_scheapp) {
+ return this.Update(user, gcode, purchase, holyday, project, jobreport, savecost, scheapp, Original_idx, Original_user, Original_gcode, Original_purchase, Original_holyday, Original_project, Original_jobreport, Original_savecost, Original_scheapp, Original_idx);
}
}
diff --git a/SubProject/FCM0000/DSUser.xsd b/SubProject/FCM0000/DSUser.xsd
index 3c0b728..bb0e09f 100644
--- a/SubProject/FCM0000/DSUser.xsd
+++ b/SubProject/FCM0000/DSUser.xsd
@@ -251,10 +251,10 @@ SELECT id, password, nameE, name, dept, grade, email, level, indate, outdate, te
-
+
- DELETE FROM [Auth] WHERE (([idx] = @Original_idx) AND ((@IsNull_user = 1 AND [user] IS NULL) OR ([user] = @Original_user)) AND ([gcode] = @Original_gcode) AND ((@IsNull_purchase = 1 AND [purchase] IS NULL) OR ([purchase] = @Original_purchase)) AND ((@IsNull_holyday = 1 AND [holyday] IS NULL) OR ([holyday] = @Original_holyday)) AND ((@IsNull_project = 1 AND [project] IS NULL) OR ([project] = @Original_project)) AND ((@IsNull_jobreport = 1 AND [jobreport] IS NULL) OR ([jobreport] = @Original_jobreport)))
+ DELETE FROM [Auth] WHERE (([idx] = @Original_idx) AND ((@IsNull_user = 1 AND [user] IS NULL) OR ([user] = @Original_user)) AND ([gcode] = @Original_gcode) AND ((@IsNull_purchase = 1 AND [purchase] IS NULL) OR ([purchase] = @Original_purchase)) AND ((@IsNull_holyday = 1 AND [holyday] IS NULL) OR ([holyday] = @Original_holyday)) AND ((@IsNull_project = 1 AND [project] IS NULL) OR ([project] = @Original_project)) AND ((@IsNull_jobreport = 1 AND [jobreport] IS NULL) OR ([jobreport] = @Original_jobreport)) AND ((@IsNull_savecost = 1 AND [savecost] IS NULL) OR ([savecost] = @Original_savecost)) AND ((@IsNull_scheapp = 1 AND [scheapp] IS NULL) OR ([scheapp] = @Original_scheapp)))
@@ -268,13 +268,17 @@ SELECT id, password, nameE, name, dept, grade, email, level, indate, outdate, te
+
+
+
+
- INSERT INTO [Auth] ([user], [gcode], [purchase], [holyday], [project], [jobreport]) VALUES (@user, @gcode, @purchase, @holyday, @project, @jobreport);
-SELECT idx, [user], gcode, purchase, holyday, project, jobreport FROM Auth WHERE (idx = SCOPE_IDENTITY()) ORDER BY [user]
+ INSERT INTO [Auth] ([user], [gcode], [purchase], [holyday], [project], [jobreport], [savecost], [scheapp]) VALUES (@user, @gcode, @purchase, @holyday, @project, @jobreport, @savecost, @scheapp);
+SELECT idx, [user], gcode, purchase, holyday, project, jobreport, savecost, scheapp FROM Auth WHERE (idx = SCOPE_IDENTITY()) ORDER BY [user]
@@ -282,24 +286,26 @@ SELECT idx, [user], gcode, purchase, holyday, project, jobreport FROM Auth WHERE
+
+
- SELECT idx, [user], gcode, purchase, holyday, project, jobreport
+ SELECT idx, [user], gcode, purchase, holyday, project, jobreport, savecost, scheapp
FROM Auth
WHERE (gcode = @gcode)
ORDER BY [user]
-
+
- UPDATE [Auth] SET [user] = @user, [gcode] = @gcode, [purchase] = @purchase, [holyday] = @holyday, [project] = @project, [jobreport] = @jobreport WHERE (([idx] = @Original_idx) AND ((@IsNull_user = 1 AND [user] IS NULL) OR ([user] = @Original_user)) AND ([gcode] = @Original_gcode) AND ((@IsNull_purchase = 1 AND [purchase] IS NULL) OR ([purchase] = @Original_purchase)) AND ((@IsNull_holyday = 1 AND [holyday] IS NULL) OR ([holyday] = @Original_holyday)) AND ((@IsNull_project = 1 AND [project] IS NULL) OR ([project] = @Original_project)) AND ((@IsNull_jobreport = 1 AND [jobreport] IS NULL) OR ([jobreport] = @Original_jobreport)));
-SELECT idx, [user], gcode, purchase, holyday, project, jobreport FROM Auth WHERE (idx = @idx) ORDER BY [user]
+ UPDATE [Auth] SET [user] = @user, [gcode] = @gcode, [purchase] = @purchase, [holyday] = @holyday, [project] = @project, [jobreport] = @jobreport, [savecost] = @savecost, [scheapp] = @scheapp WHERE (([idx] = @Original_idx) AND ((@IsNull_user = 1 AND [user] IS NULL) OR ([user] = @Original_user)) AND ([gcode] = @Original_gcode) AND ((@IsNull_purchase = 1 AND [purchase] IS NULL) OR ([purchase] = @Original_purchase)) AND ((@IsNull_holyday = 1 AND [holyday] IS NULL) OR ([holyday] = @Original_holyday)) AND ((@IsNull_project = 1 AND [project] IS NULL) OR ([project] = @Original_project)) AND ((@IsNull_jobreport = 1 AND [jobreport] IS NULL) OR ([jobreport] = @Original_jobreport)) AND ((@IsNull_savecost = 1 AND [savecost] IS NULL) OR ([savecost] = @Original_savecost)) AND ((@IsNull_scheapp = 1 AND [scheapp] IS NULL) OR ([scheapp] = @Original_scheapp)));
+SELECT idx, [user], gcode, purchase, holyday, project, jobreport, savecost, scheapp FROM Auth WHERE (idx = @idx) ORDER BY [user]
@@ -307,6 +313,8 @@ SELECT idx, [user], gcode, purchase, holyday, project, jobreport FROM Auth WHERE
+
+
@@ -319,7 +327,11 @@ SELECT idx, [user], gcode, purchase, holyday, project, jobreport FROM Auth WHERE
-
+
+
+
+
+
@@ -333,6 +345,8 @@ SELECT idx, [user], gcode, purchase, holyday, project, jobreport FROM Auth WHERE
+
+
@@ -344,7 +358,7 @@ SELECT idx, [user], gcode, purchase, holyday, project, jobreport FROM Auth WHERE
-
+
@@ -354,25 +368,25 @@ SELECT idx, [user], gcode, purchase, holyday, project, jobreport FROM Auth WHERE
-
+
-
+
-
+
-
+
@@ -382,113 +396,113 @@ SELECT idx, [user], gcode, purchase, holyday, project, jobreport FROM Auth WHERE
-
+
-
+
-
+
-
+
-
+
-
+
-
-
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -499,28 +513,30 @@ SELECT idx, [user], gcode, purchase, holyday, project, jobreport FROM Auth WHERE
-
+
-
+
-
+
-
-
-
-
+
+
+
+
+
+
diff --git a/SubProject/FCM0000/User/fUserAuth.Designer.cs b/SubProject/FCM0000/User/fUserAuth.Designer.cs
index aab06ec..2bd9d9a 100644
--- a/SubProject/FCM0000/User/fUserAuth.Designer.cs
+++ b/SubProject/FCM0000/User/fUserAuth.Designer.cs
@@ -30,16 +30,19 @@
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fUserAuth));
+ FarPoint.Win.Spread.CellType.NumberCellType numberCellType8 = new FarPoint.Win.Spread.CellType.NumberCellType();
+ FarPoint.Win.Spread.CellType.TextCellType textCellType3 = new FarPoint.Win.Spread.CellType.TextCellType();
+ FarPoint.Win.Spread.CellType.TextCellType textCellType4 = new FarPoint.Win.Spread.CellType.TextCellType();
+ FarPoint.Win.Spread.CellType.NumberCellType numberCellType9 = new FarPoint.Win.Spread.CellType.NumberCellType();
+ FarPoint.Win.Spread.CellType.NumberCellType numberCellType10 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType11 = new FarPoint.Win.Spread.CellType.NumberCellType();
- FarPoint.Win.Spread.CellType.TextCellType textCellType5 = new FarPoint.Win.Spread.CellType.TextCellType();
- FarPoint.Win.Spread.CellType.TextCellType textCellType6 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType12 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType13 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType14 = new FarPoint.Win.Spread.CellType.NumberCellType();
- FarPoint.Win.Spread.CellType.NumberCellType numberCellType15 = new FarPoint.Win.Spread.CellType.NumberCellType();
this.dSUser = new FCM0000.DSUser();
this.bn = new System.Windows.Forms.BindingNavigator(this.components);
this.bindingNavigatorAddNewItem = new System.Windows.Forms.ToolStripButton();
+ this.bs = new System.Windows.Forms.BindingSource(this.components);
this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel();
this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMovePreviousItem = new System.Windows.Forms.ToolStripButton();
@@ -60,15 +63,14 @@
this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.loadToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.fpSpread1 = new FarPoint.Win.Spread.FpSpread();
- this.bs = new System.Windows.Forms.BindingSource(this.components);
- this.ta = new FCM0000.DSUserTableAdapters.AuthTableAdapter();
this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView();
+ this.ta = new FCM0000.DSUserTableAdapters.AuthTableAdapter();
((System.ComponentModel.ISupportInitialize)(this.dSUser)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
this.bn.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
this.cm1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).BeginInit();
this.SuspendLayout();
//
@@ -101,14 +103,14 @@
this.toolStripLabel2,
this.tbFind,
this.btFind});
- this.bn.Location = new System.Drawing.Point(0, 623);
+ this.bn.Location = new System.Drawing.Point(0, 601);
this.bn.MoveFirstItem = this.bindingNavigatorMoveFirstItem;
this.bn.MoveLastItem = this.bindingNavigatorMoveLastItem;
this.bn.MoveNextItem = this.bindingNavigatorMoveNextItem;
this.bn.MovePreviousItem = this.bindingNavigatorMovePreviousItem;
this.bn.Name = "bn";
this.bn.PositionItem = this.bindingNavigatorPositionItem;
- this.bn.Size = new System.Drawing.Size(652, 25);
+ this.bn.Size = new System.Drawing.Size(736, 25);
this.bn.TabIndex = 0;
this.bn.Text = "bindingNavigator1";
//
@@ -120,6 +122,11 @@
this.bindingNavigatorAddNewItem.Size = new System.Drawing.Size(67, 22);
this.bindingNavigatorAddNewItem.Text = "추가(&A)";
//
+ // bs
+ //
+ this.bs.DataMember = "Auth";
+ this.bs.DataSource = this.dSUser;
+ //
// bindingNavigatorCountItem
//
this.bindingNavigatorCountItem.Name = "bindingNavigatorCountItem";
@@ -274,25 +281,16 @@
this.fpSpread1.Name = "fpSpread1";
this.fpSpread1.Sheets.AddRange(new FarPoint.Win.Spread.SheetView[] {
this.fpSpread1_Sheet1});
- this.fpSpread1.Size = new System.Drawing.Size(652, 623);
+ this.fpSpread1.Size = new System.Drawing.Size(736, 601);
this.fpSpread1.TabIndex = 2;
//
- // bs
- //
- this.bs.DataMember = "Auth";
- this.bs.DataSource = this.dSUser;
- //
- // ta
- //
- this.ta.ClearBeforeFill = true;
- //
// fpSpread1_Sheet1
//
this.fpSpread1_Sheet1.Reset();
this.fpSpread1_Sheet1.SheetName = "Sheet1";
// Formulas and custom names must be loaded with R1C1 reference style
this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.R1C1;
- this.fpSpread1_Sheet1.ColumnCount = 7;
+ this.fpSpread1_Sheet1.ColumnCount = 9;
this.fpSpread1_Sheet1.ActiveColumnIndex = -1;
this.fpSpread1_Sheet1.ActiveRowIndex = -1;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 1).Value = "사용자 번호";
@@ -301,76 +299,92 @@
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 5).Value = "프로젝트";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 6).Value = "업무일지";
this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 33F;
- numberCellType11.DecimalPlaces = 0;
- numberCellType11.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
- numberCellType11.MaximumValue = 2147483647D;
- numberCellType11.MinimumValue = -2147483648D;
- this.fpSpread1_Sheet1.Columns.Get(0).CellType = numberCellType11;
+ numberCellType8.DecimalPlaces = 0;
+ numberCellType8.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
+ numberCellType8.MaximumValue = 2147483647D;
+ numberCellType8.MinimumValue = -2147483648D;
+ this.fpSpread1_Sheet1.Columns.Get(0).CellType = numberCellType8;
this.fpSpread1_Sheet1.Columns.Get(0).DataField = "idx";
this.fpSpread1_Sheet1.Columns.Get(0).Visible = false;
this.fpSpread1_Sheet1.Columns.Get(0).Width = 77F;
- this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType5;
+ this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType3;
this.fpSpread1_Sheet1.Columns.Get(1).DataField = "user";
this.fpSpread1_Sheet1.Columns.Get(1).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(1).Label = "사용자 번호";
this.fpSpread1_Sheet1.Columns.Get(1).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(1).Width = 151F;
- this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType6;
+ this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType4;
this.fpSpread1_Sheet1.Columns.Get(2).DataField = "gcode";
this.fpSpread1_Sheet1.Columns.Get(2).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(2).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(2).Visible = false;
this.fpSpread1_Sheet1.Columns.Get(2).Width = 151F;
- numberCellType12.DecimalPlaces = 0;
- numberCellType12.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
- numberCellType12.MaximumValue = 2147483647D;
- numberCellType12.MinimumValue = -2147483648D;
- this.fpSpread1_Sheet1.Columns.Get(3).CellType = numberCellType12;
+ numberCellType9.DecimalPlaces = 0;
+ numberCellType9.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
+ numberCellType9.MaximumValue = 2147483647D;
+ numberCellType9.MinimumValue = -2147483648D;
+ this.fpSpread1_Sheet1.Columns.Get(3).CellType = numberCellType9;
this.fpSpread1_Sheet1.Columns.Get(3).DataField = "purchase";
this.fpSpread1_Sheet1.Columns.Get(3).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(3).Label = "구매관리";
this.fpSpread1_Sheet1.Columns.Get(3).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(3).Width = 77F;
- numberCellType13.DecimalPlaces = 0;
- numberCellType13.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
- numberCellType13.MaximumValue = 2147483647D;
- numberCellType13.MinimumValue = -2147483648D;
- this.fpSpread1_Sheet1.Columns.Get(4).CellType = numberCellType13;
+ numberCellType10.DecimalPlaces = 0;
+ numberCellType10.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
+ numberCellType10.MaximumValue = 2147483647D;
+ numberCellType10.MinimumValue = -2147483648D;
+ this.fpSpread1_Sheet1.Columns.Get(4).CellType = numberCellType10;
this.fpSpread1_Sheet1.Columns.Get(4).DataField = "holyday";
this.fpSpread1_Sheet1.Columns.Get(4).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(4).Label = "근태관리";
this.fpSpread1_Sheet1.Columns.Get(4).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(4).Width = 77F;
- numberCellType14.DecimalPlaces = 0;
- numberCellType14.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
- numberCellType14.MaximumValue = 2147483647D;
- numberCellType14.MinimumValue = -2147483648D;
- this.fpSpread1_Sheet1.Columns.Get(5).CellType = numberCellType14;
+ numberCellType11.DecimalPlaces = 0;
+ numberCellType11.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
+ numberCellType11.MaximumValue = 2147483647D;
+ numberCellType11.MinimumValue = -2147483648D;
+ this.fpSpread1_Sheet1.Columns.Get(5).CellType = numberCellType11;
this.fpSpread1_Sheet1.Columns.Get(5).DataField = "project";
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).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(5).Width = 77F;
- numberCellType15.DecimalPlaces = 0;
- numberCellType15.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
- numberCellType15.MaximumValue = 2147483647D;
- numberCellType15.MinimumValue = -2147483648D;
- this.fpSpread1_Sheet1.Columns.Get(6).CellType = numberCellType15;
+ numberCellType12.DecimalPlaces = 0;
+ numberCellType12.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
+ numberCellType12.MaximumValue = 2147483647D;
+ numberCellType12.MinimumValue = -2147483648D;
+ this.fpSpread1_Sheet1.Columns.Get(6).CellType = numberCellType12;
this.fpSpread1_Sheet1.Columns.Get(6).DataField = "jobreport";
this.fpSpread1_Sheet1.Columns.Get(6).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(6).Label = "업무일지";
this.fpSpread1_Sheet1.Columns.Get(6).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(6).Width = 77F;
+ numberCellType13.DecimalPlaces = 0;
+ numberCellType13.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
+ numberCellType13.MaximumValue = 2147483647D;
+ numberCellType13.MinimumValue = -2147483648D;
+ this.fpSpread1_Sheet1.Columns.Get(7).CellType = numberCellType13;
+ this.fpSpread1_Sheet1.Columns.Get(7).DataField = "savecost";
+ numberCellType14.DecimalPlaces = 0;
+ numberCellType14.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
+ numberCellType14.MaximumValue = 2147483647D;
+ numberCellType14.MinimumValue = -2147483648D;
+ this.fpSpread1_Sheet1.Columns.Get(8).CellType = numberCellType14;
+ this.fpSpread1_Sheet1.Columns.Get(8).DataField = "scheapp";
this.fpSpread1_Sheet1.DataAutoSizeColumns = false;
this.fpSpread1_Sheet1.DataSource = this.bs;
this.fpSpread1_Sheet1.RowHeader.Columns.Default.Resizable = false;
this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1;
//
+ // ta
+ //
+ this.ta.ClearBeforeFill = true;
+ //
// fUserAuth
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(652, 648);
+ this.ClientSize = new System.Drawing.Size(736, 626);
this.ContextMenuStrip = this.cm1;
this.Controls.Add(this.fpSpread1);
this.Controls.Add(this.bn);
@@ -386,9 +400,9 @@
((System.ComponentModel.ISupportInitialize)(this.bn)).EndInit();
this.bn.ResumeLayout(false);
this.bn.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit();
this.cm1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
diff --git a/SubProject/FCM0000/User/fUserAuth.cs b/SubProject/FCM0000/User/fUserAuth.cs
index 412aaf0..74ff8d1 100644
--- a/SubProject/FCM0000/User/fUserAuth.cs
+++ b/SubProject/FCM0000/User/fUserAuth.cs
@@ -110,7 +110,7 @@ namespace FCM0000
{
var drv = this.bs.Current as DataRowView;
if (drv == null) return;
- var dr = drv.Row as DSUser.UserGroupRow;
+ var dr = drv.Row as DSUser.AuthRow;
if (dr.RowState == DataRowState.Added || dr.RowState == DataRowState.Detached || dr.RowState == DataRowState.Deleted) this.bs.RemoveCurrent();
var dlg =FCOMMON.Util.MsgQ("다음 자료를 삭제하시겠습니까?");
diff --git a/SubProject/FPJ0000/Auth.cs b/SubProject/FPJ0000/Auth.cs
new file mode 100644
index 0000000..8c788c9
--- /dev/null
+++ b/SubProject/FPJ0000/Auth.cs
@@ -0,0 +1,27 @@
+//------------------------------------------------------------------------------
+//
+// 이 코드는 템플릿에서 생성되었습니다.
+//
+// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다.
+// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다.
+//
+//------------------------------------------------------------------------------
+
+namespace FPJ0000
+{
+ using System;
+ using System.Collections.Generic;
+
+ public partial class Auth
+ {
+ public int idx { get; set; }
+ public string user { get; set; }
+ public string gcode { get; set; }
+ public Nullable purchase { get; set; }
+ public Nullable holyday { get; set; }
+ public Nullable project { get; set; }
+ public Nullable jobreport { get; set; }
+ public Nullable savecost { get; set; }
+ public Nullable scheapp { get; set; }
+ }
+}
diff --git a/SubProject/FPJ0000/EETGW_ProjectsSchedule.cs b/SubProject/FPJ0000/EETGW_ProjectsSchedule.cs
index a76769d..7f9b408 100644
--- a/SubProject/FPJ0000/EETGW_ProjectsSchedule.cs
+++ b/SubProject/FPJ0000/EETGW_ProjectsSchedule.cs
@@ -17,16 +17,18 @@ namespace FPJ0000
public int idx { get; set; }
public string gcode { get; set; }
public Nullable project { get; set; }
+ public Nullable no { get; set; }
public Nullable seq { get; set; }
public string title { get; set; }
public Nullable sw { get; set; }
public Nullable ew { get; set; }
public Nullable swa { get; set; }
public Nullable ewa { get; set; }
+ public string uid { get; set; }
public string memo { get; set; }
+ public Nullable appoval { get; set; }
+ public Nullable progress { get; set; }
public string wuid { get; set; }
public System.DateTime wdate { get; set; }
- public string uid { get; set; }
- public Nullable progress { get; set; }
}
}
diff --git a/SubProject/FPJ0000/FPJ0000.csproj b/SubProject/FPJ0000/FPJ0000.csproj
index 9539cdf..b584e07 100644
--- a/SubProject/FPJ0000/FPJ0000.csproj
+++ b/SubProject/FPJ0000/FPJ0000.csproj
@@ -139,6 +139,9 @@