Beispiel #1
0
        private void m_cmdAddHourRec_Click(object sender, EventArgs e)
        {
            if (this.OwnedForms != null && this.OwnedForms.Length == 1)
            {
                this.OwnedForms[0].BringToFront();
                this.OwnedForms[0].Show();
                return;
            }
            if (m_objBaseCurrentPatient == null)
            {
                return;
            }
            //int[] intH = m_ctlPartogram.m_intGetAvailableHours();
            frmPartogramRecordContent_GX frmSub = new frmPartogramRecordContent_GX(true, DateTime.Now, m_objBaseCurrentPatient.m_StrRegisterId, DateTime.Now, m_txtGiveBirthTime.m_objGetValue());

            frmSub.m_mthSetPatient(m_objBaseCurrentPatient);
            frmSub.FormClosed += new FormClosedEventHandler(frmSub_FormClosed);
            frmSub.Show(this);
        }
Beispiel #2
0
        void frmSub_FormClosed(object sender, FormClosedEventArgs e)
        {
            frmPartogramRecordContent_GX frm = (frmPartogramRecordContent_GX)sender;

            if (frm.DialogResult == DialogResult.OK)
            {
                clsPartogram_VO[] objContentArr = null;
                long lngRes = m_objDomain.m_lngGetAllHourValues(m_objBaseCurrentPatient.m_StrRegisterId, out objContentArr);
                if (lngRes > 0 && objContentArr != null)
                {
                    if (m_objPartogramRecord == null)
                    {
                        m_objPartogramRecord = new clsPartogramAll_VO();
                    }
                    m_objPartogramRecord.m_ObjPartogramArr = objContentArr;
                    m_ctlPartogram.m_ObjPartogramManager.m_strReAddRange(objContentArr);
                    m_ctlPartogram.m_mthRefreshDispaly();
                }
                objContentArr = null;
            }
        }
Beispiel #3
0
        private void m_ctlPartogram_m_evnPartogramEveryHourMouseDown(object sender, EventArgs e)
        {
            if (this.OwnedForms != null && this.OwnedForms.Length == 1)
            {
                this.OwnedForms[0].BringToFront();
                this.OwnedForms[0].Show();
                return;
            }
            com.digitalwave.Utility.Controls.clsPartogramEveryHourEventArgs objArg = (com.digitalwave.Utility.Controls.clsPartogramEveryHourEventArgs)e;
            if (objArg.m_objPartogramArgs != null)
            {
                StringBuilder sb = new StringBuilder();
                #region make string
                sb.Append("当前检查时间的产程内容:");
                sb.AppendLine();
                sb.Append("血压:" + objArg.m_objPartogramArgs.m_intSYSTOLICPRESSURE_INT + "/" + objArg.m_objPartogramArgs.m_intDIASTOLICPRESSURE_INT);
                sb.AppendLine();
                sb.Append("宫缩:" + objArg.m_objPartogramArgs.m_intUTERINECONTRACTION_INT + "″/" + objArg.m_objPartogramArgs.m_intUTERINECONTRACTIONMIN_INT + "′");
                sb.AppendLine();
                sb.Append("胎心率:" + objArg.m_objPartogramArgs.m_intFETALRHYTHM_INT);
                sb.AppendLine();
                if (objArg.m_objPartogramArgs.m_ObjPointArr != null)
                {
                    string strU = "宫颈口开大:" + Environment.NewLine;
                    string strD = "胎儿头下降:" + Environment.NewLine;
                    for (int i = 0; i < objArg.m_objPartogramArgs.m_ObjPointArr.Length; i++)
                    {
                        if (objArg.m_objPartogramArgs.m_ObjPointArr[i].m_intPointType_INT == 0 && objArg.m_objPartogramArgs.m_ObjPointArr[i].m_fltPointValue_INT != -1)
                        {
                            strU += "    " + objArg.m_objPartogramArgs.m_ObjPointArr[i].m_intPointMin_INT + "′/" + objArg.m_objPartogramArgs.m_ObjPointArr[i].m_fltPointValue_INT + "cm  (" + objArg.m_objPartogramArgs.m_ObjPointArr[i].m_dtmCheckDate.ToString("HH时mm分") + ")" + Environment.NewLine;
                        }
                        else if (objArg.m_objPartogramArgs.m_ObjPointArr[i].m_intPointType_INT == 1 && objArg.m_objPartogramArgs.m_ObjPointArr[i].m_fltPointValue_INT != -10)
                        {
                            strD += "    " + objArg.m_objPartogramArgs.m_ObjPointArr[i].m_intPointMin_INT + "′/" + objArg.m_objPartogramArgs.m_ObjPointArr[i].m_fltPointValue_INT + "  (" + objArg.m_objPartogramArgs.m_ObjPointArr[i].m_dtmCheckDate.ToString("HH时mm分") + ")" + Environment.NewLine;
                        }
                    }
                    sb.Append(strU + strD);
                }
                sb.Append("处理:" + objArg.m_objPartogramArgs.m_strPROCESS_R_VCHR);
                sb.AppendLine();
                sb.Append("检查时间:" + objArg.m_objPartogramArgs.m_dtmCHECKDATE_DAT.ToString("yyyy年MM月dd日 HH时mm分"));
                sb.AppendLine();
                sb.Append("最后修改:" + objArg.m_objPartogramArgs.m_strMODIFYUSERNAME_VCHR);
                sb.AppendLine();
                sb.Append("    是否修改或者删除?");
                #endregion make string
                using (frmPartogramSelected frm = new frmPartogramSelected(sb.ToString()))
                {
                    DialogResult re = frm.ShowDialog(this);
                    if (re == DialogResult.Yes)
                    {
                        frmPartogramRecordContent_GX frmSub = new frmPartogramRecordContent_GX(false, objArg.m_objPartogramArgs.m_dtmCHECKDATE_DAT, objArg.m_objPartogramArgs.m_strREGISTERID_CHR, objArg.m_objPartogramArgs.m_dtmCREATEDATE_DAT, m_txtGiveBirthTime.m_objGetValue());
                        frmSub.m_mthSetPatient(m_objBaseCurrentPatient);
                        frmSub.FormClosed += new FormClosedEventHandler(frmSub_FormClosed);
                        frmSub.Show(this);
                    }
                    else if (re == DialogResult.No)
                    {
                        //权限判断
                        string strDeptIDTemp = m_ObjCurrentArea.m_strDEPTID_CHR;
                        bool   blnIsAllow    = clsPublicFunction.IsAllowDelete(strDeptIDTemp, objArg.m_objPartogramArgs.m_strCREATEUSERID_CHR, clsEMRLogin.LoginEmployee, intFormType);
                        if (!blnIsAllow)
                        {
                            return;
                        }

                        long lngRes = m_objDomain.m_lngDeleteHour(objArg.m_objPartogramArgs.m_strREGISTERID_CHR, objArg.m_objPartogramArgs.m_dtmCREATEDATE_DAT, objArg.m_objPartogramArgs.m_intPARTOGRAM_INT,
                                                                  clsEMRLogin.LoginInfo.m_strEmpID, new clsPublicDomain().m_dtmGetServerTime());
                        if (lngRes > 0)
                        {
                            m_ctlPartogram.m_ObjPartogramManager.m_intRemove(objArg.m_objPartogramArgs.m_intPARTOGRAM_INT);
                        }
                        else
                        {
                            m_tipMain.Show("删除失败", this, m_ctlPartogram.Location, 2000);
                        }
                    }
                }
            }
            m_ctlPartogram.m_mthRefreshDispaly();
        }