コード例 #1
0
 public RaportCumulatMuncitorIMO(Scanare s, Ambalaj a, long nr, decimal greutate)
 {
     this.SefEchipa = s.Sef.Nume + " " + s.Sef.Prenume;
     this.Ambalaj = a.Denumire;
     this.Buc = Convert.ToInt32(nr);
     this.Greutate = greutate;
     this.DataScanare = s.DataScanare.Date;
 }
コード例 #2
0
ファイル: ScanareIMO.cs プロジェクト: adahera222/_curat_
 public ScanareIMO(Persoana p, Scanare s)
 {
     this.Nume = p.Nume;
     this.Prenume = p.Prenume;
     this.DataScanare = s.DataScanare;
     this.Ambalaj = s.Ambalaj.Denumire;
     this.Celula = s.Celula.Denumire;
     this.Firma = p.Firma.Denumire;
     this.Hala = s.Hala.Denumire;
     this.SefEchipa = s.Sef.Nume + " " + s.Sef.Prenume;
 }
コード例 #3
0
 public ScanareDetaliiIMO(Persoana p, Scanare s)
 {
     this.Nume = p.Nume;
     this.Prenume = p.Prenume;
     this.DataScanare = s.DataScanare;
     this.Ambalaj = s.Ambalaj.Denumire;
     this.Celula = s.Celula.Denumire;
     this.Hala = s.Hala.Denumire;
     this.Greutate = s.Ambalaj.Greutate;
     this.AmbalajId = s.Ambalaj.Id;
     this.Sef = s.Sef.Nume + " " + s.Sef.Prenume;
 }
コード例 #4
0
ファイル: BusinessScanare.cs プロジェクト: adahera222/_curat_
        internal string Scanare(string scanare)
        {
            BusinessPersoana bus = new BusinessPersoana();
            Scanare scanare1 = new Scanare();
            Scanare scn1 = null;
            string ret=null;
            string[] tmp = scanare.Split('#');

            log.Error(scanare);
            scanare1.Sef = dao.GetById(Convert.ToInt32(tmp[0]), typeof(Persoana)) as Persoana;
            scanare1.Muncitor = bus.GetMuncitorFromCod(tmp[1]);
            scanare1.Hala = dao.GetById(Convert.ToInt32(tmp[2]), typeof(Hala)) as Hala ;
            scanare1.Celula = dao.GetById(Convert.ToInt32(tmp[3]), typeof(Celula)) as Celula;
            scanare1.Ambalaj = dao.GetById(Convert.ToInt32(tmp[4]), typeof(Ambalaj)) as Ambalaj;
            scanare1.DataScanare = GetDateTimeFormat(tmp[5]);
            scanare1.Cantitate = Convert.ToInt32(tmp[6]);
            scanare1.Greutate = scanare1.Ambalaj.Greutate;

            scanare1.CheckCanSave(dao);
            scn1=dao.Save(scanare1) as Scanare;
            if (scn1.Id != 0)
            {
                //ret = scn1.Id.ToString();
                ret = SetDateTimeFormat(DateTime.Now);
            }

            return ret;
        }