This commit is contained in:
chi
2023-12-19 11:49:57 +09:00
parent 4334725900
commit 6e925857b3
18 changed files with 1881 additions and 268 deletions

View File

@@ -20,15 +20,30 @@ namespace FEQ0000.Purchase
Properties.Settings.Default["EEEntities"] = FCOMMON.info.CS;
Cate = cate;
}
public fMailForm(string subject, string body, string to, string cc, string bcc)
{
InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
Properties.Settings.Default["EEEntities"] = FCOMMON.info.CS;
Cate = "";
this.tbSubject.Text = subject;
this.tbTo.Text = to;
this.tbCC.Text = cc;
this.tbBcc.Text = bcc;
htmlEditor1.Html = body;
}
private void fMailForm_Load(object sender, EventArgs e)
{
var db = new DataClasses1DataContext();
var mailform = db.MailForm.Where(t => t.gcode == FCOMMON.info.Login.gcode && t.cate == Cate).ToList();
this.cmbForm.DataSource = mailform;
this.cmbForm.DisplayMember = "title";
this.cmbForm.ValueMember = "idx";
if (Cate.isEmpty() == false)
{
var db = new DataClasses1DataContext();
var mailform = db.MailForm.Where(t => t.gcode == FCOMMON.info.Login.gcode && t.cate == Cate).ToList();
this.cmbForm.DataSource = mailform;
this.cmbForm.DisplayMember = "title";
this.cmbForm.ValueMember = "idx";
}
else this.cmbForm.Enabled = false;
}
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
@@ -43,6 +58,7 @@ namespace FEQ0000.Purchase
private void button1_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.OK;
}
}

View File

@@ -147,9 +147,10 @@
this.btViewDel = new System.Windows.Forms.ToolStripButton();
this.toolStripButton3 = new System.Windows.Forms.ToolStripButton();
this.fpSpread1 = new FarPoint.Win.Spread.FpSpread();
this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
@@ -487,6 +488,7 @@
this.columnSizeToolStripMenuItem,
this.toolStripMenuItem3,
this.exportDataToolStripMenuItem,
this.ToolStripMenuItem,
this.toolStripMenuItem4,
this.ToolStripMenuItem,
this.ToolStripMenuItem,
@@ -498,7 +500,7 @@
this.sC검색ToolStripMenuItem,
this.cRCF검색ToolStripMenuItem});
this.cm1.Name = "contextMenuStrip1";
this.cm1.Size = new System.Drawing.Size(314, 442);
this.cm1.Size = new System.Drawing.Size(314, 506);
this.cm1.Opening += new System.ComponentModel.CancelEventHandler(this.cm1_Opening);
//
// columnSizeToolStripMenuItem
@@ -854,30 +856,6 @@
this.fpSpread1.TabIndex = 4;
this.fpSpread1.EditModeOff += new System.EventHandler(this.fpSpread1_EditModeOff);
//
// label1
//
this.label1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.label1.Font = new System.Drawing.Font("맑은 고딕", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.label1.Location = new System.Drawing.Point(0, 639);
this.label1.Name = "label1";
this.label1.Padding = new System.Windows.Forms.Padding(5, 0, 0, 0);
this.label1.Size = new System.Drawing.Size(1334, 23);
this.label1.TabIndex = 6;
this.label1.Text = "--";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// label2
//
this.label2.Dock = System.Windows.Forms.DockStyle.Bottom;
this.label2.Font = new System.Drawing.Font("맑은 고딕", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.label2.Location = new System.Drawing.Point(0, 616);
this.label2.Name = "label2";
this.label2.Padding = new System.Windows.Forms.Padding(5, 0, 0, 0);
this.label2.Size = new System.Drawing.Size(1334, 23);
this.label2.TabIndex = 7;
this.label2.Text = "--";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// fpSpread1_Sheet1
//
this.fpSpread1_Sheet1.Reset();
@@ -1220,6 +1198,37 @@
this.fpSpread1_Sheet1.ShowRowSelector = true;
this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1;
//
// label1
//
this.label1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.label1.Font = new System.Drawing.Font("맑은 고딕", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.label1.Location = new System.Drawing.Point(0, 639);
this.label1.Name = "label1";
this.label1.Padding = new System.Windows.Forms.Padding(5, 0, 0, 0);
this.label1.Size = new System.Drawing.Size(1334, 23);
this.label1.TabIndex = 6;
this.label1.Text = "--";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// label2
//
this.label2.Dock = System.Windows.Forms.DockStyle.Bottom;
this.label2.Font = new System.Drawing.Font("맑은 고딕", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.label2.Location = new System.Drawing.Point(0, 616);
this.label2.Name = "label2";
this.label2.Padding = new System.Windows.Forms.Padding(5, 0, 0, 0);
this.label2.Size = new System.Drawing.Size(1334, 23);
this.label2.TabIndex = 7;
this.label2.Text = "--";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// 사용자내보내기ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "사용자내보내기ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(313, 42);
this.ToolStripMenuItem.Text = "사용자 내보내기";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// fPurchaseNR
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
@@ -1334,5 +1343,6 @@
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
}
}

View File

@@ -15,6 +15,8 @@ using FEQ0000.Purchase;
using FCOMMON;
using NetOffice.OfficeApi;
using System.Web.Services.Protocols;
using System.Diagnostics;
using FarPoint.Win.Spread.CellType;
namespace FEQ0000
{
@@ -1475,5 +1477,23 @@ namespace FEQ0000
ToolStripMenuItem.Enabled = IsAdmin;
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
var cnt = this.fpSpread1_Sheet1.Columns.Count;
Dictionary<string, string> cols = new Dictionary<string, string>();
foreach(FarPoint.Win.Spread.Column col in fpSpread1_Sheet1.Columns)
{
if (col.Visible == false || col.Width < 10) continue;
if (col.CellType is CheckBoxCellType) continue;
var field = col.DataField;
var label = col.Label;
cols.Add(field, col.Label);
}
var f = new fUserExportColumn(this.Name, cols,this.dsPurchase.Purchase,this.bs.Filter);
f.ShowDialog();
}
}
}

View File

@@ -459,6 +459,7 @@
this.tbSID.Name = "tbSID";
this.tbSID.Size = new System.Drawing.Size(179, 34);
this.tbSID.TabIndex = 26;
this.tbSID.TextChanged += new System.EventHandler(this.tbSID_TextChanged);
//
// tbPumName
//

View File

@@ -1365,5 +1365,14 @@ namespace FEQ0000
{
this.dtPrdate.Enabled = chkprdate.Checked;
}
private void tbSID_TextChanged(object sender, EventArgs e)
{
var tb = sender as TextBox;
var bgcolor = tb.Text == "신규" ? Color.Yellow : Color.Gainsboro;
btEQManu.BackColor = bgcolor;
btEQModel.BackColor = bgcolor;
btManuProc.BackColor = bgcolor;
}
}
}