コード例 #1
0
ファイル: PutAwayService.cs プロジェクト: orgad/backend
 public TInPutaway Create(TInQc qc)
 {
     var pt = new TInPutaway
     {
         Code = qc.Code.Replace("QC", "PTA"),
         InboundId = qc.InboundId,
         InboundCode = qc.InboundCode,
         CreatedBy = DefaultUser.UserName,
         CreatedTime = DateTime.UtcNow,
     };
     return pt;
 }
コード例 #2
0
        public TInQc Create(TInInbound inbound)
        {
            TInQc qc = new TInQc();

            qc.Code        = inbound.Code.Replace("RCV", "QC");
            qc.CreatedBy   = DefaultUser.UserName;
            qc.CreatedTime = DateTime.UtcNow;
            qc.InboundId   = inbound.Id;
            qc.InboundCode = inbound.Code;
            qc.CartonQty   = 0;
            qc.Qty         = 0;
            qc.Status      = Enum.GetName(typeof(EnumOperateStatus), EnumOperateStatus.Init);
            return(qc);
        }