Ejemplo n.º 1
0
        private OrderArtCL checkoutOrderArt(string ident, ReservdelCL res, Decimal coNumber)
        {
            ServHuvSrc.COrderArt coa = new ServHuvSrc.COrderArt();
            OrderArtCL           oa  = new OrderArtCL();

            oa.Artnr       = res.Artnr;
            oa.VartOrdernr = res.VartOrdernr;
            oa.CoAntal     = coNumber;
            oa             = coa.checkoutOrderArt(ident, oa);
            return(oa);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Returns a list of available levels for the outchecked articles list
 /// </summary>
 /// <param name="ident"></param>
 /// 2018-05-28
 /// <returns></returns>
 public List <KeyValuePair <int, string> > getUcArtListSelection(string ident)
 {
     ServHuvSrc.COrderArt oa = new ServHuvSrc.COrderArt();
     return(oa.getUcArtListSelection(ident));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Returns a list of all outchecked objects
 /// </summary>
 /// <param name="ident"></param>
 /// <param name="listType"></param>
 /// <returns></returns>
 /// 2018-05-28 KJBO Indentive AB
 public List <OrderArtListCL> getOutcheckedList(string ident, int listType)
 {
     ServHuvSrc.COrderArt oa = new ServHuvSrc.COrderArt();
     return(oa.getOutcheckedList(ident, listType));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Commits the temporary temCiAntal to
 /// the real ciAntal in the orderArt table
 /// </summary>
 /// <param name="ident"></param>
 /// <param name="vartOrdernr"></param>
 /// <returns></returns>
 /// 2018-05-02 KJBO Indentive AB
 public ErrorCL commitTempCiAntal(string ident, string vartOrdernr)
 {
     ServHuvSrc.COrderArt oa = new ServHuvSrc.COrderArt();
     return(oa.commitTempCiAntal(ident, vartOrdernr));
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Gets one article defined by artnr
 /// Also returns stock for this article
 /// </summary>
 /// <param name="ident"></param>
 /// <param name="artnr"></param>
 /// <returns></returns>
 /// 2018-05-22 KJBO Indentive AB
 public OrderArtCL getCheckoutableArticle(string ident, string artnr)
 {
     ServHuvSrc.COrderArt oa = new ServHuvSrc.COrderArt();
     return(oa.getCheckoutableArticle(ident, artnr));
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Set a new value to column tempCiAntal on table orderArt
 /// This is a temporary value (to be committed later) for
 /// how many items that will be inserted into CompactStore
 /// after a serviceorder session
 /// </summary>
 /// <param name="ident"></param>
 /// <param name="orderArtId"></param>
 /// <param name="newValue"></param>
 /// <returns></returns>
 /// 2018-05-02 KJBO Indentive AB
 public ErrorCL setTempCiAntal(string ident, int orderArtId, decimal newValue)
 {
     ServHuvSrc.COrderArt oa = new ServHuvSrc.COrderArt();
     return(oa.setTempCiAntal(ident, orderArtId, newValue));
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Calculate how many artikel that shall remain
 /// on a service order and suggest the checkin
 /// value by calling setTemCiAntal
 /// </summary>
 /// <param name="ident"></param>
 /// <param name="vartOrdernr"></param>
 /// <returns>Error class</returns>
 /// 2018-05-02 KJBO Indentive AB
 public ErrorCL calculateCiOrderArt(string ident, string vartOrdernr)
 {
     ServHuvSrc.COrderArt oa = new ServHuvSrc.COrderArt();
     return(oa.calculateCiOrderArt(ident, vartOrdernr));
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Check if there are any orderArt rows
 /// Use to determine if checkin shall be available
 /// </summary>
 /// <param name="ident"></param>
 /// <param name="vartOrdernr"></param>
 /// <returns>Number of orderArt articles for the current ordernr or -1 if error occurs</returns>
 ///
 public int countOrderArtRows(string ident, string vartOrdernr)
 {
     ServHuvSrc.COrderArt oa = new ServHuvSrc.COrderArt();
     return(oa.countOrderArtRows(ident, vartOrdernr));
 }
Ejemplo n.º 9
0
 public OrderArtCL checkoutOrderArt(string ident, OrderArtCL oa)
 {
     ServHuvSrc.COrderArt coa = new ServHuvSrc.COrderArt();
     return(coa.checkoutOrderArt(ident, oa));
 }
Ejemplo n.º 10
0
 /// <summary>
 /// Returns a list of ordered arts for a given order
 /// Or only one orderArt defined by orderArtId
 /// </summary>
 /// <param name="vartOrdernr"></param>
 /// <param name="ident"></param>
 /// <returns></returns>
 public List <OrderArtCL> getOrderArt(int orderArtId, string vartOrdernr, string ident)
 {
     ServHuvSrc.COrderArt orderArt = new ServHuvSrc.COrderArt();
     return(orderArt.getOrderArt(orderArtId, vartOrdernr, ident));
 }