Exemple #1
0
        public void OnLoadData(Action.CostType _costType)
        {
            IfrmCostDiagView.Initialize(_dataSet);

            IfrmCostDiagView.GroupBoxEnabled = true;
            IfrmCostDiagView.tbFeeEnabled    = true;
            IfrmCostDiagView.tbPosEnabled    = true;
            IfrmCostDiagView.tbExtraEnabled  = true;

            //显示数据
            IfrmCostDiagView.zyPatList = zyPatlist;
            IfrmCostDiagView.patFee    = patFee;

            //临床不允许输入出院信息
            if (zyConfig008 == 0)
            {
                IfrmCostDiagView.GroupBoxEnabled = false;
            }
            //金额置0
            IfrmCostDiagView.tbFee   = 0;
            IfrmCostDiagView.tbPos   = 0;
            IfrmCostDiagView.tbExtra = 0;

            //结算方式
            if (_costType == Action.CostType.中途结算)
            {
                IfrmCostDiagView.LabTitle       = "中途结算";
                IfrmCostDiagView.tbFeeEnabled   = false;
                IfrmCostDiagView.tbPosEnabled   = false;
                IfrmCostDiagView.tbExtraEnabled = false;
            }
            else if (_costType == Action.CostType.出院结算)
            {
                IfrmCostDiagView.LabTitle       = "出院结算";
                IfrmCostDiagView.tbExtraEnabled = false;

                //退费
                if (patFee.retreatFee > 0)
                {
                    IfrmCostDiagView.tbFeeEnabled = false;
                    IfrmCostDiagView.tbPosEnabled = false;
                    IfrmCostDiagView.tbFee        = 0 - patFee.retreatFee;
                }
                //补收
                else if (patFee.receiveFee > 0)
                {
                    IfrmCostDiagView.tbFeeEnabled = false;
                    IfrmCostDiagView.tbFee        = patFee.receiveFee;
                }
            }
            else if (_costType == Action.CostType.费结算)
            {
                IfrmCostDiagView.tbExtraEnabled = false;
                IfrmCostDiagView.LabTitle       = "欠费结算";
                IfrmCostDiagView.tbExtra        = patFee.receiveFee;
            }
        }
        // 结算类型(1中途,2出院,3欠费)
        public FrmCostDiag(Action.CostType _costType, Action.FrmCostController _controller)
        {
            InitializeComponent();

            costType   = _costType;
            controller = _controller;
            controller.IfrmCostDiagView = this;

            zyConfig005 = HIS.ZY_BLL.OP_ZYConfigSetting.GetConfigValue("005");
        }