예제 #1
0
        public static NResultInfo FromNetMsg(MsgResultInfo info)
        {
            NResultInfo resultInfo = new NResultInfo();

            resultInfo.Msg               = info.Msg;
            resultInfo.Status            = info.Status;
            resultInfo.BatchNO           = info.BatchNO;
            resultInfo.CurFileIndex      = resultInfo.CurFileIndex;
            resultInfo.CurFileName       = resultInfo.CurFileName;
            resultInfo.ProcessingFileIds = info.ProcessingFileIdsList;
            resultInfo.BatchInfo         = NBatchInfo.FromPBMsg(info.BatchInfo);
            return(resultInfo);
        }
예제 #2
0
        public static NBatchHisRsp FromPBMsg(MsgBatchHisRsp input)
        {
            NBatchHisRsp nBatchHisRsp = new NBatchHisRsp();
            bool         flag         = input != null && input.Batchs1List != null;

            if (flag)
            {
                foreach (MsgBatchInfo current in input.Batchs1List)
                {
                    nBatchHisRsp._batchs.Add(NBatchInfo.FromPBMsg(current));
                }
            }
            return(nBatchHisRsp);
        }
예제 #3
0
 public bool LoadBatch(NBatchInfo info)
 {
     return(false);
 }