コード例 #1
0
        private void 添加ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            int goodsID = 0;

            string frockNumber = "";

            SeparateString(treeView1.SelectedNode.Tag.ToString(), out goodsID, out frockNumber);

            工装总成信息 form = new 工装总成信息(goodsID, frockNumber, true, m_authFlag, true);

            form.ShowDialog();

            if (form.BlSave)
            {
                TreeNode tn = treeView1.SelectedNode;

                TreeNode tnNew = new TreeNode();

                tnNew.Text = form.StrFrockName;
                tnNew.Tag  = form.StrFrockNumber;

                tn.Nodes.Add(tnNew);
                RefrshData();
            }
        }
コード例 #2
0
        private void 新建ToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            工装总成信息 form = new 工装总成信息(0, "", true, m_authFlag, true);

            form.ShowDialog();

            dataGridView1.DataSource = m_serverFrockStandingBook.GetAllTable(chkIsShowDispensingScrapInfo.Checked, chkIsShowInStock.Checked, m_intGoodsID);
        }
コード例 #3
0
        private void dataGridView1_DoubleClick(object sender, EventArgs e)
        {
            int intGoodsID = Convert.ToInt32(dataGridView1.CurrentRow.Cells["物品ID"].Value);

            string strFrockNumber = dataGridView1.CurrentRow.Cells["工装编号"].Value.ToString();

            工装总成信息 form = new 工装总成信息(intGoodsID, strFrockNumber, true, m_authFlag, false);

            form.ShowDialog();
            RefrshData();
            PositioningRecord(strFrockNumber, intGoodsID);
        }
コード例 #4
0
        private void dataGridView1_DoubleClick(object sender, EventArgs e)
        {
            int intGoodsID = Convert.ToInt32(dataGridView1.CurrentRow.Cells["物品ID"].Value);

            string strFrockNumber = dataGridView1.CurrentRow.Cells["工装编号"].Value.ToString();

            工装总成信息 form = new 工装总成信息(intGoodsID, strFrockNumber, true, m_authFlag, false);

            form.ShowDialog();

            dataGridView1.DataSource = m_serverFrockStandingBook.GetAllTable(chkIsShowDispensingScrapInfo.Checked, chkIsShowInStock.Checked, m_intGoodsID);
            PositioningRecord(strFrockNumber, intGoodsID);
        }
コード例 #5
0
        private void dgvDispensingInfo_DoubleClick(object sender, EventArgs e)
        {
            if (dgvDispensingInfo.Rows.Count == 0)
            {
                return;
            }

            工装总成信息 form = new 工装总成信息(Convert.ToInt32(dgvDispensingInfo.CurrentRow.Cells["物品ID"].Value),
                                     dgvDispensingInfo.CurrentRow.Cells["工装编号"].Value.ToString(), false, m_strAuthFlag, false);

            form.ShowDialog();

            dgvDispensingInfo.DataSource = m_serverFrockStandingBook.GetSplitCharging(
                Convert.ToInt32(txtName.Tag), txtFrockNumber.Text, chkIsShowDispensing.Checked);
        }
コード例 #6
0
        private void 查看ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            int goodsID = 0;

            string frockNumber = "";

            if (!SeparateString(treeView1.SelectedNode.Tag.ToString(), out goodsID, out frockNumber))
            {
                return;
            }
            else
            {
                工装总成信息 form = new 工装总成信息(goodsID, frockNumber, true, m_authFlag, false);
                form.ShowDialog();
            }
        }