예제 #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
파일: 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;
            }
        }
예제 #3
0
파일: SPLType.cs 프로젝트: trantan490/web
 public static void transform_SPL_View_Lot_List0_In_Tag(StreamTransformer former, ref SPL_View_Lot_List0_In_Tag source)
 {
     source.h_passport  = deleteNull(former.readMsgString());
     source.h_language  = former.readMsgChar();
     source.h_factory   = deleteNull(former.readMsgString());
     source.h_user_id   = deleteNull(former.readMsgString());
     source.h_password  = deleteNull(former.readMsgString());
     source.h_proc_step = former.readMsgChar();
     source.mat_id      = deleteNull(former.readMsgString());
     source.mat_ver     = former.readMsgInt();
     source.flow        = deleteNull(former.readMsgString());
     source.oper        = deleteNull(former.readMsgString());
     source.next_lot_id = deleteNull(former.readMsgString());
 }
예제 #4
0
파일: SPLType.cs 프로젝트: trantan490/web
 public static void serialize_SPL_View_Lot_List0_In_Tag(StreamTransformer former, SPL_View_Lot_List0_In_Tag target)
 {
     former.writeMsgString(withoutSpace(target.h_passport));
     former.writeMsgChar(target.h_language);
     former.writeMsgString(withoutSpace(target.h_factory));
     former.writeMsgString(withoutSpace(target.h_user_id));
     former.writeMsgString(withoutSpace(target.h_password));
     former.writeMsgChar(target.h_proc_step);
     former.writeMsgString(withoutSpace(target.mat_id));
     former.writeMsgInt(target.mat_ver);
     former.writeMsgString(withoutSpace(target.flow));
     former.writeMsgString(withoutSpace(target.oper));
     former.writeMsgString(withoutSpace(target.next_lot_id));
 }
예제 #5
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);
예제 #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));
 }