Exemplo n.º 1
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;
            }
        }
Exemplo n.º 2
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);
            }
        }