コード例 #1
0
        //bind 料品下拉列表
        private void BindItem(BenQGuru.eMES.Common.Domain.IDomainDataProvider provider, string model, UCLabelCombox cbx)
        {
            cbx.Clear();
            this.txtItemDesc.InnerTextBox.Text = string.Empty;
            if (provider == null || model == null || model == string.Empty)
            {
                return;
            }

            BenQGuru.eMES.MOModel.ModelFacade _facade = new BenQGuru.eMES.MOModel.ModelFacade(provider);
            object[] objs = _facade.GetModelAllItem(model);
            if (objs != null)
            {
                foreach (object obj in objs)
                {
                    BenQGuru.eMES.Domain.MOModel.Model2Item mo = obj as BenQGuru.eMES.Domain.MOModel.Model2Item;
                    if (mo != null)
                    {
                        cbx.AddItem(mo.ItemCode, mo.ItemCode);
                    }
                }
            }
        }
コード例 #2
0
 /// <summary>
 /// 设计器支持所需的方法 - 不要使用代码编辑器修改
 /// 此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FLotTransferCarton));
     this.ucLabEdit2   = new UserControl.UCLabelEdit();
     this.ucLabelEdit1 = new UserControl.UCLabelEdit();
     this.panel1       = new System.Windows.Forms.Panel();
     this.ucLabelComboxCurrentCarton = new UserControl.UCLabelCombox();
     this.txtMoCode   = new UserControl.UCLabelEdit();
     this.txtItemCode = new UserControl.UCLabelEdit();
     this.txtLotCode  = new UserControl.UCLabelEdit();
     this.txtCartonNO = new UserControl.UCLabelEdit();
     this.panel2      = new System.Windows.Forms.Panel();
     this.btnConfirm  = new UserControl.UCButton();
     this.BtnExit     = new UserControl.UCButton();
     this.panel4      = new System.Windows.Forms.Panel();
     this.ucMessage   = new UserControl.UCMessage();
     this.panel1.SuspendLayout();
     this.panel2.SuspendLayout();
     this.panel4.SuspendLayout();
     this.SuspendLayout();
     //
     // ucLabEdit2
     //
     this.ucLabEdit2.AllowEditOnlyChecked = true;
     this.ucLabEdit2.AutoSelectAll        = false;
     this.ucLabEdit2.AutoUpper            = true;
     this.ucLabEdit2.Caption      = "包装数量";
     this.ucLabEdit2.Checked      = false;
     this.ucLabEdit2.EditType     = UserControl.EditTypes.String;
     this.ucLabEdit2.Location     = new System.Drawing.Point(161, -16);
     this.ucLabEdit2.MaxLength    = 40;
     this.ucLabEdit2.Multiline    = false;
     this.ucLabEdit2.Name         = "ucLabEdit2";
     this.ucLabEdit2.PasswordChar = '\0';
     this.ucLabEdit2.ReadOnly     = false;
     this.ucLabEdit2.ShowCheckBox = false;
     this.ucLabEdit2.Size         = new System.Drawing.Size(194, 56);
     this.ucLabEdit2.TabIndex     = 16;
     this.ucLabEdit2.TabNext      = true;
     this.ucLabEdit2.Value        = "";
     this.ucLabEdit2.WidthType    = UserControl.WidthTypes.Normal;
     this.ucLabEdit2.XAlign       = 222;
     //
     // ucLabelEdit1
     //
     this.ucLabelEdit1.AllowEditOnlyChecked = true;
     this.ucLabelEdit1.AutoSelectAll        = false;
     this.ucLabelEdit1.AutoUpper            = true;
     this.ucLabelEdit1.Caption      = "输入标示";
     this.ucLabelEdit1.Checked      = false;
     this.ucLabelEdit1.EditType     = UserControl.EditTypes.String;
     this.ucLabelEdit1.Location     = new System.Drawing.Point(358, 16);
     this.ucLabelEdit1.MaxLength    = 40;
     this.ucLabelEdit1.Multiline    = false;
     this.ucLabelEdit1.Name         = "ucLabelEdit1";
     this.ucLabelEdit1.PasswordChar = '\0';
     this.ucLabelEdit1.ReadOnly     = false;
     this.ucLabelEdit1.ShowCheckBox = false;
     this.ucLabelEdit1.Size         = new System.Drawing.Size(194, 24);
     this.ucLabelEdit1.TabIndex     = 1;
     this.ucLabelEdit1.TabNext      = true;
     this.ucLabelEdit1.Value        = "";
     this.ucLabelEdit1.WidthType    = UserControl.WidthTypes.Normal;
     this.ucLabelEdit1.XAlign       = 419;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.ucLabelComboxCurrentCarton);
     this.panel1.Controls.Add(this.txtMoCode);
     this.panel1.Controls.Add(this.txtItemCode);
     this.panel1.Controls.Add(this.txtLotCode);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel1.Location = new System.Drawing.Point(0, 0);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(720, 77);
     this.panel1.TabIndex = 285;
     //
     // ucLabelComboxCurrentCarton
     //
     this.ucLabelComboxCurrentCarton.AllowEditOnlyChecked = true;
     this.ucLabelComboxCurrentCarton.Caption       = "Carton号";
     this.ucLabelComboxCurrentCarton.Checked       = false;
     this.ucLabelComboxCurrentCarton.Location      = new System.Drawing.Point(362, 16);
     this.ucLabelComboxCurrentCarton.Name          = "ucLabelComboxCurrentCarton";
     this.ucLabelComboxCurrentCarton.SelectedIndex = -1;
     this.ucLabelComboxCurrentCarton.ShowCheckBox  = false;
     this.ucLabelComboxCurrentCarton.Size          = new System.Drawing.Size(261, 24);
     this.ucLabelComboxCurrentCarton.TabIndex      = 50;
     this.ucLabelComboxCurrentCarton.WidthType     = UserControl.WidthTypes.Long;
     this.ucLabelComboxCurrentCarton.XAlign        = 423;
     //
     // txtMoCode
     //
     this.txtMoCode.AllowEditOnlyChecked = true;
     this.txtMoCode.AutoSelectAll        = false;
     this.txtMoCode.AutoUpper            = true;
     this.txtMoCode.BackColor            = System.Drawing.Color.Gainsboro;
     this.txtMoCode.Caption      = "工单代码";
     this.txtMoCode.Checked      = false;
     this.txtMoCode.EditType     = UserControl.EditTypes.String;
     this.txtMoCode.Location     = new System.Drawing.Point(361, 46);
     this.txtMoCode.MaxLength    = 4000;
     this.txtMoCode.Multiline    = false;
     this.txtMoCode.Name         = "txtMoCode";
     this.txtMoCode.PasswordChar = '\0';
     this.txtMoCode.ReadOnly     = true;
     this.txtMoCode.ShowCheckBox = false;
     this.txtMoCode.Size         = new System.Drawing.Size(261, 24);
     this.txtMoCode.TabIndex     = 3;
     this.txtMoCode.TabNext      = false;
     this.txtMoCode.TabStop      = false;
     this.txtMoCode.Value        = "";
     this.txtMoCode.WidthType    = UserControl.WidthTypes.Long;
     this.txtMoCode.XAlign       = 422;
     //
     // txtItemCode
     //
     this.txtItemCode.AllowEditOnlyChecked = true;
     this.txtItemCode.AutoSelectAll        = false;
     this.txtItemCode.AutoUpper            = true;
     this.txtItemCode.BackColor            = System.Drawing.Color.Gainsboro;
     this.txtItemCode.Caption      = "产品代码";
     this.txtItemCode.Checked      = false;
     this.txtItemCode.EditType     = UserControl.EditTypes.String;
     this.txtItemCode.Location     = new System.Drawing.Point(37, 46);
     this.txtItemCode.MaxLength    = 4000;
     this.txtItemCode.Multiline    = false;
     this.txtItemCode.Name         = "txtItemCode";
     this.txtItemCode.PasswordChar = '\0';
     this.txtItemCode.ReadOnly     = true;
     this.txtItemCode.ShowCheckBox = false;
     this.txtItemCode.Size         = new System.Drawing.Size(261, 24);
     this.txtItemCode.TabIndex     = 2;
     this.txtItemCode.TabNext      = false;
     this.txtItemCode.TabStop      = false;
     this.txtItemCode.Value        = "";
     this.txtItemCode.WidthType    = UserControl.WidthTypes.Long;
     this.txtItemCode.XAlign       = 98;
     //
     // txtLotCode
     //
     this.txtLotCode.AllowEditOnlyChecked = true;
     this.txtLotCode.AutoSelectAll        = false;
     this.txtLotCode.AutoUpper            = true;
     this.txtLotCode.BackColor            = System.Drawing.Color.Gainsboro;
     this.txtLotCode.Caption         = "产品批次条码";
     this.txtLotCode.Checked         = false;
     this.txtLotCode.EditType        = UserControl.EditTypes.String;
     this.txtLotCode.Location        = new System.Drawing.Point(13, 16);
     this.txtLotCode.MaxLength       = 4000;
     this.txtLotCode.Multiline       = false;
     this.txtLotCode.Name            = "txtLotCode";
     this.txtLotCode.PasswordChar    = '\0';
     this.txtLotCode.ReadOnly        = false;
     this.txtLotCode.ShowCheckBox    = false;
     this.txtLotCode.Size            = new System.Drawing.Size(285, 24);
     this.txtLotCode.TabIndex        = 1;
     this.txtLotCode.TabNext         = false;
     this.txtLotCode.Value           = "";
     this.txtLotCode.WidthType       = UserControl.WidthTypes.Long;
     this.txtLotCode.XAlign          = 98;
     this.txtLotCode.TxtboxKeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtLotCode_TxtboxKeyPress);
     //
     // txtCartonNO
     //
     this.txtCartonNO.AllowEditOnlyChecked = true;
     this.txtCartonNO.AutoSelectAll        = false;
     this.txtCartonNO.AutoUpper            = true;
     this.txtCartonNO.BackColor            = System.Drawing.Color.Gainsboro;
     this.txtCartonNO.Caption         = "Carton号";
     this.txtCartonNO.Checked         = false;
     this.txtCartonNO.EditType        = UserControl.EditTypes.String;
     this.txtCartonNO.Font            = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.txtCartonNO.Location        = new System.Drawing.Point(25, 16);
     this.txtCartonNO.MaxLength       = 40;
     this.txtCartonNO.Multiline       = false;
     this.txtCartonNO.Name            = "txtCartonNO";
     this.txtCartonNO.PasswordChar    = '\0';
     this.txtCartonNO.ReadOnly        = false;
     this.txtCartonNO.ShowCheckBox    = false;
     this.txtCartonNO.Size            = new System.Drawing.Size(261, 24);
     this.txtCartonNO.TabIndex        = 3;
     this.txtCartonNO.TabNext         = true;
     this.txtCartonNO.Value           = "";
     this.txtCartonNO.WidthType       = UserControl.WidthTypes.Long;
     this.txtCartonNO.XAlign          = 86;
     this.txtCartonNO.TxtboxKeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtCartonNO_TxtboxKeyPress);
     //
     // panel2
     //
     this.panel2.Controls.Add(this.btnConfirm);
     this.panel2.Controls.Add(this.BtnExit);
     this.panel2.Controls.Add(this.txtCartonNO);
     this.panel2.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.panel2.Location = new System.Drawing.Point(0, 429);
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size(720, 56);
     this.panel2.TabIndex = 286;
     //
     // btnConfirm
     //
     this.btnConfirm.BackColor       = System.Drawing.SystemColors.Control;
     this.btnConfirm.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnConfirm.BackgroundImage")));
     this.btnConfirm.ButtonType      = UserControl.ButtonTypes.Confirm;
     this.btnConfirm.Caption         = "确认";
     this.btnConfirm.Cursor          = System.Windows.Forms.Cursors.Hand;
     this.btnConfirm.Location        = new System.Drawing.Point(304, 17);
     this.btnConfirm.Name            = "btnConfirm";
     this.btnConfirm.Size            = new System.Drawing.Size(88, 22);
     this.btnConfirm.TabIndex        = 101;
     this.btnConfirm.Visible         = false;
     //
     // BtnExit
     //
     this.BtnExit.BackColor       = System.Drawing.SystemColors.Control;
     this.BtnExit.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("BtnExit.BackgroundImage")));
     this.BtnExit.ButtonType      = UserControl.ButtonTypes.Exit;
     this.BtnExit.Caption         = "退出";
     this.BtnExit.Cursor          = System.Windows.Forms.Cursors.Hand;
     this.BtnExit.Location        = new System.Drawing.Point(408, 16);
     this.BtnExit.Name            = "BtnExit";
     this.BtnExit.Size            = new System.Drawing.Size(88, 22);
     this.BtnExit.TabIndex        = 100;
     //
     // panel4
     //
     this.panel4.Controls.Add(this.ucMessage);
     this.panel4.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel4.Location = new System.Drawing.Point(0, 77);
     this.panel4.Name     = "panel4";
     this.panel4.Size     = new System.Drawing.Size(720, 352);
     this.panel4.TabIndex = 288;
     //
     // ucMessage
     //
     this.ucMessage.AutoScroll    = true;
     this.ucMessage.BackColor     = System.Drawing.Color.Gainsboro;
     this.ucMessage.ButtonVisible = false;
     this.ucMessage.Dock          = System.Windows.Forms.DockStyle.Fill;
     this.ucMessage.Location      = new System.Drawing.Point(0, 0);
     this.ucMessage.Name          = "ucMessage";
     this.ucMessage.Size          = new System.Drawing.Size(720, 352);
     this.ucMessage.TabIndex      = 176;
     //
     // FLotTransferCarton
     //
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
     this.BackColor     = System.Drawing.Color.Gainsboro;
     this.ClientSize    = new System.Drawing.Size(720, 485);
     this.Controls.Add(this.panel4);
     this.Controls.Add(this.panel2);
     this.Controls.Add(this.panel1);
     this.Name          = "FLotTransferCarton";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "Carton包装移转采集";
     this.Load         += new System.EventHandler(this.FPack_Load);
     this.panel1.ResumeLayout(false);
     this.panel2.ResumeLayout(false);
     this.panel4.ResumeLayout(false);
     this.ResumeLayout(false);
 }
コード例 #3
0
 public void SetUp()
 {
     uCLabelCombox = new UCLabelCombox();
 }