Пример #1
0
 private void ChargeVoToOCDVo(clsBIHPatientCharge objCharge, ref clsORDERCHARGEDEPT_VO objItem)
 {
     objItem.m_decAmount_dec         = objCharge.m_dmlAmount;
     objItem.m_decUnitprice_dec      = objCharge.m_dmlUnitPrice;
     objItem.m_strChargeitemid_chr   = objCharge.m_strChargeItemID;
     objItem.m_strChargeitemname_chr = objCharge.m_strChargeItemName;
     objItem.m_strClacarea_chr       = objCharge.m_strClacArea;
     objItem.m_strCreatearea_chr     = objCharge.m_strCreateArea;
     objItem.m_strCreatedate_dat     = objCharge.m_dtCreateDate;
     objItem.m_strCreator_vchr       = LoginInfo.m_strEmpName;
     objItem.m_strCreatorid_chr      = LoginInfo.m_strEmpID;
     objItem.m_strOrderdicid_chr     = m_objExecOrder.m_strOrderDicID;
     objItem.m_strOrderid_chr        = m_objExecOrder.m_strOrderID;
     objItem.m_strSeq_int            = m_strSeq_int;
     objItem.m_strSpec_vchr          = m_txtSpec.Text.Trim();
     objItem.m_strUnit_vchr          = objCharge.m_strUnit;
     objItem.REMARK = m_txtDes.Text.ToString().Trim();
     //续用类型
     objItem.m_intCONTINUEUSETYPE_INT = clsConverter.ToInt(this.m_cboCONTINUEUSETYPE_INT.m_strGetID(this.m_cboCONTINUEUSETYPE_INT.SelectedIndex));
     objItem.m_strINSURACEDESC_VCHR   = objCharge.m_strINSURACEDESC_VCHR;
     //补次的一次的剂量
     objItem.m_decSINGLEAMOUNT_DEC = objItem.m_decAmount_dec;
     if (objItem.m_strClacarea_chr.ToString().Equals(""))
     {
         objItem.m_strClacarea_chr = this.LoginInfo.m_strInpatientAreaID;
     }
 }
Пример #2
0
        private void m_cmdOk_Click(object sender, System.EventArgs e)
        {
            if (((clsCtl_ChargeItem)this.objController).DeptTag)
            {
                ((clsCtl_ChargeItem)this.objController).SaveTheDeptChange();
                this.DialogResult = DialogResult.OK;
                this.Close();
                return;
            }
            if (!m_blnCheck())
            {
                return;
            }


            long ret = 0;
            clsBIHPatientCharge objCharge = m_objGetCharge();

            if (m_intNewStatus == 0)
            {
                if (m_intStatus == 1)
                {
                    ret = m_objService.m_lngAddPatientCharge(objCharge);
                }
                else if (m_intStatus == 2)
                {
                    ret = m_objService.m_mthModifyPatientCharge(objCharge);
                }
                else
                {
                    return;
                }
            }
            else
            {
                clsORDERCHARGEDEPT_VO objItem = new clsORDERCHARGEDEPT_VO();
                ChargeVoToOCDVo(objCharge, ref objItem);
                if (m_intNewStatus == 1)//新增信息到 [住院诊疗项目收费项目执行客户表-t_opr_bih_orderchargedept]
                {
                    ret = m_ObjCHARGEDService.m_lngAddORDERCHARGEDEPT(objItem);
                }
                else if (m_intNewStatus == 2)
                {
                    ret = m_ObjCHARGEDService.m_lngChangeORDERCHARGEDEPT(objItem);
                }
            }
            if (ret > 0)
            {
                m_objTempCharge   = objCharge;
                this.DialogResult = DialogResult.OK;
                this.Close();
            }
            else
            {
                MessageBox.Show("保存失败!");
            }
        }
