Exemplo n.º 1
0
        /// <summary>
        /// 显示药品字典最小元素信息查询窗体
        /// </summary>
        /// <param name="p_strSearchCon">查询条件</param>
        internal void m_mthShowQueryMedicineForm(string p_strSearchCon)
        {
            if (m_ctlQueryMedicint == null)
            {
                if (m_objViewer.m_dtbMedicineInfo == null || m_objViewer.m_dtbMedicineInfo.Rows.Count == 0)
                {
                    clsPub.m_mthGetMedBaseInfo(m_objViewer.m_cboExportDept.SelectItemValue, out m_objViewer.m_dtbMedicineInfo);
                }
                m_ctlQueryMedicint = new ctlQueryMedicintLeastElement(m_objViewer.m_dtbMedicineInfo);
                m_objViewer.Controls.Add(m_ctlQueryMedicint);

                int X = 0;
                int Y = 0;
                X = m_objViewer.m_txtMedName.Location.X - 10;
                Y = m_objViewer.m_txtMedName.Location.Y + m_objViewer.m_txtMedName.Height + 20;
                m_ctlQueryMedicint.Location = new System.Drawing.Point(X, Y);
                intX                                = m_objViewer.Location.X;
                intY                                = m_objViewer.Location.Y;
                m_objViewer.Size                    = new System.Drawing.Size(930, 500);
                m_objViewer.Location                = new System.Drawing.Point(50, intY);
                m_ctlQueryMedicint.ReturnInfo      += new ReturnMedicineInfo(frmQueryForm_ReturnInfo);
                m_ctlQueryMedicint.RefreshMedicine += new RefreshMedicineInfo(m_ctlQueryMedicint_RefreshMedicine);
                m_ctlQueryMedicint.VisibleChanged  += new EventHandler(m_ctlQueryMedicint_VisibleChanged);
            }
            m_ctlQueryMedicint.Visible = true;
            m_ctlQueryMedicint.BringToFront();
            m_ctlQueryMedicint.Focus();
            m_ctlQueryMedicint.m_mthSetSearchText(p_strSearchCon);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 显示药品字典最小元素信息查询窗体
        /// </summary>
        /// <param name="p_strSearchCon">查询条件</param>
        /// <param name="p_dtbMedicint">字典内容</param>
        internal void m_mthShowQueryMedicineForm(string p_strSearchCon, DataTable p_dtbMedicint)
        {
            System.Windows.Forms.DataGridViewCell cCell = this.m_objViewer.m_dtgvMedicineDetail.CurrentCell;

            System.Drawing.Rectangle rect =
                m_objViewer.m_dtgvMedicineDetail.GetCellDisplayRectangle(cCell.ColumnIndex,
                                                                         cCell.RowIndex, true);

            if (m_ctlQueryMedicint == null)
            {
                m_ctlQueryMedicint = new ctlQueryMedicintLeastElement(p_dtbMedicint);
                m_objViewer.Controls.Add(m_ctlQueryMedicint);

                m_ctlQueryMedicint.ReturnInfo      += new ReturnMedicineInfo(frmQueryForm_ReturnInfo);
                m_ctlQueryMedicint.RefreshMedicine += new RefreshMedicineInfo(m_ctlQueryMedicint_RefreshMedicine);
            }
            m_ctlQueryMedicint.Location = new System.Drawing.Point(rect.X + m_objViewer.m_dtgvMedicineDetail.Location.X,
                                                                   rect.Y + m_objViewer.m_dtgvMedicineDetail.Location.Y + rect.Height);
            if ((m_objViewer.Size.Height - m_ctlQueryMedicint.Location.Y) < m_ctlQueryMedicint.Size.Height)
            {
                m_ctlQueryMedicint.Location = new System.Drawing.Point(rect.X + m_objViewer.m_dtgvMedicineDetail.Location.X,
                                                                       rect.Y + m_objViewer.m_dtgvMedicineDetail.Location.Y - m_ctlQueryMedicint.Size.Height);
            }

            m_ctlQueryMedicint.Visible = true;
            m_ctlQueryMedicint.BringToFront();
            m_ctlQueryMedicint.Focus();
            m_ctlQueryMedicint.m_mthSetSearchText(p_strSearchCon);
        }
Exemplo n.º 3
0
        /// <summary>
        /// 药品名称
        /// </summary>
        /// <param name="p_strMedName"></param>
        internal void m_mthShowMedName(string p_strMedName)
        {
            //dt = new DataTable();
            //long lng = m_objDomain.m_mthShowMedName(p_strMedName, out dt);
            if (m_ctlMedQuery == null)
            {
                if (dt == null || dt.Rows.Count == 0)
                {
                    m_mthGetMidicine();
                }
                this.m_ctlMedQuery = new ctlQueryMedicintLeastElement(dt);
                this.m_objViewer.Controls.Add(m_ctlMedQuery);

                int X = this.m_objViewer.m_txtMedicineName.Location.X - 300;
                int Y = this.m_objViewer.m_txtMedicineName.Location.Y + this.m_objViewer.m_txtMedicineName.Size.Height + 46;
                m_ctlMedQuery.Location = new Point(X, Y);

                m_ctlMedQuery.ReturnInfo      += new ReturnMedicineInfo(m_ctlRetureInfo);
                m_ctlMedQuery.CancelResult    += new MecicineCancelAndReturn(m_ctlQueryMedicint_CancelResult);
                m_ctlMedQuery.RefreshMedicine += new RefreshMedicineInfo(m_ctlMedQuery_RefreshMedicine);
            }
            m_ctlMedQuery.Visible = true;
            m_ctlMedQuery.BringToFront();
            m_ctlMedQuery.Focus();
            m_ctlMedQuery.m_mthSetSearchText(p_strMedName);
        }
Exemplo n.º 4
0
        internal void m_mthShowMedince(string strMedid)
        {
            if (m_ctlMedQuery == null)
            {
                if (dt == null || dt.Rows.Count == 0)
                {
                    m_mthGetMedicine();
                }
                this.m_objViewer.m_dtMedince = dt;
                this.m_ctlMedQuery           = new ctlQueryMedicintLeastElement(dt);
                this.m_objViewer.Controls.Add(m_ctlMedQuery);

                int X = this.m_objViewer.m_txtMedicineCode.Location.X - 450;
                int Y = this.m_objViewer.m_txtMedicineCode.Location.Y + this.m_objViewer.m_txtMedicineCode.Size.Height + 45;
                m_ctlMedQuery.Location = new Point(X, Y);

                m_ctlMedQuery.ReturnInfo      += new ReturnMedicineInfo(m_ctlRetureInfo);
                m_ctlMedQuery.CancelResult    += new MecicineCancelAndReturn(m_ctlQueryMedicint_CancelResult);
                m_ctlMedQuery.RefreshMedicine += new RefreshMedicineInfo(m_ctlMedQuery_RefreshMedicine);
            }
            m_ctlMedQuery.Visible = true;
            m_ctlMedQuery.BringToFront();
            m_ctlMedQuery.Focus();
            m_ctlMedQuery.m_mthSetSearchText(strMedid);
        }
Exemplo n.º 5
0
        public void m_mthShowMedince(string strMedid)
        {
            if (string.IsNullOrEmpty(this.m_objViewer.txtStoreroom.Value))
            {
                MessageBox.Show(this.m_objViewer, "请先选择药房。", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                return;
            }
            //DataTable dt;
            //long lngRes = objSvc.m_lngGetBaseMedicine(m_objViewer.m_blnForDrugStore,strMedid, this.m_objViewer.txtStoreroom.Value.ToString(), out dt);
            if (m_ctlMedQuery == null)
            {
                if (dtMedName == null || dtMedName.Rows.Count == 0)
                {
                    m_mthGetMedicine();
                }
                this.m_ctlMedQuery = new ctlQueryMedicintLeastElement(dtMedName);
                this.m_objViewer.Controls.Add(m_ctlMedQuery);

                int X = this.m_objViewer.m_txtMedicineCode.Location.X + 2;
                int Y = this.m_objViewer.m_txtMedicineCode.Location.Y + this.m_objViewer.m_txtMedicineCode.Size.Height + 41;
                m_ctlMedQuery.Location = new Point(X, Y);

                m_ctlMedQuery.ReturnInfo      += new ReturnMedicineInfo(m_ctlRetureInfo);
                m_ctlMedQuery.CancelResult    += new MecicineCancelAndReturn(m_ctlQueryMedicint_CancelResult);
                m_ctlMedQuery.RefreshMedicine += new RefreshMedicineInfo(m_ctlMedQuery_RefreshMedicine);
            }
            m_ctlMedQuery.Visible = true;
            m_ctlMedQuery.BringToFront();
            m_ctlMedQuery.Focus();
            m_ctlMedQuery.m_mthSetSearchText(strMedid);
        }
Exemplo n.º 6
0
        /// <summary>
        /// 显示药品字典最小元素信息查询窗体

        /// </summary>
        /// <param name="p_strSearchCon">查询条件</param>
        internal void m_mthShowQueryMedicineForm(string p_strSearchCon)
        {
            if (m_ctlQueryMedicint == null)
            {
                if (m_objViewer.m_dtbMedicinDict == null)
                {
                    m_mthGetMedicineInfo();
                }
                m_ctlQueryMedicint = new ctlQueryMedicintLeastElement(m_objViewer.m_dtbMedicinDict);
                m_objViewer.Controls.Add(m_ctlQueryMedicint);

                int X = 0;
                int Y = 0;
                X = m_objViewer.m_txtMedicineCode.Location.X;
                Y = m_objViewer.m_txtMedicineCode.Location.Y + m_objViewer.m_txtMedicineCode.Size.Height;

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

                m_ctlQueryMedicint.ReturnInfo += new ReturnMedicineInfo(frmQueryForm_ReturnInfo);
            }

            m_ctlQueryMedicint.Visible = true;
            m_ctlQueryMedicint.BringToFront();
            m_ctlQueryMedicint.Focus();
            m_ctlQueryMedicint.m_mthSetSearchText(p_strSearchCon);
        }
Exemplo n.º 7
0
        /// <summary>
        /// 显示药品字典最小元素信息查询窗体
        /// </summary>
        /// <param name="p_strSearchCon">查询条件</param>
        internal void m_mthShowQueryMedicineForm(string p_strSearchCon)
        {
            if (m_ctlQueryMedicint == null)
            {
                m_ctlQueryMedicint = new ctlQueryMedicintLeastElement(m_objViewer.m_dtbMedicinDict);
                m_objViewer.Controls.Add(m_ctlQueryMedicint);

                m_ctlQueryMedicint.Location         = new System.Drawing.Point(200, 38);
                m_ctlQueryMedicint.ReturnInfo      += new ReturnMedicineInfo(frmQueryForm_ReturnInfo);
                m_ctlQueryMedicint.RefreshMedicine += new RefreshMedicineInfo(m_ctlQueryMedicint_RefreshMedicine);
            }
            m_ctlQueryMedicint.Visible = true;
            m_ctlQueryMedicint.BringToFront();
            m_ctlQueryMedicint.Focus();
            m_ctlQueryMedicint.m_mthSetSearchText(p_strSearchCon);
        }
Exemplo n.º 8
0
        /// <summary>
        /// 显示药品字典最小元素信息查询窗体
        /// </summary>
        /// <param name="p_strSearchCon">查询条件</param>
        internal void m_mthShowQueryMedicineForm(string p_strSearchCon)
        {
            if (m_ctlQueryMedicint == null)
            {
                m_ctlQueryMedicint = new ctlQueryMedicintLeastElement(this.m_dtbMedicinDict);
                this.Controls.Add(m_ctlQueryMedicint);
            }

            m_ctlQueryMedicint.Visible              = true;
            m_ctlQueryMedicint.Location             = new System.Drawing.Point(50, 22 + m_txtMedicine.Height);
            m_ctlQueryMedicint.ReturnInfo          += new ReturnMedicineInfo(frmQueryForm_ReturnInfo);
            m_ctlQueryMedicint.m_btnRefresh.Enabled = false;
            m_ctlQueryMedicint.BringToFront();
            m_ctlQueryMedicint.Focus();
            m_ctlQueryMedicint.m_mthSetSearchText(p_strSearchCon);
        }
Exemplo n.º 9
0
        public void m_mthShowMedince(string strMedid)
        {
            if (m_ctlMedQuery == null)
            {
                this.m_ctlMedQuery = new ctlQueryMedicintLeastElement(this.m_objViewer.m_dtMedince);
                this.m_objViewer.Controls.Add(m_ctlMedQuery);

                int X = this.m_objViewer.m_dtpSearchBeginDate.Location.X;
                int Y = this.m_objViewer.m_txtMedicineCode.Location.Y + this.m_objViewer.m_txtMedicineCode.Size.Height * 2;
                m_ctlMedQuery.Location = new Point(X, Y);

                m_ctlMedQuery.ReturnInfo      += new ReturnMedicineInfo(m_ctlRetureInfo);
                m_ctlMedQuery.CancelResult    += new MecicineCancelAndReturn(m_ctlQueryMedicint_CancelResult);
                m_ctlMedQuery.RefreshMedicine += new RefreshMedicineInfo(m_ctlMedQuery_RefreshMedicine);
            }
            m_ctlMedQuery.Visible = true;
            m_ctlMedQuery.BringToFront();
            m_ctlMedQuery.Focus();
            m_ctlMedQuery.m_mthSetSearchText(strMedid);
        }
Exemplo n.º 10
0
        /// <summary>
        /// 显示药品字典最小元素信息查询窗体(查询筛选药品时使用)
        /// </summary>
        /// <param name="p_strSearchCon">查询条件</param>
        /// <param name="p_dtbMedicint">字典内容</param>
        internal void m_mthShowQueryMedicineFormForFilter(string p_strSearchCon, DataTable p_dtbMedicint)
        {
            if (m_ctlQueryMedicintForFilter == null)
            {
                m_ctlQueryMedicintForFilter = new ctlQueryMedicintLeastElement(p_dtbMedicint);
                m_objViewer.Controls.Add(m_ctlQueryMedicintForFilter);

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

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

                m_ctlQueryMedicintForFilter.ReturnInfo      += new ReturnMedicineInfo(frmQueryFormForFilter_ReturnInfo);
                m_ctlQueryMedicintForFilter.RefreshMedicine += new RefreshMedicineInfo(m_ctlQueryMedicintForFilter_RefreshMedicine);
            }

            m_ctlQueryMedicintForFilter.Visible = true;
            m_ctlQueryMedicintForFilter.BringToFront();
            m_ctlQueryMedicintForFilter.Focus();
            m_ctlQueryMedicintForFilter.m_mthSetSearchText(p_strSearchCon);
        }
Exemplo n.º 11
0
        /// <summary>
        /// 显示药品字典最小元素信息查询窗体

        /// </summary>
        /// <param name="p_strSearchCon">查询条件</param>
        internal void m_mthShowQueryMedicineForm(string p_strSearchCon)
        {
            if (m_ctlQueryMedicint == null)
            {
                m_ctlQueryMedicint = new ctlQueryMedicintLeastElement(m_dtbMedicinDict);
                this.Controls.Add(m_ctlQueryMedicint);
            }

            m_ctlQueryMedicint.Visible = true;

            int X = panel1.Location.X + m_txtMedicineName.Location.X;
            int Y = panel1.Location.Y + m_txtMedicineName.Location.Y + m_txtMedicineName.Height;


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

            m_ctlQueryMedicint.ReturnInfo += new ReturnMedicineInfo(m_mthReturnInfo);

            m_ctlQueryMedicint.BringToFront();
            m_ctlQueryMedicint.Focus();
            m_ctlQueryMedicint.m_mthSetSearchText(p_strSearchCon);
        }
Exemplo n.º 12
0
        internal void m_mthShowQueryMedicineForm(string p_strSearchCon)
        {
            if (m_ctlQueryMedicint == null)
            {
                m_ctlQueryMedicint = new ctlQueryMedicintLeastElement(m_objViewer.m_dtbMedicinDict);
                m_objViewer.Controls.Add(m_ctlQueryMedicint);

                int X = m_objViewer.txtTypecode.Location.X;// - m_objViewer.m_txtMedicine.Size.Width);
                int Y = m_objViewer.txtTypecode.Location.Y + 60;

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

                m_ctlQueryMedicint.ReturnInfo      += new ReturnMedicineInfo(frmQueryForm_ReturnInfo);
                m_ctlQueryMedicint.CancelResult    += new MecicineCancelAndReturn(m_ctlQueryMedicint_CancelResult);
                m_ctlQueryMedicint.RefreshMedicine += new RefreshMedicineInfo(m_ctlQueryMedicint_RefreshMedicine);
            }

            m_ctlQueryMedicint.Visible = true;
            m_ctlQueryMedicint.BringToFront();
            m_ctlQueryMedicint.Focus();
            m_ctlQueryMedicint.m_mthSetSearchText(p_strSearchCon);
        }