Пример #1
0
 Neusoft.HISFC.BizProcess.Interface.IPrintTransFusion ip = null;//当前接口
 protected override Neusoft.FrameWork.WinForms.Forms.ToolBarService OnInit(object sender, object NeuObject, object param)
 {
     if (tv != null && tv.CheckBoxes == false)
     {
         tv.CheckBoxes = true;
     }
     try
     {
         DateTime dt  = orderManager.GetDateTimeFromSysDateTime();
         DateTime dt1 = new DateTime(dt.Year, dt.Month, dt.Day, 0, 0, 0);
         DateTime dt2 = new DateTime(dt.AddDays(1).Year, dt.AddDays(1).Month, dt.AddDays(1).Day, 12, 00, 00);
         this.dateTimePicker1.Value = dt1;
         this.dateTimePicker2.Value = dt2;
     }
     catch { }
     ResetPanel();
     return(null);
 }
Пример #2
0
        /// <summary>
        /// 如果已经审核或执行,则停止附材
        /// </summary>
        /// <returns></returns>
        public int DCSub(Neusoft.HISFC.Models.Order.Inpatient.Order order)
        {
            Neusoft.HISFC.BizLogic.Order.Order odManager = new Neusoft.HISFC.BizLogic.Order.Order();
            //Neusoft.FrameWork.Management.Transaction t = new Neusoft.FrameWork.Management.Transaction(odManager.Connection);
            //t.BeginTransaction();
            Neusoft.FrameWork.Management.PublicTrans.BeginTransaction();
            odManager.SetTrans(Neusoft.FrameWork.Management.PublicTrans.Trans);

            order.DCOper.ID     = this.Operator.ID;
            order.DCOper.Name   = this.Operator.Name;
            order.EndTime       = odManager.GetDateTimeFromSysDateTime();
            order.Status        = 3;
            order.DcReason.Name = "护士站审核查询停止";
            if (odManager.DcOneOrder(order) == -1)
            {
                Neusoft.FrameWork.Management.PublicTrans.RollBack();;
                MessageBox.Show("删除医嘱失败!" + odManager.Err);
                return(-1);
            }
            Neusoft.FrameWork.Management.PublicTrans.Commit();
            return(0);
        }
Пример #3
0
        private void ucOutPatientTree1_TreeDoubleClick(object sender, HISFC.Components.Order.OutPatient.Controls.ClickEventArgs e)
        {
            #region {22571B58-A56B-4dc3-A32C-EC17D74423A2}

            try
            {
                if (this.ucOutPatientTree1.neuTreeView1.Visible)
                {
                    this.tree = this.ucOutPatientTree1.neuTreeView1;
                    TreeViewEventArgs mye = new TreeViewEventArgs(this.ucOutPatientTree1.neuTreeView1.SelectedNode);
                    this.tree_AfterSelect(e.Message, mye);
                    this.Tag = this.ucOutPatientTree1.neuTreeView1.SelectedNode.Tag;
                }
                if (this.ucOutPatientTree1.neuTreeView2.Visible)
                {
                    this.tree = this.ucOutPatientTree1.neuTreeView2;
                    TreeViewEventArgs mye = new TreeViewEventArgs(this.ucOutPatientTree1.neuTreeView2.SelectedNode);
                    this.tree_AfterSelect(e.Message, mye);
                    this.Tag = this.ucOutPatientTree1.neuTreeView2.SelectedNode.Tag;
                }

                if (this.Tag is Neusoft.HISFC.Models.Registration.Register)
                {
                    //判断账户流程的挂号收费情况
                    bool    isAccount = false;
                    decimal vacancy   = 0m;
                    Neusoft.HISFC.Models.Registration.Register r = (Neusoft.HISFC.Models.Registration.Register)Tag;

                    if (isAccountTerimal && r.IsAccount)
                    {
                        if (feeMgr.GetAccountVacancy(r.PID.CardNO, ref vacancy) <= 0)
                        {
                            MessageBox.Show(feeMgr.Err);
                            return;
                        }
                        isAccount = true;
                    }
                    if (isAccount && r.IsFee == false)
                    {
                        //{6FC43DF1-86E1-4720-BA3F-356C25C74F16}
                        #region 账户扣取挂号费

                        if (!feeMgr.CheckAccountPassWord(r))
                        {
                            this.ucOutPatientTree1.neuTreeView1.SelectedNode = null;
                            this.ucOutPatientTree1.PatientInfo = null;
                            return;
                        }

                        if (isAccount && !r.IsFee)
                        {
                            if (vacancy < r.OwnCost)
                            {
                                MessageBox.Show("账户金额不足,请交费!");
                                return;
                            }


                            Neusoft.FrameWork.Management.PublicTrans.BeginTransaction();
                            if (feeMgr.AccountPay(r, r.OwnCost, "挂号收费", (orderManager.Operator as Neusoft.HISFC.Models.Base.Employee).Dept.ID, string.Empty) < 0)
                            {
                                Neusoft.FrameWork.Management.PublicTrans.RollBack();
                                MessageBox.Show("扣账户金额失败!" + feeMgr.Err);
                                return;
                            }
                            Neusoft.HISFC.BizProcess.Integrate.Registration.Registration registerManager = new Neusoft.HISFC.BizProcess.Integrate.Registration.Registration();
                            r.SeeDOCD = orderManager.Operator.ID;
                            r.SeeDPCD = (orderManager.Operator as Neusoft.HISFC.Models.Base.Employee).Dept.ID;
                            if (registerManager.UpdateAccountFeeState(r.ID, r.SeeDOCD, r.SeeDPCD, orderManager.GetDateTimeFromSysDateTime()) == -1)
                            {
                                Neusoft.FrameWork.Management.PublicTrans.RollBack();
                                MessageBox.Show("更新挂号表已收费状态出错");
                                return;
                            }
                            Neusoft.FrameWork.Management.PublicTrans.Commit();
                            r.IsFee = true;
                        }
                        #endregion
                    }
                }
            }
            catch { }
            finally { }
            #endregion
        }