コード例 #1
0
        public void recv_SPL_View_Lot_List0(string sRequest, ref string sReply)
        {
            byte[]                     outByt            = FwxCmnFunction.UnPackMessage(sRequest);
            StreamTransformer          former            = new StreamTransformerImpl(outByt);
            SPL_View_Lot_List0_In_Tag  View_Lot_List_In  = new SPL_View_Lot_List0_In_Tag();
            SPL_View_Lot_List0_Out_Tag View_Lot_List_Out = new SPL_View_Lot_List0_Out_Tag();

            SPLType.transform_SPL_View_Lot_List0_In_Tag(former, ref View_Lot_List_In);
            SPL_View_Lot_List0(View_Lot_List_In, ref View_Lot_List_Out); /* Call User Procedure */

            former = new StreamTransformerImpl();
            SPLType.serialize_SPL_View_Lot_List0_Out_Tag(former, View_Lot_List_Out);

            sReply = FwxCmnFunction.PackMessage(former.getBytes());
        }
コード例 #2
0
ファイル: SPLType.cs プロジェクト: trantan490/web
 public static void transform_SPL_View_Lot_List0_Out_Tag(StreamTransformer former, ref SPL_View_Lot_List0_Out_Tag source)
 {
     source.h_status_value = former.readMsgChar();
     source.h_msg_code     = deleteNull(former.readMsgString());
     source.h_msg          = deleteNull(former.readMsgString());
     source.h_field_msg    = deleteNull(former.readMsgString());
     source.h_db_err_msg   = deleteNull(former.readMsgString());
     source.count          = former.readMsgInt();
     source.next_lot_id    = deleteNull(former.readMsgString());
     source._size_lot_list = former.readMsgInt();
     source.lot_list       = new SPL_View_Lot_List0_Out_Tag_lot_list[source._size_lot_list];
     for (int i = 0; i < source._size_lot_list; i++)
     {
         source.lot_list[i] = new SPL_View_Lot_List0_Out_Tag_lot_list();
         transform_SPL_View_Lot_List0_Out_Tag_lot_list(former, ref source.lot_list[i]);
     }
 }
コード例 #3
0
ファイル: SPLType.cs プロジェクト: trantan490/web
 public static void serialize_SPL_View_Lot_List0_Out_Tag(StreamTransformer former, SPL_View_Lot_List0_Out_Tag target)
 {
     former.writeMsgChar(target.h_status_value);
     former.writeMsgString(withoutSpace(target.h_msg_code));
     former.writeMsgString(withoutSpace(target.h_msg));
     former.writeMsgString(withoutSpace(target.h_field_msg));
     former.writeMsgString(withoutSpace(target.h_db_err_msg));
     former.writeMsgInt(target.count);
     former.writeMsgString(withoutSpace(target.next_lot_id));
     target._size_lot_list = (500 >= target._size_lot_list ? target._size_lot_list : 500);
     former.writeMsgInt(target._size_lot_list);
     for (int i = 0; i < target._size_lot_list; i++)
     {
         serialize_SPL_View_Lot_List0_Out_Tag_lot_list(former, target.lot_list[i]);
     }
 }
コード例 #4
0
 public abstract void SPL_View_Lot_List0(SPL_View_Lot_List0_In_Tag View_Lot_List_In, ref SPL_View_Lot_List0_Out_Tag View_Lot_List_Out);
コード例 #5
0
ファイル: SPLSender.cs プロジェクト: trantan490/web
        public static bool SPL_View_Lot_List0(string FunctionName, SPL_View_Lot_List0_In_Tag View_Lot_List_In, ref SPL_View_Lot_List0_Out_Tag View_Lot_List_Out)
        {
            try
            {
                if (null == SPLUrl || SPLUrl.Trim().Equals(""))
                {
                    throw new Exception("INVALID_URL");
                }

                if (0 >= SPLTimeOut)
                {
                    throw new Exception("INVALID_TIMEOUT");
                }

                string            sReplyMsg   = null;
                string            sSendMsg    = null;
                byte[]            aReplyData  = null;
                SmartWebService   oWebService = new SmartWebService();
                StreamTransformer former      = new StreamTransformerImpl();

                oWebService.SetUrl(SPLUrl);
                oWebService.SetTimeOut(SPLTimeOut);

                SPLType.serialize_SPL_View_Lot_List0_In_Tag(former, View_Lot_List_In);

                sSendMsg = FwxCmnFunction.PackMessage(former.getBytes());
                oWebService.RequestReply(FunctionName, sSendMsg, ref sReplyMsg);
                aReplyData = FwxCmnFunction.UnPackMessage(sReplyMsg);

                former = new StreamTransformerImpl(aReplyData);
                SPLType.transform_SPL_View_Lot_List0_Out_Tag(former, ref View_Lot_List_Out);

                return(true);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
コード例 #6
0
ファイル: SPLSender.cs プロジェクト: trantan490/web
 public static bool SPL_View_Lot_List0(SPL_View_Lot_List0_In_Tag View_Lot_List_In, ref SPL_View_Lot_List0_Out_Tag View_Lot_List_Out)
 {
     return(SPL_View_Lot_List0("SPL_View_Lot_List0", View_Lot_List_In, ref View_Lot_List_Out));
 }