Пример #1
0
        private string Result_18W05_ToXml(ResultParent result)
        {
            Vehicle_18W05_Result _18W05_Result = (Vehicle_18W05_Result)result;
            ModelReflection      _mr           = new ModelReflection();
            string _result = _mr.ResultModelToXML(_18W05_Result, "vehispara");

            return(_result);
        }
Пример #2
0
        private string Para_18W06_ToXml(ParaParent para)
        {
            Vehicle_18W06_Para _18W06_Para = (Vehicle_18W06_Para)para;
            ModelReflection    _mr         = new ModelReflection();
            string             _result     = _mr.ParaModelToXML(_18W06_Para, "QueryCondition");

            return(_result);
        }
Пример #3
0
        private string Result_18X05_ToXml(ResultParent result)
        {
            Vehicle_18X05_Result m_18X05_Result = (Vehicle_18X05_Result)result;
            ModelReflection      mR             = new ModelReflection();
            string strRet = mR.ResultModelToXML(m_18X05_Result, "vehispara");

            return(strRet);
        }
Пример #4
0
        private string Para_18X05_ToXml(ParaParent para)
        {
            Vehicle_18X05_Para m_18X05_Papa = (Vehicle_18X05_Para)para;
            ModelReflection    mR           = new ModelReflection();
            string             strRet       = mR.ParaModelToXML(m_18X05_Papa, "vehispara");

            return(strRet);
        }
Пример #5
0
        private string Para_18J80_ToXml(ParaParent para)
        {
            Vehicle_18J80_Para m_18J80_Papa = (Vehicle_18J80_Para)para;
            ModelReflection    mR           = new ModelReflection();
            string             strRet       = mR.ParaModelToXML(m_18J80_Papa, "QueryCondition");

            return(strRet);
        }
Пример #6
0
        private string Result_18W06_ToXml(ResultParent result)
        {
            Vehicle_18W06_Result _18W06_Result = (Vehicle_18W06_Result)result;
            ModelReflection      _mr           = new ModelReflection();
            string _result = _mr.ResultModelToXML(_18W06_Result, "QueryCondition");

            return(_result);
        }
Пример #7
0
        private string Req_Verify_ToXml(RequestParent req)
        {
            Vehicle_DR001_Login_Request m_Verify_Req = (Vehicle_DR001_Login_Request)req;
            ModelReflection             mR           = new ModelReflection();
            string strRet = mR.ReqModelToXML(m_Verify_Req, "vehispara");

            return(strRet);
        }
Пример #8
0
        private string Resp_GetTime_ToXml(ResponseParent resp)
        {
            Vehicle_DR004_GetTime_Response m_GetTime_Resp = (Vehicle_DR004_GetTime_Response)resp;
            ModelReflection mR     = new ModelReflection();
            string          strRet = mR.RespModelToXML(m_GetTime_Resp, "???");

            return(strRet);
        }
Пример #9
0
        private Vehicle_18W06_Para Para_18W06_ToModel(ParaParent para, string strPataContent)
        {
            Vehicle_18W06_Para _para = (Vehicle_18W06_Para)para;
            ModelReflection    _mr   = new ModelReflection();

            _para = _mr.ParaSetModelValue(_para, "QueryCondition", strPataContent);
            return(_para);
        }
Пример #10
0
        private Vehicle_DR004_GetTime_Request Req_GetTime_ToModel(RequestParent Req, string strReqContent)
        {
            Vehicle_DR004_GetTime_Request m_Req = (Vehicle_DR004_GetTime_Request)Req;
            ModelReflection mR = new ModelReflection();

            m_Req = mR.ReqXMLToModel(m_Req, "Request", strReqContent);
            return(m_Req);
        }
Пример #11
0
        private Vehicle_DR001_Login_Request Req_Verify_ToModel(RequestParent Req, string strReqContent)
        {
            Vehicle_DR001_Login_Request m_Req = (Vehicle_DR001_Login_Request)Req;
            ModelReflection             mR    = new ModelReflection();

            m_Req = mR.ReqXMLToModel(m_Req, "Row", strReqContent);
            return(m_Req);
        }
Пример #12
0
        private string Req_GetTime_ToXml(RequestParent req)
        {
            Vehicle_DR004_GetTime_Request m_GetTime_Req = (Vehicle_DR004_GetTime_Request)req;
            ModelReflection mR     = new ModelReflection();
            string          strRet = mR.ReqModelToXML(m_GetTime_Req, "???");

            return(strRet);
        }
Пример #13
0
        private string Resp_Verify_ToXml(ResponseParent resp)
        {
            Vehicle_DR001_Login_Response m_Verify_Resp = (Vehicle_DR001_Login_Response)resp;
            ModelReflection mR     = new ModelReflection();
            string          strRet = mR.RespModelToXML(m_Verify_Resp, "vehispara");

            return(strRet);
        }
