Example #1
0
        internal string SendPostMessage(StepPushJsonModel spjm)
        {
            StepPushDAL dal = new StepPushDAL();

            try
            {
                pushStr = string.Format(pushStr, spjm.XZQDM, spjm.WDBS, spjm.YWBH, spjm.JDMC, spjm.BLRY, spjm.SQRXM, spjm.SQRLXFS);
                //pushStr = System.Web.HttpUtility.UrlEncode(PushStephUrl + "?" + pushStr, System.Text.Encoding.UTF8);
                pushStr      = PushStephUrl + "?" + System.Web.HttpUtility.UrlEncode(pushStr, System.Text.Encoding.UTF8);
                spjm.SendStr = pushStr;
            }
            catch (Exception ex)
            {
                spjm.IsSuccess = -1;
                spjm.ErrorMsg  = "推送数据失败:" + ex.Message;
            }
            dal.InsertStepLog(spjm);
            return(pushStr);
        }
Example #2
0
        internal string GetWDBS(string prjID)
        {
            StepPushDAL dal = new StepPushDAL();

            return(dal.GetWDBS(prjID));
        }