コード例 #1
0
        /// <summary>
        ///     重新请求
        /// </summary>
        private void DoRequest()
        {
            Model.ClearErrorMessage();
            WSLogRecord focusedRecord = Model.WSLog.FocusedRecord;

            if (focusedRecord == null)
            {
                return;
            }
            long             wsLogID = focusedRecord.ID;
            DoRequestBPProxy proxy   = new DoRequestBPProxy();

            proxy.WSLogID = wsLogID;
            RequestResultDTOData resultData = proxy.Do();

            if (Model.ErrorMessage.hasErrorMessage || Model.ErrorMessage.hasChildMessage)
            {
                return;
            }
            Action.NavigateAction.Refresh(DataGrid1);
            if (resultData.CallResult != (int)CallResultEnumData.Success)
            {
                IUIModel    iModel = Model;
                WSLogRecord record = Model.WSLog.Records.FindByKey(wsLogID) as WSLogRecord;
                Model.WSLog.FocusedRecord = record;
                Model.ErrorMessage.SetErrorMessage(ref iModel, Model.WSLog.EntityFullName,
                                                   "ID", false, wsLogID, resultData.ErrorMessage);
            }
        }
コード例 #2
0
        /// <summary>
        /// 显示请求内容
        /// </summary>

        private void DoShowContent()
        {
            Model.ClearErrorMessage();
            WSLogRecord focusedRecord = Model.WSLog.FocusedRecord;

            if (focusedRecord == null)
            {
                return;
            }
            long wsLogID           = focusedRecord.ID;
            NameValueCollection nv = new NameValueCollection();

            nv.Add("LogID", wsLogID.ToString());
            const string formID = "37eefa0b-f334-42e2-bc3b-b0ce3c43cb31";

            this.ShowAtlasModalDialog(formID, "请求内容", "1002", "514", this.TaskId.ToString(), nv, false, false,
                                      false);
        }