public AbnormalityCauseDatas getAbnormalityCauseDatas(string type)
        {
            AbnormalityCauseDatas resp = new AbnormalityCauseDatas();
            CV_QM_INFRA_ABNORMALITY_CATEGORY_QueryParam aParam = new CV_QM_INFRA_ABNORMALITY_CATEGORY_QueryParam()
            {
                IsCommon = true
            };

            if (!String.IsNullOrEmpty(type))
            {
                aParam.Category = type.Equals("fqc") ? "PCBA入库检" : "出厂检验";
            }
            else
            {
                aParam.CategoryStr = "'PCBA入库检','出厂检验'";
            }

            resp.abnormalityDatas = cv_abnormality_categorybo.GetEntities(aParam);
            CV_QM_INFRA_CAUSE_CATEGORY_QueryParam cParam = new CV_QM_INFRA_CAUSE_CATEGORY_QueryParam()
            {
                Category = "生产过程与返修通用",
                IsCommon = true
            };

            resp.causeDatas = cv_cause_categorybo.GetEntities(cParam);
            return(resp);
        }
Exemplo n.º 2
0
        public AbnormalityCauseDatas getAbnormalityCauseDatas()
        {
            AbnormalityCauseDatas resp = new AbnormalityCauseDatas();
            CV_QM_INFRA_ABNORMALITY_CATEGORY_QueryParam aParam = new CV_QM_INFRA_ABNORMALITY_CATEGORY_QueryParam()
            {
                Category = "IQC",
                IsCommon = true
            };

            resp.abnormalityDatas = cv_abnormality_categorybo.GetEntities(aParam);
            CV_QM_INFRA_CAUSE_CATEGORY_QueryParam cParam = new CV_QM_INFRA_CAUSE_CATEGORY_QueryParam()
            {
                Category = "IQC",
                IsCommon = true
            };

            resp.causeDatas = cv_cause_categorybo.GetEntities(cParam);
            return(resp);
        }