예제 #1
0
 private static Protocol Fetch_Out_Goods(ServerInfo sinfo, Protocol pro)
 {
     In_OutHandle uh = new In_OutHandle();
     Protocol returnPro = new Protocol();
     returnPro.data=uh.Fetch_Out_Log(sinfo,pro);
     if (returnPro.data!=null)
     {
         returnPro.protoType = ProtoType.SUCCESS;
     }
     else
     {
         returnPro.protoType = ProtoType.ERROR;
     }
     return returnPro;
 }
예제 #2
0
 private static Protocol Get_In_Needed_Info(ServerInfo sinfo, Protocol pro)
 {
     In_OutHandle uh = new In_OutHandle();
     Protocol returnPro = new Protocol();
     returnPro.mutilData = uh.Get_IN_Need_Info(sinfo,pro);
     if (returnPro.mutilData!=null)
     {
         returnPro.protoType = ProtoType.SUCCESS;
     }
     else
     {
         returnPro.protoType = ProtoType.ERROR;
     }
     return returnPro;
 }
예제 #3
0
        private static Protocol Out_Goods(ServerInfo sinfo, Protocol pro)
        {
            In_OutHandle uh = new In_OutHandle();
            Protocol returnPro = new Protocol();
            if (uh.Out_Goods(sinfo, pro))
            {

                returnPro.protoType = ProtoType.SUCCESS;
            }
            else
            {
                returnPro.protoType = ProtoType.ERROR;
            }
            return returnPro;
        }