Пример #1
0
        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);
        }