Beispiel #1
0
        /// <summary>
        /// 加载医院经办人
        /// </summary>
        /// <param name="p_objResult">输出数据</param>
        /// <returns></returns>
        public long m_lngGetUserRegister(out clsDGYBjbrzc_VO[] p_objResult)
        {
            p_objResult = new clsDGYBjbrzc_VO[0];
            com.digitalwave.iCare.middletier.HIS.clsYBCSQuerySVC objSvc = (com.digitalwave.iCare.middletier.HIS.clsYBCSQuerySVC)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.HIS.clsYBCSQuerySVC));
            long lngRes = objSvc.m_lngGetUserRegister(out p_objResult);

            objSvc.Dispose();
            return(lngRes);
        }
Beispiel #2
0
        /// <summary>
        /// 保存医院经办人注册记录
        /// </summary>
        /// <param name="m_clsDGYBjbrzcVo">办人注册VO</param>
        /// <returns></returns>
        public long m_lngSaveUserRegister(clsDGYBjbrzc_VO m_clsDGYBjbrzcVo)
        {
            com.digitalwave.iCare.middletier.HIS.clsYBCSRequiredSVC objSvc =
                (com.digitalwave.iCare.middletier.HIS.clsYBCSRequiredSVC)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.HIS.clsYBCSRequiredSVC));
            long lngRes = objSvc.m_lngSaveUserRegister(m_clsDGYBjbrzcVo);

            objSvc.Dispose();
            return(lngRes);
        }
Beispiel #3
0
 /// <summary>
 /// 修改列表数据
 /// </summary>
 /// <param name="objItem">注册数据</param>
 private void m_mthModifyDetail(clsDGYBjbrzc_VO objItem)
 {
     this.m_objViewer.m_lsvDetail.Items[m_SelRow].SubItems[0].Text = m_objItem.YYBH;
     this.m_objViewer.m_lsvDetail.Items[m_SelRow].SubItems[1].Text = m_objItem.JBR;
     this.m_objViewer.m_lsvDetail.Items[m_SelRow].SubItems[2].Text = m_objItem.JBRLX;
     this.m_objViewer.m_lsvDetail.Items[m_SelRow].SubItems[3].Text = m_objItem.XM;
     this.m_objViewer.m_lsvDetail.Items[m_SelRow].SubItems[4].Text = m_objItem.GMSFHM;
     this.m_objViewer.m_lsvDetail.Items[m_SelRow].SubItems[5].Text = m_objItem.SSKS;
     this.m_objViewer.m_lsvDetail.Items[m_SelRow].SubItems[6].Text = m_objItem.BGLX;
     this.m_objViewer.m_lsvDetail.Items[m_SelRow].SubItems[7].Text = m_objItem.JLSJ.Length == 0 ? System.DateTime.Now.ToString() : m_objItem.JLSJ;
 }
Beispiel #4
0
 /// <summary>
 /// 列表双击事件
 /// </summary>
 public void m_mthDetailSel()
 {
     if (this.m_objViewer.m_lsvDetail.SelectedItems.Count > 0)
     {
         if (this.m_objViewer.m_lsvDetail.SelectedItems[0].Tag != null)
         {
             clsDGYBjbrzc_VO objItem = (clsDGYBjbrzc_VO)this.m_objViewer.m_lsvDetail.SelectedItems[0].Tag;
             this.m_SelRow = this.m_objViewer.m_lsvDetail.SelectedItems[0].Index;
             m_mthSetViewInfo(objItem);
         }
     }
 }
Beispiel #5
0
        /// <summary>
        /// 获得列表数据
        /// </summary>
        public void m_mthGetDetailList()
        {
            this.m_objViewer.m_lsvDetail.Items.Clear();
            clsDGYBjbrzc_VO[] objItemArr = new clsDGYBjbrzc_VO[0];
            long lngRes = this.objDomain.m_lngGetUserRegister(out objItemArr);

            if (lngRes > 0 && objItemArr.Length > 0)
            {
                for (int i1 = 0; i1 < objItemArr.Length; i1++)
                {
                    objAllItem.Add(objItemArr[i1]);
                    m_mthInsertDetail(objItemArr[i1]);
                }
                if (this.m_objViewer.m_lsvDetail.Items.Count != 0)
                {
                    this.m_objViewer.m_lsvDetail.Items[0].Selected = true;
                }
            }
        }
