public void SetValue(Neusoft.HISFC.Models.Account.AccountRecord accountRecord) { if (accountRecord.Patient.IsEncrypt) { this.lblName.Text = accountRecord.Patient.DecryptName; } else { this.lblName.Text = accountRecord.Patient.Name; } this.lbldate.Text = accountRecord.OperTime.ToString("yyyy-MM-dd"); this.lblAccountNO.Text = accountRecord.AccountNO; this.lblMoney.Text = accountRecord.Money.ToString() + "т╙"; this.lblCaption.Text = Neusoft.FrameWork.Public.String.LowerMoneyToUpper(accountRecord.Money) + "т╙"; this.lblSate.Text = accountRecord.OperType.Name; this.lblOper.Text = accountRecord.Oper; this.lblHospitalName.Text = (new Neusoft.HISFC.BizProcess.Integrate.Manager()).GetHospitalName(); }
/// <summary> /// ���ʻ����� /// </summary> /// <returns>1�ɹ� -1 ʧ��</returns> protected virtual int UpdatePWd() { //�����ʻ�������Ϣ HISFC.Models.RADT.PatientInfo patient = radtIntegrate.QueryComPatientInfo(account.CardNO); if (patient == null) { MessageBox.Show("���һ�����Ϣʧ�ܣ�"); return(-1); } Neusoft.FrameWork.Management.PublicTrans.BeginTransaction(); //���ʻ����� int resultValue = accountManager.UpdatePassWordByCardNO(account.ID, this.txtnewpwd.Text.Trim()); if (resultValue < 0) { Neusoft.FrameWork.Management.PublicTrans.RollBack(); MessageBox.Show("���ʻ�����ʧ�ܣ�" + accountManager.Err, "����"); return(-1); } #region �ʻ�������¼ HISFC.Models.Account.AccountRecord accountRecord = new Neusoft.HISFC.Models.Account.AccountRecord(); //������Ϣ accountRecord.AccountNO = this.account.ID; //�ʺ� accountRecord.Patient = patient; //���│�� accountRecord.DeptCode = (accountManager.Operator as Neusoft.HISFC.Models.Base.Employee).Dept.ID; //���ұ��� accountRecord.Oper = accountManager.Operator.ID; //����Ա accountRecord.OperTime = accountManager.GetDateTimeFromSysDateTime(); //����ʱ�� accountRecord.IsValid = true; //�Ƿ���Ч accountRecord.OperType.ID = (int)HISFC.Models.Account.OperTypes.EditPassWord; accountRecord.Oper = accountManager.Operator.ID; //����Ա //�����ʻ�������¼ resultValue = accountManager.InsertAccountRecord(accountRecord); if (resultValue < 0) { Neusoft.FrameWork.Management.PublicTrans.RollBack(); MessageBox.Show("�����ʻ�������¼ʧ�ܣ�" + accountManager.Err, "����"); return(-1); } #endregion Neusoft.FrameWork.Management.PublicTrans.Commit(); PrintOperRecipe(accountRecord); return(1); }
public void SetValue(Neusoft.HISFC.Models.Account.AccountRecord accountRecord) { //停用帐户 if (NConvert.ToInt32(accountRecord.OperType.ID) == (int)HISFC.Models.Account.OperTypes.StopAccount) { this.ckStop.Checked = true; } //注销帐户 if (NConvert.ToInt32(accountRecord.OperType.ID) == (int)HISFC.Models.Account.OperTypes.CancelAccount) { this.ckCancel.Checked = true; } //修改密码 if (NConvert.ToInt32(accountRecord.OperType.ID) == (int)HISFC.Models.Account.OperTypes.EditPassWord) { this.ckCancelPwd.Checked = true; } //启用 if (NConvert.ToInt32(accountRecord.OperType.ID) == (int)HISFC.Models.Account.OperTypes.AginAccount) { this.ckAgain.Checked = true; } if (accountRecord.Patient.IsEncrypt) { this.lblName.Text = accountRecord.Patient.DecryptName; } else { this.lblName.Text = accountRecord.Patient.Name; } this.lblTel.Text = accountRecord.Patient.PhoneHome; this.lblAdress.Text = accountRecord.Patient.AddressHome; this.lbldate.Text = accountRecord.OperTime.ToString(); this.lblIDENO.Text = accountRecord.Patient.IDCard; this.label1.Text = (new Neusoft.HISFC.BizProcess.Integrate.Manager()).GetHospitalName(); }