Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            ApplicationCenterWS.WebServiceSoapClient client  = new ApplicationCenterWS.WebServiceSoapClient();
            ApplicationCenterWS.SMC_PackageFAQ[]     outFaqs = client.GetNeedSyncToInsideFAQ();

            //外网提问写入内网
            foreach (var f in outFaqs)
            {
                SMC_PackageFAQ faq = new SMC_PackageFAQ();
                faq.pe_id                  = f.pe_id;
                faq.pf_answer              = f.pf_answer;
                faq.pf_askdate             = f.pf_askdate;
                faq.pf_askemail            = f.pf_askemail;
                faq.pf_askmobile           = f.pf_askmobile;
                faq.pf_id                  = f.pf_id;
                faq.pf_need_syncto_inside  = f.pf_need_syncto_inside;
                faq.pf_need_syncto_outside = f.pf_need_syncto_outside;
                faq.pf_peplyman            = f.pf_peplyman;
                faq.pf_question            = f.pf_question;
                faq.pf_uid                 = f.pf_uid;
                faq.pf_uname               = f.pf_uname;

                BoFactory.GetVersionTrackBo.InsertPackageFAQ(faq);
            }


            //内网回复同步至外网
            IProxy proxy = ProxyFactory.CreateProxy();

            SmartBox.Console.Bo.AppCenter.AppCenterBO bo = null;
            bo = proxy.CreateObject <SmartBox.Console.Bo.AppCenter.AppCenterBO>();

            IList <SMC_PackageFAQ> inFaqs = bo.GetNeedSyncToOutsideFAQ();

            foreach (var f in inFaqs)
            {
                ApplicationCenterWS.SMC_PackageFAQ faq = new ApplicationCenterWS.SMC_PackageFAQ();
                faq.pe_id                  = f.pe_id;
                faq.pf_answer              = f.pf_answer;
                faq.pf_askdate             = f.pf_askdate;
                faq.pf_askemail            = f.pf_askemail;
                faq.pf_askmobile           = f.pf_askmobile;
                faq.pf_id                  = f.pf_id;
                faq.pf_need_syncto_inside  = f.pf_need_syncto_inside;
                faq.pf_need_syncto_outside = f.pf_need_syncto_outside;
                faq.pf_peplyman            = f.pf_peplyman;
                faq.pf_question            = f.pf_question;
                faq.pf_uid                 = f.pf_uid;
                faq.pf_uname               = f.pf_uname;

                client.PackageFAQSync(faq);
            }
        }
Ejemplo n.º 2
0
 public bool PackageFAQSync(SMC_PackageFAQ faq)
 {
     try
     {
         return(bo.PackageFAQSyncInsideToOutside(faq));
     }
     catch (Exception e)
     {
         Log4NetHelper.Error(e);
         return(false);
     }
 }
Ejemplo n.º 3
0
        static OutsideWS.SMC_PackageFAQ CopyPackageFAQ(SMC_PackageFAQ faq)
        {
            OutsideWS.SMC_PackageFAQ entity = new OutsideWS.SMC_PackageFAQ();
            entity.pe_id        = faq.pe_id;
            entity.pf_answer    = faq.pf_answer;
            entity.pf_askdate   = faq.pf_askdate;
            entity.pf_askemail  = faq.pf_askemail;
            entity.pf_askmobile = faq.pf_askmobile;
            entity.pf_id        = faq.pf_id;
            entity.pf_peplyman  = faq.pf_peplyman;
            entity.pf_question  = faq.pf_question;
            entity.pf_uid       = faq.pf_uid;
            entity.pf_uname     = faq.pf_uname;

            return(entity);
        }
Ejemplo n.º 4
0
        static SmartBox.Console.Service.ApplicationCenterWS.SMC_PackageFAQ CopyPackageFAQ(SMC_PackageFAQ faq)
        {
            SmartBox.Console.Service.ApplicationCenterWS.SMC_PackageFAQ entity = new SmartBox.Console.Service.ApplicationCenterWS.SMC_PackageFAQ();
            entity.pe_id        = faq.pe_id;
            entity.pf_answer    = faq.pf_answer;
            entity.pf_askdate   = faq.pf_askdate;
            entity.pf_askemail  = faq.pf_askemail;
            entity.pf_askmobile = faq.pf_askmobile;
            entity.pf_id        = faq.pf_id;
            entity.pf_peplyman  = faq.pf_peplyman;
            entity.pf_question  = faq.pf_question;
            entity.pf_uid       = faq.pf_uid;
            entity.pf_uname     = faq.pf_uname;

            return(entity);
        }