Beispiel #1
0
        public 工装验证报告(string djh)
        {
            InitializeComponent();

            m_billNoControl = new BillNumberControl(CE_BillTypeEnum.工装验证报告单, m_serverFrock);

            if (djh == "")
            {
                lblBillNo.Text       = m_billNoControl.GetNewBillNo();
                lblBillStatus.Text   = "新建单据";
                chbIsInStock.Visible = false;
            }
            else
            {
                lblBillNo.Text      = djh;
                cmbBillType.Enabled = false;
            }

            m_lnqFrock = m_serverFrock.GetBill(lblBillNo.Text);
            dataGridView1.DataSource = m_serverFrock.GetAttachedTable(lblBillNo.Text, "检验");
            dataGridView2.DataSource = m_serverFrock.GetAttachedTable(lblBillNo.Text, "验证");

            ShowMessage();
            ControlWidget(lblBillStatus.Text);

            if (cmbBillType.Text != "入库检验")
            {
                chbIsInStock.Visible = false;
            }

            if (m_lnqFrock != null)
            {
                DataRow drInfo = m_serverFrockStandingBook.GetInDepotBillInfo(m_lnqFrock.FrockNumber);

                if (drInfo != null)
                {
                    txtProposer.Text      = drInfo["申请人"].ToString();
                    txtProposer.Tag       = drInfo["申请人工号"].ToString();
                    txtProviderCode.Text  = drInfo["供应商编码"].ToString();
                    txtProviderName.Text  = drInfo["供应商简称"].ToString();
                    txtDesigner.Text      = drInfo["设计人"].ToString();
                    txtDesigner.Tag       = drInfo["设计人工号"].ToString();
                    txtConnectNumber.Text = drInfo["关联单号"].ToString();
                }
            }

            if (lblBillStatus.Text == "单据已完成")
            {
                toolStrip1.Visible = false;
            }
        }
Beispiel #2
0
        public 工装总成信息(int goodsID, string frocknumber, bool flag, AuthorityFlag m_authFlag, bool addflag)
        {
            InitializeComponent();
            m_strAuthFlag = m_authFlag;

            FaceAuthoritySetting.SetEnable(this.Controls, m_authFlag);
            FaceAuthoritySetting.SetVisibly(this.toolStrip1, m_authFlag);
            toolStrip1.Visible = true;

            lbScarpPersonnel.Text = "";
            lbScarpTime.Text      = "";

            if (!flag)
            {
                labelTitle.Text    = "工装分装台帐信息";
                this.StartPosition = FormStartPosition.WindowsDefaultLocation;
                tabControl1.TabPages.RemoveAt(1);
            }
            else
            {
                labelTitle.Text = "工装总装台帐信息";
            }

            if (addflag)
            {
                txtName.ShowResultForm  = true;
                txtFrockNumber.Text     = m_serverFrockStandingBook.GetNewFrockNumber();
                txtFrockNumber.ReadOnly = false;

                if (goodsID != 0 && frocknumber != "")
                {
                    txtParentFrockNumber.Text = frocknumber;
                    F_GoodsPlanCost lnqGoodsInfo = m_serverBasicGoods.GetGoodsInfo(goodsID);
                    txtParentCode.Text = lnqGoodsInfo.GoodsCode;
                    txtParentName.Text = lnqGoodsInfo.GoodsName;
                    txtParentName.Tag  = goodsID;
                }
            }
            else
            {
                txtName.ShowResultForm  = false;
                txtFrockNumber.ReadOnly = true;

                DataRow drInfo = m_serverFrockStandingBook.GetInDepotBillInfo(frocknumber);

                if (drInfo != null)
                {
                    txtProposer.Text     = drInfo["申请人"].ToString();
                    txtProposer.Tag      = drInfo["申请人工号"].ToString();
                    txtProviderCode.Text = drInfo["供应商编码"].ToString();
                    txtProviderName.Text = drInfo["供应商简称"].ToString();
                    txtDesigner.Text     = drInfo["设计人"].ToString();
                    txtDesigner.Tag      = drInfo["设计人工号"].ToString();
                }

                m_lnqStandingBook = m_serverFrockStandingBook.GetBookInfo(goodsID, frocknumber);
            }

            ShowMessage();
        }