private void btnAskDepartment_Click(object sender, EventArgs e)
        {
            FormQueryInfo dialog = QueryInfoDialog.GetDepartment();

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                txtAskDepartment.Text = dialog.GetStringDataItem("部门名称");
            }
        }
        private void btnFindProvider_Click(object sender, EventArgs e)
        {
            FormQueryInfo form = QueryInfoDialog.GetProviderInfoDialog();

            if (form.ShowDialog() == DialogResult.OK)
            {
                txtProvider.Text = form.GetDataItem("供应商编码").ToString();
            }
        }
        private void btnProvider_Click(object sender, EventArgs e)
        {
            m_formProvider = QueryInfoDialog.GetProviderInfoDialog();

            if (m_formProvider.ShowDialog() == DialogResult.OK)
            {
                txtProvider.Text = m_formProvider.GetStringDataItem("供应商编码");
            }
        }
        private void btnBatchNo_Click(object sender, EventArgs e)
        {
            FormQueryInfo form = QueryInfoDialog.GetWorkShopBatchNoInfo(Convert.ToInt32(txtCode.Tag), m_lnqWSCode.WSCode);

            if (form.ShowDialog() == DialogResult.OK)
            {
                txtBatchNo.Text = (string)form.GetDataItem("批次号");
            }
        }
예제 #5
0
        private void btnFindTesting_Click(object sender, EventArgs e)
        {
            FormQueryInfo form = QueryInfoDialog.GetUnProductTestingSingleDialog();

            if (form != null && form.ShowDialog() == DialogResult.OK)
            {
                lnklbSingleBill.Text = form.GetDataItem("单据号").ToString();
            }
        }
예제 #6
0
        private void btnFindProvider_Click(object sender, EventArgs e)
        {
            m_formProvider = QueryInfoDialog.GetProviderInfoDialog();

            if (m_formProvider.ShowDialog() == DialogResult.OK)
            {
                txtProvider.Text = m_formProvider.GetStringDataItem("供应商编码");
                txtBuyer.Text    = m_serverProviderDuty.GetProviderPrincipal(txtProvider.Text);
            }
        }
예제 #7
0
        private void btnFindOrderForm_Click(object sender, EventArgs e)
        {
            FormQueryInfo form = QueryInfoDialog.GetBargainInfoDialog();

            if (form != null && DialogResult.OK == form.ShowDialog())
            {
                txtBargainNumber.Text = form.GetDataItem("合同号").ToString();
                txtProvider.Text      = form.GetDataItem("供货单位").ToString();
            }
        }
        private void btnFindCode_Click(object sender, EventArgs e)
        {
            FormQueryInfo form = QueryInfoDialog.GetAllGoodsInfo();

            if (form != null && form.ShowDialog() == DialogResult.OK)
            {
                //txtGoodsCode.Text = form.GetDataItem("图号型号").ToString();
                //txtGoodsName.Text = form.GetDataItem("物品名称").ToString();
                //txtSpec.Text = form.GetDataItem("规格").ToString();
            }
        }
        /// <summary>
        /// 查找物品
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnFindCode_Click(object sender, EventArgs e)
        {
            if (txtAssociateID.Text.Trim() == "")
            {
                MessageBox.Show("请先选择关联单号", "提示");
                return;
            }

            if (m_operateMode != CE_BusinessOperateMode.仓库核实)
            {
                FormQueryInfo form = QueryInfoDialog.GetStoreGoodsInfoDialog(txtAssociateID.Text, m_strProvider, m_strStorage);

                if (form != null && form.ShowDialog() == DialogResult.OK)
                {
                    txtCode.Text            = (string)form.GetDataItem("图号型号");
                    txtCode.Tag             = (int)form.GetDataItem("物品ID");
                    txtName.Text            = (string)form.GetDataItem("物品名称");
                    txtSpec.Text            = (string)form.GetDataItem("规格");
                    txtProvider.Text        = (string)form.GetDataItem("供货单位");
                    txtProviderBatchNo.Text = (string)form.GetDataItem("供方批次");
                    txtBatchNo.Text         = (string)form.GetDataItem("批次号");

                    txtUnit.Text  = (string)form.GetDataItem("单位");
                    txtDepot.Text = (string)form.GetDataItem("物品类别名称");
                    txtDepot.Tag  = (string)form.GetDataItem("物品类别");

                    txtShelf.Text  = (string)form.GetDataItem("货架");
                    txtColumn.Text = (string)form.GetDataItem("列");
                    txtLayer.Text  = (string)form.GetDataItem("层");
                }
            }
            else if (m_operateMode != CE_BusinessOperateMode.修改)
            {
                FormQueryInfo form = QueryInfoDialog.GetOrderFormGoodsStockInfoDialog(txtAssociateID.Text, m_strStorage);

                if (form.ShowDialog() == DialogResult.OK)
                {
                    txtCode.Text     = form.GetStringDataItem("图号型号");
                    txtCode.Tag      = (int)form.GetDataItem("物品ID");
                    txtName.Text     = form.GetStringDataItem("物品名称");
                    txtSpec.Text     = form.GetStringDataItem("规格");
                    txtProvider.Text = form.GetStringDataItem("供应商");

                    txtBatchNo.Text = form.GetStringDataItem("批次号");

                    txtProviderBatchNo.Text = form.GetStringDataItem("供方批次");
                    txtUnit.Text            = form.GetStringDataItem("单位");
                    txtDepot.Text           = form.GetStringDataItem("物品类别");
                    txtShelf.Text           = form.GetStringDataItem("货架");
                    txtColumn.Text          = form.GetStringDataItem("列");
                    txtLayer.Text           = form.GetStringDataItem("层");
                }
            }
        }
예제 #10
0
        /// <summary>
        /// 查找所有零部件(非总成)编码
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnFindCode2_Click(object sender, EventArgs e)
        {
            FormQueryInfo form = QueryInfoDialog.GetAccessoryInfoDialog(cmbProductType.Text, false, false);

            if (form.ShowDialog() == DialogResult.OK)
            {
                txtCode2.Text = (string)form.GetDataItem("图号型号");
                txtName2.Text = (string)form.GetDataItem("物品名称");
                txtSpec2.Text = (string)form.GetDataItem("规格");
            }
        }
        private void btnBillNo_Click(object sender, EventArgs e)
        {
            FormQueryInfo frm = QueryInfoDialog.GetMinorPurchaseInfo();

            if (frm.ShowDialog() == DialogResult.OK)
            {
                txtAssociateBillNo.Text = (string)frm.GetDataItem("单据号");

                m_associateBillNo = txtAssociateBillNo.Text;
            }
        }
        private void btnSearch_Click(object sender, EventArgs e)
        {
            if (m_operateMode != CE_BusinessOperateMode.仓库核实)
            {
                FormQueryInfo form = QueryInfoDialog.GetOrderFormInfoDialog(m_strProvider);

                if (DialogResult.OK == form.ShowDialog())
                {
                    txtAssociateID.Text = form.GetDataItem("订单号").ToString();
                }
            }
        }
예제 #13
0
        private void btnFindCode_Click(object sender, EventArgs e)
        {
            FormQueryInfo form = QueryInfoDialog.GetProcurementMath();

            if (DialogResult.OK == form.ShowDialog())
            {
                txtMathName.Text = form.GetDataItem("公式名称").ToString();
                txtMathName.Tag  = form.GetDataItem("公式ID").ToString();
                cmbField.Text    = form.GetDataItem("计算字段").ToString();
                txtFormula.Text  = form.GetDataItem("计算公式").ToString();
            }
        }
