Ejemplo n.º 1
0
 public void LoadDataAndBindGrid()
 {
     try
     {
         hhmDal = new PDADal();
         List <PDAEntity> unitEntities = hhmDal.GetAll();
         BindGrid(unitEntities);
     }
     catch (Exception ex)
     {
         MsgBox.Warn(ex.Message);
     }
 }
Ejemplo n.º 2
0
        private void OnFormLoad(object sender, EventArgs e)
        {
            BindWareHouse();
            pdaDal = new PDADal();

            if (pdaEntity != null)
            {
                this.Text       = "手持机-修改";
                txtCode.Enabled = false;
                layoutControlItem3.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
                ShowEditInfo(pdaEntity);
                isNew = false;
            }
        }