溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

JavaScript中怎么實(shí)現(xiàn)返回提示信息

發(fā)布時(shí)間:2021-11-15 16:13:58 來(lái)源:億速云 閱讀:154 作者:iii 欄目:大數(shù)據(jù)

這篇文章主要講解了“JavaScript中怎么實(shí)現(xiàn)返回提示信息”,文中的講解內(nèi)容簡(jiǎn)單清晰,易于學(xué)習(xí)與理解,下面請(qǐng)大家跟著小編的思路慢慢深入,一起來(lái)研究和學(xué)習(xí)“JavaScript中怎么實(shí)現(xiàn)返回提示信息”吧!

【服務(wù)端】在輸出的方法塊中,加入要輸出的字段(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]);
            }


        }

在數(shù)據(jù)層設(shè)置到要輸出的值:

 OutTag.qcm_batch_id = sBatchId;

【客戶端】在客戶端獲取值并彈出提示框:

 CommonFunction.ShowMsgBox(out_node.GetString("QCM_BATCH_ID")+"創(chuàng)建成功!");

=========================

提示信息:是否關(guān)閉xxx

     private void btnClose_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            try
            {
                if (CommonFunction.ShowMsgBox("是否關(guān)閉該檢查批?", MessageBoxButtons.OKCancel, 1) == DialogResult.OK)
                {
                    GlobalVariable.gaSelectPOID.Clear();
                    int[] iaPOs = gdvDetail.GetSelectedRows();
                    if (iaPOs.Length < 1)
                    {
                        CommonFunction.ShowMsgBox("請(qǐng)選擇一條或多條參數(shù)");//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中怎么實(shí)現(xiàn)返回提示信息”的內(nèi)容了,經(jīng)過(guò)本文的學(xué)習(xí)后,相信大家對(duì)JavaScript中怎么實(shí)現(xiàn)返回提示信息這一問(wèn)題有了更深刻的體會(huì),具體使用情況還需要大家實(shí)踐驗(yàn)證。這里是億速云,小編將為大家推送更多相關(guān)知識(shí)點(diǎn)的文章,歡迎關(guān)注!

向AI問(wèn)一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI