⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 a.java

📁 医院药品管理范例
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
 }
 /**
  * 转出单击事件
  */
 public void onZCEvent(){
   System.out.println("转出");
   if(this.getCheckBox("ZC").isSelected()){
     this.getComboBox("YSZYS").setEnabled(true);
   }else{
      this.getComboBox("YSZYS").setEnabled(false);
      this.getComboBox("YSZYS").setValue("");
   }
 }
 /**
  * 初始化页面方法
  */
 public void pageInit(){
   //单位
   this.initUnitComboBox();
   //院内代码
   this.initYNDMComboBox();
   //细分类
   this.initXFLComboBox();
   //证照类别
   this.initZZLBComboBox();
   //预设转院
   this.initYSZYSComboBox();
   //给付类别
   this.initGIVETYPEComboBox();
   //时间初始化
   this.initDateTime();
   //初始化GRID
   this.initGrid();
   // 初始化成员变量
   this.initMainVariable();
   //初始化EDIT
   this.initEdit();
   //初始化CHECKBOX
   this.initCheckBox();
   //初始化RadioButton
   this.initRadioButton();
   //初始化TREE
   this.initTree();
   //初始化处理部门
   this.initCLBMComboBox();
   //初始化数字控件
   this.initNumberic();
   //初始化工具按钮保存
   this.initToolBar(new Boolean(false));
   //初始化工具按钮新增
   this.initToolBarAdd(new Boolean(true));
   //初始化药品属性单位
   this.initPhaComb();
   //初始化剂型
   this.initJX();
   //初始化频率
   this.initPC();
   //初始化包药机
   this.initBYJ();
   //初始化缺药原因
   this.initQYYY();
   //初始化药品分类
   this.initPhaType();
   //初始化抗生素等级
   this.initKSS();
   //初始化途径
   this.initTJ();
   //初始化管制药品等级
   this.initGZYPJS();
   //初始化按钮
   this.initDyButton();
   //初始化页签
   this.getTabledPane("MAINEDIT").setSelectedIndex(0);
 }
 /**
  * 初始化新增事件页面方法
  */
 public void pageInitAdd(){
   //单位
   this.initUnitComboBox();
   //院内代码
   this.initYNDMComboBox();
   //细分类
   this.initXFLComboBox();
   //证照类别
   this.initZZLBComboBox();
   //预设转院
   this.initYSZYSComboBox();
   //给付类别
   this.initGIVETYPEComboBox();
   //时间初始化
   this.initDateTime();
   // 初始化成员变量
   this.initMainVariable();
   //初始化EDIT
   this.initEdit();
   //初始化CHECKBOX
   this.initCheckBox();
   //初始化RadioButton
   this.initRadioButton();
   //初始化TREE
   this.initTree();
   //初始化处理部门
   this.initCLBMComboBox();
   //初始化数字控件
   this.initNumberic();
   //初始化工具按钮保存
   this.initToolBar(new Boolean(false));
   //初始化工具按钮新增
   this.initToolBarAdd(new Boolean(true));
   //初始化药品属性单位
   this.initPhaComb();
   //初始化剂型
   this.initJX();
   //初始化频率
   this.initPC();
   //初始化包药机
   this.initBYJ();
   //初始化缺药原因
   this.initQYYY();
   //初始化药品分类
   this.initPhaType();
   //初始化抗生素等级
   this.initKSS();
   //初始化途径
   this.initTJ();
   //初始化管制药品等级
   this.initGZYPJS();
   //初始化按钮
   this.initDyButton();
   //初始化页签
   this.getTabledPane("MAINEDIT").setSelectedIndex(0);
 }

 /**
  * 初始化工具按钮保存
  */
 public void initToolBar(Boolean bool){
    this.getComponent("PHATOOLBAR").callEventListener(SysPhaPriceEnactmentToolBar.QUESRY_BUTTON_MONTH,bool);
 }
 /**
  * 初始化工具按钮新增
  * @param bool Boolean
  */
 public void initToolBarAdd(Boolean bool){
   this.getComponent("PHATOOLBAR").callEventListener(SysPhaPriceEnactmentToolBar.QUESRY_BUTTON_PREVIEW,bool);
 }
 /**
  * 初始化树
  */
 public void initTree(){
   this.getTree("TREE").setType(2);
   this.getTree("TREE").onInit();
 }
 /**
  * 初始化RadioButton
  */
 public void initRadioButton(){
   this.getRadioButton("ALL").setSelected(true);
   this.getRadioButton("XY").setSelected(true);
   this.getRadioButton("XY").setEnabled(true);
   this.getRadioButton("ZCY").setEnabled(true);
   this.getRadioButton("ZCAOY").setEnabled(true);
 }
 /**
  * 初始化CHECKBOX控件
  */
 public void initCheckBox(){
   this.getCheckBox("PRICESTATR").setSelected(false);
   this.getCheckBox("SDJJZJ").setSelected(true);
   this.getCheckBox("ADMTYPE_O").setSelected(false);
   this.getCheckBox("JCFQ").setSelected(false);
   this.getCheckBox("ADMTYPE_E").setSelected(false);
   this.getCheckBox("JRCZ").setSelected(false);
   this.getCheckBox("ADMTYPE_I").setSelected(false);
   this.getCheckBox("ADMTYPE_H").setSelected(false);
   this.getCheckBox("ZC").setSelected(false);
   this.getCheckBox("KDJZX").setSelected(false);
   this.getCheckBox("QYSZ").setSelected(false);
   this.getCheckBox("GZYP").setSelected(false);
   this.getCheckBox("BYJSY").setSelected(false);
   this.getCheckBox("PRICESTATR").setEnabled(true);
   this.getCheckBox("SDJJZJ").setEnabled(true);
   this.getCheckBox("ADMTYPE_O").setEnabled(true);
   this.getCheckBox("JCFQ").setEnabled(true);
   this.getCheckBox("ADMTYPE_E").setEnabled(true);
   this.getCheckBox("JRCZ").setEnabled(true);
   this.getCheckBox("ADMTYPE_I").setEnabled(true);
   this.getCheckBox("ADMTYPE_H").setEnabled(true);
   this.getCheckBox("ZC").setEnabled(true);
   this.getCheckBox("KDJZX").setEnabled(true);
   this.getCheckBox("QYSZ").setEnabled(true);
   this.getCheckBox("GZYP").setEnabled(true);
   this.getCheckBox("BYJSY").setEnabled(true);
   //第二个页签
   //缺药设置
   this.getCheckBox("QYSZ").setSelected(false);
   //可拨半
   this.getCheckBox("KBB").setSelected(false);
   //可退药
   this.getCheckBox("KTY").setSelected(false);
   //不可连续使用
   this.getCheckBox("BKLXSY").setSelected(false);
   //不可零星用药门诊
   this.getCheckBox("BKLXYYO").setSelected(false);
   //不可零星用药住院
   this.getCheckBox("BKLXYYI").setSelected(false);
   //管制药品
   this.getCheckBox("GZYP").setSelected(false);
   //包药机使用
   this.getCheckBox("BYJSY").setSelected(false);

   this.getCheckBox("QYSZ").setEnabled(true);
   this.getCheckBox("KBB").setEnabled(true);
   this.getCheckBox("KTY").setEnabled(true);
   this.getCheckBox("BKLXSY").setEnabled(true);
   this.getCheckBox("BKLXYYO").setEnabled(true);
   this.getCheckBox("BKLXYYI").setEnabled(true);
   this.getCheckBox("GZYP").setEnabled(true);
   this.getCheckBox("BYJSY").setEnabled(true);
 }
 /**
  * 初始化成员变量
  */
 public void initMainVariable(){
   this.orderCodeStr = "";
   this.treeStringId = "";
   this.phaAction = new ActionParm();
   this.phaAction.setCommitData("SAVE_FLG","N");
   this.phaBaseAction = new ActionParm();
 }
 /**
  * 获得分拦面板
  * @param tag String
  * @return DyTabbedPane
  */
 public DyTabbedPane getTabledPane(String tag){
   return (DyTabbedPane)this.getComponent(tag);
 }
 /**
  * 获得编辑控件
  * @param tag String
  * @return DyEdit
  */
 public DyEdit getEdit(String tag){
   return (DyEdit)this.getComponent(tag);
 }
 /**
  * 获得SYS_FEEGrid
  * @param tag String
  * @return DyGrid
  */
 public DyGrid getSysFeeGrid(String tag){
   return (DyGrid)this.getComponent(tag);
 }
 /**
  * 初始化药品单位下拉框
  */
 public void initUnitComboBox(){
   Vector vc = SysManager.getInstance().initUnitComboBox();
   this.getComboBox("UNIT").setCombo(vc);
   this.getComboBox("UNIT").setEnabled(true);
 }
 /**
  * 初始化药品属性药品单位
  */
 public void initPhaComb(){
   Vector vc = SysManager.getInstance().initUnitComboBox();
   this.getComboBox("KYUINTCOBO").setCombo(vc);
   this.getComboBox("KYUINTCOBO").setEnabled(true);
   this.getComboBox("FYUNITCOMBO").setCombo(vc);
   this.getComboBox("FYUNITCOMBO").setEnabled(true);
   this.getComboBox("FYUNITCOMBO2").setCombo(vc);
   this.getComboBox("FYUNITCOMBO2").setEnabled(true);
   this.getComboBox("STOCKUNIT").setCombo(vc);
   this.getComboBox("STOCKUNIT").setEnabled(true);
 }
 /**
  * 初始化剂型COMBO
  */
 public void initJX(){
   Vector vc = SysManager.getInstance().initJX();
   this.getComboBox("JX").setCombo(vc);
   this.getComboBox("JX").setEnabled(true);
 }
 /**
  * 初始化频次VCOMBO
  */
 public void initPC(){
   Vector vc = SysManager.getInstance().initPC();
   this.getComboBox("PL").setCombo(vc);
   this.getComboBox("PL").setEnabled(true);
 }
 /**
  * 初始化包药机COMBO
  */
 public void initBYJ(){
   Vector vc = SysManager.getInstance().initBYJ();
   this.getComboBox("BYJO").setCombo(vc);
   this.getComboBox("BYJO").setEnabled(true);
   this.getComboBox("BYJI").setCombo(vc);
   this.getComboBox("BYJI").setEnabled(true);
 }
 /**
  * 初始化缺药原因
  */
 public void initQYYY(){
   Vector vc = SysManager.getInstance().initQYYY();
   this.getComboBox("QYYY").setCombo(vc);
   this.getComboBox("QYYY").setEnabled(false);
 }
 /**
  * 初始化药品分类
  */
 public void initPhaType(){
   Vector vc = SysManager.getInstance().initPhaType();
   this.getComboBox("PHATYPE").setCombo(vc);
   this.getComboBox("PHATYPE").setEnabled(true);
 }
 /**
  * 初始化抗生素
  */
 public void initKSS(){
   Vector vc = SysManager.getInstance().initKSS();
   this.getComboBox("KSSDJ").setCombo(vc);
   this.getComboBox("KSSDJ").setEnabled(true);
 }
 /**
  * 初始化途径
  */
 public void initTJ(){
   Vector vc = SysManager.getInstance().initTJ();
   this.getComboBox("TJ").setCombo(vc);
   this.getComboBox("TJ").setEnabled(true);
 }
 /**
  * 初始化管制药品级数
  */
 public void initGZYPJS(){
   Vector vc = SysManager.getInstance().initGZYPJS();
   this.getComboBox("GZYPJS").setCombo(vc);
   this.getComboBox("GZYPJS").setEnabled(false);
 }
 /**
  * 初始化院内代码下拉框
  */
 public void initYNDMComboBox(){
   Vector vc = SysManager.getInstance().initYNDMComboBox();
   this.getComboBox("YNDM").setCombo(vc);
   this.getComboBox("YNDM").setEnabled(true);
 }
 /**
  * 初始化GRID
  */
 public void initGrid(){
   this.getGrid("GRID1").removeAllRow();
 }
 /**
  * 初始化细分类下拉框
  */
 public void initXFLComboBox(){
   Vector vc = SysManager.getInstance().initXFLComboBox();
   this.getComboBox("XFL").setCombo(vc);
   this.setValue("XFL","PHA");
   this.getComboBox("XFL").setEnabled(true);
 }
 /**
  * 初始化证照类别下拉框
  */
 public void initZZLBComboBox(){
   Vector vc = SysManager.getInstance().initZZLBComboBox();
   this.getComboBox("ZZLB").setCombo(vc);
   this.getComboBox("ZZLB").setEnabled(true);
 }
 /**
  * 初始化处理部门
  */
 public void initCLBMComboBox(){
   this.getPubDeptCombo("CLBM").setValue("");
   this.getPubDeptCombo("CLBM").setEnabled(true);
 }
 /**
  * 初始化预设转院所
  */
 public void initYSZYSComboBox(){
   Vector vc = SysManager.getInstance().initYSZYSComboBox();
   this.getComboBox("YSZYS").setCombo(vc);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -