您好,登錄后才能下訂單哦!
這篇文章主要講解了“JavaScript中怎么實現返回提示信息”,文中的講解內容簡單清晰,易于學習與理解,下面請大家跟著小編的思路慢慢深入,一起來研究和學習“JavaScript中怎么實現返回提示信息”吧!
【服務端】在輸出的方法塊中,加入要輸出的字段(qcm_batch_id)
QCMUserType.cs:
public struct QCM_Custom_Create_Batch_Out_Tag { public BASCoreType.Cmn_Out_Tag _cmn_out; public string qcm_batch_id; public int batch_count; public int _size_batch_list; public QCM_Custom_Create_Batch_Out_Tag_batch_list[] batch_list; } public static void serialize_QCM_Custom_Create_Batch_Out_Tag(ref MessageReply reply, ref QCM_Custom_Create_Batch_Out_Tag sourceType) { BASCoreType.serialize_Cmn_Out_Tag(ref reply, ref sourceType._cmn_out); reply.ReplyNode.AddInt("batch_count".ToUpper(), sourceType.batch_count); reply.ReplyNode.AddInt("_size_batch_list".ToUpper(), sourceType._size_batch_list); reply.ReplyNode.AddString("qcm_batch_id".ToUpper(), sourceType.qcm_batch_id); TRSNode batch_list; for (int i = 0; i < sourceType._size_batch_list; i++) { batch_list = reply.ReplyNode.AddNode("batch_list".ToUpper()); QCMUserType.serialize_QCM_Custom_Create_Batch_Out_Tag_batch_list(ref batch_list, ref sourceType.batch_list[i]); } }
在數據層設置到要輸出的值:
OutTag.qcm_batch_id = sBatchId;
【客戶端】在客戶端獲取值并彈出提示框:
CommonFunction.ShowMsgBox(out_node.GetString("QCM_BATCH_ID")+"創建成功!");
=========================
提示信息:是否關閉xxx
private void btnClose_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { if (CommonFunction.ShowMsgBox("是否關閉該檢查批?", MessageBoxButtons.OKCancel, 1) == DialogResult.OK) { GlobalVariable.gaSelectPOID.Clear(); int[] iaPOs = gdvDetail.GetSelectedRows(); if (iaPOs.Length < 1) { CommonFunction.ShowMsgBox("請選擇一條或多條參數");//ToDo: Multi-Language return; } int[] iaRAWID = new int[iaPOs.Length];//+2 string sBatchID = ""; // string sFinalDecision = ""; for (int i = 0; i < iaPOs.Length; i++) { sBatchID = gdvDetail.GetRowCellValue(iaPOs[i], "BATCH_ID").ToString(); //sFinalDecision = gdvDetail.GetRowCellValue(iaPOs[i], "FINAL_DECISION").ToString(); } //saPARA_ID[iaPOs.Length] = cboModelVer.EditValue.ToString(); //saPARA_ID[iaPOs.Length + 1] = "EVENT"; TRSNode in_node = new TRSNode("CREATE_BATCH_IN"); TRSNode out_node = new TRSNode("CMN_OUT"); if (sBatchID != "") { CommonRoutine.SetInMsg(in_node); in_node.ProcStep = '1'; in_node.AddString("BATCH_ID", CommonFunction.Trim(sBatchID)); if (CommonRoutine.CallService("QCM", "QCM_Custom_Final_Decision", in_node, ref out_node) == false) { return; } CommonRoutine.ShowSuccessMsg(out_node); BindGV(); return; } else { CommonFunction.ShowMsgBox("BatchID不能為空!"); } } } catch (Exception ex) { CommonFunction.ShowMsgBox("frmAPSReleaseWO.btnSelect_Click()\n" + ex.Message); } }
感謝各位的閱讀,以上就是“JavaScript中怎么實現返回提示信息”的內容了,經過本文的學習后,相信大家對JavaScript中怎么實現返回提示信息這一問題有了更深刻的體會,具體使用情況還需要大家實踐驗證。這里是億速云,小編將為大家推送更多相關知識點的文章,歡迎關注!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。