/// <summary>
        /// 窗体Load事件
        /// </summary>
        /// <param name="sender">sender</param>
        /// <param name="e">e</param>
        private void FrmPayMentInfo_Load(object sender, EventArgs e)
        {
            balanceSuccess = false;
            run            = true;
            int workid       = (InvokeController("this") as AbstractController).WorkId;
            int iPayControls = CostPayManager.InitUCPayModeControl(workid, flpPayCtrl, costpattypeid, 0);

            lblMediaInfo.Text = string.Empty;
            if (iPayControls > 0)
            {
                //根据支付方式控件多少,自动设置界面高度
                Height             = groupPanel2.Location.Y + 120 + Math.Max(2, iPayControls) * 40 + 15;
                groupPanel2.Height = Math.Max(2, iPayControls) * 40 + 32 + 15;
            }

            SetFeeValueDelegate  setfeeValue = new SetFeeValueDelegate(SetLabelText);                                               //实列化委托,各项金额实时显示
            PaymentAutoCalculate autocal     = new PaymentAutoCalculate(curpatlistid, costpattypeid, costfeeids, InvokeController); //实列化对象,支付方式金额计算

            CostPayManager.StartExecPay(totalfee, 0, autocal, setfeeValue, false);
            if (IsMediaPat)
            {
                //医保病人不需要打费用清单
                chkFeePrint.Checked = false;
            }
            else
            {
                chkFeePrint.Checked = true;
            }
        }
Example #2
0
        /// <summary>
        /// 窗体加载
        /// </summary>
        /// <param name="sender">触发事件的控件</param>
        /// <param name="e">事件所需参数</param>
        private void FrmPayMentInfo_Load(object sender, EventArgs e)
        {
            // 获取WorkID
            int workid = (InvokeController("this") as AbstractController).WorkId;
            // 支付控件数
            int iPayControls = CostPayManager.InitUCPayModeControl(workid, flpPayCtrl, mCostPatTypeID, 1);

            if (iPayControls > 0)
            {
                //根据支付方式控件多少,自动设置界面高度
                Height             = groupPanel2.Location.Y + 120 + Math.Max(2, iPayControls) * 40 + 15;
                groupPanel2.Height = Math.Max(2, iPayControls) * 40 + 32 + 15;
            }
            //实列化委托,各项金额实时显示
            SetFeeValueDelegate setFeeValue = new SetFeeValueDelegate(SetLabelText);
            //实列化对象,支付方式金额计算
            PaymentAutoCalculate autoCalculate = new PaymentAutoCalculate(mCurPatListID, mCostPatTypeID, null, InvokeController);

            // 自动计算支付金额
            CostPayManager.StartExecPay(mTotalFee, mDepositFee, autoCalculate, setFeeValue, false);

            if (CostHead.CostType == 3)
            {
                CostPayManager.ArrearageCost();
            }
        }