Пример #14
0
        private Vehicle_18C59_Para Para_18C59_ToModel(ParaParent para, string strParaContent)
        {
            Vehicle_18C59_Para m_para = (Vehicle_18C59_Para)para;
            ModelReflection    mR     = new ModelReflection();

            m_para = mR.ParaSetModelValue(m_para, "vehispara", strParaContent);

            return(m_para);
        }
Пример #15
0
        /// <summary>
        /// 18J52 Para
        /// </summary>
        /// <param name="strParaContent"></param>
        /// <returns></returns>
        private Vehicle_18J52_Para Para_18J52_ToModel(ParaParent para, string strParaContent)
        {
            Vehicle_18J52_Para m_para = (Vehicle_18J52_Para)para;
            ModelReflection    mR     = new ModelReflection();

            m_para = mR.ParaSetModelValue(m_para, "QueryCondition", strParaContent);

            return(m_para);
        }
Пример #16
0
        private Vehicle_DR004_GetTime_Response Resp_GetTime_ToModel(ResponseParent Resp, string strRespContent)
        {
            Vehicle_DR004_GetTime_Response m_Resp = (Vehicle_DR004_GetTime_Response)Resp;
            XmlDocument document = new XmlDocument();

            document.LoadXml(strRespContent);
            ModelReflection mR = new ModelReflection();

            m_Resp = mR.RespSetModelValue(m_Resp, "Row", strRespContent);
            return(m_Resp);
        }
Пример #17
0
        private Vehicle_18W06_Result Result_18W06_ToModel(ResultParent result, string strResultContent)
        {
            Vehicle_18W06_Result _result = (Vehicle_18W06_Result)result;

            if (string.IsNullOrEmpty(strResultContent))
            {
                _result.code    = "$E";
                _result.message = "Result is nullptr or Empty string";
                return(_result);
            }
            ModelReflection _mr = new ModelReflection();

            _result = _mr.ResultSetModelValue(_result, "vehispara", strResultContent);
            return(_result);
        }
Пример #18
0
        /// <summary>
        /// 18C59 Result
        /// </summary>
        /// <param name="result"></param>
        /// <param name="strResultContent"></param>
        /// <returns></returns>
        private Vehicle_18C59_Result Result_18C59_ToModel(ResultParent result, string strResultContent)
        {
            Vehicle_18C59_Result m_Result = (Vehicle_18C59_Result)result;

            if (string.IsNullOrEmpty(strResultContent))
            {
                m_Result.code    = "0";
                m_Result.message = "";
                return(m_Result);
            }
            ModelReflection mR = new ModelReflection();

            m_Result = mR.ResultSetModelValue(m_Result, "vehispara", strResultContent);

            return(m_Result);
        }
Пример #19
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);
        }
Пример #20
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);
        }
Пример #21
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);
        }
Пример #22
0
        private Vehicle_18C81_Para Para_18C81_ToModel(ParaParent para, string strParaContent)
        {
            Vehicle_18C81_Para m_para = (Vehicle_18C81_Para)para;
            ModelReflection    mR     = new ModelReflection();

            m_para = mR.ParaSetModelValue(m_para, "vehispara", strParaContent);
            switch (m_para.jyxm)
            {
            case "B1":
                Vehicle_18C81_YZZD_Para m_YZZD = new Vehicle_18C81_YZZD_Para(m_para.jkid, m_para.jkxlh, m_para.xtlb);
                m_YZZD = mR.ParaSetModelValue(m_YZZD, "vehispara", strParaContent);
                m_para = (Vehicle_18C81_Para)m_YZZD;
                break;

            case "B2":
                Vehicle_18C81_EZZD_Para m_EZZD = new Vehicle_18C81_EZZD_Para(m_para.jkid, m_para.jkxlh, m_para.xtlb);
                m_EZZD = mR.ParaSetModelValue(m_EZZD, "vehispara", strParaContent);
                m_para = (Vehicle_18C81_Para)m_EZZD;
                break;

            case "B3":
                Vehicle_18C81_SZZD_Para m_SZZD = new Vehicle_18C81_SZZD_Para(m_para.jkid, m_para.jkxlh, m_para.xtlb);
                m_SZZD = mR.ParaSetModelValue(m_SZZD, "vehispara", strParaContent);
                m_para = (Vehicle_18C81_Para)m_SZZD;
                break;

            case "B4":
                Vehicle_18C81_SIZZD_Para m_SIZZD = new Vehicle_18C81_SIZZD_Para(m_para.jkid, m_para.jkxlh, m_para.xtlb);
                m_SIZZD = mR.ParaSetModelValue(m_SIZZD, "vehispara", strParaContent);
                m_para  = (Vehicle_18C81_Para)m_SIZZD;
                break;

            case "B5":
                Vehicle_18C81_WZZD_Para m_WZZD = new Vehicle_18C81_WZZD_Para(m_para.jkid, m_para.jkxlh, m_para.xtlb);
                m_WZZD = mR.ParaSetModelValue(m_WZZD, "vehispara", strParaContent);
                m_para = (Vehicle_18C81_Para)m_WZZD;
                break;

            case "B0":
                Vehicle_18C81_ZCZD_Para m_ZCZD = new Vehicle_18C81_ZCZD_Para(m_para.jkid, m_para.jkxlh, m_para.xtlb);
                m_ZCZD = mR.ParaSetModelValue(m_ZCZD, "vehispara", strParaContent);
                m_para = (Vehicle_18C81_Para)m_ZCZD;
                break;

            case "H1":
                Vehicle_18C81_ZWD_Para m_ZWD = new Vehicle_18C81_ZWD_Para(m_para.jkid, m_para.jkxlh, m_para.xtlb);
                m_ZWD  = mR.ParaSetModelValue(m_ZWD, "vehispara", strParaContent);
                m_para = (Vehicle_18C81_Para)m_ZWD;
                break;

            case "H2":
                Vehicle_18C81_ZND_Para m_ZND = new Vehicle_18C81_ZND_Para(m_para.jkid, m_para.jkxlh, m_para.xtlb);
                m_ZND  = mR.ParaSetModelValue(m_ZND, "vehispara", strParaContent);
                m_para = (Vehicle_18C81_Para)m_ZND;
                break;

            case "H3":
                Vehicle_18C81_YND_Para m_YND = new Vehicle_18C81_YND_Para(m_para.jkid, m_para.jkxlh, m_para.xtlb);
                m_YND  = mR.ParaSetModelValue(m_YND, "vehispara", strParaContent);
                m_para = (Vehicle_18C81_Para)m_YND;
                break;

            case "H4":
                Vehicle_18C81_YWD_Para m_YWD = new Vehicle_18C81_YWD_Para(m_para.jkid, m_para.jkxlh, m_para.xtlb);
                m_YWD  = mR.ParaSetModelValue(m_YWD, "vehispara", strParaContent);
                m_para = (Vehicle_18C81_Para)m_YWD;
                break;

            case "S1":
                Vehicle_18C81_CSB_Para m_CSB = new Vehicle_18C81_CSB_Para(m_para.jkid, m_para.jkxlh, m_para.xtlb);
                m_CSB  = mR.ParaSetModelValue(m_CSB, "vehispara", strParaContent);
                m_para = (Vehicle_18C81_Para)m_CSB;
                break;

            case "A1":
                Vehicle_18C81_Sideslip_Para m_Sideslip = new Vehicle_18C81_Sideslip_Para(m_para.jkid, m_para.jkxlh, m_para.xtlb);
                m_Sideslip = mR.ParaSetModelValue(m_Sideslip, "vehispara", strParaContent);
                m_para     = (Vehicle_18C81_Para)m_Sideslip;
                break;

            case "M1":
                Vehicle_18C81_WKCC_Para m_WKCC = new Vehicle_18C81_WKCC_Para(m_para.jkid, m_para.jkxlh, m_para.xtlb);
                m_WKCC = mR.ParaSetModelValue(m_WKCC, "vehispara", strParaContent);
                m_para = (Vehicle_18C81_Para)m_WKCC;
                break;

            case "Z1":
                Vehicle_18C81_ZBZL_Para m_ZBZL = new Vehicle_18C81_ZBZL_Para(m_para.jkid, m_para.jkxlh, m_para.xtlb);
                m_ZBZL = mR.ParaSetModelValue(m_ZBZL, "vehispara", strParaContent);
                m_para = (Vehicle_18C81_Para)m_ZBZL;
                break;

            case "L1":
                Vehicle_18C81_JZZD_Para m_YZJZ = new Vehicle_18C81_JZZD_Para(m_para.jkid, m_para.jkxlh, m_para.xtlb);
                m_YZJZ = mR.ParaSetModelValue(m_YZJZ, "vehispara", strParaContent);
                m_para = (Vehicle_18C81_Para)m_YZJZ;
                break;

            case "L2":
                Vehicle_18C81_JZZD_Para m_EZJZ = new Vehicle_18C81_JZZD_Para(m_para.jkid, m_para.jkxlh, m_para.xtlb);
                m_EZJZ = mR.ParaSetModelValue(m_EZJZ, "vehispara", strParaContent);
                m_para = (Vehicle_18C81_Para)m_EZJZ;
                break;

            case "L3":
                Vehicle_18C81_JZZD_Para m_SZJZ = new Vehicle_18C81_JZZD_Para(m_para.jkid, m_para.jkxlh, m_para.xtlb);
                m_SZJZ = mR.ParaSetModelValue(m_SZJZ, "vehispara", strParaContent);
                m_para = (Vehicle_18C81_Para)m_SZJZ;
                break;

            case "L4":
                Vehicle_18C81_JZZD_Para m_SIZJZ = new Vehicle_18C81_JZZD_Para(m_para.jkid, m_para.jkxlh, m_para.xtlb);
                m_SIZJZ = mR.ParaSetModelValue(m_SIZJZ, "vehispara", strParaContent);
                m_para  = (Vehicle_18C81_Para)m_SIZJZ;
                break;
            }



            return(m_para);
        }