Exemplo n.º 1
0
        public ReqDetail[] getReqListDetails(string reqListId)
        {
            List <RequisitionDetail> rd  = new List <RequisitionDetail>();
            List <ReqDetail>         rrd = new List <ReqDetail>();

            rd = ApproveRequestController.reqDetailsW(reqListId);
            foreach (RequisitionDetail r in rd)
            {
                ReqDetail rr = new ReqDetail();
                rr.ReqLNum  = r.RequisitionListNumber;
                rr.ItemName = r.Product.Description;
                rr.Qty      = Convert.ToInt32(r.Quantity);
                rrd.Add(rr);
            }
            return(rrd.ToArray <ReqDetail>());
        }
Exemplo n.º 2
0
        public ReqList[] getPendingReqLstForEmp(string empId)
        {
            List <RequisitionList> rl  = new List <RequisitionList>();
            List <ReqList>         rql = new List <ReqList>();

            rl = ApproveRequestController.getAllPendingReq(empId);
            foreach (RequisitionList r in rl)
            {
                ReqList rr = new ReqList();
                rr.ReqListNum = r.RequisitionListNumber;
                rr.EmpName    = r.Employee.Name;
                rr.DateReq    = (r.DateCreated).ToString();
                rql.Add(rr);
            }
            return(rql.ToArray <ReqList>());
        }
Exemplo n.º 3
0
 public void submitRejected(RejectStationeryRequestWCF reject)
 {
     ApproveRequestController.submitRejected(reject.RequisitionListID, reject.Comment);
 }
Exemplo n.º 4
0
 public void submitApproval(string reqListId)
 {
     ApproveRequestController.submitApproval(reqListId, "mobile");
 }