/// <summary>
        /// 根据传入参数,修改指定的节点信息
        /// </summary>
        /// <param name="node">待修改的节点</param>
        /// <param name="patientInfo">患者信息</param>
        public void ModifiyNode(System.Windows.Forms.TreeNode node, Neusoft.HISFC.Models.Registration.Register patientInfo)
        {
            try
            {
                Neusoft.FrameWork.Models.NeuObject nodeTextInfo = new Neusoft.FrameWork.Models.NeuObject();
                nodeTextInfo.ID   = patientInfo.PID.PatientNO;
                nodeTextInfo.Name = patientInfo.Name;
                try
                {
                    nodeTextInfo.Memo = patientInfo.PVisit.PatientLocation.Bed.ID;
                }
                catch
                {//无病床信息
                }

                nodeTextInfo.User01 = patientInfo.PVisit.PatientLocation.Dept.Name;
                nodeTextInfo.User02 = patientInfo.PVisit.InState.Name;
                nodeTextInfo.User03 = patientInfo.Sex.ID.ToString();
                if (this.bIsShowNewPatient)
                {
                    if (dtToday.Date == patientInfo.PVisit.InTime.Date)
                    {
                        nodeTextInfo.Name = nodeTextInfo.Name + "(新)";
                    }
                }

                //定义节点的引用,指向要修改的节点
                this.ModifiyNode(node, nodeTextInfo, patientInfo);
            }
            catch { }
        }
        /// <summary>
        /// 刷新患者信息
        /// </summary>
        /// <param name="inPatientNo"></param>
        public virtual void RefreshList(string inPatientNo)
        {
            //加载床位列表
            if (this.arrivetype == ArriveType.ChangeDoc)
            {
                //换医生时,显示全部床位
                this.cmbBedNo.AddItems(manager.QueryBedList(empl.Dept.ID));
            }
            else
            {
                //接珍时,只显示空床
                this.cmbBedNo.AddItems(manager.QueryUnoccupiedBed(empl.Dept.ID));
            }
            ClearPatintInfo();
            try
            {
                this.register = this.regManager.GetByClinic(inPatientNo);
                if (this.register == null)
                {
                    MessageBox.Show(this.regManager.Err);
                    this.register = new Neusoft.HISFC.Models.Registration.Register();
                }
            }
            catch { }

            try
            {
                this.SetPatientInfo(this.register);
            }
            catch { }
        }
Ejemplo n.º 3
0
        public string GetOrderNo(Neusoft.HISFC.Models.Registration.Register reg)
        {
            Function function = new Function();
            //取出今天该患者最大的序号
            string regOrderNo = function.GetPatientTodayOrderNo(reg.PID.CardNO);

            if (!string.IsNullOrEmpty(regOrderNo) && regOrderNo != "-1")
            {
                string[] orderNoSplit = regOrderNo.Split('-');
                return(orderNoSplit[0] + "-" + (FrameWork.Function.NConvert.ToInt32(orderNoSplit[1]) + 1).ToString());
            }
            //生成新的序号
            else
            {
                string startStr = "";
                //儿科
                if (reg.DoctorInfo.Templet.Dept.ID == "1234")
                {
                    startStr = "0";
                }
                //急诊
                else if (reg.DoctorInfo.Templet.Dept.ID == "8524")
                {
                    startStr = "2";
                }
                else
                {
                    startStr = "1";
                }
                return(function.CreateNewNo(startStr));
            }
        }
Ejemplo n.º 4
0
        public int BalanceOutpatient(Neusoft.HISFC.Models.Registration.Register r, ref System.Collections.ArrayList feeDetails)
        {
            decimal totCost = 0;
            decimal payCost = 0;
            decimal pubcost = 0;
            decimal ownCost = 0;

            foreach (Neusoft.HISFC.Models.Fee.Outpatient.FeeItemList f in feeDetails)
            {
                totCost += f.FT.TotCost;
                payCost += f.FT.PayCost;
                pubcost += f.FT.PubCost;
                ownCost += f.FT.OwnCost;
            }

            r.SIMainInfo.TotCost = totCost;
            r.SIMainInfo.PayCost = payCost;
            r.SIMainInfo.PubCost = pubcost;
            r.SIMainInfo.OwnCost = ownCost;

            //判断平衡(在确认r.SIMainInfo.TotCost 应该为r.SIMainInfo.PayCost+r.SIMainInfo.PubCost+r.SIMainInfo.OwnCost 的前提下)
            if (r.SIMainInfo.TotCost != r.SIMainInfo.PayCost + r.SIMainInfo.OwnCost + r.SIMainInfo.PubCost)
            {
                this.errMsg = "总金额与账户支付+公费支付+自费支付不等\n,请核对";
                return(-1);
            }
            return(1);
        }
Ejemplo n.º 5
0
        /// <summary>
        /// 插入患者信息主表
        /// </summary>
        /// <param name="r"></param>
        /// <param name="errText"></param>
        /// <returns></returns>
        private int InserPatientInfo(Neusoft.HISFC.Models.Registration.Register r, ref string errText)
        {
            Neusoft.HISFC.Models.RADT.PatientInfo p = new Neusoft.HISFC.Models.RADT.PatientInfo();

            p.PID.CardNO      = r.PID.CardNO;
            p.Name            = r.Name;
            p.Sex.ID          = r.Sex.ID;
            p.Birthday        = r.Birthday;
            p.Pact            = r.Pact;
            p.Pact.PayKind.ID = r.Pact.PayKind.ID;
            p.SSN             = r.SSN;
            p.PhoneHome       = r.PhoneHome;
            p.AddressHome     = r.AddressHome;
            p.IDCard          = r.IDCard;
            p.Memo            = r.CardType.ID;
            p.NormalName      = r.NormalName;
            p.IsEncrypt       = r.IsEncrypt;

            if (patientMgr.RegisterComPatient(p) == -1)
            {
                errText = patientMgr.Err;
                return(-1);
            }
            return(1);
        }
        private int InsertRegInfo(Neusoft.HISFC.Models.Registration.Register reg)
        {
            Neusoft.FrameWork.Management.PublicTrans.BeginTransaction();

            //Neusoft.FrameWork.Management.Transaction t = new Neusoft.FrameWork.Management.Transaction(orderManagement.Connection);
            //t.BeginTransaction();
            this.regManagement.SetTrans(Neusoft.FrameWork.Management.PublicTrans.Trans);
            int iReturn = -1;

            reg.InputOper.ID   = this.employee.ID;
            reg.InputOper.Name = this.employee.Name;
            //reg.InputOper.OperTime = reg.DoctorInfo.SeeDate;
            iReturn = this.regManagement.InsertByDoct(reg);
            if (iReturn == -1)
            {
                Neusoft.FrameWork.Management.PublicTrans.RollBack();
                if (regManagement.DBErrCode != 1)//不是主键重复
                {
                    MessageBox.Show("插入挂号信息出错!" + regManagement.Err);

                    return(-1);
                }
            }
            Neusoft.FrameWork.Management.PublicTrans.Commit();
            MessageBox.Show("请记录病历号:" + reg.PID.CardNO + ",以便门诊交费!", "提示");
            return(iReturn);
        }
