Ejemplo n.º 1
0
        public void m_mthGetCheckItemByCheckCategory(string p_strCheckCategoryID)
        {
            long lngRes = 0;

            clsCheckItem_VO[] objCheckItemVOArr = null;
            clsDomainController_CheckItemManage objDomainManage = new clsDomainController_CheckItemManage();

            m_objViewer.m_cboCheckItem.Items.Clear();
            lngRes = objDomainManage.m_lngGetCheckItemByCategoryID(p_strCheckCategoryID, out objCheckItemVOArr);
            if (lngRes > 0 && objCheckItemVOArr != null)
            {
                if (objCheckItemVOArr.Length > 0)
                {
                    m_objViewer.m_cboCheckItem.Items.Add("全部");
                    for (int i = 0; i < objCheckItemVOArr.Length; i++)
                    {
                        m_objViewer.m_cboCheckItem.Items.Add(objCheckItemVOArr[i].m_strCheck_Item_Name);
                    }
                    m_objViewer.m_cboCheckItem.Tag = objCheckItemVOArr;
                }
                else
                {
                    m_objViewer.m_cboCheckItem.Items.Add("全部");
                }
            }
            else
            {
                m_objViewer.m_cboCheckItem.Items.Add("全部");
            }
            m_objViewer.m_cboCheckItem.SelectedIndex = 0;
        }
Ejemplo n.º 2
0
        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";
            }
        }
Ejemplo n.º 3
0
        //初始化检验类别
        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";
            }
        }
Ejemplo n.º 4
0
        public void m_mthGetCheckItemByCheckCategory()
        {
            if (m_objViewer.m_cboCheckCategory.Items.Count <= 0)
            {
                return;
            }
            long      lngRes           = 0;
            string    strCheckCategory = m_objViewer.m_cboCheckCategory.SelectedValue.ToString().Trim();
            DataTable dtbResult        = null;
            clsDomainController_CheckItemManage objManage = new clsDomainController_CheckItemManage();

            lngRes = objManage.m_lngGetCheckItemArrByCheckCategory(strCheckCategory, out dtbResult);
            if (lngRes > 0 && dtbResult != null)
            {
                m_objViewer.m_cboCheckItem.DataSource    = dtbResult;
                m_objViewer.m_cboCheckItem.DisplayMember = "CHECK_ITEM_NAME_VCHR";
                m_objViewer.m_cboCheckItem.ValueMember   = "CHECK_ITEM_ID_CHR";
            }
        }
Ejemplo n.º 5
0
        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;
                }
            }
        }
Ejemplo n.º 6
0
        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;
                            }
                        }
                    }
                }
            }
        }