Пример #3
0
        public long m_lngGetORDERCHARGEDEPT(string orderid_chr, out clsORDERCHARGEDEPT_VO objCharge)
        {
            long lngRes = 0;

            objCharge = new clsORDERCHARGEDEPT_VO();
            com.digitalwave.iCare.middletier.HRPService.clsHRPTableService objHRPSvc = new clsHRPTableService();
            System.Data.IDataParameter[] arrParams = null;
            DataTable dtbResult = new DataTable();
            string    strSQL    = "";

            strSQL = @"
                        select 
                         SEQ_INT,     ORDERID_CHR,   ORDERDICID_CHR,  CLACAREA_CHR,
                        CREATEAREA_CHR,CHARGEITEMNAME_CHR,SPEC_VCHR,  UNIT_VCHR,  
                         AMOUNT_DEC,    UNITPRICE_DEC,     CREATORID_CHR,CREATOR_VCHR,
                         CREATEDATE_DAT
                        from T_OPR_BIH_ORDERCHARGEDEPT                  
                        where
                        orderid_chr=?
                        ";
            int n = -1;

            objHRPSvc.CreateDatabaseParameter(1, out arrParams);
            n++; arrParams[n].Value = objCharge.m_strSeq_int;
            try
            {
                lngRes = objHRPSvc.lngGetDataTableWithParameters(strSQL, ref dtbResult, arrParams);
                if (lngRes > 0 && dtbResult.Rows.Count > 0)
                {
                    objCharge.m_strSeq_int        = clsConverter.ToString(dtbResult.Rows[0]["SEQ_INT"].ToString());
                    objCharge.m_strOrderid_chr    = clsConverter.ToString(dtbResult.Rows[0]["ORDERID_CHR"].ToString());
                    objCharge.m_strOrderdicid_chr = clsConverter.ToString(dtbResult.Rows[0]["ORDERDICID_CHR"].ToString());
                    objCharge.m_strClacarea_chr   = clsConverter.ToString(dtbResult.Rows[0]["CLACAREA_CHR"].ToString());

                    objCharge.m_strCreatearea_chr     = clsConverter.ToString(dtbResult.Rows[0]["CREATEAREA_CHR"].ToString());
                    objCharge.m_strChargeitemname_chr = clsConverter.ToString(dtbResult.Rows[0]["CHARGEITEMNAME_CHR"].ToString());
                    objCharge.m_strSpec_vchr          = clsConverter.ToString(dtbResult.Rows[0]["SPEC_VCHR"].ToString());
                    objCharge.m_strUnit_vchr          = clsConverter.ToString(dtbResult.Rows[0]["UNIT_VCHR"].ToString());

                    objCharge.m_decAmount_dec    = clsConverter.ToDecimal(dtbResult.Rows[0]["AMOUNT_DEC"].ToString());
                    objCharge.m_decUnitprice_dec = clsConverter.ToDecimal(dtbResult.Rows[0]["UNITPRICE_DEC"].ToString());
                    objCharge.m_strCreatorid_chr = clsConverter.ToString(dtbResult.Rows[0]["CREATORID_CHR"].ToString());
                    objCharge.m_strCreator_vchr  = clsConverter.ToString(dtbResult.Rows[0]["CREATOR_VCHR"].ToString());

                    objCharge.m_strCreatedate_dat = clsConverter.ToDateTime(dtbResult.Rows[0]["CREATEDATE_DAT"].ToString());
                }
            }
            catch (Exception objEx)
            {
                string strTmp = objEx.Message;
                com.digitalwave.Utility.clsLogText objLogger = new clsLogText();
                bool blnRes = objLogger.LogError(objEx);
            }
            return(lngRes);
        }
