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;
}
}