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

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

            return(m_para);
        }
Exemplo n.º 3
0
        /// <summary>
        /// 18X05
        /// </summary>
        /// <param name="para"></param>
        /// <returns></returns>
        public Vehicle_18X05_Result AJ_Write_18X05(Vehicle_18X05_Para para)
        {
            AJ_IWrite aj_18X05 = new AJ_Write_WebServices();

            if (!string.IsNullOrEmpty(para.hphm))
            {
                if (para.hphm.Contains("挂"))
                {
                    para.hphm = para.hphm.Replace("挂", "");
                }
                if (para.hphm.Contains("学"))
                {
                    para.hphm = para.hphm.Replace("学", "");
                }
                if (para.hphm.Contains("警"))
                {
                    para.hphm = para.hphm.Replace("警", "");
                }
            }
            Vehicle_18X05_Result aj_18X05_Result = aj_18X05.Write_18X05(para);

            return(aj_18X05_Result);
        }
Exemplo n.º 4
0
        public Vehicle_18C58_Result AJ_Write_18C58(Vehicle_18C58_Para para)
        {
            AJ_IWrite aj_18C58 = new AJ_Write_WebServices();

            if (!string.IsNullOrEmpty(para.hphm))
            {
                if (para.hphm.Contains("挂"))
                {
                    para.hphm = para.hphm.Replace("挂", "");
                }
                if (para.hphm.Contains("学"))
                {
                    para.hphm = para.hphm.Replace("学", "");
                }
                if (para.hphm.Contains("警"))
                {
                    para.hphm = para.hphm.Replace("警", "");
                }
            }
            AdapterHelper        adapter         = new AdapterHelper();
            Vehicle_18C58_Result aj_18C58_Result = aj_18C58.Write_18C58(para);

#if RZLD
            if (aj_18C58_Result.code == "1")
            {
                Vehicle_18X05_Para m_18X05_Para = new Vehicle_18X05_Para("18X05", para.jkxlh, para.xtlb);
                m_18X05_Para.clsbdh = para.clsbdh;
                m_18X05_Para.hphm   = para.hphm;
                m_18X05_Para.hpzl   = para.hpzl;
                m_18X05_Para.jcxdh  = para.jcxdh;
                m_18X05_Para.jssj   = para.jssj;
                m_18X05_Para.jycs   = para.jycs;
                m_18X05_Para.jyjgbh = para.jyjgbh;
                m_18X05_Para.jylsh  = para.jylsh;
                m_18X05_Para.jyxm   = para.jyxm;
                m_18X05_Para.kssj   = para.kssj;
                m_18X05_Para.lxzl   = adapter.GetLXLXByJYXM(para.jyxm);

                Vehicle_18X05_Result aj_18X05_Result = new Vehicle_18X05_Result();
                if (para.jyxm == "Z1")
                {                               //整备质量,录像发两个
                    m_18X05_Para.lxzl = "0362"; //前
                    Vehicle_18X05_Result aj_18X05_Result_F = aj_18C58.Write_18X05(m_18X05_Para);

                    m_18X05_Para.lxzl = "0363"; //后
                    Vehicle_18X05_Result aj_18X05_Result_B = aj_18C58.Write_18X05(m_18X05_Para);

                    if (aj_18X05_Result_F.code == "1" && aj_18X05_Result_B.code == "1")
                    {
                        aj_18X05_Result.code    = "1";
                        aj_18X05_Result.message = "前:" + aj_18X05_Result_F.message + " 后:" + aj_18X05_Result_B.message;
                    }
                    else
                    {
                        aj_18X05_Result.code    = "0";
                        aj_18X05_Result.message = "前:" + aj_18X05_Result_F.message + " 后:" + aj_18X05_Result_B.message;
                    }
                }
                else if (para.jyxm == "M1")
                {                               //外廓尺寸,录像发两个
                    m_18X05_Para.lxzl = "0360"; //前
                    Vehicle_18X05_Result aj_18X05_Result_F = aj_18C58.Write_18X05(m_18X05_Para);

                    m_18X05_Para.lxzl = "0361"; //后
                    Vehicle_18X05_Result aj_18X05_Result_B = aj_18C58.Write_18X05(m_18X05_Para);

                    if (aj_18X05_Result_F.code == "1" && aj_18X05_Result_B.code == "1")
                    {
                        aj_18X05_Result.code    = "1";
                        aj_18X05_Result.message = "前:" + aj_18X05_Result_F.message + " 后:" + aj_18X05_Result_B.message;
                    }
                    else
                    {
                        aj_18X05_Result.code    = "0";
                        aj_18X05_Result.message = "前:" + aj_18X05_Result_F.message + " 后:" + aj_18X05_Result_B.message;
                    }
                }
                else
                {//其他项目
                    aj_18X05_Result = aj_18C58.Write_18X05(m_18X05_Para);
                }

                aj_18C58_Result.code    = aj_18X05_Result.code;
                aj_18C58_Result.message = aj_18X05_Result.message;
            }
#endif
            return(aj_18C58_Result);
        }
