/// <summary> /// 建立新的病理卡号 /// </summary> private int BulidCard(AccountCard tempAccountCard) { try { if (accountManager.InsertAccountCard(tempAccountCard) == -1) { MessageBox.Show("保存卡记录失败!" + accountManager.Err, "错误"); return(-1); } accountCardRecord = new Neusoft.HISFC.Models.Account.AccountCardRecord(); //插入卡的操作记录 accountCardRecord.MarkNO = tempAccountCard.MarkNO; accountCardRecord.MarkType.ID = tempAccountCard.MarkType.ID; accountCardRecord.CardNO = tempAccountCard.Patient.PID.CardNO; accountCardRecord.OperateTypes.ID = (int)Neusoft.HISFC.Models.Account.MarkOperateTypes.Begin; accountCardRecord.Oper.ID = (this.accountManager.Operator as Neusoft.HISFC.Models.Base.Employee).ID; //是否收取卡成本费 bool bl = controlParamIntegrate.GetControlParam <bool>(Neusoft.HISFC.BizProcess.Integrate.AccountConstant.IsAcceptCardFee, true, false); if (bl) { accountCardRecord.CardMoney = controlParamIntegrate.GetControlParam <decimal>(Neusoft.HISFC.BizProcess.Integrate.AccountConstant.AcceptCardFee, true, 0); } if (accountManager.InsertAccountCardRecord(accountCardRecord) == -1) { MessageBox.Show("保存卡操作记录失败!" + accountManager.Err); return(-1); } return(1); } catch (Exception ex) { MessageBox.Show("保存失败!" + ex.Message); return(-1); } }
public new AccountCardRecord Clone() { AccountCardRecord obj = base.Clone() as AccountCardRecord; //obj.operateTypes = this.operateTypes.Clone() as EnumMarkOperateTypesService; //obj.markType = this.markType.Clone() as EnumMarkTypesService; obj.oper = this.oper.Clone(); return(obj); }