コード例 #1
0
ファイル: PrePay.cs プロジェクト: ewin66/Management-System
        /// <summary>
        /// 克隆
        /// </summary>
        /// <returns></returns>
        public new PrePay Clone()
        {
            PrePay prepay = base.Clone() as PrePay;

            prepay.patient     = this.Patient.Clone();
            prepay.FT          = this.FT.Clone();
            prepay.prePayOper  = this.PrePayOper.Clone();
            prepay.balanceOper = this.BalanceOper.Clone();
            //{93E6443C-1FB5-45a7-B89D-F21A92200CF6}
            //prepay.payType = this.PayType.Clone() as Fee.EnumPayTypeService;
            prepay.payType = this.PayType.Clone();
            prepay.bank    = this.Bank.Clone();

            return(prepay);
        }
コード例 #2
0
        /// <summary>
        /// 显示预交金信息
        /// </summary>
        /// <param name="prepay"></param>
        private void SetFp(Neusoft.HISFC.Models.Account.PrePay prepay, FarPoint.Win.Spread.SheetView sheet)
        {
            int count = sheet.Rows.Count;

            sheet.Rows.Add(count, 1);
            sheet.Cells[count, 0].Text = prepay.InvoiceNO;
            if (prepay.FT.PrepayCost > 0)
            {
                sheet.Cells[count, 1].Text = "收取";
            }
            else
            {
                if (prepay.ValidState == Neusoft.HISFC.Models.Base.EnumValidState.Invalid)
                {
                    sheet.Cells[count, 1].Text = "返还";
                }
                else if (prepay.ValidState == Neusoft.HISFC.Models.Base.EnumValidState.Ignore)
                {
                    sheet.Cells[count, 1].Text = "补打";
                }
                else
                {
                    sheet.Cells[count, 1].Text = "收取";
                }
            }
            if (prepay.ValidState != Neusoft.HISFC.Models.Base.EnumValidState.Valid)
            {
                sheet.Cells[count, 1].ForeColor = Color.Red;
            }
            sheet.Cells[count, 2].Text = prepay.FT.PrepayCost.ToString();
            sheet.Cells[count, 3].Text = prepay.PrePayOper.OperTime.ToString();
            //
            Neusoft.HISFC.BizProcess.Integrate.Manager managerIntergrate = new Neusoft.HISFC.BizProcess.Integrate.Manager();
            Neusoft.HISFC.Models.Base.Employee         empl = new Neusoft.HISFC.Models.Base.Employee();
            empl = managerIntergrate.GetEmployeeInfo(prepay.PrePayOper.ID);

            if (empl == null)
            {
                prepay.PrePayOper.Name = "";
            }
            else
            {
                prepay.PrePayOper.Name = empl.Name;
            }
            sheet.Cells[count, 4].Text = prepay.PrePayOper.Name;
            sheet.Rows[count].Tag      = prepay;
        }