Ejemplo n.º 1
0
        private void btn_Pos_Click(object sender, EventArgs e)
        {
            FrmSelectCell cell = new FrmSelectCell {
                AppInformation  = base.AppInformation,
                UserInformation = base.UserInformation
            };

            cell.cmb_cWHId.Tag = this.cmb_WHId.SelectedValue;
            cell.IsMultiSelect = true;
            cell.ShowDialog();
            if (cell.BIsResult)
            {
                this.txt_Pos.Text = cell.SelResult;
            }
            cell.Dispose();
        }
Ejemplo n.º 2
0
        private void lbl_PosId_Click(object sender, EventArgs e)
        {
            FrmSelectCell frmX = new FrmSelectCell();

            frmX.AppInformation  = AppInformation;
            frmX.UserInformation = UserInformation;
            frmX.cmb_cWHId.Tag   = _WHId.Trim();
            frmX.IsMultiSelect   = false;
            frmX.ShowDialog();
            if (frmX.BIsResult)
            {
                txt_cPosId.Text    = frmX.SelResult;
                txt_nPalletId.Text = frmX.SelPalletId;
            }
            frmX.Dispose();
        }
Ejemplo n.º 3
0
        private void label1_Click(object sender, EventArgs e)
        {
            FrmSelectCell cell = new FrmSelectCell {
                AppInformation  = base.AppInformation,
                UserInformation = base.UserInformation
            };

            cell.cmb_cWHId.Tag = this._WHId.Trim();
            cell.IsMultiSelect = false;
            cell.ShowDialog();
            if (cell.BIsResult)
            {
                this.txt_cPosId.Text    = cell.SelResult;
                this.txt_nPalletId.Text = cell.SelPalletId;
            }
            cell.Dispose();
        }
Ejemplo n.º 4
0
        private string GetCellId(int nState)
        {
            string        sResult = "";
            FrmSelectCell frmX    = new FrmSelectCell();

            frmX.AppInformation  = AppInformation;
            frmX.UserInformation = UserInformation;
            if (nState < frmX.cmb_nState.Items.Count)
            {
                frmX.cmb_nState.SelectedIndex = nState;
            }
            frmX.ShowDialog();
            if (frmX.BIsResult)
            {
                sResult = frmX.SelResult;
            }
            else
            {
                sResult = "";
            }
            frmX.Dispose();
            return(sResult);
        }
Ejemplo n.º 5
0
        private void btn_Pos_Click(object sender, EventArgs e)
        {
            FrmSelectCell frmX = new FrmSelectCell();

            frmX.AppInformation  = AppInformation;
            frmX.UserInformation = UserInformation;
            frmX.cmb_cWHId.Tag   = cmb_WHId.SelectedValue;
            frmX.IsMultiSelect   = true;
            frmX.ShowDialog();
            if (frmX.BIsResult)
            {
                string[] selResult = frmX.SelResult.Split(',');
                if (txt_Pos.Text.Split(',').Length + selResult.Length <= 50)
                {
                    foreach (var item in selResult)
                    {
                        if (!txt_Pos.Text.Contains(item))
                        {
                            if (string.IsNullOrEmpty(txt_Pos.Text))
                            {
                                txt_Pos.Text = item;
                            }
                            else
                            {
                                txt_Pos.Text += string.Format(",{0}", item);
                            }
                        }
                    }
                }
                else
                {
                    MessageBox.Show("同时选择的货位不能超过50个,如需盘点多盘物料请选择物料名称盘点。");
                }
            }
            frmX.Dispose();
        }
Ejemplo n.º 6
0
        private string GetCellId(int nState)
        {
            string        selResult = "";
            FrmSelectCell cell      = new FrmSelectCell {
                AppInformation  = base.AppInformation,
                UserInformation = base.UserInformation
            };

            if (nState < cell.cmb_nState.Items.Count)
            {
                cell.cmb_nState.SelectedIndex = nState;
            }
            cell.ShowDialog();
            if (cell.BIsResult)
            {
                selResult = cell.SelResult;
            }
            else
            {
                selResult = "";
            }
            cell.Dispose();
            return(selResult);
        }