public ActionResult TrackNumInit() { try { string defWHID = string.Empty; List <APP_WH> appWHList = null; APP_USERS_BLL userBLL = new APP_USERS_BLL(); string appUser = Session[CHubConstValues.SessionUser].ToString(); APP_USERS user = userBLL.GetAppUserByDomainName(appUser); defWHID = user.DEF_WH_ID; APP_WH_BLL whBLL = new APP_WH_BLL(); appWHList = whBLL.GetAppWHList(); var obj = new { defWHID = defWHID, appWHList = appWHList }; return(Json(new RequestResult(obj))); } catch (Exception ex) { LogHelper.WriteLog("TrackNumInit", ex); return(Json(new RequestResult(false, ex.Message))); } }
public void GetStagedPackList(string appUser) { V_RP_PACK_H_QUEUE_BLL qBLL = new V_RP_PACK_H_QUEUE_BLL(); APP_WH_BLL whBLL = new APP_WH_BLL(); PrintHelper pHelper = new PrintHelper(); List <string> dWHID = qBLL.GetDistinctWHID(); if (dWHID == null || dWHID.Count == 0) { Console.WriteLine("NO queue Data"); return; } foreach (var id in dWHID) { List <string> lodList = qBLL.GetLodNumByWhID(id); if (lodList == null || lodList.Count == 0) { Console.WriteLine("No staged pack data found"); return; } string fileName = PrintPackData(lodList, appUser); string fullPath = BasePath + fileName; string defPrinter = whBLL.GetDefPrinter(id); if (string.IsNullOrEmpty(defPrinter)) { Console.WriteLine("No printer setting for WareHous:" + id); return; } pHelper.PrintFile(fullPath, defPrinter); string msg = ""; foreach (var item in lodList) { msg += (item + "|"); } Console.WriteLine("{0} Pack Print job completed successfully!", DateTime.Now.ToString()); Console.WriteLine(msg); Console.WriteLine(fileName); Console.WriteLine("******************************************"); } }
public ActionResult DockInit() { try { List <APP_WH> appWHList = null; APP_WH_BLL whBLL = new APP_WH_BLL(); appWHList = whBLL.GetAppWHList(); var obj = new { appWHList = appWHList }; return(Json(new RequestResult(obj))); } catch (Exception ex) { LogHelper.WriteLog("DockInit", ex); return(Json(new RequestResult(false, ex.Message))); } }
public ActionResult Init() { try { string defWHID = string.Empty; List <APP_WH> appWHList = null; //List<RP_WAYBILL_TYPE> whTypeList = null; List <DistinctCarCode> carCodeList = null; APP_USERS_BLL userBLL = new APP_USERS_BLL(); string appUser = Session[CHubConstValues.SessionUser].ToString(); APP_USERS user = userBLL.GetAppUserByDomainName(appUser); defWHID = user.DEF_WH_ID; APP_WH_BLL whBLL = new APP_WH_BLL(); appWHList = whBLL.GetAppWHList(); //RP_WAYBILL_TYPE_BLL typeBLL = new RP_WAYBILL_TYPE_BLL(); //whTypeList = typeBLL.GetWayBillType(); RP_CAR_MST_BLL carBLL = new RP_CAR_MST_BLL(); carCodeList = carBLL.GetDistinctCarCode(); var obj = new { defWHID = defWHID, appWHList = appWHList, carCodeList = carCodeList }; return(Json(new RequestResult(obj))); } catch (Exception ex) { LogHelper.WriteLog("RP index Init", ex); return(Json(new RequestResult(false, ex.Message))); } }