Exemplo n.º 1
0
        private void btnSubmit_Click(object sender, EventArgs e)
        {
            if (dataSet.ShipBarCode.Rows.Count == 0)
            {
                return;
            }

            btnSubmit.Enabled = false;
            try
            {
                // 调用服务,提交数据
                ServiceAgent.AddShipBarCode(dataSet.ToImportDTOs());
                // 更新数据完成后,重新初始化UI
                ClearData();
                // 显示行数
                ShowRowCount();

                BuildTabOrder(true);
                tabOrderManager.Reset();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ExceptionParser.ParseError(ex));
                tabOrderManager.DealException(ex);
            }
            finally
            {
                btnSubmit.Enabled = true;
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// 构造tab顺序
        /// </summary>
        private void BuildTabOrder()
        {
            List <TabOrderTrigger> triggers = new List <TabOrderTrigger>();

            triggers.Add(new TabOrderTrigger(txtBarCode, null));
            tabOrderManager      = new TabOrderManager(triggers);
            tabOrderManager.Kind = TabOrderKind.循环;
            tabOrderManager.Reset();
        }
Exemplo n.º 3
0
        /// <summary>
        /// 构造tab顺序
        /// </summary>
        private void BuildTabOrder()
        {
            List <TabOrderTrigger> triggers = new List <TabOrderTrigger>();

            triggers.Add(new TabOrderTrigger(txtUser, null));
            triggers.Add(new TabOrderTrigger(cbOrgList, null));
            triggers.Add(new TabOrderTrigger(txtPassword, null));
            triggers.Add(new TabOrderTrigger(btnLogin, btnLogin_Click));
            tabOrderManager = new TabOrderManager(triggers);
            tabOrderManager.Reset();
        }
Exemplo n.º 4
0
        /// <summary>
        /// 构造tab顺序
        /// </summary>
        private void BuildTabOrder()
        {
            List <TabOrderTrigger> triggers = new List <TabOrderTrigger>();

            triggers.Add(new TabOrderTrigger(txtServiceUrl, null));
            triggers.Add(new TabOrderTrigger(txtTimeout, null));
            triggers.Add(new TabOrderTrigger(txtMaxConnCount, null));
            triggers.Add(new TabOrderTrigger(btnOK, btnOK_Click));
            tabOrderManager = new TabOrderManager(triggers);
            tabOrderManager.Reset();
        }