示例#1
0
    //AUTHOR : KHIN MYO MYO SHWE
    public WCFDept GetDeptInfo(string dcode)
    {
        string     collectpoint = deptController.GetDepartmentForCollectionPointSelected(dcode);
        Department d            = deptController.GetDepartByDepCode(dcode);

        return(WCFDept.Make(d.DeptCode, collectpoint, d.DeptName, d.DeptContactName, d.DeptTelephone, d.DeptFax));
    }
示例#2
0
    //End Employee Function Part


    //AUTHOR : KHIN MYO MYO SHWE
    //Start Department Function Part
    public List <WCFDept> DepartmentList()
    {
        List <WCFDept>    wlist = new List <WCFDept>();
        List <Department> dlist = deptController.GetDepartList();

        foreach (Department d in dlist)
        {
            wlist.Add(WCFDept.Make(d.DeptCode, Convert.ToString(d.CollectionLocationID), d.DeptName, d.DeptContactName, d.DeptTelephone, d.DeptFax));
        }
        return(wlist);
    }