Ejemplo n.º 7
0
        private void neuTreeView1_MouseUp(object sender, MouseEventArgs e)
        {
            Neusoft.FrameWork.WinForms.Controls.NeuContextMenuStrip contextMenu1 = new Neusoft.FrameWork.WinForms.Controls.NeuContextMenuStrip();
            contextMenu1.Items.Clear();
            if (e.Button == MouseButtons.Right)
            {
                Neusoft.HISFC.Models.Registration.Register mnuSelectRegister = null;
                if (this.neuTreeView1.Visible == true && this.neuTreeView1.SelectedNode != null)
                {
                    mnuSelectRegister = this.neuTreeView1.SelectedNode.Tag as Neusoft.HISFC.Models.Registration.Register;
                }
                if (this.neuTreeView2.Visible == true && this.neuTreeView2.SelectedNode != null)
                {
                    mnuSelectRegister = this.neuTreeView2.SelectedNode.Tag as Neusoft.HISFC.Models.Registration.Register;
                }
                if (mnuSelectRegister != null)
                {
                    ToolStripMenuItem mnuPatientInfo = new ToolStripMenuItem();//院注次数
                    mnuPatientInfo.Click += new EventHandler(mnuPatientInfo_Click);

                    mnuPatientInfo.Text = "查看患者信息";
                    contextMenu1.Items.Add(mnuPatientInfo);
                }
                if (this.neuTreeView1.Visible == true)
                {
                    contextMenu1.Show(this.neuTreeView1, e.X, e.Y);
                }
                if (this.neuTreeView2.Visible == true)
                {
                    contextMenu1.Show(this.neuTreeView2, e.X, e.Y);
                }
            }
        }
Ejemplo n.º 8
0
 /// <summary>
 /// 选中
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 public void neuTreeView1_AfterSelect(object sender, TreeViewEventArgs e)
 {
     try
     {
         Neusoft.HISFC.Models.Registration.Register reg = (Neusoft.HISFC.Models.Registration.Register)((TreeView)sender).SelectedNode.Tag;
         if (e.Node.Text.IndexOf(More) > 0)
         {
             e.Node.Text          = e.Node.Text.Replace(More, "");
             reg.DoctorInfo.SeeNO = -1;
             this.getOldSeeInfo(e.Node);
             this.patInfo = reg;
             DoTreeDoubleClick();
         }
         else
         {
             #region {CC515E52-1D4E-4be2-9632-6F56639B330E}
             //屏蔽此段代码,避免重复执行DoTreeDoubleClick()
             //if (((TreeView)sender).SelectedNode.Parent.Parent == null && reg != null)
             //{
             //    this.patInfo = reg;
             //    DoTreeDoubleClick();
             //}
             #endregion
             this.patInfo = reg;
             DoTreeDoubleClick();
         }
     }
     catch { }
 }
        /// <summary>
        /// 根据传入参数,插入新节点
        /// </summary>
        /// <param name="branch">一级节点索引</param>
        /// <param name="patientInfo">患者信息</param>
        public void AddTreeNode(int branch, Neusoft.HISFC.Models.Registration.Register patientInfo)
        {
            try
            {
                //节点信息
                Neusoft.FrameWork.Models.NeuObject nodeTextInfo = new Neusoft.FrameWork.Models.NeuObject();
                nodeTextInfo.ID     = patientInfo.PID.PatientNO;                    //住院号
                nodeTextInfo.Name   = patientInfo.Name;                             //患者姓名
                nodeTextInfo.Memo   = patientInfo.PVisit.PatientLocation.Bed.ID;    //床号
                nodeTextInfo.User01 = patientInfo.PVisit.PatientLocation.Dept.Name; //科室名称
                nodeTextInfo.User02 = patientInfo.PVisit.InState.Name;              //在院状态
                nodeTextInfo.User03 = patientInfo.Sex.ID.ToString();                //性别
                //根据患者的入院日期,判断是否显示"(新)"
                if (this.bIsShowNewPatient)
                {
                    if (dtToday.Date == patientInfo.PVisit.InTime.Date)
                    {
                        nodeTextInfo.Name = nodeTextInfo.Name + "(新)";
                    }
                }

                //定义节点的引用,指向要修改的节点
                this.AddTreeNode(branch, nodeTextInfo, patientInfo);
            }
            catch { }
        }
        public int SaveBegin(ref Neusoft.HISFC.Models.Registration.Register regObj, ref string errText)
        {
            if (regObj.Pact.PayKind.ID != "02") //不是医保或者直接返回
            {
                return(1);
            }

            DateTime currentDate = this.regMgr.GetDateTimeFromSysDateTime();

            string beginDateTime = currentDate.Date.ToString();

            string endDateTime = currentDate.ToShortDateString() + " 23:59:59";


            ArrayList alRegInfo = this.regMgr.QueryRegInfo(regObj.PID.CardNO, beginDateTime, endDateTime, "02");

            if (alRegInfo == null)
            {
                errText = "查询挂号信息出错" + this.regMgr.Err;
                return(-1);
            }

            if (alRegInfo.Count > 0)
            {
                errText = "医保患者一天只能挂一次号!该患者今天已经存在医保挂号记录";
                return(-1);
            }



            return(1);
        }
