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); }
public void DeleteSysUser(SysUser data) { Factory.DaoSysUser().Delete(data); }
public SysUser SaveSysUser(SysUser data) { return Factory.DaoSysUser().Save(data); }
public SysUser UserAuthenticationDevice(SysUser data) { LDAPAuth ldap = new LDAPAuth(); return ldap.IsValidUserDevice(data); }
public IList<Label> CreateEmptyLabel(Location location, int numLabels, Product product, string printSession, SysUser user) { return LabelMngr.CreateEmptyPackLabel(location, numLabels, product, printSession, user); }
public string ProcessFile(CustomProcess process, string stream, SysUser user) { return (new ProcessMngr()).ProcessFile(process, stream, user); }
public void UnPickUniqueLabel(Document document, Label label, SysUser picker) { TranMngr.UnPickUniqueLabel(document, label, picker); }
public void ReverseReceiptNodeTraceByLabels(List<NodeTrace> nodeTraceList, SysUser user, DocumentType docType) { TranMngr.ReverseReceiptNodeTraceByLabels(nodeTraceList, user, docType); }
public void PickCrossDockProduct(Document purchase, IList<DocumentBalance> crossDockBalance, SysUser picker) { TranMngr.PickCrossDockProduct(purchase, crossDockBalance, picker); }
public void PickAtOnce(Document document, Label sourceLocation, Node node, SysUser picker) { TranMngr.PickAtOnce(document, sourceLocation, node, picker); }
public Label PickLabel(Document document, Label label, Node node, Label packageLabel, SysUser picker, Bin destBin) { return TranMngr.PickLabel(document, label, node, packageLabel, picker, destBin); }
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; }
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); }
public void ReceiptAcknowledge(Document document, double numLabels, SysUser sysUser, string appPath) { TranMngr.ReceiptAcknowledge(document, numLabels, sysUser, appPath); }
public Label PickUniqueLabel(Document document, Node node, Product product, string serialLabel, SysUser picker, Label packLabel) { return TranMngr.PickUniqueLabel(document, node, product, serialLabel, picker, packLabel); }
public void ReversePickingNodeTraceByLabels(List<NodeTrace> nodeTraceList, SysUser user, Bin restockBin) { TranMngr.ReversePickingNodeTraceByLabels(nodeTraceList, user, restockBin); }
public void EvaluateBasicProcess(CustomProcess processName, SysUser user, string message) { (new ProcessMngr()).EvaluateBasicProcess(processName, user, message); }
public void ReverseReceiptNodeTraceByQty(DocumentBalance docBalance, int quantity, SysUser user) { TranMngr.ReverseReceiptNodeTraceByQty(docBalance, quantity, user); }
public void SendProcessNotification(SysUser user, Document document, string process) { TranMngr.SendProcessNotification(user, document, process); }
public void ConsolidateBins(Label source, Label destination, string appPath, SysUser user) { TranMngr.ConsolidateBins(source,destination,appPath, user); }
public DocumentPackage CreateNewPackage(Document document, SysUser picker, bool isOpen, DocumentPackage parent, string packageType) { return TranMngr.CreateNewPackage(document, picker, isOpen, parent, packageType); }
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); }
public IList<SysUser> GetSysUser(SysUser data) { return Factory.DaoSysUser().Select(data); }
public void ProcessKitAssemblyAddRemove(Label label, int operation, Product Component, int qty, SysUser user, long labelSourceID) { TranMngr.ProcessKitAssemblyAddRemove(label, operation, Component, qty, user, labelSourceID); }
public void UpdateSysUser(SysUser data) { Factory.DaoSysUser().Update(data); }
public Label PickProductWithTrack(Document document, Label label, double qtyToPick, Node node, SysUser picker, Label packLabel) { return TranMngr.PickProductWithTrack(document, label, qtyToPick, node, picker, packLabel); }
public Label ChangeLabelUbication(Label labelSource, Label labelDest, string appPath, SysUser user) { return TranMngr.ChangeLabelUbication(labelSource, labelDest, appPath, user); }
public bool ReceiveReturn(Document document, IList<ProductStock> retProduct, SysUser sysUser, double retTotalQty, Node recNode) { return TranMngr.ReceiveReturn(document, retProduct, sysUser, retTotalQty, recNode); }