コード例 #1
0
ファイル: BaoxianUnit.cs プロジェクト: hofmannzhu/bwjs
        public void HealthAnswerSubmit()
        {
            BaoxianDataBLL  baoxianDataBLL = new BaoxianDataBLL();
            HealthNotifyReq model          = new HealthNotifyReq();

            model.transNo = UtilityHelper.CommonHelper.OrderNoOne();
            //model.customkey = "bowangjishi";
            model.answer = string.Empty;
            var res = baoxianDataBLL.HealthAnswerSubmit(model);
        }
コード例 #2
0
        public void GetHealth(HttpRequest Request, HttpResponse Response)
        {
            string          TransNo  = UtilityHelper.BWJSCommonHelper.SafeString(Request["transNo"], "");
            string          Answer   = UtilityHelper.BWJSCommonHelper.SafeString(Request["answer"], "");
            HealthNotifyReq trialReq = new HealthNotifyReq();

            trialReq.transNo = TransNo;
            string s = UtilityHelper.Utils.MD5(SerializerHelper.SerializeObject(Answer));

            trialReq.answer = s;
            HealthNotifyResp resp = new HealthNotifyResp();

            resp = baoxianBLL.HealthAnswerSubmit(trialReq);
            string strJson = SerializerHelper.SerializeObject(resp);

            Response.Write(strJson);
        }