Exemplo n.º 5
0
        public string writeObjectOut(string xtlb, string jkxlh, string jkid, string xmlDoc)
        {
            AJ_WriteProcess writeProcess = new AJ_WriteProcess();
            AJ_XMLToModel   xmlToModel   = new AJ_XMLToModel();
            AJ_ModelToXML   modelToXML   = new AJ_ModelToXML();

            switch (jkid)
            {
            case "18C51":
                Vehicle_18C51_Para para_18C51 = new Vehicle_18C51_Para(jkid, jkxlh, xtlb);
                para_18C51 = (Vehicle_18C51_Para)xmlToModel.Para_XmlToModel(para_18C51, xmlDoc);

                Vehicle_18C51_Result result_18C51 = writeProcess.AJ_Write_18C51(para_18C51);

                string strRet_18C51 = modelToXML.ModelToXml("18C51", result_18C51);
                return(strRet_18C51);

            case "18C66":
                Vehicle_18C66_Para para_18C66 = new Vehicle_18C66_Para(jkid, jkxlh, xtlb);
                para_18C66 = (Vehicle_18C66_Para)xmlToModel.Para_XmlToModel(para_18C66, xmlDoc);

                Vehicle_18C66_Result result_18C66 = writeProcess.AJ_Write_18C66(para_18C66);

                string strRet_18C66 = modelToXML.ModelToXml("18C66", result_18C66);
                return(strRet_18C66);

            case "18J11":
                Vehicle_18J11_Para para_18J11 = new Vehicle_18J11_Para(jkid, jkxlh, xtlb);
                para_18J11 = (Vehicle_18J11_Para)xmlToModel.Para_XmlToModel(para_18J11, xmlDoc);

                Vehicle_18J11_Result result_18J11 = writeProcess.AJ_Write_18J11(para_18J11);

                string strRet_18J11 = modelToXML.ModelToXml("18J11", result_18J11);
                return(strRet_18J11);

            case "18J12":
                Vehicle_18J12_Para para_18J12 = new Vehicle_18J12_Para(jkid, jkxlh, xtlb);
                para_18J12 = (Vehicle_18J12_Para)xmlToModel.Para_XmlToModel(para_18J12, xmlDoc);

                Vehicle_18J12_Result result_18J12 = writeProcess.AJ_Write_18J12(para_18J12);

                string strRet_18J12 = modelToXML.ModelToXml("18J12", result_18J12);
                return(strRet_18J12);

            case "18C82":
                Vehicle_18C82_Para para_18C82 = new Vehicle_18C82_Para(jkid, jkxlh, xtlb);
                para_18C82 = (Vehicle_18C82_Para)xmlToModel.Para_XmlToModel(para_18C82, xmlDoc);

                Vehicle_18C82_Result result_18C82 = writeProcess.AJ_Write_18C82(para_18C82);

                string strRet_18C82 = modelToXML.ModelToXml("18C82", result_18C82);
                return(strRet_18C82);

            case "18C59":
                Vehicle_18C59_Para para_18C59 = new Vehicle_18C59_Para(jkid, jkxlh, xtlb);
                para_18C59 = (Vehicle_18C59_Para)xmlToModel.Para_XmlToModel(para_18C59, xmlDoc);

                Vehicle_18C59_Result result_18C59 = writeProcess.AJ_Write_18C59(para_18C59);

                string strRet_18C59 = modelToXML.ModelToXml("18C59", result_18C59);
                return(strRet_18C59);

            case "18C55":
                Vehicle_18C55_Para para_18C55 = new Vehicle_18C55_Para(jkid, jkxlh, xtlb);
                para_18C55 = (Vehicle_18C55_Para)xmlToModel.Para_XmlToModel(para_18C55, xmlDoc);

                Vehicle_18C55_Result result_18C55 = writeProcess.AJ_Write_18C55(para_18C55);

                string strRet_18C55 = modelToXML.ModelToXml("18C55", result_18C55);
                return(strRet_18C55);

            case "18C58":
                Vehicle_18C58_Para para_18C58 = new Vehicle_18C58_Para(jkid, jkxlh, xtlb);
                para_18C58 = (Vehicle_18C58_Para)xmlToModel.Para_XmlToModel(para_18C58, xmlDoc);

                Vehicle_18C58_Result result_18C58 = writeProcess.AJ_Write_18C58(para_18C58);

                string strRet_18C58 = modelToXML.ModelToXml("18C58", result_18C58);
                return(strRet_18C58);

            case "18C80":
                Vehicle_18C80_Para para_18C80 = new Vehicle_18C80_Para();
                para_18C80.jkid  = jkid;
                para_18C80.xtlb  = xtlb;
                para_18C80.jkxlh = jkxlh;
                para_18C80       = (Vehicle_18C80_Para)xmlToModel.Para_XmlToModel(para_18C80, xmlDoc);

                Vehicle_18C80_Result result_18C80 = writeProcess.AJ_Write_18C80(para_18C80);

                string strRet_18C80 = modelToXML.ModelToXml("18C80", result_18C80);
                return(strRet_18C80);

            case "18C81":
                Vehicle_18C81_Para para_18C81 = new Vehicle_18C81_Para();
                para_18C81.jkid  = jkid;
                para_18C81.xtlb  = xtlb;
                para_18C81.jkxlh = jkxlh;
                para_18C81       = (Vehicle_18C81_Para)xmlToModel.Para_XmlToModel(para_18C81, xmlDoc);

                Vehicle_18C81_Result result_18C81 = writeProcess.AJ_Write_18C81(para_18C81);

                string strRet_18C81 = modelToXML.ModelToXml("18C81", result_18C81);
                return(strRet_18C81);

            case "18J31":
                Vehicle_18J31_Para para_18J31 = new Vehicle_18J31_Para(jkid, jkxlh, xtlb);
                para_18J31 = (Vehicle_18J31_Para)xmlToModel.Para_XmlToModel(para_18J31, xmlDoc);

                Vehicle_18J31_Result result_18J31 = writeProcess.AJ_Write_18J31(para_18J31);

                string strRet_18J31 = modelToXML.ModelToXml("18J31", result_18J31);
                return(strRet_18J31);

            case "18C62":
                Vehicle_18C62_Para para_18C62 = new Vehicle_18C62_Para(jkid, jkxlh, xtlb);
                para_18C62 = (Vehicle_18C62_Para)xmlToModel.Para_XmlToModel(para_18C62, xmlDoc);

                Vehicle_18C62_Result result_18C62 = writeProcess.AJ_Write_18C62(para_18C62);

                string strRet_18C62 = modelToXML.ModelToXml("18C62", result_18C62);
                return(strRet_18C62);

            case "18C65":
                Vehicle_18C65_Para para_18C65 = new Vehicle_18C65_Para(jkid, jkxlh, xtlb);
                para_18C65 = (Vehicle_18C65_Para)xmlToModel.Para_XmlToModel(para_18C65, xmlDoc);

                Vehicle_18C65_Result result_18C65 = writeProcess.AJ_Write_18C65(para_18C65);

                string strRet_18C65 = modelToXML.ModelToXml("18C65", result_18C65);
                return(strRet_18C65);

            case "18C52":
                Vehicle_18C52_Para para_18C52 = new Vehicle_18C52_Para(jkid, jkxlh, xtlb);
                para_18C52 = (Vehicle_18C52_Para)xmlToModel.Para_XmlToModel(para_18C52, xmlDoc);

                Vehicle_18C52_Result result_18C52 = writeProcess.AJ_Write_18C52(para_18C52);

                string strRet_18C52 = modelToXML.ModelToXml("18C52", result_18C52);
                return(strRet_18C52);

            case "18C72":
                Vehicle_18C72_Para para_18C72 = new Vehicle_18C72_Para(jkid, jkxlh, xtlb);
                para_18C72 = (Vehicle_18C72_Para)xmlToModel.Para_XmlToModel(para_18C72, xmlDoc);

                Vehicle_18C72_Result result_18C72 = writeProcess.AJ_Write_18C72(para_18C72);

                string strRet_18C72 = modelToXML.ModelToXml("18C72", result_18C72);
                return(strRet_18C72);

            case "18C54":
                Vehicle_18C54_Para para_18C54 = new Vehicle_18C54_Para(jkid, jkxlh, xtlb);
                para_18C54 = (Vehicle_18C54_Para)xmlToModel.Para_XmlToModel(para_18C54, xmlDoc);

                Vehicle_18C54_Result result_18C54 = writeProcess.AJ_Write_18C54(para_18C54);

                string strRet_18C54 = modelToXML.ModelToXml("18C54", result_18C54);
                return(strRet_18C54);

            case "18C63":
                Vehicle_18C63_Para para_18C63 = new Vehicle_18C63_Para(jkid, jkxlh, xtlb);
                para_18C63 = (Vehicle_18C63_Para)xmlToModel.Para_XmlToModel(para_18C63, xmlDoc);

                Vehicle_18C63_Result result_18C63 = writeProcess.AJ_Write_18C63(para_18C63);

                string strRet_18C63 = modelToXML.ModelToXml("18C63", result_18C63);
                return(strRet_18C63);

            case "18X05":
                Vehicle_18X05_Para para_18X05 = new Vehicle_18X05_Para(jkid, jkxlh, xtlb);
                para_18X05 = (Vehicle_18X05_Para)xmlToModel.Para_XmlToModel(para_18X05, xmlDoc);

                Vehicle_18X05_Result result_18X05 = writeProcess.AJ_Write_18X05(para_18X05);

                string strRet_18X05 = modelToXML.ModelToXml("18X05", result_18X05);
                return(strRet_18X05);

            case "18W05":
                Vehicle_18W05_Para para_18W05 = new Vehicle_18W05_Para();
                para_18W05 = (Vehicle_18W05_Para)xmlToModel.Para_XmlToModel(para_18W05, xmlDoc);

                Vehicle_18W05_Result result_18W05 = writeProcess.AJ_Write_18W05(para_18W05);

                string strRet_18W05 = modelToXML.ModelToXml("18W05", result_18W05);
                return(strRet_18W05);

            default:
                break;
            }

            return("");
        }