Пример #4
0
        public long m_lngChangeORDERCHARGEDEPT(clsORDERCHARGEDEPT_VO objCharge)
        {
            long lngAff = 0;
            long lngRes = 0;

            com.digitalwave.iCare.middletier.HRPService.clsHRPTableService objHRPSvc = new clsHRPTableService();
            System.Data.IDataParameter[] arrParams = null;
            DataTable dtbResult = new DataTable();
            string    strSQL    = "";

            strSQL = @"
                        update T_OPR_BIH_ORDERCHARGEDEPT                  
                        set   
                        CHARGEITEMID_CHR=?,CLACAREA_CHR=?,CREATEAREA_CHR=?,CHARGEITEMNAME_CHR=?,
                       SPEC_VCHR=?,UNIT_VCHR=?,   AMOUNT_DEC=?,    UNITPRICE_DEC=?,
                       REMARK=?,INSURACEDESC_VCHR=?,CONTINUEUSETYPE_INT=?,SINGLEAMOUNT_DEC=?
                        where
                        SEQ_INT=?
                        ";
            int n = -1;

            objHRPSvc.CreateDatabaseParameter(13, out arrParams);
            n++; arrParams[n].Value = objCharge.m_strChargeitemid_chr;
            n++; arrParams[n].Value = objCharge.m_strClacarea_chr;
            n++; arrParams[n].Value = objCharge.m_strCreatearea_chr;
            n++; arrParams[n].Value = objCharge.m_strChargeitemname_chr;

            n++; arrParams[n].Value = objCharge.m_strSpec_vchr;
            n++; arrParams[n].Value = objCharge.m_strUnit_vchr;
            n++; arrParams[n].Value = objCharge.m_decAmount_dec;
            n++; arrParams[n].Value = objCharge.m_decUnitprice_dec;

            n++; arrParams[n].Value = objCharge.REMARK;
            n++; arrParams[n].Value = objCharge.m_strINSURACEDESC_VCHR;
            n++; arrParams[n].Value = objCharge.m_intCONTINUEUSETYPE_INT;
            n++; arrParams[n].Value = objCharge.m_decSINGLEAMOUNT_DEC;
            n++; arrParams[n].Value = objCharge.m_strSeq_int;

            try
            {
                lngRes = objHRPSvc.lngExecuteParameterSQL(strSQL, ref lngAff, arrParams);
            }
            catch (Exception objEx)
            {
                string strTmp = objEx.Message;
                com.digitalwave.Utility.clsLogText objLogger = new clsLogText();
                bool blnRes = objLogger.LogError(objEx);
            }
            return(lngRes);
        }
Пример #5
0
        private void ListViewDetailBind(clsORDERCHARGEDEPT_VO[] m_arrDEPT_VO)
        {
            this.m_objViewer.m_dtvChangeList.Rows.Clear();
            if (m_arrDEPT_VO == null)
            {
                return;
            }
            decimal m_decSum = 0;

            for (int i = 0; i < m_arrDEPT_VO.Length; i++)
            {
                clsORDERCHARGEDEPT_VO m_objDEPTVO = m_arrDEPT_VO[i];
                this.m_objViewer.m_dtvChangeList.Rows.Add();
                DataGridViewRow row1 = this.m_objViewer.m_dtvChangeList.Rows[this.m_objViewer.m_dtvChangeList.RowCount - 1];
                row1.Cells["dtv_NO"].Value          = Convert.ToString(i + 1);             //序
                row1.Cells["dtv_ItemName"].Value    = m_objDEPTVO.m_strChargeitemname_chr; //收费项
                row1.Cells["dtv_ChargeClass"].Value = "";                                  //费用类别
                switch (m_objDEPTVO.m_intFLAG_INT)
                {
                case 0:
                    row1.Cells["dtv_ChargeClass"].Value = "主项目";
                    break;

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

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

                case 3:
                    row1.Cells["dtv_ChargeClass"].Value = "补充录入项目";
                    break;
                }
                row1.Cells["dtv_ITEMSPEC_VCHR"].Value = m_objDEPTVO.m_strSpec_vchr;                                   // 规格
                row1.Cells["dtv_MinPrice"].Value      = m_objDEPTVO.m_decUnitprice_dec;                               //单价
                row1.Cells["dtv_QTY_INT"].Value       = m_objDEPTVO.m_decAmount_dec;                                  // 数量
                row1.Cells["dtv_priceAdd"].Value      = m_objDEPTVO.m_decUnitprice_dec * m_objDEPTVO.m_decAmount_dec; // 合计
                m_decSum += m_objDEPTVO.m_decUnitprice_dec * m_objDEPTVO.m_decAmount_dec;
                row1.Tag  = m_objDEPTVO;
            }
            this.m_objViewer.m_lblChargeSum.Text = "费用合计:" + m_decSum.ToString("0.00");
        }
