diff --git a/Project/Properties/AssemblyInfo.cs b/Project/Properties/AssemblyInfo.cs index 0407db5..9a87a32 100644 --- a/Project/Properties/AssemblyInfo.cs +++ b/Project/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ using System.Runtime.InteropServices; // 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호가 자동으로 // 지정되도록 할 수 있습니다. // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("23.01.03.1055")] -[assembly: AssemblyFileVersion("23.01.03.1055")] +[assembly: AssemblyVersion("23.01.04.1222")] +[assembly: AssemblyFileVersion("23.01.04.1222")] diff --git a/Project/fMain.cs b/Project/fMain.cs index 229d01b..95f1b38 100644 --- a/Project/fMain.cs +++ b/Project/fMain.cs @@ -733,8 +733,10 @@ namespace Project return; } - var f = new FCM0000.fUserAuth(); - f.ShowDialog(); + string formkey = "fUserAuth"; + if (!ShowForm(formkey)) + AddForm(formkey, new FCM0000.fUserAuth()); + } private void 관리ToolStripMenuItem_Click(object sender, EventArgs e) diff --git a/SubProject/FPJ0000/Project/fProjectData.Designer.cs b/SubProject/FPJ0000/Project/fProjectData.Designer.cs index 1fd0e52..28d2c02 100644 --- a/SubProject/FPJ0000/Project/fProjectData.Designer.cs +++ b/SubProject/FPJ0000/Project/fProjectData.Designer.cs @@ -50,10 +50,9 @@ System.Windows.Forms.Label label10; System.Windows.Forms.Label label5; System.Windows.Forms.Label label11; - System.Windows.Forms.Label label12; System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fProjectData)); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); this.tbIdx = new System.Windows.Forms.TextBox(); this.bs = new System.Windows.Forms.BindingSource(this.components); this.dsPRJ = new FPJ0000.dsPRJ(); @@ -110,9 +109,13 @@ this.textBox2 = new System.Windows.Forms.TextBox(); this.arLabel2 = new arCtl.arLabel(); this.panel5 = new System.Windows.Forms.Panel(); - this.cmbUser = new System.Windows.Forms.ComboBox(); - this.userListBindingSource = new System.Windows.Forms.BindingSource(this.components); + this.cmbSW = new System.Windows.Forms.ComboBox(); + this.bsChampionID = new System.Windows.Forms.BindingSource(this.components); this.dSComm = new FPJ0000.DSComm(); + this.cmbEpanel = new System.Windows.Forms.ComboBox(); + this.cmbAssembly = new System.Windows.Forms.ComboBox(); + this.cmbDesign = new System.Windows.Forms.ComboBox(); + this.cmbChampion = new System.Windows.Forms.ComboBox(); this.textBox5 = new System.Windows.Forms.TextBox(); this.textBox3 = new System.Windows.Forms.TextBox(); this.arLabel3 = new arCtl.arLabel(); @@ -191,6 +194,10 @@ this.taHist = new FPJ0000.dsPRJTableAdapters.ProjectsHistoryTableAdapter(); this.taHistD = new FPJ0000.dsPRJTableAdapters.EETGW_ProjecthistoryDTableAdapter(); this.taToDo = new FPJ0000.dsPRJTableAdapters.EETGW_ProjectToDoTableAdapter(); + this.bsDesignID = new System.Windows.Forms.BindingSource(this.components); + this.bsAssembly = new System.Windows.Forms.BindingSource(this.components); + this.bsEPanel = new System.Windows.Forms.BindingSource(this.components); + this.bsSW = new System.Windows.Forms.BindingSource(this.components); nameLabel = new System.Windows.Forms.Label(); reqstaffLabel = new System.Windows.Forms.Label(); usermainLabel = new System.Windows.Forms.Label(); @@ -212,7 +219,6 @@ label10 = new System.Windows.Forms.Label(); label5 = new System.Windows.Forms.Label(); label11 = new System.Windows.Forms.Label(); - label12 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dsPRJ)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit(); @@ -222,7 +228,7 @@ this.panel7.SuspendLayout(); this.panel1.SuspendLayout(); this.panel5.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.userListBindingSource)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bsChampionID)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dSComm)).BeginInit(); this.panel2.SuspendLayout(); this.panel3.SuspendLayout(); @@ -247,6 +253,10 @@ this.bindingNavigator2.SuspendLayout(); this.tabPage2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.bsTodo)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bsDesignID)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bsAssembly)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bsEPanel)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bsSW)).BeginInit(); this.SuspendLayout(); // // nameLabel @@ -271,7 +281,7 @@ // usermainLabel.AutoSize = true; usermainLabel.Font = new System.Drawing.Font("맑은 고딕", 12F); - usermainLabel.Location = new System.Drawing.Point(32, 66); + usermainLabel.Location = new System.Drawing.Point(33, 66); usermainLabel.Name = "usermainLabel"; usermainLabel.Size = new System.Drawing.Size(60, 21); usermainLabel.TabIndex = 24; @@ -281,7 +291,7 @@ // usersubLabel.AutoSize = true; usersubLabel.Font = new System.Drawing.Font("맑은 고딕", 12F); - usersubLabel.Location = new System.Drawing.Point(52, 99); + usersubLabel.Location = new System.Drawing.Point(53, 161); usersubLabel.Name = "usersubLabel"; usersubLabel.Size = new System.Drawing.Size(40, 21); usersubLabel.TabIndex = 26; @@ -336,7 +346,7 @@ // assetLabel // assetLabel.AutoSize = true; - assetLabel.Location = new System.Drawing.Point(24, 61); + assetLabel.Location = new System.Drawing.Point(24, 56); assetLabel.Name = "assetLabel"; assetLabel.Size = new System.Drawing.Size(61, 12); assetLabel.TabIndex = 2; @@ -355,7 +365,7 @@ // label2 // label2.AutoSize = true; - label2.Location = new System.Drawing.Point(377, 61); + label2.Location = new System.Drawing.Point(377, 56); label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); label2.Name = "label2"; label2.Size = new System.Drawing.Size(29, 12); @@ -365,7 +375,7 @@ // label3 // label3.AutoSize = true; - label3.Location = new System.Drawing.Point(382, 89); + label3.Location = new System.Drawing.Point(382, 78); label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); label3.Name = "label3"; label3.Size = new System.Drawing.Size(24, 12); @@ -375,7 +385,7 @@ // label4 // label4.AutoSize = true; - label4.Location = new System.Drawing.Point(56, 89); + label4.Location = new System.Drawing.Point(56, 78); label4.Name = "label4"; label4.Size = new System.Drawing.Size(29, 12); label4.TabIndex = 6; @@ -395,7 +405,7 @@ // label8.AutoSize = true; label8.Font = new System.Drawing.Font("맑은 고딕", 12F); - label8.Location = new System.Drawing.Point(289, 66); + label8.Location = new System.Drawing.Point(35, 129); label8.Name = "label8"; label8.Size = new System.Drawing.Size(58, 21); label8.TabIndex = 87; @@ -404,7 +414,7 @@ // label9 // label9.AutoSize = true; - label9.Location = new System.Drawing.Point(348, 118); + label9.Location = new System.Drawing.Point(348, 100); label9.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); label9.Name = "label9"; label9.Size = new System.Drawing.Size(58, 12); @@ -415,16 +425,16 @@ // label7.AutoSize = true; label7.Font = new System.Drawing.Font("맑은 고딕", 12F); - label7.Location = new System.Drawing.Point(305, 99); + label7.Location = new System.Drawing.Point(13, 99); label7.Name = "label7"; - label7.Size = new System.Drawing.Size(42, 21); + label7.Size = new System.Drawing.Size(80, 21); label7.TabIndex = 89; - label7.Text = "공정"; + label7.Text = "Assembly"; // // label10 // label10.AutoSize = true; - label10.Location = new System.Drawing.Point(293, 144); + label10.Location = new System.Drawing.Point(293, 123); label10.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); label10.Name = "label10"; label10.Size = new System.Drawing.Size(113, 12); @@ -434,7 +444,7 @@ // label5 // label5.AutoSize = true; - label5.Location = new System.Drawing.Point(39, 171); + label5.Location = new System.Drawing.Point(39, 144); label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); label5.Name = "label5"; label5.Size = new System.Drawing.Size(46, 12); @@ -444,27 +454,17 @@ // label11 // label11.AutoSize = true; - label11.Location = new System.Drawing.Point(300, 172); + label11.Location = new System.Drawing.Point(300, 145); label11.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); label11.Name = "label11"; label11.Size = new System.Drawing.Size(43, 12); label11.TabIndex = 94; label11.Text = "Serial#"; // - // label12 - // - label12.AutoSize = true; - label12.Font = new System.Drawing.Font("맑은 고딕", 10F); - label12.Location = new System.Drawing.Point(285, 35); - label12.Name = "label12"; - label12.Size = new System.Drawing.Size(65, 19); - label12.TabIndex = 92; - label12.Text = "알림대상"; - // // tbIdx // this.tbIdx.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "idx", true)); - this.tbIdx.Location = new System.Drawing.Point(413, 85); + this.tbIdx.Location = new System.Drawing.Point(413, 74); this.tbIdx.Name = "tbIdx"; this.tbIdx.ReadOnly = true; this.tbIdx.Size = new System.Drawing.Size(127, 21); @@ -523,7 +523,7 @@ this.usermainTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "usermain", true)); this.usermainTextBox.Font = new System.Drawing.Font("맑은 고딕", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); this.usermainTextBox.ImeMode = System.Windows.Forms.ImeMode.Hangul; - this.usermainTextBox.Location = new System.Drawing.Point(98, 63); + this.usermainTextBox.Location = new System.Drawing.Point(353, 63); this.usermainTextBox.Name = "usermainTextBox"; this.usermainTextBox.Size = new System.Drawing.Size(185, 29); this.usermainTextBox.TabIndex = 25; @@ -533,7 +533,7 @@ this.usersubTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "usersub", true)); this.usersubTextBox.Font = new System.Drawing.Font("맑은 고딕", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); this.usersubTextBox.ImeMode = System.Windows.Forms.ImeMode.Hangul; - this.usersubTextBox.Location = new System.Drawing.Point(98, 96); + this.usersubTextBox.Location = new System.Drawing.Point(353, 158); this.usersubTextBox.Name = "usersubTextBox"; this.usersubTextBox.Size = new System.Drawing.Size(185, 29); this.usersubTextBox.TabIndex = 27; @@ -543,7 +543,7 @@ this.userManagerTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "userManager", true)); this.userManagerTextBox.Font = new System.Drawing.Font("맑은 고딕", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); this.userManagerTextBox.ImeMode = System.Windows.Forms.ImeMode.Hangul; - this.userManagerTextBox.Location = new System.Drawing.Point(98, 30); + this.userManagerTextBox.Location = new System.Drawing.Point(353, 30); this.userManagerTextBox.Name = "userManagerTextBox"; this.userManagerTextBox.Size = new System.Drawing.Size(185, 29); this.userManagerTextBox.TabIndex = 33; @@ -595,7 +595,7 @@ this.remark_reqTextBox.Multiline = true; this.remark_reqTextBox.Name = "remark_reqTextBox"; this.remark_reqTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Both; - this.remark_reqTextBox.Size = new System.Drawing.Size(485, 280); + this.remark_reqTextBox.Size = new System.Drawing.Size(485, 297); this.remark_reqTextBox.TabIndex = 49; // // tbXdate @@ -610,7 +610,7 @@ // assetTextBox // this.assetTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "asset", true)); - this.assetTextBox.Location = new System.Drawing.Point(93, 57); + this.assetTextBox.Location = new System.Drawing.Point(93, 52); this.assetTextBox.Name = "assetTextBox"; this.assetTextBox.Size = new System.Drawing.Size(252, 21); this.assetTextBox.TabIndex = 3; @@ -638,7 +638,7 @@ this.btMailAddr, this.btPath, this.btSendMail}); - this.bn.Location = new System.Drawing.Point(0, 679); + this.bn.Location = new System.Drawing.Point(0, 696); this.bn.MoveFirstItem = this.bindingNavigatorMoveFirstItem; this.bn.MoveLastItem = this.bindingNavigatorMoveLastItem; this.bn.MoveNextItem = this.bindingNavigatorMoveNextItem; @@ -824,8 +824,8 @@ // this.dataGridViewTextBoxColumn10.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; this.dataGridViewTextBoxColumn10.DataPropertyName = "remark"; - dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewTextBoxColumn10.DefaultCellStyle = dataGridViewCellStyle3; + dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewTextBoxColumn10.DefaultCellStyle = dataGridViewCellStyle7; this.dataGridViewTextBoxColumn10.HeaderText = "비고"; this.dataGridViewTextBoxColumn10.Name = "dataGridViewTextBoxColumn10"; this.dataGridViewTextBoxColumn10.ReadOnly = true; @@ -863,7 +863,7 @@ this.cmbState.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); this.cmbState.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cmbState.FormattingEnabled = true; - this.cmbState.Location = new System.Drawing.Point(413, 57); + this.cmbState.Location = new System.Drawing.Point(413, 52); this.cmbState.Margin = new System.Windows.Forms.Padding(4); this.cmbState.Name = "cmbState"; this.cmbState.Size = new System.Drawing.Size(127, 20); @@ -888,7 +888,7 @@ this.panel7.Controls.Add(reqstaffLabel); this.panel7.Controls.Add(this.cmbProcess); this.panel7.Controls.Add(label1); - this.panel7.Location = new System.Drawing.Point(6, 222); + this.panel7.Location = new System.Drawing.Point(6, 179); this.panel7.Name = "panel7"; this.panel7.Size = new System.Drawing.Size(547, 64); this.panel7.TabIndex = 85; @@ -977,14 +977,14 @@ this.panel1.Controls.Add(this.tbIdx); this.panel1.Location = new System.Drawing.Point(6, 6); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(547, 210); + this.panel1.Size = new System.Drawing.Size(547, 167); this.panel1.TabIndex = 86; this.panel1.Paint += new System.Windows.Forms.PaintEventHandler(this.panel1_Paint); // // textBox6 // this.textBox6.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "serial", true)); - this.textBox6.Location = new System.Drawing.Point(350, 168); + this.textBox6.Location = new System.Drawing.Point(350, 141); this.textBox6.Name = "textBox6"; this.textBox6.Size = new System.Drawing.Size(190, 21); this.textBox6.TabIndex = 95; @@ -993,7 +993,7 @@ // textBox1 // this.textBox1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "model", true)); - this.textBox1.Location = new System.Drawing.Point(93, 166); + this.textBox1.Location = new System.Drawing.Point(93, 139); this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(190, 21); this.textBox1.TabIndex = 93; @@ -1001,7 +1001,7 @@ // // tbDue // - this.tbDue.Location = new System.Drawing.Point(413, 139); + this.tbDue.Location = new System.Drawing.Point(413, 118); this.tbDue.Name = "tbDue"; this.tbDue.Size = new System.Drawing.Size(127, 21); this.tbDue.TabIndex = 91; @@ -1010,7 +1010,7 @@ // checkBox2 // this.checkBox2.AutoSize = true; - this.checkBox2.Location = new System.Drawing.Point(93, 144); + this.checkBox2.Location = new System.Drawing.Point(93, 123); this.checkBox2.Name = "checkBox2"; this.checkBox2.Size = new System.Drawing.Size(70, 16); this.checkBox2.TabIndex = 88; @@ -1020,7 +1020,7 @@ // linkLabel1 // this.linkLabel1.AutoSize = true; - this.linkLabel1.Location = new System.Drawing.Point(32, 119); + this.linkLabel1.Location = new System.Drawing.Point(32, 101); this.linkLabel1.Name = "linkLabel1"; this.linkLabel1.Size = new System.Drawing.Size(53, 12); this.linkLabel1.TabIndex = 87; @@ -1031,7 +1031,7 @@ // textBox4 // this.textBox4.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "orderno", true)); - this.textBox4.Location = new System.Drawing.Point(413, 114); + this.textBox4.Location = new System.Drawing.Point(413, 96); this.textBox4.Name = "textBox4"; this.textBox4.Size = new System.Drawing.Size(127, 21); this.textBox4.TabIndex = 13; @@ -1040,7 +1040,7 @@ // tbPath // this.tbPath.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "path", true)); - this.tbPath.Location = new System.Drawing.Point(93, 114); + this.tbPath.Location = new System.Drawing.Point(93, 96); this.tbPath.Name = "tbPath"; this.tbPath.Size = new System.Drawing.Size(252, 21); this.tbPath.TabIndex = 11; @@ -1049,7 +1049,7 @@ // this.textBox2.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "memo", true)); this.textBox2.ImeMode = System.Windows.Forms.ImeMode.Hangul; - this.textBox2.Location = new System.Drawing.Point(93, 85); + this.textBox2.Location = new System.Drawing.Point(93, 74); this.textBox2.Name = "textBox2"; this.textBox2.Size = new System.Drawing.Size(252, 21); this.textBox2.TabIndex = 7; @@ -1101,8 +1101,11 @@ // panel5 // this.panel5.BackColor = System.Drawing.Color.Gainsboro; - this.panel5.Controls.Add(label12); - this.panel5.Controls.Add(this.cmbUser); + this.panel5.Controls.Add(this.cmbSW); + this.panel5.Controls.Add(this.cmbEpanel); + this.panel5.Controls.Add(this.cmbAssembly); + this.panel5.Controls.Add(this.cmbDesign); + this.panel5.Controls.Add(this.cmbChampion); this.panel5.Controls.Add(label7); this.panel5.Controls.Add(this.textBox5); this.panel5.Controls.Add(label8); @@ -1114,45 +1117,117 @@ this.panel5.Controls.Add(this.usermainTextBox); this.panel5.Controls.Add(userManagerLabel); this.panel5.Controls.Add(this.userManagerTextBox); - this.panel5.Location = new System.Drawing.Point(6, 292); + this.panel5.Location = new System.Drawing.Point(6, 249); this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(547, 131); + this.panel5.Size = new System.Drawing.Size(547, 194); this.panel5.TabIndex = 85; // - // cmbUser + // cmbSW // - this.cmbUser.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; - this.cmbUser.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; - this.cmbUser.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); - this.cmbUser.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.bs, "championid", true)); - this.cmbUser.DataSource = this.userListBindingSource; - this.cmbUser.DisplayMember = "IDName"; - this.cmbUser.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cmbUser.Font = new System.Drawing.Font("맑은 고딕", 12F); - this.cmbUser.FormattingEnabled = true; - this.cmbUser.Location = new System.Drawing.Point(353, 30); - this.cmbUser.Margin = new System.Windows.Forms.Padding(4); - this.cmbUser.Name = "cmbUser"; - this.cmbUser.Size = new System.Drawing.Size(185, 29); - this.cmbUser.TabIndex = 91; - this.cmbUser.ValueMember = "ID"; + this.cmbSW.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; + this.cmbSW.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.cmbSW.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); + this.cmbSW.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.bs, "softwareid", true)); + this.cmbSW.DataSource = this.bsSW; + this.cmbSW.DisplayMember = "IDName"; + this.cmbSW.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cmbSW.Font = new System.Drawing.Font("맑은 고딕", 12F); + this.cmbSW.FormattingEnabled = true; + this.cmbSW.Location = new System.Drawing.Point(101, 158); + this.cmbSW.Margin = new System.Windows.Forms.Padding(4); + this.cmbSW.Name = "cmbSW"; + this.cmbSW.Size = new System.Drawing.Size(249, 29); + this.cmbSW.TabIndex = 95; + this.cmbSW.ValueMember = "ID"; // - // userListBindingSource + // bsChampionID // - this.userListBindingSource.DataMember = "UserList"; - this.userListBindingSource.DataSource = this.dSComm; + this.bsChampionID.DataMember = "UserList"; + this.bsChampionID.DataSource = this.dSComm; // // dSComm // this.dSComm.DataSetName = "DSComm"; this.dSComm.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; // + // cmbEpanel + // + this.cmbEpanel.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; + this.cmbEpanel.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.cmbEpanel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); + this.cmbEpanel.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.bs, "epanelid", true)); + this.cmbEpanel.DataSource = this.bsEPanel; + this.cmbEpanel.DisplayMember = "IDName"; + this.cmbEpanel.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cmbEpanel.Font = new System.Drawing.Font("맑은 고딕", 12F); + this.cmbEpanel.FormattingEnabled = true; + this.cmbEpanel.Location = new System.Drawing.Point(101, 126); + this.cmbEpanel.Margin = new System.Windows.Forms.Padding(4); + this.cmbEpanel.Name = "cmbEpanel"; + this.cmbEpanel.Size = new System.Drawing.Size(249, 29); + this.cmbEpanel.TabIndex = 94; + this.cmbEpanel.ValueMember = "ID"; + // + // cmbAssembly + // + this.cmbAssembly.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; + this.cmbAssembly.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.cmbAssembly.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); + this.cmbAssembly.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.bs, "assemblyid", true)); + this.cmbAssembly.DataSource = this.bsAssembly; + this.cmbAssembly.DisplayMember = "IDName"; + this.cmbAssembly.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cmbAssembly.Font = new System.Drawing.Font("맑은 고딕", 12F); + this.cmbAssembly.FormattingEnabled = true; + this.cmbAssembly.Location = new System.Drawing.Point(101, 94); + this.cmbAssembly.Margin = new System.Windows.Forms.Padding(4); + this.cmbAssembly.Name = "cmbAssembly"; + this.cmbAssembly.Size = new System.Drawing.Size(249, 29); + this.cmbAssembly.TabIndex = 93; + this.cmbAssembly.ValueMember = "ID"; + // + // cmbDesign + // + this.cmbDesign.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; + this.cmbDesign.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.cmbDesign.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); + this.cmbDesign.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.bs, "designid", true)); + this.cmbDesign.DataSource = this.bsDesignID; + this.cmbDesign.DisplayMember = "IDName"; + this.cmbDesign.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cmbDesign.Font = new System.Drawing.Font("맑은 고딕", 12F); + this.cmbDesign.FormattingEnabled = true; + this.cmbDesign.Location = new System.Drawing.Point(101, 63); + this.cmbDesign.Margin = new System.Windows.Forms.Padding(4); + this.cmbDesign.Name = "cmbDesign"; + this.cmbDesign.Size = new System.Drawing.Size(249, 29); + this.cmbDesign.TabIndex = 92; + this.cmbDesign.ValueMember = "ID"; + // + // cmbChampion + // + this.cmbChampion.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; + this.cmbChampion.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.cmbChampion.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); + this.cmbChampion.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.bs, "championid", true)); + this.cmbChampion.DataSource = this.bsChampionID; + this.cmbChampion.DisplayMember = "IDName"; + this.cmbChampion.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cmbChampion.Font = new System.Drawing.Font("맑은 고딕", 12F); + this.cmbChampion.FormattingEnabled = true; + this.cmbChampion.Location = new System.Drawing.Point(101, 30); + this.cmbChampion.Margin = new System.Windows.Forms.Padding(4); + this.cmbChampion.Name = "cmbChampion"; + this.cmbChampion.Size = new System.Drawing.Size(249, 29); + this.cmbChampion.TabIndex = 91; + this.cmbChampion.ValueMember = "ID"; + // // textBox5 // this.textBox5.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "userprocess", true)); this.textBox5.Font = new System.Drawing.Font("맑은 고딕", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); this.textBox5.ImeMode = System.Windows.Forms.ImeMode.Hangul; - this.textBox5.Location = new System.Drawing.Point(353, 96); + this.textBox5.Location = new System.Drawing.Point(353, 94); this.textBox5.Name = "textBox5"; this.textBox5.Size = new System.Drawing.Size(185, 29); this.textBox5.TabIndex = 90; @@ -1162,7 +1237,7 @@ this.textBox3.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "userhw2", true)); this.textBox3.Font = new System.Drawing.Font("맑은 고딕", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); this.textBox3.ImeMode = System.Windows.Forms.ImeMode.Hangul; - this.textBox3.Location = new System.Drawing.Point(353, 63); + this.textBox3.Location = new System.Drawing.Point(353, 126); this.textBox3.Name = "textBox3"; this.textBox3.Size = new System.Drawing.Size(185, 29); this.textBox3.TabIndex = 88; @@ -1229,7 +1304,7 @@ this.panel2.Controls.Add(this.tbXdate); this.panel2.Controls.Add(this.tbEdate); this.panel2.Controls.Add(this.tbODate); - this.panel2.Location = new System.Drawing.Point(6, 429); + this.panel2.Location = new System.Drawing.Point(6, 448); this.panel2.Name = "panel2"; this.panel2.Size = new System.Drawing.Size(547, 126); this.panel2.TabIndex = 86; @@ -1394,7 +1469,7 @@ this.panel3.Controls.Add(costnLabel); this.panel3.Controls.Add(this.costoTextBox); this.panel3.Controls.Add(costoLabel); - this.panel3.Location = new System.Drawing.Point(6, 561); + this.panel3.Location = new System.Drawing.Point(6, 580); this.panel3.Name = "panel3"; this.panel3.Size = new System.Drawing.Size(546, 86); this.panel3.TabIndex = 86; @@ -1513,7 +1588,7 @@ this.arPanel1.ProgressValue = 0F; this.arPanel1.ShadowColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230))))); this.arPanel1.ShowBorder = true; - this.arPanel1.Size = new System.Drawing.Size(487, 305); + this.arPanel1.Size = new System.Drawing.Size(487, 322); this.arPanel1.TabIndex = 88; this.arPanel1.Text = "arPanel1"; this.arPanel1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; @@ -1684,7 +1759,7 @@ this.panel4.Dock = System.Windows.Forms.DockStyle.Fill; this.panel4.Location = new System.Drawing.Point(3, 257); this.panel4.Name = "panel4"; - this.panel4.Size = new System.Drawing.Size(516, 355); + this.panel4.Size = new System.Drawing.Size(516, 412); this.panel4.TabIndex = 90; // // rtBef @@ -1693,7 +1768,7 @@ this.rtBef.Location = new System.Drawing.Point(0, 23); this.rtBef.Name = "rtBef"; this.rtBef.ReadOnly = true; - this.rtBef.Size = new System.Drawing.Size(516, 332); + this.rtBef.Size = new System.Drawing.Size(516, 389); this.rtBef.TabIndex = 87; this.rtBef.Text = ""; this.rtBef.Click += new System.EventHandler(this.rtBack_Click); @@ -1758,7 +1833,7 @@ this.tableLayoutPanel1.RowCount = 2; this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 254F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel1.Size = new System.Drawing.Size(1044, 615); + this.tableLayoutPanel1.Size = new System.Drawing.Size(1044, 672); this.tableLayoutPanel1.TabIndex = 91; // // panel8 @@ -1923,7 +1998,7 @@ this.panel6.Dock = System.Windows.Forms.DockStyle.Fill; this.panel6.Location = new System.Drawing.Point(525, 257); this.panel6.Name = "panel6"; - this.panel6.Size = new System.Drawing.Size(516, 355); + this.panel6.Size = new System.Drawing.Size(516, 412); this.panel6.TabIndex = 90; // // rtAft @@ -1932,7 +2007,7 @@ this.rtAft.Location = new System.Drawing.Point(0, 23); this.rtAft.Name = "rtAft"; this.rtAft.ReadOnly = true; - this.rtAft.Size = new System.Drawing.Size(516, 332); + this.rtAft.Size = new System.Drawing.Size(516, 389); this.rtAft.TabIndex = 87; this.rtAft.Text = ""; this.rtAft.Click += new System.EventHandler(this.rtBack_Click); @@ -1990,7 +2065,7 @@ this.tabControl1.Location = new System.Drawing.Point(0, 0); this.tabControl1.Name = "tabControl1"; this.tabControl1.SelectedIndex = 0; - this.tabControl1.Size = new System.Drawing.Size(1058, 679); + this.tabControl1.Size = new System.Drawing.Size(1058, 696); this.tabControl1.TabIndex = 93; // // tabPage1 @@ -2005,7 +2080,7 @@ this.tabPage1.Location = new System.Drawing.Point(4, 22); this.tabPage1.Name = "tabPage1"; this.tabPage1.Padding = new System.Windows.Forms.Padding(3); - this.tabPage1.Size = new System.Drawing.Size(1050, 653); + this.tabPage1.Size = new System.Drawing.Size(1050, 670); this.tabPage1.TabIndex = 0; this.tabPage1.Text = "일반사항"; this.tabPage1.UseVisualStyleBackColor = true; @@ -2016,7 +2091,7 @@ | System.Windows.Forms.AnchorStyles.Right))); this.tabControl2.Controls.Add(this.tabPage3); this.tabControl2.Controls.Add(this.tabPage4); - this.tabControl2.Location = new System.Drawing.Point(559, 318); + this.tabControl2.Location = new System.Drawing.Point(559, 335); this.tabControl2.Name = "tabControl2"; this.tabControl2.SelectedIndex = 0; this.tabControl2.Size = new System.Drawing.Size(488, 329); @@ -2122,8 +2197,8 @@ // this.dataGridViewTextBoxColumn5.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; this.dataGridViewTextBoxColumn5.DataPropertyName = "remark"; - dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewTextBoxColumn5.DefaultCellStyle = dataGridViewCellStyle4; + dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewTextBoxColumn5.DefaultCellStyle = dataGridViewCellStyle8; this.dataGridViewTextBoxColumn5.HeaderText = "비고"; this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5"; this.dataGridViewTextBoxColumn5.ReadOnly = true; @@ -2265,7 +2340,7 @@ this.tabPage2.Location = new System.Drawing.Point(4, 22); this.tabPage2.Name = "tabPage2"; this.tabPage2.Padding = new System.Windows.Forms.Padding(3); - this.tabPage2.Size = new System.Drawing.Size(1050, 653); + this.tabPage2.Size = new System.Drawing.Size(1050, 710); this.tabPage2.TabIndex = 1; this.tabPage2.Text = "완료내역"; this.tabPage2.UseVisualStyleBackColor = true; @@ -2357,11 +2432,31 @@ // this.taToDo.ClearBeforeFill = true; // + // bsDesignID + // + this.bsDesignID.DataMember = "UserList"; + this.bsDesignID.DataSource = this.dSComm; + // + // bsAssembly + // + this.bsAssembly.DataMember = "UserList"; + this.bsAssembly.DataSource = this.dSComm; + // + // bsEPanel + // + this.bsEPanel.DataMember = "UserList"; + this.bsEPanel.DataSource = this.dSComm; + // + // bsSW + // + this.bsSW.DataMember = "UserList"; + this.bsSW.DataSource = this.dSComm; + // // fProjectData // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(1058, 704); + this.ClientSize = new System.Drawing.Size(1058, 721); this.Controls.Add(this.tabControl1); this.Controls.Add(this.bn); this.MinimizeBox = false; @@ -2381,7 +2476,7 @@ this.panel1.PerformLayout(); this.panel5.ResumeLayout(false); this.panel5.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.userListBindingSource)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bsChampionID)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dSComm)).EndInit(); this.panel2.ResumeLayout(false); this.panel2.PerformLayout(); @@ -2413,6 +2508,10 @@ this.bindingNavigator2.PerformLayout(); this.tabPage2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.bsTodo)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bsDesignID)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bsAssembly)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bsEPanel)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bsSW)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); @@ -2554,8 +2653,16 @@ private System.Windows.Forms.TextBox textBox8; private System.Windows.Forms.LinkLabel linkLabel8; private System.Windows.Forms.TextBox textBox9; - private System.Windows.Forms.ComboBox cmbUser; - private System.Windows.Forms.BindingSource userListBindingSource; + private System.Windows.Forms.ComboBox cmbChampion; + private System.Windows.Forms.BindingSource bsChampionID; private DSComm dSComm; + private System.Windows.Forms.ComboBox cmbSW; + private System.Windows.Forms.ComboBox cmbEpanel; + private System.Windows.Forms.ComboBox cmbAssembly; + private System.Windows.Forms.ComboBox cmbDesign; + private System.Windows.Forms.BindingSource bsSW; + private System.Windows.Forms.BindingSource bsEPanel; + private System.Windows.Forms.BindingSource bsAssembly; + private System.Windows.Forms.BindingSource bsDesignID; } } \ No newline at end of file diff --git a/SubProject/FPJ0000/Project/fProjectData.resx b/SubProject/FPJ0000/Project/fProjectData.resx index 9611b27..f6bda7c 100644 --- a/SubProject/FPJ0000/Project/fProjectData.resx +++ b/SubProject/FPJ0000/Project/fProjectData.resx @@ -180,9 +180,6 @@ False - - False - 100, 17 @@ -335,12 +332,24 @@ 449, 17 - - 120, 56 + + 676, 56 17, 56 + + 537, 56 + + + 398, 56 + + + 259, 56 + + + 120, 56 + 17, 56 diff --git a/SubProject/FPJ0000/Project/fProjectList.Designer.cs b/SubProject/FPJ0000/Project/fProjectList.Designer.cs index 16b6ede..b5085f4 100644 --- a/SubProject/FPJ0000/Project/fProjectList.Designer.cs +++ b/SubProject/FPJ0000/Project/fProjectList.Designer.cs @@ -46,12 +46,13 @@ FarPoint.Win.Spread.CellType.TextCellType textCellType11 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType12 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType13 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType14 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.NumberCellType numberCellType4 = new FarPoint.Win.Spread.CellType.NumberCellType(); FarPoint.Win.Spread.CellType.NumberCellType numberCellType5 = new FarPoint.Win.Spread.CellType.NumberCellType(); FarPoint.Win.Spread.CellType.NumberCellType numberCellType6 = new FarPoint.Win.Spread.CellType.NumberCellType(); FarPoint.Win.Spread.CellType.NumberCellType numberCellType7 = new FarPoint.Win.Spread.CellType.NumberCellType(); - FarPoint.Win.Spread.CellType.TextCellType textCellType14 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType15 = new FarPoint.Win.Spread.CellType.TextCellType(); + FarPoint.Win.Spread.CellType.TextCellType textCellType16 = new FarPoint.Win.Spread.CellType.TextCellType(); this.bn = new System.Windows.Forms.BindingNavigator(this.components); this.bs = new System.Windows.Forms.BindingSource(this.components); this.dsMSSQL = new FPJ0000.dsPRJ(); @@ -102,7 +103,6 @@ this.ta = new FPJ0000.dsPRJTableAdapters.ProjectsTableAdapter(); this.tam = new FPJ0000.dsPRJTableAdapters.TableAdapterManager(); this.fpSpread1 = new FarPoint.Win.Spread.FpSpread(); - this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView(); this.toolStrip1 = new System.Windows.Forms.ToolStrip(); this.cmbDateType = new System.Windows.Forms.ToolStripComboBox(); this.cmbYearS = new System.Windows.Forms.ToolStripComboBox(); @@ -164,13 +164,13 @@ this.button1 = new System.Windows.Forms.Button(); this.tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel(); this.label17 = new System.Windows.Forms.Label(); + this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView(); ((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit(); this.bn.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit(); this.cm.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).BeginInit(); this.toolStrip1.SuspendLayout(); this.tableLayoutPanel1.SuspendLayout(); this.panel4.SuspendLayout(); @@ -180,6 +180,7 @@ this.toolStrip2.SuspendLayout(); this.panel1.SuspendLayout(); this.tableLayoutPanel3.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).BeginInit(); this.SuspendLayout(); // // bn @@ -622,214 +623,6 @@ this.fpSpread1.StatusBarVisible = true; this.fpSpread1.TabIndex = 2; // - // 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 = 22; - this.fpSpread1_Sheet1.ColumnHeader.RowCount = 2; - this.fpSpread1_Sheet1.ActiveColumnIndex = -1; - this.fpSpread1_Sheet1.ActiveRowIndex = -1; - this.fpSpread1_Sheet1.AutoGenerateColumns = false; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 0).RowSpan = 2; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 0).Value = "IDX"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 1).RowSpan = 2; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 1).Value = "상태"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 2).RowSpan = 2; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 2).Value = "완료"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 3).RowSpan = 2; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 3).Value = "진행\r\n(%)"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 4).RowSpan = 2; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 4).Value = "준수율\r\n(%)"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 5).RowSpan = 2; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 5).Value = "파트"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 6).RowSpan = 2; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 6).Value = "공정"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 7).RowSpan = 2; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 7).Value = "요청"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 8).RowSpan = 2; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 8).Value = "담당"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 9).ColumnSpan = 3; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 9).Value = "협업"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 12).RowSpan = 2; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 12).Value = "자산번호"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 13).RowSpan = 2; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 13).Value = "Model#"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 14).RowSpan = 2; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 14).Value = "Serial#"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 15).RowSpan = 2; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 15).Value = "프로젝트"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 16).RowSpan = 2; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 16).Value = "대수"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 17).RowSpan = 2; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 17).Value = "Original\r\n($K)"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 18).RowSpan = 2; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 18).StyleName = " "; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 18).Value = "Input\r\n($K)"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 19).RowSpan = 2; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 19).Value = "Effect\r\n($K)"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 20).RowSpan = 2; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 20).Value = "SCR/CF"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 21).RowSpan = 2; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 21).Value = "비고"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 9).Value = "H/W"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 10).Value = "전장"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 11).Value = "S/W"; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 12).Value = "Asset No."; - this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 20).Value = "SCR/CF"; - this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 46F; - this.fpSpread1_Sheet1.Columns.Get(0).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - numberCellType1.DecimalPlaces = 0; - numberCellType1.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; - numberCellType1.MaximumValue = 2147483647D; - numberCellType1.MinimumValue = -2147483648D; - this.fpSpread1_Sheet1.Columns.Get(0).CellType = numberCellType1; - this.fpSpread1_Sheet1.Columns.Get(0).DataField = "idx"; - this.fpSpread1_Sheet1.Columns.Get(0).ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); - this.fpSpread1_Sheet1.Columns.Get(0).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(0).Locked = true; - this.fpSpread1_Sheet1.Columns.Get(0).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(0).Width = 63F; - this.fpSpread1_Sheet1.Columns.Get(1).AllowAutoFilter = true; - this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType1; - this.fpSpread1_Sheet1.Columns.Get(1).DataField = "status"; - this.fpSpread1_Sheet1.Columns.Get(1).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(1).Tag = "state"; - this.fpSpread1_Sheet1.Columns.Get(1).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(1).Width = 63F; - this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType2; - this.fpSpread1_Sheet1.Columns.Get(2).DataField = "edate"; - 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).Width = 63F; - numberCellType2.DecimalPlaces = 0; - numberCellType2.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; - numberCellType2.MaximumValue = 2147483647D; - numberCellType2.MinimumValue = -2147483648D; - this.fpSpread1_Sheet1.Columns.Get(3).CellType = numberCellType2; - this.fpSpread1_Sheet1.Columns.Get(3).DataField = "ProgressPrj"; - this.fpSpread1_Sheet1.Columns.Get(3).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(3).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(3).Width = 63F; - numberCellType3.DecimalPlaces = 0; - numberCellType3.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; - numberCellType3.MaximumValue = 2147483647D; - numberCellType3.MinimumValue = -2147483648D; - this.fpSpread1_Sheet1.Columns.Get(4).CellType = numberCellType3; - this.fpSpread1_Sheet1.Columns.Get(4).DataField = "finishrate"; - this.fpSpread1_Sheet1.Columns.Get(4).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(4).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(4).Width = 52F; - this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType3; - this.fpSpread1_Sheet1.Columns.Get(5).DataField = "part"; - this.fpSpread1_Sheet1.Columns.Get(5).Width = 63F; - this.fpSpread1_Sheet1.Columns.Get(6).AllowAutoFilter = true; - this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType4; - this.fpSpread1_Sheet1.Columns.Get(6).DataField = "process"; - this.fpSpread1_Sheet1.Columns.Get(6).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; - this.fpSpread1_Sheet1.Columns.Get(6).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(6).Width = 63F; - this.fpSpread1_Sheet1.Columns.Get(7).AllowAutoFilter = true; - this.fpSpread1_Sheet1.Columns.Get(7).CellType = textCellType5; - this.fpSpread1_Sheet1.Columns.Get(7).DataField = "reqstaff"; - this.fpSpread1_Sheet1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(7).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(7).Width = 63F; - this.fpSpread1_Sheet1.Columns.Get(8).AllowAutoFilter = true; - this.fpSpread1_Sheet1.Columns.Get(8).CellType = textCellType6; - this.fpSpread1_Sheet1.Columns.Get(8).DataField = "userManager"; - this.fpSpread1_Sheet1.Columns.Get(8).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(8).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(8).Width = 63F; - this.fpSpread1_Sheet1.Columns.Get(9).AllowAutoFilter = true; - this.fpSpread1_Sheet1.Columns.Get(9).CellType = textCellType7; - this.fpSpread1_Sheet1.Columns.Get(9).DataField = "usermain"; - this.fpSpread1_Sheet1.Columns.Get(9).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(9).Label = "H/W"; - this.fpSpread1_Sheet1.Columns.Get(9).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(9).Width = 63F; - this.fpSpread1_Sheet1.Columns.Get(10).AllowAutoFilter = true; - this.fpSpread1_Sheet1.Columns.Get(10).CellType = textCellType8; - this.fpSpread1_Sheet1.Columns.Get(10).DataField = "userhw2"; - this.fpSpread1_Sheet1.Columns.Get(10).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(10).Label = "전장"; - this.fpSpread1_Sheet1.Columns.Get(10).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(10).Width = 63F; - this.fpSpread1_Sheet1.Columns.Get(11).AllowAutoFilter = true; - this.fpSpread1_Sheet1.Columns.Get(11).CellType = textCellType9; - this.fpSpread1_Sheet1.Columns.Get(11).DataField = "usersub"; - this.fpSpread1_Sheet1.Columns.Get(11).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(11).Label = "S/W"; - this.fpSpread1_Sheet1.Columns.Get(11).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(11).Width = 63F; - this.fpSpread1_Sheet1.Columns.Get(12).CellType = textCellType10; - this.fpSpread1_Sheet1.Columns.Get(12).DataField = "asset"; - this.fpSpread1_Sheet1.Columns.Get(12).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(12).Label = "Asset No."; - this.fpSpread1_Sheet1.Columns.Get(12).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(12).Width = 63F; - this.fpSpread1_Sheet1.Columns.Get(13).CellType = textCellType11; - this.fpSpread1_Sheet1.Columns.Get(13).DataField = "model"; - this.fpSpread1_Sheet1.Columns.Get(13).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(13).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(14).CellType = textCellType12; - this.fpSpread1_Sheet1.Columns.Get(14).DataField = "serial"; - this.fpSpread1_Sheet1.Columns.Get(14).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(14).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(15).AllowAutoFilter = true; - this.fpSpread1_Sheet1.Columns.Get(15).CellType = textCellType13; - this.fpSpread1_Sheet1.Columns.Get(15).DataField = "name"; - this.fpSpread1_Sheet1.Columns.Get(15).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; - this.fpSpread1_Sheet1.Columns.Get(15).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(15).Width = 63F; - numberCellType4.DecimalPlaces = 0; - numberCellType4.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; - numberCellType4.MaximumValue = 2147483647D; - numberCellType4.MinimumValue = -2147483648D; - this.fpSpread1_Sheet1.Columns.Get(16).CellType = numberCellType4; - this.fpSpread1_Sheet1.Columns.Get(16).DataField = "cnt"; - this.fpSpread1_Sheet1.Columns.Get(16).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(16).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(16).Width = 63F; - numberCellType5.MaximumValue = 999999999999999D; - numberCellType5.MinimumValue = -999999999999999D; - this.fpSpread1_Sheet1.Columns.Get(17).CellType = numberCellType5; - this.fpSpread1_Sheet1.Columns.Get(17).DataField = "costo"; - this.fpSpread1_Sheet1.Columns.Get(17).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(17).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(17).Width = 63F; - numberCellType6.MaximumValue = 999999999999999D; - numberCellType6.MinimumValue = -999999999999999D; - this.fpSpread1_Sheet1.Columns.Get(18).CellType = numberCellType6; - this.fpSpread1_Sheet1.Columns.Get(18).DataField = "costn"; - this.fpSpread1_Sheet1.Columns.Get(18).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(18).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(18).Width = 63F; - this.fpSpread1_Sheet1.Columns.Get(19).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - numberCellType7.MaximumValue = 999999999999999D; - numberCellType7.MinimumValue = -999999999999999D; - this.fpSpread1_Sheet1.Columns.Get(19).CellType = numberCellType7; - this.fpSpread1_Sheet1.Columns.Get(19).DataField = "coste"; - this.fpSpread1_Sheet1.Columns.Get(19).ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); - this.fpSpread1_Sheet1.Columns.Get(19).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(19).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(19).Width = 63F; - this.fpSpread1_Sheet1.Columns.Get(20).CellType = textCellType14; - this.fpSpread1_Sheet1.Columns.Get(20).DataField = "orderno"; - this.fpSpread1_Sheet1.Columns.Get(20).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(20).Label = "SCR/CF"; - this.fpSpread1_Sheet1.Columns.Get(20).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; - this.fpSpread1_Sheet1.Columns.Get(20).Width = 63F; - this.fpSpread1_Sheet1.Columns.Get(21).CellType = textCellType15; - this.fpSpread1_Sheet1.Columns.Get(21).DataField = "memo"; - this.fpSpread1_Sheet1.Columns.Get(21).Width = 63F; - 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; - // // toolStrip1 // this.toolStrip1.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden; @@ -1576,6 +1369,220 @@ this.label17.Text = "구매 진행"; this.label17.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // + // 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 = 23; + this.fpSpread1_Sheet1.ColumnHeader.RowCount = 2; + this.fpSpread1_Sheet1.ActiveColumnIndex = -1; + this.fpSpread1_Sheet1.ActiveRowIndex = -1; + this.fpSpread1_Sheet1.AutoGenerateColumns = false; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 0).RowSpan = 2; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 0).Value = "IDX"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 1).RowSpan = 2; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 1).Value = "상태"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 2).RowSpan = 2; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 2).Value = "완료"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 3).RowSpan = 2; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 3).Value = "진행\r\n(%)"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 4).RowSpan = 2; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 4).Value = "준수율\r\n(%)"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 5).RowSpan = 2; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 5).Value = "파트"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 6).RowSpan = 2; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 6).Value = "공정"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 7).RowSpan = 2; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 7).Value = "요청"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 8).RowSpan = 2; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 8).Value = "C.P"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 9).ColumnSpan = 4; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 9).Value = "담당자"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 13).RowSpan = 2; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 13).Value = "자산번호"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 14).RowSpan = 2; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 14).Value = "Model#"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 15).RowSpan = 2; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 15).Value = "Serial#"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 16).RowSpan = 2; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 16).Value = "프로젝트"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 17).RowSpan = 2; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 17).Value = "대수"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 18).RowSpan = 2; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 18).Value = "Original\r\n($K)"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 19).RowSpan = 2; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 19).StyleName = " "; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 19).Value = "Input\r\n($K)"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 20).RowSpan = 2; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 20).Value = "Effect\r\n($K)"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 21).RowSpan = 2; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 21).Value = "SCR/CF"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 22).RowSpan = 2; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 22).Value = "비고"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 9).Value = "Design"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 10).Value = "Asmb"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 11).Value = "E-Panel"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 12).Value = "S/W"; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 13).Value = "Asset No."; + this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 21).Value = "SCR/CF"; + this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 46F; + this.fpSpread1_Sheet1.Columns.Get(0).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + numberCellType1.DecimalPlaces = 0; + numberCellType1.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; + numberCellType1.MaximumValue = 2147483647D; + numberCellType1.MinimumValue = -2147483648D; + this.fpSpread1_Sheet1.Columns.Get(0).CellType = numberCellType1; + this.fpSpread1_Sheet1.Columns.Get(0).DataField = "idx"; + this.fpSpread1_Sheet1.Columns.Get(0).ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); + this.fpSpread1_Sheet1.Columns.Get(0).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(0).Locked = true; + this.fpSpread1_Sheet1.Columns.Get(0).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(0).Width = 63F; + this.fpSpread1_Sheet1.Columns.Get(1).AllowAutoFilter = true; + this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType1; + this.fpSpread1_Sheet1.Columns.Get(1).DataField = "status"; + this.fpSpread1_Sheet1.Columns.Get(1).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(1).Tag = "state"; + this.fpSpread1_Sheet1.Columns.Get(1).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(1).Width = 63F; + this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType2; + this.fpSpread1_Sheet1.Columns.Get(2).DataField = "edate"; + 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).Width = 63F; + numberCellType2.DecimalPlaces = 0; + numberCellType2.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; + numberCellType2.MaximumValue = 2147483647D; + numberCellType2.MinimumValue = -2147483648D; + this.fpSpread1_Sheet1.Columns.Get(3).CellType = numberCellType2; + this.fpSpread1_Sheet1.Columns.Get(3).DataField = "ProgressPrj"; + this.fpSpread1_Sheet1.Columns.Get(3).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(3).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(3).Width = 63F; + numberCellType3.DecimalPlaces = 0; + numberCellType3.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; + numberCellType3.MaximumValue = 2147483647D; + numberCellType3.MinimumValue = -2147483648D; + this.fpSpread1_Sheet1.Columns.Get(4).CellType = numberCellType3; + this.fpSpread1_Sheet1.Columns.Get(4).DataField = "finishrate"; + this.fpSpread1_Sheet1.Columns.Get(4).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(4).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(4).Width = 52F; + this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType3; + this.fpSpread1_Sheet1.Columns.Get(5).DataField = "part"; + this.fpSpread1_Sheet1.Columns.Get(5).Width = 63F; + this.fpSpread1_Sheet1.Columns.Get(6).AllowAutoFilter = true; + this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType4; + this.fpSpread1_Sheet1.Columns.Get(6).DataField = "process"; + this.fpSpread1_Sheet1.Columns.Get(6).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; + this.fpSpread1_Sheet1.Columns.Get(6).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(6).Width = 63F; + this.fpSpread1_Sheet1.Columns.Get(7).AllowAutoFilter = true; + this.fpSpread1_Sheet1.Columns.Get(7).CellType = textCellType5; + this.fpSpread1_Sheet1.Columns.Get(7).DataField = "reqstaff"; + this.fpSpread1_Sheet1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(7).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(7).Width = 63F; + this.fpSpread1_Sheet1.Columns.Get(8).AllowAutoFilter = true; + this.fpSpread1_Sheet1.Columns.Get(8).CellType = textCellType6; + this.fpSpread1_Sheet1.Columns.Get(8).DataField = "name_champion"; + this.fpSpread1_Sheet1.Columns.Get(8).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(8).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(8).Width = 63F; + this.fpSpread1_Sheet1.Columns.Get(9).AllowAutoFilter = true; + this.fpSpread1_Sheet1.Columns.Get(9).CellType = textCellType7; + this.fpSpread1_Sheet1.Columns.Get(9).DataField = "name_design"; + this.fpSpread1_Sheet1.Columns.Get(9).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(9).Label = "Design"; + this.fpSpread1_Sheet1.Columns.Get(9).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(9).Width = 63F; + this.fpSpread1_Sheet1.Columns.Get(10).AllowAutoFilter = true; + this.fpSpread1_Sheet1.Columns.Get(10).CellType = textCellType8; + this.fpSpread1_Sheet1.Columns.Get(10).DataField = "name_assembly"; + this.fpSpread1_Sheet1.Columns.Get(10).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(10).Label = "Asmb"; + this.fpSpread1_Sheet1.Columns.Get(10).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(10).Width = 63F; + this.fpSpread1_Sheet1.Columns.Get(11).CellType = textCellType9; + this.fpSpread1_Sheet1.Columns.Get(11).DataField = "name_epanel"; + this.fpSpread1_Sheet1.Columns.Get(11).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(11).Label = "E-Panel"; + this.fpSpread1_Sheet1.Columns.Get(11).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(12).AllowAutoFilter = true; + this.fpSpread1_Sheet1.Columns.Get(12).CellType = textCellType10; + this.fpSpread1_Sheet1.Columns.Get(12).DataField = "name_software"; + this.fpSpread1_Sheet1.Columns.Get(12).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(12).Label = "S/W"; + this.fpSpread1_Sheet1.Columns.Get(12).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(12).Width = 63F; + this.fpSpread1_Sheet1.Columns.Get(13).CellType = textCellType11; + this.fpSpread1_Sheet1.Columns.Get(13).DataField = "asset"; + this.fpSpread1_Sheet1.Columns.Get(13).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(13).Label = "Asset No."; + this.fpSpread1_Sheet1.Columns.Get(13).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(13).Width = 63F; + this.fpSpread1_Sheet1.Columns.Get(14).CellType = textCellType12; + this.fpSpread1_Sheet1.Columns.Get(14).DataField = "model"; + this.fpSpread1_Sheet1.Columns.Get(14).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(14).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(15).CellType = textCellType13; + this.fpSpread1_Sheet1.Columns.Get(15).DataField = "serial"; + this.fpSpread1_Sheet1.Columns.Get(15).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(15).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(16).AllowAutoFilter = true; + this.fpSpread1_Sheet1.Columns.Get(16).CellType = textCellType14; + this.fpSpread1_Sheet1.Columns.Get(16).DataField = "name"; + this.fpSpread1_Sheet1.Columns.Get(16).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; + this.fpSpread1_Sheet1.Columns.Get(16).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(16).Width = 63F; + numberCellType4.DecimalPlaces = 0; + numberCellType4.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; + numberCellType4.MaximumValue = 2147483647D; + numberCellType4.MinimumValue = -2147483648D; + this.fpSpread1_Sheet1.Columns.Get(17).CellType = numberCellType4; + this.fpSpread1_Sheet1.Columns.Get(17).DataField = "cnt"; + this.fpSpread1_Sheet1.Columns.Get(17).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(17).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(17).Width = 63F; + numberCellType5.MaximumValue = 999999999999999D; + numberCellType5.MinimumValue = -999999999999999D; + this.fpSpread1_Sheet1.Columns.Get(18).CellType = numberCellType5; + this.fpSpread1_Sheet1.Columns.Get(18).DataField = "costo"; + this.fpSpread1_Sheet1.Columns.Get(18).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(18).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(18).Width = 63F; + numberCellType6.MaximumValue = 999999999999999D; + numberCellType6.MinimumValue = -999999999999999D; + this.fpSpread1_Sheet1.Columns.Get(19).CellType = numberCellType6; + this.fpSpread1_Sheet1.Columns.Get(19).DataField = "costn"; + this.fpSpread1_Sheet1.Columns.Get(19).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(19).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(19).Width = 63F; + this.fpSpread1_Sheet1.Columns.Get(20).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + numberCellType7.MaximumValue = 999999999999999D; + numberCellType7.MinimumValue = -999999999999999D; + this.fpSpread1_Sheet1.Columns.Get(20).CellType = numberCellType7; + this.fpSpread1_Sheet1.Columns.Get(20).DataField = "coste"; + this.fpSpread1_Sheet1.Columns.Get(20).ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); + this.fpSpread1_Sheet1.Columns.Get(20).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(20).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(20).Width = 63F; + this.fpSpread1_Sheet1.Columns.Get(21).CellType = textCellType15; + this.fpSpread1_Sheet1.Columns.Get(21).DataField = "orderno"; + this.fpSpread1_Sheet1.Columns.Get(21).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(21).Label = "SCR/CF"; + this.fpSpread1_Sheet1.Columns.Get(21).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; + this.fpSpread1_Sheet1.Columns.Get(21).Width = 63F; + this.fpSpread1_Sheet1.Columns.Get(22).CellType = textCellType16; + this.fpSpread1_Sheet1.Columns.Get(22).DataField = "memo"; + this.fpSpread1_Sheet1.Columns.Get(22).Width = 63F; + 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; + // // fProjectList // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; @@ -1597,7 +1604,6 @@ ((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).EndInit(); this.cm.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).EndInit(); this.toolStrip1.ResumeLayout(false); this.toolStrip1.PerformLayout(); this.tableLayoutPanel1.ResumeLayout(false); @@ -1610,6 +1616,7 @@ this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); this.tableLayoutPanel3.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); diff --git a/SubProject/FPJ0000/Project/fProjectList.cs b/SubProject/FPJ0000/Project/fProjectList.cs index b62dff9..a7f23f6 100644 --- a/SubProject/FPJ0000/Project/fProjectList.cs +++ b/SubProject/FPJ0000/Project/fProjectList.cs @@ -10,807 +10,813 @@ using util = FCOMMON.Util; namespace FPJ0000 { - public partial class fProjectList : FCOMMON.fBase - { - string fn_fpcolsize = ""; - public fProjectList() - { - InitializeComponent(); - fn_fpcolsize = util.MakeFilePath(util.CurrentPath, "formSetting", "fp_" + this.Name + ".ini"); - this.dsMSSQL.Projects.TableNewRow += Projects_TableNewRow; - this.FormClosed += __Closed; - } - - void __Closed(object sender, FormClosedEventArgs e) - { - - } - - private void __Load(object sender, EventArgs e) - { - //프로젝트 목록을 처리함 - this.tbRequest.Text = FCOMMON.info.Login.nameK; - cmbDateType.SelectedIndex = 0; //기본시작일 기준으로 한다 - - //분류 - 190905 - var dt_cate = FCOMMON.DBM.getCodeTable("20"); - cmbCate.Items.Clear(); - cmbCate.Items.Add("--전체--"); - foreach (DataRow dr in dt_cate.Rows) - cmbCate.Items.Add(dr["Value"].ToString()); - cmbCate.SelectedIndex = 0; - - this.cmbSort.Items.Clear(); - this.cmbSort.Items.AddRange(new string[] { - "---", - "Origin Cost", - "Input Cost", - "Effect Cost", - "Asset No", - "Project", - "Champion", - "Requestor", - "Process", - "Asset / 사용자 / 등록날짜", - }); - - chk검토_CheckedChanged(this.chk검토, null); - chk검토_CheckedChanged(this.chk진행, null); - chk검토_CheckedChanged(this.chk대기, null); - chk검토_CheckedChanged(this.chk보류, null); - chk검토_CheckedChanged(this.chk완료, null); - chk검토_CheckedChanged(this.chk취소, null); - chk검토_CheckedChanged(this.chk완료보고, null); - - this.cmbProcess.Items.Clear(); - this.cmbProcess.Items.Add("전체"); - var procesList = FCOMMON.DBM.getProcessList(); - foreach (DataRow dr in procesList.Rows) - cmbProcess.Items.Add(dr["Value"].ToString()); - cmbProcess.Text = FCOMMON.info.Login.process; - if (cmbProcess.SelectedIndex < 0) cmbProcess.SelectedIndex = 0; - - this.cmbSort.SelectedIndex = 0; - this.cmbYearS.Items.Clear(); - this.cmbYearE.Items.Clear(); - for (int i = 2010; i <= DateTime.Now.Year; i++) - { - cmbYearS.Items.Add(i.ToString("0000")); - cmbYearE.Items.Add(i.ToString("0000")); - } - this.cmbYearS.Text = DateTime.Now.AddYears(-2).Year.ToString("0000"); - this.cmbYearE.Text = DateTime.Now.Year.ToString("0000"); - refreshData(); - - //일반사용자의경우에는 상태를 변경하지 못한다. - int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.project)); - if (curLevel >= 5) - { - btSave.Visible = true; - } - else - { - btSave.Visible = false; //목록에서 저장버튼은 제거한다. - btViewDel.Visible = false; - fpSpread1.EditMode = false; - fpSpread1.Sheets[0].SelectionUnit = FarPoint.Win.Spread.Model.SelectionUnit.Row; - fpSpread1.EditModePermanent = false; - fpSpread1.EditModeReplace = false; - - foreach (FarPoint.Win.Spread.Column col in fpSpread1.ActiveSheet.Columns) - col.Locked = true; - } - - - } - - void refreshData() - { - - string state = ""; - if (chk검토.Checked && chk진행.Checked && chk보류.Checked && chk완료.Checked && chk취소.Checked && chk대기.Checked) - { - state = ""; - } - else if (chk검토.Checked == false && chk진행.Checked == false && chk보류.Checked == false && chk완료.Checked == false && chk취소.Checked == false && chk대기.Checked == false) - { - chk진행.Checked = true; - state = "[status] = '진행'"; //아무것도 선택안하면 진행을 선택해준다. - } - else - { - state = "[status] in ("; - if (chk검토.Checked) state += "'검토'"; - - if (chk보류.Checked) - { - if (state.EndsWith("(") == false) state += ","; - state += "'보류'"; - } - if (chk대기.Checked) - { - if (state.EndsWith("(") == false) state += ","; - state += "'대기'"; - } - if (chk진행.Checked) - { - if (state.EndsWith("(") == false) state += ","; - state += "'진행'"; - } - if (chk취소.Checked) - { - if (state.EndsWith("(") == false) state += ","; - state += "'취소'"; - } - if (chk완료.Checked) - { - if (state.EndsWith("(") == false) state += ","; - state += "'완료'"; - } - if (chk완료보고.Checked) - { - if (state.EndsWith("(") == false) state += ","; - state += "'완료(보고)'"; - } - state += ")"; - } - - // SELECT idx, status, pdate, name, usermain, usersub, request, reqstaff, sdate, edate, odate, memo, wuid, wdate, rev, pidx, userManager, level, part, process, costo, costn, cnt, remark_req, - // remark_ans, ddate, progress, import - //FROM Projects - //WHERE (status LIKE @state) AND (ISNULL(userManager, '') LIKE @username OR - // ISNULL(usermain, '') LIKE @username OR - // ISNULL(usersub, '') LIKE @username) - //ORDER BY (CASE WHEN [status] = '검토' THEN '0' WHEN ([status] = '진행') THEN '1' WHEN ([status] = '보류') THEN '2' WHEN ([status] = '완료') THEN '3' WHEN ([status] = '취소') - // THEN '9' ELSE '5' END) - - // var orgQuery = this.ta.Adapter.SelectCommand.CommandText; - - - string State_Select = " SELECT [idx],[pidx],[gcode],[isdel],[status],[asset],[level],[rev]," + - " [process],[part],[pdate],[name],[userManager],[usermain],[usersub],[userhw2],[reqstaff],"+ - " [costo],[costn],[cnt],[remark_req],[remark_ans],[sdate],[ddate],[edate],[odate],[progress],"+ - " [memo],[wuid],[wdate],[orderno],[crdue],[import],[path],[userprocess],[bCost],[bFanOut],[div]," + - " dbo.getScheduleProgress(idx) as ProgressPrj, dbo.getLastHistory(idx) AS lasthistory,'' AS wws, '' AS wwo, '' AS wwe, '' AS wwd,model,serial,"+ - " [championid], dbo.getProjectFinishRate(gcode, idx) AS finishrate" + - " FROM Projects"; - //string State_Select = " SELECT [idx],[pidx],[gcode],[isdel],[status],[asset],[level],[rev],[process],[part],[pdate],[name],[userManager],[usermain],[usersub],[userhw2],[reqstaff],[costo],[costn],[cnt],[remark_req],[remark_ans],[sdate],[ddate],[edate],[odate],[progress],[memo],[wuid],[wdate],[orderno],[crdue],[import],[path],[userprocess],[bCost],[bFanOut],[div],dbo.getScheduleProgress(idx) as ProgressPrj, dbo.getLastHistory(idx) AS lasthistory, dbo.getWorkWeek(sdate) AS wws, dbo.getWorkWeek(odate) AS wwo, dbo.getWorkWeek(edate) AS wwe, dbo.getWorkWeek(ddate) AS wwd FROM Projects"; - string State_where = " WHERE gcode=@gcode and isnull(div,'') <> 'EB' and "; - - if (btViewDel.Checked == false) State_where += " isnull(isdel,0)=0 and "; //삭제보기 햇을 경우 - - //var dateField = "pdate"; - //if (cmbDateType.SelectedIndex == 1) dateField = "edate"; - //else if (cmbDateType.SelectedIndex == 2) dateField = "odate"; - - //State_where += " " + dateField + " between '" + cmbYearS.Text + "-01-01' and '" + cmbYearE.Text + "-12-31' AND (ISNULL(userManager, '') LIKE @username OR " + - // "ISNULL(usermain, '') LIKE @username OR " + - // "ISNULL(reqstaff, '') LIKE @username OR " + - // "ISNULL(usersub, '') LIKE @username) "; - State_where += " (ISNULL(userManager, '') LIKE @username OR " + - "ISNULL(usermain, '') LIKE @username OR " + - "ISNULL(reqstaff, '') LIKE @username OR " + - "ISNULL(usersub, '') LIKE @username) "; - - if (state != "") State_where += " AND " + state; - if (cmbCate.SelectedIndex > 0) State_where += " AND isnull(category,'') = '" + cmbCate.Text + "'"; - if (cmbProcess.SelectedIndex > 0) State_where += " and isnull(userprocess,'') = '" + cmbProcess.Text.Trim() + "'"; - string State_order = " ORDER BY (CASE " + - " WHEN ([status] = '진행') THEN '0' " + - " WHEN ([status] = '검토') THEN '1' " + - " WHEN ([status] = '대기') THEN '2' " + - " WHEN ([status] = '완료') THEN '3' " + - " WHEN ([status] = '완료(보고)') THEN '4' " + - " WHEN ([status] = '보류') THEN '5' " + - " WHEN ([status] = '취소') THEN '9' " + - " ELSE '5' END),userManager,sdate"; - - string request = "%"; - if (tbRequest.Text.Trim() != "") request = "%" + this.tbRequest.Text.Trim() + "%"; - - System.Data.SqlClient.SqlCommand selCmd = new System.Data.SqlClient.SqlCommand(); - selCmd.Connection = ta.Connection; - selCmd.CommandText = State_Select + State_where + State_order; - selCmd.Parameters.Add("gcode", SqlDbType.VarChar).Value = FCOMMON.info.Login.gcode; - selCmd.Parameters.Add("username", SqlDbType.VarChar); - selCmd.Parameters["username"].Value = request; - - System.Data.SqlClient.SqlDataAdapter sda = new System.Data.SqlClient.SqlDataAdapter(); - sda.SelectCommand = selCmd; - - this.dsMSSQL.Projects.Clear(); - sda.Fill(this.dsMSSQL.Projects); - - //this.ta.Adapter.SelectCommand = selCmd; - //this.ta.Fill(this.dsMSSQL.Projects, state,request); - // this.ta.Adapter.SelectCommand.CommandText = orgQuery; - this.dsMSSQL.Projects.AcceptChanges(); - - sbSumE.Text = this.dsMSSQL.Projects.Sum(t => t.coste).ToString("N2"); - sbSumO.Text = this.dsMSSQL.Projects.Sum(t => t.costo).ToString("N2"); - sbSumI.Text = this.dsMSSQL.Projects.Sum(t => t.costn).ToString("N2"); - - FormattingData(); - FPUtil.ColSizeLoad(ref this.fpSpread1, fn_fpcolsize); - } - - void FormattingData() - { - - //삭제컬럼인덱스 - this.fpSpread1.SuspendLayout(); - var statindex = this.fpSpread1.ActiveSheet.Columns["state"].Index; - for (int i = 0; i < this.fpSpread1.ActiveSheet.Rows.Count; i++) - { - var state = this.fpSpread1.ActiveSheet.GetValue(i, statindex); - string stateStr = string.Empty; - if (state != null) stateStr = state.ToString(); - - this.fpSpread1.ActiveSheet.Rows[i].BackColor = Color.White; - switch (stateStr.ToLower()) - { - case "검토": - this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.Blue; - break; - case "취소": - this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.Red; - break; - case "진행": - this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.Green; - break; - case "보류": - this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.Tomato; - break; - case "완료(보고)": - this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.Gray; - break; - case "완료": - this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.Magenta; - break; - default: - this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.Black; - break; - } - - } - FPUtil.ColSizeLoad(ref this.fpSpread1, fn_fpcolsize); - this.fpSpread1.ResumeLayout(); - } - - void funcSave(Boolean pmt) - { - this.Validate(); - this.bs.EndEdit(); - - if (pmt) - { - var dlg = FCOMMON.Util.MsgQ("변경 사항을 저장하시겠습니까?"); - if (dlg != System.Windows.Forms.DialogResult.Yes) return; - } - - try - { - this.ta.Update(this.dsMSSQL.Projects);//.UpdateAll(this.dsMSSQL.Projects); - dsMSSQL.Projects.AcceptChanges(); - FPUtil.ColSizeLoad(ref this.fpSpread1, fn_fpcolsize); - } - catch (Exception ex) - { - FCOMMON.Util.MsgE(ex.Message); - } - } - - private void projectsBindingNavigatorSaveItem_Click(object sender, EventArgs e) - { - funcSave(true); - - } - void Projects_TableNewRow(object sender, DataTableNewRowEventArgs e) - { - e.Row["gcode"] = FCOMMON.info.Login.gcode; - e.Row["wuid"] = FCOMMON.info.Login.no; - e.Row["wdate"] = DateTime.Now; - } - - private void refreshToolStripMenuItem_Click(object sender, EventArgs e) - { - refreshData(); - } - - void menu_partlist() - { - var drv = this.bs.Current as DataRowView; - if (drv == null) return; - var dr = drv.Row as dsPRJ.ProjectsRow; - var f = new fPartList(dr.idx); - f.StartPosition = FormStartPosition.CenterScreen; - f.Show(); - } - private void partListToolStripMenuItem_Click(object sender, EventArgs e) - { - menu_partlist(); - } - - - private void autoToolStripMenuItem_Click(object sender, EventArgs e) - { - this.fpSpread1.ActiveSheet.DataAutoSizeColumns = true; - - for (int i = 0; i < this.fpSpread1.ActiveSheet.Rows.Count; i++) - this.fpSpread1.ActiveSheet.SetRowHeight(i, 25); - //dv1.AutoResizeColumns(); - } - - private void resetToolStripMenuItem_Click(object sender, EventArgs e) - { - foreach (FarPoint.Win.Spread.Column col in this.fpSpread1.ActiveSheet.Columns) - { - col.ResetVisible(); - col.Width = 100; - } - } - - private void saveToolStripMenuItem_Click(object sender, EventArgs e) - { - FPUtil.ColsizeSave(this.fpSpread1, fn_fpcolsize); - } - - private void loadToolStripMenuItem_Click(object sender, EventArgs e) - { - FPUtil.ColSizeLoad(ref this.fpSpread1, fn_fpcolsize); - } - - private void btSearch_Click(object sender, EventArgs e) - { - - } - - private void toolStripLabel3_Click(object sender, EventArgs e) - { - //사용자목록처리 - if (tbRequest.Text != "") - { - tbRequest.Text = string.Empty; - } - else tbRequest.Text = FCOMMON.info.Login.nameK; - - refreshData(); - } - - private void scheduleToolStripMenuItem_Click(object sender, EventArgs e) - { - var drv = this.bs.Current as DataRowView; - if (drv == null) return; - var dr = drv.Row as dsPRJ.ProjectsRow; - var f = new fProjectSchedule(dr.idx); - f.MdiParent = this.MdiParent; - f.Show(); - } - - private void makeRepeatToolStripMenuItem_Click(object sender, EventArgs e) - { - funcCopy(); - } - void funcCopy() - { - var drv = this.bs.Current as DataRowView; - if (drv == null) return; - var dr = drv.Row as dsPRJ.ProjectsRow; - var dlg = FCOMMON.Util.MsgQ("선택된 프로젝트를 복사하시겠습니까?\n\n생성된 자료는 [검토] 상태로 전환 됩니다."); - if (dlg == System.Windows.Forms.DialogResult.Yes) - { - var ta = new dsPRJTableAdapters.QueriesTableAdapter(); - int? newidx = -1; - var retval = ta.CopyProjectData(dr.idx, FCOMMON.info.Login.no, ref newidx); - refreshData(); - if (newidx != null) - { - var newdr = this.dsMSSQL.Projects.Where(t => t.idx == newidx).FirstOrDefault(); - newdr.userprocess = FCOMMON.info.Login.process; - var f = new fProjectData(newdr); - if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) - { - int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.project)); - if (curLevel < 5) - { - funcSave(false); //자동저장 - } - } - } - } - } - - void menu_iomap() - { - var drv = this.bs.Current as DataRowView; - if (drv == null) return; - var dr = drv.Row as dsPRJ.ProjectsRow; - var f = new fProjectIOMap(dr.idx); - f.Show(); - } - - private void iOMapToolStripMenuItem_Click(object sender, EventArgs e) - { - menu_iomap(); - } - - private void tbFind_KeyDown(object sender, KeyEventArgs e) - { - if (e.KeyCode == Keys.Enter) - btFind.PerformClick(); - } - - private void btFind_Click(object sender, EventArgs e) - { - - string search = tbFind.Text.Trim(); - if (search == "") - { - - bs.Filter = ""; - tbFind.BackColor = SystemColors.Control; - FormattingData(); - } - else - { - try - { - var cols = new string[] { - "name","process","reqstaff","usermain", - "orderno","usersub","userManager", - "remark_req"}; - bs.Filter = FCOMMON.Util.MakeFilterString(cols, search); - tbFind.BackColor = Color.Lime; - tbFind.SelectAll(); - tbFind.Focus(); - FormattingData(); - } - catch (Exception ex) - { - bs.Filter = ""; - FCOMMON.Util.MsgE(ex.Message); - tbFind.BackColor = Color.Red; - FormattingData(); - } - } - } - - private void bindingNavigatorDeleteItem_Click(object sender, EventArgs e) - { - funcDelete(); - } - void funcDelete() - { - var dlg = FCOMMON.Util.MsgQ("현재 선택된 자료를 삭제하시겠습니까?"); - if (dlg == System.Windows.Forms.DialogResult.Yes) - { - bs.RemoveCurrent(); - - //일반사용자는 바로 저장되도록 함 - int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.project)); - if (curLevel < 5) - { - funcSave(false); //자동저장 - } - } - } - private void 엑셀파일로저장ToolStripMenuItem_Click(object sender, EventArgs e) - { - SaveFileDialog sd = new SaveFileDialog(); - sd.Filter = ("excel|*.xls"); - var dlg = sd.ShowDialog(); - if (dlg == System.Windows.Forms.DialogResult.OK) - { - this.fpSpread1.SaveExcel(sd.FileName, - FarPoint.Excel.ExcelSaveFlags.SaveAsViewed - | FarPoint.Excel.ExcelSaveFlags.SaveAsFiltered - | FarPoint.Excel.ExcelSaveFlags.NoFormulas - | FarPoint.Excel.ExcelSaveFlags.SaveCustomColumnHeaders); - - FCOMMON.Util.MsgI("파일생성 완료\n\n" + sd.FileName); - } - } - - private void 메일발송주소관리ToolStripMenuItem_Click(object sender, EventArgs e) - { - var drv = this.bs.Current as DataRowView; - if (drv == null) return; - var dr = drv.Row as dsPRJ.ProjectsRow; - var f = new fMailList(dr.idx); - f.ShowDialog(); - } - - private void bs_CurrentChanged(object sender, EventArgs e) - { - //히스토리 데이터를 업데이트하고 첫번재 자료를 표시한다. - var drv = this.bs.Current as DataRowView; - if (drv == null) - { - this.label1.Text = "프로젝트가 선택되지 않았습니다"; - return; - } - var dr = drv.Row as dsPRJ.ProjectsRow; - this.label1.Text = string.Format("[{0}] {1}", dr.name, dr.memo); - - var sql = "select ((sum((case when isnull(qtybuy,0) = isnull(qtyin,0) then 1 else 0 end))*1.0) / count(*))*100 " + - $" from ProjectsPart where project = {dr.idx}" + - $" and isnull(qtybuy,0) <> 0"; - var stR_result = FCOMMON.DBM.ExecuteScalar(sql); - if (string.IsNullOrEmpty(stR_result)) - { - tableLayoutPanel3.Visible = false; - } - else - { - tableLayoutPanel3.Visible = true; - var perc = float.Parse(stR_result); - this.label17.Text = string.Format("구매 완료({0:N0}%)", perc); - this.prb1.ProgressMin = 0; - this.prb1.ProgressMax = 100; - this.prb1.ProgressValue = perc; - } - - try - { - taHist.Fill(this.dsMSSQL.ProjectsHistory, dr.idx); - } - catch - { - - } - } - - private void button1_Click(object sender, EventArgs e) - { - var drv = this.bs.Current as DataRowView; - if (drv == null) return; - var dr = drv.Row as dsPRJ.ProjectsRow; - var f = new fProejctHistory(dr.idx); - f.StartPosition = FormStartPosition.CenterScreen; - var dlg = f.ShowDialog(); - bs_CurrentChanged(sender, e); - } - - private void bindingNavigatorAddNewItem_Click(object sender, EventArgs e) - { - var newdr = this.dsMSSQL.Projects.NewProjectsRow(); - newdr.wuid = FCOMMON.info.Login.no; - newdr.wdate = DateTime.Now; - newdr.pdate = DateTime.Now.ToString("yyyy-MM-dd"); - newdr.sdate = DateTime.Now.ToString("yyyy-MM-dd"); - newdr.userManager = FCOMMON.info.Login.nameK; - newdr.progress = 0; - newdr.userprocess = FCOMMON.info.Login.process; - newdr.costn = 0; - newdr.costo = 0; - newdr.cnt = 1; - newdr.name = "Project Title"; - var f = new fProjectData(newdr); - f.StartPosition = FormStartPosition.CenterScreen; - var dlg = f.ShowDialog(); - if (dlg == System.Windows.Forms.DialogResult.OK) - { - this.dsMSSQL.Projects.AddProjectsRow(newdr); - try - { - - ta.Update(newdr); - } - catch (Exception ex) - { - FCOMMON.Util.MsgE("Save Error\n" + ex.Message); - } - - } - else newdr.Delete(); - } - - private void btEdit_Click(object sender, EventArgs e) - { - funcEdit(); - } - void funcEdit() - { - var drv = this.bs.Current as DataRowView; - if (drv == null) return; - var dr = drv.Row as dsPRJ.ProjectsRow; - var f = new fProjectData(dr); - if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) - { - int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.project)); - if (curLevel < 5) - { - funcSave(false); //자동저장 - } - FormattingData(); - } - } - - private void 편집ToolStripMenuItem_Click(object sender, EventArgs e) - { - funcEdit(); - } - - private void tbRequest_KeyDown(object sender, KeyEventArgs e) - { - if (e.KeyCode == Keys.Enter) - btSearch.PerformClick(); - } - - private void toolStripComboBox1_SelectedIndexChanged(object sender, EventArgs e) - { - // --- - //Origin Cost - //Input Cost - //Effect Cost - //Asset No - //Project - //Champion - //Requestor - //Process - switch (cmbSort.SelectedIndex) - { - case 1: - if (this.bs.Sort == "costo") this.bs.Sort = "costo desc"; - else this.bs.Sort = "costo"; - break; - case 2: - if (this.bs.Sort == "costn") this.bs.Sort = "costn desc"; - else this.bs.Sort = "costn"; - break; - case 3: - if (this.bs.Sort == "coste") this.bs.Sort = "coste desc"; - else this.bs.Sort = "coste"; - break; - case 4: - if (this.bs.Sort == "asset") this.bs.Sort = "asset desc"; - else this.bs.Sort = "asset"; - break; - case 5: - if (this.bs.Sort == "[name]") this.bs.Sort = "[name] desc"; - else this.bs.Sort = "[name]"; - break; - case 6: - if (this.bs.Sort == "userManager") this.bs.Sort = "userManager desc"; - else this.bs.Sort = "userManager"; - break; - case 7: - if (this.bs.Sort == "reqstaff") this.bs.Sort = "reqstaff desc"; - else this.bs.Sort = "reqstaff"; - break; - case 8: - if (this.bs.Sort == "process") this.bs.Sort = "process desc"; - else this.bs.Sort = "process"; - break; - case 9: - //"Asset / 사용자 / 등록날짜" - var sort = "asset,usermain,pdate"; - if (this.bs.Sort == sort) this.bs.Sort = sort; - else this.bs.Sort = sort; - break; - default: - this.bs.Sort = ""; - break; - } - } - - private void btCopy_Click(object sender, EventArgs e) - { - funcCopy(); - } - - private void toolStripButton2_Click(object sender, EventArgs e) - { - - } - - private void toolStripButton1_Click(object sender, EventArgs e) - { - menu_partlist(); - } - - private void toolStripButton3_Click(object sender, EventArgs e) - { - menu_iomap(); - } - - private void 삭제ToolStripMenuItem_Click(object sender, EventArgs e) - { - funcDelete(); - } - - private void 공유폴더ToolStripMenuItem_Click(object sender, EventArgs e) - { - showfolder(); - } - void showfolder() - { - var drv = this.bs.Current as DataRowView; - if (drv == null) return; - var dr = drv.Row as dsPRJ.ProjectsRow; - - var tbPath = dr.path; - - if (tbPath == "") tbPath = "/" + dr.idx.ToString(); - - if (tbPath.StartsWith("\\") == false) - { - if (tbPath.StartsWith("/")) tbPath = tbPath.Replace("/", "\\"); - else tbPath = "\\" + tbPath; - } - //\\10.131.32.29\Data - var datapath = FCOMMON.DBM.getCodeSavlue("55", "01"); - var serverpath = System.IO.Path.Combine(datapath, "Data", "Project"); - if (System.IO.Directory.Exists(serverpath) == false) - { - FCOMMON.Util.MsgE("프로젝트 기본경로가 존재하지 않아 진행할 수 없습니다\n\n" + - serverpath); - return; - } - - var path = serverpath + tbPath; - if (System.IO.Directory.Exists(path) == false) - { - try - { - System.IO.Directory.CreateDirectory(path); - - string[] subdir = new string[] { "Source", "Document", "Draw", "Estimate" }; - foreach (var dir in subdir) - System.IO.Directory.CreateDirectory(path + "\\" + dir); - - } - catch (Exception eX) - { - FCOMMON.Util.MsgE("프로젝트 저장소 생성실패\n" + eX.Message); - return; - } - } - - FCOMMON.Util.RunExplorer(path); - } - - private void toolStripButton4_Click(object sender, EventArgs e) - { - showfolder(); - } - - private void button1_Click_1(object sender, EventArgs e) - { - this.Close(); - } - - private void button2_Click(object sender, EventArgs e) - { - refreshData(); - } - - private void richTextBox2_TextChanged(object sender, EventArgs e) - { - - } - - private void cmbDateType_Click(object sender, EventArgs e) - { - - } - - private void cmbYearE_Click(object sender, EventArgs e) - { - - } - - private void toolStripButton2_Click_1(object sender, EventArgs e) - { - var f = new fProjectSummary(); - f.Show(); - } - - private void chk검토_CheckedChanged(object sender, EventArgs e) - { - var but = sender as ToolStripButton; - but.ForeColor = but.Checked ? Color.Blue : Color.Black; - but.Font = but.Checked ? new Font("맑은 고딕", 10, FontStyle.Bold) : new Font("맑은 고딕", 10); - } - } + public partial class fProjectList : FCOMMON.fBase + { + string fn_fpcolsize = ""; + public fProjectList() + { + InitializeComponent(); + fn_fpcolsize = util.MakeFilePath(util.CurrentPath, "formSetting", "fp_" + this.Name + ".ini"); + this.dsMSSQL.Projects.TableNewRow += Projects_TableNewRow; + this.FormClosed += __Closed; + } + + void __Closed(object sender, FormClosedEventArgs e) + { + + } + + private void __Load(object sender, EventArgs e) + { + //프로젝트 목록을 처리함 + this.tbRequest.Text = FCOMMON.info.Login.nameK; + cmbDateType.SelectedIndex = 0; //기본시작일 기준으로 한다 + + //분류 - 190905 + var dt_cate = FCOMMON.DBM.getCodeTable("20"); + cmbCate.Items.Clear(); + cmbCate.Items.Add("--전체--"); + foreach (DataRow dr in dt_cate.Rows) + cmbCate.Items.Add(dr["Value"].ToString()); + cmbCate.SelectedIndex = 0; + + this.cmbSort.Items.Clear(); + this.cmbSort.Items.AddRange(new string[] { + "---", + "Origin Cost", + "Input Cost", + "Effect Cost", + "Asset No", + "Project", + "Champion", + "Requestor", + "Process", + "Asset / 사용자 / 등록날짜", + }); + + chk검토_CheckedChanged(this.chk검토, null); + chk검토_CheckedChanged(this.chk진행, null); + chk검토_CheckedChanged(this.chk대기, null); + chk검토_CheckedChanged(this.chk보류, null); + chk검토_CheckedChanged(this.chk완료, null); + chk검토_CheckedChanged(this.chk취소, null); + chk검토_CheckedChanged(this.chk완료보고, null); + + this.cmbProcess.Items.Clear(); + this.cmbProcess.Items.Add("전체"); + var procesList = FCOMMON.DBM.getProcessList(); + foreach (DataRow dr in procesList.Rows) + cmbProcess.Items.Add(dr["Value"].ToString()); + cmbProcess.Text = FCOMMON.info.Login.process; + if (cmbProcess.SelectedIndex < 0) cmbProcess.SelectedIndex = 0; + + this.cmbSort.SelectedIndex = 0; + this.cmbYearS.Items.Clear(); + this.cmbYearE.Items.Clear(); + for (int i = 2010; i <= DateTime.Now.Year; i++) + { + cmbYearS.Items.Add(i.ToString("0000")); + cmbYearE.Items.Add(i.ToString("0000")); + } + this.cmbYearS.Text = DateTime.Now.AddYears(-2).Year.ToString("0000"); + this.cmbYearE.Text = DateTime.Now.Year.ToString("0000"); + refreshData(); + + //일반사용자의경우에는 상태를 변경하지 못한다. + int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.project)); + if (curLevel >= 5) + { + btSave.Visible = true; + } + else + { + btSave.Visible = false; //목록에서 저장버튼은 제거한다. + btViewDel.Visible = false; + fpSpread1.EditMode = false; + fpSpread1.Sheets[0].SelectionUnit = FarPoint.Win.Spread.Model.SelectionUnit.Row; + fpSpread1.EditModePermanent = false; + fpSpread1.EditModeReplace = false; + + foreach (FarPoint.Win.Spread.Column col in fpSpread1.ActiveSheet.Columns) + col.Locked = true; + } + + + } + + void refreshData() + { + + string state = ""; + if (chk검토.Checked && chk진행.Checked && chk보류.Checked && chk완료.Checked && chk취소.Checked && chk대기.Checked) + { + state = ""; + } + else if (chk검토.Checked == false && chk진행.Checked == false && chk보류.Checked == false && chk완료.Checked == false && chk취소.Checked == false && chk대기.Checked == false) + { + chk진행.Checked = true; + state = "[status] = '진행'"; //아무것도 선택안하면 진행을 선택해준다. + } + else + { + state = "[status] in ("; + if (chk검토.Checked) state += "'검토'"; + + if (chk보류.Checked) + { + if (state.EndsWith("(") == false) state += ","; + state += "'보류'"; + } + if (chk대기.Checked) + { + if (state.EndsWith("(") == false) state += ","; + state += "'대기'"; + } + if (chk진행.Checked) + { + if (state.EndsWith("(") == false) state += ","; + state += "'진행'"; + } + if (chk취소.Checked) + { + if (state.EndsWith("(") == false) state += ","; + state += "'취소'"; + } + if (chk완료.Checked) + { + if (state.EndsWith("(") == false) state += ","; + state += "'완료'"; + } + if (chk완료보고.Checked) + { + if (state.EndsWith("(") == false) state += ","; + state += "'완료(보고)'"; + } + state += ")"; + } + + // SELECT idx, status, pdate, name, usermain, usersub, request, reqstaff, sdate, edate, odate, memo, wuid, wdate, rev, pidx, userManager, level, part, process, costo, costn, cnt, remark_req, + // remark_ans, ddate, progress, import + //FROM Projects + //WHERE (status LIKE @state) AND (ISNULL(userManager, '') LIKE @username OR + // ISNULL(usermain, '') LIKE @username OR + // ISNULL(usersub, '') LIKE @username) + //ORDER BY (CASE WHEN [status] = '검토' THEN '0' WHEN ([status] = '진행') THEN '1' WHEN ([status] = '보류') THEN '2' WHEN ([status] = '완료') THEN '3' WHEN ([status] = '취소') + // THEN '9' ELSE '5' END) + + // var orgQuery = this.ta.Adapter.SelectCommand.CommandText; + + + string State_Select = " SELECT [idx],[pidx],[gcode],[isdel],[status],[asset],[level],[rev]," + + " [process],[part],[pdate],[name],[userManager],[usermain],[usersub],[userhw2],[reqstaff]," + + " [costo],[costn],[cnt],[remark_req],[remark_ans],[sdate],[ddate],[edate],[odate],[progress]," + + " [memo],[wuid],[wdate],[orderno],[crdue],[import],[path],[userprocess],[bCost],[bFanOut],[div]," + + " dbo.getScheduleProgress(idx) as ProgressPrj, dbo.getLastHistory(idx) AS lasthistory,'' AS wws, '' AS wwo, '' AS wwe, '' AS wwd,model,serial," + + " [championid], dbo.getProjectFinishRate(gcode, idx) AS finishrate," + + " championid,designid,assemblyid,epanelid,softwareid," + + "dbo.getUserName(championid) as name_champion," + + "dbo.getUserName(designid) as name_design," + + "dbo.getUserName(assemblyid) as name_assembly," + + "dbo.getUserName(epanelid) as name_epanel," + + "dbo.getUserName(softwareid) as name_software" + + " FROM Projects"; + //string State_Select = " SELECT [idx],[pidx],[gcode],[isdel],[status],[asset],[level],[rev],[process],[part],[pdate],[name],[userManager],[usermain],[usersub],[userhw2],[reqstaff],[costo],[costn],[cnt],[remark_req],[remark_ans],[sdate],[ddate],[edate],[odate],[progress],[memo],[wuid],[wdate],[orderno],[crdue],[import],[path],[userprocess],[bCost],[bFanOut],[div],dbo.getScheduleProgress(idx) as ProgressPrj, dbo.getLastHistory(idx) AS lasthistory, dbo.getWorkWeek(sdate) AS wws, dbo.getWorkWeek(odate) AS wwo, dbo.getWorkWeek(edate) AS wwe, dbo.getWorkWeek(ddate) AS wwd FROM Projects"; + string State_where = " WHERE gcode=@gcode and isnull(div,'') <> 'EB' and "; + + if (btViewDel.Checked == false) State_where += " isnull(isdel,0)=0 and "; //삭제보기 햇을 경우 + + //var dateField = "pdate"; + //if (cmbDateType.SelectedIndex == 1) dateField = "edate"; + //else if (cmbDateType.SelectedIndex == 2) dateField = "odate"; + + //State_where += " " + dateField + " between '" + cmbYearS.Text + "-01-01' and '" + cmbYearE.Text + "-12-31' AND (ISNULL(userManager, '') LIKE @username OR " + + // "ISNULL(usermain, '') LIKE @username OR " + + // "ISNULL(reqstaff, '') LIKE @username OR " + + // "ISNULL(usersub, '') LIKE @username) "; + State_where += " (ISNULL(userManager, '') LIKE @username OR " + + "ISNULL(usermain, '') LIKE @username OR " + + "ISNULL(reqstaff, '') LIKE @username OR " + + "ISNULL(usersub, '') LIKE @username) "; + + if (state != "") State_where += " AND " + state; + if (cmbCate.SelectedIndex > 0) State_where += " AND isnull(category,'') = '" + cmbCate.Text + "'"; + if (cmbProcess.SelectedIndex > 0) State_where += " and isnull(userprocess,'') = '" + cmbProcess.Text.Trim() + "'"; + string State_order = " ORDER BY (CASE " + + " WHEN ([status] = '진행') THEN '0' " + + " WHEN ([status] = '검토') THEN '1' " + + " WHEN ([status] = '대기') THEN '2' " + + " WHEN ([status] = '완료') THEN '3' " + + " WHEN ([status] = '완료(보고)') THEN '4' " + + " WHEN ([status] = '보류') THEN '5' " + + " WHEN ([status] = '취소') THEN '9' " + + " ELSE '5' END),userManager,sdate"; + + string request = "%"; + if (tbRequest.Text.Trim() != "") request = "%" + this.tbRequest.Text.Trim() + "%"; + + System.Data.SqlClient.SqlCommand selCmd = new System.Data.SqlClient.SqlCommand(); + selCmd.Connection = ta.Connection; + selCmd.CommandText = State_Select + State_where + State_order; + selCmd.Parameters.Add("gcode", SqlDbType.VarChar).Value = FCOMMON.info.Login.gcode; + selCmd.Parameters.Add("username", SqlDbType.VarChar); + selCmd.Parameters["username"].Value = request; + + System.Data.SqlClient.SqlDataAdapter sda = new System.Data.SqlClient.SqlDataAdapter(); + sda.SelectCommand = selCmd; + + this.dsMSSQL.Projects.Clear(); + sda.Fill(this.dsMSSQL.Projects); + + //this.ta.Adapter.SelectCommand = selCmd; + //this.ta.Fill(this.dsMSSQL.Projects, state,request); + // this.ta.Adapter.SelectCommand.CommandText = orgQuery; + this.dsMSSQL.Projects.AcceptChanges(); + + sbSumE.Text = this.dsMSSQL.Projects.Sum(t => t.coste).ToString("N2"); + sbSumO.Text = this.dsMSSQL.Projects.Sum(t => t.costo).ToString("N2"); + sbSumI.Text = this.dsMSSQL.Projects.Sum(t => t.costn).ToString("N2"); + + FormattingData(); + FPUtil.ColSizeLoad(ref this.fpSpread1, fn_fpcolsize); + } + + void FormattingData() + { + + //삭제컬럼인덱스 + this.fpSpread1.SuspendLayout(); + var statindex = this.fpSpread1.ActiveSheet.Columns["state"].Index; + for (int i = 0; i < this.fpSpread1.ActiveSheet.Rows.Count; i++) + { + var state = this.fpSpread1.ActiveSheet.GetValue(i, statindex); + string stateStr = string.Empty; + if (state != null) stateStr = state.ToString(); + + this.fpSpread1.ActiveSheet.Rows[i].BackColor = Color.White; + switch (stateStr.ToLower()) + { + case "검토": + this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.Blue; + break; + case "취소": + this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.Red; + break; + case "진행": + this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.Green; + break; + case "보류": + this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.Tomato; + break; + case "완료(보고)": + this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.Gray; + break; + case "완료": + this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.Magenta; + break; + default: + this.fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.Black; + break; + } + + } + FPUtil.ColSizeLoad(ref this.fpSpread1, fn_fpcolsize); + this.fpSpread1.ResumeLayout(); + } + + void funcSave(Boolean pmt) + { + this.Validate(); + this.bs.EndEdit(); + + if (pmt) + { + var dlg = FCOMMON.Util.MsgQ("변경 사항을 저장하시겠습니까?"); + if (dlg != System.Windows.Forms.DialogResult.Yes) return; + } + + try + { + this.ta.Update(this.dsMSSQL.Projects);//.UpdateAll(this.dsMSSQL.Projects); + dsMSSQL.Projects.AcceptChanges(); + FPUtil.ColSizeLoad(ref this.fpSpread1, fn_fpcolsize); + } + catch (Exception ex) + { + FCOMMON.Util.MsgE(ex.Message); + } + } + + private void projectsBindingNavigatorSaveItem_Click(object sender, EventArgs e) + { + funcSave(true); + + } + void Projects_TableNewRow(object sender, DataTableNewRowEventArgs e) + { + e.Row["gcode"] = FCOMMON.info.Login.gcode; + e.Row["wuid"] = FCOMMON.info.Login.no; + e.Row["wdate"] = DateTime.Now; + } + + private void refreshToolStripMenuItem_Click(object sender, EventArgs e) + { + refreshData(); + } + + void menu_partlist() + { + var drv = this.bs.Current as DataRowView; + if (drv == null) return; + var dr = drv.Row as dsPRJ.ProjectsRow; + var f = new fPartList(dr.idx); + f.StartPosition = FormStartPosition.CenterScreen; + f.Show(); + } + private void partListToolStripMenuItem_Click(object sender, EventArgs e) + { + menu_partlist(); + } + + + private void autoToolStripMenuItem_Click(object sender, EventArgs e) + { + this.fpSpread1.ActiveSheet.DataAutoSizeColumns = true; + + for (int i = 0; i < this.fpSpread1.ActiveSheet.Rows.Count; i++) + this.fpSpread1.ActiveSheet.SetRowHeight(i, 25); + //dv1.AutoResizeColumns(); + } + + private void resetToolStripMenuItem_Click(object sender, EventArgs e) + { + foreach (FarPoint.Win.Spread.Column col in this.fpSpread1.ActiveSheet.Columns) + { + col.ResetVisible(); + col.Width = 100; + } + } + + private void saveToolStripMenuItem_Click(object sender, EventArgs e) + { + FPUtil.ColsizeSave(this.fpSpread1, fn_fpcolsize); + } + + private void loadToolStripMenuItem_Click(object sender, EventArgs e) + { + FPUtil.ColSizeLoad(ref this.fpSpread1, fn_fpcolsize); + } + + private void btSearch_Click(object sender, EventArgs e) + { + + } + + private void toolStripLabel3_Click(object sender, EventArgs e) + { + //사용자목록처리 + if (tbRequest.Text != "") + { + tbRequest.Text = string.Empty; + } + else tbRequest.Text = FCOMMON.info.Login.nameK; + + refreshData(); + } + + private void scheduleToolStripMenuItem_Click(object sender, EventArgs e) + { + var drv = this.bs.Current as DataRowView; + if (drv == null) return; + var dr = drv.Row as dsPRJ.ProjectsRow; + var f = new fProjectSchedule(dr.idx); + f.MdiParent = this.MdiParent; + f.Show(); + } + + private void makeRepeatToolStripMenuItem_Click(object sender, EventArgs e) + { + funcCopy(); + } + void funcCopy() + { + var drv = this.bs.Current as DataRowView; + if (drv == null) return; + var dr = drv.Row as dsPRJ.ProjectsRow; + var dlg = FCOMMON.Util.MsgQ("선택된 프로젝트를 복사하시겠습니까?\n\n생성된 자료는 [검토] 상태로 전환 됩니다."); + if (dlg == System.Windows.Forms.DialogResult.Yes) + { + var ta = new dsPRJTableAdapters.QueriesTableAdapter(); + int? newidx = -1; + var retval = ta.CopyProjectData(dr.idx, FCOMMON.info.Login.no, ref newidx); + refreshData(); + if (newidx != null) + { + var newdr = this.dsMSSQL.Projects.Where(t => t.idx == newidx).FirstOrDefault(); + newdr.userprocess = FCOMMON.info.Login.process; + var f = new fProjectData(newdr); + if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) + { + int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.project)); + if (curLevel < 5) + { + funcSave(false); //자동저장 + } + } + } + } + } + + void menu_iomap() + { + var drv = this.bs.Current as DataRowView; + if (drv == null) return; + var dr = drv.Row as dsPRJ.ProjectsRow; + var f = new fProjectIOMap(dr.idx); + f.Show(); + } + + private void iOMapToolStripMenuItem_Click(object sender, EventArgs e) + { + menu_iomap(); + } + + private void tbFind_KeyDown(object sender, KeyEventArgs e) + { + if (e.KeyCode == Keys.Enter) + btFind.PerformClick(); + } + + private void btFind_Click(object sender, EventArgs e) + { + + string search = tbFind.Text.Trim(); + if (search == "") + { + + bs.Filter = ""; + tbFind.BackColor = SystemColors.Control; + FormattingData(); + } + else + { + try + { + var cols = new string[] { + "name","process","reqstaff","usermain", + "orderno","usersub","userManager", + "remark_req"}; + bs.Filter = FCOMMON.Util.MakeFilterString(cols, search); + tbFind.BackColor = Color.Lime; + tbFind.SelectAll(); + tbFind.Focus(); + FormattingData(); + } + catch (Exception ex) + { + bs.Filter = ""; + FCOMMON.Util.MsgE(ex.Message); + tbFind.BackColor = Color.Red; + FormattingData(); + } + } + } + + private void bindingNavigatorDeleteItem_Click(object sender, EventArgs e) + { + funcDelete(); + } + void funcDelete() + { + var dlg = FCOMMON.Util.MsgQ("현재 선택된 자료를 삭제하시겠습니까?"); + if (dlg == System.Windows.Forms.DialogResult.Yes) + { + bs.RemoveCurrent(); + + //일반사용자는 바로 저장되도록 함 + int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.project)); + if (curLevel < 5) + { + funcSave(false); //자동저장 + } + } + } + private void 엑셀파일로저장ToolStripMenuItem_Click(object sender, EventArgs e) + { + SaveFileDialog sd = new SaveFileDialog(); + sd.Filter = ("excel|*.xls"); + var dlg = sd.ShowDialog(); + if (dlg == System.Windows.Forms.DialogResult.OK) + { + this.fpSpread1.SaveExcel(sd.FileName, + FarPoint.Excel.ExcelSaveFlags.SaveAsViewed + | FarPoint.Excel.ExcelSaveFlags.SaveAsFiltered + | FarPoint.Excel.ExcelSaveFlags.NoFormulas + | FarPoint.Excel.ExcelSaveFlags.SaveCustomColumnHeaders); + + FCOMMON.Util.MsgI("파일생성 완료\n\n" + sd.FileName); + } + } + + private void 메일발송주소관리ToolStripMenuItem_Click(object sender, EventArgs e) + { + var drv = this.bs.Current as DataRowView; + if (drv == null) return; + var dr = drv.Row as dsPRJ.ProjectsRow; + var f = new fMailList(dr.idx); + f.ShowDialog(); + } + + private void bs_CurrentChanged(object sender, EventArgs e) + { + //히스토리 데이터를 업데이트하고 첫번재 자료를 표시한다. + var drv = this.bs.Current as DataRowView; + if (drv == null) + { + this.label1.Text = "프로젝트가 선택되지 않았습니다"; + return; + } + var dr = drv.Row as dsPRJ.ProjectsRow; + this.label1.Text = string.Format("[{0}] {1}", dr.name, dr.memo); + + var sql = "select ((sum((case when isnull(qtybuy,0) = isnull(qtyin,0) then 1 else 0 end))*1.0) / count(*))*100 " + + $" from ProjectsPart where project = {dr.idx}" + + $" and isnull(qtybuy,0) <> 0"; + var stR_result = FCOMMON.DBM.ExecuteScalar(sql); + if (string.IsNullOrEmpty(stR_result)) + { + tableLayoutPanel3.Visible = false; + } + else + { + tableLayoutPanel3.Visible = true; + var perc = float.Parse(stR_result); + this.label17.Text = string.Format("구매 완료({0:N0}%)", perc); + this.prb1.ProgressMin = 0; + this.prb1.ProgressMax = 100; + this.prb1.ProgressValue = perc; + } + + try + { + taHist.Fill(this.dsMSSQL.ProjectsHistory, dr.idx); + } + catch + { + + } + } + + private void button1_Click(object sender, EventArgs e) + { + var drv = this.bs.Current as DataRowView; + if (drv == null) return; + var dr = drv.Row as dsPRJ.ProjectsRow; + var f = new fProejctHistory(dr.idx); + f.StartPosition = FormStartPosition.CenterScreen; + var dlg = f.ShowDialog(); + bs_CurrentChanged(sender, e); + } + + private void bindingNavigatorAddNewItem_Click(object sender, EventArgs e) + { + var newdr = this.dsMSSQL.Projects.NewProjectsRow(); + newdr.wuid = FCOMMON.info.Login.no; + newdr.wdate = DateTime.Now; + newdr.pdate = DateTime.Now.ToString("yyyy-MM-dd"); + newdr.sdate = DateTime.Now.ToString("yyyy-MM-dd"); + newdr.userManager = FCOMMON.info.Login.nameK; + newdr.progress = 0; + newdr.userprocess = FCOMMON.info.Login.process; + newdr.costn = 0; + newdr.costo = 0; + newdr.cnt = 1; + newdr.name = "Project Title"; + var f = new fProjectData(newdr); + f.StartPosition = FormStartPosition.CenterScreen; + var dlg = f.ShowDialog(); + if (dlg == System.Windows.Forms.DialogResult.OK) + { + this.dsMSSQL.Projects.AddProjectsRow(newdr); + try + { + + ta.Update(newdr); + } + catch (Exception ex) + { + FCOMMON.Util.MsgE("Save Error\n" + ex.Message); + } + + } + else newdr.Delete(); + } + + private void btEdit_Click(object sender, EventArgs e) + { + funcEdit(); + } + void funcEdit() + { + var drv = this.bs.Current as DataRowView; + if (drv == null) return; + var dr = drv.Row as dsPRJ.ProjectsRow; + var f = new fProjectData(dr); + if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) + { + int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.project)); + if (curLevel < 5) + { + funcSave(false); //자동저장 + } + FormattingData(); + } + } + + private void 편집ToolStripMenuItem_Click(object sender, EventArgs e) + { + funcEdit(); + } + + private void tbRequest_KeyDown(object sender, KeyEventArgs e) + { + if (e.KeyCode == Keys.Enter) + btSearch.PerformClick(); + } + + private void toolStripComboBox1_SelectedIndexChanged(object sender, EventArgs e) + { + // --- + //Origin Cost + //Input Cost + //Effect Cost + //Asset No + //Project + //Champion + //Requestor + //Process + switch (cmbSort.SelectedIndex) + { + case 1: + if (this.bs.Sort == "costo") this.bs.Sort = "costo desc"; + else this.bs.Sort = "costo"; + break; + case 2: + if (this.bs.Sort == "costn") this.bs.Sort = "costn desc"; + else this.bs.Sort = "costn"; + break; + case 3: + if (this.bs.Sort == "coste") this.bs.Sort = "coste desc"; + else this.bs.Sort = "coste"; + break; + case 4: + if (this.bs.Sort == "asset") this.bs.Sort = "asset desc"; + else this.bs.Sort = "asset"; + break; + case 5: + if (this.bs.Sort == "[name]") this.bs.Sort = "[name] desc"; + else this.bs.Sort = "[name]"; + break; + case 6: + if (this.bs.Sort == "userManager") this.bs.Sort = "userManager desc"; + else this.bs.Sort = "userManager"; + break; + case 7: + if (this.bs.Sort == "reqstaff") this.bs.Sort = "reqstaff desc"; + else this.bs.Sort = "reqstaff"; + break; + case 8: + if (this.bs.Sort == "process") this.bs.Sort = "process desc"; + else this.bs.Sort = "process"; + break; + case 9: + //"Asset / 사용자 / 등록날짜" + var sort = "asset,usermain,pdate"; + if (this.bs.Sort == sort) this.bs.Sort = sort; + else this.bs.Sort = sort; + break; + default: + this.bs.Sort = ""; + break; + } + } + + private void btCopy_Click(object sender, EventArgs e) + { + funcCopy(); + } + + private void toolStripButton2_Click(object sender, EventArgs e) + { + + } + + private void toolStripButton1_Click(object sender, EventArgs e) + { + menu_partlist(); + } + + private void toolStripButton3_Click(object sender, EventArgs e) + { + menu_iomap(); + } + + private void 삭제ToolStripMenuItem_Click(object sender, EventArgs e) + { + funcDelete(); + } + + private void 공유폴더ToolStripMenuItem_Click(object sender, EventArgs e) + { + showfolder(); + } + void showfolder() + { + var drv = this.bs.Current as DataRowView; + if (drv == null) return; + var dr = drv.Row as dsPRJ.ProjectsRow; + + var tbPath = dr.path; + + if (tbPath == "") tbPath = "/" + dr.idx.ToString(); + + if (tbPath.StartsWith("\\") == false) + { + if (tbPath.StartsWith("/")) tbPath = tbPath.Replace("/", "\\"); + else tbPath = "\\" + tbPath; + } + //\\10.131.32.29\Data + var datapath = FCOMMON.DBM.getCodeSavlue("55", "01"); + var serverpath = System.IO.Path.Combine(datapath, "Data", "Project"); + if (System.IO.Directory.Exists(serverpath) == false) + { + FCOMMON.Util.MsgE("프로젝트 기본경로가 존재하지 않아 진행할 수 없습니다\n\n" + + serverpath); + return; + } + + var path = serverpath + tbPath; + if (System.IO.Directory.Exists(path) == false) + { + try + { + System.IO.Directory.CreateDirectory(path); + + string[] subdir = new string[] { "Source", "Document", "Draw", "Estimate" }; + foreach (var dir in subdir) + System.IO.Directory.CreateDirectory(path + "\\" + dir); + + } + catch (Exception eX) + { + FCOMMON.Util.MsgE("프로젝트 저장소 생성실패\n" + eX.Message); + return; + } + } + + FCOMMON.Util.RunExplorer(path); + } + + private void toolStripButton4_Click(object sender, EventArgs e) + { + showfolder(); + } + + private void button1_Click_1(object sender, EventArgs e) + { + this.Close(); + } + + private void button2_Click(object sender, EventArgs e) + { + refreshData(); + } + + private void richTextBox2_TextChanged(object sender, EventArgs e) + { + + } + + private void cmbDateType_Click(object sender, EventArgs e) + { + + } + + private void cmbYearE_Click(object sender, EventArgs e) + { + + } + + private void toolStripButton2_Click_1(object sender, EventArgs e) + { + var f = new fProjectSummary(); + f.Show(); + } + + private void chk검토_CheckedChanged(object sender, EventArgs e) + { + var but = sender as ToolStripButton; + but.ForeColor = but.Checked ? Color.Blue : Color.Black; + but.Font = but.Checked ? new Font("맑은 고딕", 10, FontStyle.Bold) : new Font("맑은 고딕", 10); + } + } } \ No newline at end of file diff --git a/SubProject/FPJ0000/Project/fProjectList.resx b/SubProject/FPJ0000/Project/fProjectList.resx index ec92c0b..0a29e22 100644 --- a/SubProject/FPJ0000/Project/fProjectList.resx +++ b/SubProject/FPJ0000/Project/fProjectList.resx @@ -230,23 +230,23 @@ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIwSURBVDhPpZL/SxNxHMbvPwoClVIsFrTKUpeTlkYLDJQi - pFCJWbtpQ01GRYWla47LXClrrcWoLLd0MjV1aUv6al9mX7Zbm9taWxnd091nh+6WP9ULHg7u/TwPbz68 - qf/G4PiIjlsB6K3voRtYwMn+N9Awrx6LYwl9o1GteWRp0fwoApMrjJ6HYVDJ9C/kqoE2c2JGAuOOfs/1 - Uqe9rdB7tNCNaHDC1UR+1hufQcxI6HV/JfP++Stg/Jdhmr0ICjkIhkOX5tYsMA6HyTwbyuIJIVuC4eAF - n6Sg2qJQVjK7UNYth6pHIfFT1vGg2JUhHE9DfXZqpaDaUqqsoEu4luFmtI+2oPzcDhIUGBgLZgrskyHY - J4JwTgfx9ksCezsnSIGqr1SpoLdzmnsN2GMsR/GpAsjbtmDQG4JV0Dj79wavP8VR2eaFktlZVUbLuSZn - PWR0IVdE520z3F5EPLUM2yRLvHb+SwrIFvwGNl611gOo6C1BzfV9OOo4jM30Bm4jvX6rsFG77QNiyWU4 - pljcmc6IGnrCIpFafVn11Sro3BocsdeimC7g8pszYYHWwXdY+vYTd32ZDR7M8ofknGGRLVV3BWQdhSjS - 5SH/+LqVsID2xgIpGOKDQpgU3OQfIpsXgRjUBu+ad6C59hJRvsD1NEy8bj9fIARytanT/VvMSGhkniOS - +AE2lsbnSAoBNglqt96DXMka79vFjIRjpvmxui5/sq5rDjXnfdh/ZvVe/hGK+gPPRCyj0HEz7AAAAABJ + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIwSURBVDhPpZL/SxNxHMbvPwoClVIsFrTKUtcmLY0WGChF + SKESs3bThpqMigpL15TLXClrrcWoLLd0MjV1aUv6al9mX7Zbm9taWxnd091nh+6WP9ULHg7u/TwPbz68 + qf/G6PiI9lsBGKzvoR9YwMn+N9Ayrx6LYwl9o1Fd78jSYu+jCMyuMLofhkEl07+Qq3razIkZCYw7+j3X + S532tsDg0UE/osUJVyP5WWd6BjEjocf9lcz756+A8V+GefYiKOQgGA5dmluzwDQcJvNsKIsnhGwJhoMX + fJKCKotCVcHsQlmXHOpuhcRPWceDYleGcDwNzdmplYIqS6lKSZdwzcNNaBttRvm5HSQoMDAWzBTYJ0Ow + TwThnA7i7ZcE9nZMkAJ1X6lKQW/ntPfqscdUjuJTBZC3bsGgNwSroHH27w1ef4qjotULFbOzsoyWc43O + OsjoQq6IzttmvL2IeGoZtkmWeO38lxSQLfgNbLxqrAeg7ClB9fV9OOo4jM30Bm4jvX6rsFGb7QNiyWU4 + pljcmc6IGnrCIpFafVnN1Uro3VocsdegmC7g8psyYYGWwXdY+vYTd32ZDR7M8ofknGGRLXWXErL2QhTp + 85B/fN1KWEB3Y4EUDPFBIUwKbvIPkc2LQAwao3fNO9Bee4koX+B6GiZet58vEAK52tTh/i1mJDQwzxFJ + /AAbS+NzJIUAmwS12+BBrmQN9+1iRsIx8/xYbac/Wds5h+rzPuw/s3ov/whF/QHIViyhDyWZWAAAAABJ RU5ErkJggg== iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAJ0SURBVDhPpZFLTNNwHMd78O7NuwcvIhJFpjcOJiYmHjwZ + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAJySURBVDhPpZFLTNNwHMd78O7NuwcvIhJFpjcOJiYmHjwZ Eg8mGi9gosGEgwcqMSBqguGhJkgwCvIWlCFhM2TBwDZAGLKKZWyzG2PSCXS062Nd16//jSpqYuLjm37T R/6f7+9R6r+1NFK8EBk+o0d/8croiVDwxeF9ob7ivT/5TfFel6t0j4VTlLfDpplmFoBJrpx3njNqAjFX eXrVc1775vjcVTXiqYywr46es3CKYoZKkqahQos1QA43QuaeQIkMwMwIJCsF05CIt3feM1vgeT7NDtoY @@ -255,9 +255,9 @@ ZuEkoMWWNg0FhuhFRnBA3xhAer0N6uo9+Bc7MDLHY+WzjE8bGqZDIsYWvmDYThsWTv5Cq03L6iL0TTvS fGe+qhqthRKuQp87jqWYhBlOgTssY4rYH9fQ85aDhVOU736RauoCgZ9CW2uEGqkhcCXkwKV828GEBnco hclgCuOshLmohs6J2G7A8p3CuJJkki5Xdza10g4p8BAS2wDpYx16yMxLazImAjtwzu9WNbSOLu8GsHUF - 19j6Q13M7YMJX32h+qNfD9HGdFDEPIE8nIpZUt3+XgJN06aj+uQFK+L3anJw+1udHN1PdtE7FcdjpytL - 0zWmf6wN3uYy8XlFQZl19M/1svr0Zc+ji0LY0YTRW6Wy9fnv9KziQNkYfUpx3j27u4t/E0V9BZoUI5AR - tV0fAAAAAElFTkSuQmCC + 19j6Q13M7YMJX32h+qNfD9HGdFDEPIE8nIpZUt3+XgJN06aj+uQFK+L3anJw+1udHN1PdtE7Fcdjpyub + g/1jbfA2l4nPKwrKrKN/rpfVpy97Hl0Uwo4mjN4qla3Pf6dnFQfKxuhTivPu2d1d/Jso6iuYciOObRud + LgAAAABJRU5ErkJggg== diff --git a/SubProject/FPJ0000/dsPRJ.Designer.cs b/SubProject/FPJ0000/dsPRJ.Designer.cs index cb83abf..c6470a5 100644 --- a/SubProject/FPJ0000/dsPRJ.Designer.cs +++ b/SubProject/FPJ0000/dsPRJ.Designer.cs @@ -1003,6 +1003,24 @@ namespace FPJ0000 { private global::System.Data.DataColumn columnfinishrate; + private global::System.Data.DataColumn columndesignid; + + private global::System.Data.DataColumn columnassemblyid; + + private global::System.Data.DataColumn columnepanelid; + + private global::System.Data.DataColumn columnsoftwareid; + + private global::System.Data.DataColumn columnname_champion; + + private global::System.Data.DataColumn columnname_design; + + private global::System.Data.DataColumn columnname_assembly; + + private global::System.Data.DataColumn columnname_epanel; + + private global::System.Data.DataColumn columnname_software; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public ProjectsDataTable() : @@ -1509,6 +1527,78 @@ namespace FPJ0000 { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn designidColumn { + get { + return this.columndesignid; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn assemblyidColumn { + get { + return this.columnassemblyid; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn epanelidColumn { + get { + return this.columnepanelid; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn softwareidColumn { + get { + return this.columnsoftwareid; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn name_championColumn { + get { + return this.columnname_champion; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn name_designColumn { + get { + return this.columnname_design; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn name_assemblyColumn { + get { + return this.columnname_assembly; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn name_epanelColumn { + get { + return this.columnname_epanel; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn name_softwareColumn { + get { + return this.columnname_software; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.Browsable(false)] @@ -1603,7 +1693,16 @@ namespace FPJ0000 { string qdate, string cdate, string championid, - int finishrate) { + int finishrate, + string designid, + string assemblyid, + string epanelid, + string softwareid, + string name_champion, + string name_design, + string name_assembly, + string name_epanel, + string name_software) { ProjectsRow rowProjectsRow = ((ProjectsRow)(this.NewRow())); object[] columnValuesArray = new object[] { null, @@ -1663,7 +1762,16 @@ namespace FPJ0000 { qdate, cdate, championid, - finishrate}; + finishrate, + designid, + assemblyid, + epanelid, + softwareid, + name_champion, + name_design, + name_assembly, + name_epanel, + name_software}; rowProjectsRow.ItemArray = columnValuesArray; this.Rows.Add(rowProjectsRow); return rowProjectsRow; @@ -1727,7 +1835,16 @@ namespace FPJ0000 { string qdate, string cdate, string championid, - int finishrate) { + int finishrate, + string designid, + string assemblyid, + string epanelid, + string softwareid, + string name_champion, + string name_design, + string name_assembly, + string name_epanel, + string name_software) { ProjectsRow rowProjectsRow = ((ProjectsRow)(this.NewRow())); object[] columnValuesArray = new object[] { null, @@ -1787,7 +1904,16 @@ namespace FPJ0000 { qdate, cdate, championid, - finishrate}; + finishrate, + designid, + assemblyid, + epanelid, + softwareid, + name_champion, + name_design, + name_assembly, + name_epanel, + name_software}; rowProjectsRow.ItemArray = columnValuesArray; this.Rows.Add(rowProjectsRow); return rowProjectsRow; @@ -1875,6 +2001,15 @@ namespace FPJ0000 { this.columncdate = base.Columns["cdate"]; this.columnchampionid = base.Columns["championid"]; this.columnfinishrate = base.Columns["finishrate"]; + this.columndesignid = base.Columns["designid"]; + this.columnassemblyid = base.Columns["assemblyid"]; + this.columnepanelid = base.Columns["epanelid"]; + this.columnsoftwareid = base.Columns["softwareid"]; + this.columnname_champion = base.Columns["name_champion"]; + this.columnname_design = base.Columns["name_design"]; + this.columnname_assembly = base.Columns["name_assembly"]; + this.columnname_epanel = base.Columns["name_epanel"]; + this.columnname_software = base.Columns["name_software"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -1996,6 +2131,24 @@ namespace FPJ0000 { base.Columns.Add(this.columnchampionid); this.columnfinishrate = new global::System.Data.DataColumn("finishrate", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnfinishrate); + this.columndesignid = new global::System.Data.DataColumn("designid", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columndesignid); + this.columnassemblyid = new global::System.Data.DataColumn("assemblyid", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnassemblyid); + this.columnepanelid = new global::System.Data.DataColumn("epanelid", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnepanelid); + this.columnsoftwareid = new global::System.Data.DataColumn("softwareid", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnsoftwareid); + this.columnname_champion = new global::System.Data.DataColumn("name_champion", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnname_champion); + this.columnname_design = new global::System.Data.DataColumn("name_design", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnname_design); + this.columnname_assembly = new global::System.Data.DataColumn("name_assembly", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnname_assembly); + this.columnname_epanel = new global::System.Data.DataColumn("name_epanel", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnname_epanel); + this.columnname_software = new global::System.Data.DataColumn("name_software", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnname_software); this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { this.columnidx}, true)); this.columnidx.AutoIncrement = true; @@ -2056,6 +2209,20 @@ namespace FPJ0000 { this.columncdate.MaxLength = 50; this.columnchampionid.MaxLength = 20; this.columnfinishrate.ReadOnly = true; + this.columndesignid.MaxLength = 20; + this.columnassemblyid.MaxLength = 20; + this.columnepanelid.MaxLength = 20; + this.columnsoftwareid.MaxLength = 20; + this.columnname_champion.ReadOnly = true; + this.columnname_champion.MaxLength = 200; + this.columnname_design.ReadOnly = true; + this.columnname_design.MaxLength = 200; + this.columnname_assembly.ReadOnly = true; + this.columnname_assembly.MaxLength = 200; + this.columnname_epanel.ReadOnly = true; + this.columnname_epanel.MaxLength = 200; + this.columnname_software.ReadOnly = true; + this.columnname_software.MaxLength = 200; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -12450,6 +12617,150 @@ namespace FPJ0000 { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string designid { + get { + if (this.IsdesignidNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableProjects.designidColumn])); + } + } + set { + this[this.tableProjects.designidColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string assemblyid { + get { + if (this.IsassemblyidNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableProjects.assemblyidColumn])); + } + } + set { + this[this.tableProjects.assemblyidColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string epanelid { + get { + if (this.IsepanelidNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableProjects.epanelidColumn])); + } + } + set { + this[this.tableProjects.epanelidColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string softwareid { + get { + if (this.IssoftwareidNull()) { + return string.Empty; + } + else { + return ((string)(this[this.tableProjects.softwareidColumn])); + } + } + set { + this[this.tableProjects.softwareidColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string name_champion { + get { + try { + return ((string)(this[this.tableProjects.name_championColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'name_champion\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.name_championColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string name_design { + get { + try { + return ((string)(this[this.tableProjects.name_designColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'name_design\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.name_designColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string name_assembly { + get { + try { + return ((string)(this[this.tableProjects.name_assemblyColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'name_assembly\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.name_assemblyColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string name_epanel { + get { + try { + return ((string)(this[this.tableProjects.name_epanelColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'name_epanel\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.name_epanelColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string name_software { + get { + try { + return ((string)(this[this.tableProjects.name_softwareColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'name_software\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableProjects.name_softwareColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public bool IsnameNull() { @@ -13097,6 +13408,114 @@ namespace FPJ0000 { public void SetfinishrateNull() { this[this.tableProjects.finishrateColumn] = global::System.Convert.DBNull; } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsdesignidNull() { + return this.IsNull(this.tableProjects.designidColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetdesignidNull() { + this[this.tableProjects.designidColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsassemblyidNull() { + return this.IsNull(this.tableProjects.assemblyidColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetassemblyidNull() { + this[this.tableProjects.assemblyidColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsepanelidNull() { + return this.IsNull(this.tableProjects.epanelidColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetepanelidNull() { + this[this.tableProjects.epanelidColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IssoftwareidNull() { + return this.IsNull(this.tableProjects.softwareidColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetsoftwareidNull() { + this[this.tableProjects.softwareidColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool Isname_championNull() { + return this.IsNull(this.tableProjects.name_championColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void Setname_championNull() { + this[this.tableProjects.name_championColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool Isname_designNull() { + return this.IsNull(this.tableProjects.name_designColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void Setname_designNull() { + this[this.tableProjects.name_designColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool Isname_assemblyNull() { + return this.IsNull(this.tableProjects.name_assemblyColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void Setname_assemblyNull() { + this[this.tableProjects.name_assemblyColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool Isname_epanelNull() { + return this.IsNull(this.tableProjects.name_epanelColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void Setname_epanelNull() { + this[this.tableProjects.name_epanelColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool Isname_softwareNull() { + return this.IsNull(this.tableProjects.name_softwareColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void Setname_softwareNull() { + this[this.tableProjects.name_softwareColumn] = global::System.Convert.DBNull; + } } /// @@ -22329,6 +22748,15 @@ namespace FPJ0000.dsPRJTableAdapters { tableMapping.ColumnMappings.Add("cdate", "cdate"); tableMapping.ColumnMappings.Add("championid", "championid"); tableMapping.ColumnMappings.Add("finishrate", "finishrate"); + tableMapping.ColumnMappings.Add("designid", "designid"); + tableMapping.ColumnMappings.Add("assemblyid", "assemblyid"); + tableMapping.ColumnMappings.Add("epanelid", "epanelid"); + tableMapping.ColumnMappings.Add("softwareid", "softwareid"); + tableMapping.ColumnMappings.Add("name_champion", "name_champion"); + tableMapping.ColumnMappings.Add("name_design", "name_design"); + tableMapping.ColumnMappings.Add("name_assembly", "name_assembly"); + tableMapping.ColumnMappings.Add("name_epanel", "name_epanel"); + tableMapping.ColumnMappings.Add("name_software", "name_software"); this._adapter.TableMappings.Add(tableMapping); this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.DeleteCommand.Connection = this.Connection; @@ -22343,23 +22771,25 @@ namespace FPJ0000.dsPRJTableAdapters { "k_ans], [ddate], [progress], [import], [asset], [isdel], [path], [userhw2], [ord" + "erno], [gcode], [category], [userprocess], [CMP_Background], [CMP_Description], " + "[CMP_Before], [CMP_After], [bCost], [bFanOut], [div], [crdue], [model], [serial]" + - ", [bdate], [qdate], [cdate], [championid]) VALUES (@status, @pdate, @name, @user" + - "main, @usersub, @reqstaff, @sdate, @edate, @odate, @memo, @wuid, @wdate, @rev, @" + - "pidx, @userManager, @level, @part, @process, @costo, @costn, @cnt, @remark_req, " + - "@remark_ans, @ddate, @progress, @import, @asset, @isdel, @path, @userhw2, @order" + - "no, @gcode, @category, @userprocess, @CMP_Background, @CMP_Description, @CMP_Bef" + - "ore, @CMP_After, @bCost, @bFanOut, @div, @crdue, @model, @serial, @bdate, @qdate" + - ", @cdate, @championid);\r\nSELECT idx, status, pdate, name, usermain, usersub, req" + - "staff, sdate, edate, odate, memo, wuid, wdate, rev, pidx, userManager, level, pa" + - "rt, process, costo, costn, cnt, remark_req, remark_ans, ddate, progress, import," + - " asset, isdel, path, userhw2, orderno, dbo.getLastHistory(idx) AS lasthistory, g" + - "code, category, userprocess, CMP_Background, CMP_Description, CMP_Before, CMP_Af" + - "ter, bCost, bFanOut, div, crdue, dbo.getScheduleProgressI(idx) AS ProgressPrj, \'" + - "\' AS wws, \'\' AS wwo, \'\' AS wwe, \'\' AS wwd, model, serial, bdate, qdate, cdate, c" + - "hampionid FROM Projects WHERE (idx = SCOPE_IDENTITY()) ORDER BY (CASE WHEN [stat" + - "us] = \'검토\' THEN \'0\' WHEN ([status] = \'진행\') THEN \'1\' WHEN ([status] = \'보류\') THEN " + - "\'2\' WHEN ([status] = \'완료\') THEN \'3\' WHEN ([status] = \'취소\') THEN \'9\' ELSE \'5\' END" + - ")"; + ", [bdate], [qdate], [cdate], [championid], [designid], [assemblyid], [epanelid]," + + " [softwareid]) VALUES (@status, @pdate, @name, @usermain, @usersub, @reqstaff, @" + + "sdate, @edate, @odate, @memo, @wuid, @wdate, @rev, @pidx, @userManager, @level, " + + "@part, @process, @costo, @costn, @cnt, @remark_req, @remark_ans, @ddate, @progre" + + "ss, @import, @asset, @isdel, @path, @userhw2, @orderno, @gcode, @category, @user" + + "process, @CMP_Background, @CMP_Description, @CMP_Before, @CMP_After, @bCost, @bF" + + "anOut, @div, @crdue, @model, @serial, @bdate, @qdate, @cdate, @championid, @desi" + + "gnid, @assemblyid, @epanelid, @softwareid);\r\nSELECT idx, status, pdate, name, us" + + "ermain, usersub, reqstaff, sdate, edate, odate, memo, wuid, wdate, rev, pidx, us" + + "erManager, level, part, process, costo, costn, cnt, remark_req, remark_ans, ddat" + + "e, progress, import, asset, isdel, path, userhw2, orderno, dbo.getLastHistory(id" + + "x) AS lasthistory, gcode, category, userprocess, CMP_Background, CMP_Description" + + ", CMP_Before, CMP_After, bCost, bFanOut, div, crdue, dbo.getScheduleProgressI(id" + + "x) AS ProgressPrj, \'\' AS wws, \'\' AS wwo, \'\' AS wwe, \'\' AS wwd, model, serial, bd" + + "ate, qdate, cdate, championid, dbo.getProjectFinishRate(gcode, idx) AS finishrat" + + "e, designid, assemblyid, epanelid, softwareid FROM Projects WHERE (idx = SCOPE_I" + + "DENTITY()) ORDER BY (CASE WHEN [status] = \'검토\' THEN \'0\' WHEN ([status] = \'진행\') T" + + "HEN \'1\' WHEN ([status] = \'보류\') THEN \'2\' WHEN ([status] = \'완료\') THEN \'3\' WHEN ([s" + + "tatus] = \'취소\') THEN \'9\' ELSE \'5\' END)"; this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "status", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -22409,6 +22839,10 @@ namespace FPJ0000.dsPRJTableAdapters { this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@qdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "qdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@championid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "championid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@designid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "designid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@assemblyid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "assemblyid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@epanelid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "epanelid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@softwareid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "softwareid", 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 Projects\r\nSET status = @status, pdate = @pdate, name = @name, userm" + @@ -22423,17 +22857,20 @@ namespace FPJ0000.dsPRJTableAdapters { "nd, CMP_Description = @CMP_Description, \r\n CMP_Before = @CMP_Befor" + "e, CMP_After = @CMP_After, bCost = @bCost, bFanOut = @bFanOut, div = @div, crdue" + " = @crdue, model = @model, serial = @serial, bdate = @bdate, \r\n qd" + - "ate = @qdate, cdate = @cdate, championid = @championid\r\nWHERE (idx = @Original_" + - "idx); \r\nSELECT idx, status, pdate, name, usermain, usersub, reqstaff, sdate, eda" + - "te, odate, memo, wuid, wdate, rev, pidx, userManager, level, part, process, cost" + - "o, costn, cnt, remark_req, remark_ans, ddate, progress, import, asset, isdel, pa" + - "th, userhw2, orderno, dbo.getLastHistory(idx) AS lasthistory, gcode, category, u" + - "serprocess, CMP_Background, CMP_Description, CMP_Before, CMP_After, bCost, bFanO" + - "ut, div, crdue, dbo.getScheduleProgressI(idx) AS ProgressPrj, \'\' AS wws, \'\' AS w" + - "wo, \'\' AS wwe, \'\' AS wwd, model, serial, bdate, qdate, cdate, championid FROM Pr" + - "ojects WHERE (idx = @idx) ORDER BY (CASE WHEN [status] = \'검토\' THEN \'0\' WHEN ([st" + - "atus] = \'진행\') THEN \'1\' WHEN ([status] = \'보류\') THEN \'2\' WHEN ([status] = \'완료\') TH" + - "EN \'3\' WHEN ([status] = \'취소\') THEN \'9\' ELSE \'5\' END)"; + "ate = @qdate, cdate = @cdate, championid = @championid, designid = @designid, as" + + "semblyid = @assemblyid, epanelid = @epanelid, softwareid = @softwareid\r\nWHERE (" + + "idx = @Original_idx); \r\nSELECT idx, status, pdate, name, usermain, usersub, reqs" + + "taff, sdate, edate, odate, memo, wuid, wdate, rev, pidx, userManager, level, par" + + "t, process, costo, costn, cnt, remark_req, remark_ans, ddate, progress, import, " + + "asset, isdel, path, userhw2, orderno, dbo.getLastHistory(idx) AS lasthistory, gc" + + "ode, category, userprocess, CMP_Background, CMP_Description, CMP_Before, CMP_Aft" + + "er, bCost, bFanOut, div, crdue, dbo.getScheduleProgressI(idx) AS ProgressPrj, \'\'" + + " AS wws, \'\' AS wwo, \'\' AS wwe, \'\' AS wwd, model, serial, bdate, qdate, cdate, ch" + + "ampionid, dbo.getProjectFinishRate(gcode, idx) AS finishrate, designid, assembly" + + "id, epanelid, softwareid FROM Projects WHERE (idx = @idx) ORDER BY (CASE WHEN [s" + + "tatus] = \'검토\' THEN \'0\' WHEN ([status] = \'진행\') THEN \'1\' WHEN ([status] = \'보류\') TH" + + "EN \'2\' WHEN ([status] = \'완료\') THEN \'3\' WHEN ([status] = \'취소\') THEN \'9\' ELSE \'5\' " + + "END)"; this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@status", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "status", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -22483,6 +22920,10 @@ namespace FPJ0000.dsPRJTableAdapters { this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@qdate", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "qdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cdate", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "cdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@championid", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "championid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@designid", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "designid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@assemblyid", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "assemblyid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@epanelid", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "epanelid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@softwareid", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "softwareid", 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, 4, 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("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); } @@ -22503,7 +22944,8 @@ namespace FPJ0000.dsPRJTableAdapters { this._commandCollection[0].CommandText = @"SELECT idx, status, pdate, name, usermain, usersub, reqstaff, sdate, edate, odate, memo, wuid, wdate, rev, pidx, userManager, level, part, process, costo, costn, cnt, remark_req, remark_ans, ddate, progress, import, asset, isdel, path, userhw2, orderno, dbo.getLastHistory(idx) AS lasthistory, gcode, category, userprocess, CMP_Background, CMP_Description, CMP_Before, CMP_After, bCost, bFanOut, div, crdue, dbo.getScheduleProgressI(idx) AS ProgressPrj, '' AS wws, '' AS wwo, '' AS wwe, '' AS wwd, model, serial, bdate, qdate, cdate, championid, - dbo.getProjectFinishRate(gcode, idx) AS finishrate + dbo.getProjectFinishRate(gcode, idx) AS finishrate, designid, assemblyid, epanelid, softwareid, dbo.getUserName(championid) AS name_champion, dbo.getUserName(designid) + AS name_design, dbo.getUserName(assemblyid) AS name_assembly, dbo.getUserName(epanelid) AS name_epanel, dbo.getUserName(softwareid) AS name_software FROM Projects WHERE (status LIKE @state) AND (ISNULL(userManager, '') LIKE @username OR ISNULL(usermain, '') LIKE @username OR @@ -22524,7 +22966,8 @@ ORDER BY (CASE WHEN [status] = '검토' THEN '0' WHEN ([status] = '진행') THEN this._commandCollection[2].CommandText = @"SELECT asset, cnt, costn, costo, ddate, edate, idx, import, isdel, level, memo, name, odate, orderno, part, path, pdate, pidx, process, progress, remark_ans, remark_req, reqstaff, rev, sdate, status, userManager, userhw2, usermain, usersub, wdate, wuid, dbo.getLastHistory(idx) AS lasthistory, gcode, category, userprocess, CMP_Background, CMP_Description, CMP_Before, CMP_After, bCost, bFanOut, dbo.getScheduleProgressI(idx) AS ProgressPrj, '' AS wws, '' AS wwo, '' AS wwe, '' AS wwd, model, serial, bdate, qdate, cdate, championid, dbo.getProjectFinishRate(gcode, - idx) AS finishrate + idx) AS finishrate, designid, assemblyid, epanelid, softwareid, dbo.getUserName(championid) AS name_champion, dbo.getUserName(designid) AS name_design, + dbo.getUserName(assemblyid) AS name_assembly, dbo.getUserName(epanelid) AS name_epanel, dbo.getUserName(softwareid) AS name_software FROM Projects WHERE (idx = @idx)"; this._commandCollection[2].CommandType = global::System.Data.CommandType.Text; @@ -22534,7 +22977,8 @@ WHERE (idx = @idx)"; this._commandCollection[3].CommandText = @"SELECT idx, status, pdate, name, usermain, usersub, reqstaff, sdate, edate, odate, memo, wuid, wdate, rev, pidx, userManager, level, part, process, costo, costn, cnt, remark_req, remark_ans, ddate, progress, import, asset, isdel, path, userhw2, orderno, dbo.getLastHistory(idx) AS lasthistory, gcode, category, userprocess, CMP_Background, CMP_Description, CMP_Before, CMP_After, bCost, bFanOut, dbo.getScheduleProgressI(idx) AS ProgressPrj, '' AS wws, '' AS wwo, '' AS wwe, '' AS wwd, model, serial, bdate, qdate, cdate, championid, dbo.getProjectFinishRate(gcode, - idx) AS finishrate + idx) AS finishrate, designid, assemblyid, epanelid, softwareid, dbo.getUserName(championid) AS name_champion, dbo.getUserName(designid) AS name_design, + dbo.getUserName(assemblyid) AS name_assembly, dbo.getUserName(epanelid) AS name_epanel, dbo.getUserName(softwareid) AS name_software FROM Projects WHERE (ISNULL(name, N'') LIKE @search) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) OR (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) AND (CAST(idx AS varchar) LIKE @search) OR @@ -22789,7 +23233,11 @@ WHERE (ISNULL(name, N'') LIKE @search) AND (ISNULL(isdel, 0) = 0) AND (gcode = string bdate, string qdate, string cdate, - string championid) { + string championid, + string designid, + string assemblyid, + string epanelid, + string softwareid) { if ((status == null)) { this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value; } @@ -23073,6 +23521,30 @@ WHERE (ISNULL(name, N'') LIKE @search) AND (ISNULL(isdel, 0) = 0) AND (gcode = else { this.Adapter.InsertCommand.Parameters[47].Value = ((string)(championid)); } + if ((designid == null)) { + this.Adapter.InsertCommand.Parameters[48].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[48].Value = ((string)(designid)); + } + if ((assemblyid == null)) { + this.Adapter.InsertCommand.Parameters[49].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[49].Value = ((string)(assemblyid)); + } + if ((epanelid == null)) { + this.Adapter.InsertCommand.Parameters[50].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[50].Value = ((string)(epanelid)); + } + if ((softwareid == null)) { + this.Adapter.InsertCommand.Parameters[51].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[51].Value = ((string)(softwareid)); + } 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)) { @@ -23142,6 +23614,10 @@ WHERE (ISNULL(name, N'') LIKE @search) AND (ISNULL(isdel, 0) = 0) AND (gcode = string qdate, string cdate, string championid, + string designid, + string assemblyid, + string epanelid, + string softwareid, int Original_idx, int idx) { if ((status == null)) { @@ -23427,8 +23903,32 @@ WHERE (ISNULL(name, N'') LIKE @search) AND (ISNULL(isdel, 0) = 0) AND (gcode = else { this.Adapter.UpdateCommand.Parameters[47].Value = ((string)(championid)); } - this.Adapter.UpdateCommand.Parameters[48].Value = ((int)(Original_idx)); - this.Adapter.UpdateCommand.Parameters[49].Value = ((int)(idx)); + if ((designid == null)) { + this.Adapter.UpdateCommand.Parameters[48].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[48].Value = ((string)(designid)); + } + if ((assemblyid == null)) { + this.Adapter.UpdateCommand.Parameters[49].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[49].Value = ((string)(assemblyid)); + } + if ((epanelid == null)) { + this.Adapter.UpdateCommand.Parameters[50].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[50].Value = ((string)(epanelid)); + } + if ((softwareid == null)) { + this.Adapter.UpdateCommand.Parameters[51].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[51].Value = ((string)(softwareid)); + } + this.Adapter.UpdateCommand.Parameters[52].Value = ((int)(Original_idx)); + this.Adapter.UpdateCommand.Parameters[53].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)) { diff --git a/SubProject/FPJ0000/dsPRJ.xsd b/SubProject/FPJ0000/dsPRJ.xsd index 876712b..2b09ecf 100644 --- a/SubProject/FPJ0000/dsPRJ.xsd +++ b/SubProject/FPJ0000/dsPRJ.xsd @@ -21,8 +21,8 @@ WHERE (idx = @Original_idx) - INSERT INTO [Projects] ([status], [pdate], [name], [usermain], [usersub], [reqstaff], [sdate], [edate], [odate], [memo], [wuid], [wdate], [rev], [pidx], [userManager], [level], [part], [process], [costo], [costn], [cnt], [remark_req], [remark_ans], [ddate], [progress], [import], [asset], [isdel], [path], [userhw2], [orderno], [gcode], [category], [userprocess], [CMP_Background], [CMP_Description], [CMP_Before], [CMP_After], [bCost], [bFanOut], [div], [crdue], [model], [serial], [bdate], [qdate], [cdate], [championid]) VALUES (@status, @pdate, @name, @usermain, @usersub, @reqstaff, @sdate, @edate, @odate, @memo, @wuid, @wdate, @rev, @pidx, @userManager, @level, @part, @process, @costo, @costn, @cnt, @remark_req, @remark_ans, @ddate, @progress, @import, @asset, @isdel, @path, @userhw2, @orderno, @gcode, @category, @userprocess, @CMP_Background, @CMP_Description, @CMP_Before, @CMP_After, @bCost, @bFanOut, @div, @crdue, @model, @serial, @bdate, @qdate, @cdate, @championid); -SELECT idx, status, pdate, name, usermain, usersub, reqstaff, sdate, edate, odate, memo, wuid, wdate, rev, pidx, userManager, level, part, process, costo, costn, cnt, remark_req, remark_ans, ddate, progress, import, asset, isdel, path, userhw2, orderno, dbo.getLastHistory(idx) AS lasthistory, gcode, category, userprocess, CMP_Background, CMP_Description, CMP_Before, CMP_After, bCost, bFanOut, div, crdue, dbo.getScheduleProgressI(idx) AS ProgressPrj, '' AS wws, '' AS wwo, '' AS wwe, '' AS wwd, model, serial, bdate, qdate, cdate, championid FROM Projects WHERE (idx = SCOPE_IDENTITY()) ORDER BY (CASE WHEN [status] = '검토' THEN '0' WHEN ([status] = '진행') THEN '1' WHEN ([status] = '보류') THEN '2' WHEN ([status] = '완료') THEN '3' WHEN ([status] = '취소') THEN '9' ELSE '5' END) + INSERT INTO [Projects] ([status], [pdate], [name], [usermain], [usersub], [reqstaff], [sdate], [edate], [odate], [memo], [wuid], [wdate], [rev], [pidx], [userManager], [level], [part], [process], [costo], [costn], [cnt], [remark_req], [remark_ans], [ddate], [progress], [import], [asset], [isdel], [path], [userhw2], [orderno], [gcode], [category], [userprocess], [CMP_Background], [CMP_Description], [CMP_Before], [CMP_After], [bCost], [bFanOut], [div], [crdue], [model], [serial], [bdate], [qdate], [cdate], [championid], [designid], [assemblyid], [epanelid], [softwareid]) VALUES (@status, @pdate, @name, @usermain, @usersub, @reqstaff, @sdate, @edate, @odate, @memo, @wuid, @wdate, @rev, @pidx, @userManager, @level, @part, @process, @costo, @costn, @cnt, @remark_req, @remark_ans, @ddate, @progress, @import, @asset, @isdel, @path, @userhw2, @orderno, @gcode, @category, @userprocess, @CMP_Background, @CMP_Description, @CMP_Before, @CMP_After, @bCost, @bFanOut, @div, @crdue, @model, @serial, @bdate, @qdate, @cdate, @championid, @designid, @assemblyid, @epanelid, @softwareid); +SELECT idx, status, pdate, name, usermain, usersub, reqstaff, sdate, edate, odate, memo, wuid, wdate, rev, pidx, userManager, level, part, process, costo, costn, cnt, remark_req, remark_ans, ddate, progress, import, asset, isdel, path, userhw2, orderno, dbo.getLastHistory(idx) AS lasthistory, gcode, category, userprocess, CMP_Background, CMP_Description, CMP_Before, CMP_After, bCost, bFanOut, div, crdue, dbo.getScheduleProgressI(idx) AS ProgressPrj, '' AS wws, '' AS wwo, '' AS wwe, '' AS wwd, model, serial, bdate, qdate, cdate, championid, dbo.getProjectFinishRate(gcode, idx) AS finishrate, designid, assemblyid, epanelid, softwareid FROM Projects WHERE (idx = SCOPE_IDENTITY()) ORDER BY (CASE WHEN [status] = '검토' THEN '0' WHEN ([status] = '진행') THEN '1' WHEN ([status] = '보류') THEN '2' WHEN ([status] = '완료') THEN '3' WHEN ([status] = '취소') THEN '9' ELSE '5' END) @@ -72,6 +72,10 @@ SELECT idx, status, pdate, name, usermain, usersub, reqstaff, sdate, edate, odat + + + + @@ -80,7 +84,8 @@ SELECT idx, status, pdate, name, usermain, usersub, reqstaff, sdate, edate, odat SELECT idx, status, pdate, name, usermain, usersub, reqstaff, sdate, edate, odate, memo, wuid, wdate, rev, pidx, userManager, level, part, process, costo, costn, cnt, remark_req, remark_ans, ddate, progress, import, asset, isdel, path, userhw2, orderno, dbo.getLastHistory(idx) AS lasthistory, gcode, category, userprocess, CMP_Background, CMP_Description, CMP_Before, CMP_After, bCost, bFanOut, div, crdue, dbo.getScheduleProgressI(idx) AS ProgressPrj, '' AS wws, '' AS wwo, '' AS wwe, '' AS wwd, model, serial, bdate, qdate, cdate, championid, - dbo.getProjectFinishRate(gcode, idx) AS finishrate + dbo.getProjectFinishRate(gcode, idx) AS finishrate, designid, assemblyid, epanelid, softwareid, dbo.getUserName(championid) AS name_champion, dbo.getUserName(designid) + AS name_design, dbo.getUserName(assemblyid) AS name_assembly, dbo.getUserName(epanelid) AS name_epanel, dbo.getUserName(softwareid) AS name_software FROM Projects WHERE (status LIKE @state) AND (ISNULL(userManager, '') LIKE @username OR ISNULL(usermain, '') LIKE @username OR @@ -102,9 +107,9 @@ SET status = @status, pdate = @pdate, name = @name, usermain = @usermain, remark_req = @remark_req, remark_ans = @remark_ans, ddate = @ddate, progress = @progress, import = @import, asset = @asset, isdel = @isdel, path = @path, userhw2 = @userhw2, orderno = @orderno, gcode = @gcode, category = @category, userprocess = @userprocess, CMP_Background = @CMP_Background, CMP_Description = @CMP_Description, CMP_Before = @CMP_Before, CMP_After = @CMP_After, bCost = @bCost, bFanOut = @bFanOut, div = @div, crdue = @crdue, model = @model, serial = @serial, bdate = @bdate, - qdate = @qdate, cdate = @cdate, championid = @championid + qdate = @qdate, cdate = @cdate, championid = @championid, designid = @designid, assemblyid = @assemblyid, epanelid = @epanelid, softwareid = @softwareid WHERE (idx = @Original_idx); -SELECT idx, status, pdate, name, usermain, usersub, reqstaff, sdate, edate, odate, memo, wuid, wdate, rev, pidx, userManager, level, part, process, costo, costn, cnt, remark_req, remark_ans, ddate, progress, import, asset, isdel, path, userhw2, orderno, dbo.getLastHistory(idx) AS lasthistory, gcode, category, userprocess, CMP_Background, CMP_Description, CMP_Before, CMP_After, bCost, bFanOut, div, crdue, dbo.getScheduleProgressI(idx) AS ProgressPrj, '' AS wws, '' AS wwo, '' AS wwe, '' AS wwd, model, serial, bdate, qdate, cdate, championid FROM Projects WHERE (idx = @idx) ORDER BY (CASE WHEN [status] = '검토' THEN '0' WHEN ([status] = '진행') THEN '1' WHEN ([status] = '보류') THEN '2' WHEN ([status] = '완료') THEN '3' WHEN ([status] = '취소') THEN '9' ELSE '5' END) +SELECT idx, status, pdate, name, usermain, usersub, reqstaff, sdate, edate, odate, memo, wuid, wdate, rev, pidx, userManager, level, part, process, costo, costn, cnt, remark_req, remark_ans, ddate, progress, import, asset, isdel, path, userhw2, orderno, dbo.getLastHistory(idx) AS lasthistory, gcode, category, userprocess, CMP_Background, CMP_Description, CMP_Before, CMP_After, bCost, bFanOut, div, crdue, dbo.getScheduleProgressI(idx) AS ProgressPrj, '' AS wws, '' AS wwo, '' AS wwe, '' AS wwd, model, serial, bdate, qdate, cdate, championid, dbo.getProjectFinishRate(gcode, idx) AS finishrate, designid, assemblyid, epanelid, softwareid FROM Projects WHERE (idx = @idx) ORDER BY (CASE WHEN [status] = '검토' THEN '0' WHEN ([status] = '진행') THEN '1' WHEN ([status] = '보류') THEN '2' WHEN ([status] = '완료') THEN '3' WHEN ([status] = '취소') THEN '9' ELSE '5' END) @@ -154,6 +159,10 @@ SELECT idx, status, pdate, name, usermain, usersub, reqstaff, sdate, edate, odat + + + + @@ -218,6 +227,15 @@ SELECT idx, status, pdate, name, usermain, usersub, reqstaff, sdate, edate, odat + + + + + + + + + @@ -243,7 +261,8 @@ WHERE (import = 1) AND (gcode = @gcode) SELECT asset, cnt, costn, costo, ddate, edate, idx, import, isdel, level, memo, name, odate, orderno, part, path, pdate, pidx, process, progress, remark_ans, remark_req, reqstaff, rev, sdate, status, userManager, userhw2, usermain, usersub, wdate, wuid, dbo.getLastHistory(idx) AS lasthistory, gcode, category, userprocess, CMP_Background, CMP_Description, CMP_Before, CMP_After, bCost, bFanOut, dbo.getScheduleProgressI(idx) AS ProgressPrj, '' AS wws, '' AS wwo, '' AS wwe, '' AS wwd, model, serial, bdate, qdate, cdate, championid, dbo.getProjectFinishRate(gcode, - idx) AS finishrate + idx) AS finishrate, designid, assemblyid, epanelid, softwareid, dbo.getUserName(championid) AS name_champion, dbo.getUserName(designid) AS name_design, + dbo.getUserName(assemblyid) AS name_assembly, dbo.getUserName(epanelid) AS name_epanel, dbo.getUserName(softwareid) AS name_software FROM Projects WHERE (idx = @idx) @@ -258,7 +277,8 @@ WHERE (idx = @idx) SELECT idx, status, pdate, name, usermain, usersub, reqstaff, sdate, edate, odate, memo, wuid, wdate, rev, pidx, userManager, level, part, process, costo, costn, cnt, remark_req, remark_ans, ddate, progress, import, asset, isdel, path, userhw2, orderno, dbo.getLastHistory(idx) AS lasthistory, gcode, category, userprocess, CMP_Background, CMP_Description, CMP_Before, CMP_After, bCost, bFanOut, dbo.getScheduleProgressI(idx) AS ProgressPrj, '' AS wws, '' AS wwo, '' AS wwe, '' AS wwd, model, serial, bdate, qdate, cdate, championid, dbo.getProjectFinishRate(gcode, - idx) AS finishrate + idx) AS finishrate, designid, assemblyid, epanelid, softwareid, dbo.getUserName(championid) AS name_champion, dbo.getUserName(designid) AS name_design, + dbo.getUserName(assemblyid) AS name_assembly, dbo.getUserName(epanelid) AS name_epanel, dbo.getUserName(softwareid) AS name_software FROM Projects WHERE (ISNULL(name, N'') LIKE @search) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) OR (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) AND (CAST(idx AS varchar) LIKE @search) OR @@ -3277,6 +3297,69 @@ WHERE (idx = @idx) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -3482,21 +3565,21 @@ WHERE (idx = @idx) - + - + - + diff --git a/SubProject/FPJ0000/dsPRJ.xss b/SubProject/FPJ0000/dsPRJ.xss index 9e3f287..8dd52bd 100644 --- a/SubProject/FPJ0000/dsPRJ.xss +++ b/SubProject/FPJ0000/dsPRJ.xss @@ -4,9 +4,9 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - +