コード例 #1
0
 private void OnFormLoad(object sender, EventArgs e)
 {
     ugDal = new UnitGroupDal();
     BindingCombox();
     //txtName.Text = unitGrpEntity.GrpName;
     //txtNum.Properties.Buttons[0].Caption = unitGrpEntity.UnitName;
 }
コード例 #2
0
 private void OnFormLoad(object sender, EventArgs e)
 {
     ugDal = new UnitGroupDal();
     BindingCombox();
     if (unitGrpEntity != null)
     {
         this.Text       = "包装关系-修改";
         txtCode.Enabled = false;
         layoutControlItem3.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
         ShowEditInfo(unitGrpEntity);
     }
 }
コード例 #3
0
        private void OnFormLoad(object sender, EventArgs e)
        {
            ImageCollection ic = AppResource.LoadToolImages();

            barManager1.Images        = ic;
            toolAdd.ImageIndex        = (int)AppResource.EIcons.add;
            toolEdit.ImageIndex       = (int)AppResource.EIcons.edit;
            toolDel.ImageIndex        = (int)AppResource.EIcons.delete;
            toolRefresh.ImageIndex    = (int)AppResource.EIcons.refresh;
            toolSearch.ImageIndex     = (int)AppResource.EIcons.search;
            barButtonItem1.ImageIndex = (int)AppResource.EIcons.tree;
            barButtonItem2.ImageIndex = (int)AppResource.EIcons.remove;

            unitGrpDal = new UnitGroupDal();
            LoadDataAndBindGrid();
        }
コード例 #4
0
ファイル: FrmChooseMaterial.cs プロジェクト: uwitec/wms-1
        private void ShowSelectedMaterial()
        {
            MaterialEntity material = gridMaterial.FocusedHeader;

            if (material == null)
            {
                txtMaterial.Text    = txtQty.Text = "";
                listUnits.EditValue = null;
            }
            else
            {
                txtMaterial.Text = material.MaterialCode;
                List <UnitGroupItemEntity> units = new UnitGroupDal().GetItemsByGrpCode(material.UnitGrpCode);
                listUnits.Properties.DataSource = units;

                //默认选中基本单位
                listUnits.EditValue = material.UnitCode;
                txtQty.Text         = "1";
            }
        }