Beispiel #1
0
        /// <summary>
        /// 查询所有单据t_bse_nurseorder
        /// </summary>
        private void m_FillUsageORDERID()
        {
            clsUsageType_VO[] objResult;
            clsDcl_ChargeItem objSvc = new clsDcl_ChargeItem();
            long lngRes = objSvc.m_lngFindAllORDERIDFromT_bse_nurseorder(out objResult);

            if (lngRes > 0 && objResult.Length > 0)
            {
                ListViewItem li = null;
                for (int i1 = 0; i1 < objResult.Length; i1++)
                {
                    li = new ListViewItem(objResult[i1].m_strUsageID);                     //单据ID
                    li.SubItems.Add(objResult[i1].m_strUsageName);
                    if (objResult[i1].m_intFlag == 0)
                    {
                        li.SubItems.Add("门诊");
                    }
                    else if (objResult[i1].m_intFlag == 1)
                    {
                        li.SubItems.Add("住院");
                    }
                    li.Tag = objResult[i1];
                    this.m_lsvAll.Items.Add(li);
                }
            }
            if (m_lsvAll.Items.Count > 0)
            {
                m_lsvAll.HideSelection     = false;
                m_lsvAll.Items[0].Selected = true;
            }
        }
Beispiel #2
0
        /// <summary>
        /// 获取门诊总价及住院总价
        /// </summary>
        /// <param name="p_objPrincipal"></param>
        /// <param name="strITEMID_CHR">项目ID</param>
        /// <param name="intType">1-门诊总价,2-住院总价</param>
        /// <param name="dblQTY">数量</param>
        /// <param name="intNuit">1-领药单位,2-剂量单位</param>
        public double  m_dblCalMoney(string strITEMID_CHR, int intType, double dblQTY, int intNuit)
        {
            double            dblTotailMoney = 0;
            clsDcl_ChargeItem objChargeItem  = new clsDcl_ChargeItem();

            objChargeItem.m_lngGetChargeUsageTotailMoney(strITEMID_CHR, intType, dblQTY, intNuit, out dblTotailMoney);
            return(dblTotailMoney);
        }
Beispiel #3
0
        private void m_mthCalMoney(clsChargeItem_VO[] objResult)
        {
            clsDcl_ChargeItem objChargeItem = new clsDcl_ChargeItem();
            double            dblPrice = 0, dblUnitDosage = 0, dblMoney = 0, dblQTY = 0;
            int    intTIMES = 1, intType = 0;
            string strTem = "";

            for (int i = 0; i < this.m_dtgGroup.RowCount; i++)
            {
                dblPrice      = 0;
                dblUnitDosage = 0;
                dblMoney      = 0;
                dblQTY        = 0;
                intType       = 0;
                if (m_dtgGroup[i, "ItemPrice"] != System.DBNull.Value)
                {
                    dblPrice = double.Parse(m_dtgGroup[i, "ItemPrice"].ToString());
                }
                try
                {
                    if (m_dtgGroup[i, "DOSAGE_DEC"] != System.DBNull.Value)
                    {
                        dblUnitDosage = double.Parse(m_dtgGroup[i, "DOSAGE_DEC"].ToString());
                    }
                }
                catch { }
                //求门诊费用


                if (m_dtgGroup[i, "ClinicNumber"] != System.DBNull.Value)
                {
                    dblQTY = double.Parse(m_dtgGroup[i, "ClinicNumber"].ToString());
                }
                strTem = m_dtgGroup[i, "ClinicType"].ToString().Trim();
                if (m_dtgGroup[i, "ClinicType"] != System.DBNull.Value)
                {
                    intType = (strTem == "门诊领量单位") ? 1 : 2;
                }
                objChargeItem.m_lngGetChargeClinicUsage(dblPrice, intTIMES, dblQTY, intType, dblUnitDosage, out dblMoney);
                m_dtgGroup[i, "ITEMPRICE_MNY"] = dblMoney.ToString("0.00");

                //求住院费用


                dblQTY = 0; intType = 0;
                if (m_dtgGroup[i, "BihNumber"] != System.DBNull.Value)
                {
                    dblQTY = double.Parse(m_dtgGroup[i, "BihNumber"].ToString());
                }
                strTem = m_dtgGroup[i, "BihType"].ToString().Trim();
                if (m_dtgGroup[i, "BihType"] != System.DBNull.Value)
                {
                    intType = (strTem == "住院领量单位") ? 1 : 2;
                }
                objChargeItem.m_lngGetChargeBIHUsage(dblPrice, intTIMES, dblQTY, intType, dblUnitDosage, out dblMoney);
                m_dtgGroup[i, "BIHITEMPRICE_MNY"] = dblMoney.ToString("0.00");
            }
        }
 public clsControlChargeItemQuery()
 {
     objSvc = new clsDcl_ChargeItem();
 }