Пример #1
0
        public void loadForm()
        {
            {
                var withBlock = cboStorageType;
                withBlock.DataSource    = StorageTypeService.GetAll();
                withBlock.DisplayMember = "StorageTypeName";
                withBlock.ValueMember   = "StorageTypeId";
                withBlock.SelectedIndex = 0;
            }

            {
                var withBlock1     = cboStorage;
                var delegationList = new List <string>();
                delegationList.Add("STORAGE");
                delegationList.Add("UNASSIGNED");
                withBlock1.DataSource    = ContainerService.GetByFilters("", "", "", "", "", "", delegationList, "");
                withBlock1.DisplayMember = "ContainerNumber";
                withBlock1.ValueMember   = "ContainerId";
                withBlock1.SelectedIndex = 0;
            }

            nudBagQty.Value = 0m;
            tbLocation.Text = "";
            lblWarning.Text = "";
        }
Пример #2
0
        public void loadForm()
        {
            {
                var withBlock = cboStorageType;
                withBlock.DataSource    = StorageTypeService.GetAll();
                withBlock.DisplayMember = "StorageTypeName";
                withBlock.ValueMember   = "StorageTypeId";
                withBlock.SelectedIndex = 0;
            }

            {
                var withBlock1     = cboStorage;
                var delegationList = new List <string>();
                delegationList.Add("STORAGE");
                delegationList.Add("UNASSIGNED");
                withBlock1.DataSource    = ContainerService.GetByFilters("", "", "", "", "", "", delegationList, "");
                withBlock1.DisplayMember = "ContainerNumber";
                withBlock1.ValueMember   = "ContainerId";
                withBlock1.SelectedIndex = 0;
            }

            nudBagQty.Value = 0m;
            if (My.MyProject.Forms.FrmAddEditGrainInventory.UnitObj.CargoType.Equals("BAG"))
            {
                nudBagQty.DecimalPlaces = 0;
            }
            else
            {
                nudBagQty.DecimalPlaces = 3;
            }

            lblWarning.Text = "";
        }