private void btnSelect_Click(object sender, EventArgs e)
        {
            if (InValue == 0)
            {
                SelectMaterialType SelectMaterialType = new SelectMaterialType();
                SelectMaterialType.MaterialTypeID   = treeView1.SelectedNode.Tag.ToString();
                SelectMaterialType.MaterialTypeName = treeView1.SelectedNode.Text;

                this.Tag = SelectMaterialType;
            }

            //if (InValue == 1)
            //{
            //    frmDepotMaterialInOutSum.frmdepotmaterialInOutSum.GetClass(treeView1.SelectedNode.Tag.ToString(), treeView1.SelectedNode.Text);
            //}

            //if (InValue == 2)
            //{
            //    frmDepotMaterialTypeInOutSum.frmdepotmaterialTypeInOutSum.GetClass(treeView1.SelectedNode.Tag.ToString(), treeView1.SelectedNode.Text);
            //}

            //if (InValue == 3)
            //{
            //    frmDepotMaterialSum.frmdepotMaterialSum.GetClass(treeView1.SelectedNode.Tag.ToString(), treeView1.SelectedNode.Text);
            //}

            this.Close();
        }
示例#2
0
        private void btnSelectMaterialType_Click(object sender, EventArgs e)
        {
            frmSelectType frmSelectType = new frmSelectType();

            frmSelectType.InValue = 0;
            frmSelectType.ShowDialog();

            if (frmSelectType.Tag != null)
            {
                SelectMaterialType SelectMaterialType = frmSelectType.Tag as SelectMaterialType;

                txtMaterialType.Text = SelectMaterialType.MaterialTypeName;
                txtMaterialType.Tag  = SelectMaterialType.MaterialTypeID;
            }
        }
示例#3
0
        //选择物料分类查询
        private void btnMaterialClassSelect_Click(object sender, EventArgs e)
        {
            frmSelectType frmSelectType = new frmSelectType();

            frmSelectType.InValue = 0;
            frmSelectType.ShowDialog();

            if (frmSelectType.Tag != null)
            {
                SelectMaterialType SelectMaterialType = frmSelectType.Tag as SelectMaterialType;

                txtClass.Text = SelectMaterialType.MaterialTypeName;
                txtClass.Tag  = SelectMaterialType.MaterialTypeID;

                //绑定物料明细数据
                BindMaterialData(txtSelectGuid.Text);
            }
        }