private void Frmbrxxcx_Load(object sender, EventArgs e) { FunAddComboBox.AddBrlx(true, 0, cmbbrlx, InstanceForm.BDatabase); FunAddComboBox.AddKlx(false, 0, cmbklx, InstanceForm.BDatabase); FunAddComboBox.AddOperator(true, cmbdjy, InstanceForm.BDatabase); FunAddComboBox.AddYblx(true, 0, cmbcblx, InstanceForm.BDatabase); FunAddComboBox.AddGj(true, cmbgj, InstanceForm.BDatabase); FunAddComboBox.AddMz(true, cmbmz, InstanceForm.BDatabase); // chkdjsj.Checked = true; dtpcsrq1.Value = dtpcsrq1.Value.AddYears(-1); //自动读射频卡 string sbxh = ApiFunction.GetIniString("医院健康卡", "设备型号", Constant.ApplicationDirectory + "//ClientWindow.ini"); ts_Read_hospitalCard.Icall ReadCard = ts_Read_hospitalCard.CardFactory.NewCall(sbxh); if (ReadCard != null) { ReadCard.AutoReadCard(_menuTag.Function_Name, cmbklx, txtkh); } //150108 chencan/ 右键菜单添加“诊疗卡打印” if (cfg1161.Config == "1") { ToolStripMenuItem menuprint = new ToolStripMenuItem(); menuprint.Text = "重打条码单"; menuprint.Click += new EventHandler(menuprint_Click); this.contextMenuStrip1.Items.Add(menuprint); } cmbklx.Focus(); }
private void Frmghdj_Load(object sender, EventArgs e) { this.WindowState = FormWindowState.Maximized; FunAddComboBox.AddBrlx(true, 0, cmbbrlx, InstanceForm.BDatabase); FunAddComboBox.AddGhlx(true, 0, cmbghlx, InstanceForm.BDatabase); FunAddComboBox.AddKlx(true, 0, cmbklx, InstanceForm.BDatabase); FunAddComboBox.AddGhjb(true, 0, cmbghjb, InstanceForm.BDatabase); FunAddComboBox.AddOperator(true, cmbsky, InstanceForm.BDatabase); Tbks = Fun.GetGhks(false, InstanceForm.BDatabase); Tbys = Fun.GetGhys(0, InstanceForm.BDatabase); #region 窗口输入项的控制 //ghlb_ini = ApiFunction.GetIniString("挂号屏蔽项", "诊别", Constant.ApplicationDirectory + "//ClientWindow.ini"); //klx_ini = ApiFunction.GetIniString("挂号屏蔽项", "卡类型", Constant.ApplicationDirectory + "//ClientWindow.ini"); //kh_ini = ApiFunction.GetIniString("挂号屏蔽项", "卡号", Constant.ApplicationDirectory + "//ClientWindow.ini"); //xm_ini = ApiFunction.GetIniString("挂号屏蔽项", "姓名", Constant.ApplicationDirectory + "//ClientWindow.ini"); //xb_ini = ApiFunction.GetIniString("挂号屏蔽项", "性别", Constant.ApplicationDirectory + "//ClientWindow.ini"); //nl_ini = ApiFunction.GetIniString("挂号屏蔽项", "年龄", Constant.ApplicationDirectory + "//ClientWindow.ini"); //lxfs_ini = ApiFunction.GetIniString("挂号屏蔽项", "联系方式", Constant.ApplicationDirectory + "//ClientWindow.ini"); //jtdz_ini = ApiFunction.GetIniString("挂号屏蔽项", "家庭地址", Constant.ApplicationDirectory + "//ClientWindow.ini"); //brlx_ini = ApiFunction.GetIniString("挂号屏蔽项", "病人类型", Constant.ApplicationDirectory + "//ClientWindow.ini"); //ghks_ini = ApiFunction.GetIniString("挂号屏蔽项", "挂号科室", Constant.ApplicationDirectory + "//ClientWindow.ini"); //ghjb_ini = ApiFunction.GetIniString("挂号屏蔽项", "挂号级别", Constant.ApplicationDirectory + "//ClientWindow.ini"); //ghys_ini = ApiFunction.GetIniString("挂号屏蔽项", "挂号医生", Constant.ApplicationDirectory + "//ClientWindow.ini"); //yblx_ini = ApiFunction.GetIniString("挂号屏蔽项", "医保类型", Constant.ApplicationDirectory + "//ClientWindow.ini"); //readcard_ini = ApiFunction.GetIniString("挂号屏蔽项", "读卡", Constant.ApplicationDirectory + "//ClientWindow.ini"); //blb_ini = ApiFunction.GetIniString("挂号屏蔽项", "病历本", Constant.ApplicationDirectory + "//ClientWindow.ini"); //sfplx_ini = ApiFunction.GetIniString("划价收费", "挂号使用收费票", Constant.ApplicationDirectory + "//ClientWindow.ini"); //syk_ini = ApiFunction.GetIniString("挂号收费", "挂号时必须使用卡", Constant.ApplicationDirectory + "//ClientWindow.ini"); //Bview = ApiFunction.GetIniString("划价收费", "发票预览", Constant.ApplicationDirectory + "//ClientWindow.ini"); //Fplx = sfplx_ini == "true" ? 1 : 0; //cmbghlx.Enabled = ghlb_ini == "true" ? false : true; //cmbklx.Enabled = klx_ini == "true" ? false : true; //txtkh.Enabled = kh_ini == "true" ? false : true; //txtxm.Enabled = xm_ini == "true" ? false : true; //txtgrlxfs.Enabled = lxfs_ini == "true" ? false : true; //txtjtdz.Enabled = jtdz_ini == "true" ? false : true; //cmbbrlx.Enabled = brlx_ini == "true" ? false : true; //txtks.Enabled = ghks_ini == "true" ? false : true; //cmbghjb.Enabled = ghjb_ini == "true" ? false : true; //txtys.Enabled = ghys_ini == "true" ? false : true; #endregion //自动读射频卡 string sbxh = ApiFunction.GetIniString("医院健康卡", "设备型号", Constant.ApplicationDirectory + "//ClientWindow.ini"); ts_Read_hospitalCard.Icall ReadCard = ts_Read_hospitalCard.CardFactory.NewCall(sbxh); if (ReadCard != null) { ReadCard.AutoReadCard(_menuTag.Function_Name, cmbklx, txtkh); } }