public void TS_Imcc(Auth auth, ONHAND_D request, imcc_loigc imcc_Logic, CommonResponse ecr, string[] token, string uri) { if (auth.AuthResult(token, uri)) { if (uri.IndexOf("/wms/ONHAND_D/confirm") > 0) { ecr.data.results = imcc_Logic.ConfirmAll_ONHAND_D(request); } else if (uri.IndexOf("/wms/ONHAND_D") > 0) { ecr.data.results = imcc_Logic.Get_ONHAND_D_List(request); } else if (uri.IndexOf("/wms/ONHAND_D") > 0) { ecr.data.results = imcc_Logic.Get_ONHAND_D_List(request); } ecr.meta.code = 200; ecr.meta.message = "OK"; } else { ecr.meta.code = 401; ecr.meta.message = "Unauthorized"; } }
public void TS_Imcc(Auth auth, ONHAND_D request, imcc_loigc imcc_Logic, CommonResponse ecr, string[] token, string uri) { if (auth.AuthResult(token, uri)) { if (uri.IndexOf("/wms/ONHAND_D/confirm") > 0) { ecr.data.results = imcc_Logic.ConfirmAll_ONHAND_D(request); } else if (uri.IndexOf("/wms/ONHAND_D/update") > 0) { ecr.data.results = imcc_Logic.Update_ONHAND_D(request); } else if (uri.IndexOf("/wms/OH_PID_D/create") > 0) { ecr.data.results = imcc_Logic.Create_OH_PID_D(request); } else if (uri.IndexOf("/wms/OH_PID_D/CheckAlreadyPid") > 0) { ecr.data.results = imcc_Logic.CheckAlreadyPID(request); } else if (uri.IndexOf("/wms/OH_PID_D/UpdateUnNo") > 0) { ecr.data.results = imcc_Logic.UpdateUnNo(request); } else if (uri.IndexOf("/wms/OH_PID_D/UpdatePidUnNo") > 0) { ecr.data.results = imcc_Logic.UpdatePidUnNo(request); } else if (uri.IndexOf("/wms/OH_PID_D/DeleteLineItem") > 0) { ecr.data.results = imcc_Logic.DeleteLineItem(request); } else if (uri.IndexOf("/wms/OH_PID_D/updateLineItem") > 0) { ecr.data.results = imcc_Logic.UpdateLineItem(request); } else if (uri.IndexOf("/wms/OH_PID_D/TruckerBillNo") > 0) { ecr.data.results = imcc_Logic.ValidateTRK_BILL_NO(request); } else if (uri.IndexOf("/wms/OH_PID_D/verifyTruckerBillNoBarCode") > 0) { ecr.data.results = imcc_Logic.verifyTruckerBillNoBarCode(request); } else if (uri.IndexOf("/wms/OH_PID_D/validate") > 0) { ecr.data.results = imcc_Logic.ValidatePID_NO(request); } else if (uri.IndexOf("wms/ONHAND_D/OnhandNo") > 0) { ecr.data.results = imcc_Logic.Get_ONHANDNo(request); } else if (uri.IndexOf("/wms/ONHAND_D") > 0) { ecr.data.results = imcc_Logic.Get_ONHAND_D_List(request); } else if (uri.IndexOf("/wms/OH_PID_D") > 0) { ecr.data.results = imcc_Logic.Get_OH_PID_D_List(request); } else if (uri.IndexOf("/wms/ONHAND_D") > 0) { ecr.data.results = imcc_Logic.Get_ONHAND_D_List(request); } ecr.meta.code = 200; ecr.meta.message = "OK"; } else { ecr.meta.code = 401; ecr.meta.message = "Unauthorized"; } }