예제 #14
0
        /// <summary>
        /// 查找物品
        /// </summary>
        /// <param name="row">选择行</param>
        /// <param name="flag">是否是本身表的零件</param>
        private void btnFindCode(DataGridViewRow row, bool flag)
        {
            FormQueryInfo form = QueryInfoDialog.GetPlanCostGoodsDialog();

            if (flag)
            {
                if (m_type == "安全库存")
                {
                    form = QueryInfoDialog.GetSafeStock();
                }
                else if (m_type == "供应商配额")
                {
                    form = QueryInfoDialog.GetGoodsLeastPackAndStock();
                }
            }

            if (form != null && form.ShowDialog() == DialogResult.OK)
            {
                for (int i = 0; i < dgvBomReject.Rows.Count; i++)
                {
                    if (dgvBomReject.Rows[i].Cells["物品ID"].Value != null &&
                        Convert.ToInt32(dgvBomReject.Rows[i].Cells["物品ID"].Value) == (int)form.GetDataItem("序号"))
                    {
                        if (MessageBox.Show("此物品有重复记录是否继续?", "提示", MessageBoxButtons.YesNo) == DialogResult.No)
                        {
                            return;
                        }
                    }
                }

                if (flag)
                {
                    row.Cells["Self图号型号"].Value = (string)form.GetDataItem("图号型号");
                    row.Cells["Self物品ID"].Value = (int)form.GetDataItem("序号");
                    row.Cells["Self物品名称"].Value = (string)form.GetDataItem("物品名称");
                    row.Cells["Self规格"].Value   = (string)form.GetDataItem("规格");

                    DataGridViewRow dr = new DataGridViewRow();
                    dgvSelfReject.Rows.Add(dr);
                }
                else
                {
                    row.Cells["图号型号"].Value = (string)form.GetDataItem("图号型号");
                    row.Cells["物品ID"].Value = (int)form.GetDataItem("序号");
                    row.Cells["物品名称"].Value = (string)form.GetDataItem("物品名称");
                    row.Cells["规格"].Value   = (string)form.GetDataItem("规格");

                    DataGridViewRow dr = new DataGridViewRow();
                    dgvBomReject.Rows.Add(dr);
                }
            }
        }
        /// <summary>
        /// 查找物品
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnFindCode_Click(object sender, EventArgs e)
        {
            if (Convert.ToBoolean(BasicInfo.BaseSwitchInfo[(int)GlobalObject.CE_SwitchName.开启车间管理模块]) && m_lnqWSCode != null && m_strStorage != "11")
            {
                FormQueryInfo form = QueryInfoDialog.GetPlanCostGoodsDialog();

                if (form.ShowDialog() == DialogResult.OK)
                {
                    txtCode.Text         = (string)form.GetDataItem("图号型号");
                    txtCode.Tag          = (int)form.GetDataItem("序号");
                    txtName.Text         = (string)form.GetDataItem("物品名称");
                    txtSpec.Text         = (string)form.GetDataItem("规格");
                    txtUnit.Text         = (string)form.GetDataItem("单位");
                    txtMaterialType.Text = (string)form.GetDataItem("物品类别名称");
                    txtMaterialType.Tag  = (string)form.GetDataItem("物品类别");
                }
            }
            else
            {
                FormQueryInfo form = QueryInfoDialog.GetStoreGoodsInfoDialog(CE_BillTypeEnum.领料退库单, true, m_strStorage);

                if (form.ShowDialog() == DialogResult.OK)
                {
                    txtCode.Text            = (string)form.GetDataItem("图号型号");
                    txtCode.Tag             = (int)form.GetDataItem("物品ID");
                    txtName.Text            = (string)form.GetDataItem("物品名称");
                    txtSpec.Text            = (string)form.GetDataItem("规格");
                    txtProvider.Text        = (string)form.GetDataItem("供货单位");
                    txtProviderBatchNo.Text = form.GetDataItem("供方批次号").ToString();

                    if (m_strReturnMode == "返修退库")
                    {
                        txtBatchNo.Text = "系统自动生成";
                    }
                    else
                    {
                        txtBatchNo.Text = (string)form.GetDataItem("批次号");
                    }

                    txtUnit.Text         = (string)form.GetDataItem("单位");
                    txtMaterialType.Text = (string)form.GetDataItem("材料类别");
                    txtMaterialType.Tag  = (string)form.GetDataItem("材料类别编码");

                    if (m_operateMode == CE_BusinessOperateMode.仓库核实)
                    {
                        txtShelf.Text  = (string)form.GetDataItem("货架");
                        txtColumn.Text = (string)form.GetDataItem("列");
                        txtLayer.Text  = (string)form.GetDataItem("层");
                    }
                }
            }
        }
