public void m_mthGetAllCheckCategory() { long lngRes = 0; DataTable dtbResult = null; clsDomainController_CheckItemManage objManage = new clsDomainController_CheckItemManage(); lngRes = objManage.m_lngGetCheckCategory(out dtbResult); if (lngRes > 0 && dtbResult != null) { m_objViewer.m_cboCheckCategory.DataSource = dtbResult; m_objViewer.m_cboCheckCategory.DisplayMember = "CHECK_CATEGORY_DESC_VCHR"; m_objViewer.m_cboCheckCategory.ValueMember = "CHECK_CATEGORY_ID_CHR"; } }
//初始化检验类别 public void m_mthInitCheckCategory() { long lngRes = 0; DataTable dtbCheckCategory = null; clsDomainController_CheckItemManage objCheckItemManage = new clsDomainController_CheckItemManage(); lngRes = objCheckItemManage.m_lngGetCheckCategory(out dtbCheckCategory); if (lngRes > 0 && dtbCheckCategory != null && dtbCheckCategory.Rows.Count > 0) { this.m_cboCheckCategory.DataSource = dtbCheckCategory; this.m_cboCheckCategory.DisplayMember = "CHECK_CATEGORY_DESC_VCHR"; this.m_cboCheckCategory.ValueMember = "CHECK_CATEGORY_ID_CHR"; } }
public void m_mthGetCheckCategory() { clsDomainController_CheckItemManage objDomainManage = new clsDomainController_CheckItemManage(); clsCheckCategory_VO[] objCheckCategoryVOArr = null; long lngRes = 0; lngRes = objDomainManage.m_lngGetCheckCategory(out objCheckCategoryVOArr); if (lngRes > 0 && objCheckCategoryVOArr != null) { if (objCheckCategoryVOArr.Length > 0) { m_objViewer.m_cboCheckCategory.Items.Add("全部"); for (int i = 0; i < objCheckCategoryVOArr.Length; i++) { m_objViewer.m_cboCheckCategory.Items.Add(objCheckCategoryVOArr[i].m_strCheck_Category_Name); } m_objViewer.m_cboCheckCategory.Tag = objCheckCategoryVOArr; } } }
public void m_mthGetSampleGroupTreeNodes(out TreeNode[] p_objTreeNodeArr) { long lngRes = 0; p_objTreeNodeArr = null; clsCheckCategory_VO[] objCheckCategoryArr = null; clsDomainController_CheckItemManage objCheckItemManage = new clsDomainController_CheckItemManage(); lngRes = objCheckItemManage.m_lngGetCheckCategory(out objCheckCategoryArr); if (lngRes > 0 && objCheckCategoryArr != null) { p_objTreeNodeArr = new TreeNode[objCheckCategoryArr.Length]; for (int i = 0; i < objCheckCategoryArr.Length; i++) { p_objTreeNodeArr[i] = new TreeNode(); p_objTreeNodeArr[i].Text = objCheckCategoryArr[i].m_strCheck_Category_Name; p_objTreeNodeArr[i].Tag = objCheckCategoryArr[i]; } clsSampleGroup_VO[] objSampleGroupArr = null; lngRes = m_lngGetAllSampleGroup(out objSampleGroupArr); if (lngRes > 0 && objSampleGroupArr != null) { for (int i = 0; i < objSampleGroupArr.Length; i++) { TreeNode objChildTreeNode = new TreeNode(); objChildTreeNode.Text = objSampleGroupArr[i].strSampleGroupName; objChildTreeNode.Tag = objSampleGroupArr[i]; for (int j = 0; j < p_objTreeNodeArr.Length; j++) { if (((clsCheckCategory_VO)p_objTreeNodeArr[j].Tag).m_strCheck_Category_ID == objSampleGroupArr[i].strCheckCategoryID) { p_objTreeNodeArr[j].Nodes.Add(objChildTreeNode); break; } } } } } }