public MsgBatchInfo ToPbMsgWithoutData()
 {
     MsgBatchInfo.Builder builder = new MsgBatchInfo.Builder();
     builder.Author1      = this.Author;
     builder.Version2     = this.Version;
     builder.CreateTime4  = this.CreateTime;
     builder.Remark5      = this.Remark;
     builder.BatchNO6     = this.BatchNO;
     builder.Title7       = this.Title;
     builder.Operation8   = this.Operation;
     builder.OrgID10      = this.OrgID;
     builder.BusiSysId11  = this.BusiSysId;
     builder.BusiTypeId12 = this.BusiTypeId;
     builder.BarCode13    = this.BarCode;
     builder.SourceIP14   = this.SourceIP;
     builder.MachineID15  = this.MachineID;
     builder.Password16   = this.Password;
     builder.Status       = this.Status;
     foreach (NFileInfo fileInfo in this.FileInfos)
     {
         builder.FileInfos9List.Add(fileInfo.ToPBMsg(false));
     }
     //if (this.ResultInfo != null)
     //{
     //    builder.ResultInfo17 = this.ResultInfo.ToPBMsg();
     //}
     builder.Editable18 = this.Editable;
     return(builder.BuildParsed());
 }
        public MsgBatchInfo ToPBMsg(string transMode)
        {
            MsgBatchInfo.Builder builder = new MsgBatchInfo.Builder();
            builder.Author1     = this.Author;
            builder.Version2    = this.Version;
            builder.CreateTime4 = this.CreateTime;
            builder.Remark5     = this.Remark;
            builder.BatchNO6    = this.BatchNO;
            builder.Title7      = this.Title;
            builder.Operation8  = this.Operation;
            builder.FileInfos9List.Clear();
            foreach (NFileInfo current in this.FileInfos)
            {
                builder.FileInfos9List.Add(current.ToPBMsg(true));
            }
            builder.OrgID10      = this.OrgID;
            builder.BusiSysId11  = this.BusiSysId;
            builder.BusiTypeId12 = this.BusiTypeId;
            builder.BarCode13    = this.BarCode;
            builder.SourceIP14   = this.SourceIP;
            builder.MachineID15  = this.MachineID;
            builder.Password16   = this.Password;
            bool flag = this.ResultInfo != null;

            if (flag)
            {
                builder.ResultInfo17 = this.ResultInfo.ToPBMsg();
            }
            builder.Editable18 = this.Editable;
            return(builder.BuildParsed());
        }