Esempio n. 1
0
    //private string remarks;

    public static WCFRequisitionListItem Make(string date, string requisitionNo, string department, string status, string employeeName /*,string remarks*/)
    {
        WCFRequisitionListItem r = new WCFRequisitionListItem();

        r.Date          = date;
        r.RequisitionNo = requisitionNo;
        r.Department    = department;
        r.Status        = status;
        r.EmployeeName  = employeeName;
        //r.remarks = remarks;
        return(r);
    }
Esempio n. 2
0
    List <WCFRequisitionListItem> IRequisitionListService.getRequisitionListByStatusAndDept(string deptCode)
    {
        List <WCFRequisitionListItem> wlist = new List <WCFRequisitionListItem>();
        List <ReqisitionListItem>     rlist = RequisitionControl.getRequisitionListByStatusAndDepCode("Pending", deptCode);

        foreach (ReqisitionListItem r in rlist)
        {
            wlist.Add(WCFRequisitionListItem.Make(r.Date, r.RequisitionNo.ToString(), r.Department, r.Status, r.EmployeeName));
            //wlist.Add(WCFRequisitionListItem.Make(r.RequisitionNo.ToString(), r.Department, r.Status, r.EmployeeName, r.Date ));
        }
        return(wlist);
    }