예제 #16
0
        private void btnFindPurpose_Click(object sender, EventArgs e)
        {
            FormQueryInfo dialog = QueryInfoDialog.GetProductCodeStockSearchMode("");

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                txtProductCode.Text = dialog.GetStringDataItem("箱体编号");
                cmbStorage.Tag      = dialog.GetStringDataItem("库房ID").ToString();
                cmbStorage.Text     = dialog.GetStringDataItem("库房名称").ToString();
                txtProductCode.Tag  = Convert.ToInt32(dialog.GetStringDataItem("产品ID"));
                btnStockCheck.Focus();
            }
        }
        /// <summary>
        /// 获取物品信息
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnGetGoods_Click(object sender, EventArgs e)
        {
            FormQueryInfo dialog = QueryInfoDialog.GetPartInfoOfElectronFile(
                dateTimePickerST.Value.Date, dateTimePickerET.Value.AddDays(1).Date);

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                txtCode.Text    = dialog["零部件编码"];
                txtName.Text    = dialog["零部件名称"];
                txtSpec.Text    = dialog["规格"];
                txtBatchNo.Text = dialog["批次号"];
            }
        }
        private void btnFindOrderForm_Click(object sender, EventArgs e)
        {
            if (lblBillStatus.Text != "新建单据")
            {
                return;
            }

            FormQueryInfo form = QueryInfoDialog.GetProviderInfoDialog();

            if (DialogResult.OK == form.ShowDialog())
            {
                txtProvider.Text = form.GetDataItem("供应商编码").ToString();
            }
        }
        private void btnFindCode_Click(object sender, EventArgs e)
        {
            if (lblBillStatus.Text != "新建单据")
            {
                return;
            }

            FormQueryInfo form;

            if (chkPayment.Checked)
            {
                if (txtOrderForm.Text.Length == 0)
                {
                    txtOrderForm.Focus();
                    MessageDialog.ShowPromptMessage(@"请先选择订单/合同号后再进行此操作!");
                    return;
                }

                form = QueryInfoDialog.GetOrderFormGoodsDialog(txtOrderForm.Text, true);
            }
            else
            {
                form = QueryInfoDialog.GetPlanCostGoodsDialog(true);
            }

            if (form == null || form.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            else
            {
                txtCode.Text = form.GetDataItem("图号型号").ToString();
                txtName.Text = form.GetDataItem("物品名称").ToString();
                txtSpec.Text = form.GetDataItem("规格").ToString();

                View_F_GoodsPlanCost tempGoodsInfo = UniversalFunction.GetGoodsInfo(txtCode.Text, txtName.Text, txtSpec.Text);
                txtCode.Tag = tempGoodsInfo.序号;

                DataRow dr = m_serverBom.GetBomInfo(txtCode.Text.Trim(), txtName.Text.Trim());

                if (dr == null)
                {
                    txtVersion.Text = "";
                }
                else
                {
                    txtVersion.Text = dr["Version"].ToString();
                }
            }
        }
        /// <summary>
        /// 查找打印规则信息
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnFindRule_Click(object sender, EventArgs e)
        {
            FormQueryInfo dialog = QueryInfoDialog.GetBuildRuleForVehicleBarcode();

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                int buildRuleID = (int)dialog.GetDataItem("规则编号");

                txtBuildRuleID.Text = buildRuleID.ToString();
                txtProductType.Text = dialog.GetStringDataItem("产品类型名称");

                m_buildRule = m_productBarcodeServer.GetBuildRule(buildRuleID);
            }
        }
        private void btnFindCode_Click(object sender, EventArgs e)
        {
            DataTable dtGood = (DataTable)dataGridView1.DataSource;

            FormQueryInfo form = QueryInfoDialog.GetAllGoodsInfo();

            if (form != null && form.ShowDialog() == DialogResult.OK)
            {
                txtGoodsName.ReadOnly = true;
                txtGoodsCode.ReadOnly = true;
                txtSpec.ReadOnly      = true;

                txtGoodsCode.Text = form.GetDataItem("图号型号").ToString();
                txtGoodsName.Text = form.GetDataItem("物品名称").ToString();
                txtSpec.Text      = form.GetDataItem("规格").ToString();
            }
        }
        private void btnOldGoodsInfo_Click(object sender, EventArgs e)
        {
            if (txtAssociateBillNo.Text.Trim() == "")
            {
                MessageDialog.ShowPromptMessage("请先选择关联的采购申请单,再进行此操作!");
                return;
            }

            FormQueryInfo frm = QueryInfoDialog.GetMinorPurchaseList(m_associateBillNo);

            if (frm.ShowDialog() == DialogResult.OK)
            {
                txtOldGoodsCode.Text = (string)frm.GetDataItem("图号型号");
                txtOldGoodsName.Text = (string)frm.GetDataItem("物品名称");
                txtOldGoodsSpec.Text = (string)frm.GetDataItem("规格");
            }
        }
