Example #1
0
 /// <summary>
 /// 初始化UC
 /// </summary>
 private void InitUC()
 {
     this.InitCaseInfoDisplay();
     this.InitCaseBillTree();
     this.InitDeptComboBox();
     this.neuSpread1_Sheet1.RowCount = 0;
     this.operateState          = OperateState.NewBill;
     this.billCode              = string.Empty;
     this.neuTextBoxStatus.Text = this.GetOperateState(this.operateState);
     this.currentCaseBill       = new Neusoft.HISFC.Models.HealthRecord.Case.CaseBill();
     this.DisplayCaseCount();
     this.currentState = Neusoft.HISFC.Models.HealthRecord.Case.EnumCaseBillState.InRequest;
     this.neuButtonConfirmApply.Enabled = true;
     this.neuTextBoxCardNo.Enabled      = true;
     this.neuComboBoxDept.Enabled       = true;
     this.neuTextBoxCardNo.Focus();
 }
Example #2
0
        /// <summary>
        /// 鼠标单击树结点事件

        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void neuTreeViewBill_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
        {
            // 单击的是单据结点
            if (e.Node.Level == 2)
            {
                try
                {
                    Neusoft.FrameWork.Models.NeuObject node = e.Node.Tag as Neusoft.FrameWork.Models.NeuObject;

                    this.operateState = OperateState.OldBill;

                    this.billCode = node.ID;

                    TreeNode parentNode = e.Node.Parent;
                    switch (parentNode.Text)
                    {
                    case "已经申请入库":
                        this.currentState = Neusoft.HISFC.Models.HealthRecord.Case.EnumCaseBillState.InRequest;
                        break;

                    case "等待出库审核":
                        this.currentState = Neusoft.HISFC.Models.HealthRecord.Case.EnumCaseBillState.OutAuditing;
                        break;

                    case "等待入库确认":
                        this.currentState = Neusoft.HISFC.Models.HealthRecord.Case.EnumCaseBillState.InConfirm;
                        break;
                    }

                    if (this.currentState != Neusoft.HISFC.Models.HealthRecord.Case.EnumCaseBillState.InRequest)
                    {
                        this.neuButtonConfirmApply.Enabled = false;
                        this.neuTextBoxCardNo.Enabled      = false;
                        this.neuComboBoxDept.Enabled       = false;
                    }
                    else
                    {
                        this.neuButtonConfirmApply.Enabled = true;
                        this.neuTextBoxCardNo.Enabled      = true;
                        this.neuComboBoxDept.Enabled       = true;
                    }

                    if (this.currentState == Neusoft.HISFC.Models.HealthRecord.Case.EnumCaseBillState.InConfirm)
                    {
                        this.neuButtonDelete.Enabled = false;
                    }
                    else
                    {
                        this.neuButtonDelete.Enabled = true;
                    }

                    this.QueryByBillCode(node.ID);
                }
                catch (Exception exception)
                {
                    Neusoft.FrameWork.WinForms.Classes.Function.HideWaitForm();

                    MessageBox.Show(exception.Message);
                }
            }
        }