private void Frmxspm_Load(object sender, System.EventArgs e) { try { dtp1.Value = DateManager.ServerDateTimeByDBType(InstanceForm.BDatabase); dtp2.Value = DateManager.ServerDateTimeByDBType(InstanceForm.BDatabase); FunBase.CsDataGrid(this.myDataGrid1, this.myDataGrid1.TableStyles[0], "Tb"); DataTable tbks = InstanceForm.BDatabase.GetDataTable(Yp.Seek_WLDW(_menuTag.Function_Name, InstanceForm.BCurrentDept.DeptId, InstanceForm.BDatabase)); cmbks.DataSource = tbks; cmbks.ValueMember = "DEPT_ID"; cmbks.DisplayMember = "NAME"; } catch (System.Exception err) { MessageBox.Show("发生错误" + err.Message); } }