Exemplo n.º 1
0
        internal void OrderStop()
        {
            ArrayList m_arrOrder      = new ArrayList();
            ArrayList m_arrOrderIdCan = new ArrayList();

            GetTheSelectOrders(ref m_arrOrder);
            #region 刷新当前医嘱数据,然后再判断

            ArrayList m_arrORDERID_CHR = new ArrayList();
            string    m_strOrderID     = "";
            for (int i = 0; i < m_arrOrder.Count; i++)
            {
                m_strOrderID = ((clsBIHOrder)m_arrOrder[i]).m_strOrderID;
                if (!m_arrORDERID_CHR.Contains(m_strOrderID))
                {
                    m_arrORDERID_CHR.Add(m_strOrderID);
                }
            }

            clsBIHOrder[] arrOrder = null;
            //com.digitalwave.iCare.middletier.BIHOrderServer.clsBIHOrderService m_objService = (com.digitalwave.iCare.middletier.BIHOrderServer.clsBIHOrderService)clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.BIHOrderServer.clsBIHOrderService));
            clsBIHOrderService m_objService = new clsDcl_GetSvcObject().m_GetOrderSvcObject();
            m_objService.m_lngGetArrOrderByOrderID(m_arrORDERID_CHR, out arrOrder);
            if (arrOrder != null && arrOrder.Length > 0)
            {
                for (int i = 0; i < arrOrder.Length; i++)
                {
                    clsBIHOrder     order = arrOrder[i];
                    DataGridViewRow row   = GetTheGridRowByOrder(order.m_strOrderID);
                    this.m_objGetDataViewRow(order, row, row.Index + 1);
                }
            }
            this.m_mthRefreshSameReqNoColor();
            m_arrOrder.Clear();
            GetTheSelectOrders(ref m_arrOrder);
            #endregion

            if (m_arrOrder.Count <= 0)
            {
                MessageBox.Show("请先选择医嘱!", "提示框!", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            else
            {
                bool m_blCan = false;
                for (int i = 0; i < m_arrOrder.Count; i++)
                {
                    clsBIHOrder order = (clsBIHOrder)m_arrOrder[i];
                    if (order.m_intExecuteType == 1 && order.m_intStatus == 2)
                    {
                        m_arrOrderIdCan.Add(order.m_strOrderID);
                        m_blCan = true;
                    }
                }
                if (!m_blCan)
                {
                    MessageBox.Show("当前操作中没有符合可停止的执行中的长嘱!", "提示框!", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    return;
                }
                if (m_arrOrderIdCan.Count > 0)
                {
                    if (MessageBox.Show("确认进行停嘱操作吗?", "提示框!", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes)
                    {
                        string[] m_strOrderIDs = (string[])(m_arrOrderIdCan.ToArray(typeof(string)));

                        long m_lngRef = this.m_objInputOrder.m_lngStopOrder(m_strOrderIDs, this.m_objViewer.LoginInfo.m_strEmpID, this.m_objViewer.LoginInfo.m_strEmpName);

                        MessageBox.Show("操作成功!", "提示框!", MessageBoxButtons.OK, MessageBoxIcon.Information);
                        LoadTheOrders(this.m_objViewer.m_strRegisterID);
                    }
                }
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// 医嘱填充DATAGRIDVIEW
        /// </summary>
        /// <param name="objOrder">医嘱对像</param>
        /// <param name="m_intRecipenNoUp">上一条医嘱的方号(同方号的子医嘱不用再显示:长/临、类别、用法、频率、状态、下嘱医生)</param>
        public void m_objGetDataViewRow(clsBIHOrder objOrder, DataGridViewRow objRow, int m_intNo)
        {
            objRow.Height = 20;
            decimal m_dmlOneUse = 0;//补一次的领量

            //序
            objRow.Cells["dtv_NO"].Value = m_intNo;
            //医嘱类型
            clsT_aid_bih_ordercate_VO p_objItem = (clsT_aid_bih_ordercate_VO)this.m_objViewer.m_htOrderCate[objOrder.m_strOrderDicCateID];

            if (p_objItem == null)
            {
                if (objOrder.m_intTYPE_INT > 0)
                {
                    objRow.Cells["dtv_Name"].Value           = objOrder.m_strName.ToString();
                    objRow.Cells["dtv_Name"].Style.Alignment = DataGridViewContentAlignment.BottomCenter;
                    objRow.Tag = objOrder;
                    return;
                }
            }
            if (objOrder.m_intExecuteType == 1)
            {
                //方
                objRow.Cells["dtv_RecipeNo"].Value = " " + objOrder.m_intRecipenNo2.ToString();
            }
            //价格
            //objRow["Price"] =objOrder.m_dmlPrice.ToString("0.0000");

            //“方法”列。用于显示检验医嘱的样本类型,和检查医嘱的部位信息
            if (!objOrder.m_strPARTID_VCHR.Trim().Equals(""))
            {
                objRow.Cells["dtv_method"].Value = objOrder.m_strPARTNAME_VCHR;
            }
            else if (!objOrder.m_strSAMPLEID_VCHR.Trim().Equals(""))
            {
                objRow.Cells["dtv_method"].Value = objOrder.m_strSAMPLEName_VCHR;
            }



            //开始执行时间
            objRow.Cells["dtv_StartDate"].Value = DateTimeToString(objOrder.m_dtExecutedate);
            //停嘱者
            objRow.Cells["dtv_Stoper"].Value = objOrder.m_strStoper;
            //审核停止者
            objRow.Cells["ASSESSORFORSTOP_CHR"].Value = objOrder.m_strASSESSORFORSTOP_CHR;
            //停嘱时间
            objRow.Cells["dtv_FinishDate"].Value = DateTimeToCutYearDateString(objOrder.m_dtFinishDate);
            //objRow.Cells["dtv_ParentName"].Value = objOrder.m_strParentName;
            //执行时间/嘱托
            objRow.Cells["dtv_REMARK"].Value = objOrder.m_strREMARK_VCHR;
            //自备药 (1-全计费 1-否)( 2-用法收费 2-是)(3 不计费 作废)
            switch (objOrder.RateType)
            {
            case 0:
                objRow.Cells["RATETYPE_INT"].Value = "否";
                break;

            case 1:
                objRow.Cells["RATETYPE_INT"].Value = "是";
                break;

            case 2:
                objRow.Cells["RATETYPE_INT"].Value = "";
                break;
            }


            //校对护士
            objRow.Cells["ASSESSORFOREXEC_CHR"].Value = objOrder.m_strASSESSORFOREXEC_CHR;
            //录入时间
            objRow.Cells["CREATEDATE_DAT"].Value = DateTimeToString(objOrder.m_dtCreatedate);
            //下嘱时间(开始时间)
            objRow.Cells["m_dtPOSTDATE_DAT"].Value = DateTimeToCutYearDateString(objOrder.m_dtPostdate);
            objRow.Cells["m_dtStartDate"].Value    = DateTimeToCutYearDateString(objOrder.m_dtStartDate);

            /*<===============================*/
            //皮试
            string m_strFeel = "";

            if (objOrder.m_intISNEEDFEEL == 1)
            {
                switch (objOrder.m_intFEEL_INT)
                {
                case 0:
                    m_strFeel = " AST( ) ";
                    break;

                case 1:
                    m_strFeel = " AST(-) ";
                    break;

                case 2:
                    m_strFeel = " AST(+) ";
                    break;
                }
            }
            /*<==================================*/
            #region 医嘱类型控制列表界面
            if (p_objItem != null)
            {
                objOrder.m_strOrderDicCateName = p_objItem.m_strVIEWNAME_VCHR;

                if (!objOrder.m_strExecFreqID.Trim().Equals(this.m_objViewer.m_objSpecateVo.m_strCONFREQID_CHR.Trim()))//连续性医嘱不显示剂量
                {
                    if (p_objItem.m_intDOSAGEVIEWTYPE == 1)
                    {
                        //用量
                        if (objOrder.m_dmlDosage > 0)
                        {
                            objRow.Cells["dtv_Dosage"].Value = objOrder.m_dmlDosage.ToString() + "" + objOrder.m_strDosageUnit;
                        }
                        else
                        {
                            objRow.Cells["dtv_Dosage"].Value = "";
                        }
                    }
                    else
                    {
                        objRow.Cells["dtv_Dosage"].Value = "";
                    }
                }
                else
                {
                    objRow.Cells["dtv_Dosage"].Value = "";
                }
                if (!objOrder.m_strExecFreqID.Trim().Equals(this.m_objViewer.m_objSpecateVo.m_strCONFREQID_CHR.Trim()))//连续性医嘱不显示用法
                {
                    if (p_objItem.m_intUSAGEVIEWTYPE == 1)
                    {
                        //用法
                        objRow.Cells["dtv_UseType"].Value = objOrder.m_strDosetypeName;
                    }
                    else
                    {
                        //用法
                        objRow.Cells["dtv_UseType"].Value = "";
                    }
                }
                else
                {
                    //用法
                    objRow.Cells["dtv_UseType"].Value = "";
                }
                if (objOrder.m_intExecuteType == 1)//长临才显示频率,临嘱不显示
                {
                    if (p_objItem.m_intExecuFrenquenceType == 1)
                    {
                        //频率
                        objRow.Cells["dtv_Freq"].Value = objOrder.m_strExecFreqName;
                    }
                    else
                    {
                        //当不显示时,医嘱表中的为修改标志=1时也显示出来 (0-普通状态,1-频率修改)
                        if (objOrder.m_intCHARGE_INT == 1)
                        {
                            objRow.Cells["dtv_Freq"].Value = objOrder.m_strExecFreqName;//频率
                        }
                        else
                        {
                            objRow.Cells["dtv_Freq"].Value = "";//频率
                        }
                    }
                }
                else
                {
                    //当不显示时,医嘱表中的为修改标志=1时也显示出来 (0-普通状态,1-频率修改)
                    if (objOrder.m_intCHARGE_INT == 1)
                    {
                        objRow.Cells["dtv_Freq"].Value = objOrder.m_strExecFreqName;//频率
                    }
                    else
                    {
                        objRow.Cells["dtv_Freq"].Value = "";//频率
                    }
                }

                if (p_objItem.m_intAPPENDVIEWTYPE_INT == 1)
                {
                    //补次
                    objRow.Cells["ATTACHTIMES_INT"].Value = objOrder.m_intATTACHTIMES_INT;
                    m_dmlOneUse = objOrder.m_dmlOneUse * objOrder.m_intATTACHTIMES_INT;
                }
                else
                {
                    //补次
                    objRow.Cells["ATTACHTIMES_INT"].Value = "";
                    m_dmlOneUse = 0;
                }
                //领量
                if (p_objItem.m_intQTYVIEWTYPE_INT == 1)
                {
                    if (objOrder.m_dmlGet > 0)
                    {
                        objRow.Cells["dtv_Get"].Value = objOrder.m_dmlGet.ToString() + " " + objOrder.m_strGetunit;
                    }
                    else
                    {
                        objRow.Cells["dtv_Get"].Value = "";
                    }
                }
                else
                {
                    //领量
                    objRow.Cells["dtv_Get"].Value = "";
                }
            }
            else
            {
                //用量
                objRow.Cells["dtv_Dosage"].Value = "";
                //频率
                objRow.Cells["dtv_Freq"].Value = "";
                //用法
                objRow.Cells["dtv_UseType"].Value = "";
                //补次
                objRow.Cells["ATTACHTIMES_INT"].Value = "";
                //领量
                objRow.Cells["dtv_Get"].Value = "";
            }
            #endregion
            //出院带药天数
            string m_strOUTGETMEDDAYS_INT = "";
            //总量字段的控制
            if (objOrder.m_strOrderDicCateID.Equals(this.m_objViewer.m_objSpecateVo.m_strMID_MEDICINE_CHR))//中药类型逻辑
            {
                objRow.Cells["dtv_sum"].Value = objOrder.m_intOUTGETMEDDAYS_INT.ToString() + "服共" + Convert.ToString(objOrder.m_dmlGet + m_dmlOneUse) + objOrder.m_strGetunit;
                m_strOUTGETMEDDAYS_INT        = objOrder.m_intOUTGETMEDDAYS_INT.ToString() + "服";;
            }
            else
            {
                if (objOrder.m_intExecuteType == 3)
                {
                    objRow.Cells["dtv_sum"].Value = objOrder.m_intOUTGETMEDDAYS_INT.ToString() + "天共" + Convert.ToString(objOrder.m_dmlGet + m_dmlOneUse) + objOrder.m_strGetunit;
                    m_strOUTGETMEDDAYS_INT        = objOrder.m_intOUTGETMEDDAYS_INT.ToString() + "天";
                    //objRow.Cells["dtv_OUTGETMEDDAYS_INT"].Value = objOrder.m_intOUTGETMEDDAYS_INT.ToString() + "天";
                }
                else
                {
                    objRow.Cells["dtv_sum"].Value = "共" + Convert.ToString(objOrder.m_dmlGet + m_dmlOneUse) + objOrder.m_strGetunit;
                    m_strOUTGETMEDDAYS_INT        = "";
                    //objRow.Cells["dtv_OUTGETMEDDAYS_INT"].Value = "";
                }
                objRow.Cells["dtv_OUTGETMEDDAYS_INT"].Value = m_strOUTGETMEDDAYS_INT;
            }

            //名称
            objRow.Cells["dtv_Name"].Value = objOrder.m_strName + " " + objRow.Cells["dtv_Dosage"].Value.ToString() + " " + objRow.Cells["dtv_UseType"].Value.ToString() + " " + objRow.Cells["dtv_Freq"].Value.ToString() + m_strFeel + " " + m_strOUTGETMEDDAYS_INT;
            //名称格式控制
            if (p_objItem != null)
            {
                if (p_objItem.m_strVIEWNAME_VCHR.ToString().Trim() == "文字医嘱")
                {
                    objRow.Cells["dtv_Name"].Value = "   " + objRow.Cells["dtv_Name"].Value.ToString();
                }
            }

            /*<=====================================================================*/
            //医保
            objRow.Cells["MedicareTypeName"].Value = objOrder.m_strMedicareTypeName;
            //医生名称
            objRow.Cells["dtv_DOCTOR_VCHR"].Value = objOrder.m_strDOCTOR_VCHR;
            //开单科室
            objRow.Cells["dtv_CREATEAREA_Name"].Value = objOrder.m_strCREATEAREA_Name;
            //作废人
            objRow.Cells["dtv_DELETERNAME_VCHR"].Value = objOrder.m_strDELETERNAME_VCHR;
            //作废时间
            objRow.Cells["dtv_DELETE_DAT"].Value = objOrder.m_strDELETE_DAT;
            //修改人姓名
            objRow.Cells["dtv_ChangedID"].Value = objOrder.m_strChangedName_CHR;
            //修改人时间
            objRow.Cells["dtv_ChangedDate"].Value = DateTimeToString(objOrder.m_dtChanged_DAT);

            // 同方号的子医嘱不用再显示:长/临、类别、用法、频率、状态、下嘱医生
            //长/临
            if (objOrder.m_intExecuteType == 1)
            {
                objRow.Cells["dtv_ExecuteType"].Value = "长期";
            }
            else if (objOrder.m_intExecuteType == 2)
            {
                objRow.Cells["dtv_ExecuteType"].Value = "临时";
            }
            else if (objOrder.m_intExecuteType == 3)
            {
                objRow.Cells["dtv_ExecuteType"].Value = "带药";
            }
            else
            {
                objRow.Cells["dtv_ExecuteType"].Value = "";
            }


            //医嘱类型名称
            objRow.Cells["viewname_vchr"].Value = objOrder.m_strOrderDicCateName.ToString().Trim();
            //医嘱状态 执行状态{-1作废医嘱;0-创建;1-提交;2-执行;3-停止;4-重整;5- 已审核提交;6-审核停止;7-退回;}
            switch (objOrder.m_intStatus)
            {
            case -1:
                objRow.Cells["STATUS_INT"].Value = "作废";
                break;

            case 0:
                objRow.Cells["STATUS_INT"].Value = "新开";
                break;

            case 1:
                objRow.Cells["STATUS_INT"].Value = "提交";
                break;

            case 2:
                objRow.Cells["STATUS_INT"].Value = "执行";
                break;

            case 3:
                objRow.Cells["STATUS_INT"].Value = "停止";
                break;

            case 4:
                objRow.Cells["STATUS_INT"].Value = "重整";
                break;

            case 5:
                objRow.Cells["STATUS_INT"].Value = "转抄";
                break;

            case 6:
                objRow.Cells["STATUS_INT"].Value = "审核停止";
                break;

            case 7:
                objRow.Cells["STATUS_INT"].Value = "退回";
                break;

            default:
                objRow.Cells["STATUS_INT"].Value = "";
                break;
            }
            //下嘱医生
            objRow.Cells["CREATOR_CHR"].Value = objOrder.m_strCreator;
            //执行人
            objRow.Cells["dtv_Executor"].Value = objOrder.m_strExecutor;
            ////医生签名dtv_DOCTOR_SIGN
            //if (this.m_frmInput.m_blDoctorSign)
            //{
            //    if (objOrder.SIGN_GRP != null && objOrder.SIGN_INT == 1)
            //    {
            //        System.IO.MemoryStream ms = new System.IO.MemoryStream(objOrder.SIGN_GRP);
            //        Bitmap m_bpSign = new Bitmap(ms);
            //        objRow.Cells["dtv_DOCTOR_SIGN"].Value = m_bpSign;
            //        ms.Close();
            //    }
            //    else if (objOrder.SIGN_INT == 0)
            //    {

            //        Bitmap m_bpSign = new Bitmap("Picture//unsign.bmp");
            //        objRow.Cells["dtv_DOCTOR_SIGN"].Value = m_bpSign;

            //    }
            //    else
            //    {

            //        objRow.Cells["dtv_DOCTOR_SIGN"].Style.NullValue = null;
            //    }

            //    if (this.m_frmInput.m_blDoctorSign && objOrder.SIGN_INT != 1)
            //    {
            //        objRow.DefaultCellStyle.ForeColor = Color.Red;
            //    }
            //}
            //退回人
            objRow.Cells["m_dtvSENDBACKER_CHR"].Value = objOrder.m_strSENDBACKER_CHR;



            /*<==================================================================*/
            objRow.Tag = objOrder;
        }
Exemplo n.º 3
0
        /// <summary>
        /// 为费用datagridview填值
        /// </summary>
        /// <param name="order"></param>
        private void filltheChargeList(clsBIHOrder order)
        {
            this.m_objViewer.m_dtvChangeList.Rows.Clear();
            if (m_dtChargeList != null && m_dtChargeList.Rows.Count > 0)
            {
                DataView myDataView = new DataView(m_dtChargeList);
                myDataView.RowFilter = "orderid_chr='" + order.m_strOrderID + "'";
                myDataView.Sort      = "FLAG_INT";
                if (myDataView.Count <= 0)
                {
                    return;
                }
                clsChargeForDisplay[] m_arrObjItem;
                m_mthGetChargeListFromDateTable(myDataView, out m_arrObjItem);
                int k = 0;
                for (int i = 0; i < m_arrObjItem.Length; i++)
                {
                    k++;
                    this.m_objViewer.m_dtvChangeList.Rows.Add();
                    DataGridViewRow row1 = this.m_objViewer.m_dtvChangeList.Rows[this.m_objViewer.m_dtvChangeList.RowCount - 1];
                    row1.Cells["seq"].Value           = Convert.ToString(k);
                    row1.Cells["chargeName"].Value    = m_arrObjItem[i].m_strName;
                    row1.Cells["ITEMSPEC_VCHR"].Value = m_arrObjItem[i].m_strSPEC_VCHR;
                    row1.Cells["ChargeClass"].Value   = "";
                    switch (m_arrObjItem[i].m_intType)
                    {
                    case 0:
                        row1.Cells["ChargeClass"].Value = "主项目";
                        break;

                    case 1:
                        row1.Cells["ChargeClass"].Value = "辅助项目";
                        break;

                    case 2:
                        row1.Cells["ChargeClass"].Value = "用法带出";
                        break;

                    case 3:
                        row1.Cells["ChargeClass"].Value = "补充录入";
                        break;
                    }

                    row1.Cells["ChargePrice"].Value = m_arrObjItem[i].m_dblPrice.ToString();
                    row1.Cells["get_count"].Value   = m_arrObjItem[i].m_dblDrawAmount.ToString() + " " + m_arrObjItem[i].m_strUNIT_VCHR;
                    row1.Cells["countSum"].Value    = m_arrObjItem[i].m_dblMoney.ToString();
                    switch (m_arrObjItem[i].m_intCONTINUEUSETYPE_INT)
                    {
                    case 1:
                        row1.Cells["xuClass"].Value = "首次用";
                        break;

                    case 0:
                        row1.Cells["xuClass"].Value = "连续用";
                        break;

                    default:
                        row1.Cells["xuClass"].Value = " -- ";
                        break;
                    }

                    row1.Cells["excuteDept"].Value      = m_arrObjItem[i].m_strClacareaName_chr;
                    row1.Cells["YBClass"].Value         = m_arrObjItem[i].m_strYBClass;
                    row1.Cells["IPNOQTYFLAG_INT"].Value = "";
                    if (m_arrObjItem[i].m_intITEMSRCTYPE_INT == 1)
                    {
                        if (m_arrObjItem[i].m_intIPNOQTYFLAG_INT == 1)
                        {
                            row1.Cells["IPNOQTYFLAG_INT"].Value = "缺药";
                            row1.DefaultCellStyle.ForeColor     = System.Drawing.Color.Red;
                        }
                    }
                    if (m_arrObjItem[i].m_intIFSTOP_INT == 1)
                    {
                        row1.DefaultCellStyle.ForeColor = System.Drawing.Color.Red;
                    }
                    row1.Tag = m_arrObjItem[i];

                    //序号 seq
                    //项目名称 chargeName
                    //费用类型 ChargeClass
                    //单价 ChargePrice
                    //数量 get_count
                    //总金额 countSum
                    //续用类型 xuClass
                    //执行科室 excuteDept
                    //医保类型 YBClass
                }
                this.m_objViewer.m_dtvChangeList.CurrentCell = null;
            }
        }
Exemplo n.º 4
0
        private void btOK_Click(object sender, EventArgs e)
        {
            if (m_intSourceType == 0)
            {
                this.Cursor = Cursors.WaitCursor;

                clsBIHOrderInputDomain m_objDomain = new clsBIHOrderInputDomain();
                ArrayList PARMCODE_CHR             = new ArrayList();
                PARMCODE_CHR.Add("0008");
                DataTable m_dtPARMVALUE_VCHR = new DataTable();
                string    str    = string.Empty;
                long      lngRes = m_objDomain.LoadThePARMVALUE(PARMCODE_CHR, out m_dtPARMVALUE_VCHR);
                if (m_dtPARMVALUE_VCHR.Rows.Count > 0)
                {
                    str = m_dtPARMVALUE_VCHR.Rows[0]["PARMVALUE_VCHR"].ToString();
                }
                //保存同方组套医嘱
                if (((clsCtl_OrderGroupInput)this.objController).SaveTheGroup() == true)
                {
                    for (int i = 0; i < this.m_arrGroupOrder.Count; i++)
                    {
                        clsBIHOrder order = (clsBIHOrder)this.m_arrGroupOrder[i];
                        if (str.Contains(strPayType))
                        {
                            string strRemark   = string.Empty;
                            string strItemName = string.Empty;
                            bool   blnRes      = m_objDomain.m_blnShiying(order.m_strOrderDicID, out strRemark, out strItemName);
                            if (blnRes)
                            {
                                MessageBox.Show("该模板中项目【" + strItemName + "】限【" + strRemark + "】使用,判断本处方是否符合限制条件后。\n请在下拉框选择【符合】、【不符合】。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Question);
                            }
                        }
                        if (((frmBIHOrderInput)this.m_ctlOrder.ParentForm).m_objDomain.m_blChcekOpcurrentgross(ref order) == false)
                        {
                            this.Cursor = Cursors.Default;
                            return;
                        }
                    }
                    this.Cursor       = Cursors.Default;
                    this.DialogResult = DialogResult.OK;
                    //this.Close();
                }
                this.Cursor = Cursors.Default;
            }
            else if (m_intSourceType == 1)
            {
                ((clsCtl_OrderGroupInput)this.objController).GetTheSelectOrderDic(ref m_arrOrderDic, ref m_dtOrderDic);

                m_decMount = clsConverter.ToDecimal(this.m_txtMount.Text.Trim());

                if (m_arrOrderDic.Count == 0)
                {
                    MessageBox.Show("请选择项目!", "警告!", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                    return;
                }
                if (m_decMount == 0)
                {
                    MessageBox.Show("请输入数量且不能为0 ", "警告!", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                    this.m_txtMount.Focus();
                    this.m_txtMount.SelectAll();
                    return;
                }

                this.DialogResult = DialogResult.OK;
            }
        }
Exemplo n.º 5
0
        /// <summary>
        /// 刷新同方医嘱的方号颜色并隐藏相同性质的字段
        /// </summary>
        public void m_mthRefreshSameReqNoColor()
        {
            for (int i = 1; i < this.m_objViewer.m_dtvOrder.Rows.Count; i++)
            {
                clsBIHOrder     order  = (clsBIHOrder)m_objViewer.m_dtvOrder.Rows[i - 1].Tag;
                DataGridViewRow objRow = m_objViewer.m_dtvOrder.Rows[i];

                if (order.m_intRecipenNo == ((clsBIHOrder)m_objViewer.m_dtvOrder.Rows[i].Tag).m_intRecipenNo)
                {
                    //m_objViewer.m_dtvOrder.Rows[i - 1].Cells["dtv_RecipeNo"].Style.ForeColor = Color.SkyBlue;
                    //objRow.Cells["dtv_RecipeNo"].Style.ForeColor = Color.SkyBlue;
                    //隐藏的字段
                    //方号dtv_RecipeNo
                    objRow.Cells["dtv_RecipeNo"].Value = "";
                    //类型dtv_ExecuteType
                    objRow.Cells["dtv_ExecuteType"].Value = "";
                    //下嘱时间m_dtStartDate
                    //objRow.Cells["m_dtStartDate"].Value = "";
                    objRow.Cells["m_dtPOSTDATE_DAT"].Value = "";
                    //开医嘱者CREATOR_CHR
                    objRow.Cells["CREATOR_CHR"].Value = "";
                    //过医嘱者ASSESSORFOREXEC_CHR
                    objRow.Cells["ASSESSORFOREXEC_CHR"].Value = "";
                    //中药的同方也显示用法
                    if (this.m_objViewer.m_objSpecateVo.m_strMID_MEDICINE_CHR.Trim().Equals(((clsBIHOrder)objRow.Tag).m_strOrderDicCateID))//中药类型逻辑
                    {
                        //用法dtv_UseType
                        objRow.Cells["dtv_UseType"].Value = ((clsBIHOrder)objRow.Tag).m_strDosetypeName;
                        objRow.Cells["dtv_REMARK"].Value  = "";
                    }
                    else
                    {
                        //用法dtv_UseType
                        objRow.Cells["dtv_UseType"].Value = "";
                    }


                    // 频率dtv_Freq
                    objRow.Cells["dtv_Freq"].Value = "";
                    //说明dtv_ENTRUST
                    //objRow.Cells["dtv_ENTRUST"].Value = "";
                    //停嘱时间dtv_FinishDate
                    objRow.Cells["dtv_FinishDate"].Value = "";
                    //停医嘱者dtv_Stoper
                    objRow.Cells["dtv_Stoper"].Value = "";
                    //过医嘱者
                    //objRow.Cells[""].Value = "";
                    //补次ATTACHTIMES_INT
                    objRow.Cells["ATTACHTIMES_INT"].Value = "";
                    //医嘱状态STATUS_INT
                    objRow.Cells["STATUS_INT"].Value = "";
                    //执行时间dtv_StartDate
                    objRow.Cells["dtv_StartDate"].Value = "";

                    //执行人dtv_Executor
                    objRow.Cells["dtv_Executor"].Value = "";
                    //作废时间dtv_DELETE_DAT
                    objRow.Cells["dtv_DELETE_DAT"].Value = "";
                    //作废时间dtv_DELETE_DAT
                    objRow.Cells["dtv_DELETE_DAT"].Value = "";
                    //作废人dtv_DELETERNAME_VCHR
                    objRow.Cells["dtv_DELETERNAME_VCHR"].Value = "";

                    /*<=================================*/
                    //皮试
                    string m_strFeel = "";
                    if (((clsBIHOrder)objRow.Tag).m_intISNEEDFEEL == 1)
                    {
                        switch (((clsBIHOrder)objRow.Tag).m_intFEEL_INT)
                        {
                        case 0:
                            m_strFeel = " AST( ) ";
                            break;

                        case 1:
                            m_strFeel = " AST(-) ";
                            break;

                        case 2:
                            m_strFeel = " AST(+) ";
                            break;
                        }
                    }

                    //名称  同一方号的医嘱,子医嘱的用法与频率不用显示
                    objRow.Cells["dtv_Name"].Value = ((clsBIHOrder)objRow.Tag).m_strName + " " + objRow.Cells["dtv_Dosage"].Value.ToString() + "  " + objRow.Cells["dtv_UseType"].Value.ToString() + " " + m_strFeel;
                }

                //已停或正在停的医嘱,已执行过的临嘱用红色显示(包括执行出院带药)

                if (order.m_intStatus == 3 || order.m_intStatus == 6 || (order.m_intExecuteType == 2 && order.m_intStatus == 2) || (order.m_intExecuteType == 3 && order.m_intStatus == 2))
                {
                    m_objViewer.m_dtvOrder.Rows[i - 1].DefaultCellStyle.ForeColor = Color.Red;
                }
                else if (order.m_intStatus == -1)
                {
                    m_objViewer.m_dtvOrder.Rows[i - 1].DefaultCellStyle.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(100)))), ((int)(((byte)(255)))));
                }
            }
            if (m_objViewer.m_dtvOrder.RowCount > 0)
            {
                //已停或正在停的医嘱,已执行过的临嘱用红色显示(最后一条的处理)
                clsBIHOrder order2 = (clsBIHOrder)m_objViewer.m_dtvOrder.Rows[m_objViewer.m_dtvOrder.RowCount - 1].Tag;
                if (order2.m_intStatus == 3 || order2.m_intStatus == 6 || (order2.m_intExecuteType == 2 && order2.m_intStatus == 2) || (order2.m_intExecuteType == 3 && order2.m_intStatus == 2))
                {
                    m_objViewer.m_dtvOrder.Rows[m_objViewer.m_dtvOrder.RowCount - 1].DefaultCellStyle.ForeColor = Color.Red;
                }
                else if (order2.m_intStatus == -1)
                {
                    m_objViewer.m_dtvOrder.Rows[m_objViewer.m_dtvOrder.RowCount - 1].DefaultCellStyle.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(100)))), ((int)(((byte)(255)))));
                }
            }
        }
Exemplo n.º 6
0
        /// <summary>
        /// 载入
        /// </summary>
        public void LoadData()
        {
            m_objViewer.m_lsvDisplayOrder.Items.Clear();
            if (m_objViewer.m_strRegisterID.Trim() == string.Empty)
            {
                return;
            }

            //获取相关医嘱
            clsBIHOrder[] objResultArr = new clsBIHOrder[0];
            long          lngRes       = 0;

            switch (m_objViewer.m_intType)
            {
            case 3:
                lngRes = m_objManage.m_lngGetCanStopOrder(m_objViewer.m_strRegisterID, out objResultArr);
                break;

            case 4:
                lngRes = m_objManage.m_lngGetCanReformingOrder(m_objViewer.m_strRegisterID, out objResultArr);
                break;

            default:
                MessageBox.Show(m_objViewer, "不确定的操作,请重新打开页面!", "提示框!", MessageBoxButtons.OK, MessageBoxIcon.Information);
                m_objViewer.Close();
                break;
            }
            if (lngRes <= 0 || objResultArr == null || objResultArr.Length <= 0)
            {
                return;
            }

            //赋值ListView
            #region 赋值
            ListViewItem         lviTemp = null;
            System.Drawing.Color clrBack, clrFore;
            for (int i1 = 0; i1 < objResultArr.Length; i1++)
            {
                //序号
                lviTemp = new ListViewItem((i1 + 1).ToString());
                //方号
                lviTemp.SubItems.Add(objResultArr[i1].m_intRecipenNo.ToString());
                //长/临
                if (objResultArr[i1].m_intExecuteType == 1)
                {
                    lviTemp.SubItems.Add("长");
                }
                else
                {
                    if (objResultArr[i1].m_intExecuteType == 2)
                    {
                        lviTemp.SubItems.Add("临");
                    }
                    else
                    {
                        lviTemp.SubItems.Add("");
                    }
                }
                //名称
                lviTemp.SubItems.Add(objResultArr[i1].m_strName);
                //剂 量
                lviTemp.SubItems.Add(objResultArr[i1].m_dmlDosageRate.ToString() + objResultArr[i1].m_strDosageUnit);
                //领 量
                lviTemp.SubItems.Add(objResultArr[i1].m_dmlGet.ToString() + objResultArr[i1].m_strGetunit);
                //执行频率
                lviTemp.SubItems.Add(objResultArr[i1].m_strExecFreqName);
                //用 法
                lviTemp.SubItems.Add(objResultArr[i1].m_strDosetypeName);
                //皮
                if (objResultArr[i1].m_intISNEEDFEEL == 1)
                {
                    lviTemp.SubItems.Add("√");
                }
                else
                {
                    lviTemp.SubItems.Add("");                    //×
                }
                //父级医嘱
                lviTemp.SubItems.Add(objResultArr[i1].m_strParentName);

                lviTemp.Tag = objResultArr[i1];
                m_objViewer.m_lsvDisplayOrder.Items.Add(lviTemp);
                clsOrderStatus.s_mthGetColorByStatus(objResultArr[i1].m_intExecuteType, objResultArr[i1].m_intStatus, out clrBack, out clrFore);
                m_objViewer.m_lsvDisplayOrder.Items[m_objViewer.m_lsvDisplayOrder.Items.Count - 1].ForeColor = clrFore;
                m_objViewer.m_lsvDisplayOrder.Items[m_objViewer.m_lsvDisplayOrder.Items.Count - 1].BackColor = clrBack;
            }
            #endregion
        }
Exemplo n.º 7
0
 public void m_InitValueOrderGroupDetail(clsBIHOrder objItem, bool ifParent, bool blnSame)
 {
     long lngRes = m_objDoctorAdvice.m_InitValueOrderGroupDetail(objItem, ref m_dtOrderGroupDetail, ifParent, blnSame);
 }
Exemplo n.º 8
0
        /// <summary>
        /// 医嘱填充DATAGRIDVIEW
        /// </summary>
        /// <param name="objOrder">医嘱对像</param>
        /// <param name="m_intRecipenNoUp">上一条医嘱的方号(同方号的子医嘱不用再显示:长/临、类别、用法、频率、状态、下嘱医生)</param>
        public void m_objGetDataViewRow(clsBIHOrder objOrder)
        {
            this.m_objViewer.m_dtvOrderGroup.Rows.Add();

            DataGridViewRow objRow = this.m_objViewer.m_dtvOrderGroup.Rows[this.m_objViewer.m_dtvOrderGroup.RowCount - 1];

            objRow.Height = 20;
            objRow.Cells["dtv_check"].Value = "1";
            //序
            objRow.Cells["dtv_NO"].Value = this.m_objViewer.m_dtvOrderGroup.RowCount;
            //医嘱类型
            clsT_aid_bih_ordercate_VO p_objItem = (clsT_aid_bih_ordercate_VO)this.m_objViewer.m_htOrderCate[objOrder.m_strOrderDicCateID];

            if (p_objItem == null)
            {
                if (objOrder.m_strName.ToString().Trim().Equals("术后医嘱"))
                {
                    objRow.Cells["dtv_Name"].Value           = objOrder.m_strName.ToString();
                    objRow.Cells["dtv_Name"].Style.Alignment = DataGridViewContentAlignment.BottomCenter;
                    objRow.Tag = objOrder;
                    return;
                }
                else if (objOrder.m_strName.ToString().Trim().Equals("转科医嘱"))
                {
                    objRow.Cells["dtv_Name"].Value           = objOrder.m_strName.ToString();
                    objRow.Cells["dtv_Name"].Style.Alignment = DataGridViewContentAlignment.BottomCenter;
                    objRow.Tag = objOrder;
                    return;
                }
            }
            if (objOrder.m_intExecuteType == 1)
            {
                //方
                objRow.Cells["dtv_RecipeNo"].Value = " " + objOrder.m_intRecipenNo2.ToString();
            }
            //价格
            //objRow["Price"] =objOrder.m_dmlPrice.ToString("0.0000");

            //“方法”列。用于显示检验医嘱的样本类型,和检查医嘱的部位信息
            if (!objOrder.m_strPARTID_VCHR.Trim().Equals(""))
            {
                objRow.Cells["dtv_method"].Value = objOrder.m_strPARTNAME_VCHR;
            }
            else if (!objOrder.m_strSAMPLEID_VCHR.Trim().Equals(""))
            {
                objRow.Cells["dtv_method"].Value = objOrder.m_strSAMPLEName_VCHR;
            }


            //总量  N天共M片。N-表示出院带药的天数,M-表示出院带药合计的数量
            if (objOrder.m_intExecuteType == 3)
            {
                objRow.Cells["dtv_sum"].Value = objOrder.m_intOUTGETMEDDAYS_INT.ToString() + "天共" + Convert.ToString(objOrder.m_dmlGet * objOrder.m_intOUTGETMEDDAYS_INT) + objOrder.m_strGetunit;
            }
            else
            {
                objRow.Cells["dtv_sum"].Value = "";
            }

            //开始执行时间
            objRow.Cells["dtv_StartDate"].Value = DateTimeToString(objOrder.m_dtExecutedate);
            //停嘱者
            objRow.Cells["dtv_Stoper"].Value = objOrder.m_strStoper;
            //审核停止者
            objRow.Cells["ASSESSORFORSTOP_CHR"].Value = objOrder.m_strASSESSORFORSTOP_CHR;
            //停嘱时间
            objRow.Cells["dtv_FinishDate"].Value = DateTimeToCutYearDateString(objOrder.m_dtFinishDate);
            //执行时间/嘱托
            objRow.Cells["dtv_REMARK"].Value = objOrder.m_strREMARK_VCHR;
            // 药品来源: 0 药房(全计费,摆药); 1 患者自备(只收费用法加收项目,不摆药); 2 科室基数(全计费,不摆药)
            switch (objOrder.RateType)
            {
            case 0:
                objRow.Cells["RATETYPE_INT"].Value = "药房";
                break;

            case 1:
                objRow.Cells["RATETYPE_INT"].Value = "自备";
                break;

            case 2:
                objRow.Cells["RATETYPE_INT"].Value = "基数";
                break;

            default:
                break;
            }


            //校对护士
            objRow.Cells["ASSESSORFOREXEC_CHR"].Value = objOrder.m_strASSESSORFOREXEC_CHR;
            //录入时间
            objRow.Cells["CREATEDATE_DAT"].Value = DateTimeToString(objOrder.m_dtCreatedate);
            //下嘱时间(开始时间)
            objRow.Cells["m_dtPOSTDATE_DAT"].Value = DateTimeToCutYearDateString(objOrder.m_dtPostdate);
            objRow.Cells["m_dtStartDate"].Value    = DateTimeToCutYearDateString(objOrder.m_dtStartDate);

            /*<===============================*/
            //皮试
            string m_strFeel = "";

            if (objOrder.m_intISNEEDFEEL == 1)
            {
                switch (objOrder.m_intFEEL_INT)
                {
                case 0:
                    m_strFeel = " AST( ) ";
                    break;

                case 1:
                    m_strFeel = " AST(-) ";
                    break;

                case 2:
                    m_strFeel = " AST(+) ";
                    break;
                }
            }
            /*<==================================*/
            #region 医嘱类型控制列表界面
            if (p_objItem != null)
            {
                objOrder.m_strOrderDicCateName = p_objItem.m_strVIEWNAME_VCHR;

                if (!objOrder.m_strExecFreqID.Trim().Equals(this.m_objViewer.m_objSpecateVo.m_strCONFREQID_CHR.Trim()))//连续性医嘱不显示剂量
                {
                    if (p_objItem.m_intDOSAGEVIEWTYPE == 1)
                    {
                        //用量
                        if (objOrder.m_dmlDosage > 0)
                        {
                            objRow.Cells["dtv_Dosage"].Value = objOrder.m_dmlDosage.ToString() + "" + objOrder.m_strDosageUnit;
                        }
                        else
                        {
                            objRow.Cells["dtv_Dosage"].Value = "";
                        }
                    }
                    else
                    {
                        objRow.Cells["dtv_Dosage"].Value = "";
                    }
                }
                else
                {
                    objRow.Cells["dtv_Dosage"].Value = "";
                }
                if (p_objItem.m_intUSAGEVIEWTYPE == 1)
                {
                    //用法
                    objRow.Cells["dtv_UseType"].Value = objOrder.m_strDosetypeName;
                }
                else
                {
                    //用法
                    objRow.Cells["dtv_UseType"].Value = "";
                }
                if (objOrder.m_intExecuteType == 1)//长临才显示频率,临嘱不显示
                {
                    if (p_objItem.m_intExecuFrenquenceType == 1)
                    {
                        //频率
                        objRow.Cells["dtv_Freq"].Value = objOrder.m_strExecFreqName;
                    }
                    else
                    {
                        //当不显示时,医嘱表中的为修改标志=1时也显示出来 (0-普通状态,1-频率修改)
                        if (objOrder.m_intCHARGE_INT == 1)
                        {
                            objRow.Cells["dtv_Freq"].Value = objOrder.m_strExecFreqName;//频率
                        }
                        else
                        {
                            objRow.Cells["dtv_Freq"].Value = "";//频率
                        }
                    }
                }
                else
                {
                    objRow.Cells["dtv_Freq"].Value = "";//频率
                }

                if (p_objItem.m_intAPPENDVIEWTYPE_INT == 1)
                {
                    //补次
                    objRow.Cells["ATTACHTIMES_INT"].Value = objOrder.m_intATTACHTIMES_INT;
                }
                else
                {
                    //补次
                    objRow.Cells["ATTACHTIMES_INT"].Value = "";
                }
                //领量
                if (p_objItem.m_intQTYVIEWTYPE_INT == 1)
                {
                    if (objOrder.m_dmlGet > 0)
                    {
                        objRow.Cells["dtv_Get"].Value = objOrder.m_dmlGet.ToString() + " " + objOrder.m_strGetunit;
                    }
                    else
                    {
                        objRow.Cells["dtv_Get"].Value = "";
                    }
                }
                else
                {
                    //领量
                    objRow.Cells["dtv_Get"].Value = "";
                }
            }
            else
            {
                //用量
                objRow.Cells["dtv_Dosage"].Value = "";
                //频率
                objRow.Cells["dtv_Freq"].Value = "";
                //用法
                objRow.Cells["dtv_UseType"].Value = "";
                //补次
                objRow.Cells["ATTACHTIMES_INT"].Value = "";
                //领量
                objRow.Cells["dtv_Get"].Value = "";
            }
            #endregion
            //名称
            objRow.Cells["dtv_Name"].Value = objOrder.m_strName + " " + objRow.Cells["dtv_Dosage"].Value.ToString() + " " + objRow.Cells["dtv_UseType"].Value.ToString() + " " + objRow.Cells["dtv_Freq"].Value.ToString() + objOrder.m_strPARTNAME_VCHR + m_strFeel;
            //名称格式控制
            if (p_objItem != null)
            {
                if (p_objItem.m_strVIEWNAME_VCHR.ToString().Trim() == "文字医嘱")
                {
                    objRow.Cells["dtv_Name"].Value = "   " + objRow.Cells["dtv_Name"].Value.ToString();
                }
            }

            /*<=====================================================================*/
            //医保
            objRow.Cells["MedicareTypeName"].Value = objOrder.m_strMedicareTypeName;
            //医生名称
            objRow.Cells["dtv_DOCTOR_VCHR"].Value = objOrder.m_strDOCTOR_VCHR;
            //开单科室
            objRow.Cells["dtv_CREATEAREA_Name"].Value = objOrder.m_strCREATEAREA_Name;
            //作废人
            objRow.Cells["dtv_DELETERNAME_VCHR"].Value = objOrder.m_strDELETERNAME_VCHR;
            //作废时间
            objRow.Cells["dtv_DELETE_DAT"].Value = objOrder.m_strDELETE_DAT;
            //修改人姓名
            objRow.Cells["dtv_ChangedID"].Value = objOrder.m_strChangedName_CHR;
            //修改人时间
            objRow.Cells["dtv_ChangedDate"].Value = DateTimeToString(objOrder.m_dtChanged_DAT);

            // 同方号的子医嘱不用再显示:长/临、类别、用法、频率、状态、下嘱医生
            //长/临
            if (objOrder.m_intExecuteType == 1)
            {
                objRow.Cells["dtv_ExecuteType"].Value = "长期";
            }
            else if (objOrder.m_intExecuteType == 2)
            {
                objRow.Cells["dtv_ExecuteType"].Value = "临时";
            }
            else if (objOrder.m_intExecuteType == 3)
            {
                objRow.Cells["dtv_ExecuteType"].Value = "带药";
            }
            else
            {
                objRow.Cells["dtv_ExecuteType"].Value = "";
            }

            //出院带药天数
            if (objOrder.m_intExecuteType == 3)
            {
                objRow.Cells["dtv_OUTGETMEDDAYS_INT"].Value = objOrder.m_intOUTGETMEDDAYS_INT.ToString() + "天";
            }
            else
            {
                objRow.Cells["dtv_OUTGETMEDDAYS_INT"].Value = "";
            }
            //医嘱类型名称
            objRow.Cells["viewname_vchr"].Value = objOrder.m_strOrderDicCateName.ToString().Trim();
            //医嘱状态 执行状态{-1作废医嘱;0-创建;1-提交;2-执行;3-停止;4-重整;5- 已审核提交;6-审核停止;7-退回;}
            switch (objOrder.m_intStatus)
            {
            case -1:
                objRow.Cells["STATUS_INT"].Value = "作废";
                break;

            case 0:
                objRow.Cells["STATUS_INT"].Value = "新开";
                break;

            case 1:
                objRow.Cells["STATUS_INT"].Value = "提交";
                break;

            case 2:
                objRow.Cells["STATUS_INT"].Value = "执行";
                break;

            case 3:
                objRow.Cells["STATUS_INT"].Value = "停止";
                break;

            case 4:
                objRow.Cells["STATUS_INT"].Value = "重整";
                break;

            case 5:
                objRow.Cells["STATUS_INT"].Value = "转抄";
                break;

            case 6:
                objRow.Cells["STATUS_INT"].Value = "审核停止";
                break;

            case 7:
                objRow.Cells["STATUS_INT"].Value = "退回";
                break;

            default:
                objRow.Cells["STATUS_INT"].Value = "";
                break;
            }
            //下嘱医生
            objRow.Cells["CREATOR_CHR"].Value = objOrder.m_strCreator;
            //执行人
            objRow.Cells["dtv_Executor"].Value = objOrder.m_strExecutor;

            /*<==================================================================*/
            objRow.Tag = objOrder;
        }
Exemplo n.º 9
0
 /// <summary>
 /// 修改日期
 /// </summary>
 /// <param name="m_intValue"></param>
 public frmSelectBox(clsBIHOrder order, int m_intValue)
 {
     ReOrder     = order;
     m_intStatue = m_intValue;
     InitializeComponent();
 }
Exemplo n.º 10
0
        /// <summary>
        /// 医嘱记录向 医嘱组套成员的转换
        /// </summary>
        /// <param name="objItem"></param>
        /// <param name="p_dtResult"></param>
        /// <returns></returns>
        public long m_InitValueOrderGroupDetail(clsBIHOrder objItem, ref DataTable drDataResult, bool ifParent, bool blnSame)
        {
            DataRow drDataRow;

            drDataRow = drDataResult.NewRow();
            //MessageBox.Show(drDataResult.Columns.Count.ToString());
            long lngRes = 0;

            /*
             * //if(drDataRow["DETAILID_CHR"]!=System.DBNull.Value && drDataRow["DETAILID_CHR"]!=null)
             *      //objItem.m_strDETAILID_CHR =drDataRow["DETAILID_CHR"].ToString().Trim();
             *
             * //if(drDataRow["GROUPID_CHR"]!=System.DBNull.Value && drDataRow["GROUPID_CHR"]!=null)
             *      //objItem.m_strGROUPID_CHR =drDataRow["GROUPID_CHR"].ToString().Trim();
             * if(drDataRow["ORDERDICID_CHR"]!=System.DBNull.Value && drDataRow["ORDERDICID_CHR"]!=null)
             *      //objItem.m_strORDERDICID_CHR =drDataRow["ORDERDICID_CHR"].ToString().Trim();
             *      drDataRow["ORDERDICID_CHR"]=objItem.m_strOrderDicID.ToString().Trim();
             * //if(drDataRow["FREQID_CHR"]!=System.DBNull.Value && drDataRow["FREQID_CHR"]!=null)
             *      //objItem.m_strFREQID_CHR =drDataRow["FREQID_CHR"].ToString().Trim();
             *
             * if(drDataRow["DOSAGE_DEC"]!=System.DBNull.Value && drDataRow["DOSAGE_DEC"]!=null)
             *      //objItem.m_fltDOSAGE_DEC =Convert.ToSingle(drDataRow["DOSAGE_DEC"].ToString());
             *      drDataRow["DOSAGE_DEC"]=objItem.m_dmlDosage.ToString().Trim();
             * if(drDataRow["DOSAGEUNIT_CHR"]!=System.DBNull.Value && drDataRow["DOSAGEUNIT_CHR"]!=null)
             *      //objItem.m_strDOSAGEUNIT_CHR =drDataRow["DOSAGEUNIT_CHR"].ToString().Trim();
             *      drDataRow["DOSAGEUNIT_CHR"]=objItem.m_strDosageUnit.ToString().Trim();
             * if(drDataRow["USE_DEC"]!=System.DBNull.Value && drDataRow["USE_DEC"]!=null)
             *      //objItem.m_fltUSE_DEC =Convert.ToSingle(drDataRow["USE_DEC"].ToString());
             *      drDataRow["USE_DEC"]=objItem.m_dmlUse.ToString().Trim();
             * if(drDataRow["USEUNIT_CHR"]!=System.DBNull.Value && drDataRow["USEUNIT_CHR"]!=null)
             *      //objItem.m_strUSEUNIT_CHR =drDataRow["USEUNIT_CHR"].ToString().Trim();
             *      drDataRow["USEUNIT_CHR"]=objItem.m_strUseunit.ToString().Trim();
             * if(drDataRow["GET_DEC"]!=System.DBNull.Value && drDataRow["GET_DEC"]!=null)
             *      //objItem.m_fltGET_DEC =Convert.ToSingle(drDataRow["GET_DEC"].ToString());
             *      drDataRow["GET_DEC"]=objItem.m_dmlGet.ToString().Trim();
             * if(drDataRow["GETUNIT_CHR"]!=System.DBNull.Value && drDataRow["GETUNIT_CHR"]!=null)
             *      //objItem.m_strGETUNIT_CHR =drDataRow["GETUNIT_CHR"].ToString().Trim();
             *      drDataRow["GETUNIT_CHR"]=objItem.m_strGetunit.ToString().Trim();
             * if(drDataRow["DOSETYPE_CHR"]!=System.DBNull.Value && drDataRow["DOSETYPE_CHR"]!=null)
             *      //objItem.m_strDOSETYPE_CHR =drDataRow["DOSETYPE_CHR"].ToString().Trim();
             *      drDataRow["DOSETYPE_CHR"]=objItem.m_strDosetypeID.ToString().Trim();
             * if(drDataRow["ENTRUST_VCHR"]!=System.DBNull.Value && drDataRow["ENTRUST_VCHR"]!=null)
             *      //objItem.m_strENTRUST_VCHR =drDataRow["ENTRUST_VCHR"].ToString().Trim();
             *      drDataRow["ENTRUST_VCHR"]=objItem.m_strEntrust.ToString().Trim();
             * if(drDataRow["ISRICH_INT"]!=System.DBNull.Value && drDataRow["ISRICH_INT"]!=null)
             *      //objItem.m_intISRICH_INT =Convert.ToInt32(drDataRow["ISRICH_INT"].ToString());
             *      drDataRow["ISRICH_INT"]=objItem.m_intIsRich.ToString().Trim();
             * //父诊疗项目id
             * if(drDataRow["PARENTID_CHR"]!=System.DBNull.Value && drDataRow["PARENTID_CHR"]!=null)
             *      //objItem.m_strPARENTID_CHR =drDataRow["PARENTID_CHR"].ToString().Trim();
             *      drDataRow["PARENTID_CHR"]=objItem.m_strParentID.ToString().Trim();
             * //	if(drDataRow["IFPARENTID_INT"]!=System.DBNull.Value && drDataRow["IFPARENTID_INT"]!=null)
             *      //objItem.m_intIFPARENTID_INT =Convert.ToInt32(drDataRow["IFPARENTID_INT"].ToString());
             */
            /*
             *      drDataRow["ORDERDICID_CHR"]=objItem.m_strOrderDicID.ToString().Trim();
             *
             *      drDataRow["DOSAGE_DEC"]=objItem.m_dmlDosage.ToString().Trim();
             *
             *      drDataRow["DOSAGEUNIT_CHR"]=objItem.m_strDosageUnit.ToString().Trim();
             *
             *      drDataRow["USE_DEC"]=objItem.m_dmlUse.ToString().Trim();
             *
             *      drDataRow["USEUNIT_CHR"]=objItem.m_strUseunit.ToString().Trim();
             *
             *      drDataRow["GET_DEC"]=objItem.m_dmlGet.ToString().Trim();
             *
             *      drDataRow["GETUNIT_CHR"]=objItem.m_strGetunit.ToString().Trim();
             *
             *      drDataRow["DOSETYPE_CHR"]=objItem.m_strDosetypeID.ToString().Trim();
             *
             *      drDataRow["ENTRUST_VCHR"]=objItem.m_strEntrust.ToString().Trim();
             *
             *      drDataRow["ISRICH_INT"]=objItem.m_intIsRich.ToString().Trim();
             *
             *      drDataRow["PARENTID_CHR"]=objItem.m_strParentID.ToString().Trim();
             */
            drDataRow["ORDERDICID_CHR"] = objItem.m_strOrderDicID;
            drDataRow["DOSAGE_DEC"]     = objItem.m_dmlDosage;
            drDataRow["DOSAGEUNIT_CHR"] = objItem.m_strDosageUnit;
            drDataRow["USE_DEC"]        = objItem.m_dmlUse;
            drDataRow["USEUNIT_CHR"]    = objItem.m_strUseunit;
            drDataRow["GET_DEC"]        = objItem.m_dmlGet;
            drDataRow["GETUNIT_CHR"]    = objItem.m_strGetunit;
            drDataRow["DOSETYPE_CHR"]   = objItem.m_strDosetypeID;
            drDataRow["ENTRUST_VCHR"]   = objItem.m_strEntrust;
            drDataRow["ISRICH_INT"]     = objItem.m_intIsRich;
            drDataRow["FREQID_CHR"]     = objItem.m_strExecFreqID;
            if (ifParent)
            {
                drDataRow["IFPARENTID_INT"] = 1;
                m_strParentID = objItem.m_strOrderDicID;
            }
            else
            {
                drDataRow["IFPARENTID_INT"] = 0;
                if (blnSame)
                {
                    drDataRow["PARENTID_CHR"] = m_strParentID.ToString().Trim();
                }
            }
//			drDataRow["PARENTID_CHR"]=objItem.m_strParentID;


            drDataResult.Rows.Add(drDataRow);
            return(lngRes);
        }