Пример #6
0
        public long m_lngAddORDERCHARGEDEPT(clsORDERCHARGEDEPT_VO objCharge)
        {
            long lngAff = 0;
            long lngRes = 0;

            com.digitalwave.iCare.middletier.HRPService.clsHRPTableService objHRPSvc = new clsHRPTableService();
            System.Data.IDataParameter[] arrParams = null;
            DataTable dtbResult = new DataTable();
            string    strSQL    = "";

            strSQL = @"
                        insert into T_OPR_BIH_ORDERCHARGEDEPT(                 
                        SEQ_INT,     ORDERID_CHR,   ORDERDICID_CHR,    CHARGEITEMID_CHR,
                        CLACAREA_CHR,CREATEAREA_CHR,CHARGEITEMNAME_CHR,SPEC_VCHR,
                        UNIT_VCHR,   AMOUNT_DEC,    UNITPRICE_DEC,     CREATORID_CHR,
                        CREATOR_VCHR,CREATEDATE_DAT,FLAG_INT,REMARK 
                        ,INSURACEDESC_VCHR,CONTINUEUSETYPE_INT,SINGLEAMOUNT_DEC,POFLAG_INT)
                        values
                        (
                        SEQ_PUBLIC.NEXTVAL,?,?,?,
                        ?,?,?,?,
                        ?,?,?,?,
                        ?,?,?,?
                        ,?,?,?,0
                        )
                        ";
            int n = -1;

            objHRPSvc.CreateDatabaseParameter(18, out arrParams);
            n++; arrParams[n].Value = objCharge.m_strOrderid_chr;
            n++; arrParams[n].Value = objCharge.m_strOrderdicid_chr;
            n++; arrParams[n].Value = objCharge.m_strChargeitemid_chr;

            n++; arrParams[n].Value = objCharge.m_strClacarea_chr;
            n++; arrParams[n].Value = objCharge.m_strCreatearea_chr;
            n++; arrParams[n].Value = objCharge.m_strChargeitemname_chr;
            n++; arrParams[n].Value = objCharge.m_strSpec_vchr;

            n++; arrParams[n].Value = objCharge.m_strUnit_vchr;
            n++; arrParams[n].Value = objCharge.m_decAmount_dec;
            n++; arrParams[n].Value = objCharge.m_decUnitprice_dec;
            n++; arrParams[n].Value = objCharge.m_strCreatorid_chr;

            n++; arrParams[n].Value = objCharge.m_strCreator_vchr;
            n++; arrParams[n].Value = objCharge.m_strCreatedate_dat;
            n++; arrParams[n].Value = 3;//FLAG_INT 创建标志:收费项来源于  0-主项目 1-辅助项目 2-用法带出 3-补充录入项目
            n++; arrParams[n].Value = objCharge.REMARK;
            n++; arrParams[n].Value = objCharge.m_strINSURACEDESC_VCHR;
            n++; arrParams[n].Value = objCharge.m_intCONTINUEUSETYPE_INT;
            n++; arrParams[n].Value = objCharge.m_decSINGLEAMOUNT_DEC;
            try
            {
                lngRes = objHRPSvc.lngExecuteParameterSQL(strSQL, ref lngAff, arrParams);
            }
            catch (Exception objEx)
            {
                string strTmp = objEx.Message;
                com.digitalwave.Utility.clsLogText objLogger = new clsLogText();
                bool blnRes = objLogger.LogError(objEx);
            }
            return(lngRes);
        }