Ejemplo n.º 1
0
        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)));
            }
        }
Ejemplo n.º 2
0
        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)));
            }
        }
Ejemplo n.º 3
0
        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)));
            }
        }