示例#1
0
 public ActionResult SaveCarWayBillID(ExRPCarMst car)
 {
     try
     {
         RP_CAR_MST_BLL carBLL = new RP_CAR_MST_BLL();
         carBLL.SaveCARWayBillID(car);
         return(Json(new RequestResult(true)));
     }
     catch (Exception ex)
     {
         LogHelper.WriteLog("SaveCarWayBillID", ex);
         return(Json(new RequestResult(false, ex.Message)));
     }
 }
示例#2
0
 public ActionResult GetCarList(string carCode)
 {
     try
     {
         RP_CAR_MST_BLL    carBLL = new RP_CAR_MST_BLL();
         List <ExRPCarMst> result = carBLL.GetCARListByCode(carCode);
         return(Json(new RequestResult(result)));
     }
     catch (Exception ex)
     {
         LogHelper.WriteLog("GetCarList", ex);
         return(Json(new RequestResult(false, ex.Message)));
     }
 }
示例#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)));
            }
        }
示例#4
0
        public ActionResult CarMstInit()
        {
            try
            {
                RP_CAR_MST_BLL         carBLL   = new RP_CAR_MST_BLL();
                List <DistinctCarCode> carCodes = carBLL.GetDistinctCarCode();

                RP_WAYBILL_TYPE_BLL    typeBLL = new RP_WAYBILL_TYPE_BLL();
                List <RP_WAYBILL_TYPE> wbType  = typeBLL.GetWayBillType();

                var obj = new
                {
                    carCodes = carCodes,
                    wbType   = wbType
                };

                return(Json(new RequestResult(obj)));
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog("CarMstInit", ex);
                return(Json(new RequestResult(false, ex.Message)));
            }
        }