예제 #23
0
        private void btnReferenceInfo_Click(object sender, EventArgs e)
        {
            FormQueryInfo form = QueryInfoDialog.GetFrockStandingBook(txtName.Tag == null ? 0 : Convert.ToInt32(txtName.Tag));

            if (form != null && form.ShowDialog() == DialogResult.OK)
            {
                S_FrockStandingBook lnqTemp =
                    m_serverFrockStandingBook.GetBookInfo(m_lnqStandingBook == null ?
                                                          Convert.ToInt32(form.GetDataItem("物品ID")) : m_lnqStandingBook.GoodsID,
                                                          form.GetDataItem("工装编号").ToString());

                View_F_GoodsPlanCost tempGoodsLnq       = UniversalFunction.GetGoodsInfo(Convert.ToInt32(lnqTemp.GoodsID));
                View_F_GoodsPlanCost tempParentGoodsLnq = UniversalFunction.GetGoodsInfo(Convert.ToInt32(lnqTemp.ParentGoodsID));

                if (tempParentGoodsLnq != null)
                {
                    txtParentCode.Text        = tempParentGoodsLnq.图号型号;
                    txtParentName.Text        = tempParentGoodsLnq.物品名称;
                    txtParentName.Tag         = Convert.ToInt32(m_lnqStandingBook.ParentGoodsID);
                    txtParentFrockNumber.Text = m_lnqStandingBook.ParentFrockNumber;
                }

                if (tempGoodsLnq == null)
                {
                    MessageDialog.ShowPromptMessage("系统中无此物品信息");
                }

                txtCode.Text = tempGoodsLnq.图号型号;
                txtName.Text = tempGoodsLnq.物品名称;
                txtName.Tag  = Convert.ToInt32(lnqTemp.GoodsID);

                numIdentifyCycle.Value     = Convert.ToDecimal(lnqTemp.IdentifyCycle);
                txtApplyToDevice.Text      = lnqTemp.ApplyToDevice;
                txtApplyToProcess.Text     = lnqTemp.ApplyToProcess;
                txtApplyToProductCode.Text = lnqTemp.ApplyToProductCode;
                txtApplyToProductName.Text = lnqTemp.ApplyToProductName;
                txtDesigner.Text           = lnqTemp.Designer;
                cmbApplyToWorkShop.Text    = lnqTemp.ApplyToWorkShop;

                if (lnqTemp.IdentifyCycleType != null)
                {
                    rbTypeCount.Checked = (bool)(lnqTemp.IdentifyCycleType == rbTypeCount.Text);
                    rbTypeTime.Checked  = (bool)(lnqTemp.IdentifyCycleType == rbTypeTime.Text);
                }
            }
        }
예제 #24
0
        private void cmd与会资源_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (cmd与会资源.SelectedIndex > 0)
            {
                if (!dtpkBeginTime.Checked || !dtpkEndTime.Checked)
                {
                    MessageDialog.ShowPromptMessage("请先确定会议起止时间后再选择会议资源");
                    cmd与会资源.SelectedIndex = 0;
                    return;
                }

                FormQueryInfo dialog = QueryInfoDialog.GetMeetingResourceDialog(dtpkBeginTime.Value, dtpkEndTime.Value);

                if (dialog.ShowDialog() == DialogResult.OK)
                {
                    if (!(bool)dialog.GetDataItem("是共享类资源") && dialog["资源空闲"] == "使用中")
                    {
                        MessageDialog.ShowPromptMessage(
                            string.Format("【{0}】资源已经被占用,只允许选择状态为“空闲”的资源", dialog["资源名称"]));

                        cmd与会资源.SelectedIndex = 0;

                        return;
                    }

                    StringBuilder sb = new StringBuilder();

                    sb.Append(dialog["资源名称"]);

                    cmd与会资源.Items[0]      = sb.ToString(0, sb.Length);
                    cmd与会资源.SelectedIndex = 0;

                    m_meetingData.会议资源 = cmd与会资源.Items[0].ToString();

                    View_PRJ_Resource resource = new View_PRJ_Resource();

                    resource.资源编号   = (int)dialog.GetDataItem("资源编号");
                    resource.资源类别名称 = dialog["资源类别名称"];
                    resource.资源名称   = dialog["资源名称"];

                    m_meetingData.会议资源对象集 = new List <View_PRJ_Resource>();
                    m_meetingData.会议资源对象集.Add(resource);
                }
            }
        }
        private void btnFindOrderForm_Click(object sender, EventArgs e)
        {
            if (lblBillStatus.Text != OrdinaryInDepotBillStatus.新建单据.ToString())
            {
                return;
            }

            FormQueryInfo form = QueryInfoDialog.GetOrderFormInfoDialog(CE_BillTypeEnum.普通入库单);

            if (DialogResult.OK == form.ShowDialog())
            {
                txtOrderFormNumber.Text = form.GetDataItem("订单号").ToString();
                txtProvider.Text        = form.GetDataItem("供货单位").ToString();

                IOrderFormInfoServer orderFormServer = ServerModuleFactory.GetServerModule <IOrderFormInfoServer>();
                IBargainInfoServer   bargainServer   = ServerModuleFactory.GetServerModule <IBargainInfoServer>();
            }
        }
        private void btnFindGoods_Click(object sender, EventArgs e)
        {
            FormQueryInfo form = QueryInfoDialog.GetPlanCostGoodsDialog();

            form.ShowColumns = new string[] { "图号型号", "物品名称", "规格", "物品类别名称", "序号", "单位" };

            if (form != null && DialogResult.OK == form.ShowDialog())
            {
                txtCode.Text    = form.GetDataItem("图号型号").ToString();
                txtName.Text    = form.GetDataItem("物品名称").ToString();
                txtSpec.Text    = form.GetDataItem("规格").ToString();
                txtName.Tag     = Convert.ToInt32(form.GetDataItem("序号").ToString());
                txtBatchNo.Tag  = form.GetDataItem("单位").ToString();
                txtBatchNo.Text = "";

                numPickingCount.Tag = 0;
            }
        }
