Пример #1
0
        public static NBatchInfo FromPBMsg(MsgBatchInfo input)
        {
            NBatchInfo nBatchInfo = new NBatchInfo();

            nBatchInfo.Author     = input.Author1;
            nBatchInfo.Version    = input.Version2;
            nBatchInfo.CreateDate = input.CreateDate3;
            nBatchInfo.CreateTime = input.CreateTime4;
            nBatchInfo.Remark     = input.Remark5;
            nBatchInfo.BatchNO    = input.BatchNO6;
            nBatchInfo.Title      = input.Title7;
            nBatchInfo.Operation  = input.Operation8;
            //FileinfosList = input.Fileinfos9List.Select<MsgFileInfo, NFileInfo>((<> c.<> 9__106_0 ?? (<> c.<> 9__106_0 = new Func<MsgFileInfo, NFileInfo>(<> c.<> 9.< FromPBMsg > b__106_0)))).ToList<NFileInfo>(),
            nBatchInfo.FileinfosList = input.Fileinfos9List.Select <MsgFileInfo, NFileInfo>(o => NFileInfo.FromPBMsg(o)).ToList <NFileInfo>();
            nBatchInfo.OrgID         = input.OrgID10;
            nBatchInfo.BusiSysId     = input.BusiSysId11;
            nBatchInfo.BusiTypeId    = input.BusiTypeId12;
            nBatchInfo.BarCode       = input.BarCode13;
            nBatchInfo.SourceIP      = input.SourceIP14;
            nBatchInfo.MachineID     = input.MachineID15;
            nBatchInfo.Password      = input.Password16;
            bool flag = input.ResultInfo17 != null;

            if (flag)
            {
                nBatchInfo.ResultInfo = NResultInfo.FromNetMsg(input.ResultInfo17);
            }
            nBatchInfo.Editable       = input.Editable18;
            nBatchInfo.ExShenheResult = input.ExShenheResult19;
            nBatchInfo.ExShenheRemark = input.ExShenheRemark20;
            return(nBatchInfo);
        }
Пример #2
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);
        }