Esempio n. 1
0
        public static WCFRequisition Make(string reqId, string reqDate, string name, string empId)
        {
            WCFRequisition wcfreq = new WCFRequisition();

            wcfreq.reqId   = reqId;
            wcfreq.reqDate = reqDate;
            wcfreq.name    = name;
            wcfreq.empId   = empId;

            return(wcfreq);
        }
Esempio n. 2
0
        /////////////Requisition
        public WCFRequisition[] PendingRequisitionList()
        {
            List <WCFRequisition> wcfReqList = new List <WCFRequisition>();
            List <Requisition>    reqList    = Data.PendingRequisitionList();

            foreach (Requisition r in reqList)
            {
                WCFRequisition wcfReq = WCFRequisition.Make(r.RequisitionID.ToString(), r.RequisitionDate.HasValue ? r.RequisitionDate.Value.ToString("dd-MMM-yyyy") : null, r.Employee.Name, r.RequestorID.ToString());
                wcfReqList.Add(wcfReq);
            }
            return(wcfReqList.ToArray <WCFRequisition>());
        }