Ejemplo n.º 1
0
        /// <summary>
        /// 显示供应商查询

        /// </summary>
        /// <param name="p_strSearchCon">查询条件</param>
        internal void m_mthShowVendor(string p_strSearchCon)
        {
            if (m_ctlQueryVendor == null)
            {
                if (m_objViewer.m_dtbVendor == null)
                {
                    m_mthGetVendor(out m_objViewer.m_dtbVendor);
                }
                m_dtbVendor      = m_objViewer.m_dtbVendor;
                m_ctlQueryVendor = new ctlQueryVendor(m_dtbVendor);
                m_objViewer.Controls.Add(m_ctlQueryVendor);
            }

            int X = m_objViewer.m_txtBidCompany.Location.X - (m_objViewer.m_txtBidCompany.Location.X + m_ctlQueryVendor.Size.Width - m_objViewer.Size.Width);
            int Y = m_objViewer.m_txtBidCompany.Location.Y + m_objViewer.m_txtBidCompany.Size.Height;

            m_ctlQueryVendor.Location = new System.Drawing.Point(X, Y);

            m_ctlQueryVendor.Size = new System.Drawing.Size(m_ctlQueryVendor.Size.Width,
                                                            m_ctlQueryVendor.Size.Height - (Y + m_ctlQueryVendor.Size.Height - m_objViewer.Size.Height));

            m_ctlQueryVendor.ReturnInfo += new ReturnVendorInfo(QueryVendor_ReturnInfo);
            m_ctlQueryVendor.BringToFront();
            m_ctlQueryVendor.m_mthSetSearchText(p_strSearchCon);
            m_ctlQueryVendor.Visible = true;
            m_ctlQueryVendor.Focus();
        }
        /// <summary>
        /// 供货商

        /// </summary>
        /// <param name="p_strSearchCon"></param>
        internal void m_mthGetVendor(string p_strSearchCon)
        {
            if (m_ctlQueryVendor == null)
            {
                m_ctlQueryVendor = new ctlQueryVendor(m_objVendorTable);
                this.m_objViewer.Controls.Add(m_ctlQueryVendor);

                int X = this.m_objViewer.panel1.Location.X + this.m_objViewer.m_txtVendor.Location.X;
                int Y = this.m_objViewer.panel1.Location.Y + this.m_objViewer.m_txtVendor.Location.Y + this.m_objViewer.m_txtVendor.Size.Height;

                m_ctlQueryVendor.Location    = new System.Drawing.Point(X, Y);
                m_ctlQueryVendor.ReturnInfo += new ReturnVendorInfo(m_ctlQueryVendor_ReturnInfo);
            }
            m_ctlQueryVendor.BringToFront();
            m_ctlQueryVendor.m_mthSetSearchText(p_strSearchCon);
            m_ctlQueryVendor.Visible = true;
            m_ctlQueryVendor.Focus();
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 显示供应商查询
        /// </summary>
        /// <param name="p_strSearchCon">查询条件</param>
        internal void m_mthShowVendor(string p_strSearchCon)
        {
            if (m_ctlQueryVendor == null)
            {
                m_mthGetVendor(out m_dtbVendor);
                m_ctlQueryVendor = new ctlQueryVendor(m_dtbVendor);
                m_objViewer.Controls.Add(m_ctlQueryVendor);

                int X = m_objViewer.m_txtReceiveDept.Location.X;
                int Y = m_objViewer.m_txtReceiveDept.Location.Y + m_objViewer.m_txtReceiveDept.Size.Height;

                m_ctlQueryVendor.Location    = new System.Drawing.Point(X, Y);
                m_ctlQueryVendor.ReturnInfo += new ReturnVendorInfo(QueryVendor_ReturnInfo);
            }
            m_ctlQueryVendor.BringToFront();
            m_ctlQueryVendor.m_mthSetSearchText(p_strSearchCon);
            m_ctlQueryVendor.Visible = true;
            m_ctlQueryVendor.Focus();
        }
Ejemplo n.º 4
0
        /// <summary>
        /// 厂家查询
        /// </summary>
        /// <param name="p_strSearchCon"></param>
        internal void m_mthShowManufacturer(string p_strSearchCon)
        {
            if (m_ctlQueryManufacturer == null)
            {
                m_ctlQueryManufacturer = new ctlQueryVendor(this.m_objViewer.m_dtProduct);
                m_objViewer.Controls.Add(m_ctlQueryManufacturer);

                int X = m_objViewer.txtProduct.Location.X;
                int Y = m_objViewer.txtProduct.Location.Y + m_objViewer.txtProduct.Size.Height;

                m_ctlQueryManufacturer.Location      = new System.Drawing.Point(X, Y + 40);
                m_ctlQueryManufacturer.ReturnInfo   += new ReturnVendorInfo(QueryManufacturer_ReturnInfo);
                m_ctlQueryManufacturer.CancelResult += new VendorCancelAndReturn(m_ctlQueryManufacturer_CancelResult);
            }
            m_ctlQueryManufacturer.BringToFront();
            m_ctlQueryManufacturer.m_mthSetSearchText(p_strSearchCon);
            m_ctlQueryManufacturer.Visible = true;
            m_ctlQueryManufacturer.Focus();
        }