private void m_cboLineCount_DropDown(object sender, System.EventArgs e) { m_cboLineCount.ClearItem(); for (int i = 1; i <= 5; i++) { m_cboLineCount.AddItem(i.ToString()); } }
public void m_cmthEventItem_DropDown(object sender, System.EventArgs e, string p_strEventFlag) { com.digitalwave.Utility.Controls.ctlComboBox cboEvent = sender as com.digitalwave.Utility.Controls.ctlComboBox; cboEvent.ClearItem(); clsThreeMeasureEventInfo[] objEvents = m_objGetThreeMeasureEventInfoByType(p_strEventFlag); for (int i = 0; i < objEvents.Length; i++) { cboEvent.AddItem(objEvents[i]); } }
private void m_mthGetCategoryName() { if (m_ojbIcdValue != null) { for (int i = 0; i <= m_ojbIcdValue.Length - 1; i++) { m_cboCategory.AddItem(m_ojbIcdValue[i].ICD10_Name); m_cboCategoryId.AddItem(m_ojbIcdValue[i].ICD10_ID); } if (m_cboCategory.GetItemsCount() > 0) { m_cboCategory.SelectedIndex = 0; } } }
private void m_mthGetAllInfo() { System.Data.DataTable dtRecord = null; com.digitalwave.EMR_EmployeeManagerService.clsEMR_EmployeeManagerService objServ = (com.digitalwave.EMR_EmployeeManagerService.clsEMR_EmployeeManagerService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.EMR_EmployeeManagerService.clsEMR_EmployeeManagerService)); objServ.m_lngGetChargeDocByDeptID(null, MDIParent.s_ObjDepartment.m_StrDeptID.Trim(), out dtRecord); if (dtRecord != null || dtRecord.Rows.Count > 0) { for (int i = 0; i < dtRecord.Rows.Count; i++) { m_cboUser.AddItem(dtRecord.Rows[i]["FirstName"].ToString()); m_cboUser1.AddItem(dtRecord.Rows[i]["EmployeeID"].ToString()); } m_cboUser.SelectedIndex = 0; } }
private void m_mthGetAllDept() { clsDeptAndAreaInfo[] objDeptAndAreaInfoArr = null; clsDepartmentManager objManagerDomain = new clsDepartmentManager(); long lngRes = objManagerDomain.m_lngGetAllDeptAndAreaInfoArr(out objDeptAndAreaInfoArr); if (lngRes <= 0) { clsPublicFunction.ShowInformationMessageBox("数据库连接失败!"); return; } else if (objDeptAndAreaInfoArr == null) { return; } for (int i = 0; i < objDeptAndAreaInfoArr.Length; i++) { TreeNode objNode = new TreeNode(objDeptAndAreaInfoArr[i].m_objDept.m_StrDeptName); frmRowlInfo.clsNodeInfo objInfo = new iCare.frmRowlInfo.clsNodeInfo(); objInfo.m_intCategory = 1; objInfo.m_strID = objDeptAndAreaInfoArr[i].m_objDept.m_StrDeptID; objInfo.m_strName = objDeptAndAreaInfoArr[i].m_objDept.m_StrDeptName; objInfo.m_objDeptDesc = new iCareData.clsDept_Desc(); objInfo.m_objDeptDesc.m_dtmCreateDate = objDeptAndAreaInfoArr[i].m_objDept.m_DtmDeptCreateDate; objInfo.m_objDeptDesc.m_dtmModifyDate = objDeptAndAreaInfoArr[i].m_objDept.m_DtmDeptInfoModifyDate; objInfo.m_objDeptDesc.m_dtmModifyDate = objDeptAndAreaInfoArr[i].m_objDept.m_DtmDeptRelationModifyDate; objInfo.m_objDeptDesc.m_strCategory = objDeptAndAreaInfoArr[i].m_objDept.m_EnmDeptCategory.ToString(); objInfo.m_objDeptDesc.m_strDeActivedOperatorID = ""; objInfo.m_objDeptDesc.m_strDeptID = objDeptAndAreaInfoArr[i].m_objDept.m_StrDeptID; objInfo.m_objDeptDesc.m_strDeptName = objDeptAndAreaInfoArr[i].m_objDept.m_StrDeptName; objInfo.m_objDeptDesc.m_strInPatientOrOutPatient = objDeptAndAreaInfoArr[i].m_objDept.m_EnmDeptType.ToString(); objInfo.m_objDeptDesc.m_strPYCode = objDeptAndAreaInfoArr[i].m_objDept.m_StrDeptPYCode; objInfo.m_objDeptDesc.m_strShortNO = objDeptAndAreaInfoArr[i].m_objDept.m_StrDeptShortNO; m_cboDept.AddItem(objInfo); } }