Ejemplo n.º 1
0
        internal void sendTheBill()
        {
            bool m_blhave = false;
            //检查当前是否有还没有已确认是否需要费用审核 0-否 1-是的但已审核但还没有发送的医嘱申请单
            long lngRes = m_objManage.m_lngCheckTheExecuteBill(m_strCurrentRegisterID, out m_blhave);

            if (m_blhave)
            {
                IPutMadicine madicine;
                ArrayList    m_arrRegisterid = new ArrayList();
                m_arrRegisterid.Add(m_strCurrentRegisterID);
                madicine = PutMadicineFactory.GetInstance();
                long ret = madicine.CreatePutMedDetail(m_arrRegisterid, this.m_objViewer.LoginInfo.m_strEmpID);
                if (ret > 0)
                {
                    MessageBox.Show("已成功发送完毕!", "提示框!", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    return;
                }
            }
            //else
            //{
            //    MessageBox.Show("当前没有已审核但还没有发送的医嘱申请单!", "提示框!", MessageBoxButtons.OK, MessageBoxIcon.Information);
            //    return;
            //}
        }
Ejemplo n.º 2
0
        internal void SetAreaComfirm()
        {
            if (this.m_objViewer.m_dtvAreaList.Rows.Count > 0)
            {
                return;
            }
            IPutMadicine madicine;

            madicine = PutMadicineFactory.GetInstance();
            long ret = madicine.SetAreaComplete(this.m_objViewer.m_strAreaID.Trim(), this.m_objViewer.LoginInfo.m_strEmpID, this.m_objViewer.LoginInfo.m_strEmpName);

            if (ret > 0)
            {
                LoadTheDate();
            }
        }
Ejemplo n.º 3
0
        internal void ClearComfirm()
        {
            if (this.m_objViewer.m_dtvAreaList.Rows.Count <= 0)
            {
                return;
            }
            IPutMadicine madicine;

            madicine = PutMadicineFactory.GetInstance();
            long ret = madicine.CancelAreaComplete(this.m_objViewer.m_dtvAreaList.Rows[0].Cells["m_dtvAreaId"].Value.ToString().Trim(), this.m_objViewer.LoginInfo.m_strEmpID, this.m_objViewer.LoginInfo.m_strEmpName);

            if (ret > 0)
            {
                LoadTheDate();
            }
        }
Ejemplo n.º 4
0
        internal void sendTheBill()
        {
            IPutMadicine madicine;
            ArrayList    m_arrRegisterid = getListArray();

            madicine = PutMadicineFactory.GetInstance();
            long ret = madicine.CreatePutMedDetail(m_arrRegisterid, this.m_objViewer.LoginInfo.m_strEmpID);

            if (ret > 0)
            {
                bool ifAll = madicine.IsAllPatSend((string)this.m_objViewer.m_txtArea.Tag);
                if (ifAll)
                {
                    string m_strAreaID = "";
                    if (this.m_objViewer.m_txtArea.Tag != null)
                    {
                        m_strAreaID = (string)this.m_objViewer.m_txtArea.Tag;
                    }
                    if (!m_strAreaID.Equals(""))
                    {
                        DataTable m_dtItem = new DataTable();
                        long      lngRes   = m_objInputOrder.m_lngFindSendArea(m_strAreaID, out m_dtItem);
                        if (m_dtItem.Rows.Count == 0)
                        {
                            lngRes = madicine.GetAreaComplete(m_strAreaID, out m_dtItem);
                            if (m_dtItem.Rows.Count == 0)
                            {
                                if (MessageBox.Show("病区病人全部发送完毕,是否置全区摆药标志? ", "提示框!", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes)
                                {
                                    madicine = PutMadicineFactory.GetInstance();
                                    ret      = madicine.SetAreaComplete(m_strAreaID, this.m_objViewer.LoginInfo.m_strEmpID, this.m_objViewer.LoginInfo.m_strEmpName);
                                }
                            }
                        }
                    }
                }
            }
            LoadTheDate();
        }
Ejemplo n.º 5
0
        /// <summary>
        /// 批量执行发送(医嘱执行界面调用)
        /// </summary>
        internal void sendTheAllBill()
        {
            IPutMadicine madicine;
            ArrayList    m_arrRegisterid = getListArray();

            madicine = PutMadicineFactory.GetInstance();
            long ret = madicine.CreatePutMedDetail(m_arrRegisterid, this.m_objViewer.LoginInfo.m_strEmpID);

            if (ret > 0)
            {
                string m_strAreaID = "";
                if (this.m_objViewer.m_txtArea.Tag != null)
                {
                    m_strAreaID = (string)this.m_objViewer.m_txtArea.Tag;
                }
                DataTable dtbResult;
                ret = madicine.GetAreaComplete(m_strAreaID, out dtbResult);
                if (dtbResult.Rows.Count == 0)
                {
                    ret = madicine.SetAreaComplete(m_strAreaID, this.m_objViewer.LoginInfo.m_strEmpID, this.m_objViewer.LoginInfo.m_strEmpName);
                }
            }
        }
Ejemplo n.º 6
0
        private void UpdateBihOrderConfirmerAndSend()
        {
            if (!(m_txtArea.Tag is string))
            {
                MessageBox.Show("请先选定科室!", "提示框!", MessageBoxButtons.OK, MessageBoxIcon.Information);
                m_txtArea.Focus();
                return;
            }
            if (((string)m_txtArea.Tag).Trim().Equals(""))
            {
                MessageBox.Show("请先选定科室!", "提示框!", MessageBoxButtons.OK, MessageBoxIcon.Information);
                m_txtArea.Focus();
                return;
            }
            this.Cursor = Cursors.WaitCursor;
            com.digitalwave.iCare.BIHOrder.frmExecuteOrdersProgress objFrmExecuteOrdersProgress = new frmExecuteOrdersProgress();
            ((clsCtl_OrderExecute)this.objController).objFrmExecuteOrdersProgress = objFrmExecuteOrdersProgress;

            bool m_blComfirm = ((clsCtl_OrderExecute)this.objController).UpdateBihOrderConfirmer();

            objFrmExecuteOrdersProgress.Close();
            if (m_blComfirm == true)
            {
                MessageBox.Show("执行成功!", "提示框!", MessageBoxButtons.OK, MessageBoxIcon.Information);
                if (m_txtArea.Tag == null || this.m_dtvOrderList.RowCount > 0)
                {
                    this.Cursor = Cursors.Default;
                    return;
                }
                if (this.m_dtvOrderList.RowCount == 0)
                {
                    this.m_dtvChangeList.Rows.Clear();
                }
                IPutMadicine madicine;
                madicine = PutMadicineFactory.GetInstance();
                // bool ifAll = madicine.IsAllPatSend((string)m_txtArea.Tag);
                bool ifAll  = true;
                long lngRes = ((clsCtl_OrderExecute)this.objController).IsAllPatSend((string)m_txtArea.Tag, out ifAll);
                if (lngRes > 0 && ifAll)
                {
                    if (((clsCtl_OrderExecute)this.objController).m_blBihOrderCanExecute() == false)
                    {
                        string m_strAreaID = "";
                        if (this.m_txtArea.Tag != null)
                        {
                            m_strAreaID = (string)m_txtArea.Tag;
                        }
                        if (!m_strAreaID.Equals(""))
                        {
                            DataTable m_dtItem = new DataTable();
                            lngRes = ((clsCtl_OrderExecute)this.objController).m_lngFindSendArea(m_strAreaID, out m_dtItem);
                            if (lngRes > 0 && m_dtItem.Rows.Count == 0)
                            {
                                lngRes = madicine.GetAreaComplete(m_strAreaID, out m_dtItem);
                                if (m_dtItem.Rows.Count == 0)
                                {
                                    if (MessageBox.Show("病区病人全部发送完毕,是否置全区摆药标志? ", "提示框!", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes)
                                    {
                                        madicine = PutMadicineFactory.GetInstance();
                                        lngRes   = madicine.SetAreaComplete(m_strAreaID, this.LoginInfo.m_strEmpID, this.LoginInfo.m_strEmpName);
                                    }
                                }
                            }
                        }
                    }
                }
            }
            this.Cursor = Cursors.Default;
        }