Пример #1
0
        /// <summary>
        /// 构建reason_list返回值
        /// </summary>
        /// <returns></returns>
        private DependencyObjectType StructureQcList()
        {
            DependencyObjectType qcListType = new DependencyObjectType("qc_list");

            qcListType.RegisterSimpleProperty("qc_seq", typeof(int));
            qcListType.RegisterSimpleProperty("test_no", typeof(string));
            qcListType.RegisterSimpleProperty("test_name", typeof(string));
            qcListType.RegisterSimpleProperty("defect_level", typeof(string));
            qcListType.RegisterSimpleProperty("reject_qty", typeof(decimal));
            qcListType.RegisterSimpleProperty("test_qty", typeof(decimal));
            qcListType.RegisterSimpleProperty("reason_qty", typeof(decimal));
            qcListType.RegisterSimpleProperty("acceptable_qty", typeof(decimal)); //20170801 add by liwei1 for P001-170717001
            qcListType.RegisterSimpleProperty("rejected_qty", typeof(decimal));   //20170801 add by liwei1 for P001-170717001
            qcListType.RegisterSimpleProperty("return_qty", typeof(decimal));
            qcListType.RegisterSimpleProperty("reason_no", typeof(string));       //缺点原因
            qcListType.RegisterSimpleProperty("measure_max", typeof(decimal));
            qcListType.RegisterSimpleProperty("measure_min", typeof(decimal));
            qcListType.RegisterSimpleProperty("result_type", typeof(string));
            qcListType.RegisterCollectionProperty("reason_list", StructureReasonList());
            qcListType.RegisterCollectionProperty("attrib_list", StructureAttribList());
            return(qcListType);
        }
Пример #2
0
        /// <summary>
        /// 构建reason_list返回值
        /// </summary>
        /// <returns></returns>
        private DependencyObjectType StructureReceiptList()
        {
            DependencyObjectType receiptListType = new DependencyObjectType("receipt_list");

            receiptListType.RegisterSimpleProperty("seq", typeof(int));
            receiptListType.RegisterSimpleProperty("item_no", typeof(string));
            receiptListType.RegisterSimpleProperty("item_name", typeof(string));
            receiptListType.RegisterSimpleProperty("item_spec", typeof(string));
            receiptListType.RegisterSimpleProperty("item_feature_no", typeof(string));
            receiptListType.RegisterSimpleProperty("item_feature_name", typeof(string));
            receiptListType.RegisterSimpleProperty("unit_no", typeof(string));
            receiptListType.RegisterSimpleProperty("receipt_qty", typeof(decimal));
            receiptListType.RegisterSimpleProperty("ok_qty", typeof(decimal));
            receiptListType.RegisterSimpleProperty("unqualified_qty", typeof(decimal));  //20170801 add by liwei1 for P001-170717001
            receiptListType.RegisterSimpleProperty("checkdestroy_qty", typeof(decimal)); //20170801 add by liwei1 for P001-170717001reason_no
            receiptListType.RegisterSimpleProperty("result_type", typeof(string));
            receiptListType.RegisterSimpleProperty("qc_group", typeof(string));
            receiptListType.RegisterSimpleProperty("qc_degree", typeof(string));
            receiptListType.RegisterSimpleProperty("qc_level", typeof(string));
            receiptListType.RegisterSimpleProperty("qc_type", typeof(string));
            receiptListType.RegisterCollectionProperty("qc_list", StructureQcList());
            return(receiptListType);
        }