예제 #27
0
        /// <summary>
        /// 查找图号型号
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnFindCode_Click(object sender, EventArgs e)
        {
            if (txtBargainNumber.Text.Length == 0)
            {
                txtBargainNumber.Focus();
                MessageDialog.ShowPromptMessage("请先选择合同号后再进行此操作!");
                return;
            }

            FormQueryInfo form = QueryInfoDialog.GetOrderFormGoodsDialog(txtProvider.Text);

            if (form != null && form.ShowDialog() == DialogResult.OK)
            {
                txtCode.Tag  = (int)form.GetDataItem("序号");
                txtCode.Text = form.GetDataItem("图号型号").ToString();
                txtName.Text = form.GetDataItem("物品名称").ToString();
                txtSpec.Text = form.GetDataItem("规格").ToString();
            }
        }
예제 #28
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("供方批次");
                }
            }
        }
예제 #29
0
        private void btnFindCode_Click(object sender, EventArgs e)
        {
            FormQueryInfo form = QueryInfoDialog.GetPlanCostGoodsDialog(true);

            if (form != null && form.ShowDialog() == DialogResult.OK)
            {
                txtCode.Text = form.GetDataItem("图号型号").ToString();
                txtName.Text = form.GetDataItem("物品名称").ToString();
                txtSpec.Text = form.GetDataItem("规格").ToString();

                View_F_GoodsPlanCost info = m_basicGoodsServer.GetGoodsInfo(txtCode.Text, txtName.Text, txtSpec.Text, out m_error);

                if (info != null)
                {
                    cmbUnit.SelectedValue = info.单位ID;
                    txtMaterialType.Text  = info.物品类别名称;
                    txtMaterialType.Tag   = info.物品类别;
                }
            }
        }
        private void btnFindOrderForm_Click(object sender, EventArgs e)
        {
            FormQueryInfo form = QueryInfoDialog.GetOrderFormInfoDialog(CE_BillTypeEnum.样品确认申请单);

            if (DialogResult.OK == form.ShowDialog())
            {
                txtCode.Text      = "";
                txtName.Text      = "";
                txtSpec.Text      = "";
                txtVersion.Text   = "";
                txtOrderForm.Text = form.GetDataItem("订单号").ToString();
                txtProvider.Text  = form.GetDataItem("供货单位").ToString();

                View_B_OrderFormInfo lnqOrderForm = m_serverOrderFormInfo.GetOrderFormInfo(txtOrderForm.Text);

                View_B_BargainInfo lnqBargain = m_serverBargainInfo.GetBargainInfo(lnqOrderForm.合同号);

                chkIsOutsourcing.Checked = lnqBargain.是否委外合同;
            }
        }