Beispiel #6
0
        /// <summary>
        /// 医院经办人注册
        /// </summary>
        /// <param name="m_intBglx">变更类型:字典1、新增2、修改</param>
        public void m_mthUserRegister(int m_intBglx)
        {
            if (this.m_objItem == null)
            {
                m_intBglx = 1;
            }
            else
            {
                m_intBglx = 2;
            }
            m_objItem        = new clsDGYBjbrzc_VO();
            m_objItem.YYBH   = this.m_objViewer.txtHospitalNO.Text.Trim();
            m_objItem.XM     = this.m_objViewer.txtName.Text.Trim();
            m_objItem.GMSFHM = this.m_objViewer.txtIdcard.Text.Trim();
            m_objItem.SSKS   = this.m_objViewer.txtDeptName.Text.Trim();
            m_objItem.JBR    = this.m_objViewer.txtJbr.Text.Trim();
            m_objItem.JBRLX  = this.m_objViewer.cmb_UserType.Text.Trim().Split('-')[0].ToString();
            m_objItem.BGLX   = m_intBglx.ToString();
            if (string.IsNullOrEmpty(m_objItem.YYBH) || string.IsNullOrEmpty(m_objItem.XM) || string.IsNullOrEmpty(m_objItem.GMSFHM) || string.IsNullOrEmpty(m_objItem.JBR) || string.IsNullOrEmpty(m_objItem.JBRLX))
            {
                MessageBox.Show("不能为空,请检查!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Question);
                return;
            }
            long lngRes = clsYBPublic_cs.m_lngUserRegister(m_objItem);

            if (lngRes > 0)
            {
                lngRes = this.objDomain.m_lngSaveUserRegister(m_objItem);
                if (m_intBglx == 1)
                {
                    m_mthModifyDetail(m_objItem);
                    objAllItem.Add(m_objItem);
                    MessageBox.Show("医院经办人注册成功!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Question);
                }
                else
                {
                    m_mthModifyDetail(m_objItem);
                    MessageBox.Show("医院经办人修改成功!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Question);
                }
            }
            m_mthClear();
        }
Beispiel #7
0
        /// <summary>
        /// 设置窗体数据
        /// </summary>
        /// <param name="objItem">输液叫号控制台数据</param>
        public void m_mthSetViewInfo(clsDGYBjbrzc_VO objItem)
        {
            this.m_objItem = objItem;

            if (this.m_objItem == null)
            {
                m_mthClear();
                this.m_objViewer.txtName.Focus();
            }
            else
            {
                m_mthClear();
                this.m_objViewer.txtName.Text     = this.m_objItem.XM.Trim();
                this.m_objViewer.txtIdcard.Text   = this.m_objItem.GMSFHM.Trim();
                this.m_objViewer.txtDeptName.Text = this.m_objItem.SSKS.Trim();
                this.m_objViewer.txtJbr.Text      = this.m_objItem.JBR.Trim();
                string strJbrlx    = this.m_objItem.JBRLX.Trim();
                int    intUserType = 0;
                switch (strJbrlx)
                {
                case "1":
                    intUserType = 0;
                    break;

                case "2":
                    intUserType = 1;
                    break;

                case "3":
                    intUserType = 2;
                    break;

                default:
                    intUserType = 0;
                    break;
                }
                this.m_objViewer.cmb_UserType.SelectedIndex = intUserType;
                this.m_objViewer.txtName.Focus();
            }
        }
Beispiel #8
0
        /// <summary>
        /// 向列表插入一条数据
        /// </summary>
        /// <param name="objItem"></param>
        private void m_mthInsertDetail(clsDGYBjbrzc_VO objItem)
        {
            if (objItem != null)
            {
                ListViewItem lsvItem = new ListViewItem(objItem.YYBH.ToString());
                lsvItem.SubItems.Add(objItem.JBR);
                //字典项 1、普通经办人 2、门诊收费员 3、自助终端
                string strJbrlx;
                switch (objItem.JBRLX)
                {
                case "1":
                    strJbrlx = "普通经办人";
                    break;

                case "2":
                    strJbrlx = "门诊收费员";
                    break;

                case "3":
                    strJbrlx = "自助终端";
                    break;

                default:
                    strJbrlx = "普通经办人";
                    break;
                }
                lsvItem.SubItems.Add(strJbrlx);
                lsvItem.SubItems.Add(objItem.XM);
                lsvItem.SubItems.Add(objItem.GMSFHM);
                lsvItem.SubItems.Add(objItem.SSKS);
                //字典 1、新增 2、修改
                lsvItem.SubItems.Add(objItem.BGLX);
                lsvItem.SubItems.Add(objItem.JLSJ);
                lsvItem.Tag = objItem;
                this.m_objViewer.m_lsvDetail.Items.Add(lsvItem);
            }
        }