public FormMain( ) { InitializeComponent( ); _bll = new SiftingDataBll.Bll.MainBll( ); model = new SiftingDataEntity.MainEntity( ); dtNow = _bll.getTimeNow( ).ToString("yyyyMMdd"); barManager1.Items.Remove(toolExport); gridView1.OptionsBehavior.Editable = false; partTable = _bll.getTablePartNum( ); partNum.DataSource = partTable; partNum.DisplayMember = "MAI002"; partNum.ValueMember = "MAI002"; DataTable table = _bll.getTableInfo( ); txtMAI002.Properties.DataSource = table.DefaultView.ToTable(true, "MAI002"); txtMAI002.Properties.DisplayMember = "MAI002"; txtMAI003.Properties.DataSource = table.DefaultView.ToTable(true, "MAI003"); txtMAI003.Properties.DisplayMember = "MAI003"; GridViewMoHuSelect.SetFilter(repositoryItemGridLookUpEdit1View); }
//基础资料 private void btnBase_Click(object sender, EventArgs e) { FormBaseInfo form = new FormBaseInfo( ); form.ShowDialog( ); partTable = _bll.getTablePartNum( ); partNum.DataSource = partTable; partNum.DisplayMember = "MAI002"; partNum.ValueMember = "MAI002"; }