Ejemplo n.º 1
0
        public WarehouseAdd()
        {
            InitializeComponent();

            lblId.Text = bll.GetNextCode();

            #region 初始化 类型
            DataTable dt       = bllType.GetList(null);
            DataView  dataView = dt.DefaultView;
            dataView.Sort         = "C_ID asc";
            cmbType.DataSource    = dataView.ToTable();
            cmbType.DisplayMember = "C_NAME";
            cmbType.ValueMember   = "C_ID";
            #endregion
        }