/// <summary> /// 初始化 /// </summary> protected void InitControlParm() { this.ucClinicTree1.OperDept = this.OperDept; this.ucClinicTree1.OperInfo = this.OperInfo; this.ucClinicTree1.ApproveDept = this.OperDept; this.ucClinicTree1.SetFunMode(Neusoft.HISFC.Components.DrugStore.OutpatientFun.Drug); this.ucClinicTree1.SetTerminal(this.Terminal); this.ucClinicDrug1.OperDept = this.OperDept; this.ucClinicDrug1.OperInfo = this.OperInfo; this.ucClinicDrug1.ApproveDept = this.OperDept; this.ucClinicDrug1.SetFunMode(Neusoft.HISFC.Components.DrugStore.OutpatientFun.Drug); this.ucClinicDrug1.SetTerminal(this.Terminal); this.funMode = Neusoft.HISFC.Components.DrugStore.OutpatientFun.Drug; }
public int PreArrange() { this.isPreArrange = true; #region 根据窗口参数 设置窗口功能 if (this.Tag != null) { switch (this.Tag.ToString().ToUpper()) { case "DRUG": //配药 case "ODRUG": //其他药房配药 this.funMode = Neusoft.HISFC.Components.DrugStore.OutpatientFun.Drug; this.Text = "门诊配药"; break; case "SEND": //发药 case "OSEND": //其他药房发药 this.funMode = Neusoft.HISFC.Components.DrugStore.OutpatientFun.Send; this.Text = "门诊发药"; break; case "BACK": //还药 this.funMode = Neusoft.HISFC.Components.DrugStore.OutpatientFun.Back; this.Text = "门诊还药"; break; case "DSEND": //直接发药 (不经过配药) this.funMode = Neusoft.HISFC.Components.DrugStore.OutpatientFun.DirectSend; this.Text = "门诊直接发药"; break; //屏蔽其他药房配、发药功能 实际验证用处不大 //case "ODRUG": //其他药房配药 // this.funMode = Neusoft.HISFC.Components.DrugStore.OutpatientFun.Drug; // this.isOtherDrugDept = true; // this.Text = "其他药房配药"; // break; //case "OSEND": //其他药房发药 // this.funMode = Neusoft.HISFC.Components.DrugStore.OutpatientFun.Send; // this.isOtherDrugDept = true; // this.Text = "其他药房发药"; // break; default: this.funMode = Neusoft.HISFC.Components.DrugStore.OutpatientFun.Drug; this.Text = "门诊配药"; break; } } #endregion //本窗口基本信息获取 各控件信息赋值 if (this.Init() == -1) { this.isCancel = true; return(-1); } return(1); }