/// <summary> /// 保存 /// </summary> public void SaveData( ) { Neusoft.FrameWork.Management.PublicTrans.BeginTransaction(); Neusoft.FrameWork.Management.ExtendParam extManager = new ExtendParam(); //Transaction t = new Transaction( Connection.Instance ); //t.BeginTransaction( ); this.drugStoreManager.SetTrans(Neusoft.FrameWork.Management.PublicTrans.Trans); //extManager.SetTrans(Neusoft.FrameWork.Management.PublicTrans.Trans); //更新调剂方式 if (!this.SaveAdjustParam(extManager)) { Neusoft.FrameWork.Management.PublicTrans.RollBack(); return; } //更新配药台 if (!this.SaveTerminalParam( )) { Neusoft.FrameWork.Management.PublicTrans.RollBack(); return; } Neusoft.FrameWork.Management.PublicTrans.Commit(); MessageBox.Show(Language.Msg("保存成功")); }
/// <summary> /// 初始化配药调剂方式 0 平均 1 竞争 /// </summary> public void ShowAdjustType( ) { //Neusoft.HISFC.BizLogic.Manager.Controler controlerManager = new Neusoft.HISFC.BizLogic.Manager.Controler( ); //string ctrl = controlerManager.QueryControlerInfo( "500006" ); //if( ctrl == null || ctrl == "-1" || ctrl == "0" ) //{ // this.rbAverage.Checked = true; // this.adjustType = "0"; //} //else //{ // this.rbCompete.Checked = true; // this.adjustType = "1"; //} Neusoft.FrameWork.Management.ExtendParam extManager = new ExtendParam(); Neusoft.HISFC.Models.Base.ExtendInfo deptExt = extManager.GetComExtInfo(Neusoft.HISFC.Models.Base.EnumExtendClass.DEPT, "TerminalAdjust", this.privDept.ID); if (deptExt == null) { MessageBox.Show(Language.Msg("获取科室扩展属性内配药调剂参数失败!")); return; } if (deptExt.StringProperty == "1") //竞争 { this.rbCompete.Checked = true; } else { this.rbAverage.Checked = true; } deptExt = extManager.GetComExtInfo(Neusoft.HISFC.Models.Base.EnumExtendClass.DEPT, "AdjustGist", this.privDept.ID); if (deptExt == null) { MessageBox.Show(Language.Msg("获取科室扩展属性内配药调剂依据设定失败!")); return; } if (deptExt.StringProperty == "1") //发药 { this.rbSend.Checked = true; } else { this.rbDrug.Checked = true; } }