Exemplo n.º 1
0
    /*update item amount break down list*/
    public List <WCFBreakdown> updateBreakDown(string itemName, int retrieved)
    {
        List <BreakDownByDepBO> l = n.updateBreakDownLst(itemName, retrieved);
        List <WCFBreakdown>     m = new List <WCFBreakdown>();

        foreach (BreakDownByDepBO b in l)
        {
            m.Add(WCFBreakdown.Make2(b.Dep, b.Needed, b.Outstanding, b.Actual));
        }
        return(m);
    }
Exemplo n.º 2
0
    /*get item amount break down list*/
    public List <WCFBreakdown> getBreakDownList(string itemName)
    {
        List <BreakDownByDepBO> l = n.getBreakDownLstByName(itemName);
        List <WCFBreakdown>     m = new List <WCFBreakdown>();

        foreach (BreakDownByDepBO b in l)
        {
            m.Add(WCFBreakdown.Make2(b.Dep, b.Needed, b.Outstanding, b.Actual));
        }
        return(m);
    }
Exemplo n.º 3
0
    public static WCFBreakdown Make2(string deptName, int needed, int outstanding, int actual)
    {
        WCFBreakdown e = new WCFBreakdown();

        e.deptName    = deptName;
        e.outstanding = outstanding;
        e.needed      = needed;
        e.actual      = actual;

        return(e);
    }