Ejemplo n.º 11
0
        /// <summary>
        /// 验证挂号信息是否合法
        /// </summary>
        /// <param name="r">挂号信息</param>
        /// <returns>符合: true 不符合 false</returns>
        private bool IsValid(Neusoft.HISFC.Models.Registration.Register r)
        {
            if (this.medcaredInterface == null)
            {
                if (r == null)
                {
                    this.errMsg = "挂号信息为空";

                    return(false);
                }
                if (r.Pact == null || r.Pact.ID == null || r.Pact.ID == string.Empty)
                {
                    this.errMsg = "合同单位为空!";

                    return(false);
                }

                this.GetInterfaceFromPact(r.Pact.ID);

                if (this.medcaredInterface == null)
                {
                    return(false);
                }
            }

            return(true);
        }
Ejemplo n.º 12
0
        /// <summary>
        /// 获取选择的信息
        /// </summary>
        private void GetInfo()
        {
            try
            {
                Neusoft.FrameWork.Models.NeuObject obj = new Neusoft.FrameWork.Models.NeuObject();

                obj = lst.Items[lst.SelectedIndex] as Neusoft.FrameWork.Models.NeuObject;
                if (obj.ID == "0")
                {
                    this.clinicCode = obj.User03;
                    if (this.clinicCode != "")
                    {
                        this.regInfo = this.regManagement.GetByClinic(this.clinicCode);
                    }
                    this.cardNO = this.regInfo.PID.CardNO;
                    try
                    {
                        this.listform.Hide();
                    }
                    catch
                    {
                    }
                    try
                    {
                        this.selectedEvents();
                    }
                    catch { }
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
                this.NoInfo();
            }
        }
Ejemplo n.º 13
0
 public int UploadRegInfoOutpatient(Neusoft.HISFC.Models.Registration.Register r)
 {
     r.SIMainInfo.OwnCost = r.OwnCost;  //自费金额
     r.SIMainInfo.PubCost = r.PubCost;  //统筹金额
     r.SIMainInfo.PayCost = r.PayCost;  //帐户金额
     return(1);
 }
Ejemplo n.º 14
0
        /// <summary>
        /// 获得患者基本信息从控件到PatientInfo
        /// </summary>
        /// <param name="PatientInfo"></param>
        protected bool GetPatientInfo(Neusoft.HISFC.Models.Registration.Register Register)
        {
            Register.ID                           = this.txtPatientNo.Text;             //留观号
            Register.Card.ID                      = this.txtCard.Text;                  //门诊卡号
            Register.Name                         = this.txtName.Text;                  //患者姓名
            Register.CompanyName                  = this.txtWork.Text;                  //单位名称
            Register.PhoneHome                    = this.txtHomeTel.Text;               //家庭电话
            Register.AddressHome                  = this.cmbHomeAddr.Text;              //家庭住址
            Register.MaritalStatus.ID             = this.cmbMarry.Tag;                  //婚否
            Register.Sex.ID                       = this.cmbSex.Tag;                    //性别
            Register.Profession.ID                = this.cmbProfession.Tag.ToString();  //职业
            Register.Birthday                     = this.dtBirthday.Value;              //出生日期
            Register.DoctorInfo.Templet.Dept.Name = this.txtDeptName.Text;              //科室名称
            Register.PVisit.InTime                = DateTime.Parse(this.dtIndate.Text); //入院日期
            Register.SSN                          = this.txtID.Text;                    //身份证号
            Register.Pact.Name                    = this.cmbPact.Text;                  //合同单位名称
            Register.Pact.ID                      = this.cmbPact.Tag.ToString();        //合同单位代码

            if (this.CheckIDInfo(this.txtID.Text.Trim()) == -1)
            {
                return(false);
            }

            return(true);
        }
Ejemplo n.º 15
0
        /// <summary>
        /// 根据留观流水号刷新患者信息
        /// </summary>
        /// <param name="inpatientNo"></param>
        public void RefreshList(string clinicNO)
        {
            Neusoft.HISFC.Models.Registration.Register obj = null;
            obj = this.Outpatient.GetByClinic(clinicNO);
            if (obj == null)
            {
                MessageBox.Show(this.Outpatient.Err);
                return;
            }


            //只有出院登记的患者才显示"出院通知单"按钮
            if (obj.PVisit.InState.ID.ToString() == "B")
            {
                this.btnOutBill.Visible = true;
            }
            else
            {
                this.btnOutBill.Visible = false;
            }
            try
            {
                this.SetPatientInfo(obj);
            }
            catch { }
        }
Ejemplo n.º 16
0
        /// <summary>
        /// add a record to farpoint
        /// </summary>
        /// <param name="reg"></param>
        private void addRegister(Neusoft.HISFC.Models.Registration.Register reg)
        {
            this.fpSpread1_Sheet1.Rows.Add(this.fpSpread1_Sheet1.RowCount, 1);

            int cnt = this.fpSpread1_Sheet1.RowCount - 1;

            this.fpSpread1_Sheet1.SetValue(cnt, 0, reg.Name, false);
            this.fpSpread1_Sheet1.SetValue(cnt, 1, reg.Sex.Name, false);
            this.fpSpread1_Sheet1.SetValue(cnt, 2, reg.DoctorInfo.SeeDate, false);
            this.fpSpread1_Sheet1.SetValue(cnt, 3, reg.DoctorInfo.Templet.Dept.Name, false);
            this.fpSpread1_Sheet1.SetValue(cnt, 4, reg.DoctorInfo.Templet.RegLevel.Name, false);
            this.fpSpread1_Sheet1.SetValue(cnt, 5, reg.DoctorInfo.Templet.Doct.Name, false);
            this.fpSpread1_Sheet1.SetValue(cnt, 6, reg.RegLvlFee.RegFee, false);
            this.fpSpread1_Sheet1.SetValue(cnt, 7, reg.RegLvlFee.OwnDigFee + reg.RegLvlFee.OthFee + reg.RegLvlFee.ChkFee, false);
            this.fpSpread1_Sheet1.Rows[cnt].Tag = reg;

            if (reg.IsSee)
            {
                this.fpSpread1_Sheet1.Rows[cnt].BackColor = Color.Cyan;
            }
            if (reg.Status == Neusoft.HISFC.Models.Base.EnumRegisterStatus.Back ||
                reg.Status == Neusoft.HISFC.Models.Base.EnumRegisterStatus.Cancel)
            {
                this.fpSpread1_Sheet1.Rows[cnt].BackColor = Color.Red;
            }
        }
        public frmModifyRegistration(Neusoft.HISFC.Models.Registration.Register reg)
        {
            InitializeComponent();

            obj = reg;
            Init();
        }
Ejemplo n.º 18
0
 private void Clear()
 {
     this.register         = null;
     this.tbOldNumber.Text = "";
     this.tbNewNumber.Text = "";
     this.tbMemo.Text      = "";
 }
Ejemplo n.º 19
0
 protected virtual void OnSelected(Neusoft.HISFC.Models.Registration.Register res)
 {
     if (OnSelect != null)
     {
         this.OnSelect(res);
     }
 }
Ejemplo n.º 20
0
        private void tvPatient_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
        {
            if (e.Button != MouseButtons.Left)
            {
                return;
            }
            if (e.Node.Tag == null)
            {
                return;
            }

            rInfo = e.Node.Tag as Neusoft.HISFC.Models.Registration.Register;

            if (rInfo == null)
            {
                return;
            }
            this.lblPInfo.Text = "病历号:" + rInfo.PID.CardNO + "   姓名:" + rInfo.Name + "   性别:" + rInfo.Sex.Name + "   生日:" + rInfo.Birthday.ToString("yyyy-MM-dd") +
                                 "   年龄:" + outPatientFeeManager.GetAge(rInfo.Birthday) + "   合同单位:" + rInfo.Pact.Name;
            this.ucFeeList1.Clear();
            this.ucFeeList1.PatientInfo = rInfo;
            this.ucFeeList1.Focus();
            this.ucFeeList1.SetFocus();
            QueryChargeInfo();
        }
Ejemplo n.º 21
0
        /// <summary>
        /// add a record to farpoint
        /// </summary>
        /// <param name="reg"></param>
        private void addRegister(Neusoft.HISFC.Models.Registration.Register reg)
        {
            this.neuSpread1_Sheet1.Rows.Add(this.neuSpread1_Sheet1.RowCount, 1);

            int cnt = this.neuSpread1_Sheet1.RowCount - 1;

            this.neuSpread1_Sheet1.SetValue(cnt, 0, reg.Name, false);
            this.neuSpread1_Sheet1.SetValue(cnt, 1, reg.Sex.Name, false);
            this.neuSpread1_Sheet1.SetValue(cnt, 2, reg.DoctorInfo.SeeDate.ToString(), false);
            this.neuSpread1_Sheet1.SetValue(cnt, 3, reg.DoctorInfo.Templet.Dept.Name, false);
            this.neuSpread1_Sheet1.SetValue(cnt, 4, reg.DoctorInfo.Templet.RegLevel.Name, false);
            this.neuSpread1_Sheet1.SetValue(cnt, 5, reg.DoctorInfo.Templet.Doct.Name, false);
            this.neuSpread1_Sheet1.SetValue(cnt, 6, reg.RegLvlFee.RegFee, false);
            //{E9A82E01-222A-4455-B5DD-B7AE7CB731AA}
            //this.neuSpread1_Sheet1.SetValue(cnt, 7, reg.RegLvlFee.OwnDigFee + reg.RegLvlFee.ChkFee + reg.RegLvlFee.OthFee, false);
            this.neuSpread1_Sheet1.SetValue(cnt, 7, reg.RegLvlFee.OwnDigFee + reg.RegLvlFee.ChkFee, false);
            this.neuSpread1_Sheet1.SetValue(cnt, 8, reg.RegLvlFee.OthFee, false);
            this.neuSpread1_Sheet1.SetValue(cnt, 9, Neusoft.FrameWork.Function.NConvert.ToInt32(reg.IsSee));
            this.neuSpread1_Sheet1.Rows[cnt].Tag = reg;

            if (reg.IsSee)
            {
                this.neuSpread1_Sheet1.Rows[cnt].BackColor = Color.LightCyan;
            }
            if (reg.Status == Neusoft.HISFC.Models.Base.EnumRegisterStatus.Back ||
                reg.Status == Neusoft.HISFC.Models.Base.EnumRegisterStatus.Cancel)
            {
                this.neuSpread1_Sheet1.Rows[cnt].BackColor = Color.MistyRose;
            }
        }
Ejemplo n.º 22
0
 /// <summary>
 /// 清屏
 /// </summary>
 private void Clear()
 {
     this.rInfo = null;
     this.ucFeeList1.PatientInfo = null;
     this.ucFeeList1.Clear();
     this.lblPInfo.Text = "患者信息";
     this.lblCost.Text  = string.Empty;
 }
Ejemplo n.º 23
0
 private void GetValue()
 {
     Neusoft.HISFC.Models.Registration.Register reginfo
                  = (Neusoft.HISFC.Models.Registration.Register) this.lvPatient.SelectedItems[0].Tag;
     this.retInfo = reginfo;
     OnSelected(reginfo);
     this.ParentForm.Close();
 }
Ejemplo n.º 24
0
        /// <summary>
        /// 设置发票打印内容
        /// </summary>
        /// <param name="regInfo">挂号信息</param>
        /// <param name="invoice">发票主表信息</param>
        /// <param name="alInvoiceDetail">发票明细信息</param>
        /// <param name="alFeeItemList">费用明细信息</param>
        /// <param name="isPreview">是否预览模式</param>
        /// <returns></returns>
        public int SetPrintValue(Neusoft.HISFC.Models.Registration.Register regInfo,
                                 Neusoft.HISFC.Models.Fee.Outpatient.Balance invoice,
                                 ArrayList alInvoiceDetail,
                                 ArrayList alFeeItemList,
                                 bool isPreview)
        {
            //this.isPreView = false  ;
            try
            {
                this.regInfoOther = regInfo.Clone();
                invoiceOther      = invoice.Clone();
                this.Register     = regInfo;
                this.Controls.Clear();
                //如果费用明细为空,则返回
                if (alFeeItemList.Count <= 0)
                {
                    return(-1);
                }
                #region 克隆一个费用明细信息列表,因为后面操作需要对列表元素有删除操作.
                ArrayList alInvoiceDetailClone = new ArrayList();
                foreach (Neusoft.HISFC.Models.Fee.Outpatient.BalanceList det in alInvoiceDetail)
                {
                    alInvoiceDetailClone.Add(det.Clone());
                }
                #endregion
                if (this.InvoiceType == "MZ01")
                {
                    c = new ucMZFP();
                    while (c.Controls.Count > 0)
                    {
                        this.Controls.Add(c.Controls[0]);
                    }
                    this.Size = c.Size;
                    this.InitReceipt();
                    SetMZFPPrintValue(regInfo,
                                      invoice,
                                      alInvoiceDetailClone,
                                      alFeeItemList,
                                      isPreview);
                }

                //控制根据打印和预览显示选项
                if (isPreview)
                {
                    SetToPreviewMode();
                }
                else
                {
                    SetToPrintMode();
                }
            }
            catch (Exception ex)
            {
                return(-1);
            }
            return(0);
        }
Ejemplo n.º 25
0
 /// <summary>
 /// 界面赋值
 /// </summary>
 /// <param name="r">患者信息实体</param>
 private void SetPatientInfo(Neusoft.HISFC.Models.Registration.Register r)
 {
     //患者姓名
     this.tbName.Text   = r.Name;
     this.tbMarkNO.Text = r.SSN;
     this.tbSex.Text    = r.Sex.Name;
     this.tbJBR.Text    = Neusoft.FrameWork.Management.Connection.Operator.Name;
     this.tbJBR.Tag     = Neusoft.FrameWork.Management.Connection.Operator.ID;
 }
Ejemplo n.º 26
0
 /// <summary>
 /// 清屏
 /// </summary>
 private void Clear()
 {
     register = new Neusoft.HISFC.Models.Registration.Register();
     this.tbApprPerson.Text = string.Empty;
     this.tbDescribe.Text   = string.Empty;
     this.tbJBR.Text        = string.Empty;
     this.tbMarkNO.Text     = string.Empty;
     this.tbSex.Text        = string.Empty;
     this.tbName.Text       = string.Empty;
 }
Ejemplo n.º 27
0
 /// <summary>
 /// 选择患者事件
 /// </summary>
 /// <param name="register"></param>
 protected virtual void ucShow_SelectedPatient(Neusoft.HISFC.Models.Registration.Register register)
 {
     if (register == null)
     {
     }
     else
     {
         this.setInfo(register);
     }
 }
Ejemplo n.º 28
0
 /// <summary>
 /// 清屏
 /// </summary>
 private void Clear()
 {
     this.patientInfo     = new Neusoft.HISFC.Models.Registration.Register();
     this.lblName.Text    = Neusoft.FrameWork.Management.Language.Msg("姓名: ");
     this.lblSex.Text     = Neusoft.FrameWork.Management.Language.Msg("性别: ");
     this.lblAge.Text     = Neusoft.FrameWork.Management.Language.Msg("年龄: ");
     this.lblRegDate.Text = Neusoft.FrameWork.Management.Language.Msg("挂号时间: ");
     this.lblRegDept.Text = Neusoft.FrameWork.Management.Language.Msg("挂号科室: ");
     this.lblRegDoct.Text = Neusoft.FrameWork.Management.Language.Msg("挂号医生: ");
     this.lblRegLV.Text   = Neusoft.FrameWork.Management.Language.Msg("挂号级别: ");
 }
Ejemplo n.º 29
0
        /// <summary>
        /// 上传审批信息
        /// </summary>
        /// <param name="r">患者信息实体</param>
        /// <returns></returns>
        ///
        private int UpLoadAprInfo(Neusoft.HISFC.Models.Registration.Register r)
        {
            long returnValue = process.Connect();

            if (returnValue < 0)
            {
                MessageBox.Show(process.ErrMsg);
                return(-1);
            }
            string inPutString = string.Empty;                           //上传字符串

            string dateSB     = this.dtpSBRQ.Value.ToString("yyyyMMdd"); //申报日期
            string apprdate   = this.dtpSPRQ.Value.ToString("yyyyMMdd"); //审批日期
            string remark     = this.tbDescribe.Text;
            string apprPerson = this.tbApprPerson.Text;

            r.SIMainInfo.InDiagnose.ID   = this.cmbDesease.Tag.ToString();
            r.SIMainInfo.InDiagnose.Name = this.cmbDesease.Text;
            //StringBuilder dataBuffer = new StringBuilder(1024);
            string dataBuffer = string.Empty;

            //|个人编号|审批类别|病种编码|科主任意见|诊断意见|申报日期|审批人|审批日期|审批标志|经办人|备注|

            inPutString = "|" + r.SSN /*个人编号*/ +
                          "|" + cmbApprKind.Tag /*审批类别*/ +
                          "|" + r.SIMainInfo.InDiagnose.ID /*病种编码*/ +
                          "|" + "" /*科主任意见*/ +
                          "|" + r.SIMainInfo.InDiagnose.Name /*诊断意见*/ +
                          "|" + dateSB /*申报日期*/ +
                          "|" + apprPerson /*审批人*/ +
                          "|" + apprdate /*审批日期*/ +
                          "|" + "1" /*审批标志*/ +
                          "|" + Neusoft.FrameWork.Management.Connection.Operator.ID /*经办人*/ +
                          "|" + remark /*备注*/ +
                          "|";

            returnValue = Functions.Bussiness("41", inPutString, dataBuffer);

            if (returnValue < 0)
            {
                process.Rollback();
                MessageBox.Show("调用医保接口时出错!" + dataBuffer);
                return(-1);
            }

            returnValue = process.Disconnect();
            if (returnValue < 0)
            {
                MessageBox.Show(process.ErrMsg);
                process.Rollback();
                return(-1);
            }
            return(1);
        }
        private void Clear()
        {
            this.obj = null;

            this.txtCardNo.Text   = "";
            this.txtRecipeNo.Text = "";
            this.txtSeeNo.Text    = "";
            this.txtName.Text     = "";
            this.cmbSex.Tag       = "";
            this.txtPhone.Text    = "";
            this.txtAdress.Text   = "";
        }