Esempio n. 1
0
        public IList<SysUser> Select(SysUser data)
        {

                IList<SysUser> datos = new List<SysUser>();
                datos = GetHsql(data).List<SysUser>();
                return datos;

        }
        public Label PickUniqueLabel(Document document, Node node, Product product, string serialLabel, SysUser picker, Label packLabel)
        {            
            //Valida si el label piquedo esta disponible y pertenece al producto y luego lo manda a PickLabel
            Label label = new Label
            {
                LabelCode = serialLabel,
                //LabelType = new DocumentType { DocTypeID = LabelType.UniqueTrackLabel },
                LabelType = new DocumentType { DocTypeID = LabelType.ProductLabel },
                Product = new Product { ProductID = product.ProductID }
            };           


            try
            {
                label = Factory.DaoLabel().Select(label).First();
            }
            catch { throw new Exception("Barcode " + serialLabel + " does not exists for product " + product.FullDesc + "."); }


            return PickLabel(document, label, node, packLabel, picker, null);

        }
Esempio n. 3
0
 public void DeleteSysUser(SysUser data) { Factory.DaoSysUser().Delete(data); }
Esempio n. 4
0
 public SysUser SaveSysUser(SysUser data) { return Factory.DaoSysUser().Save(data); }
Esempio n. 5
0
 public SysUser UserAuthenticationDevice(SysUser data)
 {
     LDAPAuth ldap = new LDAPAuth();
     return ldap.IsValidUserDevice(data);
 }
Esempio n. 6
0
 public IList<Label> CreateEmptyLabel(Location location, int numLabels, Product product, string printSession, 
     SysUser user) {
         return LabelMngr.CreateEmptyPackLabel(location, numLabels, product, printSession, user);
 }
Esempio n. 7
0
 public string ProcessFile(CustomProcess process, string stream, SysUser user)
 {
     return (new ProcessMngr()).ProcessFile(process, stream, user);
 }
Esempio n. 8
0
 public void UnPickUniqueLabel(Document document, Label label, SysUser picker)
 {
     TranMngr.UnPickUniqueLabel(document, label, picker);
 }
Esempio n. 9
0
 public void ReverseReceiptNodeTraceByLabels(List<NodeTrace> nodeTraceList, SysUser user, DocumentType docType)
 {
     TranMngr.ReverseReceiptNodeTraceByLabels(nodeTraceList, user, docType);
 }
Esempio n. 10
0
 public void PickCrossDockProduct(Document purchase, IList<DocumentBalance> crossDockBalance, SysUser picker)
 {
     TranMngr.PickCrossDockProduct(purchase, crossDockBalance, picker);
 }
Esempio n. 11
0
 public void PickAtOnce(Document document, Label sourceLocation, Node node, SysUser picker) {
     TranMngr.PickAtOnce(document, sourceLocation, node, picker);
 }
Esempio n. 12
0
 public Label PickLabel(Document document, Label label, Node node, Label packageLabel, SysUser picker, Bin destBin)
 {
     return TranMngr.PickLabel(document, label, node, packageLabel, picker, destBin);
 }
Esempio n. 13
0
 public Boolean PickProduct(DocumentLine line, Label sourceLocation, Node node, Label packageLabel, SysUser picker, Bin binDest) {
     TranMngr.PickProduct(line, sourceLocation, node, packageLabel, picker, binDest);
     return true;
 }
Esempio n. 14
0
       public IList<Label> CreateEmptyPackLabel(Location location, int numLabels, Product product, string printSession,
           SysUser user)
       {
           Factory.IsTransactional = true;

           Node recNode = WType.GetNode(new Node { NodeID = NodeType.Stored });
           Status status = WType.GetStatus(new Status { StatusID = EntityStatus.Active });
           DocumentType labelType = WType.GetLabelType(new DocumentType { DocTypeID = LabelType.ProductLabel });
           Unit logisticUnit = WType.GetUnit(new Unit { Company = location.Company, Name = WmsSetupValues.CustomUnit });
           Bin destLocation = WType.GetBin(new Bin { Location = location, BinCode = DefaultBin.PUTAWAY });


           IList<Label> listLabel = new List<Label>();

           //Generate new logistig labels located in MAIN
           //Labels shouldbe activated the next transaction
           try {
               //Funcion para obtener siguiente Label
               //DocumentTypeSequence initSequence = GetNextDocSequence(location.Company, labelType);
               Label fatherLabel = null;

               for (int i = 0; i < (int)numLabels; i++)
               {

                   fatherLabel = new Label();
                   fatherLabel.Node = recNode;
                   fatherLabel.Bin = destLocation;
                   fatherLabel.Product = product;
                   fatherLabel.CreatedBy = user.UserName;
                   fatherLabel.Status = status;
                   fatherLabel.LabelType = labelType;
                   fatherLabel.CreationDate = DateTime.Now;
                   fatherLabel.Printed = false;

                   fatherLabel.Unit = logisticUnit;
                   fatherLabel.IsLogistic = false;
                   fatherLabel.FatherLabel = null;
                   fatherLabel.LabelCode = ""; //(initSequence.NumSequence + i).ToString() + GetRandomHex(user.UserName, initSequence.NumSequence + i);
                   fatherLabel.CurrQty = 0;
                   //Aqui guardan las logisitcas las hijas que contienen unas vez se imprimen
                   fatherLabel.StartQty = 0;
                   fatherLabel.Notes = "Empty Label";
                   fatherLabel.PrintingLot = printSession;
                   fatherLabel = Factory.DaoLabel().Save(fatherLabel);

                   //Registra el movimiento del nodo
                   fatherLabel.LabelCode = fatherLabel.LabelID.ToString();

                   SaveNodeTrace(
                       new NodeTrace
                       {
                           Node = recNode,
                           Document = null,
                           Label = fatherLabel,
                           Quantity = fatherLabel.CurrQty,
                           IsDebit = false,
                           CreatedBy = user.UserName
                       }
                   );

                   listLabel.Add(fatherLabel);

               }

               //Ajustando la sequencia
               //initSequence.NumSequence += numLabels;

               //Factory.DaoDocumentTypeSequence().Update(initSequence);

               Factory.Commit();

               return listLabel;

           }
           catch (Exception ex)
           {
               Factory.Rollback();
               ExceptionMngr.WriteEvent("CreateEmptyLabel:", ListValues.EventType.Fatal, ex, null, ListValues.ErrorCategory.Business);
               throw new Exception(WriteLog.GetTechMessage(ex));
           }


       }
        public void UnPickUniqueLabel(Document document, Label label, SysUser picker)
        {
            Node storedNode = WType.GetNode(new Node{ NodeID = NodeType.Stored});
            Status status = WType.GetStatus(new Status { StatusID = EntityStatus.Active });

            IList<NodeTrace> nodeList = Factory.DaoNodeTrace().Select(
                new NodeTrace { 
                    Document = document, Label = label, Node = label.Node 
                });

            if (nodeList == null || nodeList.Count == 0)
                return;

            ReverseNodeTrace(nodeList, picker.UserName, storedNode, label.LastBin, status);
        }
