示例#1
0
        /// <summary>
        /// 查询主处方
        /// </summary>
        public long m_lngGetMainRec(string strRegID, out clsOutpatientRecipe_VO[] clsVO)
        {
            long lngRes = 0;

            clsVO = new clsOutpatientRecipe_VO[0];
            com.digitalwave.iCare.middletier.HIS.clsOPDoctorSvc objSvc =
                (com.digitalwave.iCare.middletier.HIS.clsOPDoctorSvc)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.HIS.clsOPDoctorSvc));
            lngRes = objSvc.m_lngFindMainRecipe(objPrincipal, strRegID, out clsVO);
            objSvc.Dispose();
            return(lngRes);
        }
示例#2
0
        public long m_lngSaveOther(clsOutpatientRecipe_VO clsRec, clsOutpatientOtherRecipeDe_VO[] clsVO, bool IsNew)
        {
            long lngRes = 0;

            com.digitalwave.iCare.middletier.HIS.clsOPDoctorSvc objSvc =
                (com.digitalwave.iCare.middletier.HIS.clsOPDoctorSvc)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.HIS.clsOPDoctorSvc));
            if (IsNew)
            {
                lngRes = objSvc.m_lngAddOtherRecipe(objPrincipal, clsVO, clsRec);
            }
            else
            {
                lngRes = objSvc.m_lngUPDOtherRecipe(objPrincipal, clsVO);
            }
            objSvc.Dispose();
            return(lngRes);
        }
示例#3
0
        /// <summary>
        /// 确认后更改申请单状态
        /// </summary>
        public void m_mthConfirmApp()
        {
            if (this.m_objViewer.dgvDetails.Rows.Count > 0)
            {
                int num = 0;

                for (int i = 0; i < this.m_objViewer.dgvRecipe.Rows.Count; i++)
                {
                    DataGridViewRow dr = this.m_objViewer.dgvRecipe.Rows[i];
                    if (dr.Cells["colChecked"].Value.ToString() == "T" && !dr.Cells["colstatus"].Value.ToString().Contains("已确认"))
                    {
                        num++;
                    }
                }
                clsOutpatientRecipe_VO[] objRecipeVO = new clsOutpatientRecipe_VO[num];
                int numbers = -1;
                for (int i = 0; i < this.m_objViewer.dgvRecipe.Rows.Count; i++)
                {
                    DataGridViewRow dr = this.m_objViewer.dgvRecipe.Rows[i];
                    if (dr.Cells["colChecked"].Value.ToString() == "T" && !dr.Cells["colstatus"].Value.ToString().Contains("已确认"))
                    {
                        numbers++;
                        objRecipeVO[numbers] = new clsOutpatientRecipe_VO();
                        objRecipeVO[numbers].m_strOutpatRecipeNo = dr.Cells["colRepNo"].Value.ToString();
                        objRecipeVO[numbers].m_strOutpatRecipeID = dr.Cells["coldeid"].Value.ToString();
                        objRecipeVO[numbers].strDIAG_VCHR        = this.m_objViewer.LoginInfo.m_strEmpID.ToString();
                    }
                }
                objSvc.m_lngModiffyAppStatus(objRecipeVO);
                this.m_mthGetRecipeInfo();
            }
            else
            {
                MessageBox.Show("请选择需要确认的项目!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
        }