Exemple #1
0
        //||||||||
        //||||||||ASH
        //||||||||
        public DepartmentWCF getdepartmentfromempid(string empid)
        {
            Department    dep    = DeliverRequestController.getdepartmentfromempid(empid);
            DepartmentWCF depwcf = new DepartmentWCF();

            depwcf.DepartmentCode      = dep.DepartmentCode;
            depwcf.DepartmentName      = dep.DepatmentName;
            depwcf.ContactName         = dep.ContactName;
            depwcf.CollectionPointID   = dep.CollectionPointID;
            depwcf.FaxNo               = dep.FaxNo;
            depwcf.HeadEmployeeNumber  = dep.HeadsEmployeeNumber;
            depwcf.PhoneNo             = dep.PhoneNo;
            depwcf.RepresentativeEmpNo = dep.RepresentativeEmpNo;
            return(depwcf);
        }
Exemple #2
0
        /** end by zhu
         * */

        /*** added by ashwin
         * */
        public DepartmentWCF getdepartmentdetails(String deptCode)
        {
            Department    dept   = DeliverRequestController.getdepartmentdetails(deptCode);
            DepartmentWCF depwcf = new DepartmentWCF();

            depwcf.CollectionPointID   = dept.CollectionPointID;
            depwcf.ContactName         = dept.ContactName;
            depwcf.DepartmentCode      = dept.DepartmentCode;
            depwcf.FaxNo               = dept.FaxNo;
            depwcf.HeadEmployeeNumber  = dept.HeadsEmployeeNumber;
            depwcf.PhoneNo             = dept.PhoneNo;
            depwcf.RepresentativeEmpNo = dept.RepresentativeEmpNo;
            depwcf.DepartmentName      = dept.DepatmentName;
            return(depwcf);
        }
Exemple #3
0
        public DepartmentWCF[] deptsForCollectionPoint(string collectionpointid)
        {
            List <Department> deptList = DeliverRequestController.getAllDeptForCollectionPointID(collectionpointid);

            List <DepartmentWCF> depList = new List <DepartmentWCF>();

            foreach (Department dept in deptList)
            {
                DepartmentWCF deptWCF = new DepartmentWCF();
                deptWCF.DepartmentCode      = dept.DepartmentCode;
                deptWCF.DepartmentName      = dept.DepatmentName;
                deptWCF.ContactName         = dept.ContactName;
                deptWCF.PhoneNo             = dept.PhoneNo;
                deptWCF.FaxNo               = dept.FaxNo;
                deptWCF.HeadEmployeeNumber  = dept.HeadsEmployeeNumber;
                deptWCF.CollectionPointID   = dept.CollectionPointID;
                deptWCF.RepresentativeEmpNo = dept.RepresentativeEmpNo;

                depList.Add(deptWCF);
            }

            return(depList.ToArray <DepartmentWCF>());
        }