Esempio n. 16
0
 public void ReceiptAcknowledge(Document document, double numLabels, SysUser sysUser, string appPath)
 {
     TranMngr.ReceiptAcknowledge(document, numLabels, sysUser, appPath);
 }
Esempio n. 17
0
 public Label PickUniqueLabel(Document document, Node node, Product product, string serialLabel, SysUser picker, Label packLabel)
 {
     return TranMngr.PickUniqueLabel(document, node, product, serialLabel, picker, packLabel);
 }
Esempio n. 18
0
 public void ReversePickingNodeTraceByLabels(List<NodeTrace> nodeTraceList, SysUser user, Bin restockBin)
 {
     TranMngr.ReversePickingNodeTraceByLabels(nodeTraceList, user, restockBin);
 }
Esempio n. 19
0
 public void EvaluateBasicProcess(CustomProcess processName, SysUser user, string message)
 {
     (new ProcessMngr()).EvaluateBasicProcess(processName, user, message);
 }
Esempio n. 20
0
 public void ReverseReceiptNodeTraceByQty(DocumentBalance docBalance, int quantity, SysUser user)
 {
     TranMngr.ReverseReceiptNodeTraceByQty(docBalance, quantity, user);
 }
Esempio n. 21
0
 public void SendProcessNotification(SysUser user, Document document, string process)
 {
     TranMngr.SendProcessNotification(user, document, process);
 }
Esempio n. 22
0
 public void ConsolidateBins(Label source, Label destination, string appPath, SysUser user) 
 {
     TranMngr.ConsolidateBins(source,destination,appPath, user);
 }
Esempio n. 23
0
 public DocumentPackage CreateNewPackage(Document document, SysUser picker, bool isOpen, DocumentPackage parent, string packageType)
 {
     return TranMngr.CreateNewPackage(document, picker, isOpen, parent, packageType);
 }
Esempio n. 24
0
 public string CreateReplaceAdjustmentDocument(Document curDocument, Label sourceLabel, Product product, Product product2, Unit unit, Unit unit2, int qty, SysUser curUser, Location curLocation)
 {
    return TranMngr.CreateReplaceAdjustmentDocument(curDocument, sourceLabel, product, product2, unit, 
        unit2, qty, curUser, curLocation);
 }
Esempio n. 25
0
 public IList<SysUser> GetSysUser(SysUser data) { return Factory.DaoSysUser().Select(data); }
Esempio n. 26
0
 public void ProcessKitAssemblyAddRemove(Label label, int operation, Product Component, int qty, SysUser user, long labelSourceID)
 {
     TranMngr.ProcessKitAssemblyAddRemove(label, operation, Component, qty, user, labelSourceID);
 }
Esempio n. 27
0
 public void UpdateSysUser(SysUser data) { Factory.DaoSysUser().Update(data); }
Esempio n. 28
0
 public Label PickProductWithTrack(Document document, Label label, double qtyToPick, Node node, SysUser picker, Label packLabel)
 {
     return TranMngr.PickProductWithTrack(document, label, qtyToPick, node, picker, packLabel);
 }
Esempio n. 29
0
 public Label ChangeLabelUbication(Label labelSource, Label labelDest, string appPath, SysUser user)
 {
     return TranMngr.ChangeLabelUbication(labelSource, labelDest, appPath, user);
 }
Esempio n. 30
0
 public bool ReceiveReturn(Document document, IList<ProductStock> retProduct, SysUser sysUser, double retTotalQty, Node recNode)
 {
     return TranMngr.ReceiveReturn(document, retProduct, sysUser, retTotalQty, recNode);
 }