Exemplo n.º 1
0
        private string Para_18C80_ToXml(ParaParent para)
        {
            string             strRet       = "";
            ModelReflection    mR           = new ModelReflection();
            Vehicle_18C80_Para m_18C80_Papa = (Vehicle_18C80_Para)para;

            switch (m_18C80_Papa.jyxm)
            {
            case "DC":    //动态底盘
                Vehicle_18C80_DTDP_Para m_DTDP_Para = (Vehicle_18C80_DTDP_Para)m_18C80_Papa;
                strRet = mR.ParaModelToXML_Ex(m_DTDP_Para, "vehispara");
                break;

            case "C1":    //底盘检查
                Vehicle_18C80_DPJC_Para m_DPJC_Para = (Vehicle_18C80_DPJC_Para)m_18C80_Papa;
                strRet = mR.ParaModelToXML_Ex(m_DPJC_Para, "vehispara");
                break;
            }

            return(strRet);
        }
Exemplo n.º 2
0
        private string Para_18C81_ToXml(ParaParent para)
        {
            string             strRet       = "";
            ModelReflection    mR           = new ModelReflection();
            Vehicle_18C81_Para m_18C81_Papa = (Vehicle_18C81_Para)para;

            switch (m_18C81_Papa.jyxm)
            {
            case "B1":    //一轴
                Vehicle_18C81_YZZD_Para m_YZZD_Para = (Vehicle_18C81_YZZD_Para)m_18C81_Papa;
                strRet = mR.ParaModelToXML_Ex(m_YZZD_Para, "vehispara");
                break;

            case "B2":    //二轴
                Vehicle_18C81_EZZD_Para m_EZZD_Para = (Vehicle_18C81_EZZD_Para)m_18C81_Papa;
                strRet = mR.ParaModelToXML_Ex(m_EZZD_Para, "vehispara");
                break;

            case "B3":    //三轴
                Vehicle_18C81_SZZD_Para m_SZZD_Para = (Vehicle_18C81_SZZD_Para)m_18C81_Papa;
                strRet = mR.ParaModelToXML_Ex(m_SZZD_Para, "vehispara");
                break;

            case "B4":    //四轴
                Vehicle_18C81_SIZZD_Para m_SIZZD_Para = (Vehicle_18C81_SIZZD_Para)m_18C81_Papa;
                strRet = mR.ParaModelToXML_Ex(m_SIZZD_Para, "vehispara");
                break;

            case "B5":    //五轴
                Vehicle_18C81_WZZD_Para m_WZZD_Para = (Vehicle_18C81_WZZD_Para)m_18C81_Papa;
                strRet = mR.ParaModelToXML_Ex(m_WZZD_Para, "vehispara");
                break;

            case "B0":    //驻车
                Vehicle_18C81_ZCZD_Para m_ZCZD_Para = (Vehicle_18C81_ZCZD_Para)m_18C81_Papa;
                strRet = mR.ParaModelToXML_Ex(m_ZCZD_Para, "vehispara");
                break;

            case "H1":    //左外
                Vehicle_18C81_ZWD_Para m_ZWD_Para = (Vehicle_18C81_ZWD_Para)m_18C81_Papa;
                strRet = mR.ParaModelToXML_Ex(m_ZWD_Para, "vehispara");
                break;

            case "H2":    //左内
                Vehicle_18C81_ZND_Para m_ZND_Para = (Vehicle_18C81_ZND_Para)m_18C81_Papa;
                strRet = mR.ParaModelToXML_Ex(m_ZND_Para, "vehispara");
                break;

            case "H3":    //右内
                Vehicle_18C81_YND_Para m_YND_Para = (Vehicle_18C81_YND_Para)m_18C81_Papa;
                strRet = mR.ParaModelToXML_Ex(m_YND_Para, "vehispara");
                break;

            case "H4":    //右外
                Vehicle_18C81_YWD_Para m_YWD_Para = (Vehicle_18C81_YWD_Para)m_18C81_Papa;
                strRet = mR.ParaModelToXML_Ex(m_YWD_Para, "vehispara");
                break;

            case "S1":    //车速表
                Vehicle_18C81_CSB_Para m_CSB_Para = (Vehicle_18C81_CSB_Para)m_18C81_Papa;
                strRet = mR.ParaModelToXML_Ex(m_CSB_Para, "vehispara");
                break;

            case "A1":    //侧滑
                Vehicle_18C81_Sideslip_Para m_Sideslip_Para = (Vehicle_18C81_Sideslip_Para)m_18C81_Papa;
                strRet = mR.ParaModelToXML_Ex(m_Sideslip_Para, "vehispara");
                break;

            case "M1":    //外廓尺寸
                Vehicle_18C81_WKCC_Para m_WKCC_Para = (Vehicle_18C81_WKCC_Para)m_18C81_Papa;
                strRet = mR.ParaModelToXML_Ex(m_WKCC_Para, "vehispara");
                break;

            case "Z1":    //整备质量
                Vehicle_18C81_ZBZL_Para m_ZBZL_Para = (Vehicle_18C81_ZBZL_Para)m_18C81_Papa;
                strRet = mR.ParaModelToXML_Ex(m_ZBZL_Para, "vehispara");
                break;

            case "L1":    //一轴
                Vehicle_18C81_JZZD_Para m_YZJZ_Para = (Vehicle_18C81_JZZD_Para)m_18C81_Papa;
                strRet = mR.ParaModelToXML_Ex(m_YZJZ_Para, "vehispara");
                break;

            case "L2":    //二轴
                Vehicle_18C81_JZZD_Para m_EZJZ_Para = (Vehicle_18C81_JZZD_Para)m_18C81_Papa;
                strRet = mR.ParaModelToXML_Ex(m_EZJZ_Para, "vehispara");
                break;

            case "L3":    //三轴
                Vehicle_18C81_JZZD_Para m_SZJZ_Para = (Vehicle_18C81_JZZD_Para)m_18C81_Papa;
                strRet = mR.ParaModelToXML_Ex(m_SZJZ_Para, "vehispara");
                break;

            case "L4":    //四轴
                Vehicle_18C81_JZZD_Para m_SIZJZ_Para = (Vehicle_18C81_JZZD_Para)m_18C81_Papa;
                strRet = mR.ParaModelToXML_Ex(m_SIZJZ_Para, "vehispara");
                break;
            }

            return(strRet);
        }