...
This commit is contained in:
@@ -12,18 +12,20 @@ namespace FEQ0000.Purchase
|
||||
{
|
||||
public partial class fMailForm : Form
|
||||
{
|
||||
public fMailForm()
|
||||
string Cate = string.Empty;
|
||||
public fMailForm(string cate)
|
||||
{
|
||||
InitializeComponent();
|
||||
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
|
||||
Properties.Settings.Default["EEEntities"] = FCOMMON.info.CS;
|
||||
Cate = cate;
|
||||
}
|
||||
|
||||
private void fMailForm_Load(object sender, EventArgs e)
|
||||
{
|
||||
var db = new DataClasses1DataContext();
|
||||
|
||||
var mailform = db.MailForm.Where(t => t.cate == "PC").ToList();
|
||||
var mailform = db.MailForm.Where(t => t.cate == Cate).ToList();
|
||||
this.cmbForm.DataSource = mailform;
|
||||
this.cmbForm.DisplayMember = "title";
|
||||
this.cmbForm.ValueMember = "idx";
|
||||
|
||||
Reference in New Issue
Block a user