Ejemplo 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);
        }
Ejemplo n.º 2
0
        private Vehicle_18C80_Para Para_18C80_ToModel(ParaParent para, string strParaContent)
        {
            Vehicle_18C80_Para m_para = (Vehicle_18C80_Para)para;
            ModelReflection    mR     = new ModelReflection();

            m_para = mR.ParaSetModelValue(m_para, "vehispara", strParaContent);
            switch (m_para.jyxm)
            {
            case "DC":
                Vehicle_18C80_DTDP_Para m_DTDP = new Vehicle_18C80_DTDP_Para(m_para.jkid, m_para.jkxlh, m_para.xtlb);
                m_DTDP = mR.ParaSetModelValue(m_DTDP, "vehispara", strParaContent);
                m_para = (Vehicle_18C80_Para)m_DTDP;
                break;

            case "C1":
                Vehicle_18C80_DPJC_Para m_DPJC = new Vehicle_18C80_DPJC_Para(m_para.jkid, m_para.jkxlh, m_para.xtlb);
                m_DPJC = mR.ParaSetModelValue(m_DPJC, "vehispara", strParaContent);
                m_para = (Vehicle_18C80_Para)m_DPJC;
                break;
            }

            return(m_para);
        }