예제 #1
0
    public static WCFCollectPoint Make(string collectid, string collectionpoint, string defaulttime)
    {
        WCFCollectPoint c = new WCFCollectPoint();

        c.collectid       = collectid;
        c.collectionpoint = collectionpoint;
        c.defaulttime     = defaulttime;
        return(c);
    }
예제 #2
0
    //End Department Function Part

    //Start Collection Function Part
    //AUTHOR : KHIN MYO MYO SHWE
    public List <WCFCollectPoint> CollectionPointList()
    {
        List <WCFCollectPoint> wlist = new List <WCFCollectPoint>();
        List <CollectionPoint> clist = deptController.GetCollectionPointList();

        foreach (CollectionPoint c in clist)
        {
            wlist.Add(WCFCollectPoint.Make(Convert.ToString(c.CollectionLocationID), c.CollectionPoint1, c.DefaultCollectionTime));
        }
        return(wlist);
    }