public WCF_RequestID MobileGenReqNoSecond(String EmployeeID) { empNewRequest = new EmpNewRequest(); WCF_RequestID req = new WCF_RequestID(empNewRequest.MobileGetReqNo(EmployeeID)); return(req); }
public WCF_RMessage MobileSaveReqNo(String RequestID) { empNewRequest = new EmpNewRequest(); WCF_RMessage req = new WCF_RMessage(empNewRequest.MobileSaveReqNo(RequestID)); return(req); }
public WCF_RMessage DeleteItem(String ItemID, String RequestID) { empNewRequest = new EmpNewRequest(); WCF_RMessage req = new WCF_RMessage(empNewRequest.DeleteItem(ItemID, int.Parse(RequestID))); return(req); }
public WCF_RequestItems MobileGetDetails(String ItemID) { empNewRequest = new EmpNewRequest(); Item item = empNewRequest.MobileGetDetails(ItemID); WCF_RequestItems req = new WCF_RequestItems(item.Description, 0, item.UnitOfMeasurement); return(req); }
public WCF_RequestID MobileGenReqNoFirst(String EmployeeID) { empNewRequest = new EmpNewRequest(); empNewRequest.MobileGenReqNo(int.Parse(EmployeeID)); WCF_RequestID req = new WCF_RequestID("SUCCESS"); return(req); }
public List <WCF_RequestItems> MobileAddItem(String RequestID, String ItemID, String Quantity) { empNewRequest = new EmpNewRequest(); List <WCF_RequestItems> eWCFList = new List <WCF_RequestItems>(); List <EmpNewReqClass> eList = empNewRequest.MobileAddItem(RequestID, ItemID, int.Parse(Quantity)); foreach (EmpNewReqClass emp in eList) { eWCFList.Add(new WCF_RequestItems(emp.Description, (int)emp.RequestedQty, emp.UnitOfMeasurement)); } return(eWCFList); }
public List <WCF_RequestItemsNew> GridMobViewEmpNewReq(String RequestID) { empNewRequest = new EmpNewRequest(); List <WCF_RequestItemsNew> eWCFList = new List <WCF_RequestItemsNew>(); List <EmpNewReqClass> eList = empNewRequest.GridMobViewEmpNewReq(int.Parse(RequestID)); foreach (EmpNewReqClass emp in eList) { eWCFList.Add(new WCF_RequestItemsNew(emp.RequestedItem, emp.Description, (int)emp.RequestedQty, emp.UnitOfMeasurement)); } return(eWCFList); }