Example #1
0
        private void btnFindCode_Click(object sender, EventArgs e)
        {
            if (m_operateMode != OperateMode.仓库核实)
            {
                FormQueryInfo form = QueryInfoDialog.GetPlanCostGoodsDialogSift(" and AttributeID = "
                                                                                + (int)CE_GoodsAttributeName.自制件 + " and AttributeValue = '" + bool.TrueString + "'");

                if (form != null && form.ShowDialog() == DialogResult.OK)
                {
                    txtCode.Text = form.GetDataItem("图号型号").ToString();
                    txtName.Text = form.GetDataItem("物品名称").ToString();
                    txtSpec.Text = form.GetDataItem("规格").ToString();
                    txtUnit.Text = form.GetStringDataItem("单位");
                    txtCode.Tag  = form.GetDataItem("序号");
                    //txtProvider.Text = form.GetStringDataItem("供应商");
                    txtBatchNo.Text         = form.GetStringDataItem("批次号");
                    txtProviderBatchNo.Text = form.GetStringDataItem("供方批次");
                }
            }
        }
Example #2
0
        /// <summary>
        /// 查询图号
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnFindCode_Click(object sender, EventArgs e)
        {
            if (lblBillStatus.Text != "新建单据")
            {
                return;
            }

            FormQueryInfo form = QueryInfoDialog.GetPlanCostGoodsDialogSift(" and AttributeID = "
                                                                            + (int)CE_GoodsAttributeName.自制件 + " and AttributeValue = '" + bool.TrueString + "'");

            if (form != null && form.ShowDialog() == DialogResult.OK)
            {
                txtCode.Text         = form.GetDataItem("图号型号").ToString();
                txtName.Text         = form.GetDataItem("物品名称").ToString();
                txtSpec.Text         = form.GetDataItem("规格").ToString();
                txtUnit.Text         = form.GetStringDataItem("单位");
                txtCode.Tag          = form.GetDataItem("序号");
                txtMaterialType.Text = form.GetStringDataItem("物品类别");
            }
        }